You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
461 KiB
1 line
461 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[78,11,14],{ADTG:function(e,t,n){"use strict";n.r(t);n("7Kak");var r=n("9yH6"),i=n("0Owb"),o=(n("5NDa"),n("5rEg")),a=(n("14J3"),n("BMrR")),s=(n("+L6B"),n("2/Rp")),c=(n("5Dmo"),n("3S7+")),u=(n("jCWc"),n("kPKH")),l=n("k1fw"),p=n("oBTY"),f=(n("miYZ"),n("tsqr")),d=(n("2qtc"),n("kLXV")),h=n("WmNS"),m=n.n(h),v=n("9og8"),g=(n("y8nQ"),n("Vl3Y")),y=n("tJVT"),b=n("PpiC"),_=n("q1tI"),w=n.n(_),x=n("Ty5D"),E=n("55Ip"),S=n("9kvl"),T=n("ngQI"),k=n("HBuW"),O=n("1vsH"),A=n("ItnT"),j=n.n(A),I=(n("bbsP"),n("/wGt")),C=(n("DjyN"),n("NUBc")),P=(n("/zsF"),n("PArb")),N=(n("sRBo"),n("kaz8")),L=n("ErOA");function D(e){return M.apply(this,arguments)}function M(){return M=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/courses/".concat(t.coursesId,"/online_learning.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function R(e){return U.apply(this,arguments)}function U(){return U=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function B(e){return F.apply(this,arguments)}function F(){return F=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/courses/".concat(t.coursesId,"/course_stages.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return z=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,"/add_shixun_to_stage.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function X(e){return G.apply(this,arguments)}function G(){return G=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,"/select_shixun_to_stage.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)}))),G.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,"/add_video_to_stage.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function W(e){return K.apply(this,arguments)}function K(){return K=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,"/up_position.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}function Y(e){return J.apply(this,arguments)}function J(){return J=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,"/down_position.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)}))),J.apply(this,arguments)}function $(e){return Q.apply(this,arguments)}function Q(){return Q=Object(v["a"])(m.a.mark((function e(t){return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(L["a"])("/api/course_stages/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)}))),Q.apply(this,arguments)}var Z=n("qsz/"),ee=n.n(Z),te=o["a"].Search,ne=[{id:"type",name:"\u7b5b\u9009",children:[{name:"\u5168\u90e8\u5b9e\u8bad",id:"all",type:"type"},{name:"\u6211\u7684\u5b9e\u8bad",id:"mine",type:"type"}]},{id:"diff",name:"\u96be\u5ea6",children:[{name:"\u5168\u90e8",id:"",type:"diff"},{name:"\u521d\u7ea7",id:1,type:"diff"},{name:"\u4e2d\u7ea7",id:2,type:"diff"},{name:"\u4e2d\u9ad8\u7ea7",id:3,type:"diff"},{name:"\u9ad8\u7ea7",id:4,type:"diff"}]}],re=function(e){var t,n=e.classroomList,r=(e.loading,e.dispatch),i=e.cb,o=e.shixunIds,a=void 0===o?[]:o,c=(Object(x["m"])(),Object(x["l"])(),n.actionTabs,g["a"].useForm()),u=Object(y["a"])(c,1),d=(u[0],n.shixunLists),h=Object(_["useState"])([]),b=Object(y["a"])(h,2),E=b[0],S=b[1],T=Object(_["useState"])({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),k=Object(y["a"])(T,2),O=k[0],A=k[1];Object(_["useEffect"])((function(){"\u9009\u7528\u5b9e\u8bad\u9879\u76ee"===n.actionTabs.key&&(O.page=1,r({type:"classroomList/getShixunLists",payload:Object(l["a"])({},O)}))}),[n.actionTabs.key]);var j=function(){r({type:"classroomList/setActionTabs",payload:{}}),A({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return"\u9009\u7528\u5b9e\u8bad\u9879\u76ee"!==n.actionTabs.key?null:w.a.createElement(I["a"],{placement:"bottom",height:"100%",closable:!1,visible:"\u9009\u7528\u5b9e\u8bad\u9879\u76ee"===n.actionTabs.key,key:"bottom",className:ee.a.drawer,footer:w.a.createElement("div",{className:"tc"},w.a.createElement(s["a"],{size:"large",onClick:function(){j(),S([])},style:{marginRight:8}},"\u53d6\u6d88"),w.a.createElement(s["a"],{size:"large",onClick:Object(v["a"])(m.a.mark((function e(){var t,r,o,s;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=function(e){var t,n,r=E[e];if(a.includes(r))return f["b"].info("\u8bf7\u52ff\u91cd\u590d\u9009\u62e9\uff1a".concat(null===d||void 0===d||null===(t=d.shixun_list)||void 0===t||null===(n=t.find((function(e){return e.id===r})))||void 0===n?void 0:n.title)),{v:void 0}},r=0;case 2:if(!(r<(null===E||void 0===E?void 0:E.length))){e.next=9;break}if(o=t(r),"object"!==typeof o){e.next=6;break}return e.abrupt("return",o.v);case 6:r++,e.next=2;break;case 9:return e.next=11,X({id:n.actionTabs.id,course_id:n.actionTabs.course_id,shixun_ids:Object(p["a"])(E)});case 11:s=e.sent,S([]),(null===s||void 0===s?void 0:s.shixuns_list)&&(j(),i(s.shixuns_list));case 14:case"end":return e.stop()}}),e)}))),type:"primary"},"\u786e\u5b9a"))},w.a.createElement("section",{className:"tc"},w.a.createElement(te,{placeholder:"\u5b9e\u8bad\u4fe1\u606f/\u9662\u6821\u540d\u79f0/\u521b\u5efa\u8005",enterButton:"\u641c\u7d22",size:"large",className:ee.a.search,onSearch:function(e){O.keyword=e,O.page=1,r({type:"classroomList/getShixunLists",payload:Object(l["a"])({},O)})}})),w.a.createElement("section",{className:"edu-container"},ne.map((function(e,t){var n;return w.a.createElement("ul",{className:ee.a.menu,key:t},w.a.createElement("li",null,e.name),null===e||void 0===e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return w.a.createElement("li",{className:O[e.id]==t.id?ee.a.actived:"",onClick:function(){O[e.id]=t.id,A(Object(l["a"])({},O)),r({type:"classroomList/getShixunLists",payload:Object(l["a"])({},O)})}},w.a.createElement("strong",null,t.name))})))})),null===d||void 0===d||null===(t=d.shixun_list)||void 0===t?void 0:t.map((function(e,t){return w.a.createElement("div",{className:ee.a.listItem,key:t},w.a.createElement(N["a"],{checked:E.includes(e.id),value:e.id,onChange:function(t){E.indexOf(e.id);E.indexOf(e.id)>-1?S(E.filter((function(t){return t!==e.id}))):S(E.concat(e.id))}}),w.a.createElement("div",{className:ee.a.info},w.a.createElement("div",{className:ee.a.title},w.a.createElement("div",{className:ee.a.titleLeft},w.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(null===e||void 0===e?void 0:e.identifier,"/challenges"),target:"_blank"},w.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})))),w.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},w.a.createElement("span",{className:ee.a.description,dangerouslySetInnerHTML:{__html:e.description}})),w.a.createElement("div",{className:"flex-wrp mt15"},e.challenge_names.map((function(e,t){return w.a.createElement("span",{key:t,className:"mr30 font12"},"\u7b2c",t+1,"\u5173 ",e," ")}))),w.a.createElement(P["a"],{dashed:!0}),w.a.createElement("div",{className:"c-light-black mt20 font12"},w.a.createElement("span",null,e.author_name),w.a.createElement("span",{className:"ml15 mr15"},"|"),w.a.createElement("span",null,e.author_school_name),w.a.createElement("span",{className:"ml15 mr15"},"|"),w.a.createElement("span",null,"\u96be\u5ea6\u7cfb\u6570:",e.level),w.a.createElement("span",{className:"ml15 mr15"},"|"),w.a.createElement("span",null,"\u5b66\u4e60\u4eba\u6570:"),w.a.createElement("span",null,e.study_count))))})),w.a.createElement("p",null)),w.a.createElement("div",{className:"tc"},w.a.createElement(C["a"],{current:O.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:null===d||void 0===d?void 0:d.shixuns_count,onChange:function(e){O.page=e,r({type:"classroomList/getShixunLists",payload:Object(l["a"])({},O)})}})))},ie=Object(S["a"])((function(e){var t=e.classroomList,n=e.loading;return{classroomList:t,loading:n}}))(re),oe=n("NLgs"),ae=n("xKgJ"),se=(n("MXD1"),n("CFYs")),ce=n("qHKi"),ue=n.n(ce),le=function(e){var t=e.data,n=void 0===t?{}:t,r=e.dispatch,i=void 0===r?function(){}:r,o=e.onReloadData,c=void 0===o?function(){}:o,l=function(){if(Object(oe["c"])(i)&&!Object(ae["p"])()){for(var e,t=0;t<(null===n||void 0===n||null===(r=n.stages)||void 0===r?void 0:r.length);t++){var r,o,a,s=null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o[t],c=null===s||void 0===s||null===(a=s.shixuns_list)||void 0===a?void 0:a.find((function(e){return"\u6682\u672a\u516c\u5f00"!==(null===e||void 0===e?void 0:e.shixun_status)}));if(c){e=c.identifier;break}}e?g(e):f["b"].info("\u5b9e\u8bad\u6682\u672a\u516c\u5f00!")}},p=function e(t){var n;t=(null===(n=t)||void 0===n?void 0:n.includes(".json"))?t:"".concat(t,".json"),d["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!"),onOk:function(){var n=Object(v["a"])(m.a.mark((function n(){var r,i;return m.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(k["db"])({url:t});case 2:if(r=n.sent,r){n.next=5;break}return n.abrupt("return");case 5:return f["b"].success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.next=8,Object(k["w"])({id:r.shixun_identifier});case 8:if(i=n.sent,!(null===i||void 0===i?void 0:i.game_identifier)){n.next=13;break}return Object(O["w"])("/tasks/".concat(i.game_identifier)),c(),n.abrupt("return");case 13:2===(null===i||void 0===i?void 0:i.status)?e(null===i||void 0===i?void 0:i.message):3===(null===i||void 0===i?void 0:i.status)&&h(null===i||void 0===i?void 0:i.message);case 14:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},h=function(e){d["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u76ee\u524d\u8be5\u5b9e\u8bad\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",e,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01")})},g=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(k["w"])({id:t});case 2:if(n=e.sent,!(null===n||void 0===n?void 0:n.game_identifier)){e.next=7;break}return Object(O["w"])("/tasks/".concat(n.game_identifier)),c(),e.abrupt("return");case 7:2===(null===n||void 0===n?void 0:n.status)?p(null===n||void 0===n?void 0:n.message):3===(null===n||void 0===n?void 0:n.status)&&h(null===n||void 0===n?void 0:n.message);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return w.a.createElement("section",null,!Object(ae["c"])()&&w.a.createElement(w.a.Fragment,null,(null===n||void 0===n?void 0:n.start_learning)?w.a.createElement("div",{className:ue.a.wrap},w.a.createElement("div",{className:"mt5 ".concat(ue.a.havaLearn)},w.a.createElement("span",null,"\u5df2\u5b66",null===n||void 0===n?void 0:n.learned,"%")),w.a.createElement("div",{className:"mt5 ".concat(ue.a.progress)},w.a.createElement(se["a"],{percent:null===n||void 0===n?void 0:n.learned,showInfo:!1})),w.a.createElement("div",{className:"mt5"},w.a.createElement("span",{className:"font16"},"\u4e0a\u6b21\u5b66\u4e60\u5185\u5bb9"),w.a.createElement("span",{className:"ml20 c-blue-4ca"},null===n||void 0===n?void 0:n.last_shixun))):w.a.createElement(a["a"],{className:ue.a.wrap,align:"middle"},w.a.createElement(u["a"],{flex:"1"},w.a.createElement("span",{className:ue.a.name},"\u8fd8\u672a\u5f00\u59cb\u5b66\u4e60")),w.a.createElement(u["a"],null,w.a.createElement(s["a"],{className:ue.a.button,type:"primary",onClick:l},"\u5f00\u59cb\u5b66\u4e60")))))},pe=le,fe=n("V0Rq"),de=n("sBCT"),he=function(e){var t=e.classroomList,h=e.user,S=(e.globalSetting,e.loading,e.dispatch),A=(Object(b["a"])(e,["classroomList","user","globalSetting","loading","dispatch"]),Object(x["m"])()),I=Object(_["useState"])([]),C=Object(y["a"])(I,2),P=C[0],N=C[1],L=Object(_["useState"])({}),M=Object(y["a"])(L,2),U=M[0],F=M[1],z=Object(_["useState"])(-1),X=Object(y["a"])(z,2),G=X[0],V=X[1],K=Object(_["useState"])(!1),J=Object(y["a"])(K,2),Q=J[0],Z=J[1],ee=Object(_["useState"])({name:"",is_jupyter:!1}),te=Object(y["a"])(ee,2),ne=te[0],re=te[1],se=g["a"].useForm(),ce=Object(y["a"])(se,1),ue=ce[0],le=g["a"].useForm(),he=Object(y["a"])(le,1),me=he[0],ve=Object(_["useState"])(),ge=Object(y["a"])(ve,2),ye=ge[0],be=ge[1],_e=Object(_["useState"])([]),we=Object(y["a"])(_e,2),xe=we[0],Ee=we[1],Se=Object(_["useState"])(),Te=Object(y["a"])(Se,2),ke=Te[0],Oe=Te[1];Object(_["useEffect"])((function(){Me()}),[null===A||void 0===A?void 0:A.coursesId]),Object(_["useEffect"])((function(){"\u76ee\u5f55\u91cd\u547d\u540d\u6210\u529f"===t.actionTabs.key&&Me()}),[t.actionTabs.key]);var Ae=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return S({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff0c\u8bf7\u7a0d\u540e..."}}),e.next=3,Object(k["w"])({id:t});case 3:if(n=e.sent,S({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(null===n||void 0===n?void 0:n.game_identifier)){e.next=8;break}return Object(O["w"])("/tasks/".concat(n.game_identifier)),e.abrupt("return");case 8:2===(null===n||void 0===n?void 0:n.status)?je(null===n||void 0===n?void 0:n.message):3===(null===n||void 0===n?void 0:n.status)&&Ie(null===n||void 0===n?void 0:n.message);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),je=function e(t){var n;t=(null===(n=t)||void 0===n?void 0:n.includes(".json"))?t:"".concat(t,".json"),d["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!"),onOk:function(){var n=Object(v["a"])(m.a.mark((function n(){var r,i;return m.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(fe["G"])({url:t});case 2:if(r=n.sent,r){n.next=5;break}return n.abrupt("return");case 5:return f["b"].success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.next=8,Object(k["w"])({id:r.shixun_identifier});case 8:if(i=n.sent,!(null===i||void 0===i?void 0:i.game_identifier)){n.next=12;break}return Object(O["w"])("/tasks/".concat(i.game_identifier)),n.abrupt("return");case 12:2===(null===i||void 0===i?void 0:i.status)?e(null===i||void 0===i?void 0:i.message):3===(null===i||void 0===i?void 0:i.status)&&Ie(null===i||void 0===i?void 0:i.message);case 13:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},Ie=function(e){d["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u76ee\u524d\u8be5\u5b9e\u8bad\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",e,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01")})},Ce=function(){var e={shixuns_list:[]};Ne(P.length,e),N([].concat(Object(p["a"])(P),[e])),be(!0)},Pe=function(){G===P.length-1&&ye&&(We(),N(P.filter((function(e,t){return t!==P.length-1})))),Me(),V(-1)},Ne=function(e,t){He()&&(V(e),ue.setFieldsValue({name:t.stage_name,description:t.stage_description}))},Le=function(e){P[G]["shixuns_list"]=P[G]["shixuns_list"].concat(e),N(Object(p["a"])(P))},De=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,H(Object(l["a"])({id:P[G]["stage_id"],course_id:A.coursesId},t));case 2:return n=e.sent,n.id&&(Oe(!1),r=[Object(l["a"])({},n)],P[G]["shixuns_list"]=P[G]["shixuns_list"].concat(r),N(Object(p["a"])(P))),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Me=function(){var e=Object(v["a"])(m.a.mark((function e(){var t;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D({coursesId:null===A||void 0===A?void 0:A.coursesId});case 2:t=e.sent,(null===t||void 0===t?void 0:t.stages)&&N((null===t||void 0===t?void 0:t.stages)?Object(p["a"])(null===t||void 0===t?void 0:t.stages):[]),F(t?Object(l["a"])({},t):{}),We(),V(-1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Re=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n,r,i;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===t||void 0===t?void 0:t.name){e.next=2;break}return e.abrupt("return",f["b"].info("\u8bf7\u5148\u8f93\u5165\u7ae0\u8282\u540d\u79f0\uff01"));case 2:if(We(),n=[],P[G]["shixuns_list"].map((function(e){"Shixun"===e.item_type?n.push({type:"Shixun",id:e.id}):n.push({type:"VideoItem",id:e.id})})),!ye){e.next=12;break}return e.next=8,B(Object(l["a"])(Object(l["a"])({},t),{},{coursesId:A.coursesId,list:n}));case 8:r=e.sent,r&&(P[G]=Object(l["a"])(Object(l["a"])({},P[G]),r)),e.next=16;break;case 12:return e.next=14,R(Object(l["a"])(Object(l["a"])({},t),{},{id:P[G]["stage_id"],list:n}));case 14:i=e.sent,i&&(P[G]=Object(l["a"])(Object(l["a"])({},P[G]),i));case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ue=function(e,t,n){var r=Array.from(e),i=r.splice(t,1),o=Object(y["a"])(i,1),a=o[0];return r.splice(n,0,a),r},Be=function(e){d["a"].confirm({centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",title:"\u63d0\u793a",content:"\u786e\u5b9a\u5220\u9664\u8be5\u5b9e\u8bad\u5417\uff1f",onOk:function(){P[G]["shixuns_list"].splice(e,1),f["b"].success("\u5220\u9664\u6210\u529f"),N(Object(p["a"])(P)),Re(ue.getFieldsValue())}})},Fe=function(e){d["a"].confirm({centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",title:"\u63d0\u793a",content:"\u786e\u5b9a\u5220\u9664\u8be5\u7ae0\u8282\u5417\uff1f",onOk:function(){var t=Object(v["a"])(m.a.mark((function t(){var n;return m.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$({id:e});case 2:n=t.sent,0===n.status&&(V(-1),f["b"].success("\u5220\u9664\u6210\u529f"),Me());case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})},qe=function(){re({name:"",is_jupyter:!1}),me.setFieldsValue({name:"",is_jupyter:!1}),Z(!1)},ze=function(e){if(e.destination){var t=Ue(P[G]["shixuns_list"],e.source.index,e.destination.index);P[G]["shixuns_list"]=t,N(Object(p["a"])(P)),Re(ue.getFieldsValue())}},Xe=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(He()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,W({id:t});case 4:n=e.sent,0===n.status&&Me();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ge=function(){var e=Object(v["a"])(m.a.mark((function e(t){var n;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(He()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Y({id:t});case 4:n=e.sent,0===n.status&&Me();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),He=function(){return-1===G||(d["a"].info({centered:!0,width:400,okText:"\u77e5\u9053\u5566",icon:null,title:"\u63d0\u793a",content:w.a.createElement("div",{className:"tc font14"},"\u5f53\u524d\u5355\u5143\u6709\u672a\u4fdd\u5b58\u7684\u4fee\u6539\u8bb0\u5f55\uff0c\u8bf7\u5148\u4fdd\u5b58\uff01"),onOk:function(){var e="Edit_".concat(G),t=document.getElementById(e);t&&setTimeout((function(){return t.scrollIntoView({block:"start",behavior:"smooth"})}))}}),!1)},Ve=function(){Re(ue.getFieldsValue())},We=function(){be(!1)},Ke=function(e,t,n){return w.a.createElement(a["a"],{className:"list-item-row",align:"middle",key:t,gutter:[5,10]},w.a.createElement(u["a"],null,"Shixun"===e.item_type?w.a.createElement("i",{className:"iconfont icon-shixun2 c-light-primary font20"}):w.a.createElement("i",{className:"iconfont icon-shipin c-purple-8C1 font20"})),w.a.createElement(u["a"],{flex:1,className:e.allow_visit||e.to_be_built||"\u6682\u672a\u516c\u5f00"!==e.shixun_status&&"\u5df2\u5220\u9664"!==e.shixun_status?"":j.a.color204},n+1,"-",t+1,"\xa0\xa0",e.name,-1===G&&1===e.complete_status&&w.a.createElement("span",{className:j.a.completed},w.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5df2\u5b8c\u6210")),w.a.createElement(u["a"],null,G===n&&w.a.createElement("div",null,w.a.createElement(c["a"],{title:"\u5220\u9664"},w.a.createElement("span",{onClick:function(){Be(t)},className:"iconfont icon-shanchu c-grey-c"}))),G!==n&&"VideoItem"===e.item_type&&w.a.createElement("aside",null,w.a.createElement(s["a"],{type:"primary",href:e.link||"/video/".concat(e.id,"?course_id=").concat(A.coursesId),target:"_blank"},e.last_point>0?"\u7ee7\u7eed\u5b66\u4e60":"\u5f00\u59cb\u5b66\u4e60")),(e.allow_visit||e.to_be_built||"\u6682\u672a\u516c\u5f00"!==e.shixun_status&&"\u5df2\u5220\u9664"!==e.shixun_status)&&G!==n&&"Shixun"===e.item_type&&w.a.createElement("aside",null,w.a.createElement(E["Link"],{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank"},"\u67e5\u770b\u8be6\u60c5"),"\u6682\u672a\u516c\u5f00"!==e.shixun_status&&w.a.createElement(s["a"],{className:"ml20",type:"primary",onClick:function(){Object(oe["c"])(S)&&Ae(e.identifier)}},"\u5f00\u59cb\u5b9e\u6218")),-1===G&&!e.allow_visit&&"\u6682\u672a\u516c\u5f00"===e.shixun_status&&w.a.createElement("span",{className:j.a.color204},"\u6682\u672a\u516c\u5f00"),-1===G&&!e.allow_visit&&"\u5df2\u5220\u9664"===e.shixun_status&&w.a.createElement("span",{className:j.a.color204},"\u5df2\u5220\u9664"),-1===G&&e.allow_visit&&"Shixun"===e.item_type&&w.a.createElement("span",{className:"".concat(j.a.color204," ml5 experiment-number")},"\u5b9e\u9a8c\u6570 ",e.challenges_count)))},Ye=function(e,t){var r,l;return w.a.createElement("section",{key:t,className:"bg-white pt30 mb20"},w.a.createElement("aside",{className:"pl20 pr20"},w.a.createElement(a["a"],{gutter:[5,20],align:"middle"},w.a.createElement(u["a"],{flex:"22px"},w.a.createElement("span",{className:j.a.icons},w.a.createElement("img",{src:n("JWDV")}))),w.a.createElement(u["a"],{flex:1,className:"tl font18 bold c-grey-333"},e.stage_name||"\u7b2c".concat(null===P||void 0===P?void 0:P.length,"\u90e8\u5206")),w.a.createElement(u["a"],null,Object(ae["c"])()&&G===t&&!ye&&w.a.createElement(c["a"],{title:"\u5220\u9664"},w.a.createElement("span",{onClick:function(){Fe(e.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),Object(ae["c"])()&&G!==t&&w.a.createElement("div",null,t>0&&w.a.createElement(c["a"],{title:"\u5411\u4e0a\u79fb\u52a8"},w.a.createElement("span",{onClick:function(){return Xe(e.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),t<P.length-1&&w.a.createElement(c["a"],{title:"\u5411\u4e0b\u79fb\u52a8"},w.a.createElement("span",{onClick:function(){return Ge(e.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),!ye&&w.a.createElement(c["a"],{title:"\u7f16\u8f91"},w.a.createElement("span",{onClick:function(){return Ne(t,e)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),w.a.createElement(a["a"],{gutter:[5,20]},w.a.createElement(u["a"],{span:24},w.a.createElement("div",{dangerouslySetInnerHTML:{__html:null===(r=e.stage_description)||void 0===r?void 0:r.replace(/[\r|\n]/gi,"<br/>")}})))),G===t&&w.a.createElement("div",{className:"pl20 pr20"},w.a.createElement("aside",null,w.a.createElement(g["a"].Item,{name:"name",label:"\u540d\u79f0",rules:[{required:!0,message:"\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"}]},w.a.createElement(o["a"],{size:"large",maxLength:60,placeholder:"\u8bf7\u8f93\u5165\u7b2c".concat(null===P||void 0===P?void 0:P.length,"\u9636\u6bb5\u540d\u79f0,\u6700\u5927\u9650\u523660\u4e2a\u5b57\u7b26"),onBlur:Ve})),w.a.createElement(g["a"].Item,{name:"description",label:"\u63cf\u8ff0",rules:[{required:!0,message:"\u63cf\u8ff0\u4e0d\u80fd\u4e3a\u7a7a"}]},w.a.createElement(o["a"].TextArea,{rows:5,maxLength:300,placeholder:"\u8bf7\u8f93\u5165\u7b2c".concat(null===P||void 0===P?void 0:P.length,"\u9636\u6bb5\u63cf\u8ff0"),onBlur:Ve}))),w.a.createElement("aside",null,w.a.createElement(s["a"],{size:"large",className:"mt20",onClick:function(){if(!P[G]["stage_id"])return f["b"].info("\u8bf7\u5148\u8f93\u5165\u7ae0\u8282\u540d\u79f0\uff01");Object(oe["c"])(S)&&Object(oe["a"])()&&(Z(!0),me.setFieldsValue({name:"",is_jupyter:!1}))}},w.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65b0\u5efa\u5b9e\u8bad\u9879\u76ee"),w.a.createElement("br",null),w.a.createElement(s["a"],{size:"large",className:"mt10",onClick:function(){var t;if(!P[G]["stage_id"])return f["b"].info("\u8bf7\u5148\u8f93\u5165\u7ae0\u8282\u540d\u79f0\uff01");S({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5b9e\u8bad\u9879\u76ee",id:P[G]["stage_id"],course_id:A.coursesId}}),Ee(null===e||void 0===e||null===(t=e.shixuns_list)||void 0===t?void 0:t.map((function(e){return e.id})))}},w.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5b9e\u8bad\u9879\u76ee"),w.a.createElement("br",null),w.a.createElement(s["a"],{size:"large",className:"mt10",onClick:function(){var e,t;if(!P[G]["stage_id"])return f["b"].info("\u8bf7\u5148\u8f93\u5165\u7ae0\u8282\u540d\u79f0\uff01");((null===(e=h.userInfo)||void 0===e?void 0:e.admin)||(null===(t=h.userInfo)||void 0===t?void 0:t.is_teacher)&&Object(oe["b"])())&&Oe(!0)}},w.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65b0\u5efa\u89c6\u9891\u9879\u76ee")),w.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(t)},"\u4e0b\u9762\u5b9e\u8bad\u53ef\u4ee5\u901a\u8fc7\u62d6\u62fd\u8fdb\u884c\u6392\u5e8f\u8c03\u6574")),w.a.createElement("aside",{className:j.a.shixuns},G>-1?w.a.createElement(T["a"],{onDragEnd:ze},w.a.createElement(T["c"],{droppableId:"droppable-id"},(function(n,r){var o;return w.a.createElement("div",Object(i["a"])({className:"mt20",ref:n.innerRef},n.droppableProps,{onScroll:function(){}}),null===(o=e.shixuns_list)||void 0===o?void 0:o.map((function(e,n){var r;return w.a.createElement(T["b"],{draggableId:"".concat(null===(r=e.id)||void 0===r?void 0:r.toString(),"-").concat(t,"-").concat(n),index:n,key:e.id},(function(r,o){return w.a.createElement("div",Object(i["a"])({ref:r.innerRef},r.draggableProps,r.dragHandleProps),Ke(e,n,t))}))})))}))):w.a.createElement("div",{className:"mt20"},null===(l=e.shixuns_list)||void 0===l?void 0:l.map((function(e,n){return w.a.createElement("div",null,Ke(e,n,t))})))),G===t&&w.a.createElement("aside",{className:j.a.buttons},w.a.createElement(s["a"],{onClick:Pe,type:"primary",size:"large",ghost:!0},"\u53d6\u6d88"),w.a.createElement(s["a"],{onClick:Pe,size:"large",type:"primary"},"\u4fdd\u5b58")))};return w.a.createElement("section",{className:"mb50"},w.a.createElement(pe,{data:U,dispatch:S,onReloadData:Me}),w.a.createElement(g["a"],{form:ue,onFinish:Re},null===P||void 0===P?void 0:P.map((function(e,t){return w.a.createElement("div",{key:t},Ye(e,t))}))),Object(ae["c"])()&&!ye&&-1===G&&w.a.createElement("div",{className:j.a.addStage,onClick:Ce},w.a.createElement("span",{className:j.a.color4CA},"+\u70b9\u51fb\u65b0\u5efa\u9636\u6bb5"),"\uff08\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u5b9e\u8bad/\u89c6\u9891\u9879\u76ee\uff0c\u7ec4\u6210\u4e00\u4e2a\u9636\u6bb5\uff09"),w.a.createElement(d["a"],{centered:!0,title:"\u65b0\u5efa\u5b9e\u8bad\u9879\u76ee",visible:Q,onOk:Object(v["a"])(m.a.mark((function e(){var t;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,me.validateFields();case 2:return e.next=4,q(Object(l["a"])({id:P[G]["stage_id"],course_id:A.coursesId},ne));case 4:t=e.sent,qe(),t.id&&(f["b"].success("\u6dfb\u52a0\u6210\u529f"),Le([t]));case 7:case"end":return e.stop()}}),e)}))),onCancel:qe},w.a.createElement(g["a"],{form:me,onValuesChange:function(e){re(Object(l["a"])(Object(l["a"])({},ne),e))}},w.a.createElement(g["a"].Item,{label:"\u5b9e\u8bad\u7c7b\u578b",name:"is_jupyter",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5b9e\u8bad\u7c7b\u578b"}]},w.a.createElement(r["a"].Group,null,w.a.createElement(r["a"],{defaultChecked:!0,value:!1},"\u666e\u901a\u5b9e\u8bad"),w.a.createElement(r["a"],{value:!0},"jupyter\u5b9e\u8bad"))),w.a.createElement(g["a"].Item,{label:"\u5b9e\u8bad\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9e\u8bad\u540d\u79f0"}]},w.a.createElement(o["a"],{suffix:w.a.createElement("span",null,ne.name.length,"/60")})))),w.a.createElement(ie,{shixunIds:xe,cb:Le}),w.a.createElement(de["a"],{visible:ke,onCancel:function(){return Oe(!1)},onOk:De}))};t["default"]=Object(S["a"])((function(e){var t=e.classroomList,n=e.user,r=e.loading,i=e.globalSetting;return{classroomList:t,user:n,globalSetting:i,loading:r.models.index}}))(he)},Aky1:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,i=n("ErOA"),o=n("qGJc"),a=n.n(o),s="";function c(e){u(e)}function u(e){r=new a.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(t){console.log("addFileSuccess: "+t.file.name),e.addFileSuccess&&e.addFileSuccess(t),r.startUpload()},onUploadstarted:function(t){var n=t.file.name;if(t.videoId){var o="/api/users/".concat(s,"/video_auths.json");Object(i["a"])(o,{method:"put",body:{video_id:t.videoId,title:n,file_name:n}}).then((function(n){if(-1!=n.status){var i=n.data,o=i.UploadAuth,a=i.UploadAddress;i.VideoId;r.setUploadAuthAndAddress(t,o,a)}else e.onUploadError&&e.onUploadError(t)}))["catch"]((function(e){r.deleteFile(r._curIndex),r.nextUpload(),console.log(e)}))}else{var a="/api/users/".concat(s,"/video_auths.json"),c="";Object(i["a"])(a,{method:"Post",body:{title:c+n,file_name:c+n}}).then((function(e){if(e){var n=e.data,i=n.UploadAuth,o=n.UploadAddress,a=n.VideoId;r.setUploadAuthAndAddress(t,i,o,a)}}))["catch"]((function(e){r.deleteFile(r._curIndex),r.nextUpload(),console.log(e)})),console.log("\u6587\u4ef6\u5f00\u59cb\u4e0a\u4f20...")}},onUploadSucceed:function(t){e.onUploadSucceed&&e.onUploadSucceed(t),console.log("\u6587\u4ef6\u4e0a\u4f20\u6210\u529f!")},onUploadFailed:function(t,n,r){e.onUploadFailed&&e.onUploadFailed(t),console.log("\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25!")},onUploadCanceled:function(e,t,n){console.log("\u6587\u4ef6\u4e0a\u4f20\u5df2\u6682\u505c!")},onUploadProgress:function(t,n,r){e.onUploadProgress&&e.onUploadProgress(t,n,r);Math.ceil(100*r);console.log("\u6587\u4ef6\u4e0a\u4f20\u4e2d...")},onUploadTokenExpired:function(e){console.log("\u6587\u4ef6\u4e0a\u4f20\u8d85\u65f6!");var t="/api/users/".concat(s,"/video_auths.json");Object(i["a"])(t,{method:"put",body:{video_id:e.videoId}}).then((function(e){var t=e.data,n=t.UploadAuth;r.resumeUploadWithAuth(n)}))["catch"]((function(e){console.log(e)}))},onUploadEnd:function(t){e.onUploadEnd&&e.onUploadEnd(t),console.log("onUploadEnd: uploaded all the files")}}),e.gotUploader&&e.gotUploader(r)}function l(e,t){e&&(s=e),c(t)}},ItnT:function(e,t,n){e.exports={flex_box_center:"flex_box_center___3dVCs",flex_space_between:"flex_space_between___1YbCa",flex_box_vertical_center:"flex_box_vertical_center___1Scgb",flex_box_center_end:"flex_box_center_end___1lZ44",flex_box_column:"flex_box_column___TFbGA",icons:"icons___3Tk_M",shixuns:"shixuns___ekstB",buttons:"buttons___1EjW6",addStage:"addStage___2YNXy",color4CA:"color4CA___1yM78",color204:"color204___2hsO7",completed:"completed___2RFl-"}},JWDV:function(e,t,n){e.exports=n.p+"static/charpter-white.5fa14f93.svg"},NLgs:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h}));n("2qtc");var r=n("kLXV"),i=n("q1tI"),o=n.n(i),a=n("9kvl"),s=n("xKgJ"),c=n("1vsH"),u=n("m3rI"),l=function(e){return!(!p(e)||!f())},p=function(e){return!!Object(s["n"])()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var e,t=Object(a["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.profile_completed)||(r["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:o.a.createElement("div",{className:"tc font16"},"\u60a8\u9700\u8981\u53bb\u5b8c\u5584\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:function(){a["c"].push("/account/profile/edit")}}),!1)},d=function(){var e,t=Object(a["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.professional_certification)||(r["a"].confirm({title:"\u63d0\u793a",centered:!0,content:o.a.createElement("div",{className:"tc"},"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u804c\u4e1a\u8ba4\u8bc1\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:function(){Object(c["w"])("/account/certification")}}),!1)},h=function(){return!!Object(s["a"])()||(r["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:o.a.createElement("div",{className:"tc"},o.a.createElement("p",null,"\u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650"),o.a.createElement("img",{src:"".concat(u["a"].IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),o.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(c["w"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},kwm0:function(e,t,n){e.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj"}},qGJc:function(e,t,n){(function(t){var n;!function(t){window.OSS=t(),e.exports=t()}((function(){var e;return function(){function e(t,r,i){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!c&&u)return n(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=r[s]={exports:{}};t[s][0].call(p.exports,(function(e){return o(t[s][1][e]||e)}),p,p.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s<i.length;s++)o(i[s]);return o}return e}()({1:[function(e,t,n){"use strict";var r=e("./browser/client");r.Buffer=e("buffer").Buffer,r.co=e("co"),r.urllib=e("../shims/xhr"),r.version=e("./browser/version").version,t.exports=r},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(e,t,n){(function(n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return e[t]||e[t.toLowerCase()]}function a(e,t){var n=E.parse(e);if(!n.protocol){var r=t?"https://":"http://";n=E.parse(r+e)}if("http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}function s(e,t,n){var r=n?"https://":"http://",i=t?"-internal.aliyuncs.com":".aliyuncs.com";return"vpc100-oss-cn-"===e.substr(0,"vpc100-oss-cn-".length)&&(i=".aliyuncs.com"),E.parse(r+e+i)}function c(){return document&&document.location&&"https:"===document.location.protocol}function u(e,t){if(!(this instanceof u))return new u(e,t);e&&e.inited?this.options=e:this.options=u.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=O,this.agent=this.options.agent||N),this.ctx=t,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var l=e("babel-runtime/regenerator"),p=i(l),f=e("babel-runtime/core-js/object/keys"),d=i(f),h=e("debug")("ali-oss"),m=e("./../../shims/crypto/crypto.js"),v=e("path"),g=e("copy-to"),y=e("mime"),b=e("xml2js"),_=e("humanize-ms"),w=e("agentkeepalive"),x=e("merge-descriptors"),E=e("url"),S=e("is-type-of"),T=e("platform"),k=e("utility"),O=e("urllib"),A=e("./version"),j=e("dateformat"),I=e("bowser"),C=e("../common/signUtils"),P=e("../common/utils"),N=new w;t.exports=u,u.initOptions=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var t=c(),n={region:"oss-cn-hangzhou",internal:!1,secure:t,bucket:null,endpoint:null,cname:!1};if((0,d["default"])(e).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.accessKeyId=n.accessKeyId.trim(),n.accessKeySecret=n.accessKeySecret.trim(),n.timeout&&(n.timeout=_(n.timeout)),n.endpoint)n.endpoint=a(n.endpoint,n.secure);else{if(!n.region)throw new Error("require options.endpoint or options.region");n.endpoint=s(n.region,n.internal,n.secure)}return n.inited=!0,n};var L=u.prototype;x(L,e("./object")),x(L,e("./managed_upload")),x(L,e("../common/multipart")),x(L,e("../common/thunkpool.js")),u.Wrapper=e("./wrapper"),L.signature=function(e){return h("authorization stringToSign: %s",e),C.computeSignature(this.options.accessKeySecret,e)},L.authorization=function(e,t,n,r){var i=C.buildCanonicalString(e.toUpperCase(),t,{headers:r,parameters:n});return C.authorization(this.options.accessKeyId,this.options.accessKeySecret,i)},L.createRequest=function(e){var t={"x-oss-date":j(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(t["x-oss-security-token"]=this.options.stsToken),g(e.headers).to(t),o(t,"Content-Type")||(e.mime===y.default_type&&(e.mime=""),e.mime&&e.mime.indexOf("/")>0?t["Content-Type"]=e.mime:t["Content-Type"]=y.getType(e.mime||v.extname(e.object||""))||"application/octet-stream"),e.content&&(t["Content-Md5"]=m.createHash("md5").update(new r(e.content,"utf8")).digest("base64"),t["Content-Length"]||(t["Content-Length"]=e.content.length));var n=this._getResource(e);t.authorization=this.authorization(e.method,n,e.subres,t);var i=this._getReqUrl(e);h("request %s %s, with headers %j, !!stream: %s",e.method,i,t,!!e.stream);var a=e.timeout||this.options.timeout;return{url:i,params:{agent:this.agent,method:e.method,content:e.content,stream:e.stream,headers:t,timeout:a,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx}}},L.request=p["default"].mark((function e(t){var n,r,i,o;return p["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.createRequest(t),r=void 0,i=void 0,e.prev=3,e.next=6,this.urllib.request(n.url,n.params);case 6:r=e.sent,h("response %s %s, got %s, headers: %j",t.method,n.url,r.status,r.headers),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),i=e.t0;case 13:if(o=void 0,!r||!t.successStatuses||-1!==t.successStatuses.indexOf(r.status)){e.next=26;break}return e.next=17,this.requestError(r);case 17:if(o=e.sent,"RequestTimeTooSkewed"!==o.code){e.next=23;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,e.next=22,this.request(t);case 22:return e.abrupt("return",e.sent);case 23:o.params=t,e.next=30;break;case 26:if(!i){e.next=30;break}return e.next=29,this.requestError(i);case 29:o=e.sent;case 30:if(!o){e.next=32;break}throw o;case 32:if(!t.xmlResponse){e.next=36;break}return e.next=35,this.parseXML(r.data);case 35:r.data=e.sent;case 36:return e.abrupt("return",r);case 37:case"end":return e.stop()}}),e,this,[[3,10]])})),L._getResource=function(e){var t="/";return e.bucket&&(t+=e.bucket+"/"),e.object&&(t+=e.object),t},L._isIP=function(e){return P._isIP(e)},L._escape=function(e){return k.encodeURIComponent(e).replace(/%2F/g,"/")},L._getReqUrl=function(e){var t={};g(this.options.endpoint).to(t);var n=this._isIP(t.hostname),r=this.options.cname;!e.bucket||r||n||(t.host=e.bucket+"."+t.host);var i="/";e.bucket&&n&&(i+=e.bucket+"/"),e.object&&(i+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=i;var o={};if(e.query&&x(o,e.query),e.subres){var a={};S.string(e.subres)?a[e.subres]="":S.array(e.subres)?e.subres.forEach((function(e){a[e]=""})):a=e.subres,x(o,a)}return t.query=o,E.format(t)},L._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-"+e+"/"+A.version,r=T.description;return!r&&n&&(r="Node.js "+n.version.slice(1)+" on "+n.platform+" "+n.arch),this._checkUserAgent(t+" "+r)},L._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},L.checkBrowserAndVersion=function(e,t){return I.name===e&&I.version.split(".")[0]===t},L.parseXML=function(e){return function(t){r.isBuffer(e)&&(e=e.toString()),b.parseString(e,{explicitRoot:!1,explicitArray:!1},t)}},L.requestError=p["default"].mark((function e(t){var n,r,i,o;return p["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?(n=new Error(t.message),n.name=t.name,n.status=t.status,n.code=t.name):(404===t.status?(n=new Error("Object not exists"),n.name="NoSuchKeyError",n.status=404,n.code="NoSuchKey"):412===t.status?(n=new Error("Pre condition failed"),n.name="PreconditionFailedError",n.status=412,n.code="PreconditionFailed"):(n=new Error("Unknow error, status: "+t.status),n.name="UnknowError",n.status=t.status),n.requestId=t.headers["x-oss-request-id"],n.host=""),e.next=30;break;case 5:return r=String(t.data),h("request response error data: %s",r),i=void 0,e.prev=8,e.next=11,this.parseXML(r)||{};case 11:i=e.sent,e.next=21;break;case 14:return e.prev=14,e.t0=e["catch"](8),h(r),e.t0.message+="\nraw xml: "+r,e.t0.status=t.status,e.t0.requestId=t.headers["x-oss-request-id"],e.abrupt("return",e.t0);case 21:o=i.Message||"unknow request error, status: "+t.status,i.Condition&&(o+=" (condition: "+i.Condition+")"),n=new Error(o),n.name=i.Code?i.Code+"Error":"UnknowError",n.status=t.status,n.code=i.Code,n.requestId=i.RequestId,n.hostId=i.HostId,n.serverTime=i.ServerTime;case 30:return h("generate error %j",n),e.abrupt("return",n);case 32:case"end":return e.stop()}}),e,this,[[8,14]])}))}).call(this,e("_process"),e("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(this instanceof i))return new i(e,t);v.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var o=e("babel-runtime/core-js/array/from"),a=r(o),s=e("babel-runtime/regenerator"),c=r(s),u=e("is-type-of"),l=e("util"),p=e("path"),f=e("mime"),d=e("copy-to"),h=n;h.multipartUpload=c["default"].mark((function e(t,n,r){var i,o,a,s,l,d,h,m,v;return c["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.resetCancelFlag(),r=r||{},!r.checkpoint||!r.checkpoint.uploadId){e.next=6;break}return e.next=5,this._resumeMultipart(r.checkpoint,r);case 5:return e.abrupt("return",e.sent);case 6:return i=102400,r.mime||(u.file(n)?r.mime=f.getType(p.extname(n.name)):u.blob(n)?r.mime=n.type:r.mime=f.getType(p.extname(n))),r.headers=r.headers||{},this._convertMetaToHeaders(r.meta,r.headers),e.next=12,this._getFileSize(n);case 12:if(!((o=e.sent)<i)){e.next=25;break}return a=this._createStream(n,0,o),r.contentLength=o,e.next=18,this.putStream(t,a,r);case 18:if(s=e.sent,!r||!r.progress){e.next=22;break}return e.next=22,r.progress(1);case 22:return l={res:s.res,bucket:this.options.bucket,name:t,etag:s.res.headers.etag},(r.headers&&r.headers["x-oss-callback"]||r.callback)&&(l.data=s.data),e.abrupt("return",l);case 25:if(!(r.partSize&&r.partSize<i)){e.next=27;break}throw new Error("partSize must not be smaller than "+i);case 27:return e.next=29,this.initMultipartUpload(t,r);case 29:if(d=e.sent,h=d.uploadId,m=this._getPartSize(o,r.partSize),v={file:n,name:t,fileSize:o,partSize:m,uploadId:h,doneParts:[]},!r||!r.progress){e.next=36;break}return e.next=36,r.progress(0,v,d.res);case 36:return e.next=38,this._resumeMultipart(v,r);case 38:return e.abrupt("return",e.sent);case 39:case"end":return e.stop()}}),e,this)})),h._resumeMultipart=c["default"].mark((function e(t,n){var r,i,o,s,u,l,p,f,h,m,v,g,y,b,_,w,x,E,S,T,k;return c["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isCancel()){e.next=2;break}throw this._makeCancelEvent();case 2:if(r=t.file,i=t.fileSize,o=t.partSize,s=t.uploadId,u=t.doneParts,l=t.name,p=[],u.length>0&&d(u).to(p),f=this._divideParts(i,o),h=f.length,m=!1,v=c["default"].mark((function e(i,o){var a,d,v;return c["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.isCancel()){e.next=21;break}return e.prev=1,a=f[o-1],d={stream:i._createStream(r,a.start,a.end),size:a.end-a.start},e.next=6,i._uploadPart(l,s,o,d);case 6:if(v=e.sent,i.isCancel()||m){e.next=13;break}if(t.doneParts.push({number:o,etag:v.res.headers.etag}),p.push({number:o,etag:v.res.headers.etag}),!n||!n.progress){e.next=13;break}return e.next=13,n.progress(u.length/h,t,v.res);case 13:e.next=21;break;case 15:if(e.prev=15,e.t0=e["catch"](1),i.isCancel()){e.next=21;break}throw i.cancel(),e.t0.partNum=o,e.t0;case 21:case"end":return e.stop()}}),e,this,[[1,15]])})),g=(0,a["default"])(new Array(h),(function(e,t){return t+1})),y=p.map((function(e){return e.number})),b=g.filter((function(e){return y.indexOf(e)<0})),_=5,w=n.parallel||_,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==w){e.next=26;break}x=0;case 16:if(!(x<b.length)){e.next=24;break}if(!this.isCancel()){e.next=19;break}throw this._makeCancelEvent();case 19:return e.next=21,v(this,b[x]);case 21:x++,e.next=16;break;case 24:e.next=40;break;case 26:for(E=[],S=0;S<b.length;S++)E.push(v(this,b[S]));return e.next=30,this._thunkPool(E,w);case 30:if(T=e.sent,m=!0,!(T&&T.length>0)){e.next=37;break}throw this.resetCancelFlag(),k=T[0],k.message="Failed to upload some parts with error: "+k.toString()+" part_num: "+k.partNum,k;case 37:if(!this.isCancel()){e.next=40;break}throw E=null,this._makeCancelEvent();case 40:return e.next=42,this.completeMultipartUpload(l,s,p,n);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}}),e,this)})),u.file=function(e){return"undefined"!=typeof File&&e instanceof File},u.blob=function(e){return"undefined"!=typeof Blob&&e instanceof Blob},h._getFileSize=c["default"].mark((function e(t){var n;return c["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.buffer(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!u.blob(t)&&!u.file(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:if(!u.string(t)){e.next=11;break}return e.next=9,this._statFile(t);case 9:return n=e.sent,e.abrupt("return",n.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return e.stop()}}),e,this)}));var m=e("stream"),v=m.Readable;l.inherits(i,v),i.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.start<this.fileBuffer.length;){var n=this.start,r=n+e;r=r>this.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(n,r))}},i.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);e=e||16384;var n=this;this.reader.onload=function(r){n.fileBuffer=new t(new Uint8Array(r.target.result)),n.file=null,n.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},h._createStream=function(e,t,n){if(u.blob(e)||u.file(e))return new i(e.slice(t,n));throw new Error("_createStream requires File/String.")},h._getPartSize=function(e,t){return t?Math.max(Math.ceil(e/1e4),t):1048576},h._divideParts=function(e,t){for(var n=Math.ceil(e/t),r=[],i=0;i<n;i++){var o=t*i,a=Math.min(o+t,e);r.push({start:o,end:a})}return r},h._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/object/keys"),o=r(i),a=e("babel-runtime/regenerator"),s=r(a),c=e("debug")("ali-oss:object"),u=e("utility"),l=e("fs"),p=e("is-type-of"),f=e("url"),d=e("copy-to"),h=e("path"),m=e("mime"),v=e("../common/callback"),g=e("../common/signUtils"),y=n;y.append=s["default"].mark((function e(t,n,r){var i;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},void 0===r.position&&(r.position="0"),r.subres={append:"",position:r.position},r.method="POST",e.next=6,this.put(t,n,r);case 6:return i=e.sent,i.nextAppendPosition=i.res.headers["x-oss-next-append-position"],e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)})),y.put=s["default"].mark((function e(t,n,r){var i,o,a,c,u,l;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,r=r||{},!p.buffer(n)){e.next=6;break}i=n,e.next=18;break;case 6:if(!p.blob(n)&&!p.file(n)){e.next=17;break}return r.mime||(p.file(n)?r.mime=m.getType(h.extname(n.name)):r.mime=n.type),o=this._createStream(n,0,n.size),e.next=11,this._getFileSize(n);case 11:return r.contentLength=e.sent,e.next=14,this.putStream(t,o,r);case 14:return e.abrupt("return",e.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return r.headers=r.headers||{},this._convertMetaToHeaders(r.meta,r.headers),a=r.method||"PUT",c=this._objectRequestParams(a,t,r),v.encodeCallback(c,r),c.mime=r.mime,c.content=i,c.successStatuses=[200],e.next=28,this.request(c);case 28:return u=e.sent,l={name:t,url:this._objectUrl(t),res:u.res},c.headers&&c.headers["x-oss-callback"]&&(l.data=JSON.parse(u.data.toString())),e.abrupt("return",l);case 32:case"end":return e.stop()}}),e,this)})),y.putStream=s["default"].mark((function e(t,n,r){var i,o,a,c;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},r.headers=r.headers||{},r.contentLength?r.headers["Content-Length"]=r.contentLength:r.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(r.meta,r.headers),i=r.method||"PUT",o=this._objectRequestParams(i,t,r),v.encodeCallback(o,r),o.mime=r.mime,o.stream=n,o.successStatuses=[200],e.next=12,this.request(o);case 12:return a=e.sent,c={name:t,url:this._objectUrl(t),res:a.res},o.headers&&o.headers["x-oss-callback"]&&(c.data=JSON.parse(a.data.toString())),e.abrupt("return",c);case 16:case"end":return e.stop()}}),e,this)})),y.head=s["default"].mark((function e(t,n){var r,i,a;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._objectRequestParams("HEAD",t,n),r.successStatuses=[200,304],e.next=4,this.request(r);case 4:return i=e.sent,a={meta:null,res:i.res,status:i.status},200===i.status&&(0,o["default"])(i.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(a.meta||(a.meta={}),a.meta[e.substring(11)]=i.headers[e])})),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e,this)})),y.get=s["default"].mark((function e(t,n,r){var i,o,a,u;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null,o=!1,p.writableStream(n)?i=n:p.string(n)?(i=l.createWriteStream(n),o=!0):r=n,r=r||{},r.process&&(r.subres=r.subres||{},r.subres["x-oss-process"]=r.process),a=void 0,e.prev=6,u=this._objectRequestParams("GET",t,r),u.writeStream=i,u.successStatuses=[200,206,304],e.next=12,this.request(u);case 12:a=e.sent,o&&i.destroy(),e.next=24;break;case 16:if(e.prev=16,e.t0=e["catch"](6),!o){e.next=23;break}return i.destroy(),c("get error: %s, delete the exists file %s",e.t0,n),e.next=23,this._deleteFileSafe(n);case 23:throw e.t0;case 24:return e.abrupt("return",{res:a.res,content:a.data});case 25:case"end":return e.stop()}}),e,this,[[6,16]])})),y.getStream=s["default"].mark((function e(t,n){var r,i;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},r=this._objectRequestParams("GET",t,n),r.customResponse=!0,r.successStatuses=[200,206,304],e.next=6,this.request(r);case 6:return i=e.sent,e.abrupt("return",{stream:i.res,res:{status:i.status,headers:i.headers}});case 8:case"end":return e.stop()}}),e,this)})),y["delete"]=s["default"].mark((function e(t,n){var r,i;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._objectRequestParams("DELETE",t,n),r.successStatuses=[204],e.next=4,this.request(r);case 4:return i=e.sent,e.abrupt("return",{res:i.res});case 6:case"end":return e.stop()}}),e,this)})),y.deleteMulti=s["default"].mark((function e(t,n){var r,i,o,a,l,p;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=n||{},r='<?xml version="1.0" encoding="UTF-8"?>\n<Delete>\n',n.quiet?r+=" <Quiet>true</Quiet>\n":r+=" <Quiet>false</Quiet>\n",i=0;i<t.length;i++)r+=" <Object><Key>"+u.escape(this._objectName(t[i]))+"</Key></Object>\n";return r+="</Delete>",c("delete multi objects: %s",r),n.subres="delete",o=this._objectRequestParams("POST","",n),o.mime="xml",o.content=r,o.xmlResponse=!0,o.successStatuses=[200],e.next=14,this.request(o);case 14:return a=e.sent,l=a.data,p=l&&l.Deleted||null,p&&(Array.isArray(p)||(p=[p]),p=p.map((function(e){return e.Key}))),e.abrupt("return",{res:a.res,deleted:p});case 19:case"end":return e.stop()}}),e,this)})),y.copy=s["default"].mark((function e(t,n,r){var i,a,c;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},r.headers=r.headers||{},(0,o["default"])(r.headers).forEach((function(e){r.headers["x-oss-copy-source-"+e.toLowerCase()]=r.headers[e]})),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),n="/"!==n[0]?"/"+this.options.bucket+"/"+encodeURIComponent(n):"/"+encodeURIComponent(n.slice(1)),r.headers["x-oss-copy-source"]=n,i=this._objectRequestParams("PUT",t,r),i.xmlResponse=!0,i.successStatuses=[200,304],e.next=12,this.request(i);case 12:return a=e.sent,c=a.data,c&&(c={etag:c.ETag,lastModified:c.LastModified}),e.abrupt("return",{data:c,res:a.res});case 16:case"end":return e.stop()}}),e,this)})),y.putMeta=s["default"].mark((function e(t,n,r){return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.copy(t,t,{meta:n||{},timeout:r&&r.timeout,ctx:r&&r.ctx});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})),y.list=s["default"].mark((function e(t,n){var r,i,o,a,c;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._objectRequestParams("GET","",n),r.query=t,r.xmlResponse=!0,r.successStatuses=[200],e.next=6,this.request(r);case 6:return i=e.sent,o=i.data.Contents,a=this,o&&(Array.isArray(o)||(o=[o]),o=o.map((function(e){return{name:e.Key,url:a._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),c=i.data.CommonPrefixes||null,c&&(Array.isArray(c)||(c=[c]),c=c.map((function(e){return e.Prefix}))),e.abrupt("return",{res:i.res,objects:o,prefixes:c,nextMarker:i.data.NextMarker||null,isTruncated:"true"===i.data.IsTruncated});case 13:case"end":return e.stop()}}),e,this)})),y.putACL=s["default"].mark((function e(t,n,r){var i,o;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},r.subres="acl",r.headers=r.headers||{},r.headers["x-oss-object-acl"]=n,t=this._objectName(t),i=this._objectRequestParams("PUT",t,r),i.successStatuses=[200],e.next=9,this.request(i);case 9:return o=e.sent,e.abrupt("return",{res:o.res});case 11:case"end":return e.stop()}}),e,this)})),y.getACL=s["default"].mark((function e(t,n){var r,i;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},n.subres="acl",t=this._objectName(t),r=this._objectRequestParams("GET",t,n),r.successStatuses=[200],r.xmlResponse=!0,e.next=8,this.request(r);case 8:return i=e.sent,e.abrupt("return",{acl:i.data.AccessControlList.Grant,owner:{id:i.data.Owner.ID,displayName:i.data.Owner.DisplayName},res:i.res});case 10:case"end":return e.stop()}}),e,this)})),y.restore=s["default"].mark((function e(t,n){var r,i;return s["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},n.subres="restore",r=this._objectRequestParams("POST",t,n),r.successStatuses=[202],e.next=6,this.request(r);case 6:return i=e.sent,e.abrupt("return",{res:i.res});case 8:case"end":return e.stop()}}),e,this)})),y.signatureUrl=function(e,t){t=t||{},e=this._objectName(e),t.method=t.method||"GET";var n=u.timestamp()+(t.expires||1800),r={bucket:this.options.bucket,object:e},i=this._getResource(r);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var o=g._signatureForURL(this.options.accessKeySecret,t,i,n),a=f.parse(this._getReqUrl(r));return a.query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:o.Signature},d(o.subResource).to(a.query),a.format()},y.getObjectUrl=function(e,t){return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))},y._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},y.generateObjectUrl=function(e,t){if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var n=f.parse(t),r=this.options.bucket;n.hostname=r+"."+n.hostname,n.host=r+"."+n.host,t=n.format()}return t+this._escape(this._objectName(e))},y._objectRequestParams=function(e,t,n){if(!this.options.bucket)throw new Error("Please create a bucket first");n=n||{},t=this._objectName(t);var r={object:t,bucket:this.options.bucket,method:e,subres:n&&n.subres,timeout:n&&n.timeout,ctx:n&&n.ctx};return n.headers&&(r.headers={},d(n.headers).to(r.headers)),r},y._objectName=function(e){return e.replace(/^\/+/,"")},y._statFile=function(e){return function(t){l.stat(e,t)}},y._convertMetaToHeaders=function(e,t){e&&(0,o["default"])(e).forEach((function(n){t["x-oss-meta-"+n]=e[n]}))},y._deleteFileSafe=function(e){return function(t){l.exists(e,(function(n){n?l.unlink(e,(function(n){n&&c("unlink %j error: %s",e,n),t()})):t()}))}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(e,t,n){"use strict";n.version="5.3.1"},{}],6:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e&&"function"==typeof e.next&&"function"==typeof e["throw"]}function o(e){if(!e)return!1;var t=e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName||i(t.prototype)||i(e.prototype))}function a(e,t){var n=new e(t),r=(0,p["default"])(n),i=(0,p["default"])((0,u["default"])(n));r.concat(i).forEach((function(e){o(n[e])?this[e]=f.wrap(n[e]).bind(n):this[e]=n[e]}),this)}function s(e){if(!(this instanceof s))return new s(e);a.call(this,d,e)}var c=e("babel-runtime/core-js/object/get-prototype-of"),u=r(c),l=e("babel-runtime/core-js/object/keys"),p=r(l),f=e("co"),d=e("./client");t.exports=s,s.STS=function e(t){if(!(this instanceof e))return new e(t);a.call(this,d.STS,t)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/object/keys"),o=r(i),a=e("babel-runtime/core-js/json/stringify"),s=r(a);n.encodeCallback=function(e,n){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&n.callback){var r={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(r.callbackHost=n.callback.host),n.callback.contentType&&(r.callbackBodyType=n.callback.contentType);var i=new t((0,s["default"])(r)).toString("base64");if(e.headers["x-oss-callback"]=i,n.callback.customValue){var a={};(0,o["default"])(n.callback.customValue).forEach((function(e){a["x:"+e]=n.callback.customValue[e]})),e.headers["x-oss-callback-var"]=new t((0,s["default"])(a)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=e("copy-to"),a=e("./callback"),s=n;s.listUploads=i["default"].mark((function e(t,n){var r,a,s,c;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},r={},o(n).to(r),r.subres="uploads",a=this._objectRequestParams("GET","",r),a.query=t,a.xmlResponse=!0,a.successStatuses=[200],e.next=10,this.request(a);case 10:return s=e.sent,c=s.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map((function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}})),e.abrupt("return",{res:s.res,uploads:c,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:"true"===s.data.IsTruncated});case 15:case"end":return e.stop()}}),e,this)})),s.listParts=i["default"].mark((function e(t,n,r,a){var s,c,u;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},s={},o(a).to(s),s.subres={uploadId:n},c=this._objectRequestParams("GET",t,s),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],e.next=10,this.request(c);case 10:return u=e.sent,e.abrupt("return",{res:u.res,uploadId:u.data.UploadId,bucket:u.data.Bucket,name:u.data.Key,partNumberMarker:u.data.PartNumberMarker,nextPartNumberMarker:u.data.NextPartNumberMarker,maxParts:u.data.MaxParts,isTruncated:u.data.IsTruncated,parts:u.data.Part||[]});case 12:case"end":return e.stop()}}),e,this)})),s.abortMultipartUpload=i["default"].mark((function e(t,n,r){var a,s,c;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.cancel(),r=r||{},a={},o(r).to(a),a.subres={uploadId:n},s=this._objectRequestParams("DELETE",t,a),s.successStatuses=[204],e.next=9,this.request(s);case 9:return c=e.sent,e.abrupt("return",{res:c.res});case 11:case"end":return e.stop()}}),e,this)})),s.initMultipartUpload=i["default"].mark((function e(t,n){var r,a,s;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},r={},o(n).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(n.meta,r.headers),r.subres="uploads",a=this._objectRequestParams("POST",t,r),a.mime=n.mime,a.xmlResponse=!0,a.successStatuses=[200],e.next=12,this.request(a);case 12:return s=e.sent,e.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return e.stop()}}),e,this)})),s.uploadPart=i["default"].mark((function e(t,n,r,o,a,s,c){var u;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u={stream:this._createStream(o,a,s),size:s-a},e.next=3,this._uploadPart(t,n,r,u,c);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})),s.completeMultipartUpload=i["default"].mark((function e(t,n,r,s){var c,u,l,p,f,d,h,m;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(c=r.concat().sort((function(e,t){return e.number-t.number})).filter((function(e,t,n){return!t||e.number!==n[t-1].number})),u='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',l=0;l<c.length;l++)p=c[l],u+="<Part>\n",u+="<PartNumber>"+p.number+"</PartNumber>\n",u+="<ETag>"+p.etag+"</ETag>\n",u+="</Part>\n";return u+="</CompleteMultipartUpload>",s=s||{},f={},o(s).to(f),f.subres={uploadId:n},d=this._objectRequestParams("POST",t,f),a.encodeCallback(d,f),d.mime="xml",d.content=u,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],e.next=16,this.request(d);case 16:return h=e.sent,m={res:h.res,bucket:d.bucket,name:t,etag:h.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(m.data=JSON.parse(h.data.toString())),e.abrupt("return",m);case 20:case"end":return e.stop()}}),e,this)})),s._uploadPart=i["default"].mark((function e(t,n,r,a,s){var c,u,l;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=s||{},c={},o(s).to(c),c.headers={"Content-Length":a.size},c.subres={partNumber:r,uploadId:n},u=this._objectRequestParams("PUT",t,c),u.mime=c.mime,u.stream=a.stream,u.successStatuses=[200],e.next=11,this.request(u);case 11:return l=e.sent,a.stream=null,u.stream=null,e.abrupt("return",{name:t,etag:l.res.headers.etag,res:l.res});case 15:case"end":return e.stop()}}),e,this)}))},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/json/stringify"),o=r(i),a=e("babel-runtime/core-js/object/keys"),s=r(a),c=e("./../../shims/crypto/crypto.js"),u=e("is-type-of");n.buildCanonicalizedResource=function(e,t){var n=""+e,r="?";if(u.string(t)&&""!==t.trim())n+=r+t;else if(u.array(t))t.sort(),n+=r+t.join("&");else if(t){var i=function(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:0},o=function(e){n+=r+e,t[e]&&(n+="="+t[e]),r="&"};(0,s["default"])(t).sort(i).forEach(o)}return n},n.buildCanonicalString=function(e,t,n,r){n=n||{};var i=n.headers||{},o=[],a={},c=[e.toUpperCase(),i["Content-Md5"]||"",i["Content-Type"]||i["Content-Type".toLowerCase()],r||i["x-oss-date"]];return(0,s["default"])(i).forEach((function(e){var t=e.toLowerCase();0===t.indexOf("x-oss-")&&(a[t]=String(i[e]).trim())})),(0,s["default"])(a).sort().forEach((function(e){o.push(e+":"+a[e])})),c=c.concat(o),c.push(this.buildCanonicalizedResource(t,n.parameters)),c.join("\n")},n.computeSignature=function(e,n){return c.createHmac("sha1",e).update(new t(n,"utf8")).digest("base64")},n.authorization=function(e,t,n){return"OSS "+e+":"+this.computeSignature(t,n)},n._signatureForURL=function(e,n,r,i){var a={},c={};if(n.process&&(c["x-oss-process"]=n.process),n.response&&(0,s["default"])(n.response).forEach((function(e){var t="response-"+e.toLowerCase();c[t]=n.response[e]})),(0,s["default"])(n).forEach((function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?a[t]=r:0===t.indexOf("content-md5")||0===t.indexOf("content-type")?a[e]=r:"expires"!==t&&"response"!==t&&"process"!==t&&"method"!==t&&(c[t]=r)})),Object.prototype.hasOwnProperty.call(n,"security-token")&&(c["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var u={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(u.callbackHost=n.callback.host),n.callback.contentType&&(u.callbackBodyType=n.callback.contentType),c.callback=new t((0,o["default"])(u)).toString("base64"),n.callback.customValue){var l={};(0,s["default"])(n.callback.customValue).forEach((function(e){l["x:"+e]=n.callback.customValue[e]})),c["callback-var"]=new t((0,o["default"])(l)).toString("base64")}}var p=this.buildCanonicalString(n.method,r,{headers:a,parameters:c},i.toString());return{Signature:this.computeSignature(e,p),subResource:c}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=e("co"),a=e("co-priority-queue"),s=e("any-promise"),c=n;c._thunkPool=function(e,t){function n(e,t){++u===e.length&&t(l)}function r(e,t){function n(){var n;return i["default"].wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=void 0;case 1:if(c.isCancel()){r.next=9;break}return r.next=4,u.next();case 4:return n=r.sent,r.next=7,n();case 7:r.next=1;break;case 9:p+=1,p===e&&(u.fns=[],u.buffer=[],t(l));case 11:case"end":return r.stop()}}),s,this)}function r(e){console.error(e.stack)}for(var s=i["default"].mark(n),u=new a,p=0,f=0;f<e;f++)o(n)["catch"](r);return function(e,t){return function(n){u.push(i["default"].mark((function t(){return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=n,t.next=4,e;case 4:t.t1=t.sent,(0,t.t0)(null,t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t["catch"](0),n(t.t2);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})),t)}}}var c=this,u=0,l=[];return new s((function(a){function s(t){return i["default"].wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p(e[t]);case 2:n(e,a);case 3:case"end":return r.stop()}}),u,this)}function c(t){l.push(t),n(e,a)}for(var u=i["default"].mark(s),p=new r(t,a),f=0;f<e.length;f++)o(s(f))["catch"](c)}))},c.cancel=function(){this.options.cancelFlag=!0},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(e,t,n){"use strict";n._isIP=function(e){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,n=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return t.test(e)||n.test(e)}},{}],12:[function(e,t,n){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],13:[function(e,t,n){t.exports=e("./register")().Promise},{"./register":15}],14:[function(e,t,n){"use strict";var r=null;t.exports=function(e,t){return function(n,i){n=n||null,i=i||{};var o=!1!==i.global;if(null===r&&o&&(r=e["@@any-promise/REGISTRATION"]||null),null!==r&&null!==n&&r.implementation!==n)throw new Error('any-promise already defined as "'+r.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===r&&(r=null!==n&&void 0!==i.Promise?{Promise:i.Promise,implementation:n}:t(n),o&&(e["@@any-promise/REGISTRATION"]=r)),r}}},{}],15:[function(e,t,n){"use strict";function r(){if(void 0===window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}t.exports=e("./loader")(window,r)},{"./loader":14}],16:[function(e,t,n){t.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(e,t,n){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(e,t,n){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(e,t,n){t.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(e,t,n){t.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(e,t,n){"use strict";n.__esModule=!0,n["default"]=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("../core-js/object/define-property"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);n["default"]=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i["default"])(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},{"../core-js/object/define-property":20}],32:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var i=e("../core-js/symbol/iterator"),o=r(i),a=e("../core-js/symbol"),s=r(a),c="function"==typeof s["default"]&&"symbol"==typeof o["default"]?function(e){return typeof e}:function(e){return e&&"function"==typeof s["default"]&&e.constructor===s["default"]&&e!==s["default"].prototype?"symbol":typeof e};n["default"]="function"==typeof s["default"]&&"symbol"===c(o["default"])?function(e){return void 0===e?"undefined":c(e)}:function(e){return e&&"function"==typeof s["default"]&&e.constructor===s["default"]&&e!==s["default"].prototype?"symbol":void 0===e?"undefined":c(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(e,t,n){t.exports=e("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function i(e){var t=r(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=r(e),i=n[0],a=n[1],s=new f(o(e,i,a)),c=0,u=a>0?i-4:i,l=0;l<u;l+=4)t=p[e.charCodeAt(l)]<<18|p[e.charCodeAt(l+1)]<<12|p[e.charCodeAt(l+2)]<<6|p[e.charCodeAt(l+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===a&&(t=p[e.charCodeAt(l)]<<2|p[e.charCodeAt(l+1)]>>4,s[c++]=255&t),1===a&&(t=p[e.charCodeAt(l)]<<10|p[e.charCodeAt(l+1)]<<4|p[e.charCodeAt(l+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function c(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(r));return i.join("")}function u(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(c(e,o,o+16383>a?a:o+16383));return 1===r?(t=e[n-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}n.byteLength=i,n.toByteArray=a,n.fromByteArray=u;for(var l=[],p=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,m=d.length;h<m;++h)l[h]=d[h],p[d.charCodeAt(h)]=h;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},{}],35:[function(t,n,r){!function(t,r,i){void 0!==n&&n.exports?n.exports=i():"function"==typeof e&&e.amd?e("bowser",i):t.bowser=i()}(this,0,(function(){function e(e){function t(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function n(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var r,i=t(/(ipod|iphone|ipad)/i).toLowerCase(),o=/like android/i.test(e),s=!o&&/android/i.test(e),c=/nexus\s*[0-6]\s*/i.test(e),u=!c&&/nexus\s*[0-9]+/i.test(e),l=/CrOS/.test(e),p=/silk/i.test(e),f=/sailfish/i.test(e),d=/tizen/i.test(e),h=/(web|hpw)os/i.test(e),m=/windows phone/i.test(e),v=(/SamsungBrowser/i.test(e),!m&&/windows/i.test(e)),g=!i&&!p&&/macintosh/i.test(e),y=!s&&!f&&!d&&!h&&/linux/i.test(e),b=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=t(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(e)&&!/tablet pc/i.test(e),x=!w&&/[^-]mobi/i.test(e),E=/xbox/i.test(e);/opera/i.test(e)?r={name:"Opera",opera:a,version:_||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?r={name:"Opera",opera:a,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(e)?r={name:"Samsung Internet for Android",samsungBrowser:a,version:_||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?r={name:"Opera Coast",coast:a,version:_||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?r={name:"Yandex Browser",yandexbrowser:a,version:_||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:"UC Browser",ucbrowser:a,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?r={name:"Maxthon",maxthon:a,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?r={name:"Epiphany",epiphany:a,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?r={name:"Puffin",puffin:a,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?r={name:"Sleipnir",sleipnir:a,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?r={name:"K-Meleon",kMeleon:a,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(r={name:"Windows Phone",osname:"Windows Phone",windowsphone:a},b?(r.msedge=a,r.version=b):(r.msie=a,r.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?r={name:"Internet Explorer",msie:a,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?r={name:"Chrome",osname:"Chrome OS",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?r={name:"Microsoft Edge",msedge:a,version:b}:/vivaldi/i.test(e)?r={name:"Vivaldi",vivaldi:a,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||_}:f?r={name:"Sailfish",osname:"Sailfish OS",sailfish:a,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?r={name:"SeaMonkey",seamonkey:a,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:"Firefox",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(r.firefoxos=a,r.osname="Firefox OS")):p?r={name:"Amazon Silk",silk:a,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?r={name:"PhantomJS",phantom:a,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?r={name:"SlimerJS",slimer:a,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?r={name:"BlackBerry",osname:"BlackBerry OS",blackberry:a,version:_||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:h?(r={name:"WebOS",osname:"WebOS",webos:a,version:_||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(r.touchpad=a)):/bada/i.test(e)?r={name:"Bada",osname:"Bada",bada:a,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:d?r={name:"Tizen",osname:"Tizen",tizen:a,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(e)?r={name:"QupZilla",qupzilla:a,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(e)?r={name:"Chromium",chromium:a,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(e)?r={name:"Chrome",chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:_}:/safari|applewebkit/i.test(e)?(r={name:"Safari",safari:a},_&&(r.version=_)):i?(r={name:"iphone"==i?"iPhone":"ipad"==i?"iPad":"iPod"},_&&(r.version=_)):r=/googlebot/i.test(e)?{name:"Googlebot",googlebot:a,version:t(/googlebot\/(\d+(\.\d+))/i)||_}:{name:t(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(r.name=r.name||"Blink",r.blink=a):(r.name=r.name||"Webkit",r.webkit=a),!r.version&&_&&(r.version=_)):!r.opera&&/gecko\//i.test(e)&&(r.name=r.name||"Gecko",r.gecko=a,r.version=r.version||t(/gecko\/(\d+(\.\d+)?)/i)),r.windowsphone||!s&&!r.silk?!r.windowsphone&&i?(r[i]=a,r.ios=a,r.osname="iOS"):g?(r.mac=a,r.osname="macOS"):E?(r.xbox=a,r.osname="Xbox"):v?(r.windows=a,r.osname="Windows"):y&&(r.linux=a,r.osname="Linux"):(r.android=a,r.osname="Android");var S="";r.windows?S=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(t(/Windows ((NT|XP)( \d\d?.\d)?)/i)):r.windowsphone?S=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r.mac?(S=t(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):i?(S=t(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):s?S=t(/android[ \/-](\d+(\.\d+)*)/i):r.webos?S=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?S=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?S=t(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(S=t(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(r.osversion=S);var T=!r.windows&&S.split(".")[0];return w||u||"ipad"==i||s&&(3==T||T>=4&&!x)||r.silk?r.tablet=a:(x||"iphone"==i||"ipod"==i||s||c||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function t(e){return e.split(".").length}function n(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n++)r.push(t(e[n]));return r}function r(e){for(var r=Math.max(t(e[0]),t(e[1])),i=n(e,(function(e){var i=r-t(e);return e+=new Array(i+1).join(".0"),n(e.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]!==i[1][r])return-1;if(0===r)return 0}}function i(t,n,i){var o=s;"string"==typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(o=e(i));var a=""+o.version;for(var c in t)if(t.hasOwnProperty(c)&&o[c]){if("string"!=typeof t[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(t));return r([a,t[c]])<0}return n}function o(e,t,n){return!i(e,t,n)}var a=!0,s=e("undefined"!=typeof navigator&&navigator.userAgent||"");return s.test=function(e){for(var t=0;t<e.length;++t){var n=e[t];if("string"==typeof n&&n in s)return!0}return!1},s.isUnsupportedBrowser=i,s.compareVersions=r,s.check=o,s._detect=e,s.detect=e,s}))},{}],36:[function(e,t,n){},{}],37:[function(e,t,n){function r(e){if(e&&!c(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var s=e("buffer").Buffer,c=s.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},u=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};u.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);i=t.length-1,r=t.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:38}],38:[function(e,n,r){(function(t){"use strict";function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return a(this,e,t,n)}function a(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?l(e,t,n):d(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?i(e,t):void 0!==n?"string"==typeof r?i(e,t).fill(n,r):i(e,t).fill(n):i(e,t)}function u(e,t){if(s(t),e=i(e,t<0?0:0|h(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=i(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=i(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=p(e,t),e}function d(e,t){if(o.isBuffer(t)){var n=0|h(t.length);return e=i(e,n),0===e.length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||Y(t.length)?i(e,0):p(e,t);if("Buffer"===t.type&&Q(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function v(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,c/=2,u/=2,n/=2}if(i){var l=-1;for(a=n;a<c;a++)if(o(e,a)===o(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*s}else-1!==l&&(a-=a-l),l=-1}else for(n+u>c&&(n=c-u),a=n;a>=0;a--){for(var p=!0,f=0;f<u;f++)if(o(e,a+f)!==o(t,f)){p=!1;break}if(p)return a}return-1}function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return K(G(t,e.length-n),e,n,r)}function E(e,t,n,r){return K(H(t),e,n,r)}function S(e,t,n,r){return E(e,t,n,r)}function T(e,t,n,r){return K(W(t),e,n,r)}function k(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128==(192&o)&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return j(r)}function j(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Z));return n}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=X(e[o]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),$.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),$.write(e,t,n,r,52,8),n+8}function q(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function X(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function V(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function W(e){return J.toByteArray(q(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e){return e!==e}var J=e("base64-js"),$=e("ieee754"),Q=e("isarray");r.Buffer=o,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return c(null,e,t,n)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,s=n-t,c=Math.min(a,s),u=this.slice(r,i),l=e.slice(t,n),p=0;p<c;++p)if(u[p]!==l[p]){a=u[p],s=l[p];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},o.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},o.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),$.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),$.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),$.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),$.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=o.isBuffer(e)?e:G(new o(e,r).toString()),c=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(e,t,n){"use strict";var r=function(){this.buffer=[],this.fns=[]};r.prototype.push=function(e,t){if(this.fns.length)return this.fns.shift()(null,e);var n={data:e,priority:t},r=i(this.buffer,n,(function(e){return e.priority}));this.buffer.splice(r,0,n)},r.prototype.next=function(){var e=this;return function(t){if(e.buffer.length)return t(null,e.buffer.pop().data);e.fns.push(t)}};var i=function(e,t,n){t=n(t);for(var r=0,i=e?e.length:r;r<i;){var o=r+i>>>1;n(e[o])<t?r=o+1:i=o}return r};t.exports=r},{}],41:[function(e,t,n){function r(e){var t=this,n=f.call(arguments,1);return new Promise((function(r,o){function a(t){var n;try{n=e.next(t)}catch(e){return o(e)}u(n)}function s(t){var n;try{n=e["throw"](t)}catch(e){return o(e)}u(n)}function u(e){if(e.done)return r(e.value);var n=i.call(t,e.value);return n&&c(n)?n.then(a,s):s(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(e.value)+'"'))}if("function"==typeof e&&(e=e.apply(t,n)),!e||"function"!=typeof e.next)return r(e);a()}))}function i(e){return e?c(e)?e:l(e)||u(e)?r.call(this,e):"function"==typeof e?o.call(this,e):Array.isArray(e)?a.call(this,e):p(e)?s.call(this,e):e:e}function o(e){var t=this;return new Promise((function(n,r){e.call(t,(function(e,t){if(e)return r(e);arguments.length>2&&(t=f.call(arguments,1)),n(t)}))}))}function a(e){return Promise.all(e.map(i,this))}function s(e){for(var t=new e.constructor,n=Object.keys(e),r=[],o=0;o<n.length;o++){var a=n[o],s=i.call(this,e[a]);s&&c(s)?function(e,n){t[n]=void 0,r.push(e.then((function(e){t[n]=e})))}(s,a):t[a]=e[a]}return Promise.all(r).then((function(){return t}))}function c(e){return"function"==typeof e.then}function u(e){return"function"==typeof e.next&&"function"==typeof e["throw"]}function l(e){var t=e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName||u(t.prototype))}function p(e){return Object==e.constructor}var f=Array.prototype.slice;t.exports=r["default"]=r.co=r,r.wrap=function(e){function t(){return r.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t}},{}],42:[function(e,t,n){t.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(e,t,n){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);this.src=e,this._withAccess=t}function i(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}var o=Array.prototype.slice;t.exports=r,r.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},r.prototype.pick=function(e){return Array.isArray(e)||(e=o.call(arguments)),e.length&&(this.keys=e),this},r.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;n<t.length;n++)r=t[n],void 0===e[r]&&(e[r]=this.src[r]);return e}for(n=0;n<t.length;n++){var r=t[n];if(i(e,r)){var o=this.src.__lookupGetter__(r),a=this.src.__lookupSetter__(r);o&&e.__defineGetter__(r,o),a&&e.__defineSetter__(r,a),o||a||(e[r]=this.src[r])}}return e},r.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),n=0;n<t.length;n++){var r=t[n];delete e[r];var i=this.src.__lookupGetter__(r),o=this.src.__lookupSetter__(r);i&&e.__defineGetter__(r,i),o&&e.__defineSetter__(r,o),i||o||(e[r]=this.src[r])}},r.prototype.override=r.prototype.toCover,r.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],44:[function(e,t,n){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),t.exports=e("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(e,t,n){var r=e("../../modules/_core"),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(e){return i.stringify.apply(i,arguments)}},{"../../modules/_core":65}],46:[function(e,t,n){e("../../modules/es6.object.assign"),t.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(e,t,n){e("../../modules/es6.object.create");var r=e("../../modules/_core").Object;t.exports=function(e,t){return r.create(e,t)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(e,t,n){e("../../modules/es6.object.define-property");var r=e("../../modules/_core").Object;t.exports=function(e,t,n){return r.defineProperty(e,t,n)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(e,t,n){e("../../modules/es6.object.get-own-property-names");var r=e("../../modules/_core").Object;t.exports=function(e){return r.getOwnPropertyNames(e)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(e,t,n){e("../../modules/es6.object.get-prototype-of"),t.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(e,t,n){e("../../modules/es6.object.keys"),t.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(e,t,n){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),t.exports=e("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(e,t,n){e("../modules/web.immediate"),t.exports=e("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(e,t,n){e("../../modules/es6.string.from-code-point"),t.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(e,t,n){e("../../modules/es6.function.has-instance"),t.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(e,t,n){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),t.exports=e("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(e,t,n){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],59:[function(e,t,n){t.exports=function(){}},{}],60:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],61:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":85}],62:[function(e,t,n){var r=e("./_to-iobject"),i=e("./_to-length"),o=e("./_to-absolute-index");t.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(e,t,n){var r=e("./_cof"),i=e("./_wks")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":64,"./_wks":131}],64:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],65:[function(e,t,n){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},{}],66:[function(e,t,n){"use strict";var r=e("./_object-dp"),i=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":58}],68:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],69:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":74}],70:[function(e,t,n){var r=e("./_is-object"),i=e("./_global").document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./_global":76,"./_is-object":85}],71:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(e,t,n){var r=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie");t.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(e,t,n){var r=e("./_global"),i=e("./_core"),o=e("./_ctx"),a=e("./_hide"),s=e("./_has"),c=function e(t,n,c){var u,l,p,f=t&e.F,d=t&e.G,h=t&e.S,m=t&e.P,v=t&e.B,g=t&e.W,y=d?i:i[n]||(i[n]={}),b=y.prototype,_=d?r:h?r[n]:(r[n]||{}).prototype;for(u in d&&(c=n),c)(l=!f&&_&&void 0!==_[u])&&s(y,u)||(p=l?_[u]:c[u],y[u]=d&&"function"!=typeof _[u]?c[u]:v&&l?o(p,r):g&&_[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((y.virtual||(y.virtual={}))[u]=p,t&e.R&&b&&!b[u]&&a(b,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],75:[function(e,t,n){var r=e("./_ctx"),i=e("./_iter-call"),o=e("./_is-array-iter"),a=e("./_an-object"),s=e("./_to-length"),c=e("./core.get-iterator-method"),u={},l={};n=t.exports=function(e,t,n,p,f){var d,h,m,v,g=f?function(){return e}:c(e),y=r(n,p,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=s(e.length);d>b;b++)if((v=t?y(a(h=e[b])[0],h[1]):y(e[b]))===u||v===l)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=i(m,y,h.value,t))===u||v===l)return v};n.BREAK=u,n.RETURN=l},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],77:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],78:[function(e,t,n){var r=e("./_object-dp"),i=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":76}],80:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],82:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":64}],83:[function(e,t,n){var r=e("./_iterators"),i=e("./_wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},{"./_iterators":91,"./_wks":131}],84:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":64}],85:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],86:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e["return"];throw void 0!==o&&r(o.call(e)),t}}},{"./_an-object":61}],87:[function(e,t,n){"use strict";var r=e("./_object-create"),i=e("./_property-desc"),o=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(e,t,n){"use strict";var r=e("./_library"),i=e("./_export"),o=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),p=e("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(e,t,n,h,m,v,g){c(n,t,h);var y,b,_,w=function(e){if(!f&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",E="values"==m,S=!1,T=e.prototype,k=T[p]||T["@@iterator"]||m&&T[m],O=k||w(m),A=m?E?w("entries"):O:void 0,j="Array"==t&&T.entries||k;if(j&&(_=l(j.call(new e)))!==Object.prototype&&_.next&&(u(_,x,!0),r||"function"==typeof _[p]||a(_,p,d)),E&&k&&"values"!==k.name&&(S=!0,O=function(){return k.call(this)}),r&&!g||!f&&!S&&T[p]||a(T,p,O),s[t]=O,s[x]=d,m)if(y={values:E?O:w("values"),keys:v?O:w("keys"),entries:A},g)for(b in y)b in T||o(T,b,y[b]);else i(i.P+i.F*(f||S),t,y);return y}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(e,t,n){var r=e("./_wks")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},{"./_wks":131}],90:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],91:[function(e,t,n){t.exports={}},{}],92:[function(e,t,n){t.exports=!0},{}],93:[function(e,t,n){var r=e("./_uid")("meta"),i=e("./_is-object"),o=e("./_has"),a=e("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&h.NEED&&c(e)&&!o(e,r)&&l(e),e},h=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(e,t,n){var r=e("./_global"),i=e("./_task").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==e("./_cof")(a);t.exports=function(){var e,t,n,u=function(){var r,i;for(c&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var p=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),n=function(){f.data=p=!p}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=i(t),this.reject=i(n)}var i=e("./_a-function");t.exports.f=function(e){return new r(e)}},{"./_a-function":58}],96:[function(e,t,n){"use strict";var r=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie"),a=e("./_to-object"),s=e("./_iobject"),c=Object.assign;t.exports=!c||e("./_fails")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=a(e),c=arguments.length,u=1,l=i.f,p=o.f;c>u;)for(var f,d=s(arguments[u++]),h=l?r(d).concat(l(d)):r(d),m=h.length,v=0;m>v;)p.call(d,f=h[v++])&&(n[f]=d[f]);return n}:c},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(e,t,n){var r=e("./_an-object"),i=e("./_object-dps"),o=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c=function(){var t,n=e("./_dom-create")("iframe"),r=o.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(e,t,n){var r=e("./_an-object"),i=e("./_ie8-dom-define"),o=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(e,t,n){var r=e("./_object-dp"),i=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(e,t,n){var r=e("./_object-pie"),i=e("./_property-desc"),o=e("./_to-iobject"),a=e("./_to-primitive"),s=e("./_has"),c=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(e,t,n){var r=e("./_to-iobject"),i=e("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(e,t,n){var r=e("./_object-keys-internal"),i=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],104:[function(e,t,n){var r=e("./_has"),i=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(e,t,n){var r=e("./_has"),i=e("./_to-iobject"),o=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(e,t,n){var r=e("./_object-keys-internal"),i=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],108:[function(e,t,n){var r=e("./_export"),i=e("./_core"),o=e("./_fails");t.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],110:[function(e,t,n){var r=e("./_an-object"),i=e("./_is-object"),o=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],112:[function(e,t,n){var r=e("./_hide");t.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},{"./_hide":78}],113:[function(e,t,n){t.exports=e("./_hide")},{"./_hide":78}],114:[function(e,t,n){"use strict";var r=e("./_global"),i=e("./_core"),o=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(e,t,n){var r=e("./_object-dp").f,i=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(e,t,n){var r=e("./_shared")("keys"),i=e("./_uid");t.exports=function(e){return r[e]||(r[e]=i(e))}},{"./_shared":117,"./_uid":127}],117:[function(e,t,n){var r=e("./_core"),i=e("./_global"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"\u6f0f 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(e,t,n){var r=e("./_an-object"),i=e("./_a-function"),o=e("./_wks")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(e,t,n){var r=e("./_to-integer"),i=e("./_defined");t.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(e,t,n){var r,i,o,a=e("./_ctx"),s=e("./_invoke"),c=e("./_html"),u=e("./_dom-create"),l=e("./_global"),p=l.process,f=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete g[e]},"process"==e("./_cof")(p)?r=function(e){p.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),t.exports={set:f,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(e,t,n){var r=e("./_to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},{"./_to-integer":122}],122:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],123:[function(e,t,n){var r=e("./_iobject"),i=e("./_defined");t.exports=function(e){return r(i(e))}},{"./_defined":68,"./_iobject":82}],124:[function(e,t,n){var r=e("./_to-integer"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"./_to-integer":122}],125:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":68}],126:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(e,t,n){var r=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},{}],128:[function(e,t,n){var r=e("./_global"),i=r.navigator;t.exports=i&&i.userAgent||""},{"./_global":76}],129:[function(e,t,n){var r=e("./_global"),i=e("./_core"),o=e("./_library"),a=e("./_wks-ext"),s=e("./_object-dp").f;t.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(e,t,n){n.f=e("./_wks")},{"./_wks":131}],131:[function(e,t,n){var r=e("./_shared")("wks"),i=e("./_uid"),o=e("./_global").Symbol,a="function"==typeof o;(t.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(e,t,n){var r=e("./_classof"),i=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(e,t,n){"use strict";var r=e("./_ctx"),i=e("./_export"),o=e("./_to-object"),a=e("./_iter-call"),s=e("./_is-array-iter"),c=e("./_to-length"),u=e("./_create-property"),l=e("./core.get-iterator-method");i(i.S+i.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,p,f=o(e),d="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=l(f);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(t=c(f.length),n=new d(t);t>g;g++)u(n,g,v?m(f[g],g):f[g]);else for(p=y.call(f),n=new d;!(i=p.next()).done;g++)u(n,g,v?a(p,m,[i.value,g],!0):i.value);return n.length=g,n}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),i=e("./_iter-step"),o=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(e,t,n){"use strict";var r=e("./_is-object"),i=e("./_object-gpo"),o=e("./_wks")("hasInstance"),a=Function.prototype;o in a||e("./_object-dp").f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(e,t,n){var r=e("./_export");r(r.S+r.F,"Object",{assign:e("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(e,t,n){var r=e("./_export");r(r.S,"Object",{create:e("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(e,t,n){e("./_object-sap")("getOwnPropertyNames",(function(){return e("./_object-gopn-ext").f}))},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(e,t,n){var r=e("./_to-object"),i=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(e,t,n){var r=e("./_to-object"),i=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return i(r(e))}}))},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(e,t,n){arguments[4][36][0].apply(n,arguments)},{dup:36}],143:[function(e,t,n){"use strict";var r,i,o,a,s=e("./_library"),c=e("./_global"),u=e("./_ctx"),l=e("./_classof"),p=e("./_export"),f=e("./_is-object"),d=e("./_a-function"),h=e("./_an-instance"),m=e("./_for-of"),v=e("./_species-constructor"),g=e("./_task").set,y=e("./_microtask")(),b=e("./_new-promise-capability"),_=e("./_perform"),w=e("./_user-agent"),x=e("./_promise-resolve"),E=c.TypeError,S=c.process,T=S&&S.versions,k=T&&T.v8||"",O=c.Promise,A="process"==l(S),j=function(){},I=i=b.f,C=!!function(){try{var t=O.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(j,j)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof n&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),P=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0;n.length>o;)!function(t){var n,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&M(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(E("Promise-chain cycle")):(o=P(n))?o.call(n,c,u):c(n)):u(r)}catch(e){l&&!a&&l.exit(),u(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){g.call(c,(function(){var t,n,r,i=e._v,o=D(e);if(o&&(t=_((function(){A?S.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=A||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){g.call(c,(function(){var t;A?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},R=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},U=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(n=P(t))?y((function(){var i={_w:r,_d:!1};try{n.call(t,u(e,i,1),u(R,i,1))}catch(t){R.call(i,t)}})):(r._v=t,r._s=1,N(r,!1))}catch(t){R.call({_w:r,_d:!1},t)}}};C||(O=function(e){h(this,O,"Promise","_h"),d(e),r.call(this);try{e(u(U,this,1),u(R,this,1))}catch(e){R.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("./_redefine-all")(O.prototype,{then:function(e,t){var n=I(v(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(U,e,1),this.reject=u(R,e,1)},b.f=I=function(e){return e===O||e===a?new o(e):i(e)}),p(p.G+p.W+p.F*!C,{Promise:O}),e("./_set-to-string-tag")(O,"Promise"),e("./_set-species")("Promise"),a=e("./_core").Promise,p(p.S+p.F*!C,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!C),"Promise",{resolve:function(e){return x(s&&this===a?O:this,e)}}),p(p.S+p.F*!(C&&e("./_iter-detect")((function(e){O.all(e)["catch"](j)}))),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(e,t,n){var r=e("./_export"),i=e("./_to-absolute-index"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":88,"./_string-at":119}],146:[function(e,t,n){"use strict";var r=e("./_global"),i=e("./_has"),o=e("./_descriptors"),a=e("./_export"),s=e("./_redefine"),c=e("./_meta").KEY,u=e("./_fails"),l=e("./_shared"),p=e("./_set-to-string-tag"),f=e("./_uid"),d=e("./_wks"),h=e("./_wks-ext"),m=e("./_wks-define"),v=e("./_enum-keys"),g=e("./_is-array"),y=e("./_an-object"),b=e("./_is-object"),_=e("./_to-iobject"),w=e("./_to-primitive"),x=e("./_property-desc"),E=e("./_object-create"),S=e("./_object-gopn-ext"),T=e("./_object-gopd"),k=e("./_object-dp"),O=e("./_object-keys"),A=T.f,j=k.f,I=S.f,C=r.Symbol,P=r.JSON,N=P&&P.stringify,L=d("_hidden"),D=d("toPrimitive"),M={}.propertyIsEnumerable,R=l("symbol-registry"),U=l("symbols"),B=l("op-symbols"),F=Object.prototype,q="function"==typeof C,z=r.QObject,X=!z||!z.prototype||!z.prototype.findChild,G=o&&u((function(){return 7!=E(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(F,t);r&&delete F[t],j(e,t,n),r&&e!==F&&j(F,t,r)}:j,H=function(e){var t=U[e]=E(C.prototype);return t._k=e,t},V=q&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},W=function e(t,n,r){return t===F&&e(B,n,r),y(t),n=w(n,!0),y(r),i(U,n)?(r.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),r=E(r,{enumerable:x(0,!1)})):(i(t,L)||j(t,L,x(1,{})),t[L][n]=!0),G(t,n,r)):j(t,n,r)},K=function(e,t){y(e);for(var n,r=v(t=_(t)),i=0,o=r.length;o>i;)W(e,n=r[i++],t[n]);return e},Y=function(e,t){return void 0===t?E(e):K(E(e),t)},J=function(e){var t=M.call(this,e=w(e,!0));return!(this===F&&i(U,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,L)&&this[L][e])||t)},$=function(e,t){if(e=_(e),t=w(t,!0),e!==F||!i(U,t)||i(B,t)){var n=A(e,t);return!n||!i(U,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=I(_(e)),r=[],o=0;n.length>o;)i(U,t=n[o++])||t==L||t==c||r.push(t);return r},Z=function(e){for(var t,n=e===F,r=I(n?B:_(e)),o=[],a=0;r.length>a;)!i(U,t=r[a++])||n&&!i(F,t)||o.push(U[t]);return o};q||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function t(n){this===F&&t.call(B,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),G(this,e,x(1,n))};return o&&X&&G(F,e,{configurable:!0,set:t}),H(e)},s(C.prototype,"toString",(function(){return this._k})),T.f=$,k.f=W,e("./_object-gopn").f=S.f=Q,e("./_object-pie").f=J,e("./_object-gops").f=Z,o&&!e("./_library")&&s(F,"propertyIsEnumerable",J,!0),h.f=function(e){return H(d(e))}),a(a.G+a.W+a.F*!q,{Symbol:C});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ne=O(d.store),re=0;ne.length>re;)m(ne[re++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=C(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!q,"Object",{create:Y,defineProperty:W,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),P&&a(a.S+a.F*(!q||u((function(){var e=C();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!V(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,N.apply(P,r)}}),C.prototype[D]||e("./_hide")(C.prototype,D,C.prototype.valueOf),p(C,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_core"),o=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(e,t,n){"use strict";var r=e("./_export"),i=e("./_new-promise-capability"),o=e("./_perform");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(e,t,n){e("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(e,t,n){e("./es6.array.iterator");for(var r=e("./_global"),i=e("./_hide"),o=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],p=l&&l.prototype;p&&!p[a]&&i(p,a,u),o[u]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(e,t,n){var r=e("./_export"),i=e("./_task");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},{"./_export":73,"./_task":120}],153:[function(e,t,n){(function(t){"use strict";function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function i(e){return"boolean"==typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"==typeof e}function c(e){return"string"==typeof e}function u(e){return"symbol"===(void 0===e?"undefined":(0,b["default"])(e))}function l(e){return void 0===e}function p(e){return"[object RegExp]"===g(e)}function f(e){return"object"===(void 0===e?"undefined":(0,b["default"])(e))&&null!==e}function d(e){return"[object Date]"===g(e)}function h(e){return"[object Error]"===g(e)||e instanceof Error}function m(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":(0,b["default"])(e))||void 0===e}function g(e){return Object.prototype.toString.call(e)}var y=e("babel-runtime/helpers/typeof"),b=function(e){return e&&e.__esModule?e:{default:e}}(y);n.isArray=r,n.isBoolean=i,n.isNull=o,n.isNullOrUndefined=a,n.isNumber=s,n.isString=c,n.isSymbol=u,n.isUndefined=l,n.isRegExp=p,n.isObject=f,n.isDate=d,n.isError=h,n.isFunction=m,n.isPrimitive=v,n.isBuffer=t.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(t,n,r){"use strict";var i=t("babel-runtime/helpers/typeof"),o=function(e){return e&&e.__esModule?e:{default:e}}(i);!function(t){function i(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function a(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var i=(t-n)/6048e5;return 1+Math.floor(i)}function s(e){var t=e.getDay();return 0===t&&(t=7),t}function c(e){return null===e?"null":void 0===e?"undefined":"object"!==(void 0===e?"undefined":(0,o["default"])(e))?void 0===e?"undefined":(0,o["default"])(e):Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}var u=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(r,o,l,p){if(1!==arguments.length||"string"!==c(r)||/\d/.test(r)||(o=r,r=void 0),r=r||new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError("Invalid date");o=String(u.masks[o]||o||u.masks["default"]);var f=o.slice(0,4);"UTC:"!==f&&"GMT:"!==f||(o=o.slice(4),l=!0,"GMT:"===f&&(p=!0));var d=l?"getUTC":"get",h=r[d+"Date"](),m=r[d+"Day"](),v=r[d+"Month"](),g=r[d+"FullYear"](),y=r[d+"Hours"](),b=r[d+"Minutes"](),_=r[d+"Seconds"](),w=r[d+"Milliseconds"](),x=l?0:r.getTimezoneOffset(),E=a(r),S=s(r),T={d:h,dd:i(h),ddd:u.i18n.dayNames[m],dddd:u.i18n.dayNames[m+7],m:v+1,mm:i(v+1),mmm:u.i18n.monthNames[v],mmmm:u.i18n.monthNames[v+12],yy:String(g).slice(2),yyyy:g,h:y%12||12,hh:i(y%12||12),H:y,HH:i(y),M:b,MM:i(b),s:_,ss:i(_),l:i(w,3),L:i(Math.round(w/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:p?"GMT":l?"UTC":(String(r).match(t)||[""]).pop().replace(n,""),o:(x>0?"-":"+")+i(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:E,N:S};return o.replace(e,(function(e){return e in T?T[e]:e.slice(1,e.length-1)}))}}();u.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},u.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},"function"==typeof e&&e.amd?e((function(){return u})):"object"===(void 0===r?"undefined":(0,o["default"])(r))?n.exports=u:t.dateFormat=u}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(e,t,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}}function c(){var e;try{e=n.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}n=t.exports=e("./debug"),n.log=a,n.formatArgs=o,n.save=s,n.load=c,n.useColors=i,n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},n.enable(c())}).call(this,e("_process"))},{"./debug":156,_process:173}],156:[function(e,t,n){function r(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function i(e){function t(){if(t.enabled){var e=t,r=+new Date,i=r-(u||r);e.diff=i,e.prev=u,e.curr=r,u=r;for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return t;s++;var i=n.formatters[r];if("function"==typeof i){var a=o[s];t=i.call(e,a),o.splice(s,1),s--}return t})),n.formatArgs.call(e,o),(t.log||n.log||console.log.bind(console)).apply(e,o)}}return t.namespace=e,t.enabled=n.enabled(e),t.useColors=n.useColors(),t.color=r(e),"function"==typeof n.init&&n.init(t),t}function o(e){n.save(e),n.names=[],n.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),r=t.length,i=0;i<r;i++)t[i]&&(e=t[i].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}var u;n=t.exports=i.debug=i["default"]=i,n.coerce=c,n.disable=a,n.enable=o,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={}},{ms:169}],157:[function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==a&&(o+=t.substring(s,a)),s=a+1,o+=r}return s!==a?o+t.substring(s,a):o}var i=/["'&<>]/;t.exports=r},{}],158:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(a(n))for(o=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,c=0;c<r;c++)u[c].apply(this,o);return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],159:[function(e,t,n){var r=e("http"),i=t.exports;for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:196}],160:[function(e,t,n){"use strict";var r=e("util"),i=e("ms");t.exports=function(e){if("number"==typeof e)return e;var t=i(e);if(void 0===t){var n=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(n.stack)}return t}},{ms:169,util:207}],161:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+p],p+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+p>=1?f/c:f*Math.pow(2,1-p),t*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*c-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m}},{}],162:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],163:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||i(e)||!!e._isBuffer)}},{}],164:[function(t,n,r){!function(t){function i(e){return a.call(e).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(e){return"function"==typeof e&&(/^class(\s|\{\}$)/.test(a.call(e))||/^.*classCallCheck\(/.test(i(e)))}var a=Function.prototype.toString;void 0!==r?(void 0!==n&&n.exports&&(r=n.exports=o),r.isClass=o):"function"==typeof e&&e.amd?e([],(function(){return o})):t.isClass=o}(this)},{}],165:[function(e,t,n){"use strict";function r(e){var t=e.slice(2);return t[0].toLowerCase()+t.slice(1)}var i=e("core-util-is"),o=e("isstream"),a=e("is-class");Object.keys(i).map((function(e){n[r(e)]=i[e]})),n.stream=o,n.readableStream=o.isReadable,n.writableStream=o.isWritable,n.duplexStream=o.isDuplex,n["class"]=a,n.finite=function(e){return Number.isFinite(e)},n.NaN=function(e){return Number.isNaN(e)},n.generator=function(e){return e&&"function"==typeof e.next&&"function"==typeof e["throw"]},n.generatorFunction=function(e){return e&&e.constructor&&"GeneratorFunction"===e.constructor.name},n.asyncFunction=function(e){return e&&e.constructor&&"AsyncFunction"===e.constructor.name},n.promise=function(e){return e&&"function"==typeof e.then};var s=Math.pow(2,31);n["int"]=function(e){return i.isNumber(e)&&e%1==0},n.int32=function(e){return n["int"](e)&&e<s&&e>=-s},n["long"]=function(e){return n["int"](e)&&(e>=s||e<-s)},n.Long=function(e){return n.object(e)&&n.number(e.high)&&n.number(e.low)},n["double"]=function(e){return i.isNumber(e)&&!isNaN(e)&&e%1!=0},n.date=function(e){return e instanceof Date},n.regExp=function(e){return e instanceof RegExp},n.regexp=n.regExp,n.error=function(e){return e instanceof Error},n.array=function(e){return Array.isArray(e)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],167:[function(e,t,n){function r(e){return e instanceof s.Stream}function i(e){return r(e)&&"function"==typeof e._read&&"object"==typeof e._readableState}function o(e){return r(e)&&"function"==typeof e._write&&"object"==typeof e._writableState}function a(e){return i(e)&&o(e)}var s=e("stream");t.exports=r,t.exports.isReadable=i,t.exports.isWritable=o,t.exports.isDuplex=a},{stream:195}],168:[function(e,t,n){"use strict";function r(e,t,n){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(t).forEach((function(r){if(n||!i.call(e,r)){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o)}})),e}t.exports=r;var i=Object.prototype.hasOwnProperty},{}],169:[function(e,t,n){function r(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*c;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function i(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=c?Math.round(e/c)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return a(e,l,"day")||a(e,u,"hour")||a(e,c,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,c=60*s,u=60*c,l=24*u,p=365.25*l;t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return r(e);if("number"===n&&!1===isNaN(e))return t["long"]?o(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],170:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=t(i(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),a="/"===o(e,-1);return e=t(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:173}],171:[function(n,r,i){(function(t){(function(){"use strict";function n(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),s(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function a(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=_)for(;++n<r;)t(e[n],n,e);else c(e,t)}function s(e){return e=d(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:n(e)}function c(e,t){for(var n in e)E.call(e,n)&&t(e[n],n,e)}function u(e){return null==e?n(e):S.call(e).slice(8,-1)}function l(e,t){var n=null!=e?typeof e[t]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!e[t])}function p(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function f(e,t){var n=null;return a(e,(function(r,i){n=t(n,r,i,e)})),n}function d(e){return String(e).replace(/^ +| +$/g,"")}function h(e){function t(t){return f(t,(function(t,n){var r=n.pattern||p(n);return!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=s(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t}))}function n(){return this.description||""}var r=v,i=e&&"object"==typeof e&&"String"!=u(e);i&&(r=e,e=null);var a=r.navigator||{},m=a.userAgent||"";e||(e=m);var g,y,b=i?!!a.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(S.toString()),_=i?"Object":"ScriptBridgingProxyObject",x=i?"Object":"Environment",E=i&&r.java?"JavaPackage":u(r.java),T=i?"Object":"RuntimeObject",k=/\bJava/.test(E)&&r.java,O=k&&u(r.environment)==x,A=k?"a":"\u4f2a",j=k?"b":"\u5c3e",I=r.document||{},C=r.operamini||r.opera,P=w.test(P=i&&C?C["[[Class]]"]:u(C))?P:C=null,N=e,L=[],D=null,M=e==m,R=M&&C&&"function"==typeof C.version&&C.version(),U=function(t){return f(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||p(n))+"\\b","i").exec(e)&&(n.label||n)}))}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=function(t){return f(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||p(n))+"\\b","i").exec(e)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),F=t([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=function(t){return f(t,(function(t,n,r){return t||(n[F]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(F)]||RegExp("\\b"+p(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r}))}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),z=function(t){return f(t,(function(t,n){var r=n.pattern||p(n);return!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=o(t,r,n.label||n)),t}))}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(U&&(U=[U]),q&&!F&&(F=t([q])),(g=/\bGoogle TV\b/.exec(F))&&(F=g[0]),/\bSimulator\b/i.test(e)&&(F=(F?F+" ":"")+"Simulator"),"Opera Mini"==B&&/\bOPiOS\b/.test(e)&&L.push("running in Turbo/Uncompressed mode"),"IE"==B&&/\blike iPhone OS\b/.test(e)?(g=h(e.replace(/like iPhone OS/,"")),q=g.manufacturer,F=g.product):/^iP/.test(F)?(B||(B="Safari"),z="iOS"+((g=/ OS ([\d_]+)/i.exec(e))?" "+g[1].replace(/_/g,"."):"")):"Konqueror"!=B||/buntu/i.test(z)?q&&"Google"!=q&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(F))||/\bAndroid\b/.test(z)&&/^Chrome/.test(B)&&/\bVersion\//i.test(e)?(B="Android Browser",z=/\bAndroid\b/.test(z)?z:"Android"):"Silk"==B?(/\bMobi/i.test(e)||(z="Android",L.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&L.unshift("accelerated")):"PaleMoon"==B&&(g=/\bFirefox\/([\d.]+)\b/.exec(e))?L.push("identifying as Firefox "+g[1]):"Firefox"==B&&(g=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(z||(z="Firefox OS"),F||(F=g[1])):!B||(g=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!F&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(g+"/")+8))&&(B=null),(g=F||q||z)&&(F||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(z))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(z)?z:g)+" Browser")):"Electron"==B&&(g=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&L.push("Chromium "+g):z="Kubuntu",R||(R=function(t){return f(t,(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",p(B),"(?:Firefox|Minefield|NetFront)"])),(g=("iCab"==U&&parseFloat(R)>3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(U)&&"WebKit"||!U&&/\bMSIE\b/i.test(e)&&("Mac OS"==z?"Tasman":"Trident")||"WebKit"==U&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(U=[g]),"IE"==B&&(g=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",z="Windows Phone "+(/\+$/.test(g)?g:g+".x"),L.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",z="Windows Phone 8.x",L.unshift("desktop mode"),R||(R=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==U&&(g=/\brv:([\d.]+)/.exec(e))&&(B&&L.push("identifying as "+B+(R?" "+R:"")),B="IE",R=g[1]),M){if(l(r,"global"))if(k&&(g=k.lang.System,N=g.getProperty("os.arch"),z=z||g.getProperty("os.name")+" "+g.getProperty("os.version")),O){try{R=r.require("ringo/engine").version.join("."),B="RingoJS"}catch(e){(g=r.system)&&g.global.system==r.system&&(B="Narwhal",z||(z=g[0].os||null))}B||(B="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(g=r.process)&&("object"==typeof g.versions&&("string"==typeof g.versions.electron?(L.push("Node "+g.versions.node),B="Electron",R=g.versions.electron):"string"==typeof g.versions.nw&&(L.push("Chromium "+R,"Node "+g.versions.node),B="NW.js",R=g.versions.nw)),B||(B="Node.js",N=g.arch,z=g.platform,R=/[\d.]+/.exec(g.version),R=R?R[0]:null));else u(g=r.runtime)==_?(B="Adobe AIR",z=g.flash.system.Capabilities.os):u(g=r.phantom)==T?(B="PhantomJS",R=(g=g.version||null)&&g.major+"."+g.minor+"."+g.patch):"number"==typeof I.documentMode&&(g=/\bTrident\/(\d+)/i.exec(e))?(R=[R,I.documentMode],(g=+g[1]+4)!=R[1]&&(L.push("IE "+R[1]+" mode"),U&&(U[1]=""),R[1]=g),R="IE"==B?String(R[1].toFixed(1)):R[0]):"number"==typeof I.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(L.push("masking as "+B+" "+R),B="IE",R="11.0",U=["Trident"],z="Windows");z=z&&s(z)}if(R&&(g=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(R)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(M&&a.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(D=/b/i.test(g)?"beta":"alpha",R=R.replace(RegExp(g+"\\+?$"),"")+("beta"==D?j:A)+(/\d+\+?/.exec(g)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS)\b/.test(z))B="Firefox Mobile";else if("Maxthon"==B&&R)R=R.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(z=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&L.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||F||/Browser|Mobi/.test(B))||"Windows CE"!=z&&!/Mobi/i.test(e))if("IE"==B&&M)try{null===r.external&&L.unshift("platform preview")}catch(e){L.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(g=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||R)?(g=[g,/BB10/.test(e)],z=(g[1]?(F=null,q="BlackBerry"):"Device Software")+" "+g[0],R=null):this!=c&&"Wii"!=F&&(M&&C||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(z)||"IE"==B&&(z&&!/^Win/.test(z)&&R>5.5||/\bWindows XP\b/.test(z)&&R>8||8==R&&!/\bTrident\b/.test(e)))&&!w.test(g=h.call(c,e.replace(w,"")+";"))&&g.name&&(g="ing as "+g.name+((g=g.version)?" "+g:""),w.test(B)?(/\bIE\b/.test(g)&&"Mac OS"==z&&(z=null),g="identify"+g):(g="mask"+g,B=P?s(P.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(g)&&(z=null),M||(R=null)),U=["Presto"],L.push(g));else B+=" Mobile";(g=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(g=[parseFloat(g.replace(/\.(\d)$/,".0$1")),g],"Safari"==B&&"+"==g[1].slice(-1)?(B="WebKit Nightly",D="alpha",R=g[1].slice(0,-1)):R!=g[1]&&R!=(g[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(R=null),g[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==g[0]&&537.36==g[2]&&parseFloat(g[1])>=28&&"WebKit"==U&&(U=["Blink"]),M&&(b||g[1])?(U&&(U[1]="like Chrome"),g=g[1]||(g=g[0],g<530?1:g<532?2:g<532.05?3:g<533?4:g<534.03?5:g<534.07?6:g<534.1?7:g<534.13?8:g<534.16?9:g<534.24?10:g<534.3?11:g<535.01?12:g<535.02?"13+":g<535.07?15:g<535.11?16:g<535.19?17:g<536.05?18:g<536.1?19:g<537.01?20:g<537.11?"21+":g<537.13?23:g<537.18?24:g<537.24?25:g<537.36?26:"Blink"!=U?"27":"28")):(U&&(U[1]="like Safari"),g=g[0],g=g<400?1:g<500?2:g<526?3:g<533?4:g<534?"4+":g<535?5:g<537?6:g<538?7:g<601?8:"8"),U&&(U[1]+=" "+(g+="number"==typeof g?".x":/[.+]/.test(g)?"":"+")),"Safari"==B&&(!R||parseInt(R)>45)&&(R=g)),"Opera"==B&&(g=/\bzbov|zvav$/.exec(z))?(B+=" ",L.unshift("desktop mode"),"zvav"==g?(B+="Mini",R=null):B+="Mobile",z=z.replace(RegExp(" *"+g+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(U&&U[1])&&(L.unshift("desktop mode"),B="Chrome Mobile",R=null,/\bOS X\b/.test(z)?(q="Apple",z="iOS 4.3+"):z=null),R&&0==R.indexOf(g=/[\d.]+$/.exec(z))&&e.indexOf("/"+g+"-")>-1&&(z=d(z.replace(g,""))),U&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(z)&&/\bSafari\b/.test(U[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&U[1])&&(g=U[U.length-1])&&L.push(g),L.length&&(L=["("+L.join("; ")+")"]),q&&F&&F.indexOf(q)<0&&L.push("on "+q),F&&L.push((/^on /.test(L[L.length-1])?"":"on ")+F),z&&(g=/ ([\d.+]+)$/.exec(z),y=g&&"/"==z.charAt(z.length-g[0].length-1),z={architecture:32,family:g&&!y?z.replace(g[0],""):z,version:g?g[1]:null,toString:function(){var e=this.version;return this.family+(e&&!y?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(g=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(N))&&!/\bi686\b/i.test(N)?(z&&(z.architecture=64,z.family=z.family.replace(RegExp(" *"+g),"")),B&&(/\bWOW64\b/i.test(e)||M&&/\w(?:86|32)$/.test(a.cpuClass||a.platform)&&!/\bWin64; x64\b/i.test(e))&&L.unshift("32-bit")):z&&/^OS X/.test(z.family)&&"Chrome"==B&&parseFloat(R)>=39&&(z.architecture=64),e||(e=null);var X={};return X.description=e,X.layout=U&&U[0],X.manufacturer=q,X.name=B,X.prerelease=D,X.product=F,X.ua=e,X.version=B&&R,X.os=z||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=h,X.toString=n,X.version&&L.unshift(R),X.name&&L.unshift(B),z&&B&&(z!=String(z).split(" ")[0]||z!=B.split(" ")[0]&&!F)&&L.push(F?"("+z+")":"on "+z),L.length&&(X.description=L.join(" ")),X}var m={function:!0,object:!0},v=m[typeof window]&&window||this,g=m[typeof i]&&i,y=m[typeof r]&&r&&!r.nodeType&&r,b=g&&y&&"object"==typeof t&&t;!b||b.global!==b&&b.window!==b&&b.self!==b||(v=b);var _=Math.pow(2,53)-1,w=/\bOpera/,x=Object.prototype,E=x.hasOwnProperty,S=x.toString,T=h();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(v.platform=T,e((function(){return T}))):g&&y?c(T,(function(e,t){g[t]=e})):v.platform=T}).call(this)}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],172:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,e("_process"))},{_process:173}],173:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){v&&h&&(v=!1,h.length?m=h.concat(m):g=-1,m.length&&c())}function c(){if(!v){var e=o(s);v=!0;for(var t=m.length;t;){for(h=m,m=[];++g<t;)h&&h[g].run();g=-1,t=m.length}h=null,v=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var p,f,d=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(e){p=r}try{f="function"==typeof clearTimeout?clearTimeout:i}catch(e){f=i}}();var h,m=[],v=!1,g=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new u(e,t)),1!==m.length||v||o(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(n,r,i){(function(t){!function(n){function o(e){throw new RangeError(L[e])}function a(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function s(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(N,"."),r+a(e.split("."),t).join(".")}function c(e){for(var t,n,r=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function u(e){return a(e,(function(e){var t="";return e>65535&&(e-=65536,t+=R(e>>>10&1023|55296),e=56320|1023&e),t+R(e)})).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:E}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?M(e/O):e>>1,e+=M(e/t);e>D*T>>1;r+=E)e=M(e/D);return M(r+(D+1)*e/(e+k))}function d(e){var t,n,r,i,a,s,c,p,d,h,m=[],v=e.length,g=0,y=j,b=A;for(n=e.lastIndexOf(I),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(a=g,s=1,c=E;i>=v&&o("invalid-input"),p=l(e.charCodeAt(i++)),(p>=E||p>M((x-g)/s))&&o("overflow"),g+=p*s,d=c<=b?S:c>=b+T?T:c-b,!(p<d);c+=E)h=E-d,s>M(x/h)&&o("overflow"),s*=h;t=m.length+1,b=f(g-a,t,0==a),M(g/t)>x-y&&o("overflow"),y+=M(g/t),g%=t,m.splice(g++,0,y)}return u(m)}function h(e){var t,n,r,i,a,s,u,l,d,h,m,v,g,y,b,_=[];for(e=c(e),v=e.length,t=j,n=0,a=A,s=0;s<v;++s)(m=e[s])<128&&_.push(R(m));for(r=i=_.length,i&&_.push(I);r<v;){for(u=x,s=0;s<v;++s)(m=e[s])>=t&&m<u&&(u=m);for(g=r+1,u-t>M((x-n)/g)&&o("overflow"),n+=(u-t)*g,t=u,s=0;s<v;++s)if(m=e[s],m<t&&++n>x&&o("overflow"),m==t){for(l=n,d=E;h=d<=a?S:d>=a+T?T:d-a,!(l<h);d+=E)b=l-h,y=E-h,_.push(R(p(h+b%y,0))),l=M(b/y);_.push(R(p(l,0))),a=f(n,g,r==i),n=0,++r}++n,++t}return _.join("")}function m(e){return s(e,(function(e){return C.test(e)?d(e.slice(4).toLowerCase()):e}))}function v(e){return s(e,(function(e){return P.test(e)?"xn--"+h(e):e}))}var g="object"==typeof i&&i&&!i.nodeType&&i,y="object"==typeof r&&r&&!r.nodeType&&r,b="object"==typeof t&&t;b.global!==b&&b.window!==b&&b.self!==b||(n=b);var _,w,x=2147483647,E=36,S=1,T=26,k=38,O=700,A=72,j=128,I="-",C=/^xn--/,P=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=E-S,M=Math.floor,R=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:c,encode:u},decode:d,encode:h,toASCII:v,toUnicode:m},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",(function(){return _}));else if(g&&y)if(r.exports==g)y.exports=_;else for(w in _)_.hasOwnProperty(w)&&(g[w]=_[w]);else n.punycode=_}(this)}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],175:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var p,f,d,h,m=e[l].replace(s,"%20"),v=m.indexOf(n);v>=0?(p=m.substr(0,v),f=m.substr(v+1)):(p=m,f=""),d=decodeURIComponent(p),h=decodeURIComponent(f),r(a,d)?i(a[d])?a[d].push(h):a[d]=[a[d],h]:a[d]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],176:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],177:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":175,"./encode":176}],178:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);p.call(this,e),f.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||c.nextTick(o,this)}function o(e){e.end()}var a=e("babel-runtime/core-js/object/keys"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),c=e("process-nextick-args"),u=s["default"]||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=r;var l=e("core-util-is");l.inherits=e("inherits");var p=e("./_stream_readable"),f=e("./_stream_writable");l.inherits(r,p);for(var d=u(f.prototype),h=0;h<d.length;h++){var m=d[h];r.prototype[m]||(r.prototype[m]=f.prototype[m])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),c.nextTick(t,e)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}t.exports=r;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(e,n,r){(function(t,r){"use strict";function i(e){return B.from(e)}function o(e){return B.isBuffer(e)||e instanceof F}function a(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?M(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function s(t,n){D=D||e("./_stream_duplex"),t=t||{};var r=n instanceof D;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(G||(G=e("string_decoder/").StringDecoder),this.decoder=new G(t.encoding),this.encoding=t.encoding)}function c(t){if(D=D||e("./_stream_duplex"),!(this instanceof c))return new c(t);this._readableState=new s(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),U.call(this)}function u(e,t,n,r,o){var a,s=e._readableState;null===t?(s.reading=!1,m(e,s)):(o||(a=p(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||(0,N["default"])(t)===B.prototype||(t=i(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?l(e,s,t,!1):y(e,s)):l(e,s,t,!1))):r||(s.reading=!1));return f(s)}function l(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&v(e)),y(e,t)}function p(e,t){var n;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function d(e){return e>=K?e=K:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,v(e)}}function v(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(X("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?L.nextTick(g,e):g(e))}function g(e){X("emit readable"),e.emit("readable"),S(e)}function y(e,t){t.readingMore||(t.readingMore=!0,L.nextTick(b,e,t))}function b(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(X("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function _(e){return function(){var t=e._readableState;X("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&R(e,"data")&&(t.flowing=!0,S(e))}}function w(e){X("readable nexttick read 0"),e.read(0)}function x(e,t){t.resumeScheduled||(t.resumeScheduled=!0,L.nextTick(E,e,t))}function E(e,t){t.reading||(X("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(X("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=k(e,t.buffer,t.decoder),n);var n}function k(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?O(e,t):A(e,t),r}function O(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function A(e,t){var n=B.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,L.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var P=e("babel-runtime/core-js/object/get-prototype-of"),N=function(e){return e&&e.__esModule?e:{default:e}}(P),L=e("process-nextick-args");n.exports=c;var D,M=e("isarray");c.ReadableState=s;var R=(e("events").EventEmitter,function(e,t){return e.listeners(t).length}),U=e("./internal/streams/stream"),B=e("safe-buffer").Buffer,F=r.Uint8Array||function(){},q=e("core-util-is");q.inherits=e("inherits");var z=e("util"),X=void 0;X=z&&z.debuglog?z.debuglog("stream"):function(){};var G,H=e("./internal/streams/BufferList"),V=e("./internal/streams/destroy");q.inherits(c,U);var W=["error","close","destroy","pause","resume"];Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=V.destroy,c.prototype._undestroy=V.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=B.from(e,t),t=""),n=!0),u(this,e,t,!1,n)},c.prototype.unshift=function(e){return u(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(t){return G||(G=e("string_decoder/").StringDecoder),this._readableState.decoder=new G(t),this._readableState.encoding=t,this};var K=8388608;c.prototype.read=function(e){X("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return X("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):v(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&j(this),null;var r,i=t.needReadable;return X("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,X("length less than watermark",i)),t.ended||t.reading?(i=!1,X("reading or ended",i)):i&&(X("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(n,t))),r=e>0?T(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(e,n){function r(e,t){X("onunpipe"),e===f&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){X("onend"),e.end()}function o(){X("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",v),e.removeListener("error",c),e.removeListener("unpipe",r),f.removeListener("end",i),f.removeListener("end",p),f.removeListener("data",s),g=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||v()}function s(t){X("ondata"),y=!1,!1!==e.write(t)||y||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==C(d.pipes,e))&&!g&&(X("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,y=!0),f.pause())}function c(t){X("onerror",t),p(),e.removeListener("error",c),0===R(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),p()}function l(){X("onfinish"),e.removeListener("close",u),p()}function p(){X("unpipe"),f.unpipe(e)}var f=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,X("pipe count=%d opts=%j",d.pipesCount,n);var h=(!n||!1!==n.end)&&e!==t.stdout&&e!==t.stderr,m=h?i:p;d.endEmitted?L.nextTick(m):f.once("end",m),e.on("unpipe",r);var v=_(f);e.on("drain",v);var g=!1,y=!1;return f.on("data",s),a(e,"error",c),e.once("close",u),e.once("finish",l),e.emit("pipe",f),d.flowing||(X("pipe resume"),f.resume()),e},c.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=C(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},c.prototype.on=function(e,t){var n=U.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&v(this):L.nextTick(w,this))}return n},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){var e=this._readableState;return e.flowing||(X("resume"),e.flowing=!0,x(this,e)),this},c.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(X("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){X("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<W.length;o++)e.on(W[o],this.emit.bind(this,W[o]));return this._read=function(t){X("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=T}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(e,t,n){"use strict";function r(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){a(e,t,n)})):a(this,null,null)}function a(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=i;var s=e("./_stream_duplex"),c=e("core-util-is");c.inherits=e("inherits"),c.inherits(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(e,t){var n=this;s.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(e,n,r){(function(t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){O(t,e)}}function a(e){return X.from(e)}function s(e){return X.isBuffer(e)||e instanceof G}function c(){}function u(t,n){R=R||e("./_stream_duplex"),t=t||{};var r=n instanceof R;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,a=t.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){y(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(t){if(R=R||e("./_stream_duplex"),!(F.call(l,this)||this instanceof R))return new l(t);this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t["final"]&&(this._final=t["final"])),z.call(this)}function p(e,t){var n=new Error("write after end");e.emit("error",n),M.nextTick(t,n)}function f(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),M.nextTick(r,o),i=!1),i}function d(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=X.from(t,n)),t}function h(e,t,n,r,i,o){if(!n){var a=d(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,r,i,o);return c}function m(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,n,r,i){--t.pendingcb,n?(M.nextTick(i,r),M.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),T(e,t))}function g(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function y(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(g(n),t)v(e,n,r,t,i);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?U(b,e,n,o,i):b(e,n,o,i)}}function b(e,t,n,r){n||_(e,t),t.pendingcb--,r(),T(e,t)}function _(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,m(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,p=n.callback;if(m(e,t,!1,t.objectMode?1:u.length,u,l,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function S(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,M.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function T(e,t){var n=x(t);return n&&(S(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function k(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?M.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function O(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var A=e("babel-runtime/core-js/object/define-property"),j=i(A),I=e("babel-runtime/core-js/symbol/has-instance"),C=i(I),P=e("babel-runtime/core-js/symbol"),N=i(P),L=e("babel-runtime/core-js/set-immediate"),D=i(L),M=e("process-nextick-args");n.exports=l;var R,U=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?D["default"]:M.nextTick;l.WritableState=u;var B=e("core-util-is");B.inherits=e("inherits");var F,q={deprecate:e("util-deprecate")},z=e("./internal/streams/stream"),X=e("safe-buffer").Buffer,G=r.Uint8Array||function(){},H=e("./internal/streams/destroy");B.inherits(l,z),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:q.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof N["default"]&&C["default"]&&"function"==typeof Function.prototype[C["default"]]?(F=Function.prototype[C["default"]],(0,j["default"])(l,C["default"],{value:function(e){return!!F.call(this,e)||this===l&&e&&e._writableState instanceof u}})):F=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&s(e);return o&&!X.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=c),r.ended?p(this,n):(o||f(this,r,e,n))&&(r.pendingcb++,i=h(this,r,o,e,t,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||k(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=H.destroy,l.prototype._undestroy=H.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){e.copy(t,n)}var o=e("safe-buffer").Buffer,a=e("util");t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)i(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":193,util:36}],185:[function(e,t,n){"use strict";function r(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(a.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}var a=e("process-nextick-args");t.exports={destroy:r,undestroy:i}},{"process-nextick-args":172}],186:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:158}],187:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":188}],188:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":188}],190:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=e("./runtime"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(e,t,n){!function(e){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new d(r||[]);return a._invoke=u(e,n,s),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function c(e){function t(n,i,o,a){var s=r(e[n],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),a)}a(s.arg)}function n(e,n){function r(){return new Promise((function(r,i){t(e,n,r,i)}))}return i=i?i.then(r,r):r()}var i;this._invoke=n}function u(e,t,n){var i=T;return function(o,a){if(i===O)throw new Error("Generator is already running");if(i===A){if("throw"===o)throw a;return m()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=l(s,n);if(c){if(c===j)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===T)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=O;var u=r(e,t,n);if("normal"===u.type){if(i=n.done?A:k,u.arg===j)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function l(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=v,l(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,j;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,j):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function h(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,g=Object.prototype,y=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",E="object"==typeof t,S=e.regeneratorRuntime;if(S)E&&(t.exports=S);else{S=e.regeneratorRuntime=E?t.exports:{},S.wrap=n;var T="suspendedStart",k="suspendedYield",O="executing",A="completed",j={},I={};I[_]=function(){return this};var C=Object.getPrototypeOf,P=C&&C(C(h([])));P&&P!==g&&y.call(P,_)&&(I=P);var N=a.prototype=i.prototype=Object.create(I);o.prototype=N.constructor=a,a.constructor=o,a[x]=o.displayName="GeneratorFunction",S.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},S.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,x in e||(e[x]="GeneratorFunction")),e.prototype=Object.create(N),e},S.awrap=function(e){return{__await:e}},s(c.prototype),c.prototype[w]=function(){return this},S.AsyncIterator=c,S.async=function(e,t,r,i){var o=new c(n(e,t,r,i));return S.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},s(N),N[x]="Generator",N[_]=function(){return this},N.toString=function(){return"[object Generator]"},S.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,j):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;f(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),j}}}}(function(){return this}()||Function("return this")())},{}],193:[function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return a(e,t,n)}var o=e("buffer"),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,n),n.Buffer=i),r(a,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:38}],194:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/string/from-code-point"),o=r(i),a=e("babel-runtime/core-js/json/stringify"),s=r(a),c=e("babel-runtime/helpers/typeof"),u=r(c),l=e("babel-runtime/core-js/object/define-property"),p=r(l),f=e("babel-runtime/core-js/object/keys"),d=r(f),h=e("babel-runtime/core-js/object/create"),m=r(h);!function(n){function r(e,t){if(!(this instanceof r))return new r(e,t);var i=this;a(i),i.q=i.c="",i.bufferCheckPosition=n.MAX_BUFFER_LENGTH,i.opt=t||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!e,i.noscript=!(!e&&!i.opt.noscript),i.state=K.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?(0,m["default"])(n.XML_ENTITIES):(0,m["default"])(n.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=(0,m["default"])(X)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),_(i,"onready")}function i(e){for(var t=Math.max(n.MAX_BUFFER_LENGTH,10),r=0,i=0,o=R.length;i<o;i++){var a=e[R[i]].length;if(a>t)switch(R[i]){case"textNode":x(e);break;case"cdata":w(e,"oncdata",e.cdata),e.cdata="";break;case"script":w(e,"onscript",e.script),e.script="";break;default:S(e,"Max buffer length exceeded: "+R[i])}r=Math.max(r,a)}var s=n.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=s+e.position}function a(e){for(var t=0,n=R.length;t<n;t++)e[R[t]]=""}function c(e){x(e),""!==e.cdata&&(w(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(w(e,"onscript",e.script),e.script="")}function l(e,t){return new f(e,t)}function f(e,t){if(!(this instanceof f))return new f(e,t);M.apply(this),this._parser=new r(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,U.forEach((function(e){(0,p["default"])(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t,t;n.on(e,t)},enumerable:!0,configurable:!1})}))}function h(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function v(e){return'"'===e||"'"===e}function g(e){return">"===e||h(e)}function y(e,t){return e.test(t)}function b(e,t){return!y(e,t)}function _(e,t,n){e[t]&&e[t](n)}function w(e,t,n){e.textNode&&x(e),_(e,t,n)}function x(e){e.textNode=E(e.opt,e.textNode),e.textNode&&_(e,"ontext",e.textNode),e.textNode=""}function E(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function S(e,t){return x(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,_(e,"onerror",t),e}function T(e){return e.sawRoot&&!e.closedRoot&&k(e,"Unclosed root tag"),e.state!==K.BEGIN&&e.state!==K.BEGIN_WHITESPACE&&e.state!==K.TEXT&&S(e,"Unexpected end"),x(e),e.c="",e.closed=!0,_(e,"onend"),r.call(e,e.strict,e.opt),e}function k(e,t){if("object"!==(void 0===e?"undefined":(0,u["default"])(e))||!(e instanceof r))throw new Error("bad call to strictFail");e.strict&&S(e,t)}function O(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,w(e,"onopentagstart",n)}function A(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),i=r[0],o=r[1];return t&&"xmlns"===e&&(i="xmlns",o=""),{prefix:i,local:o}}function j(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=A(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==q)k(e,"xml: prefix must be bound to "+q+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==z)k(e,"xmlns: prefix must be bound to "+z+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=(0,m["default"])(o.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,w(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function I(e,t){if(e.opt.xmlns){var n=e.tag,r=A(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(k(e,"Unbound namespace prefix: "+(0,s["default"])(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&(0,d["default"])(n.ns).forEach((function(t){w(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var o=0,a=e.attribList.length;o<a;o++){var c=e.attribList[o],u=c[0],l=c[1],p=A(u,!0),f=p.prefix,h=p.local,m=""===f?"":n.ns[f]||"",v={name:u,value:l,prefix:f,local:h,uri:m};f&&"xmlns"!==f&&!m&&(k(e,"Unbound namespace prefix: "+(0,s["default"])(f)),v.uri=f),e.tag.attributes[u]=v,w(e,"onattribute",v)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),w(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=K.TEXT:e.state=K.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function C(e){if(!e.tagName)return k(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=K.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=K.SCRIPT);w(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--;){if(e.tags[t].name===r)break;k(e,"Unexpected close tag")}if(t<0)return k(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=K.TEXT);e.tagName=n;for(var i=e.tags.length;i-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,w(e,"onclosetag",e.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&(0,d["default"])(o.ns).forEach((function(t){var n=o.ns[t];w(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=K.TEXT}function P(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(k(e,"Invalid character entity"),"&"+e.entity+";"):(0,o["default"])(t))}function N(e,t){"<"===t?(e.state=K.OPEN_WAKA,e.startTagPosition=e.position):h(t)||(k(e,"Non-whitespace before first tag."),e.textNode=t,e.state=K.TEXT)}function L(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}function D(e){var t=this;if(this.error)throw this.error;if(t.closed)return S(t,"Cannot write after close. Assign an onready handler.");if(null===e)return T(t);"object"===(void 0===e?"undefined":(0,u["default"])(e))&&(e=e.toString());for(var n=0,r="";;){if(r=L(e,n++),t.c=r,!r)break;switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case K.BEGIN:if(t.state=K.BEGIN_WHITESPACE,"\ufeff"===r)continue;N(t,r);continue;case K.BEGIN_WHITESPACE:N(t,r);continue;case K.TEXT:if(t.sawRoot&&!t.closedRoot){for(var o=n-1;r&&"<"!==r&&"&"!==r;)(r=L(e,n++))&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(o,n-1)}"<"!==r||t.sawRoot&&t.closedRoot&&!t.strict?(h(r)||t.sawRoot&&!t.closedRoot||k(t,"Text data outside of root node."),"&"===r?t.state=K.TEXT_ENTITY:t.textNode+=r):(t.state=K.OPEN_WAKA,t.startTagPosition=t.position);continue;case K.SCRIPT:"<"===r?t.state=K.SCRIPT_ENDING:t.script+=r;continue;case K.SCRIPT_ENDING:"/"===r?t.state=K.CLOSE_TAG:(t.script+="<"+r,t.state=K.SCRIPT);continue;case K.OPEN_WAKA:if("!"===r)t.state=K.SGML_DECL,t.sgmlDecl="";else if(h(r));else if(y(G,r))t.state=K.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=K.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=K.PROC_INST,t.procInstName=t.procInstBody="";else{if(k(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=K.TEXT}continue;case K.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===B?(w(t,"onopencdata"),t.state=K.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=K.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===F?(t.state=K.DOCTYPE,(t.doctype||t.sawRoot)&&k(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(w(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=K.TEXT):v(r)?(t.state=K.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case K.SGML_DECL_QUOTED:r===t.q&&(t.state=K.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case K.DOCTYPE:">"===r?(t.state=K.TEXT,w(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=K.DOCTYPE_DTD:v(r)&&(t.state=K.DOCTYPE_QUOTED,t.q=r));continue;case K.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=K.DOCTYPE:v(r)&&(t.state=K.DOCTYPE_DTD_QUOTED,t.q=r);continue;case K.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=K.DOCTYPE_DTD,t.q="");continue;case K.COMMENT:"-"===r?t.state=K.COMMENT_ENDING:t.comment+=r;continue;case K.COMMENT_ENDING:"-"===r?(t.state=K.COMMENT_ENDED,t.comment=E(t.opt,t.comment),t.comment&&w(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=K.COMMENT);continue;case K.COMMENT_ENDED:">"!==r?(k(t,"Malformed comment"),t.comment+="--"+r,t.state=K.COMMENT):t.state=K.TEXT;continue;case K.CDATA:"]"===r?t.state=K.CDATA_ENDING:t.cdata+=r;continue;case K.CDATA_ENDING:"]"===r?t.state=K.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=K.CDATA);continue;case K.CDATA_ENDING_2:">"===r?(t.cdata&&w(t,"oncdata",t.cdata),w(t,"onclosecdata"),t.cdata="",t.state=K.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=K.CDATA);continue;case K.PROC_INST:"?"===r?t.state=K.PROC_INST_ENDING:h(r)?t.state=K.PROC_INST_BODY:t.procInstName+=r;continue;case K.PROC_INST_BODY:if(!t.procInstBody&&h(r))continue;"?"===r?t.state=K.PROC_INST_ENDING:t.procInstBody+=r;continue;case K.PROC_INST_ENDING:">"===r?(w(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=K.TEXT):(t.procInstBody+="?"+r,t.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:y(H,r)?t.tagName+=r:(O(t),">"===r?I(t):"/"===r?t.state=K.OPEN_TAG_SLASH:(h(r)||k(t,"Invalid character in tag name"),t.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:">"===r?(I(t,!0),C(t)):(k(t,"Forward-slash in opening tag not followed by >"),t.state=K.ATTRIB);continue;case K.ATTRIB:if(h(r))continue;">"===r?I(t):"/"===r?t.state=K.OPEN_TAG_SLASH:y(G,r)?(t.attribName=r,t.attribValue="",t.state=K.ATTRIB_NAME):k(t,"Invalid attribute name");continue;case K.ATTRIB_NAME:"="===r?t.state=K.ATTRIB_VALUE:">"===r?(k(t,"Attribute without value"),t.attribValue=t.attribName,j(t),I(t)):h(r)?t.state=K.ATTRIB_NAME_SAW_WHITE:y(H,r)?t.attribName+=r:k(t,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=K.ATTRIB_VALUE;else{if(h(r))continue;k(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",w(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?I(t):y(G,r)?(t.attribName=r,t.state=K.ATTRIB_NAME):(k(t,"Invalid attribute name"),t.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(h(r))continue;v(r)?(t.q=r,t.state=K.ATTRIB_VALUE_QUOTED):(k(t,"Unquoted attribute value"),t.state=K.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case K.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=K.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}j(t),t.q="",t.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:h(r)?t.state=K.ATTRIB:">"===r?I(t):"/"===r?t.state=K.OPEN_TAG_SLASH:y(G,r)?(k(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=K.ATTRIB_NAME):k(t,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!g(r)){"&"===r?t.state=K.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}j(t),">"===r?I(t):t.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(t.tagName)">"===r?C(t):y(H,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=K.SCRIPT):(h(r)||k(t,"Invalid tagname in closing tag"),t.state=K.CLOSE_TAG_SAW_WHITE);else{if(h(r))continue;b(G,r)?t.script?(t.script+="</"+r,t.state=K.SCRIPT):k(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case K.CLOSE_TAG_SAW_WHITE:if(h(r))continue;">"===r?C(t):k(t,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var s,c;switch(t.state){case K.TEXT_ENTITY:s=K.TEXT,c="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:s=K.ATTRIB_VALUE_QUOTED,c="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:s=K.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===r?(t[c]+=P(t),t.entity="",t.state=s):y(t.entity.length?W:V,r)?t.entity+=r:(k(t,"Invalid character in entity name"),t[c]+="&"+t.entity+r,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&i(t),t}n.parser=function(e,t){return new r(e,t)},n.SAXParser=r,n.SAXStream=f,n.createStream=l,n.MAX_BUFFER_LENGTH=65536;var M,R=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],m["default"]||(Object.create=function(e){function t(){}return t.prototype=e,new t}),d["default"]||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),r.prototype={end:function(){T(this)},write:D,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){c(this)}};try{M=e("stream").Stream}catch(e){M=function(){}}var U=n.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));f.prototype=(0,m["default"])(M.prototype,{constructor:{value:f}}),f.prototype.write=function(n){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(n)){if(!this._decoder){var r=e("string_decoder").StringDecoder;this._decoder=new r("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},f.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},f.prototype.on=function(e,t){var n=this;return n._parser["on"+e]||-1===U.indexOf(e)||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),M.prototype.on.call(n,e,t)};var B="[CDATA[",F="DOCTYPE",q="http://www.w3.org/XML/1998/namespace",z="http://www.w3.org/2000/xmlns/",X={xml:q,xmlns:z},G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,H=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,V=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,K=0;for(var Y in n.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,d["default"])(n.ENTITIES).forEach((function(e){var t=n.ENTITIES[e],r="number"==typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=r})),n.STATE)n.STATE[n.STATE[Y]]=Y;K=n.STATE,o["default"]||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,i=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o<a;){var c=Number(arguments[o]);if(!isFinite(c)||c<0||c>1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?i.push(c):(c-=65536,n=55296+(c>>10),r=c%1024+56320,i.push(n,r)),(o+1===a||i.length>16384)&&(s+=e.apply(null,i),i.length=0)}return s};p["default"]?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(void 0===n?(void 0).sax={}:n)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(e,t,n){function r(){i.call(this)}t.exports=r;var i=e("events").EventEmitter;e("inherits")(r,i),r.Readable=e("readable-stream/readable.js"),r.Writable=e("readable-stream/writable.js"),r.Duplex=e("readable-stream/duplex.js"),r.Transform=e("readable-stream/transform.js"),r.PassThrough=e("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function o(){l||(l=!0,e.end())}function a(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){u.removeListener("data",n),e.removeListener("drain",r),u.removeListener("end",o),u.removeListener("close",a),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",c),u.removeListener("close",c),e.removeListener("close",c)}var u=this;u.on("data",n),e.on("drain",r),e._isStdio||t&&!1===t.end||(u.on("end",o),u.on("close",a));var l=!1;return u.on("error",s),e.on("error",s),u.on("end",c),u.on("close",c),e.on("close",c),e.emit("pipe",u),e}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(e,n,r){(function(t){var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),a=e("builtin-status-codes"),s=e("url"),c=r;c.request=function(e,r){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new n(e);return r&&p.on("response",r),p},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=n,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(e,n,r){(function(e){"use strict";function t(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var n=t();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}r.fetch=i(e.fetch)&&i(e.ReadableStream),r.writableStream=i(e.WritableStream),r.abortController=i(e.AbortController),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);r.arraybuffer=r.fetch||a&&n("arraybuffer"),r.msstream=!r.fetch&&s&&n("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&a&&n("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!t()&&i(t().overrideMimeType),r.vbArray=i(e.VBArray),o=null}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],198:[function(e,n,r){(function(t,r,i){"use strict";function o(e,t){return u.fetch&&t?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&e?"arraybuffer":u.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=e("babel-runtime/core-js/object/keys"),c=function(e){return e&&e.__esModule?e:{default:e}}(s),u=e("./capability"),l=e("inherits"),p=e("./response"),f=e("readable-stream"),d=e("to-arraybuffer"),h=p.IncomingMessage,m=p.readyStates,v=n.exports=function(e){var t=this;f.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),(0,c["default"])(e.headers).forEach((function(n){t.setHeader(n,e.headers[n])}));var n,r=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!u.abortController)r=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!u.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}t._mode=o(n,r),t._fetchTimer=null,t.on("finish",(function(){t._onFinish()}))};l(v,f.Writable),v.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===g.indexOf(r)&&(n._headers[r]={name:e,value:t})},v.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},v.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},v.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,o=e._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=u.arraybuffer?d(i.concat(e._body)):u.blobConstructor?new r.Blob(e._body.map((function(e){return d(e)})),{type:(o["content-type"]||{}).value||""}):i.concat(e._body).toString());var s=[];if((0,c["default"])(o).forEach((function(e){var t=o[e].name,n=o[e].value;Array.isArray(n)?n.forEach((function(e){s.push([t,e])})):s.push([t,n])})),"fetch"===e._mode){var l=null;if(u.abortController){var p=new AbortController;l=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(n){return void t.nextTick((function(){e.emit("error",n)}))}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case m.LOADING:case m.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(n){return void t.nextTick((function(){e.emit("error",n)}))}}}},v.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},v.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},v.prototype._write=function(e,t,n){this._body.push(e),n()},v.prototype.abort=v.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},v.prototype.end=function(e,t,n){var r=this;"function"==typeof e&&(n=e,e=void 0),f.Writable.prototype.end.call(r,e,t,n)},v.prototype.flushHeaders=function(){},v.prototype.setTimeout=function(){},v.prototype.setNoDelay=function(){},v.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(e,n,r){(function(t,n,i){"use strict";var o=e("babel-runtime/core-js/promise"),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=e("./capability"),c=e("inherits"),u=e("readable-stream"),l=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},p=r.IncomingMessage=function(e,r,o,c){var l=this;if(u.Readable.call(l),l._mode=o,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){t.nextTick((function(){l.emit("close")}))})),"fetch"===o){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),s.writableStream){var p=new WritableStream({write:function(e){return new a["default"]((function(t,n){l._destroyed?n():l.push(new i(e))?t():l._resumeFetch=t}))},close:function(){n.clearTimeout(c),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void r.body.pipeTo(p)["catch"]((function(e){n.clearTimeout(c),l._destroyed||l.emit("error",e)}))}catch(e){}}var f=r.body.getReader();!function e(){f.read().then((function(t){if(!l._destroyed){if(t.done)return n.clearTimeout(c),void l.push(null);l.push(new i(t.value)),e()}}))["catch"]((function(e){n.clearTimeout(c),l._destroyed||l.emit("error",e)}))}()}else if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!s.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var h=d.match(/;\s*charset=([^;])(;|$)/);h&&(l._charset=h[1].toLowerCase())}l._charset||(l._charset="utf-8")}};c(p,u.Readable),p.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},p.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new i(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;r=t.response,e.push(new i(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==l.LOADING||!r)break;e.push(new i(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==l.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(e,t,n){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=r(e);if("string"!=typeof t&&(y.isEncoding===b||!b(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=f,this.end=d,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=h,this.end=m,t=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0)}function c(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"\u951f\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\u951f\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\u951f\ufffd"}}function u(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\u951f\ufffd":t}function f(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function h(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}var y=e("safe-buffer").Buffer,b=y.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=p,o.prototype.text=l,o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":193}],201:[function(e,t,n){(function(t,r){function i(e,t){this._id=e,this._clearFn=t}var o=e("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,c={},u=0;n.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&s.call(arguments,1);return c[t]=!0,o((function(){c[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,n){if(e&&u.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function o(e){return u.isString(e)&&(e=i(e)),e instanceof r?e.format():r.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t}var c=e("punycode"),u=e("./util");n.parse=i,n.resolve=a,n.resolveObject=s,n.format=o,n.Url=r;var l=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),m=["'"].concat(h),v=["%","/","?",";","#"].concat(m),g=["/","?","#"],y=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");r.prototype.parse=function(e,t,n){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),e=o.join(i);var s=e;if(s=s.trim(),!n&&1===e.split("#").length){var p=f.exec(s);if(p)return this.path=s,this.href=s,this.pathname=p[1],p[2]?(this.search=p[2],this.query=t?E.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var d=l.exec(s);if(d){d=d[0];var h=d.toLowerCase();this.protocol=h,s=s.substr(d.length)}if(n||d||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===s.substr(0,2);!S||d&&w[d]||(s=s.substr(2),this.slashes=!0)}if(!w[d]&&(S||d&&!x[d])){for(var T=-1,k=0;k<g.length;k++){var O=s.indexOf(g[k]);-1!==O&&(-1===T||O<T)&&(T=O)}var A,j;j=-1===T?s.lastIndexOf("@"):s.lastIndexOf("@",T),-1!==j&&(A=s.slice(0,j),s=s.slice(j+1),this.auth=decodeURIComponent(A)),T=-1;for(k=0;k<v.length;k++){O=s.indexOf(v[k]);-1!==O&&(-1===T||O<T)&&(T=O)}-1===T&&(T=s.length),this.host=s.slice(0,T),s=s.slice(T),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var C=this.hostname.split(/\./),P=(k=0,C.length);k<P;k++){var N=C[k];if(N&&!N.match(y)){for(var L="",D=0,M=N.length;D<M;D++)N.charCodeAt(D)>127?L+="x":L+=N[D];if(!L.match(y)){var R=C.slice(0,k),U=C.slice(k+1),B=N.match(b);B&&(R.push(B[1]),U.unshift(B[2])),U.length&&(s="/"+U.join(".")+s),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=c.toASCII(this.hostname));var F=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+F,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!_[h])for(k=0,P=m.length;k<P;k++){var z=m[k];if(-1!==s.indexOf(z)){var X=encodeURIComponent(z);X===z&&(X=escape(z)),s=s.split(z).join(X)}}var G=s.indexOf("#");-1!==G&&(this.hash=s.substr(G),s=s.slice(0,G));var H=s.indexOf("?");if(-1!==H?(this.search=s.substr(H),this.query=s.substr(H+1),t&&(this.query=E.parse(this.query)),s=s.slice(0,H)):t&&(this.search="",this.query={}),s&&(this.pathname=s),x[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var V=this.search||"";this.path=F+V}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(o=E.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||x[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),a=a.replace("#","%23"),t+i+n+a+r},r.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(u.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(n[l]=e[l])}return x[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!x[e.protocol]){for(var p=Object.keys(e),f=0;f<p.length;f++){var d=p[f];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||w[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=y||g||n.host&&e.pathname,_=b,E=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!x[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),b=b&&(""===h[0]||""===E[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=e.search,n.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(S){n.hostname=n.host=E.shift();var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return n.search=e.search,n.query=e.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,A=0,j=E.length;j>=0;j--)k=E[j],"."===k?E.splice(j,1):".."===k?(E.splice(j,1),A++):A&&(E.splice(j,1),A--);if(!b&&!_)for(;A--;A)E.unshift("..");!b||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var I=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){n.hostname=n.host=I?"":E.length?E.shift():"";T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return b=b||n.host&&E.length,b&&!I&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=p.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":204,punycode:174,querystring:177}],204:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],205:[function(e,n,r){(function(e){function t(e,t){function n(){if(!i){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}n.exports=t}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],206:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],207:[function(e,n,r){(function(t,n){function i(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),c(n,e,n.depth)}function o(e,t){var n=i.styles[t];return n?"\x1b["+i.colors[n][0]+"m"+e+"\x1b["+i.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function c(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=c(e,i,n)),i}var o=u(e,t);if(o)return o;var a=Object.keys(t),m=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),T(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(t);if(0===a.length){if(k(t)){var v=t.name?": "+t.name:"";return e.stylize("[Function"+v+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(T(t))return l(t)}var g,y="",_=!1,w=["{","}"];return h(t)&&(_=!0,w=["[","]"]),k(t)&&(y=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(y=" "+RegExp.prototype.toString.call(t)),S(t)&&(y=" "+Date.prototype.toUTCString.call(t)),T(t)&&(y=" "+l(t)),0!==a.length||_&&0!=t.length?n<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),g=_?p(e,t,n,m,a):a.map((function(r){return f(e,t,n,m,r,_)})),e.seen.pop(),d(g,y,w)):w[0]+y+w[1]}function u(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(f(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}function f(e,t,n,r,i,o){var a,s,u;if(u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},u.get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),C(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?c(e,u.value,null):c(e,u.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function w(e){return void 0===e}function x(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===A(e)}function T(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function k(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function A(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var P=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(P,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<o;s=r[++n])v(s)||!E(s)?a+=" "+s:a+=" "+i(s);return a},r.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(w(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return o};var N,L={};r.debuglog=function(e){if(w(N)&&(N=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!L[e])if(new RegExp("\\b"+e+"\\b","i").test(N)){var n=t.pid;L[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else L[e]=function(){};return L[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=m,r.isNull=v,r.isNullOrUndefined=g,r.isNumber=y,r.isString=b,r.isSymbol=_,r.isUndefined=w,r.isRegExp=x,r.isObject=E,r.isDate=S,r.isError=T,r.isFunction=k,r.isPrimitive=O,r.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",I(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(e,t,n){"use strict";(function(){n.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(void 0)},{}],209:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/helpers/typeof"),o=r(i),a=e("babel-runtime/core-js/object/keys"),s=r(a);(function(){var t,r,i,a,c,u={}.hasOwnProperty;t=e("xmlbuilder"),r=e("./defaults").defaults,a=function(e){return"string"==typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},c=function(e){return"<![CDATA["+i(e)+"]]>"},i=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function e(e){var t,n,i;for(t in this.options={},n=r[.2],n)u.call(n,t)&&(i=n[t],this.options[t]=i);for(t in e)u.call(e,t)&&(i=e[t],this.options[t]=i)}return e.prototype.buildObject=function(e){var n,i,l,p,f;return n=this.options.attrkey,i=this.options.charkey,1===(0,s["default"])(e).length&&this.options.rootName===r[.2].rootName?(f=(0,s["default"])(e)[0],e=e[f]):f=this.options.rootName,l=function(e){return function(t,r){var s,p,f,d,h,m;if("object"!==(void 0===r?"undefined":(0,o["default"])(r)))e.options.cdata&&a(r)?t.raw(c(r)):t.txt(r);else if(Array.isArray(r)){for(d in r)if(u.call(r,d))for(h in p=r[d],p)f=p[h],t=l(t.ele(h),f).up()}else for(h in r)if(u.call(r,h))if(p=r[h],h===n){if("object"===(void 0===p?"undefined":(0,o["default"])(p)))for(s in p)m=p[s],t=t.att(s,m)}else if(h===i)t=e.options.cdata&&a(p)?t.raw(c(p)):t.txt(p);else if(Array.isArray(p))for(d in p)u.call(p,d)&&(f=p[d],t="string"==typeof f?e.options.cdata&&a(f)?t.ele(h).raw(c(f)).up():t.ele(h,f).up():l(t.ele(h),f).up());else"object"===(void 0===p?"undefined":(0,o["default"])(p))?t=l(t.ele(h),p).up():"string"==typeof p&&e.options.cdata&&a(p)?t=t.ele(h).raw(c(p)).up():(null==p&&(p=""),t=t.ele(h,p.toString()).up());return t}}(this),p=t.create(f,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(p,e).end(this.options.renderOpts)},e}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(e,t,n){"use strict";(function(){n.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/object/get-own-property-names"),o=r(i),a=e("babel-runtime/core-js/object/keys"),s=r(a),c=e("babel-runtime/helpers/typeof"),u=r(c);(function(){var t,r,i,a,c,l,p,f,d=function(e,t){return function(){return e.apply(t,arguments)}},h=function(e,t){function n(){this.constructor=e}for(var r in t)m.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},m={}.hasOwnProperty;p=e("sax"),i=e("events"),t=e("./bom"),l=e("./processors"),f=e("timers").setImmediate,r=e("./defaults").defaults,a=function(e){return"object"===(void 0===e?"undefined":(0,u["default"])(e))&&null!=e&&0===(0,s["default"])(e).length},c=function(e,t,n){var r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r],t=o(t,n);return t},n.Parser=function(e){function i(e){var t,i,o;if(this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this),!(this instanceof n.Parser))return new n.Parser(e);for(t in this.options={},i=r[.2],i)m.call(i,t)&&(o=i[t],this.options[t]=o);for(t in e)m.call(e,t)&&(o=e[t],this.options[t]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(l.normalize)),this.reset()}return h(i,e),i.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),f(this.processAsync))}catch(e){if(t=e,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(t)}},i.prototype.assignOrPush=function(e,t,n){return t in e?(e[t]instanceof Array||(e[t]=[e[t]]),e[t].push(n)):this.options.explicitArray?e[t]=[n]:e[t]=n},i.prototype.reset=function(){var e,t,n,r;return this.removeAllListeners(),this.saxParser=p.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(e){return function(t){if(e.saxParser.resume(),!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit("error",t)}}(this),this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit("end",e.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=function(n){return function(i){var o,a,s,u,l;if(s={},s[t]="",!n.options.ignoreAttrs)for(o in l=i.attributes,l)m.call(l,o)&&(e in s||n.options.mergeAttrs||(s[e]={}),a=n.options.attrValueProcessors?c(n.options.attrValueProcessors,i.attributes[o],o):i.attributes[o],u=n.options.attrNameProcessors?c(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(s,u,a):s[e][u]=a);return s["#name"]=n.options.tagNameProcessors?c(n.options.tagNameProcessors,i.name):i.name,n.options.xmlns&&(s[n.options.xmlnskey]={uri:i.uri,local:i.local}),r.push(s)}}(this),this.saxParser.onclosetag=function(e){return function(){var n,i,l,p,f,d,h,v,g,y;if(d=r.pop(),f=d["#name"],e.options.explicitChildren&&e.options.preserveChildrenOrder||delete d["#name"],!0===d.cdata&&(n=d.cdata,delete d.cdata),g=r[r.length-1],d[t].match(/^\s*$/)&&!n?(i=d[t],delete d[t]):(e.options.trim&&(d[t]=d[t].trim()),e.options.normalize&&(d[t]=d[t].replace(/\s{2,}/g," ").trim()),d[t]=e.options.valueProcessors?c(e.options.valueProcessors,d[t],f):d[t],1===(0,s["default"])(d).length&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])),a(d)&&(d=""!==e.options.emptyTag?e.options.emptyTag:i),null!=e.options.validator&&(y="/"+function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)p=r[e],n.push(p["#name"]);return n}().concat(f).join("/"),function(){var t;try{d=e.options.validator(y,g&&g[f],d)}catch(n){return t=n,e.emit("error",t)}}()),e.options.explicitChildren&&!e.options.mergeAttrs&&"object"===(void 0===d?"undefined":(0,u["default"])(d)))if(e.options.preserveChildrenOrder){if(g){for(l in g[e.options.childkey]=g[e.options.childkey]||[],h={},d)m.call(d,l)&&(h[l]=d[l]);g[e.options.childkey].push(h),delete d["#name"],1===(0,s["default"])(d).length&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])}}else p={},e.options.attrkey in d&&(p[e.options.attrkey]=d[e.options.attrkey],delete d[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in d&&(p[e.options.charkey]=d[e.options.charkey],delete d[e.options.charkey]),(0,o["default"])(d).length>0&&(p[e.options.childkey]=d),d=p;return r.length>0?e.assignOrPush(g,f,d):(e.options.explicitRoot&&(v=d,d={},d[f]=v),e.resultObject=d,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),n=function(e){return function(n){var i,o;if(o=r[r.length-1])return o[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[e.options.childkey]=o[e.options.childkey]||[],i={"#name":"__text__"},i[t]=n,e.options.normalize&&(i[t]=i[t].replace(/\s{2,}/g," ").trim()),o[e.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(e){return function(e){var t;if(t=n(e))return t.cdata=!0}}()},i.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",(function(e){return this.reset(),n(null,e)})),this.on("error",(function(e){return this.reset(),n(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,f(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(e){if(r=e,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},i}(i.EventEmitter),n.parseString=function(e,t,r){var i,o,a;return null!=r?("function"==typeof r&&(i=r),"object"===(void 0===t?"undefined":(0,u["default"])(t))&&(o=t)):("function"==typeof t&&(i=t),o={}),a=new n.Parser(o),a.parseString(e,i)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(e,t,n){"use strict";(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(e){return e.toLowerCase()},n.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},n.stripPrefix=function(t){return t.replace(e,"")},n.parseNumbers=function(e){return isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e},n.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(void 0)},{}],213:[function(e,t,n){"use strict";(function(){var t,r,i,o,a=function(e,t){function n(){this.constructor=e}for(var r in t)s.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./defaults"),t=e("./builder"),i=e("./parser"),o=e("./processors"),n.defaults=r.defaults,n.processors=o,n.ValidationError=function(e){function t(e){this.message=e}return a(t,e),t}(Error),n.Builder=t.Builder,n.Parser=i.Parser,n.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=e("babel-runtime/core-js/object/get-prototype-of"),o=r(i),a=e("babel-runtime/helpers/typeof"),s=r(a),c=e("babel-runtime/core-js/object/assign"),u=r(c);(function(){var e,n,r,i,a,c,l=[].slice,p={}.hasOwnProperty;e=function(){var e,t,n,r,o,a;if(a=arguments[0],o=2<=arguments.length?l.call(arguments,1):[],i(u["default"]))u["default"].apply(null,arguments);else for(e=0,n=o.length;e<n;e++)if(null!=(r=o[e]))for(t in r)p.call(r,t)&&(a[t]=r[t]);return a},i=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},a=function(e){var t;return!!e&&("function"===(t=void 0===e?"undefined":(0,s["default"])(e))||"object"===t)},n=function(e){return i(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},r=function(e){var t;if(n(e))return!e.length;for(t in e)if(p.call(e,t))return!1;return!0},c=function(e){var t,n;return a(e)&&(n=(0,o["default"])(e))&&(t=n.constructor)&&"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},t.exports.assign=e,t.exports.isFunction=i,t.exports.isObject=a,t.exports.isArray=n,t.exports.isEmpty=r,t.exports.isPlainObject=c}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){t.exports=function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,null==t)throw new Error("Missing attribute name of element "+e.name);if(null==n)throw new Error("Missing attribute value for attribute "+t+" of element "+e.name);this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return(0,i["default"])(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(n)}return r(t,e),t.prototype.clone=function(){return(0,i["default"])(this)},t.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},t}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return r(t,e),t.prototype.clone=function(){return(0,i["default"])(this)},t.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},t}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r,i,o,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name");if(null==r)throw new Error("Missing DTD attribute name");if(!i)throw new Error("Missing DTD attribute type");if(!o)throw new Error("Missing DTD attribute default");if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},t}(n)}).call(void 0)},{"./XMLNode":227}],219:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name");r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(r)}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},t}(n)}).call(void 0)},{"./XMLNode":227}],220:[function(e,t,n){"use strict";(function(){var n,r,i=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./Utility").isObject,n=e("./XMLNode"),t.exports=function(e){function t(e,n,i,o){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing entity name");if(null==o)throw new Error("Missing entity value");if(this.pe=!!n,this.name=this.stringify.eleName(i),r(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity");if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(o)}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},t}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing notation name");if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(n),null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},t}(n)}).call(void 0)},{"./XMLNode":227}],222:[function(e,t,n){"use strict";(function(){var n,r,i=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./Utility").isObject,n=e("./XMLNode"),t.exports=function(e){function t(e,n,i,o){var a;t.__super__.constructor.call(this,e),r(n)&&(a=n,n=a.version,i=a.encoding,o=a.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},t}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c=function(e,t){function n(){this.constructor=e}for(var r in t)u.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=e("./Utility").isObject,a=e("./XMLNode"),n=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),r=e("./XMLDTDElement"),o=e("./XMLDTDNotation"),t.exports=function(e){function t(e,n,r){var i,o;t.__super__.constructor.call(this,e),this.documentObject=e,s(n)&&(i=n,n=i.pubID,r=i.sysID),null==r&&(o=[n,r],r=o[0],n=o[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return c(t,e),t.prototype.element=function(e,t){var n;return n=new r(this,e,t),this.children.push(n),this},t.prototype.attList=function(e,t,r,i,o){var a;return a=new n(this,e,t,r,i,o),this.children.push(a),this},t.prototype.entity=function(e,t){var n;return n=new i(this,!1,e,t),this.children.push(n),this},t.prototype.pEntity=function(e,t){var n;return n=new i(this,!0,e,t),this.children.push(n),this},t.prototype.notation=function(e,t){var n;return n=new o(this,e,t),this.children.push(n),this},t.prototype.toString=function(e){return this.options.writer.set(e).docType(this)},t.prototype.ele=function(e,t){return this.element(e,t)},t.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t.prototype.up=function(){return this.root()||this.documentObject},t}(a)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(e,t,n){"use strict";(function(){var n,r,i,o,a=function(e,t){function n(){this.constructor=e}for(var r in t)s.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=e("./Utility").isPlainObject,n=e("./XMLNode"),i=e("./XMLStringifier"),r=e("./XMLStringWriter"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,null),e||(e={}),e.writer||(e.writer=new r),this.options=e,this.stringify=new i(e),this.isDocument=!0}return a(t,e),t.prototype.end=function(e){var t;return e?o(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c,u,l,p,f,d,h,m,v,g,y,b,_,w={}.hasOwnProperty;_=e("./Utility"),y=_.isObject,g=_.isFunction,b=_.isPlainObject,p=e("./XMLElement"),r=e("./XMLCData"),i=e("./XMLComment"),d=e("./XMLRaw"),v=e("./XMLText"),f=e("./XMLProcessingInstruction"),u=e("./XMLDeclaration"),l=e("./XMLDocType"),o=e("./XMLDTDAttList"),s=e("./XMLDTDEntity"),a=e("./XMLDTDElement"),c=e("./XMLDTDNotation"),n=e("./XMLAttribute"),m=e("./XMLStringifier"),h=e("./XMLStringWriter"),t.exports=function(){function e(e,t,n){var r;e||(e={}),e.writer?b(e.writer)&&(r=e.writer,e.writer=new h(r)):e.writer=new h(e),this.options=e,this.writer=e.writer,this.stringify=new m(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.node=function(e,t,n){var r;if(null==e)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),e=e.valueOf(),null==t&&(t={}),t=t.valueOf(),y(t)||(r=[t,n],n=r[0],t=r[1]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},e.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(e,t,n)},e.prototype.attribute=function(e,t){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=e&&(e=e.valueOf()),y(e))for(r in e)w.call(e,r)&&(i=e[r],this.attribute(r,i));else g(t)&&(t=t.apply()),this.options.skipNullAttributes&&null==t||(this.currentNode.attributes[e]=new n(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.currentLevel+1)),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.cdata(t,this.currentLevel+1)),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.comment(t,this.currentLevel+1)),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new d(this,e),this.onData(this.writer.raw(t,this.currentLevel+1)),this},e.prototype.instruction=function(e,t){var n,r,i,o,a;if(this.openCurrent(),null!=e&&(e=e.valueOf()),null!=t&&(t=t.valueOf()),Array.isArray(e))for(n=0,o=e.length;n<o;n++)r=e[n],this.instruction(r);else if(y(e))for(r in e)w.call(e,r)&&(i=e[r],this.instruction(r,i));else g(t)&&(t=t.apply()),a=new f(this,e,t),this.onData(this.writer.processingInstruction(a,this.currentLevel+1));return this},e.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.currentLevel+1)),this},e.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new l(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1)),this},e.prototype.attList=function(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.currentLevel+1)),this},e.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new s(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1)),this},e.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new s(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1)),this},e.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new c(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1)),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&0===this.currentLevel&&e instanceof p&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel)),e.isOpen=!0},e.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel)),e.isClosed=!0},e.prototype.onData=function(e){return this.documentStarted=!0,this.onDataCallback(e)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r,o,a,s,c=function(e,t){function n(){this.constructor=e}for(var r in t)u.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=e("./Utility"),a=s.isObject,o=s.isFunction,r=e("./XMLNode"),n=e("./XMLAttribute"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element name");this.name=this.stringify.eleName(n),this.attributes={},null!=r&&this.attribute(r),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return c(t,e),t.prototype.clone=function(){var e,t,n,r;for(t in n=(0,i["default"])(this),n.isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes,r)u.call(r,t)&&(e=r[t],n.attributes[t]=e.clone());return n.children=[],this.children.forEach((function(e){var t;return t=e.clone(),t.parent=n,n.children.push(t)})),n},t.prototype.attribute=function(e,t){var r,i;if(null!=e&&(e=e.valueOf()),a(e))for(r in e)u.call(e,r)&&(i=e[r],this.attribute(r,i));else o(t)&&(t=t.apply()),this.options.skipNullAttributes&&null==t||(this.attributes[e]=new n(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,n,r;if(null==e)throw new Error("Missing attribute name");if(e=e.valueOf(),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},t.prototype.toString=function(e){return this.options.writer.set(e).element(this)},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t}(r)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c,u,l,p,f,d,h={}.hasOwnProperty;d=e("./Utility"),f=d.isObject,p=d.isFunction,l=d.isEmpty,a=null,n=null,r=null,i=null,o=null,c=null,u=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=e("./XMLElement"),n=e("./XMLCData"),r=e("./XMLComment"),i=e("./XMLDeclaration"),o=e("./XMLDocType"),c=e("./XMLRaw"),u=e("./XMLText"),s=e("./XMLProcessingInstruction"))}return t.prototype.element=function(e,t,n){var r,i,o,a,s,c,u,d,m,v;if(c=null,null==t&&(t={}),t=t.valueOf(),f(t)||(m=[t,n],n=m[0],t=m[1]),null!=e&&(e=e.valueOf()),Array.isArray(e))for(o=0,u=e.length;o<u;o++)i=e[o],c=this.element(i);else if(p(e))c=this.element(e.apply());else if(f(e)){for(s in e)if(h.call(e,s))if(v=e[s],p(v)&&(v=v.apply()),f(v)&&l(v)&&(v=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),v);else if(!this.options.separateArrayItems&&Array.isArray(v))for(a=0,d=v.length;a<d;a++)i=v[a],r={},r[s]=i,c=this.element(r);else f(v)?(c=this.element(s),c.element(v)):c=this.element(s,v)}else c=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(null==c)throw new Error("Could not create any elements with: "+e);return c},t.prototype.insertBefore=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},t.prototype.insertAfter=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},t.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element");return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},t.prototype.node=function(e,t,n){var r,i;return null!=e&&(e=e.valueOf()),t||(t={}),t=t.valueOf(),f(t)||(i=[t,n],n=i[0],t=i[1]),r=new a(this,e,t),null!=n&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t;return t=new u(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new n(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new r(this,e),this.children.push(t),this},t.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.raw=function(e){var t;return t=new c(this,e),this.children.push(t),this},t.prototype.instruction=function(e,t){var n,r,i,o,a;if(null!=e&&(e=e.valueOf()),null!=t&&(t=t.valueOf()),Array.isArray(e))for(o=0,a=e.length;o<a;o++)n=e[o],this.instruction(n);else if(f(e))for(n in e)h.call(e,n)&&(r=e[n],this.instruction(n,r));else p(t)&&(t=t.apply()),i=new s(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.instructionAfter=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.declaration=function(e,t,n){var r,o;return r=this.document(),o=new i(r,e,t,n),r.children[0]instanceof i?r.children[0]=o:r.children.unshift(o),r.root()||r},t.prototype.doctype=function(e,t){var n,r,i,a,s,c,u,l,p,f;for(r=this.document(),i=new o(r,e,t),p=r.children,a=s=0,u=p.length;s<u;a=++s)if((n=p[a])instanceof o)return r.children[a]=i,i;for(f=r.children,a=c=0,l=f.length;c<l;a=++c)if(n=f[a],n.isRoot)return r.children.splice(a,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;for(e=this;e;){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},t.prototype.document=function(){var e;for(e=this;e;){if(e.isDocument)return e;e=e.parent}},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e;if((e=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[e-1]},t.prototype.next=function(){var e;if(-1===(e=this.parent.children.indexOf(this))||e===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t){return this.doctype(e,t)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(n),r&&(this.value=this.stringify.insValue(r))}return r(t,e),t.prototype.clone=function(){return(0,i["default"])(this)},t.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},t}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return r(t,e),t.prototype.clone=function(){return(0,i["default"])(this)},t.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},t}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c,u,l,p,f,d,h,m=function(e,t){function n(){this.constructor=e}for(var r in t)v.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},v={}.hasOwnProperty;c=e("./XMLDeclaration"),u=e("./XMLDocType"),n=e("./XMLCData"),r=e("./XMLComment"),l=e("./XMLElement"),f=e("./XMLRaw"),d=e("./XMLText"),p=e("./XMLProcessingInstruction"),i=e("./XMLDTDAttList"),o=e("./XMLDTDElement"),a=e("./XMLDTDEntity"),s=e("./XMLDTDNotation"),h=e("./XMLWriterBase"),t.exports=function(e){function t(e,n){t.__super__.constructor.call(this,n),this.stream=e}return m(t,e),t.prototype.document=function(e){var t,n,i,o,a,s,l,f;for(s=e.children,n=0,o=s.length;n<o;n++)t=s[n],t.isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,l=e.children,f=[],i=0,a=l.length;i<a;i++)switch(t=l[i],!1){case!(t instanceof c):f.push(this.declaration(t));break;case!(t instanceof u):f.push(this.docType(t));break;case!(t instanceof r):f.push(this.comment(t));break;case!(t instanceof p):f.push(this.processingInstruction(t));break;default:f.push(this.element(t))}return f},t.prototype.attribute=function(e){return this.stream.write(" "+e.name+'="'+e.value+'"')},t.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+"<![CDATA["+e.text+"]]>"+this.endline(e))},t.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},t.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('<?xml version="'+e.version+'"'),null!=e.encoding&&this.stream.write(' encoding="'+e.encoding+'"'),null!=e.standalone&&this.stream.write(' standalone="'+e.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(e))},t.prototype.docType=function(e,t){var c,u,l,f;if(t||(t=0),this.stream.write(this.space(t)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e)),f=e.children,u=0,l=f.length;u<l;u++)switch(c=f[u],!1){case!(c instanceof i):this.dtdAttList(c,t+1);break;case!(c instanceof o):this.dtdElement(c,t+1);break;case!(c instanceof a):this.dtdEntity(c,t+1);break;case!(c instanceof s):this.dtdNotation(c,t+1);break;case!(c instanceof n):this.cdata(c,t+1);break;case!(c instanceof r):this.comment(c,t+1);break;case!(c instanceof p):this.processingInstruction(c,t+1);break;default:throw new Error("Unknown DTD node type: "+c.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(e))},t.prototype.element=function(e,t){var i,o,a,s,c,u,h,m;for(c in t||(t=0),m=this.space(t),this.stream.write(m+"<"+e.name),u=e.attributes,u)v.call(u,c)&&(i=u[c],this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?this.stream.write("></"+e.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)this.stream.write(">"),this.stream.write(e.children[0].value),this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.newline),h=e.children,a=0,s=h.length;a<s;a++)switch(o=h[a],!1){case!(o instanceof n):this.cdata(o,t+1);break;case!(o instanceof r):this.comment(o,t+1);break;case!(o instanceof l):this.element(o,t+1);break;case!(o instanceof f):this.raw(o,t+1);break;case!(o instanceof d):this.text(o,t+1);break;case!(o instanceof p):this.processingInstruction(o,t+1);break;default:throw new Error("Unknown XML node type: "+o.constructor.name)}this.stream.write(m+"</"+e.name+">")}return this.stream.write(this.endline(e))},t.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+"<?"+e.target),e.value&&this.stream.write(" "+e.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(e))},t.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},t.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},t.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType),"#DEFAULT"!==e.defaultValueType&&this.stream.write(" "+e.defaultValueType),e.defaultValue&&this.stream.write(' "'+e.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+"<!ELEMENT "+e.name+" "+e.value),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+"<!ENTITY"),e.pe&&this.stream.write(" %"),this.stream.write(" "+e.name),e.value?this.stream.write(' "'+e.value+'"'):(e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.nData&&this.stream.write(" NDATA "+e.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+"<!NOTATION "+e.name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.pubID?this.stream.write(' PUBLIC "'+e.pubID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},t}(h)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c,u,l,p,f,d,h,m=function(e,t){function n(){this.constructor=e}for(var r in t)v.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},v={}.hasOwnProperty;c=e("./XMLDeclaration"),u=e("./XMLDocType"),n=e("./XMLCData"),r=e("./XMLComment"),l=e("./XMLElement"),f=e("./XMLRaw"),d=e("./XMLText"),p=e("./XMLProcessingInstruction"),i=e("./XMLDTDAttList"),o=e("./XMLDTDElement"),a=e("./XMLDTDEntity"),s=e("./XMLDTDNotation"),h=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return m(t,e),t.prototype.document=function(e){var t,n,i,o,a;for(this.textispresent=!1,o="",a=e.children,n=0,i=a.length;n<i;n++)t=a[n],o+=function(){switch(!1){case!(t instanceof c):return this.declaration(t);case!(t instanceof u):return this.docType(t);case!(t instanceof r):return this.comment(t);case!(t instanceof p):return this.processingInstruction(t);default:return this.element(t,0)}}.call(this);return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},t.prototype.attribute=function(e){return" "+e.name+'="'+e.value+'"'},t.prototype.cdata=function(e,t){return this.space(t)+"<![CDATA["+e.text+"]]>"+this.newline},t.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},t.prototype.declaration=function(e,t){var n;return n=this.space(t),n+='<?xml version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),n+=this.spacebeforeslash+"?>",n+this.newline},t.prototype.docType=function(e,t){var c,u,l,f,d;if(t||(t=0),f=this.space(t),f+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?f+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(f+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(f+=" [",f+=this.newline,d=e.children,u=0,l=d.length;u<l;u++)c=d[u],f+=function(){switch(!1){case!(c instanceof i):return this.dtdAttList(c,t+1);case!(c instanceof o):return this.dtdElement(c,t+1);case!(c instanceof a):return this.dtdEntity(c,t+1);case!(c instanceof s):return this.dtdNotation(c,t+1);case!(c instanceof n):return this.cdata(c,t+1);case!(c instanceof r):return this.comment(c,t+1);case!(c instanceof p):return this.processingInstruction(c,t+1);default:throw new Error("Unknown DTD node type: "+c.constructor.name)}}.call(this);f+="]"}return f+=this.spacebeforeslash+">",f+this.newline},t.prototype.element=function(e,t){var i,o,a,s,c,u,h,m,g,y,b,_,w;for(h in t||(t=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),_=this.space(t),m="",m+=_+"<"+e.name,g=e.attributes,g)v.call(g,h)&&(i=g[h],m+=this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?m+="></"+e.name+">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)m+=">",m+=e.children[0].value,m+="</"+e.name+">"+this.newline;else{if(this.dontprettytextnodes)for(y=e.children,a=0,c=y.length;a<c;a++)if(o=y[a],null!=o.value){this.textispresent++,w=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,_=this.space(t)),m+=">"+this.newline,b=e.children,s=0,u=b.length;s<u;s++)o=b[s],m+=function(){switch(!1){case!(o instanceof n):return this.cdata(o,t+1);case!(o instanceof r):return this.comment(o,t+1);case!(o instanceof l):return this.element(o,t+1);case!(o instanceof f):return this.raw(o,t+1);case!(o instanceof d):return this.text(o,t+1);case!(o instanceof p):return this.processingInstruction(o,t+1);default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);w&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m+=_+"</"+e.name+">"+this.newline}return m},t.prototype.processingInstruction=function(e,t){var n;return n=this.space(t)+"<?"+e.target,e.value&&(n+=" "+e.value),n+(this.spacebeforeslash+"?>")+this.newline},t.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.dtdAttList=function(e,t){var n;return n=this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),n+(this.spacebeforeslash+">")+this.newline},t.prototype.dtdElement=function(e,t){return this.space(t)+"<!ELEMENT "+e.name+" "+e.value+this.spacebeforeslash+">"+this.newline},t.prototype.dtdEntity=function(e,t){var n;return n=this.space(t)+"<!ENTITY",e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" NDATA "+e.nData)),n+(this.spacebeforeslash+">")+this.newline},t.prototype.dtdNotation=function(e,t){var n;return n=this.space(t)+"<!NOTATION "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),n+(this.spacebeforeslash+">")+this.newline},t.prototype.openNode=function(e,t){var n,r,i,o;if(t||(t=0),e instanceof l){for(r in i=this.space(t)+"<"+e.name,o=e.attributes,o)v.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+(e.children?">":"/>")+this.newline}return i=this.space(t)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),i+(e.children?" [":">")+this.newline},t.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof l):return this.space(t)+"</"+e.name+">"+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}},t}(h)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(e,t,n){"use strict";(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{},i)n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},t.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},t.prototype.cdata=function(e){return e=""+e||"",e=e.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e)},t.prototype.comment=function(e){if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return""+e||""},t.prototype.attName=function(e){return""+e||""},t.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},t.prototype.insTarget=function(e){return""+e||""},t.prototype.insValue=function(e){if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},t.prototype.xmlVersion=function(e){if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},t.prototype.xmlStandalone=function(e){return e?"yes":"no"},t.prototype.dtdPubID=function(e){return""+e||""},t.prototype.dtdSysID=function(e){return""+e||""},t.prototype.dtdElementValue=function(e){return""+e||""},t.prototype.dtdAttType=function(e){return""+e||""},t.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},t.prototype.dtdEntityValue=function(e){return""+e||""},t.prototype.dtdNData=function(e){return""+e||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},t.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},t.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},t}()}).call(void 0)},{}],233:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),i=function(e){return e&&e.__esModule?e:{default:e}}(r);(function(){var n,r=function(e,t){function n(){this.constructor=e}for(var r in t)o.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return r(t,e),t.prototype.clone=function(){return(0,i["default"])(this)},t.prototype.toString=function(e){return this.options.writer.set(e).text(this)},t}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(e,t,n){"use strict";(function(){var e={}.hasOwnProperty;t.exports=function(){function t(t){var n,r,i,o,a,s,c,u,l;for(n in t||(t={}),this.pretty=t.pretty||!1,this.allowEmpty=null!=(r=t.allowEmpty)&&r,this.pretty?(this.indent=null!=(i=t.indent)?i:" ",this.newline=null!=(o=t.newline)?o:"\n",this.offset=null!=(a=t.offset)?a:0,this.dontprettytextnodes=null!=(s=t.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(c=t.spacebeforeslash)?c:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=t.writer||{},u)e.call(u,n)&&(l=u[n],this[n]=l)}return t.prototype.set=function(t){var n,r,i;for(n in t||(t={}),"pretty"in t&&(this.pretty=t.pretty),"allowEmpty"in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent="indent"in t?t.indent:" ",this.newline="newline"in t?t.newline:"\n",this.offset="offset"in t?t.offset:0,this.dontprettytextnodes="dontprettytextnodes"in t?t.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in t?t.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{},r)e.call(r,n)&&(i=r[n],this[n]=i);return this},t.prototype.space=function(e){var t;return this.pretty?(t=(e||0)+this.offset+1,t>0?new Array(t).join(this.indent):""):""},t}()}).call(void 0)},{}],235:[function(e,t,n){"use strict";(function(){var n,r,i,o,a,s,c;c=e("./Utility"),a=c.assign,s=c.isFunction,n=e("./XMLDocument"),r=e("./XMLDocumentCB"),o=e("./XMLStringWriter"),i=e("./XMLStreamWriter"),t.exports.create=function(e,t,r,i){var o,s;if(null==e)throw new Error("Root element needs a name");return i=a({},t,r,i),o=new n(i),s=o.element(e),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(e,t,i){var o;return s(e)&&(o=[e,t],t=o[0],i=o[1],e={}),t?new r(e,t,i):new n(e)},t.exports.stringWriter=function(e){return new o(e)},t.exports.streamWriter=function(e,t){return new i(e,t)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(e,t,n){function r(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)i.call(n,r)&&(e[r]=n[r])}return e}t.exports=r;var i=Object.prototype.hasOwnProperty},{}],237:[function(e,t,n){"use strict";function r(e,t,n){a.isBuffer(t)||(t=new a(t)),a.isBuffer(n)||(n=new a(n)),t.length>p?t=e(t):t.length<p&&(t=a.concat([t,f],p));for(var r=new a(p),i=new a(p),o=0;o<p;o++)r[o]=54^t[o],i[o]=92^t[o];var s=e(a.concat([r,n]));return e(a.concat([i,s]))}function i(e,t){e=e||"sha1";var n=l[e],i=[];return n||o("algorithm:",e,"is not yet supported"),{update:function(e){return a.isBuffer(e)||(e=new a(e)),i.push(e),e.length,this},digest:function(e){var o=a.concat(i),s=t?r(n,t,o):n(o);return i=null,e?s.toString(e):s}}}function o(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var a=e("buffer").Buffer,s=e("./sha"),c=e("./sha256"),u=e("./md5"),l={sha1:s,sha256:c,md5:u},p=64,f=new a(p);f.fill(0),n.createHash=function(e){return i(e)},n.createHmac=function(e,t){return i(e,t)},function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){o("sorry,",e,"is not implemented yet")}}))},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(e,t,n){"use strict";function r(e,t){if(e.length%s!=0){var n=e.length+(s-e.length%s);e=a.concat([e,c],n)}for(var r=[],i=t?e.readInt32BE:e.readInt32LE,o=0;o<e.length;o+=s)r.push(i.call(e,o));return r}function i(e,t,n){for(var r=new a(t),i=n?r.writeInt32BE:r.writeInt32LE,o=0;o<e.length;o++)i.call(r,e[o],4*o,!0);return r}function o(e,t,n,o){return a.isBuffer(e)||(e=new a(e)),i(t(r(e,o),e.length*u),n,o)}var a=e("buffer").Buffer,s=4,c=new a(s);c.fill(0);var u=8;t.exports={hash:o}},{buffer:38}],239:[function(e,t,n){"use strict";function r(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,l=271733878,p=0;p<e.length;p+=16){var f=n,d=r,h=i,m=l;n=o(n,r,i,l,e[p+0],7,-680876936),l=o(l,n,r,i,e[p+1],12,-389564586),i=o(i,l,n,r,e[p+2],17,606105819),r=o(r,i,l,n,e[p+3],22,-1044525330),n=o(n,r,i,l,e[p+4],7,-176418897),l=o(l,n,r,i,e[p+5],12,1200080426),i=o(i,l,n,r,e[p+6],17,-1473231341),r=o(r,i,l,n,e[p+7],22,-45705983),n=o(n,r,i,l,e[p+8],7,1770035416),l=o(l,n,r,i,e[p+9],12,-1958414417),i=o(i,l,n,r,e[p+10],17,-42063),r=o(r,i,l,n,e[p+11],22,-1990404162),n=o(n,r,i,l,e[p+12],7,1804603682),l=o(l,n,r,i,e[p+13],12,-40341101),i=o(i,l,n,r,e[p+14],17,-1502002290),r=o(r,i,l,n,e[p+15],22,1236535329),n=a(n,r,i,l,e[p+1],5,-165796510),l=a(l,n,r,i,e[p+6],9,-1069501632),i=a(i,l,n,r,e[p+11],14,643717713),r=a(r,i,l,n,e[p+0],20,-373897302),n=a(n,r,i,l,e[p+5],5,-701558691),l=a(l,n,r,i,e[p+10],9,38016083),i=a(i,l,n,r,e[p+15],14,-660478335),r=a(r,i,l,n,e[p+4],20,-405537848),n=a(n,r,i,l,e[p+9],5,568446438),l=a(l,n,r,i,e[p+14],9,-1019803690),i=a(i,l,n,r,e[p+3],14,-187363961),r=a(r,i,l,n,e[p+8],20,1163531501),n=a(n,r,i,l,e[p+13],5,-1444681467),l=a(l,n,r,i,e[p+2],9,-51403784),i=a(i,l,n,r,e[p+7],14,1735328473),r=a(r,i,l,n,e[p+12],20,-1926607734),n=s(n,r,i,l,e[p+5],4,-378558),l=s(l,n,r,i,e[p+8],11,-2022574463),i=s(i,l,n,r,e[p+11],16,1839030562),r=s(r,i,l,n,e[p+14],23,-35309556),n=s(n,r,i,l,e[p+1],4,-1530992060),l=s(l,n,r,i,e[p+4],11,1272893353),i=s(i,l,n,r,e[p+7],16,-155497632),r=s(r,i,l,n,e[p+10],23,-1094730640),n=s(n,r,i,l,e[p+13],4,681279174),l=s(l,n,r,i,e[p+0],11,-358537222),i=s(i,l,n,r,e[p+3],16,-722521979),r=s(r,i,l,n,e[p+6],23,76029189),n=s(n,r,i,l,e[p+9],4,-640364487),l=s(l,n,r,i,e[p+12],11,-421815835),i=s(i,l,n,r,e[p+15],16,530742520),r=s(r,i,l,n,e[p+2],23,-995338651),n=c(n,r,i,l,e[p+0],6,-198630844),l=c(l,n,r,i,e[p+7],10,1126891415),i=c(i,l,n,r,e[p+14],15,-1416354905),r=c(r,i,l,n,e[p+5],21,-57434055),n=c(n,r,i,l,e[p+12],6,1700485571),l=c(l,n,r,i,e[p+3],10,-1894986606),i=c(i,l,n,r,e[p+10],15,-1051523),r=c(r,i,l,n,e[p+1],21,-2054922799),n=c(n,r,i,l,e[p+8],6,1873313359),l=c(l,n,r,i,e[p+15],10,-30611744),i=c(i,l,n,r,e[p+6],15,-1560198380),r=c(r,i,l,n,e[p+13],21,1309151649),n=c(n,r,i,l,e[p+4],6,-145523070),l=c(l,n,r,i,e[p+11],10,-1120210379),i=c(i,l,n,r,e[p+2],15,718787259),r=c(r,i,l,n,e[p+9],21,-343485551),n=u(n,f),r=u(r,d),i=u(i,h),l=u(l,m)}return Array(n,r,i,l)}function i(e,t,n,r,i,o){return u(l(u(u(t,e),u(r,o)),i),n)}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}function u(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function l(e,t){return e<<t|e>>>32-t}var p=e("./helpers");t.exports=function(e){return p.hash(e,r,16)}},{"./helpers":238}],240:[function(e,t,n){"use strict";function r(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,c=-271733879,u=-1732584194,l=271733878,p=-1009589776,f=0;f<e.length;f+=16){for(var d=r,h=c,m=u,v=l,g=p,y=0;y<80;y++){n[y]=y<16?e[f+y]:s(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var b=a(a(s(r,5),i(y,c,u,l)),a(a(p,n[y]),o(y)));p=l,l=u,u=s(c,30),c=r,r=b}r=a(r,d),c=a(c,h),u=a(u,m),l=a(l,v),p=a(p,g)}return Array(r,c,u,l,p)}function i(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function a(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function s(e,t){return e<<t|e>>>32-t}var c=e("./helpers");t.exports=function(e){return c.hash(e,r,20,!0)}},{"./helpers":238}],241:[function(e,t,n){"use strict";var r=e("./helpers"),i=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},o=function(e,t){return e>>>t|e<<32-t},a=function(e,t){return e>>>t},s=function(e,t,n){return e&t^~e&n},c=function(e,t,n){return e&t^e&n^t&n},u=function(e){return o(e,2)^o(e,13)^o(e,22)},l=function(e){return o(e,6)^o(e,11)^o(e,25)},p=function(e){return o(e,7)^o(e,18)^a(e,3)},f=function(e){return o(e,17)^o(e,19)^a(e,10)},d=function(e,t){var n,r,o,a,d,h,m,v,g,y,b=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),_=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),w=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var x=0;x<e.length;x+=16){n=_[0],r=_[1],o=_[2],a=_[3],d=_[4],h=_[5],m=_[6],v=_[7];for(var E=0;E<64;E++)w[E]=E<16?e[E+x]:i(i(i(f(w[E-2]),w[E-7]),p(w[E-15])),w[E-16]),g=i(i(i(i(v,l(d)),s(d,h,m)),b[E]),w[E]),y=i(u(n),c(n,r,o)),v=m,m=h,h=d,d=i(a,g),a=o,o=r,r=n,n=i(g,y);_[0]=i(n,_[0]),_[1]=i(r,_[1]),_[2]=i(o,_[2]),_[3]=i(a,_[3]),_[4]=i(d,_[4]),_[5]=i(h,_[5]),_[6]=i(m,_[6]),_[7]=i(v,_[7])}return _};t.exports=function(e){return r.hash(e,d,32,!0)}},{"./helpers":238}],242:[function(n,r,i){(function(t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var a=n("babel-runtime/core-js/object/create"),s=o(a),c=n("babel-runtime/helpers/classCallCheck"),u=o(c),l=n("babel-runtime/helpers/createClass"),p=o(l),f=n("babel-runtime/helpers/typeof"),d=o(f);!function(n){if("object"===(void 0===i?"undefined":(0,d["default"])(i))&&void 0!==r)r.exports=n();else if("function"==typeof e&&e.amd)e([],n);else{var o;o="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this,o.mime=n()}}((function(){return function e(t,r,i){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!c&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=r[s]={exports:{}};t[s][0].call(p.exports,(function(e){var n=t[s][1][e];return o(n||e)}),p,p.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var r=function(){function e(){(0,u["default"])(this,e),this._types=(0,s["default"])(null),this._extensions=(0,s["default"])(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t])}return(0,p["default"])(e,[{key:"define",value:function(e,t){for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}!t&&this._extensions[n]||(this._extensions[n]=r[0])}}},{key:"getType",value:function(e){e=String(e);var t=e.replace(/^.*[\/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null}},{key:"getExtension",value:function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null}}]),e}();t.exports=r},{}],2:[function(e,t,n){var r=e("./Mime");t.exports=new r(e("./types/standard"),e("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(e,t,n){t.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(e,t,n){t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)}))}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(e,t,n){"use strict";n.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},n.escape=e("escape-html"),n.timestamp=function(e){if(e){var t=e;return"string"==typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(e,t,n){(function(t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return void 0===e?t:e}function a(e,t){return function(n,r,i){if(n)return t(n);e({data:r,status:i.statusCode,headers:i.headers,res:i})}}var s,c=e("babel-runtime/core-js/json/stringify"),u=i(c),l=e("babel-runtime/helpers/typeof"),p=i(l),f=e("util"),d=e("url"),h=e("http"),m=e("https"),v=e("debug")("urllib"),g=e("humanize-ms"),y=0,b=Math.pow(2,31)-10,_=/^https?:\/\//i;n.TIMEOUTS=[g("300s"),g("300s")];var w=["json","text"];n.request=function(t,r,i){return 2===arguments.length&&"function"==typeof r&&(i=r,r=null),"function"==typeof i?n.requestWithCallback(t,r,i):(s||(s=e("any-promise")),new s((function(e,i){n.requestWithCallback(t,r,a(e,i))})))},n.requestWithCallback=function(i,a,s){function c(){K&&(clearTimeout(K),K=null)}function l(){Y&&(clearTimeout(Y),Y=null)}function x(e,r,o){if(l(),!s)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),j,t.pid,U.method,i),void(e&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),j,t.pid,e.name,e.message,e.stack));var c=s;s=null;var p={};if(o&&(ee=o.statusCode,p=o.headers),401===ee&&p["www-authenticate"]&&(!a.headers||!a.headers.Authorization)&&a.digestAuth){var f=p["www-authenticate"];if(f.indexOf("Digest ")>=0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",j,i,f),a.headers=a.headers||{},a.headers.Authorization=digestAuthHeader(U.method,U.path,f,a.digestAuth),v("Request#%d %s: auth with digest header: %s",j,i,a.headers.Authorization),o.headers["set-cookie"]&&(a.headers.Cookie=o.headers["set-cookie"].join(";")),n.requestWithCallback(i,a,c)}var d=Date.now()-P;ie&&(ie.contentDownload=d),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",d,Z,ee,U.method,U.host,U.path,Q,ie);var h={status:ee,statusCode:ee,headers:p,size:Z,aborted:te,rt:d,keepAliveSocket:Q,data:r,requestUrls:a.requestUrls,timing:ie,remoteAddress:ne,remotePort:re};if(e){var m="";M&&"function"==typeof M.getCurrentStatus&&(m=", agent status: "+(0,u["default"])(M.getCurrentStatus())),e.message+=", "+U.method+" "+i+" "+ee+" (connected: "+$+", keepalive socket: "+Q+m+")\nheaders: "+(0,u["default"])(p),e.data=r,e.path=U.path,e.status=ee,e.headers=p,e.res=h}c(e,r,a.streaming?o:h),a.emitter&&(I.url=i,I.socket=se&&se.connection,I.options=U,I.size=V,a.emitter.emit("response",{requestId:j,error:e,ctx:a.ctx,req:I,res:h}))}function E(e){var t=null;if(a.followRedirect&&statuses.redirect[e.statusCode]){a._followRedirectCount=(a._followRedirectCount||0)+1;var r=e.headers.location;if(r){if(!(a._followRedirectCount>a.maxRedirects)){var o=a.formatRedirectUrl?a.formatRedirectUrl(i,r):d.resolve(i,r);v("Request#%d %s: `redirected` from %s to %s",j,U.path,i,o),l(),a.headers&&a.headers.Host&&_.test(r)&&(a.headers.Host=null);var c=s;return s=null,n.requestWithCallback(o,a,c),{redirect:!0,error:null}}t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+i),t.name="MaxRedirectError"}else t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers"),t.name="FollowRedirectError"}return{redirect:!1,error:t}}function S(e,t,n){return n(null,t,e.headers["content-encoding"])}function T(e){if(ie&&(ie.waiting=Date.now()-P),v("Request#%d %s `req response` event emit: status %d, headers: %j",j,i,e.statusCode,e.headers),a.streaming){var t=E(e);return t.redirect?void e.resume():t.error?(e.resume(),x(t.error,null,e)):x(null,null,e)}if(e.on("close",(function(){v("Request#%d %s: `res close` event emit, total size %d",j,i,Z)})),e.on("error",(function(){v("Request#%d %s: `res error` event emit, total size %d",j,i,Z)})),e.on("aborted",(function(){te=!0,v("Request#%d %s: `res aborted` event emit, total size %d",j,i,Z)})),ce){t=E(e);return t.redirect?void e.resume():t.error?(e.resume(),ce.end(),x(t.error,null,e)):(!1===a.consumeWriteStream?e.on("end",x.bind(null,null,null,e)):isNode010||isNode012?first([[ce,"close"],[e,"aborted"]],(function(t,n,r){v("Request#%d %s: writeStream or res %s event emitted",j,i,r),x(J||null,null,e)})):ce.on("close",(function(){v("Request#%d %s: writeStream close event emitted",j,i),x(J||null,null,e)})),e.pipe(ce))}var n=[];e.on("data",(function(e){v("Request#%d %s: `res data` event emit, size %d",j,i,e.length),Z+=e.length,n.push(e)})),e.on("end",(function(){var t=r.concat(n,Z);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",j,i,Z,e._dumped),J)return x(J,t,e);var o=E(e);if(o.error)return x(o.error,t,e);o.redirect||S(e,t,(function(n,r,o){if(n)return x(n,t,e);if(!o&&w.indexOf(a.dataType)>=0){try{r=decodeBodyByCharset(r,e)}catch(t){return v("decodeBodyByCharset error: %s",t),x(null,r,e)}if("json"===a.dataType)if(0===Z)r=null;else{var s=parseJSON(r,R);s.error?n=s.error:r=s.data}}te&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",j,i),x(n,r,e)}))}))}function k(){v("Response timer ticking, timeout: %d",ae),Y=setTimeout((function(){Y=null;var e="Response timeout for "+ae+"ms";J=new Error(e),J.name="ResponseTimeoutError",J.requestId=j,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",j,i,J.name,e,$),O()}),ae)}function O(){v("Request#%d %s abort, connected: %s",j,i,$),se.socket||(J.noSocket=!0,x(J)),se.abort()}if(!i||"string"!=typeof i&&"object"!==(void 0===i?"undefined":(0,p["default"])(i))){var A=f.format("expect request url to be a string or a http request options, but got %j",i);throw new Error(A)}2===arguments.length&&"function"==typeof a&&(s=a,a=null),a=a||{},y>=b&&(y=0);var j=++y;a.requestUrls=a.requestUrls||[];var I={requestId:j,url:i,args:a,ctx:a.ctx};a.emitter&&a.emitter.emit("request",I),a.timeout=a.timeout||n.TIMEOUTS,a.maxRedirects=a.maxRedirects||10,a.streaming=a.streaming||a.customResponse;var C,P=Date.now();"string"==typeof i?(_.test(i)||(i="http://"+i),C=d.parse(i)):C=i;var N=(a.type||a.method||C.method||"GET").toUpperCase(),L=C.port||80,D=h,M=o(a.agent,n.agent),R=a.fixJSONCtlChars;"https:"===C.protocol&&(D=m,M=o(a.httpsAgent,n.httpsAgent),C.port||(L=443));var U={host:C.hostname||C.host||"localhost",path:C.path||"/",method:N,port:L,agent:M,headers:a.headers||{},lookup:a.lookup};Array.isArray(a.timeout)?U.requestTimeout=a.timeout[a.timeout.length-1]:void 0!==a.timeout&&(U.requestTimeout=a.timeout);for(var B=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<B.length;F++){var q=B[F];a.hasOwnProperty(q)&&(U[q]=a[q])}!1!==U.rejectUnauthorized||U.hasOwnProperty("secureOptions")||(U.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var z=a.auth||C.auth;z&&(U.auth=z);var X=a.content||a.data,G="GET"===N||"HEAD"===N||a.dataAsQueryString;if(!a.content&&X&&"string"!=typeof X&&!r.isBuffer(X))if(G)X=a.nestedQuerystring?qs.stringify(X):querystring.stringify(X);else{var H=U.headers["Content-Type"]||U.headers["content-type"];H||(H="json"===a.contentType?"application/json":"application/x-www-form-urlencoded",U.headers["Content-Type"]=H),X="application/json"===parseContentType(H).type?(0,u["default"])(X):a.nestedQuerystring?qs.stringify(X):querystring.stringify(X)}G&&X&&(U.path+=(C.query?"&":"?")+X,X=null);var V=0;if(X){var W=X.length;r.isBuffer(X)||(W=r.byteLength(X)),V=U.headers["Content-Length"]=W}"json"===a.dataType&&(U.headers.Accept="application/json"),"function"==typeof a.beforeRequest&&a.beforeRequest(U);var K=null,Y=null,J=null,$=!1,Q=!1,Z=0,ee=-1,te=!1,ne="",re="",ie=null;a.timing&&(ie={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),U.headers["User-Agent"]||U.headers["user-agent"]||(U.headers["User-Agent"]=navigator.userAgent),a.gzip&&(U.headers["Accept-Encoding"]||U.headers["accept-encoding"]||(U.headers["Accept-Encoding"]="gzip"));var oe,ae,se,ce=a.writeStream;v("Request#%d %s %s with headers %j, options.path: %s",j,N,i,U.headers,U.path),a.requestUrls.push(i),Array.isArray(a.timeout)?(oe=g(a.timeout[0]),ae=g(a.timeout[1])):oe=ae=g(a.timeout),v("ConnectTimeout: %d, ResponseTimeout: %d",oe,ae);try{se=D.request(U,T)}catch(e){return x(e)}return"undefined"==typeof window?function(){v("Connect timer ticking, timeout: %d",oe),K=setTimeout((function(){K=null,-1===ee&&(ee=-2);var e="Connect timeout for "+oe+"ms",t="ConnectionTimeoutError";se.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),J=new Error(e),J.name=t,J.requestId=j,v("ConnectTimeout: Request#%d %s %s: %s, connected: %s",j,i,J.name,e,$),O()}),oe)}():se.on("requestTimeout",(function(){-1===ee&&(ee=-2);var e="Connect timeout for "+oe+"ms";J=new Error(e),J.name="ConnectionTimeoutError",J.requestId=j,O()})),ie&&se.on("finish",(function(){ie.requestSent=Date.now()-P})),se.once("socket",(function(e){ie&&(ie.queuing=Date.now()-P),isNode010&&e.socket&&(e=e.socket);var t=e.readyState;if("opening"===t)return e.once("lookup",(function(e,t,n){v("Request#%d %s lookup: %s, %s, %s",j,i,e,t,n),ie&&(ie.dnslookup=Date.now()-P),t&&(ne=t)})),void e.once("connect",(function(){ie&&(ie.connected=Date.now()-P),c(),k(),v("Request#%d %s new socket connected",j,i),$=!0,ne||(ne=e.remoteAddress),re=e.remotePort}));v("Request#%d %s reuse socket connected, readyState: %s",j,i,t),$=!0,Q=!0,ne||(ne=e.remoteAddress),re=e.remotePort,c(),k()})),se.on("error",(function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=$?"ResponseError":"RequestError"),e.message+=' (req "error")',v("Request#%d %s `req error` event emit, %s: %s",j,i,e.name,e.message),x(J||e)})),ce&&ce.once("error",(function(e){e.message+=' (writeStream "error")',J=e,v("Request#%d %s `writeStream error` event emit, %s: %s",j,i,e.name,e.message),O()})),a.stream?(a.stream.pipe(se),a.stream.once("error",(function(e){e.message+=' (stream "error")',J=e,v("Request#%d %s `readStream error` event emit, %s: %s",j,i,e.name,e.message),O()}))):se.end(X),se.requestId=j,se}}).call(this,e("_process"),e("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)})),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=0;i<t;i+=4){var o=function(t){t=t;var n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var i=(n<<16)+t&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}}(4294967296*(n||e.random()));n=987654071*o(),r.push(4294967296*o()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,c=i/s;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var u=c*o,l=e.min(4*u,i);if(u){for(var p=0;p<u;p+=o)this._doProcessBlock(r,p);var f=r.splice(0,u);n.sigBytes-=l}return new a.init(f,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(i.Hasher=p.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math);return e}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"detectIEVersion",value:function(){for(var e=4,t=document.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e",n[0];)e++;return e>4&&e}},{key:"extend",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&t[n]&&(e[n]=t[n])}},{key:"isArray",value:function(e){return"[object Array]"===Object.prototype.toString.call(arg)}},{key:"getFileType",value:function(e){return e=e.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(e)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(e)?"audio":/.bmp|.jpg|.jpeg|.png/.test(e)?"img":"other"}},{key:"isImage",value:function(e){return e=e.toLowerCase(),!!/.jpg|.jpeg|.png/.test(e)}},{key:"ISODateString",value:function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(e){return!!/^\d+$/.test(e)}}]),e}();t["default"]=o},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return function(t){function n(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function r(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function i(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function o(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}var a=e,s=a.lib,c=s.WordArray,u=s.Hasher,l=a.algo,p=[];!function(){for(var e=0;e<64;e++)p[e]=4294967296*t.abs(t.sin(e+1))|0}();var f=l.MD5=u.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var s=t+a,c=e[s];e[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var u=this._hash.words,l=e[t+0],f=e[t+1],d=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],E=e[t+12],S=e[t+13],T=e[t+14],k=e[t+15],O=u[0],A=u[1],j=u[2],I=u[3];O=n(O,A,j,I,l,7,p[0]),I=n(I,O,A,j,f,12,p[1]),j=n(j,I,O,A,d,17,p[2]),A=n(A,j,I,O,h,22,p[3]),O=n(O,A,j,I,m,7,p[4]),I=n(I,O,A,j,v,12,p[5]),j=n(j,I,O,A,g,17,p[6]),A=n(A,j,I,O,y,22,p[7]),O=n(O,A,j,I,b,7,p[8]),I=n(I,O,A,j,_,12,p[9]),j=n(j,I,O,A,w,17,p[10]),A=n(A,j,I,O,x,22,p[11]),O=n(O,A,j,I,E,7,p[12]),I=n(I,O,A,j,S,12,p[13]),j=n(j,I,O,A,T,17,p[14]),A=n(A,j,I,O,k,22,p[15]),O=r(O,A,j,I,f,5,p[16]),I=r(I,O,A,j,g,9,p[17]),j=r(j,I,O,A,x,14,p[18]),A=r(A,j,I,O,l,20,p[19]),O=r(O,A,j,I,v,5,p[20]),I=r(I,O,A,j,w,9,p[21]),j=r(j,I,O,A,k,14,p[22]),A=r(A,j,I,O,m,20,p[23]),O=r(O,A,j,I,_,5,p[24]),I=r(I,O,A,j,T,9,p[25]),j=r(j,I,O,A,h,14,p[26]),A=r(A,j,I,O,b,20,p[27]),O=r(O,A,j,I,S,5,p[28]),I=r(I,O,A,j,d,9,p[29]),j=r(j,I,O,A,y,14,p[30]),A=r(A,j,I,O,E,20,p[31]),O=i(O,A,j,I,v,4,p[32]),I=i(I,O,A,j,b,11,p[33]),j=i(j,I,O,A,x,16,p[34]),A=i(A,j,I,O,T,23,p[35]),O=i(O,A,j,I,f,4,p[36]),I=i(I,O,A,j,m,11,p[37]),j=i(j,I,O,A,y,16,p[38]),A=i(A,j,I,O,w,23,p[39]),O=i(O,A,j,I,S,4,p[40]),I=i(I,O,A,j,l,11,p[41]),j=i(j,I,O,A,h,16,p[42]),A=i(A,j,I,O,g,23,p[43]),O=i(O,A,j,I,_,4,p[44]),I=i(I,O,A,j,E,11,p[45]),j=i(j,I,O,A,k,16,p[46]),A=i(A,j,I,O,d,23,p[47]),O=o(O,A,j,I,l,6,p[48]),I=o(I,O,A,j,y,10,p[49]),j=o(j,I,O,A,T,15,p[50]),A=o(A,j,I,O,v,21,p[51]),O=o(O,A,j,I,E,6,p[52]),I=o(I,O,A,j,h,10,p[53]),j=o(j,I,O,A,w,15,p[54]),A=o(A,j,I,O,f,21,p[55]),O=o(O,A,j,I,b,6,p[56]),I=o(I,O,A,j,k,10,p[57]),j=o(j,I,O,A,g,15,p[58]),A=o(A,j,I,O,S,21,p[59]),O=o(O,A,j,I,m,6,p[60]),I=o(I,O,A,j,x,10,p[61]),j=o(j,I,O,A,d,15,p[62]),A=o(A,j,I,O,_,21,p[63]),u[0]=u[0]+O|0,u[1]=u[1]+A|0,u[2]=u[2]+j|0,u[3]=u[3]+I|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=u.clone.call(this);return e._hash=this._hash.clone(),e}});a.MD5=u._createHelper(f),a.HmacMD5=u._createHmacHelper(f)}(Math),e.MD5}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},t.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},t.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(5),s=r(a),c=n(25),u=r(c),l=n(6),p=r(l),f=n(7),d=r(f),h=function(){function e(t){i(this,e);var n=d["default"].os.name,r=d["default"].os.version||"",o=d["default"].browser.name,a=d["default"].browser.version||"",c=window.location.href,u="";c&&(u=d["default"].getHost(c));var l="pc";d["default"].os.ipad?l="pad":(d["default"].os.iphone||d["default"].os.android)&&(l="phone"),this._ri=s["default"].create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:p["default"].version,pd:"upload",sm:"upload",md:"uploader",uuid:e.getUuid(),os:n,ov:r,et:o,ev:a,uat:navigator.userAgent,app_n:u,tt:l,dm:"h5",ut:""}}return o(e,[{key:"log",value:function(e,t){t&&t.ri?(this._ri=t.ri,delete t.ri):this._ri=s["default"].create(),t&&t.ut&&(this.initParam.ut=t.ut,delete t.ut),this.initParam.t=(new Date).getTime(),this.initParam.ll="20006"==e?"error":"info",this.initParam.ri=this._ri,this.initParam.e=e;var n=[];if(t)for(var r in t)n.push(r+"="+t[r]);var i=n.join("&");this.initParam.args=encodeURIComponent(""==i?"0":i);var o=[];for(var r in this.initParam)o.push(r+"="+this.initParam[r]);var a=o.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(a):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+a}}],[{key:"getUuid",value:function(){var e=u["default"].get("p_h5_upload_u");return e||(e=s["default"].create(),u["default"].set("p_h5_upload_u",e,730)),e}},{key:"getClientId",value:function(){return u["default"].get("p_h5_upload_clientId")}},{key:"setClientId",value:function(e){return e||(e=s["default"].create()),u["default"].set("p_h5_upload_clientId",e,730),e}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"create",value:function(e,t){var n,r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||i.length,e)for(n=0;n<e;n++)o[n]=i[0|Math.random()*t];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(r=0|16*Math.random(),o[n]=i[19==n?3&r|8:r]);return o.join("")}}]),e}();t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={version:"1.5.0"};t["default"]=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){var t=navigator.userAgent,n="other";if(e.ios)return"iOS";if(e.android)return"android";if(t.indexOf("Baiduspider")>-1)return"Baiduspider";if(t.indexOf("PlayStation")>-1)return"PS4";var r="Win32"==navigator.platform||"Windows"==navigator.platform||t.indexOf("Windows")>-1,i="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;return i&&(n="macOS"),"X11"==navigator.platform&&!r&&!i&&(n="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(n="Linux"),r?"windows":n},a=function(){var e=navigator.userAgent,t="";return(e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1)&&(t="2000"),(e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1)&&(t="XP"),(e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1)&&(t="2003"),(e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1)&&(t="Vista"),(e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1)&&(t="7"),(e.indexOf("Windows NT 6.2")>-1||e.indexOf("Windows 8")>-1)&&(t="8"),(e.indexOf("Windows NT 6.3")>-1||e.indexOf("Windows 8.1")>-1)&&(t="8.1"),(e.indexOf("Windows NT 10")>-1||e.indexOf("Windows 10")>-1)&&(t="10"),t},s=function(e){var t=navigator.userAgent.toLowerCase();return e.chrome?"Chrome":e.firefox?"Firefox":e.safari?"Safari":e.webview?"webview":e.ie?/edge/.test(t)?"Edge":"IE":/baiduspider/.test(t)?"Baiduspider":/ucweb/.test(t)||/UCBrowser/.test(t)?"UC":/opera/.test(t)?"Opera":/ucweb/.test(t)?"UC":/360se/.test(t)?"360\u6d4f\u89c8\u5668":/bidubrowser/.test(t)?"\u767e\u5ea6\u6d4f\u89c8\u5668":/metasr/.test(t)?"\u641c\u72d7\u6d4f\u89c8\u5668":/lbbrowser/.test(t)?"\u730e\u8c79\u6d4f\u89c8\u5668":/micromessenger/.test(t)?"\u5fae\u4fe1\u5185\u7f6e\u6d4f\u89c8\u5668":/qqbrowser/.test(t)?"QQ\u6d4f\u89c8\u5668":/playstation/.test(t)?"PS4\u6d4f\u89c8\u5668":void 0},c=function(){var e={},t={},n=navigator.userAgent,r=navigator.platform,i=n.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=n.match(/(Android);?[\s\/]+([\d.]+)?/),u=!!n.match(/\(Macintosh\; Intel /),l=n.match(/(iPad).*OS\s([\d_]+)/),p=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&n.match(/(iPhone\sOS)\s([\d_]+)/),d=n.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(r),m=n.match(/Windows Phone ([\d.]+)/),v=d&&n.match(/TouchPad/),g=n.match(/Kindle\/([\d.]+)/),y=n.match(/Silk\/([\d._]+)/),b=n.match(/(BlackBerry).*Version\/([\d.]+)/),_=n.match(/(BB10).*Version\/([\d.]+)/),w=n.match(/(RIM\sTablet\sOS)\s([\d.]+)/),x=n.match(/PlayBook/),E=n.match(/Chrome\/([\d.]+)/)||n.match(/CriOS\/([\d.]+)/),S=n.match(/Firefox\/([\d.]+)/),T=n.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),k=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),O=!E&&n.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),A=O||n.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((t.webkit=!!i)&&(t.version=i[1]),c&&(e.android=!0,e.version=c[2]),f&&!p&&(e.ios=e.iphone=!0,e.version=f[2].replace(/_/g,".")),l&&(e.ios=e.ipad=!0,e.version=l[2].replace(/_/g,".")),p&&(e.ios=e.ipod=!0,e.version=p[3]?p[3].replace(/_/g,"."):null),m&&(e.wp=!0,e.version=m[1]),d&&(e.webos=!0,e.version=d[2]),v&&(e.touchpad=!0),b&&(e.blackberry=!0,e.version=b[2]),_&&(e.bb10=!0,e.version=_[2]),w&&(e.rimtabletos=!0,e.version=w[2]),x&&(t.playbook=!0),g&&(e.kindle=!0,e.version=g[1]),y&&(t.silk=!0,t.version=y[1]),!y&&e.android&&n.match(/Kindle Fire/)&&(t.silk=!0),E&&(t.chrome=!0,t.version=E[1]),S&&(t.firefox=!0,t.version=S[1]),T&&(e.firefoxos=!0,e.version=T[1]),k&&(t.ie=!0,t.version=k[1]),A&&(u||e.ios||h||c)&&(t.safari=!0,e.ios||(t.version=A[1])),O&&(t.webview=!0),u){var j=n.match(/[\d]*_[\d]*_[\d]*/);j&&j.length>0&&j[0]&&(e.version=j[0].replace(/_/g,"."))}return e.tablet=!!(l||x||c&&!n.match(/Mobile/)||S&&n.match(/Tablet/)||k&&!n.match(/Phone/)&&n.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||f||d||b||_||E&&n.match(/Android/)||E&&n.match(/CriOS\/([\d.]+)/)||S&&n.match(/Mobile/)||k&&n.match(/Touch/))),e.pc=!e.tablet&&!e.phone,u?e.name="macOS":h?(e.name="windows",e.version=a()):e.name=o(e),t.name=s(t),{os:e,browser:t}}(),u=function(){function e(){r(this,e)}return i(e,null,[{key:"getHost",value:function(e){var t="";if(void 0===e||null==e||""==e)return"";var n=e.indexOf("//"),r=e;n>-1&&(r=e.substring(n+2));t=r;var i=r.split("/");return i&&i.length>0&&(t=i[0]),i=t.split(":"),i&&i.length>0&&(t=i[0]),t}},{key:"os",get:function(){return c.os}},{key:"browser",get:function(){var e=c.browser;return e.name||(e.name=s()),e}}]),e}();t["default"]=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"get",value:function(e,t,n,r,i){var o;n=n||function(){},"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("This browser does not support XMLHttpRequest.")}),o=new XMLHttpRequest,o.onreadystatechange=function(){4===o.readyState&&(200===o.status?t(o.responseText):n(o.responseText))};try{void 0===r&&(r=!0),o.open("GET",e,r),i&&(o.withCredentials=!0)}catch(e){return void n(e)}try{o.send()}catch(e){n(e)}}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(27),a=n(30),s=(n(10),function(){function e(){r(this,e)}return i(e,null,[{key:"randomUUID",value:function(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var t=encodeURIComponent(e);return t.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(t,n,r){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");var i=[];for(var o in t)i.push(o);var a=i.sort(),s="",c=a.length;for(o=0;o<c;o++){var u=e.aliyunEncodeURI(a[o]),l=e.aliyunEncodeURI(t[a[o]]);""==s?s=u+n+l:s+=r+u+n+l}return s}},{key:"makeChangeSiga",value:function(t,n){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");return a.stringify(o("GET&"+e.aliyunEncodeURI("/")+"&"+e.aliyunEncodeURI(e.makeUTF8sort(t,"=","&")),n+"&"))}}]),e}());t["default"]=s},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return e.enc.Utf8}))},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return e.enc.Hex}))},function(e,t,n){e.exports=n(13)},function(t,n,r){"use strict";var i,o,a=("function"==typeof Symbol&&Symbol.iterator,r(14)),s=function(e){return e&&e.__esModule?e:{default:e}}(a),c={Vod:s["default"]};i=[],void 0!==(o=function(){return c}.apply(n,i))&&(t.exports=o),window.AliyunUpload=c,e.exports=AliyunUpload},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(15),s=n(3),c=n(16),u=r(c),l=n(18),p=r(l),f=n(24),d=r(f),h=n(4),m=r(h),v=n(1),g=r(v),y=n(5),b=r(y),_=n(26),w=r(_),x=n(31),E=r(x),S=n(32),T=r(S),k=(n(2),function(){function e(t){i(this,e),this.options=t,this.options.partSize=this.options.partSize||s.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||s.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,void 0===this.options.enableUploadProgress&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=a.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new m["default"],this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=a.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return o(e,[{key:"init",value:function(e,t,n,r){return this._retryCount=0,!(n&&!r||!n&&r)&&!(e&&!t||!e&&t)&&(this._ossCreditor.accessKeyId=e,this._ossCreditor.accessKeySecret=t,this._ossCreditor.securityToken=n,this._ossCreditor.expireTime=r,!0)}},{key:"addFile",value:function(e,t,n,r,i,o){if(!e)return!1;if(0==e.size)try{this.options.onUploadFailed({file:e},"EmptyFile","\u6587\u4ef6\u5927\u5c0f\u4e3a0\uff0c\u4e0d\u80fd\u4e0a\u4f20")}catch(e){console.log(e)}for(var s=(this.options,0);s<this._uploadList.length;s++)if(this._uploadList[s].file==e)return!1;var c=new Object;if(c.file=e,c._endpoint=t,c._bucket=n,c._object=r,c.state=a.UPLOADSTATE.INIT,c.isImage=g["default"].isImage(e.name),!c.isImage&&this.options.enableUploadProgress){var u=this;T["default"].getMd5(e,(function(e){c.fileHash=e;var t=u._getCheckoutpoint(c);u.options.localCheckpoint||t||u._getCheckoutpointFromCloud(c,(function(e){if(e.UploadPoint){var t=JSON.parse(e.UploadPoint);1!=t.loaded&&(c.checkpoint=t.checkpoint,c.loaded=t.loaded,c.videoId=e.VideoId,u._saveCheckoutpoint(c,t.checkpoint))}}),(function(e){try{if((e=JSON.parse(e))&&"InvalidParameter"==e.Code&&e.Message.indexOf("UserId")>0){u._invalidUserId=!0;var t=e.Message+"\uff0c\u6b63\u786e\u8d26\u53f7ID(userId)\u8bf7\u53c2\u8003\uff1ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(t)}}catch(e){console.log(e)}}))}))}i&&(c.videoInfo=i?JSON.parse(i).Vod:{},c.userData=p["default"].encode(i)),c.ri=b["default"].create(),this._uploadList.push(c),this._reportLog("20001",c,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(c)}catch(e){console.log(e)}return!0}},{key:"deleteFile",value:function(e){return!!this.cancelFile(e)&&(this._uploadList.splice(e,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(e){if(this.options,e<0||e>=this._uploadList.length)return!1;var t=this._uploadList[e];if(e==this._curIndex&&t.state==a.UPLOADSTATE.UPLOADING){t.state=a.UPLOADSTATE.CANCELED;var n=this._getCheckoutpoint(t);n&&n.checkpoint&&(n=n.checkpoint),n&&this._ossUpload.abort(t),this._removeCheckoutpoint(t),this.nextUpload()}else t.state!=a.UPLOADSTATE.SUCCESS&&(t.state=a.UPLOADSTATE.CANCELED);return this._reportLog("20008",t),!0}},{key:"resumeFile",value:function(e){if(this.options,e<0||e>=this._uploadList.length)return!1;var t=this._uploadList[e];return t.state==a.UPLOADSTATE.CANCELED&&(t.state=a.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(e){return this._getCheckoutpoint({file:e})}},{key:"startUpload",value:function(e){if(this._retryCount=0,this.options,this._state!=a.VODSTATE.START&&this._state!=a.VODSTATE.EXPIRE)if(this._initState(),this._curIndex=this._findUploadIndex(),-1!=this._curIndex){var t=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(t),this._state=a.VODSTATE.START}else this._state=a.VODSTATE.END;else console.log("already started or expired")}},{key:"nextUpload",value:function(){var e=this.options;if(this._state==a.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),-1!=this._curIndex){var t=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(t)}else{this._state=a.VODSTATE.END;try{e.onUploadEnd&&e.onUploadEnd(t)}catch(e){console.log(e)}}}},{key:"clear",value:function(e){for(var t=this.options,n=0,r=0;r<this._uploadList.length;r++)t.uploadList[r].state==a.UPLOADSTATE.SUCCESS&&n++,this._uploadList[r].state==e&&(t.uploadList.splice(r,1),r--);t.onClear&&t.onClear(t.uploadList.length,n)}},{key:"stopUpload",value:function(){if((this._state==a.VODSTATE.START||this._state==a.VODSTATE.FAILURE||-1==this._curIndex)&&-1!=this._curIndex){var e=this._uploadList[this._curIndex];this._state=a.VODSTATE.STOP,e.state=a.UPLOADSTATE.STOPED,this._changeState(e,a.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(e){var t=this;if(!e)return!1;var n=JSON.parse(p["default"].decode(e));return!!(n.AccessKeyId&&n.AccessKeySecret&&n.SecurityToken&&n.Expiration)&&t.resumeUploadWithToken(n.AccessKeyId,n.AccessKeySecret,n.SecurityToken,n.Expiration)}},{key:"resumeUploadWithToken",value:function(e,t,n,r){if(this.options,!(e&&t&&n&&r))return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(-1==this._curIndex)return!1;var i="";return this._uploadList.length>this._curIndex&&(i=this._uploadList[this._curIndex]),i&&(this.init(e,t,n,r),this._state=a.VODSTATE.START,this._ossUpload=null,this._uploadCore(i,i.retry),i.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(e,t,n){if(-1==this._curIndex)return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var r=this._uploadList[this._curIndex];r.object?this._refreshSTSTokenUpload(r,e,t,n):this.setSTSToken(r,e,t,n)}}},{key:"setSTSTokenDirectlyUpload",value:function(e,t,n,r,i){if(!(t&&n&&r&&i))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var o=e;this.init(t,n,r,i),o.endpoint=o._endpoint,o.bucket=o._bucket,o.object=o._object,this._ossUpload=null,this._uploadCore(o,e.retry),e.retry=!1}},{key:"setSTSToken",value:function(e,t,n,r){if(!t||!n||!r)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var i=e.videoInfo,o={accessKeyId:t,securityToken:r,accessKeySecret:n,fileName:e.file.name,title:i.Title,requestId:e.ri,region:this.options.region};i.ImageType&&(o.imageType=i.ImageType),i.ImageExt&&(o.imageExt=i.ImageExt),i.FileSize&&(o.fileSize=i.FileSize),i.Description&&(o.description=i.Description),i.CateId&&(o.cateId=i.CateId),i.Tags&&(o.tags=i.Tags),i.TemplateGroupId&&(o.templateGroupId=i.TemplateGroupId),i.StorageLocation&&(o.storageLocation=i.StorageLocation),i.CoverURL&&(o.coverUrl=i.CoverURL),i.TransCodeMode&&(o.transCodeMode=i.TransCodeMode),i.UserData&&(o.userData=i.UserData);var s=this,c="getUploadAuth";e.videoId?(o.videoId=e.videoId,c="refreshUploadAuth"):e.isImage&&(c="getImageUploadAuth"),w["default"][c](o,(function(t){e.videoId=t.VideoId?t.VideoId:e.videoId,s.setUploadAuthAndAddress(e,t.UploadAuth,t.UploadAddress),s._state=a.VODSTATE.START}),(function(t){s._error(e,{name:t.Code,code:t.Code,message:t.Message,requestId:t.RequestId})}))}},{key:"setUploadAuthAndAddress",value:function(e,t,n,r){if(!e||!t||!n)return!1;var i=JSON.parse(p["default"].decode(t));if(!(i.AccessKeyId&&i.AccessKeySecret&&i.SecurityToken&&i.Expiration))return console.error("uploadauth is invalid"),!1;var o={},a=e;if(n){if(o=JSON.parse(p["default"].decode(n)),!o.Endpoint||!o.Bucket||!o.FileName)return console.error("uploadAddress is invalid"),!1}else o.Endpoint=a.endpoint,o.Bucket=a.bucket,o.FileName=a.object;this._ut="vod",this._uploadWay="vod",this.options.region=i.Region||this.options.region,this.init(i.AccessKeyId,i.AccessKeySecret,i.SecurityToken,i.Expiration),a.endpoint=a._endpoint?a._endpoint:o.Endpoint,a.bucket=a._bucket?a._bucket:o.Bucket,a.object=a._object?a._object:o.FileName,a.region=this.options.region,r&&(a.videoId=r),this._ossUpload=null,this._uploadCore(a,e.retry),e.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(e,t,n,r){if(!t||!n||!r)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var i={accessKeyId:t,securityToken:r,accessKeySecret:n,videoId:e.object,requestId:e.ri,region:this.options.region},o=this,s="refreshUploadAuth";e.isImage&&(s="getImageUploadAuth"),w["default"][s](i,(function(t){o.setUploadAuthAndAddress(e,t.UploadAuth,UploadAddress),o._state=a.VODSTATE.START}),(function(t){o._error(e,{name:t.Code,code:t.Code,message:t.Message,requestId:t.RequestId})}))}},{key:"_upload",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.options;if(e.retry=t,n.onUploadstarted&&!t)try{var r=this._getCheckoutpoint(e);r&&r.state!=a.UPLOADSTATE.UPLOADING&&(e.checkpoint=r,e.videoId=r.videoId),n.onUploadstarted(e)}catch(e){console.log(e)}}},{key:"_uploadCore",value:function(e){if(!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(e.state=a.UPLOADSTATE.UPLOADING,!this._ossUpload){e.endpoint=e.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var t=this;this._ossUpload=new u["default"]({bucket:e.bucket,endpoint:e.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(e,n){t._error.call(t,e,n)},oncomplete:function(e,n){t._complete.call(t,e,n)},onprogress:function(e,n,r){t._progress.call(t,e,n,r)}})}var n=g["default"].getFileType(e.file.name),r=this._getCheckoutpoint(e),i="",o="";r&&r.checkpoint&&(o=r.state,i=r.videoId,r=r.checkpoint),r&&i==e.videoId&&o!=a.UPLOADSTATE.UPLOADING&&(r.file=e.file,e.checkpoint=r,r.uploadId);var s=this._adjustPartSize(e);this._reportLog("20002",e,{ft:n,fs:e.file.size,bu:e.bucket,ok:e.object,vid:e.videoId||"",fn:e.file.name,fw:null,fh:null,ps:s});var c={headers:{"x-oss-notification":e.userData?e.userData:""},partSize:s,parallel:this.options.parallel};this._ossUpload.upload(e,c)}},{key:"_findUploadIndex",value:function(){for(var e=-1,t=0;t<this._uploadList.length;t++)if(this._uploadList[t].state==a.UPLOADSTATE.INIT){e=t;break}return e}},{key:"_error",value:function(e,t){if("cancel"==t.name)try{this.options.onUploadCanceled(e,t)}catch(e){console.log(e)}else{if(t.message.indexOf("InvalidAccessKeyIdError")>0||"SignatureDoesNotMatchError"==t.name||"SecurityTokenExpired"==t.code||"InvalidSecurityToken.Expired"==t.code||"InvalidAccessKeyId"==t.code&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=a.VODSTATE.EXPIRE,e.state=a.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(e,t)}catch(e){console.log(e)}}return}if(("RequestTimeoutError"==t.name||"ConnectionTimeout"==t.name||"ConnectionTimeoutError"==t.name)&&this._retryTotal>this._retryCount){var n=this;return setTimeout((function(){n._uploadCore(e,!0)}),1e3*n._retryDuration),void this._retryCount++}"NoSuchUploadError"==t.name&&this._removeCheckoutpoint(e),this._handleError(e,t)}}},{key:"_handleError",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a.UPLOADSTATE.FAIlURE;if(e.state!=a.UPLOADSTATE.CANCELED&&(e.state=a.UPLOADSTATE.FAIlURE,this._state=a.VODSTATE.FAILURE,this.options.onUploadFailed&&t&&t.code&&t.message))try{this.options.onUploadFailed(e,t.code,t.message)}catch(e){console.log(e)}if(n&&this._changeState(e,r),this._reportLog("20006",e,{code:t.name,message:t.message,requestId:t.requestId,fs:e.file.size,bu:e.bucket,ok:e.object,fn:e.file.name}),this._reportLog("20004",e,{requestId:t.requestId,fs:e.file.size,bu:e.bucket,ok:e.object,fn:e.file.name}),e.ri=b["default"].create(),-1!=this._findUploadIndex()){var i=this;this._state=a.VODSTATE.START,setTimeout((function(){i.nextUpload()}),100)}}},{key:"_complete",value:function(e,t){if(e.state=a.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(e)}catch(e){console.log(e)}var n=0;t&&t.res&&t.res.headers&&(n=t.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(e);var r=this;setTimeout((function(){r.nextUpload()}),100),this._retryCount=0,this._reportLog("20003",e,{requestId:n})}},{key:"_progress",value:function(e,t,n){if(this.options.onUploadProgress)try{e.loaded=t.loaded,this.options.onUploadProgress(e,t.total,t.loaded)}catch(e){console.log(e)}var r=t.checkpoint,i=0;r&&(e.checkpoint=r,this._saveCheckoutpoint(e,r,a.UPLOADSTATE.UPLOADING),i=r.uploadId),this._retryCount=0;var o=this._getPortNumber(r),s=0;if(n&&n.headers&&(s=n.headers["x-oss-request-id"]),0!=t.loaded&&this._reportLog("20007",e,{pn:o,requestId:s}),1!=t.loaded&&this._reportLog("20005",e,{UploadId:i,pn:o+1,pr:e.retry?1:0,fs:e.file.size,bu:e.bucket,ok:e.object,fn:e.file.name}),!this._invalidUserId&&!e.isImage&&"vod"==this._ut&&this.options.enableUploadProgress){var c={file:e.file,checkpoint:t,userId:this.options.userId,videoId:e.videoId,region:this.options.region,fileHash:e.fileHash};try{var u=this;E["default"].upload(c,(function(){}),(function(e){if((e=JSON.parse(e))&&"InvalidParameter"==e.Code&&e.Message.indexOf("UserId")>0){u._invalidUserId=!0;var t=e.Message+"\uff0c\u6b63\u786e\u8d26\u53f7ID(userId)\u8bf7\u53c2\u8003\uff1ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(t)}}))}catch(e){console.log(e)}}}},{key:"_getPortNumber",value:function(e){if(e){var t=e.doneParts;if(t&&t.length>0)return t[t.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(e){var t=this._getCheckoutpointKey(e);d["default"].remove(t)}},{key:"_getCheckoutpoint",value:function(e){var t=this._getCheckoutpointKey(e),n=d["default"].get(t);if(n)try{return JSON.parse(n)}catch(e){}return""}},{key:"_saveCheckoutpoint",value:function(e,t,n){if(t){var r=this._getCheckoutpointKey(e),i=e.file,o={fileName:i.name,lastModified:i.lastModified,size:i.size,object:e.object,videoId:e.videoId,bucket:e.bucket,endpoint:e.endpoint,checkpoint:t,loaded:e.loaded,state:n};d["default"].set(r,JSON.stringify(o))}}},{key:"_changeState",value:function(e,t){var n=this._getCheckoutpoint(e);n&&((this._onbeforeunload=!0)&&(t=a.UPLOADSTATE.STOPED),this._saveCheckoutpoint(e,n.checkpoint,t))}},{key:"_getCheckoutpointKey",value:function(e){return"upload_"+e.file.lastModified+"_"+e.file.name+"_"+e.file.size}},{key:"_getCheckoutpointFromCloud",value:function(e,t,n){var r={userId:this.options.userId,uploadInfoList:[{FileName:e.file.name,FileSize:e.file.size,FileCreateTime:e.file.lastModified,FileHash:e.fileHash}],region:this.options.region};E["default"].get(r,(function(e){t(e)}),n)}},{key:"_reportLog",value:function(e,t,n){n||(n={}),n.ri=t.ri,this._ut&&(n.ut=this._ut),this._log.log(e,n)}},{key:"_initEvent",value:function(){var e=this;window&&(window.onbeforeunload=function(t){if(e._onbeforeunload=!0,-1!=e._curIndex&&e._uploadList.length>e._curIndex){var n=e._uploadList[e._curIndex];e._changeState(n,a.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var e=0;e<this._uploadList.length;e++){var t=this._uploadList[e];t.state!=a.UPLOADSTATE.FAIlURE&&t.state!=a.UPLOADSTATE.STOPED||(t.state=a.UPLOADSTATE.INIT)}this._state=a.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(e){return e.file.size/this.options.partSize>1e4?e.file.size/9999:this.options.partSize}}]),e}());t["default"]=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},t.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=n(17),c=(r(s),n(1)),u=(r(c),function(){function e(t,n){if(i(this,e),t){this._config=t,this.create(this._config),this._uploadInfo=null,this._callback={};var r=function(){};this._callback.onerror=n.onerror||r,this._callback.oncomplete=n.oncomplete||r,this._callback.onprogress=n.onprogress||r}}return o(e,[{key:"create",value:function(e){if(e.endpoint=e.endpoint||this._config.endpoint,e.bucket=e.bucket||this._config.bucket,!(e.AccessKeyId&&e.AccessKeySecret&&e.endpoint&&e.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var t={accessKeyId:e.AccessKeyId,accessKeySecret:e.AccessKeySecret,stsToken:e.SecurityToken,endpoint:e.endpoint||this._config.endpoint,bucket:e.bucket||this._config.bucket,secure:!0,cname:e.cname};e.timeout&&(t.timeout=e.timeout),this.oss=new OSS.Wrapper(t)}},{key:"abort",value:function(e){if(e.checkpoint){var t=e.checkpoint.uploadId;this.oss.abortMultipartUpload(e.object,t)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(e,t){this._uploadInfo=e;var n=this,r=function(e,t,r){return function(i){n._progress(e,t,r),i()}},i={parallel:t.parallel||this._config.parallel||a.UPLOADDEFAULT.PARALLEL,partSize:t.partSize||this._config.partSize||a.UPLOADDEFAULT.PARTSIZE,progress:r};t.headers&&(i.headers=t.headers),e.checkpoint&&(i.checkpoint=e.checkpoint),e.bucket||(this.oss.options.bucket=e.bucket),e.endpoint||(this.oss.options.endpoint=e.endpoint),this.oss.multipartUpload(e.object,e.file,i).then((function(e,t){n._complete(e)}))["catch"]((function(e){n.oss.cancel&&(n.oss&&n.oss.isCancel()?console.log("oss is cancel as error"):n.oss.cancel()),n._error(e)}))}},{key:"header",value:function(e,t,n){this.oss.get(e.object).then((function(e){t(e)}))["catch"]((function(e){n(e)}))}},{key:"_progress",value:function(e,t,n){this._callback.onprogress(this._uploadInfo,{loaded:e,total:this._uploadInfo.file.size,checkpoint:t},n)}},{key:"_error",value:function(e){this._callback.onerror(this._uploadInfo,e)}},{key:"_complete",value:function(e){this._callback.oncomplete(this._uploadInfo,e)}}]),e}());t["default"]=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"format",value:function(e){if(arguments.length<2)return null;for(var t=arguments[1],n=1;n<arguments.length;n++){var r=new RegExp("\\{"+(n-1)+"\\}","gm");t=t.replace(r,arguments[n+1])}return{code:e,message:t}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53c2\u6570 {0} \u4e0d\u80fd\u4e3a\u7a7a\u3002",STSInvalid:"STS\u53c2\u6570\u975e\u6cd5\uff0c accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90fd\u4e0d\u80fd\u4e3a\u7a7a\u3002",ReadFileError:"\u8bfb\u53d6\u6587\u4ef6{0}{1}\u5931\u8d25.",FILEDUPLICATION:"\u6587\u4ef6\u91cd\u590d\u6dfb\u52a0 {0}",UploadALEADRYSTARTED:"\u91cd\u590d\u5f00\u59cb."}}}]),e}();t["default"]=o},function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(){n(this,t)}return r(t,null,[{key:"encode",value:function(t){return new e(t).toString("base64")}},{key:"decode",value:function(t){return new e(t,"base64").toString()}}]),t}();t["default"]=i}).call(t,n(19).Buffer)},function(e,t,n){"use strict";(function(e){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return a(this,e,t,n)}function a(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?l(e,t,n):d(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?i(e,t):void 0!==n?"string"==typeof r?i(e,t).fill(n,r):i(e,t).fill(n):i(e,t)}function u(e,t){if(s(t),e=i(e,t<0?0:0|h(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=i(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=i(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=p(e,t),e}function d(e,t){if(o.isBuffer(t)){var n=0|h(t.length);return e=i(e,n),0===e.length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||Y(t.length)?i(e,0):p(e,t);if("Buffer"===t.type&&Q(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function v(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,c/=2,u/=2,n/=2}if(i){var l=-1;for(a=n;a<c;a++)if(o(e,a)===o(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*s}else-1!==l&&(a-=a-l),l=-1}else for(n+u>c&&(n=c-u),a=n;a>=0;a--){for(var p=!0,f=0;f<u;f++)if(o(e,a+f)!==o(t,f)){p=!1;break}if(p)return a}return-1}function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return K(G(t,e.length-n),e,n,r)}function E(e,t,n,r){return K(H(t),e,n,r)}function S(e,t,n,r){return E(e,t,n,r)}function T(e,t,n,r){return K(W(t),e,n,r)}function k(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128==(192&o)&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return j(r)}function j(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Z));return n}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=X(e[o]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),$.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),$.write(e,t,n,r,52,8),n+8}function q(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function X(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function V(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function W(e){return J.toByteArray(q(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e){return e!==e}var J=n(21),$=n(22),Q=n(23);t.Buffer=o,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return c(null,e,t,n)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,s=n-t,c=Math.min(a,s),u=this.slice(r,i),l=e.slice(t,n),p=0;p<c;++p)if(u[p]!==l[p]){a=u[p],s=l[p];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},o.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},o.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),$.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),$.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),$.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),$.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=o.isBuffer(e)?e:G(new o(e,r).toString()),c=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(20))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-r(e)}function o(e){var t,n,i,o,a,s=e.length;o=r(e),a=new p(3*s/4-o),n=o>0?s-4:s;var c=0;for(t=0;t<n;t+=4)i=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],a[c++]=i>>16&255,a[c++]=i>>8&255,a[c++]=255&i;return 2===o?(i=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[c++]=255&i):1===o&&(i=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[c++]=i>>8&255,a[c++]=255&i),a}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(a(r));return i.join("")}function c(e){for(var t,n=e.length,r=n%3,i="",o=[],a=0,c=n-r;a<c;a+=16383)o.push(s(e,a,a+16383>c?c:a+16383));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}t.byteLength=i,t.toByteArray=o,t.fromByteArray=c;for(var u=[],l=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=f.length;d<h;++d)u[d]=f[d],l[f.charCodeAt(d)]=d;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+p],p+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+p>=1?f/c:f*Math.pow(2,1-p),t*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*c-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"set",value:function(e,t){try{window.localStorage&&localStorage.setItem(e,t)}catch(n){window[e+"_localStorage"]=t}}},{key:"get",value:function(e){try{if(window.localStorage)return localStorage.getItem(e)}catch(t){return window[e+"_localStorage"]}return""}},{key:"remove",value:function(e){try{window.localStorage&&localStorage.removeItem(e)}catch(t){delete window[e+"_localStorage"]}}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"get",value:function(e){for(var t=e+"",n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r].trim();if(0==i.indexOf(t))return unescape(i.substring(t.length+1,i.length))}return""}},{key:"set",value:function(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toGMTString();document.cookie=e+"="+escape(t)+"; "+i}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(8),s=r(a),c=n(9),u=r(c),l=function(){function e(){i(this,e)}return o(e,null,[{key:"refreshUploadAuth",value:function(e,t,n){var r=(u["default"].randomUUID(),u["default"].randomUUID()),i={AccessKeyId:e.accessKeyId,SecurityToken:e.securityToken,Action:"RefreshUploadVideo",VideoId:e.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:e.requestId},o=u["default"].makeUTF8sort(i,"=","&")+"&Signature="+u["default"].aliyunEncodeURI(u["default"].makeChangeSiga(i,e.accessKeySecret)),a="https://vod."+e.region+".aliyuncs.com/?"+o;s["default"].get(a,(function(e){e=JSON.parse(e);t&&t(e)}),(function(e){if(n){var t=JSON.parse(e);n(t)}}))}},{key:"getUploadAuth",value:function(e,t,n){var r=(u["default"].randomUUID(),u["default"].randomUUID()),i={AccessKeyId:e.accessKeyId,SecurityToken:e.securityToken,Action:"CreateUploadVideo",Title:e.title,FileName:e.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:e.requestId};e.fileSize&&(i.FileSize=e.fileSize),e.description&&(i.Description=e.description),e.cateId&&(i.CateId=e.cateId),e.tags&&(i.Tags=e.tags),e.templateGroupId&&(i.TemplateGroupId=e.templateGroupId),e.storageLocation&&(i.StorageLocation=e.storageLocation),e.coverUrl&&(i.CoverURL=e.coverUrl),e.transCodeMode&&(i.TransCodeMode=e.transCodeMode),e.userData&&(i.UserData=JSON.stringify(e.userData));var o=u["default"].makeUTF8sort(i,"=","&")+"&Signature="+u["default"].aliyunEncodeURI(u["default"].makeChangeSiga(i,e.accessKeySecret)),a="https://vod."+e.region+".aliyuncs.com/?"+o;s["default"].get(a,(function(e){try{e=JSON.parse(e)}catch(e){if(n)return void n({Code:"GetUploadAuthFailed",Message:"\u83b7\u53d6uploadauth\u5931\u8d25"})}t&&t(e)}),(function(e){if(n){var t={Code:"GetUploadAuthFailed",Message:"\u83b7\u53d6uploadauth\u5931\u8d25"};try{t=JSON.parse(e)}catch(e){}n(t)}}))}},{key:"getImageUploadAuth",value:function(e,t,n){var r=(u["default"].randomUUID(),u["default"].randomUUID()),i={AccessKeyId:e.accessKeyId,SecurityToken:e.securityToken,Action:"CreateUploadImage",ImageType:e.imageType?e.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:e.requestId};e.title&&(i.Title=e.title),e.imageExt&&(i.ImageExt=e.imageExt),e.tags&&(i.Tags=e.tags),e.storageLocation&&(i.StorageLocation=e.storageLocation);var o=u["default"].makeUTF8sort(i,"=","&")+"&Signature="+u["default"].aliyunEncodeURI(u["default"].makeChangeSiga(i,e.accessKeySecret)),a="https://vod."+e.region+".aliyuncs.com/?"+o;s["default"].get(a,(function(e){e=JSON.parse(e),t&&t(e)}),(function(e){if(n){var t=JSON.parse(e);n(t)}}))}}]),e}();t["default"]=l},function(e,t,n){!function(t,r,i){e.exports=r(n(0),n(28),n(29))}(0,(function(e){return e.HmacSHA1}))},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],c=n[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var p=(r<<5|r>>>27)+c+a[u];p+=u<20?1518500249+(i&o|~i&s):u<40?1859775393+(i^o^s):u<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1}))},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){!function(){var t=e,n=t.lib,r=n.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}))},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return function(){function t(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=(s|c)<<24-o%4*8,o++}return i.create(r,o)}var n=e,r=n.lib,i=r.WordArray,o=n.enc;o.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=a<<16|s<<8|c,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(u>>>6*(3-l)&63));var p=r.charAt(64);if(p)for(;i.length%4;)i.push(p);return i.join("")},parse:function(e){var n=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return t(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(8),s=r(a),c=n(7),u=r(c),l=n(4),p=r(l),f=n(6),d=r(f),h=n(1),m=r(h),v=n(9),g=r(v),y=n(2),b=n(11),_=n(10),w=function(){function e(){i(this,e)}return o(e,null,[{key:"getAuthInfo",value:function(e,t,n){var r=e+"|f#Ylm&^1TppeRhLg|"+n;return t&&(r=e+"|"+t+"|f#Ylm&^1TppeRhLg|"+n),y(_.parse(r)).toString(b)}},{key:"upload",value:function(t,n,r){var i=m["default"].ISODateString(new Date),o=Math.floor((new Date).valueOf()/1e3),a=p["default"].getClientId();a=p["default"].setClientId(a);var c=e.getAuthInfo(t.userId,a,o),l=g["default"].randomUUID(),f={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u["default"].browser.name+(u["default"].browser.version||""),AppVersion:d["default"].version,AuthTimestamp:o,Timestamp:i,AuthInfo:c,FileName:t.file.name,FileSize:t.file.size,FileCreateTime:t.file.lastModified,FileHash:t.fileHash,UploadId:t.checkpoint.checkpoint.uploadId,PartSize:t.checkpoint.checkpoint.partSize,DonePartsCount:t.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(t.checkpoint),UploadRatio:t.checkpoint.loaded,UserId:t.userId,VideoId:t.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:l};a&&(f.ClientId=a);var h=g["default"].makeUTF8sort(f,"=","&")+"&Signature="+g["default"].aliyunEncodeURI(g["default"].makeChangeSiga(f,t.accessKeySecret)),v="https://vod."+t.region+".aliyuncs.com/?"+h;s["default"].get(v,(function(e){n&&n()}),(function(e){e&&(r(e),console.log(e))}))}},{key:"get",value:function(t,n,r){var i=m["default"].ISODateString(new Date),o=Math.floor((new Date).valueOf()/1e3),a=p["default"].getClientId(),c=e.getAuthInfo(t.userId,a,o),l=g["default"].randomUUID(),f={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u["default"].browser.name+(u["default"].browser.version||""),AppVersion:d["default"].version,AuthTimestamp:o,Timestamp:i,AuthInfo:c,UserId:t.userId,UploadInfoList:JSON.stringify(t.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:l};a&&(f.ClientId=a);var h=g["default"].makeUTF8sort(f,"=","&")+"&Signature="+g["default"].aliyunEncodeURI(g["default"].makeChangeSiga(f,t.accessKeySecret)),v="https://vod."+t.region+".aliyuncs.com/?"+h;s["default"].get(v,(function(e){var t={},r=a;e=e?JSON.parse(e):{},e.UploadProgress&&e.UploadProgress.UploadProgressList&&e.UploadProgress.UploadProgressList.length>0&&(t=e.UploadProgress.UploadProgressList[0],r=t.ClientId),p["default"].setClientId(r),n&&n(t)}),(function(e){e&&(r(e),console.log(e))}))}}]),e}();t["default"]=w},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=n(33),s=(n(11),function(){function e(){r(this,e)}return i(e,null,[{key:"getMd5",value:function(e,t,n){var r=new FileReader;r.onload=function(e){try{if(e&&e.target){var n=o(a.parse(e.target.result)),r=n.toString();t(r)}}catch(e){console.log(e)}},r.onerror=function(e){console.log(e),errorCallback(e)};var i=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=i.call(e,0,1024);r.readAsBinaryString(s)}}]),e}());t["default"]=s},function(e,t,n){!function(t,r){e.exports=r(n(0))}(0,(function(e){return e.enc.Latin1}))}])}).call(this,n("yLpj"))},qHKi:function(e,t,n){e.exports={wrap:"wrap___gKjIH",name:"name___2VcBo",button:"button___1W9Co",progress:"progress___38g4B",havaLearn:"havaLearn___1t2h0"}},"qsz/":function(e,t,n){e.exports={flex_box_center:"flex_box_center___3sPVR",flex_space_between:"flex_space_between___2wE6D",flex_box_vertical_center:"flex_box_vertical_center___zPTyy",flex_box_center_end:"flex_box_center_end___3so15",flex_box_column:"flex_box_column___Kzm9M",wrp:"wrp___2pelP",drawer:"drawer___yRoT4",menu:"menu___1B4rW",actived:"actived___1jpt2",actived2:"actived2___22RXk",listItem:"listItem___2Pbw2",info:"info___eZCML",title:"title___1UvZg",titleLeft:"titleLeft___1vSSO",titleRight:"titleRight___3ENPT",search:"search___E3ybc",description:"description___1r4_v",menuCourse:"menuCourse___2A5Ol"}},sBCT:function(e,t,n){"use strict";n("MXD1");var r=n("CFYs"),i=n("WmNS"),o=n.n(i),a=n("9og8"),s=(n("2qtc"),n("kLXV")),c=(n("miYZ"),n("tsqr")),u=(n("y8nQ"),n("Vl3Y")),l=n("tJVT"),p=n("k1fw"),f=n("oBTY"),d=(n("5NDa"),n("5rEg")),h=n("q1tI"),m=n.n(h),v=n("Ty5D"),g=n("55Ip"),y=n("9kvl"),b=n("kwm0"),_=n.n(b),w=n("Aky1"),x=d["a"].TextArea,E=500,S=function(e,t){var n,r=t.payload||{},i=r.uploadInfo,o=void 0===i?{}:i;switch(t.type){case"addVideo":return{videoList:[].concat(Object(f["a"])(e.videoList),[{name:o.file.name,size:o.file.size,type:o.file.type,fileHash:o.fileHash,state:o.state,videoId:o.videoId,loaded:o.loaded||0,title:""}])};case"removeVideo":return{videoList:e.videoList.filter((function(e){return e.name!==t.payload.name}))};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:e.videoList.map((function(e){return e.name===t.payload.uploadInfo.file.name?Object(p["a"])(Object(p["a"])({},e),{loaded:t.payload.progressPercent,videoId:o.videoId,fileHash:o.fileHash}):e}))};case"updateTitle":return{videoList:null===(n=e.videoList)||void 0===n?void 0:n.map((function(e){return e.name===t.payload.item.name?Object(p["a"])(Object(p["a"])({},e),{title:t.payload.title}):e}))};default:return{videoList:[]}}},T=function(e){var t,n=e.user,i=(e.globalSetting,e.loading,e.dispatch,e.visible),f=e.editData,y=e.onCancel,b=void 0===y?function(){}:y,T=e.onOk,k=void 0===T?function(){}:T,O=(Object(v["m"])(),u["a"].useForm()),A=Object(l["a"])(O,1),j=A[0],I=Object(h["useReducer"])(S,{videoList:[]}),C=Object(l["a"])(I,2),P=C[0],N=C[1],L=Object(h["useState"])(!1),D=Object(l["a"])(L,2),M=(D[0],D[1]),R=Object(h["useRef"])(),U=Object(h["useState"])(),B=Object(l["a"])(U,2),F=B[0],q=B[1],z=Object(h["useState"])(!1),X=Object(l["a"])(z,2),G=X[0],H=X[1],V=Object(h["useState"])(!1),W=Object(l["a"])(V,2),K=W[0],Y=W[1];Object(h["useEffect"])((function(){f&&(H(f.is_link),q(f.link),!f.is_link&&N({type:"addVideo",payload:{uploadInfo:{file:{name:f.file_name},videoId:f.video_id,loaded:100}}}),j.setFieldsValue({name:f.name,description:f.description}))}),[f]);var J=function(){var e=document.getElementById("fileUpload");e.value=""},$=function(e){var t,r,i;H(!1);var o=e.target.files[0];if(o)return o.name&&-1==o.name.indexOf(".avi")&&-1==o.name.indexOf(".flv")&&-1==o.name.indexOf(".f4v")&&-1==o.name.indexOf(".m4v")&&-1==o.name.indexOf(".mov")&&-1==o.name.indexOf(".mp4")&&-1==o.name.indexOf(".rmvb")&&-1==o.name.indexOf(".swf")&&-1==o.name.indexOf(".webm")&&-1==o.name.indexOf(".wmv")?(c["b"].info("\u4e0d\u652f\u6301\u7684\u89c6\u9891\u683c\u5f0f"),void J()):!(null===(t=n.userInfo)||void 0===t?void 0:t.admin)&&!(null===(r=n.userInfo)||void 0===r?void 0:r.business)&&o.size>1024*E*1024?(c["b"].info("\u89c6\u9891\u5927\u5c0f\u8d85\u8fc7".concat(E,"M")),void J()):(null===(i=P.videoList)||void 0===i?void 0:i.find((function(e){return e.name===o.name})))?(c["b"].info("\u4f60\u4e0d\u80fd\u4e0a\u4f20\u540c\u4e00\u4e2a\u89c6\u9891\u6587\u4ef6\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u3002"),void J()):void Z(o);J()},Q=function(e,t){s["a"].confirm({title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:m.a.createElement("div",{className:"tc"},"\u60a8\u786e\u8ba4\u8981",t?"\u5220\u9664":"\u53d6\u6d88\u4e0a\u4f20","\u8be5\u89c6\u9891\u5417\uff1f"),onOk:function(){J(),N({type:"removeVideo",payload:{name:e}})}})},Z=function(e){var t,r='{"Vod":{}}';M(!0),R.current?R.current.addFile(e,null,null,null,r):Object(w["a"])(null===(t=n.userInfo)||void 0===t?void 0:t.login,{create:!R,addFileSuccess:function(e){N({type:"addVideo",payload:{uploadInfo:e}})},onUploadProgress:function(e,t,n){var r=Math.ceil(100*n);N({type:"updateProgress",payload:{uploadInfo:e,progressPercent:r}}),J()},onUploadFailed:function(e){c["b"].info("\u89c6\u9891\u4e91\u670d\u52a1\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002")},onUploadEnd:function(e){M(!1)},onUploadSucceed:function(e){M(!1)},onUploadError:function(e){M(!1)},gotUploader:function(t){t.addFile(e,null,null,null,r),R.current=t}})},ee=function(){var e=Object(a["a"])(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.validateFields();case 2:if((G||(null===(t=P.videoList)||void 0===t?void 0:t.length))&&(!G||F)){e.next=5;break}return c["b"].info("\u8bf7\u5148\u4e0a\u4f20\u89c6\u9891\u6216\u8005\u6dfb\u52a0\u5916\u94fe"),e.abrupt("return");case 5:return Y(!0),r=G?{link:F}:{video_id:null===(n=P.videoList)||void 0===n?void 0:n[0].videoId},e.next=9,k(Object(p["a"])(Object(p["a"])({},r),{name:j.getFieldValue("name"),description:j.getFieldValue("description")}));case 9:i=e.sent,Y(!1),i.id&&te();case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){j.resetFields(),N({type:"removeAll"}),q(null),H(null)},ne=function(){b(),te()},re=function(){var e,t,n,i,o,a,s,c,u,l,p,f;return m.a.createElement(m.a.Fragment,null,!G&&!!(null===(e=P.videoList)||void 0===e?void 0:e.length)&&m.a.createElement("div",{className:_.a.fileProgress},100==(null===(t=P.videoList)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.loaded)?m.a.createElement("div",{className:"".concat(_.a.videoName," font14")},null===(i=P.videoList)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.name):m.a.createElement(r["a"],{style:{width:"80%"},percent:null===(a=P.videoList)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.loaded,status:100==(null===(c=P.videoList)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.loaded)?"normal":"active"}),m.a.createElement("div",{className:_.a.fileCancel,onClick:function(){var e,t,n,r;return Q(null===(e=P.videoList)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.name,100==(null===(n=P.videoList)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.loaded))}},100===(null===(l=P.videoList)||void 0===l||null===(p=l[0])||void 0===p?void 0:p.loaded)?"\u5220\u9664":"\u53d6\u6d88\u4e0a\u4f20")),!(null===(f=P.videoList)||void 0===f?void 0:f.length)&&m.a.createElement("div",{className:_.a.uploadWrap},m.a.createElement("label",{htmlFor:"fileUpload",className:_.a.upload},m.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4e0a\u4f20\u89c6\u9891"),m.a.createElement("label",{className:"".concat(_.a.upload," ").concat(_.a.uploadLink),onClick:function(){return H(!0)}},m.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6dfb\u52a0\u5916\u94fe")),G&&m.a.createElement(d["a"],{className:"mt5",placeholder:"\u8bf7\u8f93\u5165\u89c6\u9891\u94fe\u63a5",value:F,onChange:function(e){return q(e.target.value)}}))};return m.a.createElement(s["a"],{centered:!0,maskClosable:!1,title:f?"\u7f16\u8f91\u89c6\u9891\u9879\u76ee":"\u65b0\u5efa\u89c6\u9891\u9879\u76ee",width:740,className:_.a.modal,visible:i,confirmLoading:K,onOk:ee,onCancel:ne},m.a.createElement(u["a"],{form:j},m.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:$,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),m.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9879\u76ee\u540d\u79f0"}]},m.a.createElement(d["a"],{maxLength:40,placeholder:"\u8bf7\u8f93\u5165\u4e0d\u8d85\u8fc740\u5b57\u7684\u9879\u76ee\u540d\u79f0"})),m.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u5185\u5bb9",name:"content",className:_.a.contentItem},re()),m.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u7b80\u4ecb",name:"description",className:"ml8"},m.a.createElement(x,{rows:5,maxLength:800,placeholder:"\u8bf7\u8f93\u5165\u672c\u89c6\u9891\u7b80\u4ecb\uff0c\u6700\u591a\u4e0d\u8d85\u8fc7800\u5b57"})),m.a.createElement("div",{className:"c-grey-999"},m.a.createElement("div",null,"\u6ce8\u610f\uff1a"),m.a.createElement("div",null,"1\u3001\u4e0a\u4f20\u89c6\u9891\uff0c\u5373\u8868\u793a\u60a8\u5df2\u540c\u610f",m.a.createElement(g["Link"],{to:"/users/".concat(null===(t=n.userInfo)||void 0===t?void 0:t.login,"/videos/protocol"),target:"_blank",className:_.a.colorBlue},"\u4e0a\u4f20\u5185\u5bb9\u534f\u8bae"),"\uff0c\u4e0d\u5f97\u4e0a\u4f20\u672a\u7ecf\u4ed6\u4eba\u6388\u6743\u7684\u4f5c\u54c1\uff1b"),m.a.createElement("div",null,"2\u3001\u4e0d\u652f\u6301\u65ad\u70b9\u7eed\u4f20\uff0c\u6587\u4ef6\u5927\u5c0f\u8bf7\u52ff\u8d85\u8fc7500M\uff1b"),m.a.createElement("div",null,"3\u3001\u652f\u6301\u6587\u4ef6\u683c\u5f0f\uff1aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uff1b"),m.a.createElement("div",null,"4\u3001\u5982\u679c\u89c6\u9891\u6765\u81ea\u4e8e\u5916\u90e8\u94fe\u63a5\uff0c\u672c\u7f51\u7ad9\u4e0d\u63d0\u4f9b\u64ad\u653e\u9875\u9762\uff0c\u65e0\u6cd5\u63d0\u4f9b\u7edf\u8ba1\u6570\u636e\u3002"))))};t["a"]=Object(y["a"])((function(e){var t=e.user,n=e.loading,r=e.globalSetting;return{user:t,globalSetting:r,loading:n}}))(T)}}]); |