44 lines
484 KiB
JavaScript
44 lines
484 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[77,9,10,11,14],{"500L":function(Ge,Me,te){"use strict";te.d(Me,"a",function(){return E});var Le=te("anXI"),We=te("vZQr"),ve=te("MPZO"),n=te("bnk9"),R=te("rjoL"),O=te("TMtJ"),m=te("VBJJ"),v=te.n(m),i=te("z3+T"),u=te("55MS"),d=te("V0hb"),s=te("X/R0"),e=te("M6G9"),o=te("GZha"),r=te("ZZRV"),l=te.n(r),f=te("m3rI"),c=te("wzkS"),T=te("y5JW");function E(h){var S=[];return h&&h.length>0&&(S=h.map(function(w){return{uid:w.id,id:w.id,name:w.title+T.c+w.filesize,url:w.url,filesize:w.filesize,status:"done",response:{id:w.id}}})),S}Me.b=function(h){var S=h.value,w=h.onChange,p=h.className,x=h.maxSize,A=x===void 0?150:x,D=h.title,b=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,U=h.showRemoveModal,y=U===void 0?!1:U,L=h.accept,k=L===void 0?"":L,z=h.number,G=z===void 0?1e3:z,q=Object(r.useState)(!1),re=Object(o.a)(q,2),X=re[0],ne=re[1],J=Object(r.useState)([]),H=Object(o.a)(J,2),I=H[0],j=H[1],B={multiple:!0,disabled:X,accept:k,withCredentials:!0,fileList:S,beforeUpload:function(Y,ae){var Q=Y.size/1024/1024;return I.concat(ae).length>G?(e.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(G,"\u4E2A\u6587\u4EF6")),!1):Q<A?!0:(e.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(A,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(f.a.API_SERVER,"/api/attachments.json"),onChange:function(Y){var ae=Object(d.a)(Y.fileList);ae.length>=G?ne(!0):ne(!1),j(Object(d.a)(ae)),ae=ae.map(function(Q){var le;if(Q==null||((le=Q.response)===null||le===void 0)?void 0:le.id){var he;Q.url="/api/attachments/".concat(Q==null||((he=Q.response)===null||he===void 0)?void 0:he.id)}return Q.name.indexOf(T.c)===-1&&(Q.name="".concat(Q.name).concat(T.c).concat(Object(T.a)(Q.size))),Object(u.a)({},Q)}),console.log("info:",Y),w(ae)},onRemove:function(){var V=Object(i.a)(v.a.mark(function ae(Q){var le;return v.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(le=function(){var $=Object(i.a)(v.a.mark(function oe(){var W,N;return v.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(W=Q.response?Q.response.id:Q.id,!W){ee.next=8;break}return ee.next=4,Object(c.d)(Q.response?Q.response.id:Q.uid);case 4:return N=ee.sent,ee.abrupt("return",N);case 8:return ee.abrupt("return",!0);case 9:case"end":return ee.stop()}},oe)}));return function(){return $.apply(this,arguments)}}(),!y){Z.next=5;break}return Z.abrupt("return",new Promise(function($,oe){O.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:l.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var W=Object(i.a)(v.a.mark(function ie(){var ee;return v.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,le();case 2:ee=P.sent,e.b.success("\u5220\u9664\u6210\u529F"),$(!0);case 5:case"end":return P.stop()}},ie)}));function N(){return W.apply(this,arguments)}return N}(),onCancel:function(){return $(!1)}})}));case 5:return Z.next=7,le();case 7:return Z.abrupt("return",Z.sent);case 8:case"end":return Z.stop()}},ae)}));function Y(ae){return V.apply(this,arguments)}return Y}()};function M(V){V.preventDefault(),V.stopPropagation()}return l.a.createElement("div",{className:"multi-upload ".concat(p||"")},l.a.createElement(We.a,B,l.a.createElement(n.a,{disabled:X,type:"primary",ghost:!0},b),l.a.createElement("span",{onClick:M,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",A,"M) ")))}},ADTG:function(Ge,Me,te){"use strict";te.r(Me);var Le=te("9cas"),We=te("twZV"),ve=te("E+ey"),n=te("sY1U"),R=te("1gHQ"),O=te("DHCt"),m=te("CRgH"),v=te("XZgM"),i=te("TFeq"),u=te("MPZO"),d=te("bnk9"),s=te("CeOx"),e=te("NiCL"),o=te("RXQH"),r=te("VgM2"),l=te("V0hb"),f=te("X/R0"),c=te("M6G9"),T=te("rjoL"),E=te("TMtJ"),h=te("VBJJ"),S=te.n(h),w=te("55MS"),p=te("z3+T"),x=te("EkPb"),A=te("7X0+"),D=te("GZha"),b=te("buSX"),U=te("ZZRV"),y=te.n(U),L=te("q5+0"),k=te("DndG"),z=te("9kvl"),G=te("2UAF"),q=te("HBuW"),re=te("1vsH"),X=te("ItnT"),ne=te.n(X),J=te("2aF/"),H=te("1kpo"),I=te("Rbwl"),j=te("hTF7"),B=te("GrpF"),M=te("Xc/e"),V=te("ErOA");function Y(Te){return ae.apply(this,arguments)}function ae(){return ae=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/courses/".concat(we.coursesId,"/online_learning.json"),{method:"get"}));case 1:case"end":return me.stop()}},Te)})),ae.apply(this,arguments)}function Q(Te){return le.apply(this,arguments)}function le(){return le=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,".json"),{method:"put",body:we}));case 1:case"end":return me.stop()}},Te)})),le.apply(this,arguments)}function he(Te){return Z.apply(this,arguments)}function Z(){return Z=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/courses/".concat(we.coursesId,"/course_stages.json"),{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),Z.apply(this,arguments)}function $(Te){return oe.apply(this,arguments)}function oe(){return oe=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/add_shixun_to_stage.json"),{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),oe.apply(this,arguments)}function W(Te){return N.apply(this,arguments)}function N(){return N=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/select_shixun_to_stage.json"),{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),N.apply(this,arguments)}function ie(Te){return ee.apply(this,arguments)}function ee(){return ee=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/add_video_to_stage.json"),{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),ee.apply(this,arguments)}function de(Te){return P.apply(this,arguments)}function P(){return P=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/add_attachment_to_stage.json"),{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),P.apply(this,arguments)}function t(Te){return a.apply(this,arguments)}function a(){return a=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/paths/add_shixun_to_stage.json",{method:"post",body:we}));case 1:case"end":return me.stop()}},Te)})),a.apply(this,arguments)}function C(Te){return _.apply(this,arguments)}function _(){return _=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/up_position.json"),{method:"post"}));case 1:case"end":return me.stop()}},Te)})),_.apply(this,arguments)}function g(Te){return F.apply(this,arguments)}function F(){return F=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,"/down_position.json"),{method:"post"}));case 1:case"end":return me.stop()}},Te)})),F.apply(this,arguments)}function K(Te){return pe.apply(this,arguments)}function pe(){return pe=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.id,".json"),{method:"delete"}));case 1:case"end":return me.stop()}},Te)})),pe.apply(this,arguments)}function se(Te){return ue.apply(this,arguments)}function ue(){return ue=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.stage_id,"/items/move_position.json"),{method:"post",body:Object(w.a)({},we)}));case 1:case"end":return me.stop()}},Te)})),ue.apply(this,arguments)}function ge(Te){return ye.apply(this,arguments)}function ye(){return ye=Object(p.a)(S.a.mark(function Te(we){return S.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:debugger;return me.abrupt("return",Object(V.a)("/api/course_stages/".concat(we.stage_id,"/items/").concat(we.id),{method:"delete"}));case 2:case"end":return me.stop()}},Te)})),ye.apply(this,arguments)}var Se=te("qsz/"),ce=te.n(Se),Re=m.a.Search,Be=[{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"}]}],Ae=function(we){var Ke,me=we.classroomList,ht=we.loading,_t=we.dispatch,lt=we.cb,xt=we.shixunIds,tt=xt===void 0?[]:xt,Nt=Object(L.m)(),St=Object(L.l)(),Oe=me.actionTabs,Ze=A.a.useForm(),Ye=Object(D.a)(Ze,1),ot=Ye[0],je=me.shixunLists,pt=Object(U.useState)([]),$e=Object(D.a)(pt,2),Ve=$e[0],Ee=$e[1],dt=Object(U.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),Qe=Object(D.a)(dt,2),nt=Qe[0],Ft=Qe[1];Object(U.useEffect)(function(){me.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"&&(nt.page=1,_t({type:"classroomList/getShixunLists",payload:Object(w.a)({},nt)}))},[me.actionTabs.key]);var Dt=function(){_t({type:"classroomList/setActionTabs",payload:{}}),Ft({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return me.actionTabs.key!=="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"?null:y.a.createElement(H.a,{placement:"bottom",height:"100%",closable:!1,visible:me.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",key:"bottom",className:ce.a.drawer,footer:y.a.createElement("div",{className:"tc"},y.a.createElement(d.a,{size:"large",onClick:function(){Dt(),Ee([])},style:{marginRight:8}},"\u53D6\u6D88"),y.a.createElement(d.a,{size:"large",onClick:Object(p.a)(S.a.mark(function ze(){var st,rt,at,mt;return S.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:st=function(zt){var yt=Ve[zt];if(tt.includes(yt)){var jt,Ut;return c.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(je==null||((jt=je.shixun_list)===null||jt===void 0||((Ut=jt.find(function(Tt){return Tt.id===yt}))===null||Ut===void 0))?void 0:Ut.title)),{v:void 0}}},rt=0;case 2:if(!(rt<(Ve==null?void 0:Ve.length))){it.next=9;break}if(at=st(rt),!(typeof at=="object")){it.next=6;break}return it.abrupt("return",at.v);case 6:rt++,it.next=2;break;case 9:return it.next=11,W({id:me.actionTabs.id,course_id:me.actionTabs.course_id,shixun_ids:Object(l.a)(Ve)});case 11:mt=it.sent,Ee([]),(mt==null?void 0:mt.shixuns_list)&&(Dt(),lt(mt.shixuns_list));case 14:case"end":return it.stop()}},ze)})),type:"primary"},"\u786E\u5B9A"))},y.a.createElement("section",{className:"tc"},y.a.createElement(Re,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:ce.a.search,onSearch:function(st){nt.keyword=st,nt.page=1,_t({type:"classroomList/getShixunLists",payload:Object(w.a)({},nt)})}})),y.a.createElement("section",{className:"edu-container"},Be.map(function(ze,st){var rt;return y.a.createElement("ul",{className:ce.a.menu,key:st},y.a.createElement("li",null,ze.name),ze==null||((rt=ze.children)===null||rt===void 0)?void 0:rt.map(function(at,mt){return y.a.createElement("li",{className:nt[ze.id]==at.id?ce.a.actived:"",onClick:function(){nt[ze.id]=at.id,Ft(Object(w.a)({},nt)),_t({type:"classroomList/getShixunLists",payload:Object(w.a)({},nt)})}},y.a.createElement("strong",null,at.name))}))}),je==null||((Ke=je.shixun_list)===null||Ke===void 0)?void 0:Ke.map(function(ze,st){return y.a.createElement("div",{className:ce.a.listItem,key:st},y.a.createElement(M.a,{checked:Ve.includes(ze.id),value:ze.id,onChange:function(at){var mt=Ve.indexOf(ze.id);Ve.indexOf(ze.id)>-1?Ee(Ve.filter(function(kt){return kt!==ze.id})):Ee(Ve.concat(ze.id))}}),y.a.createElement("div",{className:ce.a.info},y.a.createElement("div",{className:ce.a.title},y.a.createElement("div",{className:ce.a.titleLeft},y.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(ze==null?void 0:ze.identifier,"/challenges"),target:"_blank"},y.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:ze.title}})))),y.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},y.a.createElement("span",{className:ce.a.description,dangerouslySetInnerHTML:{__html:ze.description}})),y.a.createElement("div",{className:"flex-wrp mt15"},ze.challenge_names.map(function(rt,at){return y.a.createElement("span",{key:at,className:"mr30 font12"},"\u7B2C",at+1,"\u5173 ",rt," ")})),y.a.createElement(n.a,{dashed:!0}),y.a.createElement("div",{className:"c-light-black mt20 font12"},y.a.createElement("span",null,ze.author_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,ze.author_school_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",ze.level),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),y.a.createElement("span",null,ze.study_count))))}),y.a.createElement("p",null)),y.a.createElement("div",{className:"tc"},y.a.createElement(j.a,{current:nt.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:je==null?void 0:je.shixuns_count,onChange:function(st){nt.page=st,_t({type:"classroomList/getShixunLists",payload:Object(w.a)({},nt)})}})))},xe=Object(z.a)(function(Te){var we=Te.classroomList,Ke=Te.loading;return{classroomList:we,loading:Ke}})(Ae),Pe=te("NLgs"),De=te("xKgJ"),Fe=te("NE/W"),Ne=te("L7QV"),qe=te("qHKi"),ct=te.n(qe),Ot=function(we){var Ke=we.data,me=Ke===void 0?{}:Ke,ht=we.dispatch,_t=ht===void 0?function(){}:ht,lt=we.onReloadData,xt=lt===void 0?function(){}:lt,tt=function(){if(!Object(Pe.c)(_t))return;if(Object(De.p)())return;for(var Ye,ot=0;ot<(me==null||((je=me.stages)===null||je===void 0)?void 0:je.length);ot++){var je,pt,$e,Ve=me==null||((pt=me.stages)===null||pt===void 0)?void 0:pt[ot],Ee=Ve==null||(($e=Ve.shixuns_list)===null||$e===void 0)?void 0:$e.find(function(dt){return(dt==null?void 0:dt.shixun_status)!=="\u6682\u672A\u516C\u5F00"});if(Ee){Ye=Ee.identifier;break}}Ye?Oe(Ye):c.b.info("\u5B9E\u8BAD\u6682\u672A\u516C\u5F00!")},Nt=function Ze(Ye){var ot;Ye=((ot=Ye)===null||ot===void 0?void 0:ot.includes(".json"))?Ye:"".concat(Ye,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:y.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var je=Object(p.a)(S.a.mark(function $e(){var Ve,Ee;return S.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Object(q.db)({url:Ye});case 2:if(Ve=Qe.sent,Ve){Qe.next=5;break}return Qe.abrupt("return");case 5:return c.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Qe.next=8,Object(q.w)({id:Ve.shixun_identifier});case 8:if(Ee=Qe.sent,!(Ee==null?void 0:Ee.game_identifier)){Qe.next=13;break}return Object(re.z)("/tasks/".concat(Ee.game_identifier)),xt(),Qe.abrupt("return");case 13:(Ee==null?void 0:Ee.status)===2?Ze(Ee==null?void 0:Ee.message):(Ee==null?void 0:Ee.status)===3&&St(Ee==null?void 0:Ee.message);case 14:case"end":return Qe.stop()}},$e)}));function pt(){return je.apply(this,arguments)}return pt}()})},St=function(Ye){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:y.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ye,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Oe=function(){var Ze=Object(p.a)(S.a.mark(function Ye(ot){var je;return S.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(q.w)({id:ot});case 2:if(je=$e.sent,!(je==null?void 0:je.game_identifier)){$e.next=7;break}return Object(re.z)("/tasks/".concat(je.game_identifier)),xt(),$e.abrupt("return");case 7:(je==null?void 0:je.status)===2?Nt(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&St(je==null?void 0:je.message);case 8:case"end":return $e.stop()}},Ye)}));return function(ot){return Ze.apply(this,arguments)}}();return y.a.createElement("section",null,!Object(De.c)()&&y.a.createElement(y.a.Fragment,null,(me==null?void 0:me.start_learning)?y.a.createElement("div",{className:ct.a.wrap},y.a.createElement("div",{className:"mt5 ".concat(ct.a.havaLearn)},y.a.createElement("span",null,"\u5DF2\u5B66",me==null?void 0:me.learned,"%")),y.a.createElement("div",{className:"mt5 ".concat(ct.a.progress)},y.a.createElement(Ne.a,{percent:me==null?void 0:me.learned,showInfo:!1})),y.a.createElement("div",{className:"mt5"},y.a.createElement("span",{className:"font16"},"\u4E0A\u6B21\u5B66\u4E60\u5185\u5BB9"),y.a.createElement("span",{className:"ml20 c-blue-4ca"},me==null?void 0:me.last_shixun))):y.a.createElement(i.a,{className:ct.a.wrap,align:"middle"},y.a.createElement(r.a,{flex:"1"},y.a.createElement("span",{className:ct.a.name},"\u8FD8\u672A\u5F00\u59CB\u5B66\u4E60")),y.a.createElement(r.a,null,y.a.createElement(d.a,{className:ct.a.button,type:"primary",onClick:tt},"\u5F00\u59CB\u5B66\u4E60")))))},At=Ot,Pt=te("V0Rq"),Ct=te("sBCT"),Lt=te("500L"),gt=te("jZGp"),wt=te("m3rI"),Rt=function(we){var Ke=we.classroomList,me=we.user,ht=we.globalSetting,_t=we.loading,lt=we.dispatch,xt=Object(b.a)(we,["classroomList","user","globalSetting","loading","dispatch"]),tt=Object(L.m)(),Nt=Object(U.useState)([]),St=Object(D.a)(Nt,2),Oe=St[0],Ze=St[1],Ye=Object(U.useState)({}),ot=Object(D.a)(Ye,2),je=ot[0],pt=ot[1],$e=Object(U.useState)(-1),Ve=Object(D.a)($e,2),Ee=Ve[0],dt=Ve[1],Qe=Object(U.useState)(!1),nt=Object(D.a)(Qe,2),Ft=nt[0],Dt=nt[1],ze=Object(U.useState)({name:"",is_jupyter:!1}),st=Object(D.a)(ze,2),rt=st[0],at=st[1],mt=A.a.useForm(),kt=Object(D.a)(mt,1),it=kt[0],Vt=A.a.useForm(),zt=Object(D.a)(Vt,1),yt=zt[0],jt=A.a.useForm(),Ut=Object(D.a)(jt,1),Tt=Ut[0],cn=Object(U.useState)(!1),Ht=Object(D.a)(cn,2),ln=Ht[0],Xt=Ht[1],dn=Object(U.useState)(),qt=Object(D.a)(dn,2),It=qt[0],Yt=qt[1],pn=Object(U.useState)([]),$t=Object(D.a)(pn,2),fn=$t[0],hn=$t[1],mn=Object(U.useState)(),Jt=Object(D.a)(mn,2),_n=Jt[0],Wt=Jt[1];Object(U.useEffect)(function(){bt()},[tt==null?void 0:tt.coursesId]),Object(U.useEffect)(function(){Ke.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&bt()},[Ke.actionTabs.key]);var vn=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e){var be;return S.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,se(Object(w.a)({},_e));case 2:return be=Ce.sent,Ce.abrupt("return",be);case 4:case"end":return Ce.stop()}},fe)}));return function(_e){return Ue.apply(this,arguments)}}(),gn=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e){var be;return S.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return lt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),Ce.next=3,Object(q.w)({id:_e});case 3:if(be=Ce.sent,lt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(be==null?void 0:be.game_identifier)){Ce.next=8;break}return Object(re.z)("/tasks/".concat(be.game_identifier)),Ce.abrupt("return");case 8:(be==null?void 0:be.status)===2?yn(be==null?void 0:be.message):(be==null?void 0:be.status)===3&&Zt(be==null?void 0:be.message);case 9:case"end":return Ce.stop()}},fe)}));return function(_e){return Ue.apply(this,arguments)}}(),yn=function Ue(fe){var _e;fe=((_e=fe)===null||_e===void 0?void 0:_e.includes(".json"))?fe:"".concat(fe,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:y.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var be=Object(p.a)(S.a.mark(function Ce(){var He,Xe;return S.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Object(Pt.K)({url:fe});case 2:if(He=Ie.sent,He){Ie.next=5;break}return Ie.abrupt("return");case 5:return c.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ie.next=8,Object(q.w)({id:He.shixun_identifier});case 8:if(Xe=Ie.sent,!(Xe==null?void 0:Xe.game_identifier)){Ie.next=12;break}return Object(re.z)("/tasks/".concat(Xe.game_identifier)),Ie.abrupt("return");case 12:(Xe==null?void 0:Xe.status)===2?Ue(Xe==null?void 0:Xe.message):(Xe==null?void 0:Xe.status)===3&&Zt(Xe==null?void 0:Xe.message);case 13:case"end":return Ie.stop()}},Ce)}));function ke(){return be.apply(this,arguments)}return ke}()})},Zt=function(fe){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:y.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",fe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},bn=function(){var fe={shixuns_list:[]};en(Oe.length,fe),Ze([].concat(Object(l.a)(Oe),[fe])),Yt(!0)},Qt=function(){Ee===Oe.length-1&&It&&(Gt(),Ze(Oe.filter(function(fe,_e){return _e!==Oe.length-1}))),bt(),dt(-1)},en=function(fe,_e){if(!Kt())return;dt(fe),it.setFieldsValue({name:_e.stage_name,description:_e.stage_description})},tn=function(fe){var _e;Oe[Ee].shixuns_list=(_e=Oe[Ee].shixuns_list)===null||_e===void 0?void 0:_e.concat(fe),Ze(Object(l.a)(Oe))},En=function(fe){var _e;fe.map(function(be){return be.type="Attachment",be.id=be.id||be.response.id,be}),Oe[Ee].items=(_e=Oe[Ee].items)===null||_e===void 0?void 0:_e.concat(fe),Ze(Object(l.a)(Oe))},wn=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e){var be,ke;return S.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,ie(Object(w.a)({id:Oe[Ee].stage_id,course_id:tt.coursesId},_e));case 2:return be=He.sent,be.id&&(Wt(!1),ke=[Object(w.a)({},be)],Oe[Ee].shixuns_list=Oe[Ee].shixuns_list.concat(ke),Ze(Object(l.a)(Oe))),He.abrupt("return",be);case 5:case"end":return He.stop()}},fe)}));return function(_e){return Ue.apply(this,arguments)}}(),bt=function(){var Ue=Object(p.a)(S.a.mark(function fe(){var _e;return S.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Y({coursesId:tt==null?void 0:tt.coursesId});case 2:_e=ke.sent,(_e==null?void 0:_e.stages)&&Ze((_e==null?void 0:_e.stages)?Object(l.a)(_e==null?void 0:_e.stages):[]),pt(_e?Object(w.a)({},_e):{}),console.log("---------",je),Gt(),dt(-1);case 8:case"end":return ke.stop()}},fe)}));return function(){return Ue.apply(this,arguments)}}(),Bt=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e,be){var ke,Ce,He;return S.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(_e==null?void 0:_e.name){et.next=2;break}return et.abrupt("return",c.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(Gt(),ke=[],Oe[Ee][be||"shixuns_list"].map(function(Ie){ke.push({type:Ie.item_type,id:Ie.id})}),!It){et.next=12;break}return et.next=8,he(Object(w.a)(Object(w.a)({},_e),{},{coursesId:tt.coursesId,list:ke}));case 8:Ce=et.sent,Ce&&(Oe[Ee]=Object(w.a)(Object(w.a)({},Oe[Ee]),Ce)),et.next=16;break;case 12:return et.next=14,Q(Object(w.a)(Object(w.a)({},_e),{},{id:Oe[Ee].stage_id,type:Array.from(new Set(ke.map(function(Ie){return Ie.type}))),list:ke}));case 14:He=et.sent,He&&(Oe[Ee]=Object(w.a)(Object(w.a)({},Oe[Ee]),He));case 16:case"end":return et.stop()}},fe)}));return function(_e,be){return Ue.apply(this,arguments)}}(),xn=function(fe,_e,be){var ke=Array.from(fe),Ce=ke.splice(_e,1),He=Object(D.a)(Ce,1),Xe=He[0];return ke.splice(be,0,Xe),ke},nn=function(fe,_e){E.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(){Oe[Ee][_e||"shixuns_list"].splice(fe,1),c.b.success("\u5220\u9664\u6210\u529F"),Ze(Object(l.a)(Oe)),Bt(it.getFieldsValue(),_e)}})},rn=function(fe){E.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 _e=Object(p.a)(S.a.mark(function ke(){var Ce;return S.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,ge(Object(w.a)({},fe));case 2:Ce=Xe.sent,Ce.status===0&&(dt(-1),c.b.success("\u5220\u9664\u6210\u529F"),bt());case 4:case"end":return Xe.stop()}},ke)}));function be(){return _e.apply(this,arguments)}return be}()})},on=function(){at({name:"",is_jupyter:!1}),yt.setFieldsValue({name:"",is_jupyter:!1}),Dt(!1)},an=function(fe,_e){if(!fe.destination)return;var be=xn(Oe[Ee][_e||"shixuns_list"],fe.source.index,fe.destination.index);Oe[Ee][_e||"shixuns_list"]=be,Ze(Object(l.a)(Oe)),Bt(it.getFieldsValue(),_e)},Sn=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e){var be;return S.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Kt()){Ce.next=2;break}return Ce.abrupt("return");case 2:return Ce.next=4,C({id:_e});case 4:be=Ce.sent,be.status===0&&bt();case 6:case"end":return Ce.stop()}},fe)}));return function(_e){return Ue.apply(this,arguments)}}(),Tn=function(){var Ue=Object(p.a)(S.a.mark(function fe(_e){var be;return S.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Kt()){Ce.next=2;break}return Ce.abrupt("return");case 2:return Ce.next=4,g({id:_e});case 4:be=Ce.sent,be.status===0&&bt();case 6:case"end":return Ce.stop()}},fe)}));return function(_e){return Ue.apply(this,arguments)}}(),Kt=function(){return Ee!==-1?(E.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,title:"\u63D0\u793A",content:y.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(Ee),be=document.getElementById(_e);be&&setTimeout(function(){return be.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},sn=function(){Bt(it.getFieldsValue())},Gt=function(){Yt(!1)},un=function(fe,_e,be){return y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:_e,gutter:[5,10]},y.a.createElement(r.a,null,fe.item_type==="Shixun"?y.a.createElement("i",{className:"iconfont icon-shixun2 c-light-primary font20"}):y.a.createElement("i",{className:"iconfont icon-shipin c-purple-8C1 font20"})),y.a.createElement(r.a,{flex:1,className:!fe.allow_visit&&!fe.to_be_built&&(fe.shixun_status==="\u6682\u672A\u516C\u5F00"||fe.shixun_status==="\u5DF2\u5220\u9664")?ne.a.color204:""},be+1,"-",_e+1,"\xA0\xA0",fe.name,Ee===-1&&fe.complete_status===1&&y.a.createElement("span",{className:ne.a.completed},y.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),y.a.createElement(r.a,null,Ee===be&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){nn(_e,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),Ee!==be&&fe.item_type==="VideoItem"&&y.a.createElement("aside",null,y.a.createElement(d.a,{type:"primary",href:fe.link||"/video/".concat(fe.id,"?subject_id=").concat(je.subject_id),target:"_blank"},fe.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(fe.allow_visit||fe.to_be_built||fe.shixun_status!=="\u6682\u672A\u516C\u5F00"&&fe.shixun_status!=="\u5DF2\u5220\u9664")&&Ee!==be&&fe.item_type==="Shixun"&&y.a.createElement("aside",null,y.a.createElement(k.Link,{to:"/shixuns/".concat(fe.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),fe.shixun_status!=="\u6682\u672A\u516C\u5F00"&&y.a.createElement(d.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(Pe.c)(lt))return;gn(fe.identifier)}},"\u5F00\u59CB\u5B9E\u6218")),Ee===-1&&!fe.allow_visit&&fe.shixun_status==="\u6682\u672A\u516C\u5F00"&&y.a.createElement("span",{className:ne.a.color204},"\u6682\u672A\u516C\u5F00"),Ee===-1&&!fe.allow_visit&&fe.shixun_status==="\u5DF2\u5220\u9664"&&y.a.createElement("span",{className:ne.a.color204},"\u5DF2\u5220\u9664"),Ee===-1&&fe.allow_visit&&fe.item_type==="Shixun"&&y.a.createElement("span",{className:"".concat(ne.a.color204," ml5 experiment-number")},"\u5B9E\u9A8C\u6570 ",fe.challenges_count)))},On=function(fe,_e){var be,ke,Ce,He,Xe,et;return y.a.createElement("section",{key:_e,className:"bg-white pt30 mb20 pb20"},y.a.createElement("aside",{className:"pl20 pr20"},y.a.createElement(i.a,{gutter:[5,20],align:"middle"},y.a.createElement(r.a,{flex:"22px"},y.a.createElement("span",{className:ne.a.icons},y.a.createElement("img",{src:te("JWDV")}))),y.a.createElement(r.a,{flex:1,className:"tl font18 bold c-grey-333"},fe.stage_name||"\u7B2C".concat(Oe==null?void 0:Oe.length,"\u90E8\u5206")),y.a.createElement(r.a,null,Object(De.c)()&&Ee===_e&&!It&&y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){rn(fe.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),Object(De.c)()&&Ee!==_e&&y.a.createElement("div",null,_e>0&&y.a.createElement(e.a,{title:"\u5411\u4E0A\u79FB\u52A8"},y.a.createElement("span",{onClick:function(){return Sn(fe.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),_e<Oe.length-1&&y.a.createElement(e.a,{title:"\u5411\u4E0B\u79FB\u52A8"},y.a.createElement("span",{onClick:function(){return Tn(fe.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),!It&&y.a.createElement(e.a,{title:"\u7F16\u8F91"},y.a.createElement("span",{onClick:function(){return en(_e,fe)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),y.a.createElement(i.a,{gutter:[5,20]},y.a.createElement(r.a,{span:24},y.a.createElement("div",{dangerouslySetInnerHTML:{__html:(be=fe.stage_description)===null||be===void 0?void 0:be.replace(/[\r|\n]/gi,"<br/>")}})))),Ee===_e&&y.a.createElement("div",{className:"pl20 pr20"},y.a.createElement("aside",null,y.a.createElement(A.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},y.a.createElement(m.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Oe==null?void 0:Oe.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:sn})),y.a.createElement(A.a.Item,{name:"description",label:"\u63CF\u8FF0",rules:[{required:!0,message:"\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"}]},y.a.createElement(m.a.TextArea,{rows:5,maxLength:300,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Oe==null?void 0:Oe.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:sn}))),y.a.createElement("aside",{style:{display:"flex",justifyContent:"space-evenly"}},y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){if(!Oe[Ee].stage_id)return c.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Pe.c)(lt))return;if(!Object(Pe.a)())return;Dt(!0),yt.setFieldsValue({name:"",is_jupyter:!1})}},y.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE"),y.a.createElement("br",null),y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){var Je;if(!Oe[Ee].stage_id)return c.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");lt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",id:Oe[Ee].stage_id,course_id:tt.coursesId}}),hn(fe==null||((Je=fe.shixuns_list)===null||Je===void 0)?void 0:Je.map(function(ut){return ut.id}))}},y.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"),y.a.createElement("br",null),!(ht==null||((ke=ht.setting)===null||ke===void 0)?void 0:ke.is_local)&&y.a.createElement(y.a.Fragment,null,y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){var Je,ut;if(!Oe[Ee].stage_id)return c.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Je=me.userInfo)===null||Je===void 0?void 0:Je.admin)||((ut=me.userInfo)===null||ut===void 0?void 0:ut.is_teacher)&&Object(Pe.b)())&&Wt(!0)}},y.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE"),y.a.createElement("br",null)),y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){if(!Oe[Ee].stage_id)return c.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Pe.c)(lt))return;if(!Object(Pe.a)())return;Xt(!0),Tt.resetFields()}},y.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),y.a.createElement("br",null)),y.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(_e)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),y.a.createElement("aside",{className:ne.a.shixuns},Ee===_e?y.a.createElement(G.a,{onDragEnd:function(Je){return an(Je,"shixuns_list")}},y.a.createElement(G.c,{droppableId:"droppable-id"},function(Ie,Je){var ut;return y.a.createElement("div",Object(R.a)({className:"mt20",ref:Ie.innerRef},Ie.droppableProps,{onScroll:function(){}}),(ut=fe.shixuns_list)===null||ut===void 0?void 0:ut.map(function(ft,vt){return y.a.createElement(G.b,{draggableId:"".concat(ft.id.toString(),"-").concat(_e,"-").concat(vt),index:vt,key:ft.id},function(Et,An){return y.a.createElement("div",Object(R.a)({ref:Et.innerRef},Et.draggableProps,Et.dragHandleProps),un(ft,vt,_e))})}))})):y.a.createElement("div",{className:"mt20"},(Ce=fe.shixuns_list)===null||Ce===void 0?void 0:Ce.map(function(Ie,Je){return y.a.createElement("div",null,un(Ie,Je,_e))}))),!!((He=fe.attachments_list)===null||He===void 0?void 0:He.length)&&y.a.createElement(n.a,null),y.a.createElement("aside",{className:ne.a.shixuns},Ee===_e?y.a.createElement(G.a,{onDragEnd:function(Je){return an(Je,"attachments_list")}},y.a.createElement(G.c,{droppableId:"droppable-id2"},function(Ie,Je){var ut;return y.a.createElement("div",Object(R.a)({className:"mt20",ref:Ie.innerRef},Ie.droppableProps,{onScroll:function(){}}),(ut=fe.attachments_list)===null||ut===void 0?void 0:ut.map(function(ft,vt){return y.a.createElement(G.b,{draggableId:"".concat(ft.id.toString(),"-").concat(_e,"-").concat(vt),index:vt,key:ft.id},function(Et,An){return y.a.createElement("div",Object(R.a)({ref:Et.innerRef},Et.draggableProps,Et.dragHandleProps),y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:vt,gutter:[5,10]},y.a.createElement(r.a,null,y.a.createElement("i",{className:"iconfont icon-jiaoxueanli c-cyan-blue font20"})),y.a.createElement(r.a,{flex:"1"},y.a.createElement("a",{className:"c-grey-333",href:wt.a.IMG_SERVER+ft.url,target:"_blank"},ft.name)),y.a.createElement(r.a,null,Ee===_e&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){nn(vt,"attachments_list")},className:"iconfont icon-shanchu c-grey-c"}))))))})}))})):y.a.createElement("div",{className:"mt20"},(Xe=fe.attachments_list)===null||Xe===void 0?void 0:Xe.map(function(Ie,Je){return y.a.createElement("div",null,y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:Je,gutter:[5,10]},y.a.createElement(r.a,null,y.a.createElement("i",{className:"iconfont icon-jiaoxueanli c-cyan-blue font20"})),y.a.createElement(r.a,null,y.a.createElement("a",{className:"c-grey-333",href:wt.a.IMG_SERVER+Ie.url,target:"_blank"},Ie.name))))}))),!!((et=fe.items)===null||et===void 0?void 0:et.length)&&y.a.createElement(gt.a,{visibleType:"All",data:Object(l.a)(fe.items),stage_id:fe.stage_id,disabled:!(Ee===_e),deleteStages:rn,updateSort:vn,subject_id:je==null?void 0:je.subject_id,index:_e,cust_seq:!0,showVideoPlay:!0}),Ee===_e&&y.a.createElement("aside",{className:ne.a.buttons},y.a.createElement(d.a,{onClick:Qt,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),y.a.createElement(d.a,{onClick:Qt,size:"large",type:"primary"},"\u4FDD\u5B58")))};return y.a.createElement("section",{className:"mb50"},y.a.createElement(At,{data:je,dispatch:lt,onReloadData:bt}),y.a.createElement(A.a,{form:it,onFinish:Bt},Oe==null?void 0:Oe.map(function(Ue,fe){return y.a.createElement("div",{key:fe},On(Ue,fe))})),Object(De.c)()&&!It&&Ee===-1&&y.a.createElement("div",{className:ne.a.addStage,onClick:bn},y.a.createElement("span",{className:ne.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"),y.a.createElement(E.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE",visible:Ft,onOk:Object(p.a)(S.a.mark(function Ue(){var fe;return S.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,yt.validateFields();case 2:return be.next=4,$(Object(w.a)({id:Oe[Ee].stage_id,course_id:tt.coursesId},rt));case 4:fe=be.sent,on(),fe.id&&(c.b.success("\u6DFB\u52A0\u6210\u529F"),tn([fe]));case 7:case"end":return be.stop()}},Ue)})),onCancel:on},y.a.createElement(A.a,{form:yt,onValuesChange:function(fe){at(Object(w.a)(Object(w.a)({},rt),fe))}},y.a.createElement(A.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},y.a.createElement(We.a.Group,null,y.a.createElement(We.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),y.a.createElement(We.a,{value:!0},"jupyter\u5B9E\u8BAD"))),y.a.createElement(A.a.Item,{label:"\u5B9E\u8BAD\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},y.a.createElement(m.a,{suffix:y.a.createElement("span",null,rt.name.length,"/60")})))),y.a.createElement(E.a,{centered:!0,title:"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:ln,onOk:Object(p.a)(S.a.mark(function Ue(){var fe,_e;return S.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Tt.validateFields();case 2:return ke.next=4,Tt.getFieldsValue();case 4:return fe=ke.sent,ke.next=7,de({id:Oe[Ee].stage_id,course_id:tt.coursesId,attachment_ids:fe.files.map(function(Ce){return Ce.response.id})});case 7:_e=ke.sent,_e.status===0&&(c.b.success("\u6DFB\u52A0\u6210\u529F"),Xt(!1),En(Object(l.a)(fe.files)));case 9:case"end":return ke.stop()}},Ue)})),onCancel:function(){return Xt(!1)}},y.a.createElement(A.a,{form:Tt},y.a.createElement(A.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},y.a.createElement(Lt.b,{maxSize:100,accept:"application/pdf",number:10})),y.a.createElement("div",null,y.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),y.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",y.a.createElement(k.Link,{target:"_blank",to:"/users/mmipb3zhj/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",y.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7100M\uFF1B",y.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u6587\u4EF6\uFF1B",y.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",y.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),y.a.createElement(xe,{shixunIds:fn,cb:tn}),y.a.createElement(Ct.a,{visible:_n,onCancel:function(){return Wt(!1)},onOk:wn}))},Mt=Me.default=Object(z.a)(function(Te){var we=Te.classroomList,Ke=Te.user,me=Te.loading,ht=Te.globalSetting;return{classroomList:we,user:Ke,globalSetting:ht,loading:me.models.index}})(Rt)},Aky1:function(Ge,Me,te){"use strict";te.d(Me,"a",function(){return v});var Le=te("ErOA"),We=te("qGJc"),ve=te.n(We),n="",R;function O(i){m(i)}function m(i){debugger;R=new ve.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(d){console.log("addFileSuccess: "+d.file.name),i.addFileSuccess&&i.addFileSuccess(d),R.startUpload()},onUploadstarted:function(d){var s=d.file.name;if(d.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(Le.a)(r,{method:"put",body:{video_id:d.videoId,title:s,file_name:s}}).then(function(l){if(l.status==-1){i.onUploadError&&i.onUploadError(d);return}var f=l.data,c=f.UploadAuth,T=f.UploadAddress,E=f.VideoId;R.setUploadAuthAndAddress(d,c,T)}).catch(function(l){R.deleteFile(R._curIndex),R.nextUpload(),console.log(l)})}else{var e="/api/users/".concat(n,"/video_auths.json"),o="";Object(Le.a)(e,{method:"Post",body:{title:o+s,file_name:o+s}}).then(function(l){if(l){var f=l.data,c=f.UploadAuth,T=f.UploadAddress,E=f.VideoId;R.setUploadAuthAndAddress(d,c,T,E)}}).catch(function(l){R.deleteFile(R._curIndex),R.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(d){i.onUploadSucceed&&i.onUploadSucceed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(d,s,e){i.onUploadFailed&&i.onUploadFailed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(d,s,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(d,s,e){i.onUploadProgress&&i.onUploadProgress(d,s,e);var o=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(d){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var s="/api/users/".concat(n,"/video_auths.json");Object(Le.a)(s,{method:"put",body:{video_id:d.videoId}}).then(function(e){var o=e.data,r=o.UploadAuth;R.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(d){i.onUploadEnd&&i.onUploadEnd(d),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(R)}function v(i,u){i&&(n=i),O(u);debugger}},Dols:function(Ge,Me,te){Ge.exports={tree:"tree___22OZV"}},ItnT:function(Ge,Me,te){Ge.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(Ge,Me,te){Ge.exports=te.p+"static/charpter-white.5fa14f93.svg"},NLgs:function(Ge,Me,te){"use strict";te.d(Me,"c",function(){return i}),te.d(Me,"d",function(){return u}),te.d(Me,"b",function(){return s}),te.d(Me,"a",function(){return e});var Le=te("rjoL"),We=te("TMtJ"),ve=te("ZZRV"),n=te.n(ve),R=te("9kvl"),O=te("xKgJ"),m=te("1vsH"),v=te("m3rI"),i=function(r){return!!(u(r)&&d())},u=function(r){return Object(O.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(){var r,l=Object(R.b)()._store.getState(),f=l.user;return((r=f.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(We.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:n.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(){R.c.push("/account/profile/edit")}}),!1)},s=function(){var r,l=Object(R.b)()._store.getState(),f=l.user;return((r=f.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(We.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.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(m.z)("/account/certification")}}),!1)},e=function(){return Object(O.a)()?!0:(We.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc"},n.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"),n.a.createElement("img",{src:Object(O.r)()?te("WdTA"):"".concat(v.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(O.r)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(m.z)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},WdTA:function(Ge,Me,te){Ge.exports=te.p+"static/studnetqun.a5754d96.png"},jZGp:function(Ge,Me,te){"use strict";var Le=te("XKP1"),We=te("X8Fr"),ve=te("XZgM"),n=te("TFeq"),R=te("MPZO"),O=te("bnk9"),m=te("CeOx"),v=te("NiCL"),i=te("RXQH"),u=te("VgM2"),d=te("X/R0"),s=te("M6G9"),e=te("VBJJ"),o=te.n(e),r=te("z3+T"),l=te("rjoL"),f=te("TMtJ"),c=te("V0hb"),T=te("GZha"),E=te("buSX"),h=te("VmQ4"),S=te("QeCE"),w=te("ZZRV"),p=te.n(w),x=te("q5+0"),A=te("9kvl"),D=te("1vsH"),b=te("qdXH"),U=te("V0Rq"),y=te("HBuW"),L=te("Dols"),k=te.n(L),z=S.a.Option,G=function(re){var X=re.pathsDetail,ne=re.globalSetting,J=re.user,H=re.loading,I=re.visibleType,j=re.updateSort,B=re.dispatch,M=Object(E.a)(re,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),V=Object(w.useState)([]),Y=Object(T.a)(V,2),ae=Y[0],Q=Y[1],le=Object(x.m)(),he=Object(w.useState)([{title:"\u5B9E\u8BAD\u6D4B\u8BD5\u7AE0\u82821",key:"0-0"},{title:"parent 2",key:"1-0"}]),Z=Object(T.a)(he,2),$=Z[0],oe=Z[1];Object(w.useEffect)(function(){if(M.data){var C=JSON.parse(JSON.stringify(M.data));a(C,0),oe(Object(c.a)(C)),console.log("---------------",M.data,C,ae,2222),Q(Object(c.a)(ae))}},[M.data,I]);var W=function(_,g){f.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(){}})},N=function(_){f.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 g=Object(r.a)(o.a.mark(function K(){return o.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:case"end":return se.stop()}},K)}));function F(){return g.apply(this,arguments)}return F}()})},ie=function(){var C=Object(r.a)(o.a.mark(function _(g,F){var K;return o.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(B({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!F){se.next=7;break}return se.next=4,Object(y.v)({id:g});case 4:se.t0=se.sent,se.next=10;break;case 7:return se.next=9,Object(y.w)({id:g});case 9:se.t0=se.sent;case 10:if(K=se.t0,B({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((K==null?void 0:K.game_identifier)||(K==null?void 0:K.identifier))){se.next=15;break}return Object(D.z)(F?"/tasks/".concat(K==null?void 0:K.identifier,"/jupyter"):"/tasks/".concat(K.game_identifier)),se.abrupt("return");case 15:(K==null?void 0:K.status)===2?ee(K==null?void 0:K.message):(K==null?void 0:K.status)===3&&de(K==null?void 0:K.message);case 16:case"end":return se.stop()}},_)}));return function(g,F){return C.apply(this,arguments)}}(),ee=function C(_){var g;_=((g=_)===null||g===void 0?void 0:g.includes(".json"))?_:"".concat(_,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:p.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var F=Object(r.a)(o.a.mark(function pe(){var se,ue;return o.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,Object(U.K)({url:_});case 2:if(se=ye.sent,se){ye.next=5;break}return ye.abrupt("return");case 5:return s.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),ye.next=8,Object(y.w)({id:se.shixun_identifier});case 8:if(ue=ye.sent,!(ue==null?void 0:ue.game_identifier)){ye.next=12;break}return Object(D.z)("/tasks/".concat(ue.game_identifier)),ye.abrupt("return");case 12:(ue==null?void 0:ue.status)===2?C(ue==null?void 0:ue.message):(ue==null?void 0:ue.status)===3&&de(ue==null?void 0:ue.message);case 13:case"end":return ye.stop()}},pe)}));function K(){return F.apply(this,arguments)}return K}()})},de=function(_){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:p.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",_,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},P=function(_){console.log("onDragEnter:",_)},t=function(){var C=Object(r.a)(o.a.mark(function _(g){var F,K,pe,se,ue,ge,ye,Se,ce,Re;return o.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(console.log("onDrop:",g),!(!!((F=g.dragNode.children)===null||F===void 0?void 0:F.length)&&!g.node.dragOverGapBottom)){Ae.next=3;break}return Ae.abrupt("return",!1);case 3:if(K=g.node.props.eventKey,pe=g.dragNode.props.eventKey,se=g.node.props.pos.split("-"),ue=g.dropPosition-Number(se[se.length-1]),!((se==null?void 0:se.length)>2)){Ae.next=9;break}return Ae.abrupt("return");case 9:return ge=function xe(Pe,De,Fe){for(var Ne=0;Ne<Pe.length;Ne++){if(Pe[Ne].key===De)return Fe(Pe[Ne],Ne,Pe);Pe[Ne].children&&xe(Pe[Ne].children,De,Fe)}},ye=Object(c.a)($),ge(ye,pe,function(xe,Pe,De){De.splice(Pe,1),Se=xe}),console.log("dragObj:",Se,g.dropToGap),g.dropToGap?(g.node.props.children||[]).length>0&&g.node.props.expanded&&ue===1?ge(ye,K,function(xe){xe.children=xe.children||[],xe.children.unshift(Se)}):(ge(ye,K,function(xe,Pe,De){ce=De,Re=Pe}),ce&&(ue===-1?ce.splice(Re,0,Se):ce.splice(Re+1,0,Se))):ge(ye,K,function(xe){xe.children=xe.children||[],xe.children.unshift(Se)}),ye.map(function(xe,Pe){}),Ae.next=17,j({stage_id:M.stage_id,list:ye});case 17:console.log("--------------111",ye),a(ye,0),oe(Object(c.a)(ye));case 20:case"end":return Ae.stop()}},_)}));return function(g){return C.apply(this,arguments)}}(),a=function C(_,g){_.map(function(F,K){try{return console.log("item:",F,$,_,F.children),F.key=g+1+"-"+(K+1),g?F.index=M.index+1+"-"+g+(K+1):F.index=M.index+1+"-"+(K+1),g=g||0,F.children&&(ae.push(g+1+"-"+(K+1)),C(F.children,g+1+"-")),F}catch(pe){}})};return p.a.createElement(p.a.Fragment,null,$.length&&p.a.createElement(We.a,{className:k.a.tree,disabled:M.disabled,defaultExpandAll:!0,autoExpandParent:!0,expandedKeys:ae,draggable:!0,onDragEnter:P,onDrop:t,showIcon:!1,switcherIcon:null,blockNode:!0,titleRender:function(_){var g,F,K,pe,se,ue=_;return ue.item_type!==I&&I!=="All"?null:p.a.createElement(n.a,{align:"middle",className:"font14"},p.a.createElement(u.a,{flex:"30px"},_.item_type==="Shixun"?p.a.createElement("i",{className:"iconfont icon-shixun2 c-light-primary font20"}):_.item_type==="VideoItem"?p.a.createElement("i",{className:"iconfont icon-shipin c-purple-8C1 font20"}):p.a.createElement("i",{className:"iconfont icon-jiaoxueanli c-cyan-blue font20"})),p.a.createElement(u.a,{flex:"1",className:"c-grey-333"},M.cust_seq&&p.a.createElement("span",{className:"mr10"},_.index),_.item_type!=="Attachment"&&_.name,_.item_type==="Attachment"&&p.a.createElement("a",{target:"_blank",onClick:function(){return Object(D.z)(_.url)}},_.name)),p.a.createElement(u.a,{flex:"250px",className:"tr pr20"},!M.disabled&&p.a.createElement("div",null,p.a.createElement(v.a,{title:"\u5220\u9664"},p.a.createElement("span",{onClick:function(){M.deleteStages({id:ue.stage_item_id,stage_id:M.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),M.showVideoPlay&&M.disabled&&ue.item_type==="VideoItem"&&p.a.createElement("aside",null,p.a.createElement(O.a,{type:"primary",onClick:function(){var ye,Se;if(!((ye=J.userInfo)===null||ye===void 0?void 0:ye.admin)&&!((Se=J.userInfo)===null||Se===void 0?void 0:Se.business)&&!ue.can_view)return f.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:p.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});ue.link&&Object(b.o)({is_f:1,id:ue.id,point:0,total:0}),Object(D.z)(ue.link||"/video/".concat(ue.id,"?subject_id=").concat(le.pathId||M.subject_id))}},ue.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((g=J.userInfo)===null||g===void 0?void 0:g.admin)||(ue.allow_visit||ue.to_be_built||ue.shixun_status!=="\u6682\u672A\u516C\u5F00"&&ue.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((F=X.detail)===null||F===void 0?void 0:F.allow_statistics)&&((K=J.userInfo)===null||K===void 0?void 0:K.user_identity)==="\u5B66\u751F"&&((pe=X.detail)===null||pe===void 0?void 0:pe.allow_visit)&&((se=X.detail)===null||se===void 0?void 0:se.courses)))&&M.disabled&&ue.item_type==="Shixun"&&p.a.createElement("aside",null,p.a.createElement("a",{href:"/shixuns/".concat(ue.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),ue.shixun_status!=="\u6682\u672A\u516C\u5F00"&&p.a.createElement(O.a,{className:"ml20",type:"primary",onClick:function(){ie(ue.identifier,ue.is_jupyter)}},"\u5F00\u59CB\u5B9E\u6218")),!ue.allow_visit&&!ue.to_be_built&&ue.shixun_status==="\u6682\u672A\u516C\u5F00"&&p.a.createElement("span",{className:k.a.color204},"\u6682\u672A\u516C\u5F00"),!ue.allow_visit&&!ue.to_be_built&&ue.shixun_status==="\u5DF2\u5220\u9664"&&p.a.createElement("span",{className:k.a.color204},"\u5DF2\u5220\u9664"),M.disabled&&ue.item_type==="Shixun"&&p.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5173\u5361\u6570 ",ue.challenges_count)))},treeData:$}))};Me.a=Object(A.a)(function(q){var re=q.pathsDetail,X=q.loading,ne=q.user,J=q.globalSetting;return{pathsDetail:re,globalSetting:J,user:ne,loading:X.effects}})(G)},kwm0:function(Ge,Me,te){Ge.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(Ge,Me,te){(function(Le){var We,We;!function(ve){if(!0)window.OSS=ve(),Ge.exports=ve();else var n}(function(){var ve;return function(){function n(R,O,m){function v(d,s){if(!O[d]){if(!R[d]){var e=typeof We=="function"&&We;if(!s&&e)return We(d,!0);if(i)return i(d,!0);var o=new Error("Cannot find module '"+d+"'");throw o.code="MODULE_NOT_FOUND",o}var r=O[d]={exports:{}};R[d][0].call(r.exports,function(l){return v(R[d][1][l]||l)},r,r.exports,n,R,O,m)}return O[d].exports}for(var i=typeof We=="function"&&We,u=0;u<m.length;u++)v(m[u]);return v}return n}()({1:[function(n,R,O){"use strict";var m=n("./browser/client");m.Buffer=n("buffer").Buffer,m.co=n("co"),m.urllib=n("../shims/xhr"),m.version=n("./browser/version").version,R.exports=m},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,R,O){(function(m,v){"use strict";function i(H){return H&&H.__esModule?H:{default:H}}function u(H,I){return H[I]||H[I.toLowerCase()]}function d(H,I){var j=b.parse(H);if(!j.protocol){var B=I?"https://":"http://";j=b.parse(B+H)}if(j.protocol!=="http:"&&j.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return j}function s(H,I,j){var B=j?"https://":"http://",M=I?"-internal.aliyuncs.com":".aliyuncs.com";return H.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(M=".aliyuncs.com"),b.parse(B+H+M)}function e(){return document&&document.location&&document.location.protocol==="https:"}function o(H,I){if(!(this instanceof o))return new o(H,I);H&&H.inited?this.options=H:this.options=o.initOptions(H),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=k,this.agent=this.options.agent||ne),this.ctx=I,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=n("babel-runtime/regenerator"),l=i(r),f=n("babel-runtime/core-js/object/keys"),c=i(f),T=n("debug")("ali-oss"),E=n("./../../shims/crypto/crypto.js"),h=n("path"),S=n("copy-to"),w=n("mime"),p=n("xml2js"),x=n("humanize-ms"),A=n("agentkeepalive"),D=n("merge-descriptors"),b=n("url"),U=n("is-type-of"),y=n("platform"),L=n("utility"),k=n("urllib"),z=n("./version"),G=n("dateformat"),q=n("bowser"),re=n("../common/signUtils"),X=n("../common/utils"),ne=new A;R.exports=o,o.initOptions=function(H){if(!H||!H.accessKeyId||!H.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var I=e(),j={region:"oss-cn-hangzhou",internal:!1,secure:I,bucket:null,endpoint:null,cname:!1};if((0,c.default)(H).forEach(function(B){H[B]!==void 0&&(j[B]=H[B])}),j.accessKeyId=j.accessKeyId.trim(),j.accessKeySecret=j.accessKeySecret.trim(),j.timeout&&(j.timeout=x(j.timeout)),j.endpoint)j.endpoint=d(j.endpoint,j.secure);else{if(!j.region)throw new Error("require options.endpoint or options.region");j.endpoint=s(j.region,j.internal,j.secure)}return j.inited=!0,j};var J=o.prototype;D(J,n("./object")),D(J,n("./managed_upload")),D(J,n("../common/multipart")),D(J,n("../common/thunkpool.js")),o.Wrapper=n("./wrapper"),J.signature=function(H){return T("authorization stringToSign: %s",H),re.computeSignature(this.options.accessKeySecret,H)},J.authorization=function(H,I,j,B){var M=re.buildCanonicalString(H.toUpperCase(),I,{headers:B,parameters:j});return re.authorization(this.options.accessKeyId,this.options.accessKeySecret,M)},J.createRequest=function(H){var I={"x-oss-date":G(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(I["x-oss-security-token"]=this.options.stsToken),S(H.headers).to(I),u(I,"Content-Type")||(H.mime===w.default_type&&(H.mime=""),H.mime&&H.mime.indexOf("/")>0?I["Content-Type"]=H.mime:I["Content-Type"]=w.getType(H.mime||h.extname(H.object||""))||"application/octet-stream"),H.content&&(I["Content-Md5"]=E.createHash("md5").update(new v(H.content,"utf8")).digest("base64"),I["Content-Length"]||(I["Content-Length"]=H.content.length));var j=this._getResource(H);I.authorization=this.authorization(H.method,j,H.subres,I);var B=this._getReqUrl(H);T("request %s %s, with headers %j, !!stream: %s",H.method,B,I,!!H.stream);var M=H.timeout||this.options.timeout;return{url:B,params:{agent:this.agent,method:H.method,content:H.content,stream:H.stream,headers:I,timeout:M,writeStream:H.writeStream,customResponse:H.customResponse,ctx:H.ctx||this.ctx}}},J.request=l.default.mark(function H(I){var j,B,M,V;return l.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return j=this.createRequest(I),B=void 0,M=void 0,Y.prev=3,Y.next=6,this.urllib.request(j.url,j.params);case 6:B=Y.sent,T("response %s %s, got %s, headers: %j",I.method,j.url,B.status,B.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),M=Y.t0;case 13:if(V=void 0,!B||!I.successStatuses||I.successStatuses.indexOf(B.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(B);case 17:if(V=Y.sent,V.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,Y.next=22,this.request(I);case 22:return Y.abrupt("return",Y.sent);case 23:V.params=I,Y.next=30;break;case 26:if(!M){Y.next=30;break}return Y.next=29,this.requestError(M);case 29:V=Y.sent;case 30:if(!V){Y.next=32;break}throw V;case 32:if(!I.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(B.data);case 35:B.data=Y.sent;case 36:return Y.abrupt("return",B);case 37:case"end":return Y.stop()}},H,this,[[3,10]])}),J._getResource=function(H){var I="/";return H.bucket&&(I+=H.bucket+"/"),H.object&&(I+=H.object),I},J._isIP=function(H){return X._isIP(H)},J._escape=function(H){return L.encodeURIComponent(H).replace(/%2F/g,"/")},J._getReqUrl=function(H){var I={};S(this.options.endpoint).to(I);var j=this._isIP(I.hostname),B=this.options.cname;!H.bucket||B||j||(I.host=H.bucket+"."+I.host);var M="/";H.bucket&&j&&(M+=H.bucket+"/"),H.object&&(M+=this._escape(H.object).replace(/\+/g,"%2B")),I.pathname=M;var V={};if(H.query&&D(V,H.query),H.subres){var Y={};U.string(H.subres)?Y[H.subres]="":U.array(H.subres)?H.subres.forEach(function(ae){Y[ae]=""}):Y=H.subres,D(V,Y)}return I.query=V,b.format(I)},J._getUserAgent=function(){var H=m&&m.browser?"js":"nodejs",I="aliyun-sdk-"+H+"/"+z.version,j=y.description;return!j&&m&&(j="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(I+" "+j)},J._checkUserAgent=function(H){return H.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},J.checkBrowserAndVersion=function(H,I){return q.name===H&&q.version.split(".")[0]===I},J.parseXML=function(H){return function(I){v.isBuffer(H)&&(H=H.toString()),p.parseString(H,{explicitRoot:!1,explicitArray:!1},I)}},J.requestError=l.default.mark(function H(I){var j,B,M,V;return l.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(j=null,I.data&&I.data.length){Y.next=5;break}I.status===-1||I.status===-2?(j=new Error(I.message),j.name=I.name,j.status=I.status,j.code=I.name):(I.status===404?(j=new Error("Object not exists"),j.name="NoSuchKeyError",j.status=404,j.code="NoSuchKey"):I.status===412?(j=new Error("Pre condition failed"),j.name="PreconditionFailedError",j.status=412,j.code="PreconditionFailed"):(j=new Error("Unknow error, status: "+I.status),j.name="UnknowError",j.status=I.status),j.requestId=I.headers["x-oss-request-id"],j.host=""),Y.next=30;break;case 5:return B=String(I.data),T("request response error data: %s",B),M=void 0,Y.prev=8,Y.next=11,this.parseXML(B)||{};case 11:M=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),T(B),Y.t0.message+=`
|
||
raw xml: `+B,Y.t0.status=I.status,Y.t0.requestId=I.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:V=M.Message||"unknow request error, status: "+I.status,M.Condition&&(V+=" (condition: "+M.Condition+")"),j=new Error(V),j.name=M.Code?M.Code+"Error":"UnknowError",j.status=I.status,j.code=M.Code,j.requestId=M.RequestId,j.hostId=M.HostId,j.serverTime=M.ServerTime;case 30:return T("generate error %j",j),Y.abrupt("return",j);case 32:case"end":return Y.stop()}},H,this,[[8,14]])})}).call(this,n("_process"),n("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(n,R,O){(function(m){"use strict";function v(S){return S&&S.__esModule?S:{default:S}}function i(S,w){if(!(this instanceof i))return new i(S,w);h.call(this,w),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=n("babel-runtime/core-js/array/from"),d=v(u),s=n("babel-runtime/regenerator"),e=v(s),o=n("is-type-of"),r=n("util"),l=n("path"),f=n("mime"),c=n("copy-to"),T=O;T.multipartUpload=e.default.mark(function S(w,p,x){var A,D,b,U,y,L,k,z,G;return e.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(this.resetCancelFlag(),x=x||{},!x.checkpoint||!x.checkpoint.uploadId){q.next=6;break}return q.next=5,this._resumeMultipart(x.checkpoint,x);case 5:return q.abrupt("return",q.sent);case 6:return A=102400,x.mime||(o.file(p)?x.mime=f.getType(l.extname(p.name)):o.blob(p)?x.mime=p.type:x.mime=f.getType(l.extname(p))),x.headers=x.headers||{},this._convertMetaToHeaders(x.meta,x.headers),q.next=12,this._getFileSize(p);case 12:if(!((D=q.sent)<A)){q.next=25;break}return b=this._createStream(p,0,D),x.contentLength=D,q.next=18,this.putStream(w,b,x);case 18:if(U=q.sent,!x||!x.progress){q.next=22;break}return q.next=22,x.progress(1);case 22:return y={res:U.res,bucket:this.options.bucket,name:w,etag:U.res.headers.etag},(x.headers&&x.headers["x-oss-callback"]||x.callback)&&(y.data=U.data),q.abrupt("return",y);case 25:if(!(x.partSize&&x.partSize<A)){q.next=27;break}throw new Error("partSize must not be smaller than "+A);case 27:return q.next=29,this.initMultipartUpload(w,x);case 29:if(L=q.sent,k=L.uploadId,z=this._getPartSize(D,x.partSize),G={file:p,name:w,fileSize:D,partSize:z,uploadId:k,doneParts:[]},!x||!x.progress){q.next=36;break}return q.next=36,x.progress(0,G,L.res);case 36:return q.next=38,this._resumeMultipart(G,x);case 38:return q.abrupt("return",q.sent);case 39:case"end":return q.stop()}},S,this)}),T._resumeMultipart=e.default.mark(function S(w,p){var x,A,D,b,U,y,L,k,z,G,q,re,X,ne,J,H,I,j,B,M,V;return e.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!this.isCancel()){Y.next=2;break}throw this._makeCancelEvent();case 2:if(x=w.file,A=w.fileSize,D=w.partSize,b=w.uploadId,U=w.doneParts,y=w.name,L=[],U.length>0&&c(U).to(L),k=this._divideParts(A,D),z=k.length,G=!1,q=e.default.mark(function ae(Q,le){var he,Z,$;return e.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(Q.isCancel()){oe.next=21;break}return oe.prev=1,he=k[le-1],Z={stream:Q._createStream(x,he.start,he.end),size:he.end-he.start},oe.next=6,Q._uploadPart(y,b,le,Z);case 6:if($=oe.sent,Q.isCancel()||G){oe.next=13;break}if(w.doneParts.push({number:le,etag:$.res.headers.etag}),L.push({number:le,etag:$.res.headers.etag}),!p||!p.progress){oe.next=13;break}return oe.next=13,p.progress(U.length/z,w,$.res);case 13:oe.next=21;break;case 15:if(oe.prev=15,oe.t0=oe.catch(1),Q.isCancel()){oe.next=21;break}throw Q.cancel(),oe.t0.partNum=le,oe.t0;case 21:case"end":return oe.stop()}},ae,this,[[1,15]])}),re=(0,d.default)(new Array(z),function(ae,Q){return Q+1}),X=L.map(function(ae){return ae.number}),ne=re.filter(function(ae){return X.indexOf(ae)<0}),J=5,H=p.parallel||J,!this.checkBrowserAndVersion("Internet Explorer","10")&&H!==1){Y.next=26;break}I=0;case 16:if(!(I<ne.length)){Y.next=24;break}if(!this.isCancel()){Y.next=19;break}throw this._makeCancelEvent();case 19:return Y.next=21,q(this,ne[I]);case 21:I++,Y.next=16;break;case 24:Y.next=40;break;case 26:for(j=[],B=0;B<ne.length;B++)j.push(q(this,ne[B]));return Y.next=30,this._thunkPool(j,H);case 30:if(M=Y.sent,G=!0,!(M&&M.length>0)){Y.next=37;break}throw this.resetCancelFlag(),V=M[0],V.message="Failed to upload some parts with error: "+V.toString()+" part_num: "+V.partNum,V;case 37:if(!this.isCancel()){Y.next=40;break}throw j=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(y,b,L,p);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},S,this)}),o.file=function(S){return typeof File!="undefined"&&S instanceof File},o.blob=function(S){return typeof Blob!="undefined"&&S instanceof Blob},T._getFileSize=e.default.mark(function S(w){var p;return e.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(!o.buffer(w)){x.next=4;break}return x.abrupt("return",w.length);case 4:if(!o.blob(w)&&!o.file(w)){x.next=6;break}return x.abrupt("return",w.size);case 6:if(!o.string(w)){x.next=11;break}return x.next=9,this._statFile(w);case 9:return p=x.sent,x.abrupt("return",p.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return x.stop()}},S,this)});var E=n("stream"),h=E.Readable;r.inherits(i,h),i.prototype.readFileAndPush=function(S){if(this.fileBuffer)for(var w=!0;w&&this.fileBuffer&&this.start<this.fileBuffer.length;){var p=this.start,x=p+S;x=x>this.fileBuffer.length?this.fileBuffer.length:x,this.start=x,w=this.push(this.fileBuffer.slice(p,x))}},i.prototype._read=function(S){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);S=S||16384;var w=this;this.reader.onload=function(p){w.fileBuffer=new m(new Uint8Array(p.target.result)),w.file=null,w.readFileAndPush(S)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(S)},T._createStream=function(S,w,p){if(o.blob(S)||o.file(S))return new i(S.slice(w,p));throw new Error("_createStream requires File/String.")},T._getPartSize=function(S,w){return w?Math.max(Math.ceil(S/1e4),w):1048576},T._divideParts=function(S,w){for(var p=Math.ceil(S/w),x=[],A=0;A<p;A++){var D=w*A,b=Math.min(D+w,S);x.push({start:D,end:b})}return x},T._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("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(n,R,O){"use strict";function m(w){return w&&w.__esModule?w:{default:w}}var v=n("babel-runtime/core-js/object/keys"),i=m(v),u=n("babel-runtime/regenerator"),d=m(u),s=n("debug")("ali-oss:object"),e=n("utility"),o=n("fs"),r=n("is-type-of"),l=n("url"),f=n("copy-to"),c=n("path"),T=n("mime"),E=n("../common/callback"),h=n("../common/signUtils"),S=O;S.append=d.default.mark(function w(p,x,A){var D;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return A=A||{},A.position===void 0&&(A.position="0"),A.subres={append:"",position:A.position},A.method="POST",b.next=6,this.put(p,x,A);case 6:return D=b.sent,D.nextAppendPosition=D.res.headers["x-oss-next-append-position"],b.abrupt("return",D);case 9:case"end":return b.stop()}},w,this)}),S.put=d.default.mark(function w(p,x,A){var D,b,U,y,L,k;return d.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(D=void 0,A=A||{},!r.buffer(x)){z.next=6;break}D=x,z.next=18;break;case 6:if(!r.blob(x)&&!r.file(x)){z.next=17;break}return A.mime||(r.file(x)?A.mime=T.getType(c.extname(x.name)):A.mime=x.type),b=this._createStream(x,0,x.size),z.next=11,this._getFileSize(x);case 11:return A.contentLength=z.sent,z.next=14,this.putStream(p,b,A);case 14:return z.abrupt("return",z.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),U=A.method||"PUT",y=this._objectRequestParams(U,p,A),E.encodeCallback(y,A),y.mime=A.mime,y.content=D,y.successStatuses=[200],z.next=28,this.request(y);case 28:return L=z.sent,k={name:p,url:this._objectUrl(p),res:L.res},y.headers&&y.headers["x-oss-callback"]&&(k.data=JSON.parse(L.data.toString())),z.abrupt("return",k);case 32:case"end":return z.stop()}},w,this)}),S.putStream=d.default.mark(function w(p,x,A){var D,b,U,y;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return A=A||{},A.headers=A.headers||{},A.contentLength?A.headers["Content-Length"]=A.contentLength:A.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(A.meta,A.headers),D=A.method||"PUT",b=this._objectRequestParams(D,p,A),E.encodeCallback(b,A),b.mime=A.mime,b.stream=x,b.successStatuses=[200],L.next=12,this.request(b);case 12:return U=L.sent,y={name:p,url:this._objectUrl(p),res:U.res},b.headers&&b.headers["x-oss-callback"]&&(y.data=JSON.parse(U.data.toString())),L.abrupt("return",y);case 16:case"end":return L.stop()}},w,this)}),S.head=d.default.mark(function w(p,x){var A,D,b;return d.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return A=this._objectRequestParams("HEAD",p,x),A.successStatuses=[200,304],U.next=4,this.request(A);case 4:return D=U.sent,b={meta:null,res:D.res,status:D.status},D.status===200&&(0,i.default)(D.headers).forEach(function(y){y.indexOf("x-oss-meta-")===0&&(b.meta||(b.meta={}),b.meta[y.substring(11)]=D.headers[y])}),U.abrupt("return",b);case 8:case"end":return U.stop()}},w,this)}),S.get=d.default.mark(function w(p,x,A){var D,b,U,y;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return D=null,b=!1,r.writableStream(x)?D=x:r.string(x)?(D=o.createWriteStream(x),b=!0):A=x,A=A||{},A.process&&(A.subres=A.subres||{},A.subres["x-oss-process"]=A.process),U=void 0,L.prev=6,y=this._objectRequestParams("GET",p,A),y.writeStream=D,y.successStatuses=[200,206,304],L.next=12,this.request(y);case 12:U=L.sent,b&&D.destroy(),L.next=24;break;case 16:if(L.prev=16,L.t0=L.catch(6),!b){L.next=23;break}return D.destroy(),s("get error: %s, delete the exists file %s",L.t0,x),L.next=23,this._deleteFileSafe(x);case 23:throw L.t0;case 24:return L.abrupt("return",{res:U.res,content:U.data});case 25:case"end":return L.stop()}},w,this,[[6,16]])}),S.getStream=d.default.mark(function w(p,x){var A,D;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return x=x||{},A=this._objectRequestParams("GET",p,x),A.customResponse=!0,A.successStatuses=[200,206,304],b.next=6,this.request(A);case 6:return D=b.sent,b.abrupt("return",{stream:D.res,res:{status:D.status,headers:D.headers}});case 8:case"end":return b.stop()}},w,this)}),S.delete=d.default.mark(function w(p,x){var A,D;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return A=this._objectRequestParams("DELETE",p,x),A.successStatuses=[204],b.next=4,this.request(A);case 4:return D=b.sent,b.abrupt("return",{res:D.res});case 6:case"end":return b.stop()}},w,this)}),S.deleteMulti=d.default.mark(function w(p,x){var A,D,b,U,y,L;return d.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:for(x=x||{},A=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<Delete>
|
||
`,x.quiet?A+=` <Quiet>true</Quiet>
|
||
`:A+=` <Quiet>false</Quiet>
|
||
`,D=0;D<p.length;D++)A+=" <Object><Key>"+e.escape(this._objectName(p[D]))+`</Key></Object>
|
||
`;return A+="</Delete>",s("delete multi objects: %s",A),x.subres="delete",b=this._objectRequestParams("POST","",x),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],k.next=14,this.request(b);case 14:return U=k.sent,y=U.data,L=y&&y.Deleted||null,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(z){return z.Key})),k.abrupt("return",{res:U.res,deleted:L});case 19:case"end":return k.stop()}},w,this)}),S.copy=d.default.mark(function w(p,x,A){var D,b,U;return d.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return A=A||{},A.headers=A.headers||{},(0,i.default)(A.headers).forEach(function(L){A.headers["x-oss-copy-source-"+L.toLowerCase()]=A.headers[L]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),x=x[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(x):"/"+encodeURIComponent(x.slice(1)),A.headers["x-oss-copy-source"]=x,D=this._objectRequestParams("PUT",p,A),D.xmlResponse=!0,D.successStatuses=[200,304],y.next=12,this.request(D);case 12:return b=y.sent,U=b.data,U&&(U={etag:U.ETag,lastModified:U.LastModified}),y.abrupt("return",{data:U,res:b.res});case 16:case"end":return y.stop()}},w,this)}),S.putMeta=d.default.mark(function w(p,x,A){return d.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,this.copy(p,p,{meta:x||{},timeout:A&&A.timeout,ctx:A&&A.ctx});case 2:return D.abrupt("return",D.sent);case 3:case"end":return D.stop()}},w,this)}),S.list=d.default.mark(function w(p,x){var A,D,b,U,y;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return A=this._objectRequestParams("GET","",x),A.query=p,A.xmlResponse=!0,A.successStatuses=[200],L.next=6,this.request(A);case 6:return D=L.sent,b=D.data.Contents,U=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(k){return{name:k.Key,url:U._objectUrl(k.Key),lastModified:k.LastModified,etag:k.ETag,type:k.Type,size:Number(k.Size),storageClass:k.StorageClass,owner:{id:k.Owner.ID,displayName:k.Owner.DisplayName}}})),y=D.data.CommonPrefixes||null,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(k){return k.Prefix})),L.abrupt("return",{res:D.res,objects:b,prefixes:y,nextMarker:D.data.NextMarker||null,isTruncated:D.data.IsTruncated==="true"});case 13:case"end":return L.stop()}},w,this)}),S.putACL=d.default.mark(function w(p,x,A){var D,b;return d.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return A=A||{},A.subres="acl",A.headers=A.headers||{},A.headers["x-oss-object-acl"]=x,p=this._objectName(p),D=this._objectRequestParams("PUT",p,A),D.successStatuses=[200],U.next=9,this.request(D);case 9:return b=U.sent,U.abrupt("return",{res:b.res});case 11:case"end":return U.stop()}},w,this)}),S.getACL=d.default.mark(function w(p,x){var A,D;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return x=x||{},x.subres="acl",p=this._objectName(p),A=this._objectRequestParams("GET",p,x),A.successStatuses=[200],A.xmlResponse=!0,b.next=8,this.request(A);case 8:return D=b.sent,b.abrupt("return",{acl:D.data.AccessControlList.Grant,owner:{id:D.data.Owner.ID,displayName:D.data.Owner.DisplayName},res:D.res});case 10:case"end":return b.stop()}},w,this)}),S.restore=d.default.mark(function w(p,x){var A,D;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return x=x||{},x.subres="restore",A=this._objectRequestParams("POST",p,x),A.successStatuses=[202],b.next=6,this.request(A);case 6:return D=b.sent,b.abrupt("return",{res:D.res});case 8:case"end":return b.stop()}},w,this)}),S.signatureUrl=function(w,p){p=p||{},w=this._objectName(w),p.method=p.method||"GET";var x=e.timestamp()+(p.expires||1800),A={bucket:this.options.bucket,object:w},D=this._getResource(A);this.options.stsToken&&(p["security-token"]=this.options.stsToken);var b=h._signatureForURL(this.options.accessKeySecret,p,D,x),U=l.parse(this._getReqUrl(A));return U.query={OSSAccessKeyId:this.options.accessKeyId,Expires:x,Signature:b.Signature},f(b.subResource).to(U.query),U.format()},S.getObjectUrl=function(w,p){return p?p[p.length-1]!=="/"&&(p+="/"):p=this.options.endpoint.format(),p+this._escape(this._objectName(w))},S._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},S.generateObjectUrl=function(w,p){if(p)p[p.length-1]!=="/"&&(p+="/");else{p=this.options.endpoint.format();var x=l.parse(p),A=this.options.bucket;x.hostname=A+"."+x.hostname,x.host=A+"."+x.host,p=x.format()}return p+this._escape(this._objectName(w))},S._objectRequestParams=function(w,p,x){if(!this.options.bucket)throw new Error("Please create a bucket first");x=x||{},p=this._objectName(p);var A={object:p,bucket:this.options.bucket,method:w,subres:x&&x.subres,timeout:x&&x.timeout,ctx:x&&x.ctx};return x.headers&&(A.headers={},f(x.headers).to(A.headers)),A},S._objectName=function(w){return w.replace(/^\/+/,"")},S._statFile=function(w){return function(p){o.stat(w,p)}},S._convertMetaToHeaders=function(w,p){w&&(0,i.default)(w).forEach(function(x){p["x-oss-meta-"+x]=w[x]})},S._deleteFileSafe=function(w){return function(p){o.exists(w,function(x){x?o.unlink(w,function(A){A&&s("unlink %j error: %s",w,A),p()}):p()})}}},{"../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(n,R,O){"use strict";O.version="5.3.1"},{}],6:[function(n,R,O){"use strict";function m(c){return c&&c.__esModule?c:{default:c}}function v(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function i(c){if(!c)return!1;var T=c.constructor;return!!T&&(T.name==="GeneratorFunction"||T.displayName==="GeneratorFunction"||v(T.prototype)||v(c.prototype))}function u(c,T){var E=new c(T),h=(0,r.default)(E),S=(0,r.default)((0,e.default)(E));h.concat(S).forEach(function(w){i(E[w])?this[w]=l.wrap(E[w]).bind(E):this[w]=E[w]},this)}function d(c){if(!(this instanceof d))return new d(c);u.call(this,f,c)}var s=n("babel-runtime/core-js/object/get-prototype-of"),e=m(s),o=n("babel-runtime/core-js/object/keys"),r=m(o),l=n("co"),f=n("./client");R.exports=d,d.STS=function c(T){if(!(this instanceof c))return new c(T);u.call(this,f.STS,T)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,R,O){(function(m){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}var i=n("babel-runtime/core-js/object/keys"),u=v(i),d=n("babel-runtime/core-js/json/stringify"),s=v(d);O.encodeCallback=function(e,o){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var l=new m((0,s.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=l,o.callback.customValue){var f={};(0,u.default)(o.callback.customValue).forEach(function(c){f["x:"+c]=o.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new m((0,s.default)(f)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,R,O){"use strict";var m=n("babel-runtime/regenerator"),v=function(s){return s&&s.__esModule?s:{default:s}}(m),i=n("copy-to"),u=n("./callback"),d=O;d.listUploads=v.default.mark(function s(e,o){var r,l,f,c;return v.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return o=o||{},r={},i(o).to(r),r.subres="uploads",l=this._objectRequestParams("GET","",r),l.query=e,l.xmlResponse=!0,l.successStatuses=[200],T.next=10,this.request(l);case 10:return f=T.sent,c=f.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),T.abrupt("return",{res:f.res,uploads:c,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return T.stop()}},s,this)}),d.listParts=v.default.mark(function s(e,o,r,l){var f,c,T;return v.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=l||{},f={},i(l).to(f),f.subres={uploadId:o},c=this._objectRequestParams("GET",e,f),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],E.next=10,this.request(c);case 10:return T=E.sent,E.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return E.stop()}},s,this)}),d.abortMultipartUpload=v.default.mark(function s(e,o,r){var l,f,c;return v.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return this.cancel(),r=r||{},l={},i(r).to(l),l.subres={uploadId:o},f=this._objectRequestParams("DELETE",e,l),f.successStatuses=[204],T.next=9,this.request(f);case 9:return c=T.sent,T.abrupt("return",{res:c.res});case 11:case"end":return T.stop()}},s,this)}),d.initMultipartUpload=v.default.mark(function s(e,o){var r,l,f;return v.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=o||{},r={},i(o).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(o.meta,r.headers),r.subres="uploads",l=this._objectRequestParams("POST",e,r),l.mime=o.mime,l.xmlResponse=!0,l.successStatuses=[200],c.next=12,this.request(l);case 12:return f=c.sent,c.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return c.stop()}},s,this)}),d.uploadPart=v.default.mark(function s(e,o,r,l,f,c,T){var E;return v.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return E={stream:this._createStream(l,f,c),size:c-f},h.next=3,this._uploadPart(e,o,r,E,T);case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},s,this)}),d.completeMultipartUpload=v.default.mark(function s(e,o,r,l){var f,c,T,E,h,S,w,p;return v.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:for(f=r.concat().sort(function(A,D){return A.number-D.number}).filter(function(A,D,b){return!D||A.number!==b[D-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<CompleteMultipartUpload>
|
||
`,T=0;T<f.length;T++)E=f[T],c+=`<Part>
|
||
`,c+="<PartNumber>"+E.number+`</PartNumber>
|
||
`,c+="<ETag>"+E.etag+`</ETag>
|
||
`,c+=`</Part>
|
||
`;return c+="</CompleteMultipartUpload>",l=l||{},h={},i(l).to(h),h.subres={uploadId:o},S=this._objectRequestParams("POST",e,h),u.encodeCallback(S,h),S.mime="xml",S.content=c,S.headers&&S.headers["x-oss-callback"]||(S.xmlResponse=!0),S.successStatuses=[200],x.next=16,this.request(S);case 16:return w=x.sent,p={res:w.res,bucket:S.bucket,name:e,etag:w.res.headers.etag},S.headers&&S.headers["x-oss-callback"]&&(p.data=JSON.parse(w.data.toString())),x.abrupt("return",p);case 20:case"end":return x.stop()}},s,this)}),d._uploadPart=v.default.mark(function s(e,o,r,l,f){var c,T,E;return v.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return f=f||{},c={},i(f).to(c),c.headers={"Content-Length":l.size},c.subres={partNumber:r,uploadId:o},T=this._objectRequestParams("PUT",e,c),T.mime=c.mime,T.stream=l.stream,T.successStatuses=[200],h.next=11,this.request(T);case 11:return E=h.sent,l.stream=null,T.stream=null,h.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return h.stop()}},s,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,R,O){(function(m){"use strict";function v(r){return r&&r.__esModule?r:{default:r}}var i=n("babel-runtime/core-js/json/stringify"),u=v(i),d=n("babel-runtime/core-js/object/keys"),s=v(d),e=n("./../../shims/crypto/crypto.js"),o=n("is-type-of");O.buildCanonicalizedResource=function(r,l){var f=""+r,c="?";if(o.string(l)&&l.trim()!=="")f+=c+l;else if(o.array(l))l.sort(),f+=c+l.join("&");else if(l){var T=function(S,w){return S[0]>w[0]?1:S[0]<w[0]?-1:0},E=function(S){f+=c+S,l[S]&&(f+="="+l[S]),c="&"};(0,s.default)(l).sort(T).forEach(E)}return f},O.buildCanonicalString=function(r,l,f,c){f=f||{};var T=f.headers||{},E=[],h={},S=[r.toUpperCase(),T["Content-Md5"]||"",T["Content-Type"]||T["Content-Type".toLowerCase()],c||T["x-oss-date"]];return(0,s.default)(T).forEach(function(w){var p=w.toLowerCase();p.indexOf("x-oss-")===0&&(h[p]=String(T[w]).trim())}),(0,s.default)(h).sort().forEach(function(w){E.push(w+":"+h[w])}),S=S.concat(E),S.push(this.buildCanonicalizedResource(l,f.parameters)),S.join(`
|
||
`)},O.computeSignature=function(r,l){return e.createHmac("sha1",r).update(new m(l,"utf8")).digest("base64")},O.authorization=function(r,l,f){return"OSS "+r+":"+this.computeSignature(l,f)},O._signatureForURL=function(r,l,f,c){var T={},E={};if(l.process&&(E["x-oss-process"]=l.process),l.response&&(0,s.default)(l.response).forEach(function(p){var x="response-"+p.toLowerCase();E[x]=l.response[p]}),(0,s.default)(l).forEach(function(p){var x=p.toLowerCase(),A=l[p];x.indexOf("x-oss-")===0?T[x]=A:x.indexOf("content-md5")===0||x.indexOf("content-type")===0?T[p]=A:x!=="expires"&&x!=="response"&&x!=="process"&&x!=="method"&&(E[x]=A)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(E["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var h={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(h.callbackHost=l.callback.host),l.callback.contentType&&(h.callbackBodyType=l.callback.contentType),E.callback=new m((0,u.default)(h)).toString("base64"),l.callback.customValue){var S={};(0,s.default)(l.callback.customValue).forEach(function(p){S["x:"+p]=l.callback.customValue[p]}),E["callback-var"]=new m((0,u.default)(S)).toString("base64")}}var w=this.buildCanonicalString(l.method,f,{headers:T,parameters:E},c.toString());return{Signature:this.computeSignature(r,w),subResource:E}}}).call(this,n("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(n,R,O){"use strict";var m=n("babel-runtime/regenerator"),v=function(e){return e&&e.__esModule?e:{default:e}}(m),i=n("co"),u=n("co-priority-queue"),d=n("any-promise"),s=O;s._thunkPool=function(e,o){function r(E,h){++c===E.length&&h(T)}function l(E,h){function S(){var b;return v.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:b=void 0;case 1:if(f.isCancel()){U.next=9;break}return U.next=4,x.next();case 4:return b=U.sent,U.next=7,b();case 7:U.next=1;break;case 9:A+=1,A===E&&(x.fns=[],x.buffer=[],h(T));case 11:case"end":return U.stop()}},p,this)}function w(b){console.error(b.stack)}for(var p=v.default.mark(S),x=new u,A=0,D=0;D<E;D++)i(S).catch(w);return function(b,U){return function(y){x.push(v.default.mark(function L(){return v.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.prev=0,k.t0=y,k.next=4,b;case 4:k.t1=k.sent,(0,k.t0)(null,k.t1),k.next=11;break;case 8:k.prev=8,k.t2=k.catch(0),y(k.t2);case 11:case"end":return k.stop()}},L,this,[[0,8]])}),U)}}}var f=this,c=0,T=[];return new d(function(E){function h(A){return v.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,p(e[A]);case 2:r(e,E);case 3:case"end":return D.stop()}},w,this)}function S(A){T.push(A),r(e,E)}for(var w=v.default.mark(h),p=new l(o,E),x=0;x<e.length;x++)i(h(x)).catch(S)})},s.cancel=function(){this.options.cancelFlag=!0},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,R,O){"use strict";O._isIP=function(m){var v=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,i=/^\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 v.test(m)||i.test(m)}},{}],12:[function(n,R,O){function m(){}R.exports=m,R.exports.HttpsAgent=m},{}],13:[function(n,R,O){R.exports=n("./register")().Promise},{"./register":15}],14:[function(n,R,O){"use strict";var m=null;R.exports=function(v,i){return function(u,d){u=u||null,d=d||{};var s=d.global!==!1;if(m===null&&s&&(m=v["@@any-promise/REGISTRATION"]||null),m!==null&&u!==null&&m.implementation!==u)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(m=u!==null&&d.Promise!==void 0?{Promise:d.Promise,implementation:u}:i(u),s&&(v["@@any-promise/REGISTRATION"]=m)),m}}},{}],15:[function(n,R,O){"use strict";function m(){if(window.Promise===void 0)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"}}R.exports=n("./loader")(window,m)},{"./loader":14}],16:[function(n,R,O){R.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,R,O){R.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,R,O){R.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,R,O){R.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,R,O){R.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,R,O){R.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,R,O){R.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,R,O){R.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,R,O){R.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,R,O){"use strict";O.__esModule=!0,O.default=function(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,R,O){"use strict";O.__esModule=!0;var m=n("../core-js/object/define-property"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);O.default=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,v.default)(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}()},{"../core-js/object/define-property":20}],32:[function(n,R,O){"use strict";function m(e){return e&&e.__esModule?e:{default:e}}O.__esModule=!0;var v=n("../core-js/symbol/iterator"),i=m(v),u=n("../core-js/symbol"),d=m(u),s=typeof d.default=="function"&&typeof i.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":typeof e};O.default=typeof d.default=="function"&&s(i.default)==="symbol"?function(e){return e===void 0?"undefined":s(e)}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":e===void 0?"undefined":s(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,R,O){R.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,R,O){"use strict";function m(E){var h=E.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=E.indexOf("=");return S===-1&&(S=h),[S,S===h?0:4-S%4]}function v(E){var h=m(E),S=h[0],w=h[1];return 3*(S+w)/4-w}function i(E,h,S){return 3*(h+S)/4-S}function u(E){for(var h,S=m(E),w=S[0],p=S[1],x=new l(i(E,w,p)),A=0,D=p>0?w-4:w,b=0;b<D;b+=4)h=r[E.charCodeAt(b)]<<18|r[E.charCodeAt(b+1)]<<12|r[E.charCodeAt(b+2)]<<6|r[E.charCodeAt(b+3)],x[A++]=h>>16&255,x[A++]=h>>8&255,x[A++]=255&h;return p===2&&(h=r[E.charCodeAt(b)]<<2|r[E.charCodeAt(b+1)]>>4,x[A++]=255&h),p===1&&(h=r[E.charCodeAt(b)]<<10|r[E.charCodeAt(b+1)]<<4|r[E.charCodeAt(b+2)]>>2,x[A++]=h>>8&255,x[A++]=255&h),x}function d(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[63&E]}function s(E,h,S){for(var w,p=[],x=h;x<S;x+=3)w=(E[x]<<16&16711680)+(E[x+1]<<8&65280)+(255&E[x+2]),p.push(d(w));return p.join("")}function e(E){for(var h,S=E.length,w=S%3,p=[],x=0,A=S-w;x<A;x+=16383)p.push(s(E,x,x+16383>A?A:x+16383));return w===1?(h=E[S-1],p.push(o[h>>2]+o[h<<4&63]+"==")):w===2&&(h=(E[S-2]<<8)+E[S-1],p.push(o[h>>10]+o[h>>4&63]+o[h<<2&63]+"=")),p.join("")}O.byteLength=v,O.toByteArray=u,O.fromByteArray=e;for(var o=[],r=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,T=f.length;c<T;++c)o[c]=f[c],r[f.charCodeAt(c)]=c;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(n,R,O){!function(m,v,i){R!==void 0&&R.exports?R.exports=i():typeof ve=="function"&&ve.amd?ve("bowser",i):m.bowser=i()}(this,0,function(){function m(r){function l(H){var I=r.match(H);return I&&I.length>1&&I[1]||""}function f(H){var I=r.match(H);return I&&I.length>1&&I[2]||""}var c,T=l(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),h=!E&&/android/i.test(r),S=/nexus\s*[0-6]\s*/i.test(r),w=!S&&/nexus\s*[0-9]+/i.test(r),p=/CrOS/.test(r),x=/silk/i.test(r),A=/sailfish/i.test(r),D=/tizen/i.test(r),b=/(web|hpw)os/i.test(r),U=/windows phone/i.test(r),y=(/SamsungBrowser/i.test(r),!U&&/windows/i.test(r)),L=!T&&!x&&/macintosh/i.test(r),k=!h&&!A&&!D&&!b&&/linux/i.test(r),z=f(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=l(/version\/(\d+(\.\d+)?)/i),q=/tablet/i.test(r)&&!/tablet pc/i.test(r),re=!q&&/[^-]mobi/i.test(r),X=/xbox/i.test(r);/opera/i.test(r)?c={name:"Opera",opera:e,version:G||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?c={name:"Opera",opera:e,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(r)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:G||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?c={name:"Opera Coast",coast:e,version:G||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?c={name:"Yandex Browser",yandexbrowser:e,version:G||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?c={name:"UC Browser",ucbrowser:e,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?c={name:"Maxthon",maxthon:e,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?c={name:"Epiphany",epiphany:e,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?c={name:"Puffin",puffin:e,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?c={name:"Sleipnir",sleipnir:e,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?c={name:"K-Meleon",kMeleon:e,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:U?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},z?(c.msedge=e,c.version=z):(c.msie=e,c.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?c={name:"Internet Explorer",msie:e,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:p?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?c={name:"Microsoft Edge",msedge:e,version:z}:/vivaldi/i.test(r)?c={name:"Vivaldi",vivaldi:e,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||G}:A?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?c={name:"SeaMonkey",seamonkey:e,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(c={name:"Firefox",firefox:e,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(c.firefoxos=e,c.osname="Firefox OS")):x?c={name:"Amazon Silk",silk:e,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?c={name:"PhantomJS",phantom:e,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?c={name:"SlimerJS",slimer:e,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:G||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(c={name:"WebOS",osname:"WebOS",webos:e,version:G||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(c.touchpad=e)):/bada/i.test(r)?c={name:"Bada",osname:"Bada",bada:e,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:D?c={name:"Tizen",osname:"Tizen",tizen:e,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(r)?c={name:"QupZilla",qupzilla:e,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(r)?c={name:"Chromium",chromium:e,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(r)?c={name:"Chrome",chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:h?c={name:"Android",version:G}:/safari|applewebkit/i.test(r)?(c={name:"Safari",safari:e},G&&(c.version=G)):T?(c={name:T=="iphone"?"iPhone":T=="ipad"?"iPad":"iPod"},G&&(c.version=G)):c=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:l(/googlebot\/(\d+(\.\d+))/i)||G}:{name:l(/^(.*)\/(.*) /),version:f(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&G&&(c.version=G)):!c.opera&&/gecko\//i.test(r)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||l(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!h&&!c.silk?!c.windowsphone&&T?(c[T]=e,c.ios=e,c.osname="iOS"):L?(c.mac=e,c.osname="macOS"):X?(c.xbox=e,c.osname="Xbox"):y?(c.windows=e,c.osname="Windows"):k&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ne="";c.windows?ne=function(H){switch(H){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}}(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ne=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ne=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),ne=ne.replace(/[_\s]/g,".")):T?(ne=l(/os (\d+([_\s]\d+)*) like mac os x/i),ne=ne.replace(/[_\s]/g,".")):h?ne=l(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ne=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ne=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ne=l(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ne=l(/tizen[\/\s](\d+(\.\d+)*)/i)),ne&&(c.osversion=ne);var J=!c.windows&&ne.split(".")[0];return q||w||T=="ipad"||h&&(J==3||J>=4&&!re)||c.silk?c.tablet=e:(re||T=="iphone"||T=="ipod"||h||S||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function v(r){return r.split(".").length}function i(r,l){var f,c=[];if(Array.prototype.map)return Array.prototype.map.call(r,l);for(f=0;f<r.length;f++)c.push(l(r[f]));return c}function u(r){for(var l=Math.max(v(r[0]),v(r[1])),f=i(r,function(c){var T=l-v(c);return c+=new Array(T+1).join(".0"),i(c.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});--l>=0;){if(f[0][l]>f[1][l])return 1;if(f[0][l]!==f[1][l])return-1;if(l===0)return 0}}function d(r,l,f){var c=o;typeof l=="string"&&(f=l,l=void 0),l===void 0&&(l=!1),f&&(c=m(f));var T=""+c.version;for(var E in r)if(r.hasOwnProperty(E)&&c[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return u([T,r[E]])<0}return l}function s(r,l,f){return!d(r,l,f)}var e=!0,o=m(typeof navigator!="undefined"&&navigator.userAgent||"");return o.test=function(r){for(var l=0;l<r.length;++l){var f=r[l];if(typeof f=="string"&&f in o)return!0}return!1},o.isUnsupportedBrowser=d,o.compareVersions=u,o.check=s,o._detect=m,o.detect=m,o})},{}],36:[function(n,R,O){},{}],37:[function(n,R,O){function m(o){if(o&&!s(o))throw new Error("Unknown encoding: "+o)}function v(o){return o.toString(this.encoding)}function i(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function u(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}var d=n("buffer").Buffer,s=d.isEncoding||function(o){switch(o&&o.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}},e=O.StringDecoder=function(o){switch(this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),m(o),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=v)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(o){for(var r="";this.charLength;){var l=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived<this.charLength)return"";o=o.slice(l,o.length),r=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=r.charCodeAt(r.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(o);var f=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,f),f-=this.charReceived),r+=o.toString(this.encoding,0,f);var f=r.length-1,c=r.charCodeAt(f);if(c>=55296&&c<=56319){var T=this.surrogateSize;return this.charLength+=T,this.charReceived+=T,this.charBuffer.copy(this.charBuffer,T,0,T),o.copy(this.charBuffer,0,0,T),r.substring(0,f)}return r},e.prototype.detectIncompleteChar=function(o){for(var r=o.length>=3?3:o.length;r>0;r--){var l=o[o.length-r];if(r==1&&l>>5==6){this.charLength=2;break}if(r<=2&&l>>4==14){this.charLength=3;break}if(r<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(o){var r="";if(o&&o.length&&(r=this.write(o)),this.charReceived){var l=this.charReceived,f=this.charBuffer,c=this.encoding;r+=f.slice(0,l).toString(c)}return r}},{buffer:38}],38:[function(n,R,O){(function(m){"use strict";function v(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,a){if(v()<a)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(a),t.__proto__=u.prototype):(t===null&&(t=new u(a)),t.length=a),t}function u(t,a,C){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,a,C);if(typeof t=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,t)}return d(this,t,a,C)}function d(t,a,C,_){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&a instanceof ArrayBuffer?f(t,a,C,_):typeof a=="string"?r(t,a,C):c(t,a)}function s(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,a,C,_){return s(a),a<=0?i(t,a):C!==void 0?typeof _=="string"?i(t,a).fill(C,_):i(t,a).fill(C):i(t,a)}function o(t,a){if(s(a),t=i(t,a<0?0:0|T(a)),!u.TYPED_ARRAY_SUPPORT)for(var C=0;C<a;++C)t[C]=0;return t}function r(t,a,C){if(typeof C=="string"&&C!==""||(C="utf8"),!u.isEncoding(C))throw new TypeError('"encoding" must be a valid string encoding');var _=0|h(a,C);t=i(t,_);var g=t.write(a,C);return g!==_&&(t=t.slice(0,g)),t}function l(t,a){var C=a.length<0?0:0|T(a.length);t=i(t,C);for(var _=0;_<C;_+=1)t[_]=255&a[_];return t}function f(t,a,C,_){if(a.byteLength,C<0||a.byteLength<C)throw new RangeError("'offset' is out of bounds");if(a.byteLength<C+(_||0))throw new RangeError("'length' is out of bounds");return a=C===void 0&&_===void 0?new Uint8Array(a):_===void 0?new Uint8Array(a,C):new Uint8Array(a,C,_),u.TYPED_ARRAY_SUPPORT?(t=a,t.__proto__=u.prototype):t=l(t,a),t}function c(t,a){if(u.isBuffer(a)){var C=0|T(a.length);return t=i(t,C),t.length===0||a.copy(t,0,0,C),t}if(a){if(typeof ArrayBuffer!="undefined"&&a.buffer instanceof ArrayBuffer||"length"in a)return typeof a.length!="number"||W(a.length)?i(t,0):l(t,a);if(a.type==="Buffer"&&ee(a.data))return l(t,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function T(t){if(t>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),u.alloc(+t)}function h(t,a){if(u.isBuffer(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var C=t.length;if(C===0)return 0;for(var _=!1;;)switch(a){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":case void 0:return le(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return $(t).length;default:if(_)return le(t).length;a=(""+a).toLowerCase(),_=!0}}function S(t,a,C){var _=!1;if((a===void 0||a<0)&&(a=0),a>this.length)return"";if((C===void 0||C>this.length)&&(C=this.length),C<=0)return"";if(C>>>=0,a>>>=0,C<=a)return"";for(t||(t="utf8");;)switch(t){case"hex":return X(this,a,C);case"utf8":case"utf-8":return z(this,a,C);case"ascii":return q(this,a,C);case"latin1":case"binary":return re(this,a,C);case"base64":return k(this,a,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,a,C);default:if(_)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),_=!0}}function w(t,a,C){var _=t[a];t[a]=t[C],t[C]=_}function p(t,a,C,_,g){if(t.length===0)return-1;if(typeof C=="string"?(_=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,isNaN(C)&&(C=g?0:t.length-1),C<0&&(C=t.length+C),C>=t.length){if(g)return-1;C=t.length-1}else if(C<0){if(!g)return-1;C=0}if(typeof a=="string"&&(a=u.from(a,_)),u.isBuffer(a))return a.length===0?-1:x(t,a,C,_,g);if(typeof a=="number")return a&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(t,a,C):Uint8Array.prototype.lastIndexOf.call(t,a,C):x(t,[a],C,_,g);throw new TypeError("val must be string, number or Buffer")}function x(t,a,C,_,g){function F(ce,Re){return K===1?ce[Re]:ce.readUInt16BE(Re*K)}var K=1,pe=t.length,se=a.length;if(_!==void 0&&((_=String(_).toLowerCase())==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(t.length<2||a.length<2)return-1;K=2,pe/=2,se/=2,C/=2}var ue;if(g){var ge=-1;for(ue=C;ue<pe;ue++)if(F(t,ue)===F(a,ge===-1?0:ue-ge)){if(ge===-1&&(ge=ue),ue-ge+1===se)return ge*K}else ge!==-1&&(ue-=ue-ge),ge=-1}else for(C+se>pe&&(C=pe-se),ue=C;ue>=0;ue--){for(var ye=!0,Se=0;Se<se;Se++)if(F(t,ue+Se)!==F(a,Se)){ye=!1;break}if(ye)return ue}return-1}function A(t,a,C,_){C=Number(C)||0;var g=t.length-C;_?(_=Number(_))>g&&(_=g):_=g;var F=a.length;if(F%2!=0)throw new TypeError("Invalid hex string");_>F/2&&(_=F/2);for(var K=0;K<_;++K){var pe=parseInt(a.substr(2*K,2),16);if(isNaN(pe))return K;t[C+K]=pe}return K}function D(t,a,C,_){return oe(le(a,t.length-C),t,C,_)}function b(t,a,C,_){return oe(he(a),t,C,_)}function U(t,a,C,_){return b(t,a,C,_)}function y(t,a,C,_){return oe($(a),t,C,_)}function L(t,a,C,_){return oe(Z(a,t.length-C),t,C,_)}function k(t,a,C){return a===0&&C===t.length?N.fromByteArray(t):N.fromByteArray(t.slice(a,C))}function z(t,a,C){C=Math.min(t.length,C);for(var _=[],g=a;g<C;){var F=t[g],K=null,pe=F>239?4:F>223?3:F>191?2:1;if(g+pe<=C){var se,ue,ge,ye;switch(pe){case 1:F<128&&(K=F);break;case 2:se=t[g+1],(192&se)==128&&(ye=(31&F)<<6|63&se)>127&&(K=ye);break;case 3:se=t[g+1],ue=t[g+2],(192&se)==128&&(192&ue)==128&&(ye=(15&F)<<12|(63&se)<<6|63&ue)>2047&&(ye<55296||ye>57343)&&(K=ye);break;case 4:se=t[g+1],ue=t[g+2],ge=t[g+3],(192&se)==128&&(192&ue)==128&&(192&ge)==128&&(ye=(15&F)<<18|(63&se)<<12|(63&ue)<<6|63&ge)>65535&&ye<1114112&&(K=ye)}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,_.push(K>>>10&1023|55296),K=56320|1023&K),_.push(K),g+=pe}return G(_)}function G(t){var a=t.length;if(a<=de)return String.fromCharCode.apply(String,t);for(var C="",_=0;_<a;)C+=String.fromCharCode.apply(String,t.slice(_,_+=de));return C}function q(t,a,C){var _="";C=Math.min(t.length,C);for(var g=a;g<C;++g)_+=String.fromCharCode(127&t[g]);return _}function re(t,a,C){var _="";C=Math.min(t.length,C);for(var g=a;g<C;++g)_+=String.fromCharCode(t[g]);return _}function X(t,a,C){var _=t.length;(!a||a<0)&&(a=0),(!C||C<0||C>_)&&(C=_);for(var g="",F=a;F<C;++F)g+=Q(t[F]);return g}function ne(t,a,C){for(var _=t.slice(a,C),g="",F=0;F<_.length;F+=2)g+=String.fromCharCode(_[F]+256*_[F+1]);return g}function J(t,a,C){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+a>C)throw new RangeError("Trying to access beyond buffer length")}function H(t,a,C,_,g,F){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>g||a<F)throw new RangeError('"value" argument is out of bounds');if(C+_>t.length)throw new RangeError("Index out of range")}function I(t,a,C,_){a<0&&(a=65535+a+1);for(var g=0,F=Math.min(t.length-C,2);g<F;++g)t[C+g]=(a&255<<8*(_?g:1-g))>>>8*(_?g:1-g)}function j(t,a,C,_){a<0&&(a=4294967295+a+1);for(var g=0,F=Math.min(t.length-C,4);g<F;++g)t[C+g]=a>>>8*(_?g:3-g)&255}function B(t,a,C,_,g,F){if(C+_>t.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function M(t,a,C,_,g){return g||B(t,a,C,4,34028234663852886e22,-34028234663852886e22),ie.write(t,a,C,_,23,4),C+4}function V(t,a,C,_,g){return g||B(t,a,C,8,17976931348623157e292,-17976931348623157e292),ie.write(t,a,C,_,52,8),C+8}function Y(t){if(t=ae(t).replace(P,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function ae(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Q(t){return t<16?"0"+t.toString(16):t.toString(16)}function le(t,a){a=a||1/0;for(var C,_=t.length,g=null,F=[],K=0;K<_;++K){if((C=t.charCodeAt(K))>55295&&C<57344){if(!g){if(C>56319){(a-=3)>-1&&F.push(239,191,189);continue}if(K+1===_){(a-=3)>-1&&F.push(239,191,189);continue}g=C;continue}if(C<56320){(a-=3)>-1&&F.push(239,191,189),g=C;continue}C=65536+(g-55296<<10|C-56320)}else g&&(a-=3)>-1&&F.push(239,191,189);if(g=null,C<128){if((a-=1)<0)break;F.push(C)}else if(C<2048){if((a-=2)<0)break;F.push(C>>6|192,63&C|128)}else if(C<65536){if((a-=3)<0)break;F.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;F.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return F}function he(t){for(var a=[],C=0;C<t.length;++C)a.push(255&t.charCodeAt(C));return a}function Z(t,a){for(var C,_,g,F=[],K=0;K<t.length&&!((a-=2)<0);++K)C=t.charCodeAt(K),_=C>>8,g=C%256,F.push(g),F.push(_);return F}function $(t){return N.toByteArray(Y(t))}function oe(t,a,C,_){for(var g=0;g<_&&!(g+C>=a.length||g>=t.length);++g)a[g+C]=t[g];return g}function W(t){return t!==t}var N=n("base64-js"),ie=n("ieee754"),ee=n("isarray");O.Buffer=u,O.SlowBuffer=E,O.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(a){return!1}}(),O.kMaxLength=v(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,a,C){return d(null,t,a,C)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,a,C){return e(null,t,a,C)},u.allocUnsafe=function(t){return o(null,t)},u.allocUnsafeSlow=function(t){return o(null,t)},u.isBuffer=function(t){return!(t==null||!t._isBuffer)},u.compare=function(t,a){if(!u.isBuffer(t)||!u.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(t===a)return 0;for(var C=t.length,_=a.length,g=0,F=Math.min(C,_);g<F;++g)if(t[g]!==a[g]){C=t[g],_=a[g];break}return C<_?-1:_<C?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,a){if(!ee(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var C;if(a===void 0)for(a=0,C=0;C<t.length;++C)a+=t[C].length;var _=u.allocUnsafe(a),g=0;for(C=0;C<t.length;++C){var F=t[C];if(!u.isBuffer(F))throw new TypeError('"list" argument must be an Array of Buffers');F.copy(_,g),g+=F.length}return _},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<t;a+=2)w(this,a,a+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<t;a+=4)w(this,a,a+3),w(this,a+1,a+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<t;a+=8)w(this,a,a+7),w(this,a+1,a+6),w(this,a+2,a+5),w(this,a+3,a+4);return this},u.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?z(this,0,t):S.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||u.compare(this,t)===0},u.prototype.inspect=function(){var t="",a=O.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,a,C,_,g){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),C===void 0&&(C=t?t.length:0),_===void 0&&(_=0),g===void 0&&(g=this.length),a<0||C>t.length||_<0||g>this.length)throw new RangeError("out of range index");if(_>=g&&a>=C)return 0;if(_>=g)return-1;if(a>=C)return 1;if(a>>>=0,C>>>=0,_>>>=0,g>>>=0,this===t)return 0;for(var F=g-_,K=C-a,pe=Math.min(F,K),se=this.slice(_,g),ue=t.slice(a,C),ge=0;ge<pe;++ge)if(se[ge]!==ue[ge]){F=se[ge],K=ue[ge];break}return F<K?-1:K<F?1:0},u.prototype.includes=function(t,a,C){return this.indexOf(t,a,C)!==-1},u.prototype.indexOf=function(t,a,C){return p(this,t,a,C,!0)},u.prototype.lastIndexOf=function(t,a,C){return p(this,t,a,C,!1)},u.prototype.write=function(t,a,C,_){if(a===void 0)_="utf8",C=this.length,a=0;else if(C===void 0&&typeof a=="string")_=a,C=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(C)?(C|=0,_===void 0&&(_="utf8")):(_=C,C=void 0)}var g=this.length-a;if((C===void 0||C>g)&&(C=g),t.length>0&&(C<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");_||(_="utf8");for(var F=!1;;)switch(_){case"hex":return A(this,t,a,C);case"utf8":case"utf-8":return D(this,t,a,C);case"ascii":return b(this,t,a,C);case"latin1":case"binary":return U(this,t,a,C);case"base64":return y(this,t,a,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,a,C);default:if(F)throw new TypeError("Unknown encoding: "+_);_=(""+_).toLowerCase(),F=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var de=4096;u.prototype.slice=function(t,a){var C=this.length;t=~~t,a=a===void 0?C:~~a,t<0?(t+=C)<0&&(t=0):t>C&&(t=C),a<0?(a+=C)<0&&(a=0):a>C&&(a=C),a<t&&(a=t);var _;if(u.TYPED_ARRAY_SUPPORT)_=this.subarray(t,a),_.__proto__=u.prototype;else{var g=a-t;_=new u(g,void 0);for(var F=0;F<g;++F)_[F]=this[F+t]}return _},u.prototype.readUIntLE=function(t,a,C){t|=0,a|=0,C||J(t,a,this.length);for(var _=this[t],g=1,F=0;++F<a&&(g*=256);)_+=this[t+F]*g;return _},u.prototype.readUIntBE=function(t,a,C){t|=0,a|=0,C||J(t,a,this.length);for(var _=this[t+--a],g=1;a>0&&(g*=256);)_+=this[t+--a]*g;return _},u.prototype.readUInt8=function(t,a){return a||J(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,a){return a||J(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,a){return a||J(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,a){return a||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,a){return a||J(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,a,C){t|=0,a|=0,C||J(t,a,this.length);for(var _=this[t],g=1,F=0;++F<a&&(g*=256);)_+=this[t+F]*g;return g*=128,_>=g&&(_-=Math.pow(2,8*a)),_},u.prototype.readIntBE=function(t,a,C){t|=0,a|=0,C||J(t,a,this.length);for(var _=a,g=1,F=this[t+--_];_>0&&(g*=256);)F+=this[t+--_]*g;return g*=128,F>=g&&(F-=Math.pow(2,8*a)),F},u.prototype.readInt8=function(t,a){return a||J(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,a){a||J(t,2,this.length);var C=this[t]|this[t+1]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt16BE=function(t,a){a||J(t,2,this.length);var C=this[t+1]|this[t]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt32LE=function(t,a){return a||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,a){return a||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,a){return a||J(t,4,this.length),ie.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,a){return a||J(t,4,this.length),ie.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,a){return a||J(t,8,this.length),ie.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,a){return a||J(t,8,this.length),ie.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,a,C,_){(t=+t,a|=0,C|=0,!_)&&H(this,t,a,C,Math.pow(2,8*C)-1,0);var g=1,F=0;for(this[a]=255&t;++F<C&&(g*=256);)this[a+F]=t/g&255;return a+C},u.prototype.writeUIntBE=function(t,a,C,_){(t=+t,a|=0,C|=0,!_)&&H(this,t,a,C,Math.pow(2,8*C)-1,0);var g=C-1,F=1;for(this[a+g]=255&t;--g>=0&&(F*=256);)this[a+g]=t/F&255;return a+C},u.prototype.writeUInt8=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[a]=255&t,a+1},u.prototype.writeUInt16LE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):I(this,t,a,!0),a+2},u.prototype.writeUInt16BE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):I(this,t,a,!1),a+2},u.prototype.writeUInt32LE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[a+3]=t>>>24,this[a+2]=t>>>16,this[a+1]=t>>>8,this[a]=255&t):j(this,t,a,!0),a+4},u.prototype.writeUInt32BE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):j(this,t,a,!1),a+4},u.prototype.writeIntLE=function(t,a,C,_){if(t=+t,a|=0,!_){var g=Math.pow(2,8*C-1);H(this,t,a,C,g-1,-g)}var F=0,K=1,pe=0;for(this[a]=255&t;++F<C&&(K*=256);)t<0&&pe===0&&this[a+F-1]!==0&&(pe=1),this[a+F]=(t/K>>0)-pe&255;return a+C},u.prototype.writeIntBE=function(t,a,C,_){if(t=+t,a|=0,!_){var g=Math.pow(2,8*C-1);H(this,t,a,C,g-1,-g)}var F=C-1,K=1,pe=0;for(this[a+F]=255&t;--F>=0&&(K*=256);)t<0&&pe===0&&this[a+F+1]!==0&&(pe=1),this[a+F]=(t/K>>0)-pe&255;return a+C},u.prototype.writeInt8=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[a]=255&t,a+1},u.prototype.writeInt16LE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):I(this,t,a,!0),a+2},u.prototype.writeInt16BE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):I(this,t,a,!1),a+2},u.prototype.writeInt32LE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8,this[a+2]=t>>>16,this[a+3]=t>>>24):j(this,t,a,!0),a+4},u.prototype.writeInt32BE=function(t,a,C){return t=+t,a|=0,C||H(this,t,a,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):j(this,t,a,!1),a+4},u.prototype.writeFloatLE=function(t,a,C){return M(this,t,a,!0,C)},u.prototype.writeFloatBE=function(t,a,C){return M(this,t,a,!1,C)},u.prototype.writeDoubleLE=function(t,a,C){return V(this,t,a,!0,C)},u.prototype.writeDoubleBE=function(t,a,C){return V(this,t,a,!1,C)},u.prototype.copy=function(t,a,C,_){if(C||(C=0),_||_===0||(_=this.length),a>=t.length&&(a=t.length),a||(a=0),_>0&&_<C&&(_=C),_===C)return 0;if(t.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("sourceStart out of bounds");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),t.length-a<_-C&&(_=t.length-a+C);var g,F=_-C;if(this===t&&C<a&&a<_)for(g=F-1;g>=0;--g)t[g+a]=this[g+C];else if(F<1e3||!u.TYPED_ARRAY_SUPPORT)for(g=0;g<F;++g)t[g+a]=this[g+C];else Uint8Array.prototype.set.call(t,this.subarray(C,C+F),a);return F},u.prototype.fill=function(t,a,C,_){if(typeof t=="string"){if(typeof a=="string"?(_=a,a=0,C=this.length):typeof C=="string"&&(_=C,C=this.length),t.length===1){var g=t.charCodeAt(0);g<256&&(t=g)}if(_!==void 0&&typeof _!="string")throw new TypeError("encoding must be a string");if(typeof _=="string"&&!u.isEncoding(_))throw new TypeError("Unknown encoding: "+_)}else typeof t=="number"&&(t&=255);if(a<0||this.length<a||this.length<C)throw new RangeError("Out of range index");if(C<=a)return this;a>>>=0,C=C===void 0?this.length:C>>>0,t||(t=0);var F;if(typeof t=="number")for(F=a;F<C;++F)this[F]=t;else{var K=u.isBuffer(t)?t:le(new u(t,_).toString()),pe=K.length;for(F=0;F<C-a;++F)this[F+a]=K[F%pe]}return this};var P=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,R,O){R.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(n,R,O){"use strict";var m=function(){this.buffer=[],this.fns=[]};m.prototype.push=function(i,u){if(this.fns.length)return this.fns.shift()(null,i);var d={data:i,priority:u},s=v(this.buffer,d,function(e){return e.priority});this.buffer.splice(s,0,d)},m.prototype.next=function(){var i=this;return function(u){if(i.buffer.length)return u(null,i.buffer.pop().data);i.fns.push(u)}};var v=function(u,d,s){d=s(d);for(var e=0,o=u?u.length:e;e<o;){var r=e+o>>>1;s(u[r])<d?e=r+1:o=r}return e};R.exports=m},{}],41:[function(n,R,O){function m(f){var c=this,T=l.call(arguments,1);return new Promise(function(E,h){function S(x){var A;try{A=f.next(x)}catch(D){return h(D)}p(A)}function w(x){var A;try{A=f.throw(x)}catch(D){return h(D)}p(A)}function p(x){if(x.done)return E(x.value);var A=v.call(c,x.value);return A&&s(A)?A.then(S,w):w(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(x.value)+'"'))}if(typeof f=="function"&&(f=f.apply(c,T)),!f||typeof f.next!="function")return E(f);S()})}function v(f){return f&&(s(f)?f:o(f)||e(f)?m.call(this,f):typeof f=="function"?i.call(this,f):Array.isArray(f)?u.call(this,f):r(f)?d.call(this,f):f)}function i(f){var c=this;return new Promise(function(T,E){f.call(c,function(h,S){if(h)return E(h);arguments.length>2&&(S=l.call(arguments,1)),T(S)})})}function u(f){return Promise.all(f.map(v,this))}function d(f){for(var c=new f.constructor,T=Object.keys(f),E=[],h=0;h<T.length;h++){var S=T[h],w=v.call(this,f[S]);w&&s(w)?function(p,x){c[x]=void 0,E.push(p.then(function(A){c[x]=A}))}(w,S):c[S]=f[S]}return Promise.all(E).then(function(){return c})}function s(f){return typeof f.then=="function"}function e(f){return typeof f.next=="function"&&typeof f.throw=="function"}function o(f){var c=f.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function r(f){return Object==f.constructor}var l=Array.prototype.slice;R.exports=m.default=m.co=m,m.wrap=function(f){function c(){return m.call(this,f.apply(this,arguments))}return c.__generatorFunction__=f,c}},{}],42:[function(n,R,O){R.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(n,R,O){"use strict";function m(u,d){if(!(this instanceof m))return new m(u,d);this.src=u,this._withAccess=d}function v(u,d){return u[d]===void 0&&u.__lookupGetter__(d)===void 0&&u.__lookupSetter__(d)===void 0}var i=Array.prototype.slice;R.exports=m,m.prototype.withAccess=function(u){return this._withAccess=u!==!1,this},m.prototype.pick=function(u){return Array.isArray(u)||(u=i.call(arguments)),u.length&&(this.keys=u),this},m.prototype.to=function(u){if(u=u||{},!this.src)return u;var d=this.keys||Object.keys(this.src);if(!this._withAccess){for(var s=0;s<d.length;s++)e=d[s],u[e]===void 0&&(u[e]=this.src[e]);return u}for(var s=0;s<d.length;s++){var e=d[s];if(v(u,e)){var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&u.__defineGetter__(e,o),r&&u.__defineSetter__(e,r),o||r||(u[e]=this.src[e])}}return u},m.prototype.toCover=function(u){for(var d=this.keys||Object.keys(this.src),s=0;s<d.length;s++){var e=d[s];delete u[e];var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&u.__defineGetter__(e,o),r&&u.__defineSetter__(e,r),o||r||(u[e]=this.src[e])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(u){var d={};return this.to(d),this.src=u,this.to(d),this.src=d,this}},{}],44:[function(n,R,O){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),R.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,R,O){var m=n("../../modules/_core"),v=m.JSON||(m.JSON={stringify:JSON.stringify});R.exports=function(i){return v.stringify.apply(v,arguments)}},{"../../modules/_core":65}],46:[function(n,R,O){n("../../modules/es6.object.assign"),R.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,R,O){n("../../modules/es6.object.create");var m=n("../../modules/_core").Object;R.exports=function(v,i){return m.create(v,i)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,R,O){n("../../modules/es6.object.define-property");var m=n("../../modules/_core").Object;R.exports=function(v,i,u){return m.defineProperty(v,i,u)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,R,O){n("../../modules/es6.object.get-own-property-names");var m=n("../../modules/_core").Object;R.exports=function(v){return m.getOwnPropertyNames(v)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,R,O){n("../../modules/es6.object.get-prototype-of"),R.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,R,O){n("../../modules/es6.object.keys"),R.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,R,O){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),R.exports=n("../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(n,R,O){n("../modules/web.immediate"),R.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,R,O){n("../../modules/es6.string.from-code-point"),R.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,R,O){n("../../modules/es6.function.has-instance"),R.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,R,O){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),R.exports=n("../../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(n,R,O){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),R.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,R,O){R.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],59:[function(n,R,O){R.exports=function(){}},{}],60:[function(n,R,O){R.exports=function(m,v,i,u){if(!(m instanceof v)||u!==void 0&&u in m)throw TypeError(i+": incorrect invocation!");return m}},{}],61:[function(n,R,O){var m=n("./_is-object");R.exports=function(v){if(!m(v))throw TypeError(v+" is not an object!");return v}},{"./_is-object":85}],62:[function(n,R,O){var m=n("./_to-iobject"),v=n("./_to-length"),i=n("./_to-absolute-index");R.exports=function(u){return function(d,s,e){var o,r=m(d),l=v(r.length),f=i(e,l);if(u&&s!=s){for(;l>f;)if((o=r[f++])!=o)return!0}else for(;l>f;f++)if((u||f in r)&&r[f]===s)return u||f||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,R,O){var m=n("./_cof"),v=n("./_wks")("toStringTag"),i=m(function(){return arguments}())=="Arguments",u=function(s,e){try{return s[e]}catch(o){}};R.exports=function(d){var s,e,o;return d===void 0?"Undefined":d===null?"Null":typeof(e=u(s=Object(d),v))=="string"?e:i?m(s):(o=m(s))=="Object"&&typeof s.callee=="function"?"Arguments":o}},{"./_cof":64,"./_wks":131}],64:[function(n,R,O){var m={}.toString;R.exports=function(v){return m.call(v).slice(8,-1)}},{}],65:[function(n,R,O){var m=R.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(n,R,O){"use strict";var m=n("./_object-dp"),v=n("./_property-desc");R.exports=function(i,u,d){u in i?m.f(i,u,v(0,d)):i[u]=d}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,R,O){var m=n("./_a-function");R.exports=function(v,i,u){if(m(v),i===void 0)return v;switch(u){case 1:return function(d){return v.call(i,d)};case 2:return function(d,s){return v.call(i,d,s)};case 3:return function(d,s,e){return v.call(i,d,s,e)}}return function(){return v.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,R,O){R.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(n,R,O){R.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,R,O){var m=n("./_is-object"),v=n("./_global").document,i=m(v)&&m(v.createElement);R.exports=function(u){return i?v.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,R,O){R.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,R,O){var m=n("./_object-keys"),v=n("./_object-gops"),i=n("./_object-pie");R.exports=function(u){var d=m(u),s=v.f;if(s)for(var e,o=s(u),r=i.f,l=0;o.length>l;)r.call(u,e=o[l++])&&d.push(e);return d}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,R,O){var m=n("./_global"),v=n("./_core"),i=n("./_ctx"),u=n("./_hide"),d=n("./_has"),s=function e(o,r,l){var f,c,T,E=o&e.F,h=o&e.G,S=o&e.S,w=o&e.P,p=o&e.B,x=o&e.W,A=h?v:v[r]||(v[r]={}),D=A.prototype,b=h?m:S?m[r]:(m[r]||{}).prototype;h&&(l=r);for(f in l)(c=!E&&b&&b[f]!==void 0)&&d(A,f)||(T=c?b[f]:l[f],A[f]=h&&typeof b[f]!="function"?l[f]:p&&c?i(T,m):x&&b[f]==T?function(U){var y=function(k,z,G){if(this instanceof U){switch(arguments.length){case 0:return new U;case 1:return new U(k);case 2:return new U(k,z)}return new U(k,z,G)}return U.apply(this,arguments)};return y.prototype=U.prototype,y}(T):w&&typeof T=="function"?i(Function.call,T):T,w&&((A.virtual||(A.virtual={}))[f]=T,o&e.R&&D&&!D[f]&&u(D,f,T)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,R.exports=s},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,R,O){R.exports=function(m){try{return!!m()}catch(v){return!0}}},{}],75:[function(n,R,O){var m=n("./_ctx"),v=n("./_iter-call"),i=n("./_is-array-iter"),u=n("./_an-object"),d=n("./_to-length"),s=n("./core.get-iterator-method"),e={},o={},O=R.exports=function(r,l,f,c,T){var E,h,S,w,p=T?function(){return r}:s(r),x=m(f,c,l?2:1),A=0;if(typeof p!="function")throw TypeError(r+" is not iterable!");if(i(p)){for(E=d(r.length);E>A;A++)if((w=l?x(u(h=r[A])[0],h[1]):x(r[A]))===e||w===o)return w}else for(S=p.call(r);!(h=S.next()).done;)if((w=v(S,x,h.value,l))===e||w===o)return w};O.BREAK=e,O.RETURN=o},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,R,O){var m=R.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=m)},{}],77:[function(n,R,O){var m={}.hasOwnProperty;R.exports=function(v,i){return m.call(v,i)}},{}],78:[function(n,R,O){var m=n("./_object-dp"),v=n("./_property-desc");R.exports=n("./_descriptors")?function(i,u,d){return m.f(i,u,v(1,d))}:function(i,u,d){return i[u]=d,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,R,O){var m=n("./_global").document;R.exports=m&&m.documentElement},{"./_global":76}],80:[function(n,R,O){R.exports=!n("./_descriptors")&&!n("./_fails")(function(){return Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(n,R,O){R.exports=function(m,v,i){var u=i===void 0;switch(v.length){case 0:return u?m():m.call(i);case 1:return u?m(v[0]):m.call(i,v[0]);case 2:return u?m(v[0],v[1]):m.call(i,v[0],v[1]);case 3:return u?m(v[0],v[1],v[2]):m.call(i,v[0],v[1],v[2]);case 4:return u?m(v[0],v[1],v[2],v[3]):m.call(i,v[0],v[1],v[2],v[3])}return m.apply(i,v)}},{}],82:[function(n,R,O){var m=n("./_cof");R.exports=Object("z").propertyIsEnumerable(0)?Object:function(v){return m(v)=="String"?v.split(""):Object(v)}},{"./_cof":64}],83:[function(n,R,O){var m=n("./_iterators"),v=n("./_wks")("iterator"),i=Array.prototype;R.exports=function(u){return u!==void 0&&(m.Array===u||i[v]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(n,R,O){var m=n("./_cof");R.exports=Array.isArray||function(v){return m(v)=="Array"}},{"./_cof":64}],85:[function(n,R,O){R.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(n,R,O){var m=n("./_an-object");R.exports=function(v,i,u,d){try{return d?i(m(u)[0],u[1]):i(u)}catch(e){var s=v.return;throw s!==void 0&&m(s.call(v)),e}}},{"./_an-object":61}],87:[function(n,R,O){"use strict";var m=n("./_object-create"),v=n("./_property-desc"),i=n("./_set-to-string-tag"),u={};n("./_hide")(u,n("./_wks")("iterator"),function(){return this}),R.exports=function(d,s,e){d.prototype=m(u,{next:v(1,e)}),i(d,s+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,R,O){"use strict";var m=n("./_library"),v=n("./_export"),i=n("./_redefine"),u=n("./_hide"),d=n("./_iterators"),s=n("./_iter-create"),e=n("./_set-to-string-tag"),o=n("./_object-gpo"),r=n("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),f=function(){return this};R.exports=function(c,T,E,h,S,w,p){s(E,T,h);var x,A,D,b=function(ne){if(!l&&ne in k)return k[ne];switch(ne){case"keys":case"values":return function(){return new E(this,ne)}}return function(){return new E(this,ne)}},U=T+" Iterator",y=S=="values",L=!1,k=c.prototype,z=k[r]||k["@@iterator"]||S&&k[S],G=z||b(S),q=S?y?b("entries"):G:void 0,re=T=="Array"&&k.entries||z;if(re&&(D=o(re.call(new c)))!==Object.prototype&&D.next&&(e(D,U,!0),m||typeof D[r]=="function"||u(D,r,f)),y&&z&&z.name!=="values"&&(L=!0,G=function(){return z.call(this)}),m&&!p||!l&&!L&&k[r]||u(k,r,G),d[T]=G,d[U]=f,S)if(x={values:y?G:b("values"),keys:w?G:b("keys"),entries:q},p)for(A in x)A in k||i(k,A,x[A]);else v(v.P+v.F*(l||L),T,x);return x}},{"./_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(n,R,O){var m=n("./_wks")("iterator"),v=!1;try{var i=[7][m]();i.return=function(){v=!0},Array.from(i,function(){throw 2})}catch(u){}R.exports=function(u,d){if(!d&&!v)return!1;var s=!1;try{var e=[7],o=e[m]();o.next=function(){return{done:s=!0}},e[m]=function(){return o},u(e)}catch(r){}return s}},{"./_wks":131}],90:[function(n,R,O){R.exports=function(m,v){return{value:v,done:!!m}}},{}],91:[function(n,R,O){R.exports={}},{}],92:[function(n,R,O){R.exports=!0},{}],93:[function(n,R,O){var m=n("./_uid")("meta"),v=n("./_is-object"),i=n("./_has"),u=n("./_object-dp").f,d=0,s=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return s(Object.preventExtensions({}))}),o=function(E){u(E,m,{value:{i:"O"+ ++d,w:{}}})},r=function(E,h){if(!v(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!i(E,m)){if(!s(E))return"F";if(!h)return"E";o(E)}return E[m].i},l=function(E,h){if(!i(E,m)){if(!s(E))return!0;if(!h)return!1;o(E)}return E[m].w},f=function(E){return e&&c.NEED&&s(E)&&!i(E,m)&&o(E),E},c=R.exports={KEY:m,NEED:!1,fastKey:r,getWeak:l,onFreeze:f}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,R,O){var m=n("./_global"),v=n("./_task").set,i=m.MutationObserver||m.WebKitMutationObserver,u=m.process,d=m.Promise,s=n("./_cof")(u)=="process";R.exports=function(){var e,o,r,l=function(){var h,S;for(s&&(h=u.domain)&&h.exit();e;){S=e.fn,e=e.next;try{S()}catch(w){throw e?r():o=void 0,w}}o=void 0,h&&h.enter()};if(s)r=function(){u.nextTick(l)};else if(!i||m.navigator&&m.navigator.standalone)if(d&&d.resolve){var f=d.resolve(void 0);r=function(){f.then(l)}}else r=function(){v.call(m,l)};else{var c=!0,T=document.createTextNode("");new i(l).observe(T,{characterData:!0}),r=function(){T.data=c=!c}}return function(E){var h={fn:E,next:void 0};o&&(o.next=h),e||(e=h,r()),o=h}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,R,O){"use strict";function m(i){var u,d;this.promise=new i(function(s,e){if(u!==void 0||d!==void 0)throw TypeError("Bad Promise constructor");u=s,d=e}),this.resolve=v(u),this.reject=v(d)}var v=n("./_a-function");R.exports.f=function(i){return new m(i)}},{"./_a-function":58}],96:[function(n,R,O){"use strict";var m=n("./_object-keys"),v=n("./_object-gops"),i=n("./_object-pie"),u=n("./_to-object"),d=n("./_iobject"),s=Object.assign;R.exports=!s||n("./_fails")(function(){var e={},o={},r=Symbol(),l="abcdefghijklmnopqrst";return e[r]=7,l.split("").forEach(function(f){o[f]=f}),s({},e)[r]!=7||Object.keys(s({},o)).join("")!=l})?function(e,o){for(var r=u(e),l=arguments.length,f=1,c=v.f,T=i.f;l>f;)for(var E,h=d(arguments[f++]),S=c?m(h).concat(c(h)):m(h),w=S.length,p=0;w>p;)T.call(h,E=S[p++])&&(r[E]=h[E]);return r}:s},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,R,O){var m=n("./_an-object"),v=n("./_object-dps"),i=n("./_enum-bug-keys"),u=n("./_shared-key")("IE_PROTO"),d=function(){},s=function(){var o,r=n("./_dom-create")("iframe"),l=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",o=r.contentWindow.document,o.open(),o.write("<script>document.F=Object</script>"),o.close(),s=o.F;l--;)delete s.prototype[i[l]];return s()};R.exports=Object.create||function(e,o){var r;return e!==null?(d.prototype=m(e),r=new d,d.prototype=null,r[u]=e):r=s(),o===void 0?r:v(r,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,R,O){var m=n("./_an-object"),v=n("./_ie8-dom-define"),i=n("./_to-primitive"),u=Object.defineProperty;O.f=n("./_descriptors")?Object.defineProperty:function(d,s,e){if(m(d),s=i(s,!0),m(e),v)try{return u(d,s,e)}catch(o){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(d[s]=e.value),d}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,R,O){var m=n("./_object-dp"),v=n("./_an-object"),i=n("./_object-keys");R.exports=n("./_descriptors")?Object.defineProperties:function(u,d){v(u);for(var s,e=i(d),o=e.length,r=0;o>r;)m.f(u,s=e[r++],d[s]);return u}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,R,O){var m=n("./_object-pie"),v=n("./_property-desc"),i=n("./_to-iobject"),u=n("./_to-primitive"),d=n("./_has"),s=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;O.f=n("./_descriptors")?e:function(o,r){if(o=i(o),r=u(r,!0),s)try{return e(o,r)}catch(l){}if(d(o,r))return v(!m.f.call(o,r),o[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,R,O){var m=n("./_to-iobject"),v=n("./_object-gopn").f,i={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(e){try{return v(e)}catch(o){return u.slice()}};R.exports.f=function(s){return u&&i.call(s)=="[object Window]"?d(s):v(m(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,R,O){var m=n("./_object-keys-internal"),v=n("./_enum-bug-keys").concat("length","prototype");O.f=Object.getOwnPropertyNames||function(i){return m(i,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,R,O){O.f=Object.getOwnPropertySymbols},{}],104:[function(n,R,O){var m=n("./_has"),v=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),u=Object.prototype;R.exports=Object.getPrototypeOf||function(d){return d=v(d),m(d,i)?d[i]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?u:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,R,O){var m=n("./_has"),v=n("./_to-iobject"),i=n("./_array-includes")(!1),u=n("./_shared-key")("IE_PROTO");R.exports=function(d,s){var e,o=v(d),r=0,l=[];for(e in o)e!=u&&m(o,e)&&l.push(e);for(;s.length>r;)m(o,e=s[r++])&&(~i(l,e)||l.push(e));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,R,O){var m=n("./_object-keys-internal"),v=n("./_enum-bug-keys");R.exports=Object.keys||function(i){return m(i,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,R,O){O.f={}.propertyIsEnumerable},{}],108:[function(n,R,O){var m=n("./_export"),v=n("./_core"),i=n("./_fails");R.exports=function(u,d){var s=(v.Object||{})[u]||Object[u],e={};e[u]=d(s),m(m.S+m.F*i(function(){s(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,R,O){R.exports=function(m){try{return{e:!1,v:m()}}catch(v){return{e:!0,v}}}},{}],110:[function(n,R,O){var m=n("./_an-object"),v=n("./_is-object"),i=n("./_new-promise-capability");R.exports=function(u,d){if(m(u),v(d)&&d.constructor===u)return d;var s=i.f(u);return(0,s.resolve)(d),s.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,R,O){R.exports=function(m,v){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:v}}},{}],112:[function(n,R,O){var m=n("./_hide");R.exports=function(v,i,u){for(var d in i)u&&v[d]?v[d]=i[d]:m(v,d,i[d]);return v}},{"./_hide":78}],113:[function(n,R,O){R.exports=n("./_hide")},{"./_hide":78}],114:[function(n,R,O){"use strict";var m=n("./_global"),v=n("./_core"),i=n("./_object-dp"),u=n("./_descriptors"),d=n("./_wks")("species");R.exports=function(s){var e=typeof v[s]=="function"?v[s]:m[s];u&&e&&!e[d]&&i.f(e,d,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,R,O){var m=n("./_object-dp").f,v=n("./_has"),i=n("./_wks")("toStringTag");R.exports=function(u,d,s){u&&!v(u=s?u:u.prototype,i)&&m(u,i,{configurable:!0,value:d})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,R,O){var m=n("./_shared")("keys"),v=n("./_uid");R.exports=function(i){return m[i]||(m[i]=v(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,R,O){var m=n("./_core"),v=n("./_global"),i=v["__core-js_shared__"]||(v["__core-js_shared__"]={});(R.exports=function(u,d){return i[u]||(i[u]=d!==void 0?d:{})})("versions",[]).push({version:m.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,R,O){var m=n("./_an-object"),v=n("./_a-function"),i=n("./_wks")("species");R.exports=function(u,d){var s,e=m(u).constructor;return e===void 0||(s=m(e)[i])==null?d:v(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,R,O){var m=n("./_to-integer"),v=n("./_defined");R.exports=function(i){return function(u,d){var s,e,o=String(v(u)),r=m(d),l=o.length;return r<0||r>=l?i?"":void 0:(s=o.charCodeAt(r),s<55296||s>56319||r+1===l||(e=o.charCodeAt(r+1))<56320||e>57343?i?o.charAt(r):s:i?o.slice(r,r+2):e-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,R,O){var m,v,i,u=n("./_ctx"),d=n("./_invoke"),s=n("./_html"),e=n("./_dom-create"),o=n("./_global"),r=o.process,l=o.setImmediate,f=o.clearImmediate,c=o.MessageChannel,T=o.Dispatch,E=0,h={},S=function(){var x=+this;if(h.hasOwnProperty(x)){var A=h[x];delete h[x],A()}},w=function(x){S.call(x.data)};l&&f||(l=function(x){for(var A=[],D=1;arguments.length>D;)A.push(arguments[D++]);return h[++E]=function(){d(typeof x=="function"?x:Function(x),A)},m(E),E},f=function(x){delete h[x]},n("./_cof")(r)=="process"?m=function(x){r.nextTick(u(S,x,1))}:T&&T.now?m=function(x){T.now(u(S,x,1))}:c?(v=new c,i=v.port2,v.port1.onmessage=w,m=u(i.postMessage,i,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(m=function(x){o.postMessage(x+"","*")},o.addEventListener("message",w,!1)):m="onreadystatechange"in e("script")?function(p){s.appendChild(e("script")).onreadystatechange=function(){s.removeChild(this),S.call(p)}}:function(p){setTimeout(u(S,p,1),0)}),R.exports={set:l,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,R,O){var m=n("./_to-integer"),v=Math.max,i=Math.min;R.exports=function(u,d){return u=m(u),u<0?v(u+d,0):i(u,d)}},{"./_to-integer":122}],122:[function(n,R,O){var m=Math.ceil,v=Math.floor;R.exports=function(i){return isNaN(i=+i)?0:(i>0?v:m)(i)}},{}],123:[function(n,R,O){var m=n("./_iobject"),v=n("./_defined");R.exports=function(i){return m(v(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,R,O){var m=n("./_to-integer"),v=Math.min;R.exports=function(i){return i>0?v(m(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,R,O){var m=n("./_defined");R.exports=function(v){return Object(m(v))}},{"./_defined":68}],126:[function(n,R,O){var m=n("./_is-object");R.exports=function(v,i){if(!m(v))return v;var u,d;if(i&&typeof(u=v.toString)=="function"&&!m(d=u.call(v)))return d;if(typeof(u=v.valueOf)=="function"&&!m(d=u.call(v)))return d;if(!i&&typeof(u=v.toString)=="function"&&!m(d=u.call(v)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,R,O){var m=0,v=Math.random();R.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++m+v).toString(36))}},{}],128:[function(n,R,O){var m=n("./_global"),v=m.navigator;R.exports=v&&v.userAgent||""},{"./_global":76}],129:[function(n,R,O){var m=n("./_global"),v=n("./_core"),i=n("./_library"),u=n("./_wks-ext"),d=n("./_object-dp").f;R.exports=function(s){var e=v.Symbol||(v.Symbol=i?{}:m.Symbol||{});s.charAt(0)=="_"||s in e||d(e,s,{value:u.f(s)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,R,O){O.f=n("./_wks")},{"./_wks":131}],131:[function(n,R,O){var m=n("./_shared")("wks"),v=n("./_uid"),i=n("./_global").Symbol,u=typeof i=="function";(R.exports=function(d){return m[d]||(m[d]=u&&i[d]||(u?i:v)("Symbol."+d))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,R,O){var m=n("./_classof"),v=n("./_wks")("iterator"),i=n("./_iterators");R.exports=n("./_core").getIteratorMethod=function(u){if(u!=null)return u[v]||u["@@iterator"]||i[m(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,R,O){"use strict";var m=n("./_ctx"),v=n("./_export"),i=n("./_to-object"),u=n("./_iter-call"),d=n("./_is-array-iter"),s=n("./_to-length"),e=n("./_create-property"),o=n("./core.get-iterator-method");v(v.S+v.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(l){var f,c,T,E,h=i(l),S=typeof this=="function"?this:Array,w=arguments.length,p=w>1?arguments[1]:void 0,x=p!==void 0,A=0,D=o(h);if(x&&(p=m(p,w>2?arguments[2]:void 0,2)),D==null||S==Array&&d(D))for(f=s(h.length),c=new S(f);f>A;A++)e(c,A,x?p(h[A],A):h[A]);else for(E=D.call(h),c=new S;!(T=E.next()).done;A++)e(c,A,x?u(E,p,[T.value,A],!0):T.value);return c.length=A,c}})},{"./_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(n,R,O){"use strict";var m=n("./_add-to-unscopables"),v=n("./_iter-step"),i=n("./_iterators"),u=n("./_to-iobject");R.exports=n("./_iter-define")(Array,"Array",function(d,s){this._t=u(d),this._i=0,this._k=s},function(){var d=this._t,s=this._k,e=this._i++;return!d||e>=d.length?(this._t=void 0,v(1)):s=="keys"?v(0,e):s=="values"?v(0,d[e]):v(0,[e,d[e]])},"values"),i.Arguments=i.Array,m("keys"),m("values"),m("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,R,O){"use strict";var m=n("./_is-object"),v=n("./_object-gpo"),i=n("./_wks")("hasInstance"),u=Function.prototype;i in u||n("./_object-dp").f(u,i,{value:function(s){if(typeof this!="function"||!m(s))return!1;if(!m(this.prototype))return s instanceof this;for(;s=v(s);)if(this.prototype===s)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,R,O){var m=n("./_export");m(m.S+m.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,R,O){var m=n("./_export");m(m.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,R,O){var m=n("./_export");m(m.S+m.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,R,O){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,R,O){var m=n("./_to-object"),v=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return v(m(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,R,O){var m=n("./_to-object"),v=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return v(m(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,R,O){arguments[4][36][0].apply(O,arguments)},{dup:36}],143:[function(n,R,O){"use strict";var m,v,i,u,d=n("./_library"),s=n("./_global"),e=n("./_ctx"),o=n("./_classof"),r=n("./_export"),l=n("./_is-object"),f=n("./_a-function"),c=n("./_an-instance"),T=n("./_for-of"),E=n("./_species-constructor"),h=n("./_task").set,S=n("./_microtask")(),w=n("./_new-promise-capability"),p=n("./_perform"),x=n("./_user-agent"),A=n("./_promise-resolve"),D=s.TypeError,b=s.process,U=b&&b.versions,y=U&&U.v8||"",L=s.Promise,k=o(b)=="process",z=function(){},G=v=w.f,q=!!function(){try{var B=L.resolve(1),M=(B.constructor={})[n("./_wks")("species")]=function(V){V(z,z)};return(k||typeof PromiseRejectionEvent=="function")&&B.then(z)instanceof M&&y.indexOf("6.6")!==0&&x.indexOf("Chrome/66")===-1}catch(V){}}(),re=function(M){var V;return!(!l(M)||typeof(V=M.then)!="function")&&V},X=function(M,V){if(!M._n){M._n=!0;var Y=M._c;S(function(){for(var ae=M._v,Q=M._s==1,le=0;Y.length>le;)!function(he){var Z,$,oe,W=Q?he.ok:he.fail,N=he.resolve,ie=he.reject,ee=he.domain;try{W?(Q||(M._h==2&&H(M),M._h=1),W===!0?Z=ae:(ee&&ee.enter(),Z=W(ae),ee&&(ee.exit(),oe=!0)),Z===he.promise?ie(D("Promise-chain cycle")):($=re(Z))?$.call(Z,N,ie):N(Z)):ie(ae)}catch(de){ee&&!oe&&ee.exit(),ie(de)}}(Y[le++]);M._c=[],M._n=!1,V&&!M._h&&ne(M)})}},ne=function(M){h.call(s,function(){var V,Y,ae,Q=M._v,le=J(M);if(le&&(V=p(function(){k?b.emit("unhandledRejection",Q,M):(Y=s.onunhandledrejection)?Y({promise:M,reason:Q}):(ae=s.console)&&ae.error&&ae.error("Unhandled promise rejection",Q)}),M._h=k||J(M)?2:1),M._a=void 0,le&&V.e)throw V.v})},J=function(M){return M._h!==1&&(M._a||M._c).length===0},H=function(M){h.call(s,function(){var V;k?b.emit("rejectionHandled",M):(V=s.onrejectionhandled)&&V({promise:M,reason:M._v})})},I=function(M){var V=this;V._d||(V._d=!0,V=V._w||V,V._v=M,V._s=2,V._a||(V._a=V._c.slice()),X(V,!0))},j=function B(M){var V,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===M)throw D("Promise can't be resolved itself");(V=re(M))?S(function(){var ae={_w:Y,_d:!1};try{V.call(M,e(B,ae,1),e(I,ae,1))}catch(Q){I.call(ae,Q)}}):(Y._v=M,Y._s=1,X(Y,!1))}catch(ae){I.call({_w:Y,_d:!1},ae)}}};q||(L=function(M){c(this,L,"Promise","_h"),f(M),m.call(this);try{M(e(j,this,1),e(I,this,1))}catch(V){I.call(this,V)}},m=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=n("./_redefine-all")(L.prototype,{then:function(M,V){var Y=G(E(this,L));return Y.ok=typeof M!="function"||M,Y.fail=typeof V=="function"&&V,Y.domain=k?b.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&X(this,!1),Y.promise},catch:function(M){return this.then(void 0,M)}}),i=function(){var M=new m;this.promise=M,this.resolve=e(j,M,1),this.reject=e(I,M,1)},w.f=G=function(M){return M===L||M===u?new i(M):v(M)}),r(r.G+r.W+r.F*!q,{Promise:L}),n("./_set-to-string-tag")(L,"Promise"),n("./_set-species")("Promise"),u=n("./_core").Promise,r(r.S+r.F*!q,"Promise",{reject:function(M){var V=G(this);return(0,V.reject)(M),V.promise}}),r(r.S+r.F*(d||!q),"Promise",{resolve:function(M){return A(d&&this===u?L:this,M)}}),r(r.S+r.F*!(q&&n("./_iter-detect")(function(B){L.all(B).catch(z)})),"Promise",{all:function(M){var V=this,Y=G(V),ae=Y.resolve,Q=Y.reject,le=p(function(){var he=[],Z=0,$=1;T(M,!1,function(oe){var W=Z++,N=!1;he.push(void 0),$++,V.resolve(oe).then(function(ie){N||(N=!0,he[W]=ie,--$||ae(he))},Q)}),--$||ae(he)});return le.e&&Q(le.v),Y.promise},race:function(M){var V=this,Y=G(V),ae=Y.reject,Q=p(function(){T(M,!1,function(le){V.resolve(le).then(Y.resolve,ae)})});return Q.e&&ae(Q.v),Y.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(n,R,O){var m=n("./_export"),v=n("./_to-absolute-index"),i=String.fromCharCode,u=String.fromCodePoint;m(m.S+m.F*(!!u&&u.length!=1),"String",{fromCodePoint:function(s){for(var e,o=[],r=arguments.length,l=0;r>l;){if(e=+arguments[l++],v(e,1114111)!==e)throw RangeError(e+" is not a valid code point");o.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return o.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,R,O){"use strict";var m=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(v){this._t=String(v),this._i=0},function(){var v,i=this._t,u=this._i;return u>=i.length?{value:void 0,done:!0}:(v=m(i,u),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,R,O){"use strict";var m=n("./_global"),v=n("./_has"),i=n("./_descriptors"),u=n("./_export"),d=n("./_redefine"),s=n("./_meta").KEY,e=n("./_fails"),o=n("./_shared"),r=n("./_set-to-string-tag"),l=n("./_uid"),f=n("./_wks"),c=n("./_wks-ext"),T=n("./_wks-define"),E=n("./_enum-keys"),h=n("./_is-array"),S=n("./_an-object"),w=n("./_is-object"),p=n("./_to-iobject"),x=n("./_to-primitive"),A=n("./_property-desc"),D=n("./_object-create"),b=n("./_object-gopn-ext"),U=n("./_object-gopd"),y=n("./_object-dp"),L=n("./_object-keys"),k=U.f,z=y.f,G=b.f,q=m.Symbol,re=m.JSON,X=re&&re.stringify,ne=f("_hidden"),J=f("toPrimitive"),H={}.propertyIsEnumerable,I=o("symbol-registry"),j=o("symbols"),B=o("op-symbols"),M=Object.prototype,V=typeof q=="function",Y=m.QObject,ae=!Y||!Y.prototype||!Y.prototype.findChild,Q=i&&e(function(){return D(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(C,_,g){var F=k(M,_);F&&delete M[_],z(C,_,g),F&&C!==M&&z(M,_,F)}:z,le=function(_){var g=j[_]=D(q.prototype);return g._k=_,g},he=V&&typeof q.iterator=="symbol"?function(C){return typeof C=="symbol"}:function(C){return C instanceof q},Z=function C(_,g,F){return _===M&&C(B,g,F),S(_),g=x(g,!0),S(F),v(j,g)?(F.enumerable?(v(_,ne)&&_[ne][g]&&(_[ne][g]=!1),F=D(F,{enumerable:A(0,!1)})):(v(_,ne)||z(_,ne,A(1,{})),_[ne][g]=!0),Q(_,g,F)):z(_,g,F)},$=function(_,g){S(_);for(var F,K=E(g=p(g)),pe=0,se=K.length;se>pe;)Z(_,F=K[pe++],g[F]);return _},oe=function(_,g){return g===void 0?D(_):$(D(_),g)},W=function(_){var g=H.call(this,_=x(_,!0));return!(this===M&&v(j,_)&&!v(B,_))&&(!(g||!v(this,_)||!v(j,_)||v(this,ne)&&this[ne][_])||g)},N=function(_,g){if(_=p(_),g=x(g,!0),_!==M||!v(j,g)||v(B,g)){var F=k(_,g);return!F||!v(j,g)||v(_,ne)&&_[ne][g]||(F.enumerable=!0),F}},ie=function(_){for(var g,F=G(p(_)),K=[],pe=0;F.length>pe;)v(j,g=F[pe++])||g==ne||g==s||K.push(g);return K},ee=function(_){for(var g,F=_===M,K=G(F?B:p(_)),pe=[],se=0;K.length>se;)!v(j,g=K[se++])||F&&!v(M,g)||pe.push(j[g]);return pe};V||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var _=l(arguments.length>0?arguments[0]:void 0),g=function F(K){this===M&&F.call(B,K),v(this,ne)&&v(this[ne],_)&&(this[ne][_]=!1),Q(this,_,A(1,K))};return i&&ae&&Q(M,_,{configurable:!0,set:g}),le(_)},d(q.prototype,"toString",function(){return this._k}),U.f=N,y.f=Z,n("./_object-gopn").f=b.f=ie,n("./_object-pie").f=W,n("./_object-gops").f=ee,i&&!n("./_library")&&d(M,"propertyIsEnumerable",W,!0),c.f=function(C){return le(f(C))}),u(u.G+u.W+u.F*!V,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),P=0;de.length>P;)f(de[P++]);for(var t=L(f.store),a=0;t.length>a;)T(t[a++]);u(u.S+u.F*!V,"Symbol",{for:function(_){return v(I,_+="")?I[_]:I[_]=q(_)},keyFor:function(_){if(!he(_))throw TypeError(_+" is not a symbol!");for(var g in I)if(I[g]===_)return g},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),u(u.S+u.F*!V,"Object",{create:oe,defineProperty:Z,defineProperties:$,getOwnPropertyDescriptor:N,getOwnPropertyNames:ie,getOwnPropertySymbols:ee}),re&&u(u.S+u.F*(!V||e(function(){var C=q();return X([C])!="[null]"||X({a:C})!="{}"||X(Object(C))!="{}"})),"JSON",{stringify:function(_){for(var g,F,K=[_],pe=1;arguments.length>pe;)K.push(arguments[pe++]);if(F=g=K[1],(w(g)||_!==void 0)&&!he(_))return h(g)||(g=function(ue,ge){if(typeof F=="function"&&(ge=F.call(this,ue,ge)),!he(ge))return ge}),K[1]=g,X.apply(re,K)}}),q.prototype[J]||n("./_hide")(q.prototype,J,q.prototype.valueOf),r(q,"Symbol"),r(Math,"Math",!0),r(m.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(n,R,O){"use strict";var m=n("./_export"),v=n("./_core"),i=n("./_global"),u=n("./_species-constructor"),d=n("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(e){var o=u(this,v.Promise||i.Promise),r=typeof e=="function";return this.then(r?function(l){return d(o,e()).then(function(){return l})}:e,r?function(l){return d(o,e()).then(function(){throw l})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,R,O){"use strict";var m=n("./_export"),v=n("./_new-promise-capability"),i=n("./_perform");m(m.S,"Promise",{try:function(d){var s=v.f(this),e=i(d);return(e.e?s.reject:s.resolve)(e.v),s.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,R,O){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,R,O){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,R,O){n("./es6.array.iterator");for(var m=n("./_global"),v=n("./_hide"),i=n("./_iterators"),u=n("./_wks")("toStringTag"),d="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(","),s=0;s<d.length;s++){var e=d[s],o=m[e],r=o&&o.prototype;r&&!r[u]&&v(r,u,e),i[e]=i.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,R,O){var m=n("./_export"),v=n("./_task");m(m.G+m.B,{setImmediate:v.set,clearImmediate:v.clear})},{"./_export":73,"./_task":120}],153:[function(n,R,O){(function(m){"use strict";function v(x){return Array.isArray?Array.isArray(x):S(x)==="[object Array]"}function i(x){return typeof x=="boolean"}function u(x){return x===null}function d(x){return x==null}function s(x){return typeof x=="number"}function e(x){return typeof x=="string"}function o(x){return(x===void 0?"undefined":(0,p.default)(x))==="symbol"}function r(x){return x===void 0}function l(x){return S(x)==="[object RegExp]"}function f(x){return(x===void 0?"undefined":(0,p.default)(x))==="object"&&x!==null}function c(x){return S(x)==="[object Date]"}function T(x){return S(x)==="[object Error]"||x instanceof Error}function E(x){return typeof x=="function"}function h(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||(x===void 0?"undefined":(0,p.default)(x))==="symbol"||x===void 0}function S(x){return Object.prototype.toString.call(x)}var w=n("babel-runtime/helpers/typeof"),p=function(x){return x&&x.__esModule?x:{default:x}}(w);O.isArray=v,O.isBoolean=i,O.isNull=u,O.isNullOrUndefined=d,O.isNumber=s,O.isString=e,O.isSymbol=o,O.isUndefined=r,O.isRegExp=l,O.isObject=f,O.isDate=c,O.isError=T,O.isFunction=E,O.isPrimitive=h,O.isBuffer=m.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,R,O){"use strict";var m=n("babel-runtime/helpers/typeof"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);!function(i){function u(r,l){for(r=String(r),l=l||2;r.length<l;)r="0"+r;return r}function d(r){var l=new Date(r.getFullYear(),r.getMonth(),r.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var f=new Date(l.getFullYear(),0,4);f.setDate(f.getDate()-(f.getDay()+6)%7+3);var c=l.getTimezoneOffset()-f.getTimezoneOffset();l.setHours(l.getHours()-c);var T=(l-f)/6048e5;return 1+Math.floor(T)}function s(r){var l=r.getDay();return l===0&&(l=7),l}function e(r){return r===null?"null":r===void 0?"undefined":(r===void 0?"undefined":(0,v.default)(r))!=="object"?r===void 0?"undefined":(0,v.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}var o=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g;return function(c,T,E,h){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(T=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");T=String(o.masks[T]||T||o.masks.default);var S=T.slice(0,4);S!=="UTC:"&&S!=="GMT:"||(T=T.slice(4),E=!0,S==="GMT:"&&(h=!0));var w=E?"getUTC":"get",p=c[w+"Date"](),x=c[w+"Day"](),A=c[w+"Month"](),D=c[w+"FullYear"](),b=c[w+"Hours"](),U=c[w+"Minutes"](),y=c[w+"Seconds"](),L=c[w+"Milliseconds"](),k=E?0:c.getTimezoneOffset(),z=d(c),G=s(c),q={d:p,dd:u(p),ddd:o.i18n.dayNames[x],dddd:o.i18n.dayNames[x+7],m:A+1,mm:u(A+1),mmm:o.i18n.monthNames[A],mmmm:o.i18n.monthNames[A+12],yy:String(D).slice(2),yyyy:D,h:b%12||12,hh:u(b%12||12),H:b,HH:u(b),M:U,MM:u(U),s:y,ss:u(y),l:u(L,3),L:u(Math.round(L/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:h?"GMT":E?"UTC":(String(c).match(l)||[""]).pop().replace(f,""),o:(k>0?"-":"+")+u(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][p%10>3?0:(p%100-p%10!=10)*p%10],W:z,N:G};return T.replace(r,function(re){return re in q?q[re]:re.slice(1,re.length-1)})}}();o.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"},o.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"]},typeof ve=="function"&&ve.amd?ve(function(){return o}):(O===void 0?"undefined":(0,v.default)(O))==="object"?R.exports=o:i.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,R,O){(function(m){function v(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+O.humanize(this.diff),o){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var l=0,f=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(l++,c==="%c"&&(f=l))}),e.splice(f,0,r)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(e){try{e==null?O.storage.removeItem("debug"):O.storage.debug=e}catch(o){}}function s(){var e;try{e=O.storage.debug}catch(o){}return!e&&m!==void 0&&"env"in m&&(e=m.env.DEBUG),e}O=R.exports=n("./debug"),O.log=u,O.formatArgs=i,O.save=d,O.load=s,O.useColors=v,O.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),O.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],O.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},O.enable(s())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,R,O){function m(o){var r,l=0;for(r in o)l=(l<<5)-l+o.charCodeAt(r),l|=0;return O.colors[Math.abs(l)%O.colors.length]}function v(o){function r(){if(r.enabled){var l=r,f=+new Date,c=f-(e||f);l.diff=c,l.prev=e,l.curr=f,e=f;for(var T=new Array(arguments.length),E=0;E<T.length;E++)T[E]=arguments[E];T[0]=O.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");var h=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,function(S,w){if(S==="%%")return S;h++;var p=O.formatters[w];if(typeof p=="function"){var x=T[h];S=p.call(l,x),T.splice(h,1),h--}return S}),O.formatArgs.call(l,T),(r.log||O.log||console.log.bind(console)).apply(l,T)}}return r.namespace=o,r.enabled=O.enabled(o),r.useColors=O.useColors(),r.color=m(o),typeof O.init=="function"&&O.init(r),r}function i(o){O.save(o),O.names=[],O.skips=[];for(var r=(typeof o=="string"?o:"").split(/[\s,]+/),l=r.length,f=0;f<l;f++)r[f]&&(o=r[f].replace(/\*/g,".*?"),o[0]==="-"?O.skips.push(new RegExp("^"+o.substr(1)+"$")):O.names.push(new RegExp("^"+o+"$")))}function u(){O.enable("")}function d(o){var r,l;for(r=0,l=O.skips.length;r<l;r++)if(O.skips[r].test(o))return!1;for(r=0,l=O.names.length;r<l;r++)if(O.names[r].test(o))return!0;return!1}function s(o){return o instanceof Error?o.stack||o.message:o}O=R.exports=v.debug=v.default=v,O.coerce=s,O.disable=u,O.enable=i,O.enabled=d,O.humanize=n("ms"),O.names=[],O.skips=[],O.formatters={};var e},{ms:169}],157:[function(n,R,O){"use strict";function m(i){var u=""+i,d=v.exec(u);if(!d)return u;var s,e="",o=0,r=0;for(o=d.index;o<u.length;o++){switch(u.charCodeAt(o)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}r!==o&&(e+=u.substring(r,o)),r=o+1,e+=s}return r!==o?e+u.substring(r,o):e}var v=/["'&<>]/;R.exports=m},{}],158:[function(n,R,O){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function v(s){return typeof s=="function"}function i(s){return typeof s=="number"}function u(s){return typeof s=="object"&&s!==null}function d(s){return s===void 0}R.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(s){if(!i(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},m.prototype.emit=function(s){var e,o,r,l,f,c;if(this._events||(this._events={}),s==="error"&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var T=new Error('Uncaught, unspecified "error" event. ('+e+")");throw T.context=e,T}if(o=this._events[s],d(o))return!1;if(v(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),o.apply(this,l)}else if(u(o))for(l=Array.prototype.slice.call(arguments,1),c=o.slice(),r=c.length,f=0;f<r;f++)c[f].apply(this,l);return!0},m.prototype.addListener=function(s,e){var o;if(!v(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,v(e.listener)?e.listener:e),this._events[s]?u(this._events[s])?this._events[s].push(e):this._events[s]=[this._events[s],e]:this._events[s]=e,u(this._events[s])&&!this._events[s].warned&&(o=d(this._maxListeners)?m.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[s].length>o&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},m.prototype.on=m.prototype.addListener,m.prototype.once=function(s,e){function o(){this.removeListener(s,o),r||(r=!0,e.apply(this,arguments))}if(!v(e))throw TypeError("listener must be a function");var r=!1;return o.listener=e,this.on(s,o),this},m.prototype.removeListener=function(s,e){var o,r,l,f;if(!v(e))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(o=this._events[s],l=o.length,r=-1,o===e||v(o.listener)&&o.listener===e)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,e);else if(u(o)){for(f=l;f-- >0;)if(o[f]===e||o[f].listener&&o[f].listener===e){r=f;break}if(r<0)return this;o.length===1?(o.length=0,delete this._events[s]):o.splice(r,1),this._events.removeListener&&this.emit("removeListener",s,e)}return this},m.prototype.removeAllListeners=function(s){var e,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[s],v(o))this.removeListener(s,o);else if(o)for(;o.length;)this.removeListener(s,o[o.length-1]);return delete this._events[s],this},m.prototype.listeners=function(s){return this._events&&this._events[s]?v(this._events[s])?[this._events[s]]:this._events[s].slice():[]},m.prototype.listenerCount=function(s){if(this._events){var e=this._events[s];if(v(e))return 1;if(e)return e.length}return 0},m.listenerCount=function(s,e){return s.listenerCount(e)}},{}],159:[function(n,R,O){var m=n("http"),v=R.exports;for(var i in m)m.hasOwnProperty(i)&&(v[i]=m[i]);v.request=function(u,d){return u||(u={}),u.scheme="https",u.protocol="https:",m.request.call(this,u,d)}},{http:196}],160:[function(n,R,O){"use strict";var m=n("util"),v=n("ms");R.exports=function(i){if(typeof i=="number")return i;var u=v(i);if(u===void 0){var d=new Error(m.format("humanize-ms(%j) result undefined",i));console.warn(d.stack)}return u}},{ms:169,util:207}],161:[function(n,R,O){O.read=function(m,v,i,u,d){var s,e,o=8*d-u-1,r=(1<<o)-1,l=r>>1,f=-7,c=i?d-1:0,T=i?-1:1,E=m[v+c];for(c+=T,s=E&(1<<-f)-1,E>>=-f,f+=o;f>0;s=256*s+m[v+c],c+=T,f-=8);for(e=s&(1<<-f)-1,s>>=-f,f+=u;f>0;e=256*e+m[v+c],c+=T,f-=8);if(s===0)s=1-l;else{if(s===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,u),s-=l}return(E?-1:1)*e*Math.pow(2,s-u)},O.write=function(m,v,i,u,d,s){var e,o,r,l=8*s-d-1,f=(1<<l)-1,c=f>>1,T=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:s-1,h=u?1:-1,S=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(o=isNaN(v)?1:0,e=f):(e=Math.floor(Math.log(v)/Math.LN2),v*(r=Math.pow(2,-e))<1&&(e--,r*=2),v+=e+c>=1?T/r:T*Math.pow(2,1-c),v*r>=2&&(e++,r/=2),e+c>=f?(o=0,e=f):e+c>=1?(o=(v*r-1)*Math.pow(2,d),e+=c):(o=v*Math.pow(2,c-1)*Math.pow(2,d),e=0));d>=8;m[i+E]=255&o,E+=h,o/=256,d-=8);for(e=e<<d|o,l+=d;l>0;m[i+E]=255&e,E+=h,e/=256,l-=8);m[i+E-h]|=128*S}},{}],162:[function(n,R,O){typeof Object.create=="function"?R.exports=function(m,v){m.super_=v,m.prototype=Object.create(v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:R.exports=function(m,v){m.super_=v;var i=function(){};i.prototype=v.prototype,m.prototype=new i,m.prototype.constructor=m}},{}],163:[function(n,R,O){function m(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function v(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&m(i.slice(0,0))}R.exports=function(i){return i!=null&&(m(i)||v(i)||!!i._isBuffer)}},{}],164:[function(n,R,O){!function(m){function v(d){return u.call(d).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(d){return typeof d=="function"&&(/^class(\s|\{\}$)/.test(u.call(d))||/^.*classCallCheck\(/.test(v(d)))}var u=Function.prototype.toString;O!==void 0?(R!==void 0&&R.exports&&(O=R.exports=i),O.isClass=i):typeof ve=="function"&&ve.amd?ve([],function(){return i}):m.isClass=i}(this)},{}],165:[function(n,R,O){"use strict";function m(s){var e=s.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var v=n("core-util-is"),i=n("isstream"),u=n("is-class");Object.keys(v).map(function(s){O[m(s)]=v[s]}),O.stream=i,O.readableStream=i.isReadable,O.writableStream=i.isWritable,O.duplexStream=i.isDuplex,O.class=u,O.finite=function(s){return Number.isFinite(s)},O.NaN=function(s){return Number.isNaN(s)},O.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},O.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},O.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},O.promise=function(s){return s&&typeof s.then=="function"};var d=Math.pow(2,31);O.int=function(s){return v.isNumber(s)&&s%1==0},O.int32=function(s){return O.int(s)&&s<d&&s>=-d},O.long=function(s){return O.int(s)&&(s>=d||s<-d)},O.Long=function(s){return O.object(s)&&O.number(s.high)&&O.number(s.low)},O.double=function(s){return v.isNumber(s)&&!isNaN(s)&&s%1!=0},O.date=function(s){return s instanceof Date},O.regExp=function(s){return s instanceof RegExp},O.regexp=O.regExp,O.error=function(s){return s instanceof Error},O.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,R,O){var m={}.toString;R.exports=Array.isArray||function(v){return m.call(v)=="[object Array]"}},{}],167:[function(n,R,O){function m(s){return s instanceof d.Stream}function v(s){return m(s)&&typeof s._read=="function"&&typeof s._readableState=="object"}function i(s){return m(s)&&typeof s._write=="function"&&typeof s._writableState=="object"}function u(s){return v(s)&&i(s)}var d=n("stream");R.exports=m,R.exports.isReadable=v,R.exports.isWritable=i,R.exports.isDuplex=u},{stream:195}],168:[function(n,R,O){"use strict";function m(i,u,d){if(!i)throw new TypeError("argument dest is required");if(!u)throw new TypeError("argument src is required");return d===void 0&&(d=!0),Object.getOwnPropertyNames(u).forEach(function(s){if(d||!v.call(i,s)){var e=Object.getOwnPropertyDescriptor(u,s);Object.defineProperty(i,s,e)}}),i}R.exports=m;var v=Object.prototype.hasOwnProperty},{}],169:[function(n,R,O){function m(l){if(l=String(l),!(l.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(f){var c=parseFloat(f[1]);switch((f[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function v(l){return l>=o?Math.round(l/o)+"d":l>=e?Math.round(l/e)+"h":l>=s?Math.round(l/s)+"m":l>=d?Math.round(l/d)+"s":l+"ms"}function i(l){return u(l,o,"day")||u(l,e,"hour")||u(l,s,"minute")||u(l,d,"second")||l+" ms"}function u(l,f,c){if(!(l<f))return l<1.5*f?Math.floor(l/f)+" "+c:Math.ceil(l/f)+" "+c+"s"}var d=1e3,s=60*d,e=60*s,o=24*e,r=365.25*o;R.exports=function(l,f){f=f||{};var c=typeof l;if(c==="string"&&l.length>0)return m(l);if(c==="number"&&isNaN(l)===!1)return f.long?i(l):v(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(n,R,O){(function(m){function v(s,e){for(var o=0,r=s.length-1;r>=0;r--){var l=s[r];l==="."?s.splice(r,1):l===".."?(s.splice(r,1),o++):o&&(s.splice(r,1),o--)}if(e)for(;o--;o)s.unshift("..");return s}function i(s){typeof s!="string"&&(s+="");var e,o=0,r=-1,l=!0;for(e=s.length-1;e>=0;--e)if(s.charCodeAt(e)===47){if(!l){o=e+1;break}}else r===-1&&(l=!1,r=e+1);return r===-1?"":s.slice(o,r)}function u(s,e){if(s.filter)return s.filter(e);for(var o=[],r=0;r<s.length;r++)e(s[r],r,s)&&o.push(s[r]);return o}O.resolve=function(){for(var s="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var r=o>=0?arguments[o]:m.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(s=r+"/"+s,e=r.charAt(0)==="/")}return s=v(u(s.split("/"),function(l){return!!l}),!e).join("/"),(e?"/":"")+s||"."},O.normalize=function(s){var e=O.isAbsolute(s),o=d(s,-1)==="/";return s=v(u(s.split("/"),function(r){return!!r}),!e).join("/"),s||e||(s="."),s&&o&&(s+="/"),(e?"/":"")+s},O.isAbsolute=function(s){return s.charAt(0)==="/"},O.join=function(){var s=Array.prototype.slice.call(arguments,0);return O.normalize(u(s,function(e,o){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},O.relative=function(s,e){function o(h){for(var S=0;S<h.length&&h[S]==="";S++);for(var w=h.length-1;w>=0&&h[w]==="";w--);return S>w?[]:h.slice(S,w-S+1)}s=O.resolve(s).substr(1),e=O.resolve(e).substr(1);for(var r=o(s.split("/")),l=o(e.split("/")),f=Math.min(r.length,l.length),c=f,T=0;T<f;T++)if(r[T]!==l[T]){c=T;break}for(var E=[],T=c;T<r.length;T++)E.push("..");return E=E.concat(l.slice(c)),E.join("/")},O.sep="/",O.delimiter=":",O.dirname=function(s){if(typeof s!="string"&&(s+=""),s.length===0)return".";for(var e=s.charCodeAt(0),o=e===47,r=-1,l=!0,f=s.length-1;f>=1;--f)if((e=s.charCodeAt(f))===47){if(!l){r=f;break}}else l=!1;return r===-1?o?"/":".":o&&r===1?"/":s.slice(0,r)},O.basename=function(s,e){var o=i(s);return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o},O.extname=function(s){typeof s!="string"&&(s+="");for(var e=-1,o=0,r=-1,l=!0,f=0,c=s.length-1;c>=0;--c){var T=s.charCodeAt(c);if(T!==47)r===-1&&(l=!1,r=c+1),T===46?e===-1?e=c:f!==1&&(f=1):e!==-1&&(f=-1);else if(!l){o=c+1;break}}return e===-1||r===-1||f===0||f===1&&e===r-1&&e===o+1?"":s.slice(e,r)};var d="ab".substr(-1)==="b"?function(s,e,o){return s.substr(e,o)}:function(s,e,o){return e<0&&(e=s.length+e),s.substr(e,o)}}).call(this,n("_process"))},{_process:173}],171:[function(n,R,O){(function(m){(function(){"use strict";function v(y){return y=String(y),y.charAt(0).toUpperCase()+y.slice(1)}function i(y,L,k){var z={"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 L&&k&&/^Win/i.test(y)&&!/^Windows Phone /i.test(y)&&(z=z[/[\d.]+$/.exec(y)])&&(y="Windows "+z),y=String(y),L&&k&&(y=y.replace(RegExp(L,"i"),k)),y=d(y.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 u(y,L){var k=-1,z=y?y.length:0;if(typeof z=="number"&&z>-1&&z<=p)for(;++k<z;)L(y[k],k,y);else s(y,L)}function d(y){return y=f(y),/^(?:webOS|i(?:OS|P))/.test(y)?y:v(y)}function s(y,L){for(var k in y)D.call(y,k)&&L(y[k],k,y)}function e(y){return y==null?v(y):b.call(y).slice(8,-1)}function o(y,L){var k=y!=null?typeof y[L]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(k)||k=="object"&&!y[L])}function r(y){return String(y).replace(/([ -])(?!$)/g,"$1?")}function l(y,L){var k=null;return u(y,function(z,G){k=L(k,z,G,y)}),k}function f(y){return String(y).replace(/^ +| +$/g,"")}function c(y){function L(C){return l(C,function(_,g){var F=g.pattern||r(g);return!_&&(_=RegExp("\\b"+F+" *\\d+[.\\w_]*","i").exec(y)||RegExp("\\b"+F+" *\\w+-[\\w]*","i").exec(y)||RegExp("\\b"+F+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(y))&&((_=String(g.label&&!RegExp(F,"i").test(g.label)?g.label:_).split("/"))[1]&&!/[\d.]+/.test(_[0])&&(_[0]+=" "+_[1]),g=g.label||g,_=d(_[0].replace(RegExp(F,"i"),g).replace(RegExp("; *(?:"+g+"[_-])?","i")," ").replace(RegExp("("+g+")[-_.]?(\\w)","i"),"$1 $2"))),_})}function k(){return this.description||""}var z=E,G=y&&typeof y=="object"&&e(y)!="String";G&&(z=y,y=null);var q=z.navigator||{},re=q.userAgent||"";y||(y=re);var X,ne,J=G?!!q.likeChrome:/\bChrome\b/.test(y)&&!/internal|\n/i.test(b.toString()),H=G?"Object":"ScriptBridgingProxyObject",I=G?"Object":"Environment",j=G&&z.java?"JavaPackage":e(z.java),B=G?"Object":"RuntimeObject",M=/\bJava/.test(j)&&z.java,V=M&&e(z.environment)==I,Y=M?"a":"\u4F2A",ae=M?"b":"\u5C3E",Q=z.document||{},le=z.operamini||z.opera,he=x.test(he=G&&le?le["[[Class]]"]:e(le))?he:le=null,Z=y,$=[],oe=null,W=y==re,N=W&&le&&typeof le.version=="function"&&le.version(),ie=function(C){return l(C,function(_,g){return _||RegExp("\\b"+(g.pattern||r(g))+"\\b","i").exec(y)&&(g.label||g)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ee=function(C){return l(C,function(_,g){return _||RegExp("\\b"+(g.pattern||r(g))+"\\b","i").exec(y)&&(g.label||g)})}(["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"]),de=L([{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"]),P=function(C){return l(C,function(_,g,F){return _||(g[de]||g[/^[a-z]+(?: +[a-z]+\b)*/i.exec(de)]||RegExp("\\b"+r(F)+"(?:\\b|\\w*\\d)","i").exec(y))&&F})}({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}}),t=function(C){return l(C,function(_,g){var F=g.pattern||r(g);return!_&&(_=RegExp("\\b"+F+"(?:/[\\d.]+|[ \\w.]*)","i").exec(y))&&(_=i(_,F,g.label||g)),_})}(["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(ie&&(ie=[ie]),P&&!de&&(de=L([P])),(X=/\bGoogle TV\b/.exec(de))&&(de=X[0]),/\bSimulator\b/i.test(y)&&(de=(de?de+" ":"")+"Simulator"),ee=="Opera Mini"&&/\bOPiOS\b/.test(y)&&$.push("running in Turbo/Uncompressed mode"),ee=="IE"&&/\blike iPhone OS\b/.test(y)?(X=c(y.replace(/like iPhone OS/,"")),P=X.manufacturer,de=X.product):/^iP/.test(de)?(ee||(ee="Safari"),t="iOS"+((X=/ OS ([\d_]+)/i.exec(y))?" "+X[1].replace(/_/g,"."):"")):ee!="Konqueror"||/buntu/i.test(t)?P&&P!="Google"&&(/Chrome/.test(ee)&&!/\bMobile Safari\b/i.test(y)||/\bVita\b/.test(de))||/\bAndroid\b/.test(t)&&/^Chrome/.test(ee)&&/\bVersion\//i.test(y)?(ee="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):ee=="Silk"?(/\bMobi/i.test(y)||(t="Android",$.unshift("desktop mode")),/Accelerated *= *true/i.test(y)&&$.unshift("accelerated")):ee=="PaleMoon"&&(X=/\bFirefox\/([\d.]+)\b/.exec(y))?$.push("identifying as Firefox "+X[1]):ee=="Firefox"&&(X=/\b(Mobile|Tablet|TV)\b/i.exec(y))?(t||(t="Firefox OS"),de||(de=X[1])):!ee||(X=!/\bMinefield\b/i.test(y)&&/\b(?:Firefox|Safari)\b/.exec(ee))?(ee&&!de&&/[\/,]|^[^(]+?\)/.test(y.slice(y.indexOf(X+"/")+8))&&(ee=null),(X=de||P||t)&&(de||P||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(ee=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:X)+" Browser")):ee=="Electron"&&(X=(/\bChrome\/([\d.]+)\b/.exec(y)||0)[1])&&$.push("Chromium "+X):t="Kubuntu",N||(N=function(C){return l(C,function(_,g){return _||(RegExp(g+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(y)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(ee),"(?:Firefox|Minefield|NetFront)"])),(X=ie=="iCab"&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(ee)&&(/\bOPR\b/.test(y)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(y)&&!/^(?:Trident|EdgeHTML)$/.test(ie)&&"WebKit"||!ie&&/\bMSIE\b/i.test(y)&&(t=="Mac OS"?"Tasman":"Trident")||ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ee)&&"NetFront")&&(ie=[X]),ee=="IE"&&(X=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(y)||0)[1])?(ee+=" Mobile",t="Windows Phone "+(/\+$/.test(X)?X:X+".x"),$.unshift("desktop mode")):/\bWPDesktop\b/i.test(y)?(ee="IE Mobile",t="Windows Phone 8.x",$.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(y)||0)[1])):ee!="IE"&&ie=="Trident"&&(X=/\brv:([\d.]+)/.exec(y))&&(ee&&$.push("identifying as "+ee+(N?" "+N:"")),ee="IE",N=X[1]),W){if(o(z,"global"))if(M&&(X=M.lang.System,Z=X.getProperty("os.arch"),t=t||X.getProperty("os.name")+" "+X.getProperty("os.version")),V){try{N=z.require("ringo/engine").version.join("."),ee="RingoJS"}catch(C){(X=z.system)&&X.global.system==z.system&&(ee="Narwhal",t||(t=X[0].os||null))}ee||(ee="Rhino")}else typeof z.process=="object"&&!z.process.browser&&(X=z.process)&&(typeof X.versions=="object"&&(typeof X.versions.electron=="string"?($.push("Node "+X.versions.node),ee="Electron",N=X.versions.electron):typeof X.versions.nw=="string"&&($.push("Chromium "+N,"Node "+X.versions.node),ee="NW.js",N=X.versions.nw)),ee||(ee="Node.js",Z=X.arch,t=X.platform,N=/[\d.]+/.exec(X.version),N=N?N[0]:null));else e(X=z.runtime)==H?(ee="Adobe AIR",t=X.flash.system.Capabilities.os):e(X=z.phantom)==B?(ee="PhantomJS",N=(X=X.version||null)&&X.major+"."+X.minor+"."+X.patch):typeof Q.documentMode=="number"&&(X=/\bTrident\/(\d+)/i.exec(y))?(N=[N,Q.documentMode],(X=+X[1]+4)!=N[1]&&($.push("IE "+N[1]+" mode"),ie&&(ie[1]=""),N[1]=X),N=ee=="IE"?String(N[1].toFixed(1)):N[0]):typeof Q.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ee)&&($.push("masking as "+ee+" "+N),ee="IE",N="11.0",ie=["Trident"],t="Windows");t=t&&d(t)}if(N&&(X=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(y+";"+(W&&q.appMinorVersion))||/\bMinefield\b/i.test(y)&&"a")&&(oe=/b/i.test(X)?"beta":"alpha",N=N.replace(RegExp(X+"\\+?$"),"")+(oe=="beta"?ae:Y)+(/\d+\+?/.exec(X)||"")),ee=="Fennec"||ee=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ee="Firefox Mobile";else if(ee=="Maxthon"&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(de))de=="Xbox 360"&&(t=null),de=="Xbox 360"&&/\bIEMobile\b/.test(y)&&$.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ee)&&(!ee||de||/Browser|Mobi/.test(ee))||t!="Windows CE"&&!/Mobi/i.test(y))if(ee=="IE"&&W)try{z.external===null&&$.unshift("platform preview")}catch(C){$.unshift("embedded")}else(/\bBlackBerry\b/.test(de)||/\bBB10\b/.test(y))&&(X=(RegExp(de.replace(/ +/g," *")+"/([.\\d]+)","i").exec(y)||0)[1]||N)?(X=[X,/BB10/.test(y)],t=(X[1]?(de=null,P="BlackBerry"):"Device Software")+" "+X[0],N=null):this!=s&&de!="Wii"&&(W&&le||/Opera/.test(ee)&&/\b(?:MSIE|Firefox)\b/i.test(y)||ee=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ee=="IE"&&(t&&!/^Win/.test(t)&&N>5.5||/\bWindows XP\b/.test(t)&&N>8||N==8&&!/\bTrident\b/.test(y)))&&!x.test(X=c.call(s,y.replace(x,"")+";"))&&X.name&&(X="ing as "+X.name+((X=X.version)?" "+X:""),x.test(ee)?(/\bIE\b/.test(X)&&t=="Mac OS"&&(t=null),X="identify"+X):(X="mask"+X,ee=he?d(he.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(X)&&(t=null),W||(N=null)),ie=["Presto"],$.push(X));else ee+=" Mobile";(X=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(y)||0)[1])&&(X=[parseFloat(X.replace(/\.(\d)$/,".0$1")),X],ee=="Safari"&&X[1].slice(-1)=="+"?(ee="WebKit Nightly",oe="alpha",N=X[1].slice(0,-1)):N!=X[1]&&N!=(X[2]=(/\bSafari\/([\d.]+\+?)/i.exec(y)||0)[1])||(N=null),X[1]=(/\bChrome\/([\d.]+)/i.exec(y)||0)[1],X[0]==537.36&&X[2]==537.36&&parseFloat(X[1])>=28&&ie=="WebKit"&&(ie=["Blink"]),W&&(J||X[1])?(ie&&(ie[1]="like Chrome"),X=X[1]||(X=X[0],X<530?1:X<532?2:X<532.05?3:X<533?4:X<534.03?5:X<534.07?6:X<534.1?7:X<534.13?8:X<534.16?9:X<534.24?10:X<534.3?11:X<535.01?12:X<535.02?"13+":X<535.07?15:X<535.11?16:X<535.19?17:X<536.05?18:X<536.1?19:X<537.01?20:X<537.11?"21+":X<537.13?23:X<537.18?24:X<537.24?25:X<537.36?26:ie!="Blink"?"27":"28")):(ie&&(ie[1]="like Safari"),X=X[0],X=X<400?1:X<500?2:X<526?3:X<533?4:X<534?"4+":X<535?5:X<537?6:X<538?7:X<601?8:"8"),ie&&(ie[1]+=" "+(X+=typeof X=="number"?".x":/[.+]/.test(X)?"":"+")),ee=="Safari"&&(!N||parseInt(N)>45)&&(N=X)),ee=="Opera"&&(X=/\bzbov|zvav$/.exec(t))?(ee+=" ",$.unshift("desktop mode"),X=="zvav"?(ee+="Mini",N=null):ee+="Mobile",t=t.replace(RegExp(" *"+X+"$"),"")):ee=="Safari"&&/\bChrome\b/.exec(ie&&ie[1])&&($.unshift("desktop mode"),ee="Chrome Mobile",N=null,/\bOS X\b/.test(t)?(P="Apple",t="iOS 4.3+"):t=null),N&&N.indexOf(X=/[\d.]+$/.exec(t))==0&&y.indexOf("/"+X+"-")>-1&&(t=f(t.replace(X,""))),ie&&!/\b(?:Avant|Nook)\b/.test(ee)&&(/Browser|Lunascape|Maxthon/.test(ee)||ee!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ee)&&ie[1])&&(X=ie[ie.length-1])&&$.push(X),$.length&&($=["("+$.join("; ")+")"]),P&&de&&de.indexOf(P)<0&&$.push("on "+P),de&&$.push((/^on /.test($[$.length-1])?"":"on ")+de),t&&(X=/ ([\d.+]+)$/.exec(t),ne=X&&t.charAt(t.length-X[0].length-1)=="/",t={architecture:32,family:X&&!ne?t.replace(X[0],""):t,version:X?X[1]:null,toString:function(){var _=this.version;return this.family+(_&&!ne?" "+_:"")+(this.architecture==64?" 64-bit":"")}}),(X=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Z))&&!/\bi686\b/i.test(Z)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+X),"")),ee&&(/\bWOW64\b/i.test(y)||W&&/\w(?:86|32)$/.test(q.cpuClass||q.platform)&&!/\bWin64; x64\b/i.test(y))&&$.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ee=="Chrome"&&parseFloat(N)>=39&&(t.architecture=64),y||(y=null);var a={};return a.description=y,a.layout=ie&&ie[0],a.manufacturer=P,a.name=ee,a.prerelease=oe,a.product=de,a.ua=y,a.version=ee&&N,a.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},a.parse=c,a.toString=k,a.version&&$.unshift(N),a.name&&$.unshift(ee),t&&ee&&(t!=String(t).split(" ")[0]||t!=ee.split(" ")[0]&&!de)&&$.push(de?"("+t+")":"on "+t),$.length&&(a.description=$.join(" ")),a}var T={function:!0,object:!0},E=T[typeof window]&&window||this,h=T[typeof O]&&O,S=T[typeof R]&&R&&!R.nodeType&&R,w=h&&S&&typeof m=="object"&&m;!w||w.global!==w&&w.window!==w&&w.self!==w||(E=w);var p=Math.pow(2,53)-1,x=/\bOpera/,A=Object.prototype,D=A.hasOwnProperty,b=A.toString,U=c();typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd?(E.platform=U,ve(function(){return U})):h&&S?s(U,function(y,L){h[L]=y}):E.platform=U}).call(this)}).call(this,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,R,O){(function(m){"use strict";function v(i,u,d,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var e,o,r=arguments.length;switch(r){case 0:case 1:return m.nextTick(i);case 2:return m.nextTick(function(){i.call(null,u)});case 3:return m.nextTick(function(){i.call(null,u,d)});case 4:return m.nextTick(function(){i.call(null,u,d,s)});default:for(e=new Array(r-1),o=0;o<e.length;)e[o++]=arguments[o];return m.nextTick(function(){i.apply(null,e)})}}!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?R.exports={nextTick:v}:R.exports=m}).call(this,n("_process"))},{_process:173}],173:[function(n,R,O){function m(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function i(S){if(r===setTimeout)return setTimeout(S,0);if((r===m||!r)&&setTimeout)return r=setTimeout,setTimeout(S,0);try{return r(S,0)}catch(w){try{return r.call(null,S,0)}catch(p){return r.call(this,S,0)}}}function u(S){if(l===clearTimeout)return clearTimeout(S);if((l===v||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(S);try{return l(S)}catch(w){try{return l.call(null,S)}catch(p){return l.call(this,S)}}}function d(){E&&c&&(E=!1,c.length?T=c.concat(T):h=-1,T.length&&s())}function s(){if(!E){var S=i(d);E=!0;for(var w=T.length;w;){for(c=T,T=[];++h<w;)c&&c[h].run();h=-1,w=T.length}c=null,E=!1,u(S)}}function e(S,w){this.fun=S,this.array=w}function o(){}var r,l,f=R.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:m}catch(S){r=m}try{l=typeof clearTimeout=="function"?clearTimeout:v}catch(S){l=v}}();var c,T=[],E=!1,h=-1;f.nextTick=function(S){var w=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)w[p-1]=arguments[p];T.push(new e(S,w)),T.length!==1||E||i(s)},e.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=o,f.addListener=o,f.once=o,f.off=o,f.removeListener=o,f.removeAllListeners=o,f.emit=o,f.prependListener=o,f.prependOnceListener=o,f.listeners=function(S){return[]},f.binding=function(S){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(S){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],174:[function(n,R,O){(function(m){!function(v){function i(j){throw new RangeError(ne[j])}function u(j,B){for(var M=j.length,V=[];M--;)V[M]=B(j[M]);return V}function d(j,B){var M=j.split("@"),V="";return M.length>1&&(V=M[0]+"@",j=M[1]),j=j.replace(X,"."),V+u(j.split("."),B).join(".")}function s(j){for(var B,M,V=[],Y=0,ae=j.length;Y<ae;)B=j.charCodeAt(Y++),B>=55296&&B<=56319&&Y<ae?(M=j.charCodeAt(Y++),(64512&M)==56320?V.push(((1023&B)<<10)+(1023&M)+65536):(V.push(B),Y--)):V.push(B);return V}function e(j){return u(j,function(B){var M="";return B>65535&&(B-=65536,M+=I(B>>>10&1023|55296),B=56320|1023&B),M+=I(B)}).join("")}function o(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:D}function r(j,B){return j+22+75*(j<26)-((B!=0)<<5)}function l(j,B,M){var V=0;for(j=M?H(j/L):j>>1,j+=H(j/B);j>J*U>>1;V+=D)j=H(j/J);return H(V+(J+1)*j/(j+y))}function f(j){var B,M,V,Y,ae,Q,le,he,Z,$,oe=[],W=j.length,N=0,ie=z,ee=k;for(M=j.lastIndexOf(G),M<0&&(M=0),V=0;V<M;++V)j.charCodeAt(V)>=128&&i("not-basic"),oe.push(j.charCodeAt(V));for(Y=M>0?M+1:0;Y<W;){for(ae=N,Q=1,le=D;Y>=W&&i("invalid-input"),he=o(j.charCodeAt(Y++)),(he>=D||he>H((A-N)/Q))&&i("overflow"),N+=he*Q,Z=le<=ee?b:le>=ee+U?U:le-ee,!(he<Z);le+=D)$=D-Z,Q>H(A/$)&&i("overflow"),Q*=$;B=oe.length+1,ee=l(N-ae,B,ae==0),H(N/B)>A-ie&&i("overflow"),ie+=H(N/B),N%=B,oe.splice(N++,0,ie)}return e(oe)}function c(j){var B,M,V,Y,ae,Q,le,he,Z,$,oe,W,N,ie,ee,de=[];for(j=s(j),W=j.length,B=z,M=0,ae=k,Q=0;Q<W;++Q)(oe=j[Q])<128&&de.push(I(oe));for(V=Y=de.length,Y&&de.push(G);V<W;){for(le=A,Q=0;Q<W;++Q)(oe=j[Q])>=B&&oe<le&&(le=oe);for(N=V+1,le-B>H((A-M)/N)&&i("overflow"),M+=(le-B)*N,B=le,Q=0;Q<W;++Q)if(oe=j[Q],oe<B&&++M>A&&i("overflow"),oe==B){for(he=M,Z=D;$=Z<=ae?b:Z>=ae+U?U:Z-ae,!(he<$);Z+=D)ee=he-$,ie=D-$,de.push(I(r($+ee%ie,0))),he=H(ee/ie);de.push(I(r(he,0))),ae=l(M,N,V==Y),M=0,++V}++M,++B}return de.join("")}function T(j){return d(j,function(B){return q.test(B)?f(B.slice(4).toLowerCase()):B})}function E(j){return d(j,function(B){return re.test(B)?"xn--"+c(B):B})}var h=typeof O=="object"&&O&&!O.nodeType&&O,S=typeof R=="object"&&R&&!R.nodeType&&R,w=typeof m=="object"&&m;w.global!==w&&w.window!==w&&w.self!==w||(v=w);var p,x,A=2147483647,D=36,b=1,U=26,y=38,L=700,k=72,z=128,G="-",q=/^xn--/,re=/[^\x20-\x7E]/,X=/[\x2E\u3002\uFF0E\uFF61]/g,ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=D-b,H=Math.floor,I=String.fromCharCode;if(p={version:"1.4.1",ucs2:{decode:s,encode:e},decode:f,encode:c,toASCII:E,toUnicode:T},typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd)ve("punycode",function(){return p});else if(h&&S)if(R.exports==h)S.exports=p;else for(x in p)p.hasOwnProperty(x)&&(h[x]=p[x]);else v.punycode=p}(this)}).call(this,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,R,O){"use strict";function m(i,u){return Object.prototype.hasOwnProperty.call(i,u)}R.exports=function(i,u,d,s){u=u||"&",d=d||"=";var e={};if(typeof i!="string"||i.length===0)return e;var o=/\+/g;i=i.split(u);var r=1e3;s&&typeof s.maxKeys=="number"&&(r=s.maxKeys);var l=i.length;r>0&&l>r&&(l=r);for(var f=0;f<l;++f){var c,T,E,h,S=i[f].replace(o,"%20"),w=S.indexOf(d);w>=0?(c=S.substr(0,w),T=S.substr(w+1)):(c=S,T=""),E=decodeURIComponent(c),h=decodeURIComponent(T),m(e,E)?v(e[E])?e[E].push(h):e[E]=[e[E],h]:e[E]=h}return e};var v=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,R,O){"use strict";function m(d,s){if(d.map)return d.map(s);for(var e=[],o=0;o<d.length;o++)e.push(s(d[o],o));return e}var v=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};R.exports=function(d,s,e,o){return s=s||"&",e=e||"=",d===null&&(d=void 0),typeof d=="object"?m(u(d),function(r){var l=encodeURIComponent(v(r))+e;return i(d[r])?m(d[r],function(f){return l+encodeURIComponent(v(f))}).join(s):l+encodeURIComponent(v(d[r]))}).join(s):o?encodeURIComponent(v(o))+e+encodeURIComponent(v(d)):""};var i=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},u=Object.keys||function(d){var s=[];for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&s.push(e);return s}},{}],177:[function(n,R,O){"use strict";O.decode=O.parse=n("./decode"),O.encode=O.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,R,O){R.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,R,O){"use strict";function m(E){if(!(this instanceof m))return new m(E);r.call(this,E),l.call(this,E),E&&E.readable===!1&&(this.readable=!1),E&&E.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,E&&E.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||s.nextTick(i,this)}function i(E){E.end()}var u=n("babel-runtime/core-js/object/keys"),d=function(E){return E&&E.__esModule?E:{default:E}}(u),s=n("process-nextick-args"),e=d.default||function(E){var h=[];for(var S in E)h.push(S);return h};R.exports=m;var o=n("core-util-is");o.inherits=n("inherits");var r=n("./_stream_readable"),l=n("./_stream_writable");o.inherits(m,r);for(var f=e(l.prototype),c=0;c<f.length;c++){var T=f[c];m.prototype[T]||(m.prototype[T]=l.prototype[T])}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),m.prototype._destroy=function(E,h){this.push(null),this.end(),s.nextTick(h,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(n,R,O){"use strict";function m(u){if(!(this instanceof m))return new m(u);v.call(this,u)}R.exports=m;var v=n("./_stream_transform"),i=n("core-util-is");i.inherits=n("inherits"),i.inherits(m,v),m.prototype._transform=function(u,d,s){s(null,u)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,R,O){(function(m,v){"use strict";function i(W){return M.from(W)}function u(W){return M.isBuffer(W)||W instanceof V}function d(W,N,ie){if(typeof W.prependListener=="function")return W.prependListener(N,ie);W._events&&W._events[N]?I(W._events[N])?W._events[N].unshift(ie):W._events[N]=[ie,W._events[N]]:W.on(N,ie)}function s(W,N){H=H||n("./_stream_duplex"),W=W||{};var ie=N instanceof H;this.objectMode=!!W.objectMode,ie&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var ee=W.highWaterMark,de=W.readableHighWaterMark,P=this.objectMode?16:16384;this.highWaterMark=ee||ee===0?ee:ie&&(de||de===0)?de:P,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new he,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=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(le||(le=n("string_decoder/").StringDecoder),this.decoder=new le(W.encoding),this.encoding=W.encoding)}function e(W){if(H=H||n("./_stream_duplex"),!(this instanceof e))return new e(W);this._readableState=new s(W,this),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),B.call(this)}function o(W,N,ie,ee,de){var P=W._readableState;if(N===null)P.reading=!1,E(W,P);else{var t;de||(t=l(P,N)),t?W.emit("error",t):P.objectMode||N&&N.length>0?(typeof N=="string"||P.objectMode||(0,ne.default)(N)===M.prototype||(N=i(N)),ee?P.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):r(W,P,N,!0):P.ended?W.emit("error",new Error("stream.push() after EOF")):(P.reading=!1,P.decoder&&!ie?(N=P.decoder.write(N),P.objectMode||N.length!==0?r(W,P,N,!1):w(W,P)):r(W,P,N,!1))):ee||(P.reading=!1)}return f(P)}function r(W,N,ie,ee){N.flowing&&N.length===0&&!N.sync?(W.emit("data",ie),W.read(0)):(N.length+=N.objectMode?1:ie.length,ee?N.buffer.unshift(ie):N.buffer.push(ie),N.needReadable&&h(W)),w(W,N)}function l(W,N){var ie;return u(N)||typeof N=="string"||N===void 0||W.objectMode||(ie=new TypeError("Invalid non-string/buffer chunk")),ie}function f(W){return!W.ended&&(W.needReadable||W.length<W.highWaterMark||W.length===0)}function c(W){return W>=oe?W=oe:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function T(W,N){return W<=0||N.length===0&&N.ended?0:N.objectMode?1:W!==W?N.flowing&&N.length?N.buffer.head.data.length:N.length:(W>N.highWaterMark&&(N.highWaterMark=c(W)),W<=N.length?W:N.ended?N.length:(N.needReadable=!0,0))}function E(W,N){if(!N.ended){if(N.decoder){var ie=N.decoder.end();ie&&ie.length&&(N.buffer.push(ie),N.length+=N.objectMode?1:ie.length)}N.ended=!0,h(W)}}function h(W){var N=W._readableState;N.needReadable=!1,N.emittedReadable||(Q("emitReadable",N.flowing),N.emittedReadable=!0,N.sync?J.nextTick(S,W):S(W))}function S(W){Q("emit readable"),W.emit("readable"),U(W)}function w(W,N){N.readingMore||(N.readingMore=!0,J.nextTick(p,W,N))}function p(W,N){for(var ie=N.length;!N.reading&&!N.flowing&&!N.ended&&N.length<N.highWaterMark&&(Q("maybeReadMore read 0"),W.read(0),ie!==N.length);)ie=N.length;N.readingMore=!1}function x(W){return function(){var N=W._readableState;Q("pipeOnDrain",N.awaitDrain),N.awaitDrain&&N.awaitDrain--,N.awaitDrain===0&&j(W,"data")&&(N.flowing=!0,U(W))}}function A(W){Q("readable nexttick read 0"),W.read(0)}function D(W,N){N.resumeScheduled||(N.resumeScheduled=!0,J.nextTick(b,W,N))}function b(W,N){N.reading||(Q("resume read 0"),W.read(0)),N.resumeScheduled=!1,N.awaitDrain=0,W.emit("resume"),U(W),N.flowing&&!N.reading&&W.read(0)}function U(W){var N=W._readableState;for(Q("flow",N.flowing);N.flowing&&W.read()!==null;);}function y(W,N){if(N.length===0)return null;var ie;return N.objectMode?ie=N.buffer.shift():!W||W>=N.length?(ie=N.decoder?N.buffer.join(""):N.buffer.length===1?N.buffer.head.data:N.buffer.concat(N.length),N.buffer.clear()):ie=L(W,N.buffer,N.decoder),ie}function L(W,N,ie){var ee;return W<N.head.data.length?(ee=N.head.data.slice(0,W),N.head.data=N.head.data.slice(W)):ee=W===N.head.data.length?N.shift():ie?k(W,N):z(W,N),ee}function k(W,N){var ie=N.head,ee=1,de=ie.data;for(W-=de.length;ie=ie.next;){var P=ie.data,t=W>P.length?P.length:W;if(t===P.length?de+=P:de+=P.slice(0,W),(W-=t)===0){t===P.length?(++ee,ie.next?N.head=ie.next:N.head=N.tail=null):(N.head=ie,ie.data=P.slice(t));break}++ee}return N.length-=ee,de}function z(W,N){var ie=M.allocUnsafe(W),ee=N.head,de=1;for(ee.data.copy(ie),W-=ee.data.length;ee=ee.next;){var P=ee.data,t=W>P.length?P.length:W;if(P.copy(ie,ie.length-W,0,t),(W-=t)===0){t===P.length?(++de,ee.next?N.head=ee.next:N.head=N.tail=null):(N.head=ee,ee.data=P.slice(t));break}++de}return N.length-=de,ie}function G(W){var N=W._readableState;if(N.length>0)throw new Error('"endReadable()" called on non-empty stream');N.endEmitted||(N.ended=!0,J.nextTick(q,N,W))}function q(W,N){W.endEmitted||W.length!==0||(W.endEmitted=!0,N.readable=!1,N.emit("end"))}function re(W,N){for(var ie=0,ee=W.length;ie<ee;ie++)if(W[ie]===N)return ie;return-1}var X=n("babel-runtime/core-js/object/get-prototype-of"),ne=function(W){return W&&W.__esModule?W:{default:W}}(X),J=n("process-nextick-args");R.exports=e;var H,I=n("isarray");e.ReadableState=s;var j=(n("events").EventEmitter,function(W,N){return W.listeners(N).length}),B=n("./internal/streams/stream"),M=n("safe-buffer").Buffer,V=v.Uint8Array||function(){},Y=n("core-util-is");Y.inherits=n("inherits");var ae=n("util"),Q=void 0;Q=ae&&ae.debuglog?ae.debuglog("stream"):function(){};var le,he=n("./internal/streams/BufferList"),Z=n("./internal/streams/destroy");Y.inherits(e,B);var $=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),e.prototype.destroy=Z.destroy,e.prototype._undestroy=Z.undestroy,e.prototype._destroy=function(W,N){this.push(null),N(W)},e.prototype.push=function(W,N){var ie,ee=this._readableState;return ee.objectMode?ie=!0:typeof W=="string"&&(N=N||ee.defaultEncoding,N!==ee.encoding&&(W=M.from(W,N),N=""),ie=!0),o(this,W,N,!1,ie)},e.prototype.unshift=function(W){return o(this,W,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(W){return le||(le=n("string_decoder/").StringDecoder),this._readableState.decoder=new le(W),this._readableState.encoding=W,this};var oe=8388608;e.prototype.read=function(W){Q("read",W),W=parseInt(W,10);var N=this._readableState,ie=W;if(W!==0&&(N.emittedReadable=!1),W===0&&N.needReadable&&(N.length>=N.highWaterMark||N.ended))return Q("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?G(this):h(this),null;if((W=T(W,N))===0&&N.ended)return N.length===0&&G(this),null;var ee=N.needReadable;Q("need readable",ee),(N.length===0||N.length-W<N.highWaterMark)&&(ee=!0,Q("length less than watermark",ee)),N.ended||N.reading?(ee=!1,Q("reading or ended",ee)):ee&&(Q("do read"),N.reading=!0,N.sync=!0,N.length===0&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(W=T(ie,N)));var de;return de=W>0?y(W,N):null,de===null?(N.needReadable=!0,W=0):N.length-=W,N.length===0&&(N.ended||(N.needReadable=!0),ie!==W&&N.ended&&G(this)),de!==null&&this.emit("data",de),de},e.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(W,N){function ie(ye,Se){Q("onunpipe"),ye===g&&Se&&Se.hasUnpiped===!1&&(Se.hasUnpiped=!0,de())}function ee(){Q("onend"),W.end()}function de(){Q("cleanup"),W.removeListener("close",a),W.removeListener("finish",C),W.removeListener("drain",se),W.removeListener("error",t),W.removeListener("unpipe",ie),g.removeListener("end",ee),g.removeListener("end",_),g.removeListener("data",P),ue=!0,!F.awaitDrain||W._writableState&&!W._writableState.needDrain||se()}function P(ye){Q("ondata"),ge=!1,W.write(ye)!==!1||ge||((F.pipesCount===1&&F.pipes===W||F.pipesCount>1&&re(F.pipes,W)!==-1)&&!ue&&(Q("false write response, pause",g._readableState.awaitDrain),g._readableState.awaitDrain++,ge=!0),g.pause())}function t(ye){Q("onerror",ye),_(),W.removeListener("error",t),j(W,"error")===0&&W.emit("error",ye)}function a(){W.removeListener("finish",C),_()}function C(){Q("onfinish"),W.removeListener("close",a),_()}function _(){Q("unpipe"),g.unpipe(W)}var g=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=W;break;case 1:F.pipes=[F.pipes,W];break;default:F.pipes.push(W)}F.pipesCount+=1,Q("pipe count=%d opts=%j",F.pipesCount,N);var K=(!N||N.end!==!1)&&W!==m.stdout&&W!==m.stderr,pe=K?ee:_;F.endEmitted?J.nextTick(pe):g.once("end",pe),W.on("unpipe",ie);var se=x(g);W.on("drain",se);var ue=!1,ge=!1;return g.on("data",P),d(W,"error",t),W.once("close",a),W.once("finish",C),W.emit("pipe",g),F.flowing||(Q("pipe resume"),g.resume()),W},e.prototype.unpipe=function(W){var N=this._readableState,ie={hasUnpiped:!1};if(N.pipesCount===0)return this;if(N.pipesCount===1)return W&&W!==N.pipes?this:(W||(W=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,W&&W.emit("unpipe",this,ie),this);if(!W){var ee=N.pipes,de=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var P=0;P<de;P++)ee[P].emit("unpipe",this,ie);return this}var t=re(N.pipes,W);return t===-1?this:(N.pipes.splice(t,1),N.pipesCount-=1,N.pipesCount===1&&(N.pipes=N.pipes[0]),W.emit("unpipe",this,ie),this)},e.prototype.on=function(W,N){var ie=B.prototype.on.call(this,W,N);if(W==="data")this._readableState.flowing!==!1&&this.resume();else if(W==="readable"){var ee=this._readableState;ee.endEmitted||ee.readableListening||(ee.readableListening=ee.needReadable=!0,ee.emittedReadable=!1,ee.reading?ee.length&&h(this):J.nextTick(A,this))}return ie},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var W=this._readableState;return W.flowing||(Q("resume"),W.flowing=!0,D(this,W)),this},e.prototype.pause=function(){return Q("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Q("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(W){var N=this,ie=this._readableState,ee=!1;W.on("end",function(){if(Q("wrapped end"),ie.decoder&&!ie.ended){var t=ie.decoder.end();t&&t.length&&N.push(t)}N.push(null)}),W.on("data",function(t){(Q("wrapped data"),ie.decoder&&(t=ie.decoder.write(t)),(!ie.objectMode||t!=null)&&(ie.objectMode||t&&t.length))&&(N.push(t)||(ee=!0,W.pause()))});for(var de in W)this[de]===void 0&&typeof W[de]=="function"&&(this[de]=function(t){return function(){return W[t].apply(W,arguments)}}(de));for(var P=0;P<$.length;P++)W.on($[P],this.emit.bind(this,$[P]));return this._read=function(t){Q("wrapped _read",t),ee&&(ee=!1,W.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=y}).call(this,n("_process"),typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?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(n,R,O){"use strict";function m(e,o){var r=this._transformState;r.transforming=!1;var l=r.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,o!=null&&this.push(o),l(e);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function v(e){if(!(this instanceof v))return new v(e);d.call(this,e),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this;typeof this._flush=="function"?this._flush(function(o,r){u(e,o,r)}):u(this,null,null)}function u(e,o,r){if(o)return e.emit("error",o);if(r!=null&&e.push(r),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)}R.exports=v;var d=n("./_stream_duplex"),s=n("core-util-is");s.inherits=n("inherits"),s.inherits(v,d),v.prototype.push=function(e,o){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,o)},v.prototype._transform=function(e,o,r){throw new Error("_transform() is not implemented")},v.prototype._write=function(e,o,r){var l=this._transformState;if(l.writecb=r,l.writechunk=e,l.writeencoding=o,!l.transforming){var f=this._readableState;(l.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},v.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},v.prototype._destroy=function(e,o){var r=this;d.prototype._destroy.call(this,e,function(l){o(l),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,R,O){(function(m,v){"use strict";function i(Z){return Z&&Z.__esModule?Z:{default:Z}}function u(Z){var $=this;this.next=null,this.entry=null,this.finish=function(){k($,Z)}}function d(Z){return ae.from(Z)}function s(Z){return ae.isBuffer(Z)||Z instanceof Q}function e(){}function o(Z,$){j=j||n("./_stream_duplex"),Z=Z||{};var oe=$ instanceof j;this.objectMode=!!Z.objectMode,oe&&(this.objectMode=this.objectMode||!!Z.writableObjectMode);var W=Z.highWaterMark,N=Z.writableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=W||W===0?W:oe&&(N||N===0)?N:ie,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 ee=Z.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(de){w($,de)},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 u(this)}function r(Z){if(j=j||n("./_stream_duplex"),!(he.call(r,this)||this instanceof j))return new r(Z);this._writableState=new o(Z,this),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev),typeof Z.destroy=="function"&&(this._destroy=Z.destroy),typeof Z.final=="function"&&(this._final=Z.final)),Y.call(this)}function l(Z,$){var oe=new Error("write after end");Z.emit("error",oe),I.nextTick($,oe)}function f(Z,$,oe,W){var N=!0,ie=!1;return oe===null?ie=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||$.objectMode||(ie=new TypeError("Invalid non-string/buffer chunk")),ie&&(Z.emit("error",ie),I.nextTick(W,ie),N=!1),N}function c(Z,$,oe){return Z.objectMode||Z.decodeStrings===!1||typeof $!="string"||($=ae.from($,oe)),$}function T(Z,$,oe,W,N,ie){if(!oe){var ee=c($,W,N);W!==ee&&(oe=!0,N="buffer",W=ee)}var de=$.objectMode?1:W.length;$.length+=de;var P=$.length<$.highWaterMark;if(P||($.needDrain=!0),$.writing||$.corked){var t=$.lastBufferedRequest;$.lastBufferedRequest={chunk:W,encoding:N,isBuf:oe,callback:ie,next:null},t?t.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else E(Z,$,!1,de,W,N,ie);return P}function E(Z,$,oe,W,N,ie,ee){$.writelen=W,$.writecb=ee,$.writing=!0,$.sync=!0,oe?Z._writev(N,$.onwrite):Z._write(N,ie,$.onwrite),$.sync=!1}function h(Z,$,oe,W,N){--$.pendingcb,oe?(I.nextTick(N,W),I.nextTick(y,Z,$),Z._writableState.errorEmitted=!0,Z.emit("error",W)):(N(W),Z._writableState.errorEmitted=!0,Z.emit("error",W),y(Z,$))}function S(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}function w(Z,$){var oe=Z._writableState,W=oe.sync,N=oe.writecb;if(S(oe),$)h(Z,oe,W,$,N);else{var ie=D(oe);ie||oe.corked||oe.bufferProcessing||!oe.bufferedRequest||A(Z,oe),W?B(p,Z,oe,ie,N):p(Z,oe,ie,N)}}function p(Z,$,oe,W){oe||x(Z,$),$.pendingcb--,W(),y(Z,$)}function x(Z,$){$.length===0&&$.needDrain&&($.needDrain=!1,Z.emit("drain"))}function A(Z,$){$.bufferProcessing=!0;var oe=$.bufferedRequest;if(Z._writev&&oe&&oe.next){var W=$.bufferedRequestCount,N=new Array(W),ie=$.corkedRequestsFree;ie.entry=oe;for(var ee=0,de=!0;oe;)N[ee]=oe,oe.isBuf||(de=!1),oe=oe.next,ee+=1;N.allBuffers=de,E(Z,$,!0,$.length,N,"",ie.finish),$.pendingcb++,$.lastBufferedRequest=null,ie.next?($.corkedRequestsFree=ie.next,ie.next=null):$.corkedRequestsFree=new u($),$.bufferedRequestCount=0}else{for(;oe;){var P=oe.chunk,t=oe.encoding,a=oe.callback;if(E(Z,$,!1,$.objectMode?1:P.length,P,t,a),oe=oe.next,$.bufferedRequestCount--,$.writing)break}oe===null&&($.lastBufferedRequest=null)}$.bufferedRequest=oe,$.bufferProcessing=!1}function D(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function b(Z,$){Z._final(function(oe){$.pendingcb--,oe&&Z.emit("error",oe),$.prefinished=!0,Z.emit("prefinish"),y(Z,$)})}function U(Z,$){$.prefinished||$.finalCalled||(typeof Z._final=="function"?($.pendingcb++,$.finalCalled=!0,I.nextTick(b,Z,$)):($.prefinished=!0,Z.emit("prefinish")))}function y(Z,$){var oe=D($);return oe&&(U(Z,$),$.pendingcb===0&&($.finished=!0,Z.emit("finish"))),oe}function L(Z,$,oe){$.ending=!0,y(Z,$),oe&&($.finished?I.nextTick(oe):Z.once("finish",oe)),$.ended=!0,Z.writable=!1}function k(Z,$,oe){var W=Z.entry;for(Z.entry=null;W;){var N=W.callback;$.pendingcb--,N(oe),W=W.next}$.corkedRequestsFree?$.corkedRequestsFree.next=Z:$.corkedRequestsFree=Z}var z=n("babel-runtime/core-js/object/define-property"),G=i(z),q=n("babel-runtime/core-js/symbol/has-instance"),re=i(q),X=n("babel-runtime/core-js/symbol"),ne=i(X),J=n("babel-runtime/core-js/set-immediate"),H=i(J),I=n("process-nextick-args");R.exports=r;var j,B=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?H.default:I.nextTick;r.WritableState=o;var M=n("core-util-is");M.inherits=n("inherits");var V={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),ae=n("safe-buffer").Buffer,Q=v.Uint8Array||function(){},le=n("./internal/streams/destroy");M.inherits(r,Y),o.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,$=[];Z;)$.push(Z),Z=Z.next;return $},function(){try{Object.defineProperty(o.prototype,"buffer",{get:V.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Z){}}();var he;typeof ne.default=="function"&&re.default&&typeof Function.prototype[re.default]=="function"?(he=Function.prototype[re.default],(0,G.default)(r,re.default,{value:function($){return!!he.call(this,$)||this===r&&$&&$._writableState instanceof o}})):he=function($){return $ instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Z,$,oe){var W=this._writableState,N=!1,ie=!W.objectMode&&s(Z);return ie&&!ae.isBuffer(Z)&&(Z=d(Z)),typeof $=="function"&&(oe=$,$=null),ie?$="buffer":$||($=W.defaultEncoding),typeof oe!="function"&&(oe=e),W.ended?l(this,oe):(ie||f(this,W,Z,oe))&&(W.pendingcb++,N=T(this,W,ie,Z,$,oe)),N},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,Z.writing||Z.corked||Z.finished||Z.bufferProcessing||!Z.bufferedRequest||A(this,Z))},r.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Z,$,oe){oe(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Z,$,oe){var W=this._writableState;typeof Z=="function"?(oe=Z,Z=null,$=null):typeof $=="function"&&(oe=$,$=null),Z!=null&&this.write(Z,$),W.corked&&(W.corked=1,this.uncork()),W.ending||W.finished||L(this,W,oe)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),r.prototype.destroy=le.destroy,r.prototype._undestroy=le.undestroy,r.prototype._destroy=function(Z,$){this.end(),$(Z)}}).call(this,n("_process"),typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?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(n,R,O){"use strict";function m(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")}function v(d,s,e){d.copy(s,e)}var i=n("safe-buffer").Buffer,u=n("util");R.exports=function(){function d(){m(this,d),this.head=null,this.tail=null,this.length=0}return d.prototype.push=function(s){var e={data:s,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},d.prototype.unshift=function(s){var e={data:s,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},d.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},d.prototype.clear=function(){this.head=this.tail=null,this.length=0},d.prototype.join=function(s){if(this.length===0)return"";for(var e=this.head,o=""+e.data;e=e.next;)o+=s+e.data;return o},d.prototype.concat=function(s){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var e=i.allocUnsafe(s>>>0),o=this.head,r=0;o;)v(o.data,e,r),r+=o.data.length,o=o.next;return e},d}(),u&&u.inspect&&u.inspect.custom&&(R.exports.prototype[u.inspect.custom]=function(){var d=u.inspect({length:this.length});return this.constructor.name+" "+d})},{"safe-buffer":193,util:36}],185:[function(n,R,O){"use strict";function m(d,s){var e=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(s?s(d):!d||this._writableState&&this._writableState.errorEmitted||u.nextTick(i,this,d),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(l){!s&&l?(u.nextTick(i,e,l),e._writableState&&(e._writableState.errorEmitted=!0)):s&&s(l)}),this)}function v(){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 i(d,s){d.emit("error",s)}var u=n("process-nextick-args");R.exports={destroy:m,undestroy:v}},{"process-nextick-args":172}],186:[function(n,R,O){"use strict";R.exports=n("events").EventEmitter},{events:158}],187:[function(n,R,O){R.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,R,O){O=R.exports=n("./lib/_stream_readable.js"),O.Stream=O,O.Readable=O,O.Writable=n("./lib/_stream_writable.js"),O.Duplex=n("./lib/_stream_duplex.js"),O.Transform=n("./lib/_stream_transform.js"),O.PassThrough=n("./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(n,R,O){R.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,R,O){R.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,R,O){var m=function(){return this}()||Function("return this")(),v=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,i=v&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,R.exports=n("./runtime"),v)m.regeneratorRuntime=i;else try{delete m.regeneratorRuntime}catch(u){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,R,O){!function(m){"use strict";function v(H,I,j,B){var M=I&&I.prototype instanceof u?I:u,V=Object.create(M.prototype),Y=new T(B||[]);return V._invoke=r(H,j,Y),V}function i(H,I,j){try{return{type:"normal",arg:H.call(I,j)}}catch(B){return{type:"throw",arg:B}}}function u(){}function d(){}function s(){}function e(H){["next","throw","return"].forEach(function(I){H[I]=function(j){return this._invoke(I,j)}})}function o(H){function I(M,V,Y,ae){var Q=i(H[M],H,V);if(Q.type!=="throw"){var le=Q.arg,he=le.value;return he&&typeof he=="object"&&p.call(he,"__await")?Promise.resolve(he.__await).then(function(Z){I("next",Z,Y,ae)},function(Z){I("throw",Z,Y,ae)}):Promise.resolve(he).then(function(Z){le.value=Z,Y(le)},ae)}ae(Q.arg)}function j(M,V){function Y(){return new Promise(function(ae,Q){I(M,V,ae,Q)})}return B=B?B.then(Y,Y):Y()}var B;this._invoke=j}function r(H,I,j){var B=L;return function(M,V){if(B===z)throw new Error("Generator is already running");if(B===G){if(M==="throw")throw V;return h()}for(j.method=M,j.arg=V;;){var Y=j.delegate;if(Y){var ae=l(Y,j);if(ae){if(ae===q)continue;return ae}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(B===L)throw B=G,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);B=z;var Q=i(H,I,j);if(Q.type==="normal"){if(B=j.done?G:k,Q.arg===q)continue;return{value:Q.arg,done:j.done}}Q.type==="throw"&&(B=G,j.method="throw",j.arg=Q.arg)}}}function l(H,I){var j=H.iterator[I.method];if(j===S){if(I.delegate=null,I.method==="throw"){if(H.iterator.return&&(I.method="return",I.arg=S,l(H,I),I.method==="throw"))return q;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return q}var B=i(j,H.iterator,I.arg);if(B.type==="throw")return I.method="throw",I.arg=B.arg,I.delegate=null,q;var M=B.arg;return M?M.done?(I[H.resultName]=M.value,I.next=H.nextLoc,I.method!=="return"&&(I.method="next",I.arg=S),I.delegate=null,q):M:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,q)}function f(H){var I={tryLoc:H[0]};1 in H&&(I.catchLoc=H[1]),2 in H&&(I.finallyLoc=H[2],I.afterLoc=H[3]),this.tryEntries.push(I)}function c(H){var I=H.completion||{};I.type="normal",delete I.arg,H.completion=I}function T(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(f,this),this.reset(!0)}function E(H){if(H){var I=H[A];if(I)return I.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var j=-1,B=function M(){for(;++j<H.length;)if(p.call(H,j))return M.value=H[j],M.done=!1,M;return M.value=S,M.done=!0,M};return B.next=B}}return{next:h}}function h(){return{value:S,done:!0}}var S,w=Object.prototype,p=w.hasOwnProperty,x=typeof Symbol=="function"?Symbol:{},A=x.iterator||"@@iterator",D=x.asyncIterator||"@@asyncIterator",b=x.toStringTag||"@@toStringTag",U=typeof R=="object",y=m.regeneratorRuntime;if(y)return void(U&&(R.exports=y));y=m.regeneratorRuntime=U?R.exports:{},y.wrap=v;var L="suspendedStart",k="suspendedYield",z="executing",G="completed",q={},re={};re[A]=function(){return this};var X=Object.getPrototypeOf,ne=X&&X(X(E([])));ne&&ne!==w&&p.call(ne,A)&&(re=ne);var J=s.prototype=u.prototype=Object.create(re);d.prototype=J.constructor=s,s.constructor=d,s[b]=d.displayName="GeneratorFunction",y.isGeneratorFunction=function(H){var I=typeof H=="function"&&H.constructor;return!!I&&(I===d||(I.displayName||I.name)==="GeneratorFunction")},y.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,s):(H.__proto__=s,b in H||(H[b]="GeneratorFunction")),H.prototype=Object.create(J),H},y.awrap=function(H){return{__await:H}},e(o.prototype),o.prototype[D]=function(){return this},y.AsyncIterator=o,y.async=function(H,I,j,B){var M=new o(v(H,I,j,B));return y.isGeneratorFunction(I)?M:M.next().then(function(V){return V.done?V.value:M.next()})},e(J),J[b]="Generator",J[A]=function(){return this},J.toString=function(){return"[object Generator]"},y.keys=function(H){var I=[];for(var j in H)I.push(j);return I.reverse(),function B(){for(;I.length;){var M=I.pop();if(M in H)return B.value=M,B.done=!1,B}return B.done=!0,B}},y.values=E,T.prototype={constructor:T,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(c),!I)for(var j in this)j.charAt(0)==="t"&&p.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=S)},stop:function(){this.done=!0;var I=this.tryEntries[0],j=I.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(I){function j(le,he){return Y.type="throw",Y.arg=I,B.next=le,he&&(B.method="next",B.arg=S),!!he}if(this.done)throw I;for(var B=this,M=this.tryEntries.length-1;M>=0;--M){var V=this.tryEntries[M],Y=V.completion;if(V.tryLoc==="root")return j("end");if(V.tryLoc<=this.prev){var ae=p.call(V,"catchLoc"),Q=p.call(V,"finallyLoc");if(ae&&Q){if(this.prev<V.catchLoc)return j(V.catchLoc,!0);if(this.prev<V.finallyLoc)return j(V.finallyLoc)}else if(ae){if(this.prev<V.catchLoc)return j(V.catchLoc,!0)}else{if(!Q)throw new Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return j(V.finallyLoc)}}}},abrupt:function(I,j){for(var B=this.tryEntries.length-1;B>=0;--B){var M=this.tryEntries[B];if(M.tryLoc<=this.prev&&p.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var V=M;break}}V&&(I==="break"||I==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Y=V?V.completion:{};return Y.type=I,Y.arg=j,V?(this.method="next",this.next=V.finallyLoc,q):this.complete(Y)},complete:function(I,j){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&j&&(this.next=j),q},finish:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j];if(B.finallyLoc===I)return this.complete(B.completion,B.afterLoc),c(B),q}},catch:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j];if(B.tryLoc===I){var M=B.completion;if(M.type==="throw"){var V=M.arg;c(B)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(I,j,B){return this.delegate={iterator:E(I),resultName:j,nextLoc:B},this.method==="next"&&(this.arg=S),q}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,R,O){function m(d,s){for(var e in d)s[e]=d[e]}function v(d,s,e){return u(d,s,e)}var i=n("buffer"),u=i.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?R.exports=i:(m(i,O),O.Buffer=v),m(u,v),v.from=function(d,s,e){if(typeof d=="number")throw new TypeError("Argument must not be a number");return u(d,s,e)},v.alloc=function(d,s,e){if(typeof d!="number")throw new TypeError("Argument must be a number");var o=u(d);return s!==void 0?typeof e=="string"?o.fill(s,e):o.fill(s):o.fill(0),o},v.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return u(d)},v.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(d)}},{buffer:38}],194:[function(n,R,O){(function(m){"use strict";function v(h){return h&&h.__esModule?h:{default:h}}var i=n("babel-runtime/core-js/string/from-code-point"),u=v(i),d=n("babel-runtime/core-js/json/stringify"),s=v(d),e=n("babel-runtime/helpers/typeof"),o=v(e),r=n("babel-runtime/core-js/object/define-property"),l=v(r),f=n("babel-runtime/core-js/object/keys"),c=v(f),T=n("babel-runtime/core-js/object/create"),E=v(T);!function(h){function S(_,g){if(!(this instanceof S))return new S(_,g);var F=this;p(F),F.q=F.c="",F.bufferCheckPosition=h.MAX_BUFFER_LENGTH,F.opt=g||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!_,F.noscript=!(!_&&!F.opt.noscript),F.state=a.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?(0,E.default)(h.XML_ENTITIES):(0,E.default)(h.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=(0,E.default)(ie)),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),z(F,"onready")}function w(_){for(var g=Math.max(h.MAX_BUFFER_LENGTH,10),F=0,K=0,pe=le.length;K<pe;K++){var se=_[le[K]].length;if(se>g)switch(le[K]){case"textNode":q(_);break;case"cdata":G(_,"oncdata",_.cdata),_.cdata="";break;case"script":G(_,"onscript",_.script),_.script="";break;default:X(_,"Max buffer length exceeded: "+le[K])}F=Math.max(F,se)}var ue=h.MAX_BUFFER_LENGTH-F;_.bufferCheckPosition=ue+_.position}function p(_){for(var g=0,F=le.length;g<F;g++)_[le[g]]=""}function x(_){q(_),_.cdata!==""&&(G(_,"oncdata",_.cdata),_.cdata=""),_.script!==""&&(G(_,"onscript",_.script),_.script="")}function A(_,g){return new D(_,g)}function D(_,g){if(!(this instanceof D))return new D(_,g);he.apply(this),this._parser=new S(_,g),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(K){F.emit("error",K),F._parser.error=null},this._decoder=null,Z.forEach(function(K){(0,l.default)(F,"on"+K,{get:function(){return F._parser["on"+K]},set:function(se){if(!se)return F.removeAllListeners(K),F._parser["on"+K]=se,se;F.on(K,se)},enumerable:!0,configurable:!1})})}function b(_){return _===" "||_===`
|
||
`||_==="\r"||_===" "}function U(_){return _==='"'||_==="'"}function y(_){return _===">"||b(_)}function L(_,g){return _.test(g)}function k(_,g){return!L(_,g)}function z(_,g,F){_[g]&&_[g](F)}function G(_,g,F){_.textNode&&q(_),z(_,g,F)}function q(_){_.textNode=re(_.opt,_.textNode),_.textNode&&z(_,"ontext",_.textNode),_.textNode=""}function re(_,g){return _.trim&&(g=g.trim()),_.normalize&&(g=g.replace(/\s+/g," ")),g}function X(_,g){return q(_),_.trackPosition&&(g+=`
|
||
Line: `+_.line+`
|
||
Column: `+_.column+`
|
||
Char: `+_.c),g=new Error(g),_.error=g,z(_,"onerror",g),_}function ne(_){return _.sawRoot&&!_.closedRoot&&J(_,"Unclosed root tag"),_.state!==a.BEGIN&&_.state!==a.BEGIN_WHITESPACE&&_.state!==a.TEXT&&X(_,"Unexpected end"),q(_),_.c="",_.closed=!0,z(_,"onend"),S.call(_,_.strict,_.opt),_}function J(_,g){if((_===void 0?"undefined":(0,o.default)(_))!=="object"||!(_ instanceof S))throw new Error("bad call to strictFail");_.strict&&X(_,g)}function H(_){_.strict||(_.tagName=_.tagName[_.looseCase]());var g=_.tags[_.tags.length-1]||_,F=_.tag={name:_.tagName,attributes:{}};_.opt.xmlns&&(F.ns=g.ns),_.attribList.length=0,G(_,"onopentagstart",F)}function I(_,g){var F=_.indexOf(":"),K=F<0?["",_]:_.split(":"),pe=K[0],se=K[1];return g&&_==="xmlns"&&(pe="xmlns",se=""),{prefix:pe,local:se}}function j(_){if(_.strict||(_.attribName=_.attribName[_.looseCase]()),_.attribList.indexOf(_.attribName)!==-1||_.tag.attributes.hasOwnProperty(_.attribName))return void(_.attribName=_.attribValue="");if(_.opt.xmlns){var g=I(_.attribName,!0),F=g.prefix,K=g.local;if(F==="xmlns")if(K==="xml"&&_.attribValue!==W)J(_,"xml: prefix must be bound to "+W+`
|
||
Actual: `+_.attribValue);else if(K==="xmlns"&&_.attribValue!==N)J(_,"xmlns: prefix must be bound to "+N+`
|
||
Actual: `+_.attribValue);else{var pe=_.tag,se=_.tags[_.tags.length-1]||_;pe.ns===se.ns&&(pe.ns=(0,E.default)(se.ns)),pe.ns[K]=_.attribValue}_.attribList.push([_.attribName,_.attribValue])}else _.tag.attributes[_.attribName]=_.attribValue,G(_,"onattribute",{name:_.attribName,value:_.attribValue});_.attribName=_.attribValue=""}function B(_,g){if(_.opt.xmlns){var F=_.tag,K=I(_.tagName);F.prefix=K.prefix,F.local=K.local,F.uri=F.ns[K.prefix]||"",F.prefix&&!F.uri&&(J(_,"Unbound namespace prefix: "+(0,s.default)(_.tagName)),F.uri=K.prefix);var pe=_.tags[_.tags.length-1]||_;F.ns&&pe.ns!==F.ns&&(0,c.default)(F.ns).forEach(function(Pe){G(_,"onopennamespace",{prefix:Pe,uri:F.ns[Pe]})});for(var se=0,ue=_.attribList.length;se<ue;se++){var ge=_.attribList[se],ye=ge[0],Se=ge[1],ce=I(ye,!0),Re=ce.prefix,Be=ce.local,Ae=Re===""?"":F.ns[Re]||"",xe={name:ye,value:Se,prefix:Re,local:Be,uri:Ae};Re&&Re!=="xmlns"&&!Ae&&(J(_,"Unbound namespace prefix: "+(0,s.default)(Re)),xe.uri=Re),_.tag.attributes[ye]=xe,G(_,"onattribute",xe)}_.attribList.length=0}_.tag.isSelfClosing=!!g,_.sawRoot=!0,_.tags.push(_.tag),G(_,"onopentag",_.tag),g||(_.noscript||_.tagName.toLowerCase()!=="script"?_.state=a.TEXT:_.state=a.SCRIPT,_.tag=null,_.tagName=""),_.attribName=_.attribValue="",_.attribList.length=0}function M(_){if(!_.tagName)return J(_,"Weird empty close tag."),_.textNode+="</>",void(_.state=a.TEXT);if(_.script){if(_.tagName!=="script")return _.script+="</"+_.tagName+">",_.tagName="",void(_.state=a.SCRIPT);G(_,"onscript",_.script),_.script=""}var g=_.tags.length,F=_.tagName;_.strict||(F=F[_.looseCase]());for(var K=F;g--&&!(_.tags[g].name===K);)J(_,"Unexpected close tag");if(g<0)return J(_,"Unmatched closing tag: "+_.tagName),_.textNode+="</"+_.tagName+">",void(_.state=a.TEXT);_.tagName=F;for(var pe=_.tags.length;pe-- >g;){var se=_.tag=_.tags.pop();_.tagName=_.tag.name,G(_,"onclosetag",_.tagName);var ue={};for(var ge in se.ns)ue[ge]=se.ns[ge];var ye=_.tags[_.tags.length-1]||_;_.opt.xmlns&&se.ns!==ye.ns&&(0,c.default)(se.ns).forEach(function(Se){var ce=se.ns[Se];G(_,"onclosenamespace",{prefix:Se,uri:ce})})}g===0&&(_.closedRoot=!0),_.tagName=_.attribValue=_.attribName="",_.attribList.length=0,_.state=a.TEXT}function V(_){var g,F=_.entity,K=F.toLowerCase(),pe="";return _.ENTITIES[F]?_.ENTITIES[F]:_.ENTITIES[K]?_.ENTITIES[K]:(F=K,F.charAt(0)==="#"&&(F.charAt(1)==="x"?(F=F.slice(2),g=parseInt(F,16),pe=g.toString(16)):(F=F.slice(1),g=parseInt(F,10),pe=g.toString(10))),F=F.replace(/^0+/,""),isNaN(g)||pe.toLowerCase()!==F?(J(_,"Invalid character entity"),"&"+_.entity+";"):(0,u.default)(g))}function Y(_,g){g==="<"?(_.state=a.OPEN_WAKA,_.startTagPosition=_.position):b(g)||(J(_,"Non-whitespace before first tag."),_.textNode=g,_.state=a.TEXT)}function ae(_,g){var F="";return g<_.length&&(F=_.charAt(g)),F}function Q(_){var g=this;if(this.error)throw this.error;if(g.closed)return X(g,"Cannot write after close. Assign an onready handler.");if(_===null)return ne(g);(_===void 0?"undefined":(0,o.default)(_))==="object"&&(_=_.toString());for(var F=0,K="";!(K=ae(_,F++),g.c=K,!K);)switch(g.trackPosition&&(g.position++,K===`
|
||
`?(g.line++,g.column=0):g.column++),g.state){case a.BEGIN:if(g.state=a.BEGIN_WHITESPACE,K==="\uFEFF")continue;Y(g,K);continue;case a.BEGIN_WHITESPACE:Y(g,K);continue;case a.TEXT:if(g.sawRoot&&!g.closedRoot){for(var pe=F-1;K&&K!=="<"&&K!=="&";)(K=ae(_,F++))&&g.trackPosition&&(g.position++,K===`
|
||
`?(g.line++,g.column=0):g.column++);g.textNode+=_.substring(pe,F-1)}K!=="<"||g.sawRoot&&g.closedRoot&&!g.strict?(b(K)||g.sawRoot&&!g.closedRoot||J(g,"Text data outside of root node."),K==="&"?g.state=a.TEXT_ENTITY:g.textNode+=K):(g.state=a.OPEN_WAKA,g.startTagPosition=g.position);continue;case a.SCRIPT:K==="<"?g.state=a.SCRIPT_ENDING:g.script+=K;continue;case a.SCRIPT_ENDING:K==="/"?g.state=a.CLOSE_TAG:(g.script+="<"+K,g.state=a.SCRIPT);continue;case a.OPEN_WAKA:if(K==="!")g.state=a.SGML_DECL,g.sgmlDecl="";else if(!b(K))if(L(ee,K))g.state=a.OPEN_TAG,g.tagName=K;else if(K==="/")g.state=a.CLOSE_TAG,g.tagName="";else if(K==="?")g.state=a.PROC_INST,g.procInstName=g.procInstBody="";else{if(J(g,"Unencoded <"),g.startTagPosition+1<g.position){var se=g.position-g.startTagPosition;K=new Array(se).join(" ")+K}g.textNode+="<"+K,g.state=a.TEXT}continue;case a.SGML_DECL:(g.sgmlDecl+K).toUpperCase()===$?(G(g,"onopencdata"),g.state=a.CDATA,g.sgmlDecl="",g.cdata=""):g.sgmlDecl+K==="--"?(g.state=a.COMMENT,g.comment="",g.sgmlDecl=""):(g.sgmlDecl+K).toUpperCase()===oe?(g.state=a.DOCTYPE,(g.doctype||g.sawRoot)&&J(g,"Inappropriately located doctype declaration"),g.doctype="",g.sgmlDecl=""):K===">"?(G(g,"onsgmldeclaration",g.sgmlDecl),g.sgmlDecl="",g.state=a.TEXT):(U(K)&&(g.state=a.SGML_DECL_QUOTED),g.sgmlDecl+=K);continue;case a.SGML_DECL_QUOTED:K===g.q&&(g.state=a.SGML_DECL,g.q=""),g.sgmlDecl+=K;continue;case a.DOCTYPE:K===">"?(g.state=a.TEXT,G(g,"ondoctype",g.doctype),g.doctype=!0):(g.doctype+=K,K==="["?g.state=a.DOCTYPE_DTD:U(K)&&(g.state=a.DOCTYPE_QUOTED,g.q=K));continue;case a.DOCTYPE_QUOTED:g.doctype+=K,K===g.q&&(g.q="",g.state=a.DOCTYPE);continue;case a.DOCTYPE_DTD:g.doctype+=K,K==="]"?g.state=a.DOCTYPE:U(K)&&(g.state=a.DOCTYPE_DTD_QUOTED,g.q=K);continue;case a.DOCTYPE_DTD_QUOTED:g.doctype+=K,K===g.q&&(g.state=a.DOCTYPE_DTD,g.q="");continue;case a.COMMENT:K==="-"?g.state=a.COMMENT_ENDING:g.comment+=K;continue;case a.COMMENT_ENDING:K==="-"?(g.state=a.COMMENT_ENDED,g.comment=re(g.opt,g.comment),g.comment&&G(g,"oncomment",g.comment),g.comment=""):(g.comment+="-"+K,g.state=a.COMMENT);continue;case a.COMMENT_ENDED:K!==">"?(J(g,"Malformed comment"),g.comment+="--"+K,g.state=a.COMMENT):g.state=a.TEXT;continue;case a.CDATA:K==="]"?g.state=a.CDATA_ENDING:g.cdata+=K;continue;case a.CDATA_ENDING:K==="]"?g.state=a.CDATA_ENDING_2:(g.cdata+="]"+K,g.state=a.CDATA);continue;case a.CDATA_ENDING_2:K===">"?(g.cdata&&G(g,"oncdata",g.cdata),G(g,"onclosecdata"),g.cdata="",g.state=a.TEXT):K==="]"?g.cdata+="]":(g.cdata+="]]"+K,g.state=a.CDATA);continue;case a.PROC_INST:K==="?"?g.state=a.PROC_INST_ENDING:b(K)?g.state=a.PROC_INST_BODY:g.procInstName+=K;continue;case a.PROC_INST_BODY:if(!g.procInstBody&&b(K))continue;K==="?"?g.state=a.PROC_INST_ENDING:g.procInstBody+=K;continue;case a.PROC_INST_ENDING:K===">"?(G(g,"onprocessinginstruction",{name:g.procInstName,body:g.procInstBody}),g.procInstName=g.procInstBody="",g.state=a.TEXT):(g.procInstBody+="?"+K,g.state=a.PROC_INST_BODY);continue;case a.OPEN_TAG:L(de,K)?g.tagName+=K:(H(g),K===">"?B(g):K==="/"?g.state=a.OPEN_TAG_SLASH:(b(K)||J(g,"Invalid character in tag name"),g.state=a.ATTRIB));continue;case a.OPEN_TAG_SLASH:K===">"?(B(g,!0),M(g)):(J(g,"Forward-slash in opening tag not followed by >"),g.state=a.ATTRIB);continue;case a.ATTRIB:if(b(K))continue;K===">"?B(g):K==="/"?g.state=a.OPEN_TAG_SLASH:L(ee,K)?(g.attribName=K,g.attribValue="",g.state=a.ATTRIB_NAME):J(g,"Invalid attribute name");continue;case a.ATTRIB_NAME:K==="="?g.state=a.ATTRIB_VALUE:K===">"?(J(g,"Attribute without value"),g.attribValue=g.attribName,j(g),B(g)):b(K)?g.state=a.ATTRIB_NAME_SAW_WHITE:L(de,K)?g.attribName+=K:J(g,"Invalid attribute name");continue;case a.ATTRIB_NAME_SAW_WHITE:if(K==="=")g.state=a.ATTRIB_VALUE;else{if(b(K))continue;J(g,"Attribute without value"),g.tag.attributes[g.attribName]="",g.attribValue="",G(g,"onattribute",{name:g.attribName,value:""}),g.attribName="",K===">"?B(g):L(ee,K)?(g.attribName=K,g.state=a.ATTRIB_NAME):(J(g,"Invalid attribute name"),g.state=a.ATTRIB)}continue;case a.ATTRIB_VALUE:if(b(K))continue;U(K)?(g.q=K,g.state=a.ATTRIB_VALUE_QUOTED):(J(g,"Unquoted attribute value"),g.state=a.ATTRIB_VALUE_UNQUOTED,g.attribValue=K);continue;case a.ATTRIB_VALUE_QUOTED:if(K!==g.q){K==="&"?g.state=a.ATTRIB_VALUE_ENTITY_Q:g.attribValue+=K;continue}j(g),g.q="",g.state=a.ATTRIB_VALUE_CLOSED;continue;case a.ATTRIB_VALUE_CLOSED:b(K)?g.state=a.ATTRIB:K===">"?B(g):K==="/"?g.state=a.OPEN_TAG_SLASH:L(ee,K)?(J(g,"No whitespace between attributes"),g.attribName=K,g.attribValue="",g.state=a.ATTRIB_NAME):J(g,"Invalid attribute name");continue;case a.ATTRIB_VALUE_UNQUOTED:if(!y(K)){K==="&"?g.state=a.ATTRIB_VALUE_ENTITY_U:g.attribValue+=K;continue}j(g),K===">"?B(g):g.state=a.ATTRIB;continue;case a.CLOSE_TAG:if(g.tagName)K===">"?M(g):L(de,K)?g.tagName+=K:g.script?(g.script+="</"+g.tagName,g.tagName="",g.state=a.SCRIPT):(b(K)||J(g,"Invalid tagname in closing tag"),g.state=a.CLOSE_TAG_SAW_WHITE);else{if(b(K))continue;k(ee,K)?g.script?(g.script+="</"+K,g.state=a.SCRIPT):J(g,"Invalid tagname in closing tag."):g.tagName=K}continue;case a.CLOSE_TAG_SAW_WHITE:if(b(K))continue;K===">"?M(g):J(g,"Invalid characters in closing tag");continue;case a.TEXT_ENTITY:case a.ATTRIB_VALUE_ENTITY_Q:case a.ATTRIB_VALUE_ENTITY_U:var ue,ge;switch(g.state){case a.TEXT_ENTITY:ue=a.TEXT,ge="textNode";break;case a.ATTRIB_VALUE_ENTITY_Q:ue=a.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case a.ATTRIB_VALUE_ENTITY_U:ue=a.ATTRIB_VALUE_UNQUOTED,ge="attribValue"}K===";"?(g[ge]+=V(g),g.entity="",g.state=ue):L(g.entity.length?t:P,K)?g.entity+=K:(J(g,"Invalid character in entity name"),g[ge]+="&"+g.entity+K,g.entity="",g.state=ue);continue;default:throw new Error(g,"Unknown state: "+g.state)}return g.position>=g.bufferCheckPosition&&w(g),g}h.parser=function(_,g){return new S(_,g)},h.SAXParser=S,h.SAXStream=D,h.createStream=A,h.MAX_BUFFER_LENGTH=65536;var le=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];h.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],E.default||(Object.create=function(_){function g(){}return g.prototype=_,new g}),c.default||(Object.keys=function(_){var g=[];for(var F in _)_.hasOwnProperty(F)&&g.push(F);return g}),S.prototype={end:function(){ne(this)},write:Q,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var he;try{he=n("stream").Stream}catch(_){he=function(){}}var Z=h.EVENTS.filter(function(_){return _!=="error"&&_!=="end"});D.prototype=(0,E.default)(he.prototype,{constructor:{value:D}}),D.prototype.write=function(_){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(_)){if(!this._decoder){var g=n("string_decoder").StringDecoder;this._decoder=new g("utf8")}_=this._decoder.write(_)}return this._parser.write(_.toString()),this.emit("data",_),!0},D.prototype.end=function(_){return _&&_.length&&this.write(_),this._parser.end(),!0},D.prototype.on=function(_,g){var F=this;return F._parser["on"+_]||Z.indexOf(_)===-1||(F._parser["on"+_]=function(){var K=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);K.splice(0,0,_),F.emit.apply(F,K)}),he.prototype.on.call(F,_,g)};var $="[CDATA[",oe="DOCTYPE",W="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",ie={xml:W,xmlns:N},ee=/[:_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]/,de=/[:_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-]/,P=/[#:_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]/,t=/[#:_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-]/,a=0;h.STATE={BEGIN:a++,BEGIN_WHITESPACE:a++,TEXT:a++,TEXT_ENTITY:a++,OPEN_WAKA:a++,SGML_DECL:a++,SGML_DECL_QUOTED:a++,DOCTYPE:a++,DOCTYPE_QUOTED:a++,DOCTYPE_DTD:a++,DOCTYPE_DTD_QUOTED:a++,COMMENT_STARTING:a++,COMMENT:a++,COMMENT_ENDING:a++,COMMENT_ENDED:a++,CDATA:a++,CDATA_ENDING:a++,CDATA_ENDING_2:a++,PROC_INST:a++,PROC_INST_BODY:a++,PROC_INST_ENDING:a++,OPEN_TAG:a++,OPEN_TAG_SLASH:a++,ATTRIB:a++,ATTRIB_NAME:a++,ATTRIB_NAME_SAW_WHITE:a++,ATTRIB_VALUE:a++,ATTRIB_VALUE_QUOTED:a++,ATTRIB_VALUE_CLOSED:a++,ATTRIB_VALUE_UNQUOTED:a++,ATTRIB_VALUE_ENTITY_Q:a++,ATTRIB_VALUE_ENTITY_U:a++,CLOSE_TAG:a++,CLOSE_TAG_SAW_WHITE:a++,SCRIPT:a++,SCRIPT_ENDING:a++},h.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},h.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,c.default)(h.ENTITIES).forEach(function(_){var g=h.ENTITIES[_],F=typeof g=="number"?String.fromCharCode(g):g;h.ENTITIES[_]=F});for(var C in h.STATE)h.STATE[h.STATE[C]]=C;a=h.STATE,u.default||function(){var _=String.fromCharCode,g=Math.floor,F=function(){var pe,se,ue=[],ge=-1,ye=arguments.length;if(!ye)return"";for(var Se="";++ge<ye;){var ce=Number(arguments[ge]);if(!isFinite(ce)||ce<0||ce>1114111||g(ce)!==ce)throw RangeError("Invalid code point: "+ce);ce<=65535?ue.push(ce):(ce-=65536,pe=55296+(ce>>10),se=ce%1024+56320,ue.push(pe,se)),(ge+1===ye||ue.length>16384)&&(Se+=_.apply(null,ue),ue.length=0)}return Se};l.default?Object.defineProperty(String,"fromCodePoint",{value:F,configurable:!0,writable:!0}):String.fromCodePoint=F}()}(O===void 0?(void 0).sax={}:O)}).call(this,n("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(n,R,O){function m(){v.call(this)}R.exports=m;var v=n("events").EventEmitter;n("inherits")(m,v),m.Readable=n("readable-stream/readable.js"),m.Writable=n("readable-stream/writable.js"),m.Duplex=n("readable-stream/duplex.js"),m.Transform=n("readable-stream/transform.js"),m.PassThrough=n("readable-stream/passthrough.js"),m.Stream=m,m.prototype.pipe=function(i,u){function d(T){i.writable&&i.write(T)===!1&&f.pause&&f.pause()}function s(){f.readable&&f.resume&&f.resume()}function e(){c||(c=!0,i.end())}function o(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function r(T){if(l(),v.listenerCount(this,"error")===0)throw T}function l(){f.removeListener("data",d),i.removeListener("drain",s),f.removeListener("end",e),f.removeListener("close",o),f.removeListener("error",r),i.removeListener("error",r),f.removeListener("end",l),f.removeListener("close",l),i.removeListener("close",l)}var f=this;f.on("data",d),i.on("drain",s),i._isStdio||u&&u.end===!1||(f.on("end",e),f.on("close",o));var c=!1;return f.on("error",r),i.on("error",r),f.on("end",l),f.on("close",l),i.on("close",l),i.emit("pipe",f),i}},{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(n,R,O){(function(m){var v=n("./lib/request"),i=n("./lib/response"),u=n("xtend"),d=n("builtin-status-codes"),s=n("url"),e=O;e.request=function(o,r){o=typeof o=="string"?s.parse(o):u(o);var l=m.location.protocol.search(/^https?:$/)===-1?"http:":"",f=o.protocol||l,c=o.hostname||o.host,T=o.port,E=o.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),o.url=(c?f+"//"+c:"")+(T?":"+T:"")+E,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var h=new v(o);return r&&h.on("response",r),h},e.get=function(o,r){var l=e.request(o,r);return l.end(),l},e.ClientRequest=v,e.IncomingMessage=i.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=d,e.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,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,R,O){(function(m){"use strict";function v(){if(d!==void 0)return d;if(m.XMLHttpRequest){d=new m.XMLHttpRequest;try{d.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(o){d=null}}else d=null;return d}function i(o){var r=v();if(!r)return!1;try{return r.responseType=o,r.responseType===o}catch(l){}return!1}function u(o){return typeof o=="function"}O.fetch=u(m.fetch)&&u(m.ReadableStream),O.writableStream=u(m.WritableStream),O.abortController=u(m.AbortController),O.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),O.blobConstructor=!0}catch(o){}var d,s=m.ArrayBuffer!==void 0,e=s&&u(m.ArrayBuffer.prototype.slice);O.arraybuffer=O.fetch||s&&i("arraybuffer"),O.msstream=!O.fetch&&e&&i("ms-stream"),O.mozchunkedarraybuffer=!O.fetch&&s&&i("moz-chunked-arraybuffer"),O.overrideMimeType=O.fetch||!!v()&&u(v().overrideMimeType),O.vbArray=u(m.VBArray),d=null}).call(this,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,R,O){(function(m,v,i){"use strict";function u(w,p){return o.fetch&&p?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&w?"arraybuffer":o.vbArray&&w?"text:vbarray":"text"}function d(w){try{var p=w.status;return p!==null&&p!==0}catch(x){return!1}}var s=n("babel-runtime/core-js/object/keys"),e=function(w){return w&&w.__esModule?w:{default:w}}(s),o=n("./capability"),r=n("inherits"),l=n("./response"),f=n("readable-stream"),c=n("to-arraybuffer"),T=l.IncomingMessage,E=l.readyStates,h=R.exports=function(w){var p=this;f.Writable.call(p),p._opts=w,p._body=[],p._headers={},w.auth&&p.setHeader("Authorization","Basic "+new i(w.auth).toString("base64")),(0,e.default)(w.headers).forEach(function(D){p.setHeader(D,w.headers[D])});var x,A=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!o.abortController)A=!1,x=!0;else if(w.mode==="prefer-streaming")x=!1;else if(w.mode==="allow-wrong-content-type")x=!o.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");x=!0}p._mode=u(x,A),p._fetchTimer=null,p.on("finish",function(){p._onFinish()})};r(h,f.Writable),h.prototype.setHeader=function(w,p){var x=this,A=w.toLowerCase();S.indexOf(A)===-1&&(x._headers[A]={name:w,value:p})},h.prototype.getHeader=function(w){var p=this._headers[w.toLowerCase()];return p?p.value:null},h.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},h.prototype._onFinish=function(){var w=this;if(!w._destroyed){var p=w._opts,x=w._headers,A=null;p.method!=="GET"&&p.method!=="HEAD"&&(A=o.arraybuffer?c(i.concat(w._body)):o.blobConstructor?new v.Blob(w._body.map(function(L){return c(L)}),{type:(x["content-type"]||{}).value||""}):i.concat(w._body).toString());var D=[];if((0,e.default)(x).forEach(function(L){var k=x[L].name,z=x[L].value;Array.isArray(z)?z.forEach(function(G){D.push([k,G])}):D.push([k,z])}),w._mode==="fetch"){var b=null;if(o.abortController){var U=new AbortController;b=U.signal,w._fetchAbortController=U,"requestTimeout"in p&&p.requestTimeout!==0&&(w._fetchTimer=v.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},p.requestTimeout))}v.fetch(w._opts.url,{method:w._opts.method,headers:D,body:A||void 0,mode:"cors",credentials:p.withCredentials?"include":"same-origin",signal:b}).then(function(L){w._fetchResponse=L,w._connect()},function(L){v.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",L)})}else{var y=w._xhr=new v.XMLHttpRequest;try{y.open(w._opts.method,w._opts.url,!0)}catch(L){return void m.nextTick(function(){w.emit("error",L)})}"responseType"in y&&(y.responseType=w._mode.split(":")[0]),"withCredentials"in y&&(y.withCredentials=!!p.withCredentials),w._mode==="text"&&"overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in p&&(y.timeout=p.requestTimeout,y.ontimeout=function(){w.emit("requestTimeout")}),D.forEach(function(L){y.setRequestHeader(L[0],L[1])}),w._response=null,y.onreadystatechange=function(){switch(y.readyState){case E.LOADING:case E.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(y.onprogress=function(){w._onXHRProgress()}),y.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{y.send(A)}catch(L){return void m.nextTick(function(){w.emit("error",L)})}}}},h.prototype._onXHRProgress=function(){var w=this;d(w._xhr)&&!w._destroyed&&(w._response||w._connect(),w._response._onXHRProgress())},h.prototype._connect=function(){var w=this;w._destroyed||(w._response=new T(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(p){w.emit("error",p)}),w.emit("response",w._response))},h.prototype._write=function(w,p,x){this._body.push(w),x()},h.prototype.abort=h.prototype.destroy=function(){var w=this;w._destroyed=!0,v.clearTimeout(w._fetchTimer),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort()},h.prototype.end=function(w,p,x){var A=this;typeof w=="function"&&(x=w,w=void 0),f.Writable.prototype.end.call(A,w,p,x)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var S=["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,n("_process"),typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("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(n,R,O){(function(m,v,i){"use strict";var u=n("babel-runtime/core-js/promise"),d=function(f){return f&&f.__esModule?f:{default:f}}(u),s=n("./capability"),e=n("inherits"),o=n("readable-stream"),r=O.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=O.IncomingMessage=function(f,c,T,E){var h=this;if(o.Readable.call(h),h._mode=T,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){m.nextTick(function(){h.emit("close")})}),T==="fetch"){if(h._fetchResponse=c,h.url=c.url,h.statusCode=c.status,h.statusMessage=c.statusText,c.headers.forEach(function(A,D){h.headers[D.toLowerCase()]=A,h.rawHeaders.push(D,A)}),s.writableStream){var S=new WritableStream({write:function(D){return new d.default(function(b,U){h._destroyed?U():h.push(new i(D))?b():h._resumeFetch=b})},close:function(){v.clearTimeout(E),h._destroyed||h.push(null)},abort:function(D){h._destroyed||h.emit("error",D)}});try{return void c.body.pipeTo(S).catch(function(A){v.clearTimeout(E),h._destroyed||h.emit("error",A)})}catch(A){}}var w=c.body.getReader();!function A(){w.read().then(function(D){if(!h._destroyed){if(D.done)return v.clearTimeout(E),void h.push(null);h.push(new i(D.value)),A()}}).catch(function(D){v.clearTimeout(E),h._destroyed||h.emit("error",D)})}()}else if(h._xhr=f,h._pos=0,h.url=f.responseURL,h.statusCode=f.status,h.statusMessage=f.statusText,f.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var D=A.match(/^([^:]+):\s*(.*)/);if(D){var b=D[1].toLowerCase();b==="set-cookie"?(h.headers[b]===void 0&&(h.headers[b]=[]),h.headers[b].push(D[2])):h.headers[b]!==void 0?h.headers[b]+=", "+D[2]:h.headers[b]=D[2],h.rawHeaders.push(D[1],D[2])}}),h._charset="x-user-defined",!s.overrideMimeType){var p=h.rawHeaders["mime-type"];if(p){var x=p.match(/;\s*charset=([^;])(;|$)/);x&&(h._charset=x[1].toLowerCase())}h._charset||(h._charset="utf-8")}};e(l,o.Readable),l.prototype._read=function(){var f=this,c=f._resumeFetch;c&&(f._resumeFetch=null,c())},l.prototype._onXHRProgress=function(){var f=this,c=f._xhr,T=null;switch(f._mode){case"text:vbarray":if(c.readyState!==r.DONE)break;try{T=new v.VBArray(c.responseBody).toArray()}catch(p){}if(T!==null){f.push(new i(T));break}case"text":try{T=c.responseText}catch(p){f._mode="text:vbarray";break}if(T.length>f._pos){var E=T.substr(f._pos);if(f._charset==="x-user-defined"){for(var h=new i(E.length),S=0;S<E.length;S++)h[S]=255&E.charCodeAt(S);f.push(h)}else f.push(E,f._charset);f._pos=T.length}break;case"arraybuffer":if(c.readyState!==r.DONE||!c.response)break;T=c.response,f.push(new i(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=c.response,c.readyState!==r.LOADING||!T)break;f.push(new i(new Uint8Array(T)));break;case"ms-stream":if(T=c.response,c.readyState!==r.LOADING)break;var w=new v.MSStreamReader;w.onprogress=function(){w.result.byteLength>f._pos&&(f.push(new i(new Uint8Array(w.result.slice(f._pos)))),f._pos=w.result.byteLength)},w.onload=function(){f.push(null)},w.readAsArrayBuffer(T)}f._xhr.readyState===r.DONE&&f._mode!=="ms-stream"&&f.push(null)}}).call(this,n("_process"),typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(n,R,O){"use strict";function m(p){if(!p)return"utf8";for(var x;;)switch(p){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 p;default:if(x)return;p=(""+p).toLowerCase(),x=!0}}function v(p){var x=m(p);if(typeof x!="string"&&(S.isEncoding===w||!w(p)))throw new Error("Unknown encoding: "+p);return x||p}function i(p){this.encoding=v(p);var x;switch(this.encoding){case"utf16le":this.text=l,this.end=f,x=4;break;case"utf8":this.fillLast=e,x=4;break;case"base64":this.text=c,this.end=T,x=3;break;default:return this.write=E,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(x)}function u(p){return p<=127?0:p>>5==6?2:p>>4==14?3:p>>3==30?4:p>>6==2?-1:-2}function d(p,x,A){var D=x.length-1;if(D<A)return 0;var b=u(x[D]);return b>=0?(b>0&&(p.lastNeed=b-1),b):--D<A||b===-2?0:(b=u(x[D]))>=0?(b>0&&(p.lastNeed=b-2),b):--D<A||b===-2?0:(b=u(x[D]),b>=0?(b>0&&(b===2?b=0:p.lastNeed=b-3),b):0)}function s(p,x,A){if((192&x[0])!=128)return p.lastNeed=0,"\u951F\uFFFD";if(p.lastNeed>1&&x.length>1){if((192&x[1])!=128)return p.lastNeed=1,"\u951F\uFFFD";if(p.lastNeed>2&&x.length>2&&(192&x[2])!=128)return p.lastNeed=2,"\u951F\uFFFD"}}function e(p){var x=this.lastTotal-this.lastNeed,A=s(this,p,x);return A!==void 0?A:this.lastNeed<=p.length?(p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(p.copy(this.lastChar,x,0,p.length),void(this.lastNeed-=p.length))}function o(p,x){var A=d(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=A;var D=p.length-(A-this.lastNeed);return p.copy(this.lastChar,0,D),p.toString("utf8",x,D)}function r(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"\u951F\uFFFD":x}function l(p,x){if((p.length-x)%2==0){var A=p.toString("utf16le",x);if(A){var D=A.charCodeAt(A.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function f(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function c(p,x){var A=(p.length-x)%3;return A===0?p.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-A))}function T(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function E(p){return p.toString(this.encoding)}function h(p){return p&&p.length?this.write(p):""}var S=n("safe-buffer").Buffer,w=S.isEncoding||function(p){switch((p=""+p)&&p.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}};O.StringDecoder=i,i.prototype.write=function(p){if(p.length===0)return"";var x,A;if(this.lastNeed){if((x=this.fillLast(p))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<p.length?x?x+this.text(p,A):this.text(p,A):x||""},i.prototype.end=r,i.prototype.text=o,i.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length}},{"safe-buffer":193}],201:[function(n,R,O){(function(m,v){function i(r,l){this._id=r,this._clearFn=l}var u=n("process/browser.js").nextTick,d=Function.prototype.apply,s=Array.prototype.slice,e={},o=0;O.setTimeout=function(){return new i(d.call(setTimeout,window,arguments),clearTimeout)},O.setInterval=function(){return new i(d.call(setInterval,window,arguments),clearInterval)},O.clearTimeout=O.clearInterval=function(r){r.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},O.enroll=function(r,l){clearTimeout(r._idleTimeoutId),r._idleTimeout=l},O.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},O._unrefActive=O.active=function(r){clearTimeout(r._idleTimeoutId);var l=r._idleTimeout;l>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},l))},O.setImmediate=typeof m=="function"?m:function(r){var l=o++,f=!(arguments.length<2)&&s.call(arguments,1);return e[l]=!0,u(function(){e[l]&&(f?r.apply(null,f):r.call(null),O.clearImmediate(l))}),l},O.clearImmediate=typeof v=="function"?v:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,R,O){var m=n("buffer").Buffer;R.exports=function(v){if(v instanceof Uint8Array){if(v.byteOffset===0&&v.byteLength===v.buffer.byteLength)return v.buffer;if(typeof v.buffer.slice=="function")return v.buffer.slice(v.byteOffset,v.byteOffset+v.byteLength)}if(m.isBuffer(v)){for(var i=new Uint8Array(v.length),u=v.length,d=0;d<u;d++)i[d]=v[d];return i.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,R,O){"use strict";function m(){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 v(b,U,y){if(b&&e.isObject(b)&&b instanceof m)return b;var L=new m;return L.parse(b,U,y),L}function i(b){return e.isString(b)&&(b=v(b)),b instanceof m?b.format():m.prototype.format.call(b)}function u(b,U){return v(b,!1,!0).resolve(U)}function d(b,U){return b?v(b,!1,!0).resolveObject(U):U}var s=n("punycode"),e=n("./util");O.parse=v,O.resolve=u,O.resolveObject=d,O.format=i,O.Url=m;var o=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
||
`," "],c=["{","}","|","\\","^","`"].concat(f),T=["'"].concat(c),E=["%","/","?",";","#"].concat(T),h=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},D=n("querystring");m.prototype.parse=function(b,U,y){if(!e.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var L=b.indexOf("?"),k=L!==-1&&L<b.indexOf("#")?"?":"#",z=b.split(k),G=/\\/g;z[0]=z[0].replace(G,"/"),b=z.join(k);var q=b;if(q=q.trim(),!y&&b.split("#").length===1){var re=l.exec(q);if(re)return this.path=q,this.href=q,this.pathname=re[1],re[2]?(this.search=re[2],this.query=U?D.parse(this.search.substr(1)):this.search.substr(1)):U&&(this.search="",this.query={}),this}var X=o.exec(q);if(X){X=X[0];var ne=X.toLowerCase();this.protocol=ne,q=q.substr(X.length)}if(y||X||q.match(/^\/\/[^@\/]+@[^@\/]+/)){var J=q.substr(0,2)==="//";!J||X&&x[X]||(q=q.substr(2),this.slashes=!0)}if(!x[X]&&(J||X&&!A[X])){for(var H=-1,I=0;I<h.length;I++){var j=q.indexOf(h[I]);j!==-1&&(H===-1||j<H)&&(H=j)}var B,M;M=H===-1?q.lastIndexOf("@"):q.lastIndexOf("@",H),M!==-1&&(B=q.slice(0,M),q=q.slice(M+1),this.auth=decodeURIComponent(B)),H=-1;for(var I=0;I<E.length;I++){var j=q.indexOf(E[I]);j!==-1&&(H===-1||j<H)&&(H=j)}H===-1&&(H=q.length),this.host=q.slice(0,H),q=q.slice(H),this.parseHost(),this.hostname=this.hostname||"";var V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V)for(var Y=this.hostname.split(/\./),I=0,ae=Y.length;I<ae;I++){var Q=Y[I];if(Q&&!Q.match(S)){for(var le="",he=0,Z=Q.length;he<Z;he++)Q.charCodeAt(he)>127?le+="x":le+=Q[he];if(!le.match(S)){var $=Y.slice(0,I),oe=Y.slice(I+1),W=Q.match(w);W&&($.push(W[1]),oe.unshift(W[2])),oe.length&&(q="/"+oe.join(".")+q),this.hostname=$.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=s.toASCII(this.hostname));var N=this.port?":"+this.port:"",ie=this.hostname||"";this.host=ie+N,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),q[0]!=="/"&&(q="/"+q))}if(!p[ne])for(var I=0,ae=T.length;I<ae;I++){var ee=T[I];if(q.indexOf(ee)!==-1){var de=encodeURIComponent(ee);de===ee&&(de=escape(ee)),q=q.split(ee).join(de)}}var P=q.indexOf("#");P!==-1&&(this.hash=q.substr(P),q=q.slice(0,P));var t=q.indexOf("?");if(t!==-1?(this.search=q.substr(t),this.query=q.substr(t+1),U&&(this.query=D.parse(this.query)),q=q.slice(0,t)):U&&(this.search="",this.query={}),q&&(this.pathname=q),A[ne]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",a=this.search||"";this.path=N+a}return this.href=this.format(),this},m.prototype.format=function(){var b=this.auth||"";b&&(b=encodeURIComponent(b),b=b.replace(/%3A/i,":"),b+="@");var U=this.protocol||"",y=this.pathname||"",L=this.hash||"",k=!1,z="";this.host?k=b+this.host:this.hostname&&(k=b+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(k+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(z=D.stringify(this.query));var G=this.search||z&&"?"+z||"";return U&&U.substr(-1)!==":"&&(U+=":"),this.slashes||(!U||A[U])&&k!==!1?(k="//"+(k||""),y&&y.charAt(0)!=="/"&&(y="/"+y)):k||(k=""),L&&L.charAt(0)!=="#"&&(L="#"+L),G&&G.charAt(0)!=="?"&&(G="?"+G),y=y.replace(/[?#]/g,function(q){return encodeURIComponent(q)}),G=G.replace("#","%23"),U+k+y+G+L},m.prototype.resolve=function(b){return this.resolveObject(v(b,!1,!0)).format()},m.prototype.resolveObject=function(b){if(e.isString(b)){var U=new m;U.parse(b,!1,!0),b=U}for(var y=new m,L=Object.keys(this),k=0;k<L.length;k++){var z=L[k];y[z]=this[z]}if(y.hash=b.hash,b.href==="")return y.href=y.format(),y;if(b.slashes&&!b.protocol){for(var G=Object.keys(b),q=0;q<G.length;q++){var re=G[q];re!=="protocol"&&(y[re]=b[re])}return A[y.protocol]&&y.hostname&&!y.pathname&&(y.path=y.pathname="/"),y.href=y.format(),y}if(b.protocol&&b.protocol!==y.protocol){if(!A[b.protocol]){for(var X=Object.keys(b),ne=0;ne<X.length;ne++){var J=X[ne];y[J]=b[J]}return y.href=y.format(),y}if(y.protocol=b.protocol,b.host||x[b.protocol])y.pathname=b.pathname;else{for(var ae=(b.pathname||"").split("/");ae.length&&!(b.host=ae.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),ae[0]!==""&&ae.unshift(""),ae.length<2&&ae.unshift(""),y.pathname=ae.join("/")}if(y.search=b.search,y.query=b.query,y.host=b.host||"",y.auth=b.auth,y.hostname=b.hostname||b.host,y.port=b.port,y.pathname||y.search){var H=y.pathname||"",I=y.search||"";y.path=H+I}return y.slashes=y.slashes||b.slashes,y.href=y.format(),y}var j=y.pathname&&y.pathname.charAt(0)==="/",B=b.host||b.pathname&&b.pathname.charAt(0)==="/",M=B||j||y.host&&b.pathname,V=M,Y=y.pathname&&y.pathname.split("/")||[],ae=b.pathname&&b.pathname.split("/")||[],Q=y.protocol&&!A[y.protocol];if(Q&&(y.hostname="",y.port=null,y.host&&(Y[0]===""?Y[0]=y.host:Y.unshift(y.host)),y.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(ae[0]===""?ae[0]=b.host:ae.unshift(b.host)),b.host=null),M=M&&(ae[0]===""||Y[0]==="")),B)y.host=b.host||b.host===""?b.host:y.host,y.hostname=b.hostname||b.hostname===""?b.hostname:y.hostname,y.search=b.search,y.query=b.query,Y=ae;else if(ae.length)Y||(Y=[]),Y.pop(),Y=Y.concat(ae),y.search=b.search,y.query=b.query;else if(!e.isNullOrUndefined(b.search)){if(Q){y.hostname=y.host=Y.shift();var le=!!(y.host&&y.host.indexOf("@")>0)&&y.host.split("@");le&&(y.auth=le.shift(),y.host=y.hostname=le.shift())}return y.search=b.search,y.query=b.query,e.isNull(y.pathname)&&e.isNull(y.search)||(y.path=(y.pathname?y.pathname:"")+(y.search?y.search:"")),y.href=y.format(),y}if(!Y.length)return y.pathname=null,y.search?y.path="/"+y.search:y.path=null,y.href=y.format(),y;for(var he=Y.slice(-1)[0],Z=(y.host||b.host||Y.length>1)&&(he==="."||he==="..")||he==="",$=0,oe=Y.length;oe>=0;oe--)he=Y[oe],he==="."?Y.splice(oe,1):he===".."?(Y.splice(oe,1),$++):$&&(Y.splice(oe,1),$--);if(!M&&!V)for(;$--;$)Y.unshift("..");!M||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Z&&Y.join("/").substr(-1)!=="/"&&Y.push("");var W=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(Q){y.hostname=y.host=W?"":Y.length?Y.shift():"";var le=!!(y.host&&y.host.indexOf("@")>0)&&y.host.split("@");le&&(y.auth=le.shift(),y.host=y.hostname=le.shift())}return M=M||y.host&&Y.length,M&&!W&&Y.unshift(""),Y.length?y.pathname=Y.join("/"):(y.pathname=null,y.path=null),e.isNull(y.pathname)&&e.isNull(y.search)||(y.path=(y.pathname?y.pathname:"")+(y.search?y.search:"")),y.auth=b.auth||y.auth,y.slashes=y.slashes||b.slashes,y.href=y.format(),y},m.prototype.parseHost=function(){var b=this.host,U=r.exec(b);U&&(U=U[0],U!==":"&&(this.port=U.substr(1)),b=b.substr(0,b.length-U.length)),b&&(this.hostname=b)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,R,O){"use strict";R.exports={isString:function(v){return typeof v=="string"},isObject:function(v){return typeof v=="object"&&v!==null},isNull:function(v){return v===null},isNullOrUndefined:function(v){return v==null}}},{}],205:[function(n,R,O){(function(m){function v(u,d){function s(){if(!e){if(i("throwDeprecation"))throw new Error(d);i("traceDeprecation")?console.trace(d):console.warn(d),e=!0}return u.apply(this,arguments)}if(i("noDeprecation"))return u;var e=!1;return s}function i(u){try{if(!m.localStorage)return!1}catch(s){return!1}var d=m.localStorage[u];return d!=null&&String(d).toLowerCase()==="true"}R.exports=v}).call(this,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,R,O){R.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(n,R,O){(function(m,v){function i(I,j){var B={seen:[],stylize:d};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),E(j)?B.showHidden=j:j&&O._extend(B,j),A(B.showHidden)&&(B.showHidden=!1),A(B.depth)&&(B.depth=2),A(B.colors)&&(B.colors=!1),A(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=u),e(B,I,B.depth)}function u(I,j){var B=i.styles[j];return B?"["+i.colors[B][0]+"m"+I+"["+i.colors[B][1]+"m":I}function d(I,j){return I}function s(I){var j={};return I.forEach(function(B,M){j[B]=!0}),j}function e(I,j,B){if(I.customInspect&&j&&L(j.inspect)&&j.inspect!==O.inspect&&(!j.constructor||j.constructor.prototype!==j)){var M=j.inspect(B,I);return p(M)||(M=e(I,M,B)),M}var V=o(I,j);if(V)return V;var Y=Object.keys(j),ae=s(Y);if(I.showHidden&&(Y=Object.getOwnPropertyNames(j)),y(j)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(j);if(Y.length===0){if(L(j)){var Q=j.name?": "+j.name:"";return I.stylize("[Function"+Q+"]","special")}if(D(j))return I.stylize(RegExp.prototype.toString.call(j),"regexp");if(U(j))return I.stylize(Date.prototype.toString.call(j),"date");if(y(j))return r(j)}var le="",he=!1,Z=["{","}"];if((T(j)&&(he=!0,Z=["[","]"]),L(j))&&(le=" [Function"+(j.name?": "+j.name:"")+"]"),D(j)&&(le=" "+RegExp.prototype.toString.call(j)),U(j)&&(le=" "+Date.prototype.toUTCString.call(j)),y(j)&&(le=" "+r(j)),Y.length===0&&(!he||j.length==0))return Z[0]+le+Z[1];if(B<0)return D(j)?I.stylize(RegExp.prototype.toString.call(j),"regexp"):I.stylize("[Object]","special");I.seen.push(j);var $;return $=he?l(I,j,B,ae,Y):Y.map(function(oe){return f(I,j,B,ae,oe,he)}),I.seen.pop(),c($,le,Z)}function o(I,j){if(A(j))return I.stylize("undefined","undefined");if(p(j)){var B="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(B,"string")}return w(j)?I.stylize(""+j,"number"):E(j)?I.stylize(""+j,"boolean"):h(j)?I.stylize("null","null"):void 0}function r(I){return"["+Error.prototype.toString.call(I)+"]"}function l(I,j,B,M,V){for(var Y=[],ae=0,Q=j.length;ae<Q;++ae)re(j,String(ae))?Y.push(f(I,j,B,M,String(ae),!0)):Y.push("");return V.forEach(function(le){le.match(/^\d+$/)||Y.push(f(I,j,B,M,le,!0))}),Y}function f(I,j,B,M,V,Y){var ae,Q,le;if(le=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},le.get?Q=le.set?I.stylize("[Getter/Setter]","special"):I.stylize("[Getter]","special"):le.set&&(Q=I.stylize("[Setter]","special")),re(M,V)||(ae="["+V+"]"),Q||(I.seen.indexOf(le.value)<0?(Q=h(B)?e(I,le.value,null):e(I,le.value,B-1),Q.indexOf(`
|
||
`)>-1&&(Q=Y?Q.split(`
|
||
`).map(function(he){return" "+he}).join(`
|
||
`).substr(2):`
|
||
`+Q.split(`
|
||
`).map(function(he){return" "+he}).join(`
|
||
`))):Q=I.stylize("[Circular]","special")),A(ae)){if(Y&&V.match(/^\d+$/))return Q;ae=JSON.stringify(""+V),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=I.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=I.stylize(ae,"string"))}return ae+": "+Q}function c(I,j,B){var M=0;return I.reduce(function(V,Y){return M++,Y.indexOf(`
|
||
`)>=0&&M++,V+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?B[0]+(j===""?"":j+`
|
||
`)+" "+I.join(`,
|
||
`)+" "+B[1]:B[0]+j+" "+I.join(", ")+" "+B[1]}function T(I){return Array.isArray(I)}function E(I){return typeof I=="boolean"}function h(I){return I===null}function S(I){return I==null}function w(I){return typeof I=="number"}function p(I){return typeof I=="string"}function x(I){return typeof I=="symbol"}function A(I){return I===void 0}function D(I){return b(I)&&z(I)==="[object RegExp]"}function b(I){return typeof I=="object"&&I!==null}function U(I){return b(I)&&z(I)==="[object Date]"}function y(I){return b(I)&&(z(I)==="[object Error]"||I instanceof Error)}function L(I){return typeof I=="function"}function k(I){return I===null||typeof I=="boolean"||typeof I=="number"||typeof I=="string"||typeof I=="symbol"||I===void 0}function z(I){return Object.prototype.toString.call(I)}function G(I){return I<10?"0"+I.toString(10):I.toString(10)}function q(){var I=new Date,j=[G(I.getHours()),G(I.getMinutes()),G(I.getSeconds())].join(":");return[I.getDate(),H[I.getMonth()],j].join(" ")}function re(I,j){return Object.prototype.hasOwnProperty.call(I,j)}var X=/%[sdj%]/g;O.format=function(I){if(!p(I)){for(var j=[],B=0;B<arguments.length;B++)j.push(i(arguments[B]));return j.join(" ")}for(var B=1,M=arguments,V=M.length,Y=String(I).replace(X,function(le){if(le==="%%")return"%";if(B>=V)return le;switch(le){case"%s":return String(M[B++]);case"%d":return Number(M[B++]);case"%j":try{return JSON.stringify(M[B++])}catch(he){return"[Circular]"}default:return le}}),ae=M[B];B<V;ae=M[++B])h(ae)||!b(ae)?Y+=" "+ae:Y+=" "+i(ae);return Y},O.deprecate=function(I,j){function B(){if(!M){if(m.throwDeprecation)throw new Error(j);m.traceDeprecation?console.trace(j):console.error(j),M=!0}return I.apply(this,arguments)}if(A(v.process))return function(){return O.deprecate(I,j).apply(this,arguments)};if(m.noDeprecation===!0)return I;var M=!1;return B};var ne,J={};O.debuglog=function(I){if(A(ne)&&(ne=m.env.NODE_DEBUG||""),I=I.toUpperCase(),!J[I])if(new RegExp("\\b"+I+"\\b","i").test(ne)){var j=m.pid;J[I]=function(){var B=O.format.apply(O,arguments);console.error("%s %d: %s",I,j,B)}}else J[I]=function(){};return J[I]},O.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"},O.isArray=T,O.isBoolean=E,O.isNull=h,O.isNullOrUndefined=S,O.isNumber=w,O.isString=p,O.isSymbol=x,O.isUndefined=A,O.isRegExp=D,O.isObject=b,O.isDate=U,O.isError=y,O.isFunction=L,O.isPrimitive=k,O.isBuffer=n("./support/isBuffer");var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];O.log=function(){console.log("%s - %s",q(),O.format.apply(O,arguments))},O.inherits=n("inherits"),O._extend=function(I,j){if(!j||!b(j))return I;for(var B=Object.keys(j),M=B.length;M--;)I[B[M]]=j[B[M]];return I}}).call(this,n("_process"),typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,R,O){"use strict";(function(){O.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],209:[function(n,R,O){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var v=n("babel-runtime/helpers/typeof"),i=m(v),u=n("babel-runtime/core-js/object/keys"),d=m(u);(function(){var s,e,o,r,l,f={}.hasOwnProperty;s=n("xmlbuilder"),e=n("./defaults").defaults,r=function(T){return typeof T=="string"&&(T.indexOf("&")>=0||T.indexOf(">")>=0||T.indexOf("<")>=0)},l=function(T){return"<![CDATA["+o(T)+"]]>"},o=function(T){return T.replace("]]>","]]]]><![CDATA[>")},O.Builder=function(){function c(T){var E,h,S;this.options={},h=e[.2];for(E in h)f.call(h,E)&&(S=h[E],this.options[E]=S);for(E in T)f.call(T,E)&&(S=T[E],this.options[E]=S)}return c.prototype.buildObject=function(T){var E,h,S,w,p;return E=this.options.attrkey,h=this.options.charkey,(0,d.default)(T).length===1&&this.options.rootName===e[.2].rootName?(p=(0,d.default)(T)[0],T=T[p]):p=this.options.rootName,S=function(x){return function(A,D){var b,U,y,L,k,z;if((D===void 0?"undefined":(0,i.default)(D))!=="object")x.options.cdata&&r(D)?A.raw(l(D)):A.txt(D);else if(Array.isArray(D)){for(L in D)if(f.call(D,L)){U=D[L];for(k in U)y=U[k],A=S(A.ele(k),y).up()}}else for(k in D)if(f.call(D,k))if(U=D[k],k===E){if((U===void 0?"undefined":(0,i.default)(U))==="object")for(b in U)z=U[b],A=A.att(b,z)}else if(k===h)A=x.options.cdata&&r(U)?A.raw(l(U)):A.txt(U);else if(Array.isArray(U))for(L in U)f.call(U,L)&&(y=U[L],A=typeof y=="string"?x.options.cdata&&r(y)?A.ele(k).raw(l(y)).up():A.ele(k,y).up():S(A.ele(k),y).up());else(U===void 0?"undefined":(0,i.default)(U))==="object"?A=S(A.ele(k),U).up():typeof U=="string"&&x.options.cdata&&r(U)?A=A.ele(k).raw(l(U)).up():(U==null&&(U=""),A=A.ele(k,U.toString()).up());return A}}(this),w=s.create(p,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),S(w,T).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,R,O){"use strict";(function(){O.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:`
|
||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(n,R,O){"use strict";function m(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-own-property-names"),i=m(v),u=n("babel-runtime/core-js/object/keys"),d=m(u),s=n("babel-runtime/helpers/typeof"),e=m(s);(function(){var o,r,l,f,c,T,E,h,S=function(A,D){return function(){return A.apply(D,arguments)}},w=function(A,D){function b(){this.constructor=A}for(var U in D)p.call(D,U)&&(A[U]=D[U]);return b.prototype=D.prototype,A.prototype=new b,A.__super__=D.prototype,A},p={}.hasOwnProperty;E=n("sax"),l=n("events"),o=n("./bom"),T=n("./processors"),h=n("timers").setImmediate,r=n("./defaults").defaults,f=function(A){return(A===void 0?"undefined":(0,e.default)(A))==="object"&&A!=null&&(0,d.default)(A).length===0},c=function(A,D,b){var U,y,L;for(U=0,y=A.length;U<y;U++)L=A[U],D=L(D,b);return D},O.Parser=function(x){function A(D){this.parseString=S(this.parseString,this),this.reset=S(this.reset,this),this.assignOrPush=S(this.assignOrPush,this),this.processAsync=S(this.processAsync,this);var b,U,y;if(!(this instanceof O.Parser))return new O.Parser(D);this.options={},U=r[.2];for(b in U)p.call(U,b)&&(y=U[b],this.options[b]=y);for(b in D)p.call(D,b)&&(y=D[b],this.options[b]=y);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(T.normalize)),this.reset()}return w(A,x),A.prototype.processAsync=function(){var D,b;try{return this.remaining.length<=this.options.chunkSize?(D=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(D),this.saxParser.close()):(D=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(D),h(this.processAsync))}catch(U){if(b=U,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(b)}},A.prototype.assignOrPush=function(D,b,U){return b in D?(D[b]instanceof Array||(D[b]=[D[b]]),D[b].push(U)):this.options.explicitArray?D[b]=[U]:D[b]=U},A.prototype.reset=function(){var D,b,U,y;return this.removeAllListeners(),this.saxParser=E.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(L){return function(k){if(L.saxParser.resume(),!L.saxParser.errThrown)return L.saxParser.errThrown=!0,L.emit("error",k)}}(this),this.saxParser.onend=function(L){return function(){if(!L.saxParser.ended)return L.saxParser.ended=!0,L.emit("end",L.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,y=[],D=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=function(L){return function(k){var z,G,q,re,X;if(q={},q[b]="",!L.options.ignoreAttrs){X=k.attributes;for(z in X)p.call(X,z)&&(D in q||L.options.mergeAttrs||(q[D]={}),G=L.options.attrValueProcessors?c(L.options.attrValueProcessors,k.attributes[z],z):k.attributes[z],re=L.options.attrNameProcessors?c(L.options.attrNameProcessors,z):z,L.options.mergeAttrs?L.assignOrPush(q,re,G):q[D][re]=G)}return q["#name"]=L.options.tagNameProcessors?c(L.options.tagNameProcessors,k.name):k.name,L.options.xmlns&&(q[L.options.xmlnskey]={uri:k.uri,local:k.local}),y.push(q)}}(this),this.saxParser.onclosetag=function(L){return function(){var k,z,G,q,re,X,ne,J,H,I;if(X=y.pop(),re=X["#name"],L.options.explicitChildren&&L.options.preserveChildrenOrder||delete X["#name"],X.cdata===!0&&(k=X.cdata,delete X.cdata),H=y[y.length-1],X[b].match(/^\s*$/)&&!k?(z=X[b],delete X[b]):(L.options.trim&&(X[b]=X[b].trim()),L.options.normalize&&(X[b]=X[b].replace(/\s{2,}/g," ").trim()),X[b]=L.options.valueProcessors?c(L.options.valueProcessors,X[b],re):X[b],(0,d.default)(X).length===1&&b in X&&!L.EXPLICIT_CHARKEY&&(X=X[b])),f(X)&&(X=L.options.emptyTag!==""?L.options.emptyTag:z),L.options.validator!=null&&(I="/"+function(){var j,B,M;for(M=[],j=0,B=y.length;j<B;j++)q=y[j],M.push(q["#name"]);return M}().concat(re).join("/"),function(){var j;try{X=L.options.validator(I,H&&H[re],X)}catch(B){return j=B,L.emit("error",j)}}()),L.options.explicitChildren&&!L.options.mergeAttrs&&(X===void 0?"undefined":(0,e.default)(X))==="object")if(L.options.preserveChildrenOrder){if(H){H[L.options.childkey]=H[L.options.childkey]||[],ne={};for(G in X)p.call(X,G)&&(ne[G]=X[G]);H[L.options.childkey].push(ne),delete X["#name"],(0,d.default)(X).length===1&&b in X&&!L.EXPLICIT_CHARKEY&&(X=X[b])}}else q={},L.options.attrkey in X&&(q[L.options.attrkey]=X[L.options.attrkey],delete X[L.options.attrkey]),!L.options.charsAsChildren&&L.options.charkey in X&&(q[L.options.charkey]=X[L.options.charkey],delete X[L.options.charkey]),(0,i.default)(X).length>0&&(q[L.options.childkey]=X),X=q;return y.length>0?L.assignOrPush(H,re,X):(L.options.explicitRoot&&(J=X,X={},X[re]=J),L.resultObject=X,L.saxParser.ended=!0,L.emit("end",L.resultObject))}}(this),U=function(L){return function(k){var z,G;if(G=y[y.length-1])return G[b]+=k,L.options.explicitChildren&&L.options.preserveChildrenOrder&&L.options.charsAsChildren&&(L.options.includeWhiteChars||k.replace(/\\n/g,"").trim()!=="")&&(G[L.options.childkey]=G[L.options.childkey]||[],z={"#name":"__text__"},z[b]=k,L.options.normalize&&(z[b]=z[b].replace(/\s{2,}/g," ").trim()),G[L.options.childkey].push(z)),G}}(this),this.saxParser.ontext=U,this.saxParser.oncdata=function(L){return function(k){var z;if(z=U(k))return z.cdata=!0}}()},A.prototype.parseString=function(D,b){var U;b!=null&&typeof b=="function"&&(this.on("end",function(y){return this.reset(),b(null,y)}),this.on("error",function(y){return this.reset(),b(y)}));try{return D=D.toString(),D.trim()===""?(this.emit("end",null),!0):(D=o.stripBOM(D),this.options.async?(this.remaining=D,h(this.processAsync),this.saxParser):this.saxParser.write(D).close())}catch(y){if(U=y,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",U),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw U}},A}(l.EventEmitter),O.parseString=function(x,A,D){var b,U,y;return D!=null?(typeof D=="function"&&(b=D),(A===void 0?"undefined":(0,e.default)(A))==="object"&&(U=A)):(typeof A=="function"&&(b=A),U={}),y=new O.Parser(U),y.parseString(x,b)}}).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(n,R,O){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),O.normalize=function(v){return v.toLowerCase()},O.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},O.stripPrefix=function(v){return v.replace(m,"")},O.parseNumbers=function(v){return isNaN(v)||(v=v%1==0?parseInt(v,10):parseFloat(v)),v},O.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v=v.toLowerCase()==="true"),v}}).call(void 0)},{}],213:[function(n,R,O){"use strict";(function(){var m,v,i,u,d=function(o,r){function l(){this.constructor=o}for(var f in r)s.call(r,f)&&(o[f]=r[f]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},s={}.hasOwnProperty;v=n("./defaults"),m=n("./builder"),i=n("./parser"),u=n("./processors"),O.defaults=v.defaults,O.processors=u,O.ValidationError=function(e){function o(r){this.message=r}return d(o,e),o}(Error),O.Builder=m.Builder,O.Parser=i.Parser,O.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,R,O){"use strict";function m(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-prototype-of"),i=m(v),u=n("babel-runtime/helpers/typeof"),d=m(u),s=n("babel-runtime/core-js/object/assign"),e=m(s);(function(){var o,r,l,f,c,T,E=[].slice,h={}.hasOwnProperty;o=function(){var w,p,x,A,D,b;if(b=arguments[0],D=2<=arguments.length?E.call(arguments,1):[],f(e.default))e.default.apply(null,arguments);else for(w=0,x=D.length;w<x;w++)if((A=D[w])!=null)for(p in A)h.call(A,p)&&(b[p]=A[p]);return b},f=function(w){return!!w&&Object.prototype.toString.call(w)==="[object Function]"},c=function(w){var p;return!!w&&((p=w===void 0?"undefined":(0,d.default)(w))==="function"||p==="object")},r=function(w){return f(Array.isArray)?Array.isArray(w):Object.prototype.toString.call(w)==="[object Array]"},l=function(w){var p;if(r(w))return!w.length;for(p in w)if(h.call(w,p))return!1;return!0},T=function(w){var p,x;return c(w)&&(x=(0,i.default)(w))&&(p=x.constructor)&&typeof p=="function"&&p instanceof p&&Function.prototype.toString.call(p)===Function.prototype.toString.call(Object)},R.exports.assign=o,R.exports.isFunction=f,R.exports.isObject=c,R.exports.isArray=r,R.exports.isEmpty=l,R.exports.isPlainObject=T}).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(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){R.exports=function(){function i(u,d,s){if(this.options=u.options,this.stringify=u.stringify,d==null)throw new Error("Missing attribute name of element "+u.name);if(s==null)throw new Error("Missing attribute value for attribute "+d+" of element "+u.name);this.name=this.stringify.attName(d),this.value=this.stringify.attValue(s)}return i.prototype.clone=function(){return(0,v.default)(this)},i.prototype.toString=function(u){return this.options.writer.set(u).attribute(this)},i}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),R.exports=function(s){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return u(e,s),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),R.exports=function(s){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return u(e,s),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,R,O){"use strict";(function(){var m,v=function(d,s){function e(){this.constructor=d}for(var o in s)i.call(s,o)&&(d[o]=s[o]);return e.prototype=s.prototype,d.prototype=new e,d.__super__=s.prototype,d},i={}.hasOwnProperty;m=n("./XMLNode"),R.exports=function(u){function d(s,e,o,r,l,f){if(d.__super__.constructor.call(this,s),e==null)throw new Error("Missing DTD element name");if(o==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!l)throw new Error("Missing DTD attribute default");if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(f&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(o),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=l}return v(d,u),d.prototype.toString=function(s){return this.options.writer.set(s).dtdAttList(this)},d}(m)}).call(void 0)},{"./XMLNode":227}],219:[function(n,R,O){"use strict";(function(){var m,v=function(d,s){function e(){this.constructor=d}for(var o in s)i.call(s,o)&&(d[o]=s[o]);return e.prototype=s.prototype,d.prototype=new e,d.__super__=s.prototype,d},i={}.hasOwnProperty;m=n("./XMLNode"),R.exports=function(u){function d(s,e,o){if(d.__super__.constructor.call(this,s),e==null)throw new Error("Missing DTD element name");o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(o)}return v(d,u),d.prototype.toString=function(s){return this.options.writer.set(s).dtdElement(this)},d}(m)}).call(void 0)},{"./XMLNode":227}],220:[function(n,R,O){"use strict";(function(){var m,v,i=function(s,e){function o(){this.constructor=s}for(var r in e)u.call(e,r)&&(s[r]=e[r]);return o.prototype=e.prototype,s.prototype=new o,s.__super__=e.prototype,s},u={}.hasOwnProperty;v=n("./Utility").isObject,m=n("./XMLNode"),R.exports=function(d){function s(e,o,r,l){if(s.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(l==null)throw new Error("Missing entity value");if(this.pe=!!o,this.name=this.stringify.eleName(r),v(l)){if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity");if(l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(l)}return i(s,d),s.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},s}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,R,O){"use strict";(function(){var m,v=function(d,s){function e(){this.constructor=d}for(var o in s)i.call(s,o)&&(d[o]=s[o]);return e.prototype=s.prototype,d.prototype=new e,d.__super__=s.prototype,d},i={}.hasOwnProperty;m=n("./XMLNode"),R.exports=function(u){function d(s,e,o){if(d.__super__.constructor.call(this,s),e==null)throw new Error("Missing notation name");if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return v(d,u),d.prototype.toString=function(s){return this.options.writer.set(s).dtdNotation(this)},d}(m)}).call(void 0)},{"./XMLNode":227}],222:[function(n,R,O){"use strict";(function(){var m,v,i=function(s,e){function o(){this.constructor=s}for(var r in e)u.call(e,r)&&(s[r]=e[r]);return o.prototype=e.prototype,s.prototype=new o,s.__super__=e.prototype,s},u={}.hasOwnProperty;v=n("./Utility").isObject,m=n("./XMLNode"),R.exports=function(d){function s(e,o,r,l){var f;s.__super__.constructor.call(this,e),v(o)&&(f=o,o=f.version,r=f.encoding,l=f.standalone),o||(o="1.0"),this.version=this.stringify.xmlVersion(o),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return i(s,d),s.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},s}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e=function(l,f){function c(){this.constructor=l}for(var T in f)o.call(f,T)&&(l[T]=f[T]);return c.prototype=f.prototype,l.prototype=new c,l.__super__=f.prototype,l},o={}.hasOwnProperty;s=n("./Utility").isObject,d=n("./XMLNode"),m=n("./XMLDTDAttList"),i=n("./XMLDTDEntity"),v=n("./XMLDTDElement"),u=n("./XMLDTDNotation"),R.exports=function(r){function l(f,c,T){var E,h;l.__super__.constructor.call(this,f),this.documentObject=f,s(c)&&(E=c,c=E.pubID,T=E.sysID),T==null&&(h=[c,T],T=h[0],c=h[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return e(l,r),l.prototype.element=function(f,c){var T;return T=new v(this,f,c),this.children.push(T),this},l.prototype.attList=function(f,c,T,E,h){var S;return S=new m(this,f,c,T,E,h),this.children.push(S),this},l.prototype.entity=function(f,c){var T;return T=new i(this,!1,f,c),this.children.push(T),this},l.prototype.pEntity=function(f,c){var T;return T=new i(this,!0,f,c),this.children.push(T),this},l.prototype.notation=function(f,c){var T;return T=new u(this,f,c),this.children.push(T),this},l.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},l.prototype.ele=function(f,c){return this.element(f,c)},l.prototype.att=function(f,c,T,E,h){return this.attList(f,c,T,E,h)},l.prototype.ent=function(f,c){return this.entity(f,c)},l.prototype.pent=function(f,c){return this.pEntity(f,c)},l.prototype.not=function(f,c){return this.notation(f,c)},l.prototype.up=function(){return this.root()||this.documentObject},l}(d)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,R,O){"use strict";(function(){var m,v,i,u,d=function(o,r){function l(){this.constructor=o}for(var f in r)s.call(r,f)&&(o[f]=r[f]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},s={}.hasOwnProperty;u=n("./Utility").isPlainObject,m=n("./XMLNode"),i=n("./XMLStringifier"),v=n("./XMLStringWriter"),R.exports=function(e){function o(r){o.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new v),this.options=r,this.stringify=new i(r),this.isDocument=!0}return d(o,e),o.prototype.end=function(r){var l;return r?u(r)&&(l=r,r=this.options.writer.set(l)):r=this.options.writer,r.document(this)},o.prototype.toString=function(r){return this.options.writer.set(r).document(this)},o}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e,o,r,l,f,c,T,E,h,S,w,p,x,A={}.hasOwnProperty;x=n("./Utility"),w=x.isObject,S=x.isFunction,p=x.isPlainObject,l=n("./XMLElement"),v=n("./XMLCData"),i=n("./XMLComment"),c=n("./XMLRaw"),h=n("./XMLText"),f=n("./XMLProcessingInstruction"),o=n("./XMLDeclaration"),r=n("./XMLDocType"),u=n("./XMLDTDAttList"),s=n("./XMLDTDEntity"),d=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),m=n("./XMLAttribute"),E=n("./XMLStringifier"),T=n("./XMLStringWriter"),R.exports=function(){function D(b,U,y){var L;b||(b={}),b.writer?p(b.writer)&&(L=b.writer,b.writer=new T(L)):b.writer=new T(b),this.options=b,this.writer=b.writer,this.stringify=new E(b),this.onDataCallback=U||function(){},this.onEndCallback=y||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return D.prototype.node=function(b,U,y){var L;if(b==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),b=b.valueOf(),U==null&&(U={}),U=U.valueOf(),w(U)||(L=[U,y],y=L[0],U=L[1]),this.currentNode=new l(this,b,U),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,y!=null&&this.text(y),this},D.prototype.element=function(b,U,y){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(b,U,y)},D.prototype.attribute=function(b,U){var y,L;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(b!=null&&(b=b.valueOf()),w(b))for(y in b)A.call(b,y)&&(L=b[y],this.attribute(y,L));else S(U)&&(U=U.apply()),this.options.skipNullAttributes&&U==null||(this.currentNode.attributes[b]=new m(this,b,U));return this},D.prototype.text=function(b){var U;return this.openCurrent(),U=new h(this,b),this.onData(this.writer.text(U,this.currentLevel+1)),this},D.prototype.cdata=function(b){var U;return this.openCurrent(),U=new v(this,b),this.onData(this.writer.cdata(U,this.currentLevel+1)),this},D.prototype.comment=function(b){var U;return this.openCurrent(),U=new i(this,b),this.onData(this.writer.comment(U,this.currentLevel+1)),this},D.prototype.raw=function(b){var U;return this.openCurrent(),U=new c(this,b),this.onData(this.writer.raw(U,this.currentLevel+1)),this},D.prototype.instruction=function(b,U){var y,L,k,z,G;if(this.openCurrent(),b!=null&&(b=b.valueOf()),U!=null&&(U=U.valueOf()),Array.isArray(b))for(y=0,z=b.length;y<z;y++)L=b[y],this.instruction(L);else if(w(b))for(L in b)A.call(b,L)&&(k=b[L],this.instruction(L,k));else S(U)&&(U=U.apply()),G=new f(this,b,U),this.onData(this.writer.processingInstruction(G,this.currentLevel+1));return this},D.prototype.declaration=function(b,U,y){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return L=new o(this,b,U,y),this.onData(this.writer.declaration(L,this.currentLevel+1)),this},D.prototype.doctype=function(b,U,y){if(this.openCurrent(),b==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new r(this,U,y),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},D.prototype.dtdElement=function(b,U){var y;return this.openCurrent(),y=new d(this,b,U),this.onData(this.writer.dtdElement(y,this.currentLevel+1)),this},D.prototype.attList=function(b,U,y,L,k){var z;return this.openCurrent(),z=new u(this,b,U,y,L,k),this.onData(this.writer.dtdAttList(z,this.currentLevel+1)),this},D.prototype.entity=function(b,U){var y;return this.openCurrent(),y=new s(this,!1,b,U),this.onData(this.writer.dtdEntity(y,this.currentLevel+1)),this},D.prototype.pEntity=function(b,U){var y;return this.openCurrent(),y=new s(this,!0,b,U),this.onData(this.writer.dtdEntity(y,this.currentLevel+1)),this},D.prototype.notation=function(b,U){var y;return this.openCurrent(),y=new e(this,b,U),this.onData(this.writer.dtdNotation(y,this.currentLevel+1)),this},D.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},D.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},D.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},D.prototype.openNode=function(b){if(!b.isOpen)return!this.root&&this.currentLevel===0&&b instanceof l&&(this.root=b),this.onData(this.writer.openNode(b,this.currentLevel)),b.isOpen=!0},D.prototype.closeNode=function(b){if(!b.isClosed)return this.onData(this.writer.closeNode(b,this.currentLevel)),b.isClosed=!0},D.prototype.onData=function(b){return this.documentStarted=!0,this.onDataCallback(b)},D.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},D.prototype.ele=function(){return this.element.apply(this,arguments)},D.prototype.nod=function(b,U,y){return this.node(b,U,y)},D.prototype.txt=function(b){return this.text(b)},D.prototype.dat=function(b){return this.cdata(b)},D.prototype.com=function(b){return this.comment(b)},D.prototype.ins=function(b,U){return this.instruction(b,U)},D.prototype.dec=function(b,U,y){return this.declaration(b,U,y)},D.prototype.dtd=function(b,U,y){return this.doctype(b,U,y)},D.prototype.e=function(b,U,y){return this.element(b,U,y)},D.prototype.n=function(b,U,y){return this.node(b,U,y)},D.prototype.t=function(b){return this.text(b)},D.prototype.d=function(b){return this.cdata(b)},D.prototype.c=function(b){return this.comment(b)},D.prototype.r=function(b){return this.raw(b)},D.prototype.i=function(b,U){return this.instruction(b,U)},D.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.ent=function(b,U){return this.entity(b,U)},D.prototype.pent=function(b,U){return this.pEntity(b,U)},D.prototype.not=function(b,U){return this.notation(b,U)},D}()}).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(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u,d,s,e,o=function(f,c){function T(){this.constructor=f}for(var E in c)r.call(c,E)&&(f[E]=c[E]);return T.prototype=c.prototype,f.prototype=new T,f.__super__=c.prototype,f},r={}.hasOwnProperty;e=n("./Utility"),s=e.isObject,d=e.isFunction,u=n("./XMLNode"),i=n("./XMLAttribute"),R.exports=function(l){function f(c,T,E){if(f.__super__.constructor.call(this,c),T==null)throw new Error("Missing element name");this.name=this.stringify.eleName(T),this.attributes={},E!=null&&this.attribute(E),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return o(f,l),f.prototype.clone=function(){var c,T,E,h;E=(0,v.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},h=this.attributes;for(T in h)r.call(h,T)&&(c=h[T],E.attributes[T]=c.clone());return E.children=[],this.children.forEach(function(S){var w;return w=S.clone(),w.parent=E,E.children.push(w)}),E},f.prototype.attribute=function(c,T){var E,h;if(c!=null&&(c=c.valueOf()),s(c))for(E in c)r.call(c,E)&&(h=c[E],this.attribute(E,h));else d(T)&&(T=T.apply()),this.options.skipNullAttributes&&T==null||(this.attributes[c]=new i(this,c,T));return this},f.prototype.removeAttribute=function(c){var T,E,h;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(E=0,h=c.length;E<h;E++)T=c[E],delete this.attributes[T];else delete this.attributes[c];return this},f.prototype.toString=function(c){return this.options.writer.set(c).element(this)},f.prototype.att=function(c,T){return this.attribute(c,T)},f.prototype.a=function(c,T){return this.attribute(c,T)},f}(u)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e,o,r,l,f,c,T={}.hasOwnProperty;c=n("./Utility"),f=c.isObject,l=c.isFunction,r=c.isEmpty,d=null,m=null,v=null,i=null,u=null,e=null,o=null,s=null,R.exports=function(){function E(h){this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],d||(d=n("./XMLElement"),m=n("./XMLCData"),v=n("./XMLComment"),i=n("./XMLDeclaration"),u=n("./XMLDocType"),e=n("./XMLRaw"),o=n("./XMLText"),s=n("./XMLProcessingInstruction"))}return E.prototype.element=function(h,S,w){var p,x,A,D,b,U,y,L,k,z;if(U=null,S==null&&(S={}),S=S.valueOf(),f(S)||(k=[S,w],w=k[0],S=k[1]),h!=null&&(h=h.valueOf()),Array.isArray(h))for(A=0,y=h.length;A<y;A++)x=h[A],U=this.element(x);else if(l(h))U=this.element(h.apply());else if(f(h)){for(b in h)if(T.call(h,b))if(z=h[b],l(z)&&(z=z.apply()),f(z)&&r(z)&&(z=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&b.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(b.substr(this.stringify.convertAttKey.length),z);else if(!this.options.separateArrayItems&&Array.isArray(z))for(D=0,L=z.length;D<L;D++)x=z[D],p={},p[b]=x,U=this.element(p);else f(z)?(U=this.element(b),U.element(z)):U=this.element(b,z)}else U=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&h.indexOf(this.stringify.convertTextKey)===0?this.text(w):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&h.indexOf(this.stringify.convertCDataKey)===0?this.cdata(w):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&h.indexOf(this.stringify.convertCommentKey)===0?this.comment(w):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&h.indexOf(this.stringify.convertRawKey)===0?this.raw(w):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&h.indexOf(this.stringify.convertPIKey)===0?this.instruction(h.substr(this.stringify.convertPIKey.length),w):this.node(h,S,w);if(U==null)throw new Error("Could not create any elements with: "+h);return U},E.prototype.insertBefore=function(h,S,w){var p,x,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return x=this.parent.children.indexOf(this),A=this.parent.children.splice(x),p=this.parent.element(h,S,w),Array.prototype.push.apply(this.parent.children,A),p},E.prototype.insertAfter=function(h,S,w){var p,x,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return x=this.parent.children.indexOf(this),A=this.parent.children.splice(x+1),p=this.parent.element(h,S,w),Array.prototype.push.apply(this.parent.children,A),p},E.prototype.remove=function(){var h;if(this.isRoot)throw new Error("Cannot remove the root element");return h=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[h,h-h+1].concat([])),this.parent},E.prototype.node=function(h,S,w){var p,x;return h!=null&&(h=h.valueOf()),S||(S={}),S=S.valueOf(),f(S)||(x=[S,w],w=x[0],S=x[1]),p=new d(this,h,S),w!=null&&p.text(w),this.children.push(p),p},E.prototype.text=function(h){var S;return S=new o(this,h),this.children.push(S),this},E.prototype.cdata=function(h){var S;return S=new m(this,h),this.children.push(S),this},E.prototype.comment=function(h){var S;return S=new v(this,h),this.children.push(S),this},E.prototype.commentBefore=function(h){var S,w;return S=this.parent.children.indexOf(this),w=this.parent.children.splice(S),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,w),this},E.prototype.commentAfter=function(h){var S,w;return S=this.parent.children.indexOf(this),w=this.parent.children.splice(S+1),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,w),this},E.prototype.raw=function(h){var S;return S=new e(this,h),this.children.push(S),this},E.prototype.instruction=function(h,S){var w,p,x,A,D;if(h!=null&&(h=h.valueOf()),S!=null&&(S=S.valueOf()),Array.isArray(h))for(A=0,D=h.length;A<D;A++)w=h[A],this.instruction(w);else if(f(h))for(w in h)T.call(h,w)&&(p=h[w],this.instruction(w,p));else l(S)&&(S=S.apply()),x=new s(this,h,S),this.children.push(x);return this},E.prototype.instructionBefore=function(h,S){var w,p;return w=this.parent.children.indexOf(this),p=this.parent.children.splice(w),this.parent.instruction(h,S),Array.prototype.push.apply(this.parent.children,p),this},E.prototype.instructionAfter=function(h,S){var w,p;return w=this.parent.children.indexOf(this),p=this.parent.children.splice(w+1),this.parent.instruction(h,S),Array.prototype.push.apply(this.parent.children,p),this},E.prototype.declaration=function(h,S,w){var p,x;return p=this.document(),x=new i(p,h,S,w),p.children[0]instanceof i?p.children[0]=x:p.children.unshift(x),p.root()||p},E.prototype.doctype=function(h,S){var w,p,x,A,D,b,U,y,L,k;for(p=this.document(),x=new u(p,h,S),L=p.children,A=D=0,U=L.length;D<U;A=++D)if((w=L[A])instanceof u)return p.children[A]=x,x;for(k=p.children,A=b=0,y=k.length;b<y;A=++b)if(w=k[A],w.isRoot)return p.children.splice(A,0,x),x;return p.children.push(x),x},E.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},E.prototype.root=function(){var h;for(h=this;h;){if(h.isDocument)return h.rootObject;if(h.isRoot)return h;h=h.parent}},E.prototype.document=function(){var h;for(h=this;h;){if(h.isDocument)return h;h=h.parent}},E.prototype.end=function(h){return this.document().end(h)},E.prototype.prev=function(){var h;if((h=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[h-1]},E.prototype.next=function(){var h;if((h=this.parent.children.indexOf(this))===-1||h===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[h+1]},E.prototype.importDocument=function(h){var S;return S=h.root().clone(),S.parent=this,S.isRoot=!1,this.children.push(S),this},E.prototype.ele=function(h,S,w){return this.element(h,S,w)},E.prototype.nod=function(h,S,w){return this.node(h,S,w)},E.prototype.txt=function(h){return this.text(h)},E.prototype.dat=function(h){return this.cdata(h)},E.prototype.com=function(h){return this.comment(h)},E.prototype.ins=function(h,S){return this.instruction(h,S)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(h,S,w){return this.declaration(h,S,w)},E.prototype.dtd=function(h,S){return this.doctype(h,S)},E.prototype.e=function(h,S,w){return this.element(h,S,w)},E.prototype.n=function(h,S,w){return this.node(h,S,w)},E.prototype.t=function(h){return this.text(h)},E.prototype.d=function(h){return this.cdata(h)},E.prototype.c=function(h){return this.comment(h)},E.prototype.r=function(h){return this.raw(h)},E.prototype.i=function(h,S){return this.instruction(h,S)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(h){return this.importDocument(h)},E}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),R.exports=function(s){function e(o,r,l){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),l&&(this.value=this.stringify.insValue(l))}return u(e,s),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),R.exports=function(s){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return u(e,s),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).raw(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e,o,r,l,f,c,T,E=function(w,p){function x(){this.constructor=w}for(var A in p)h.call(p,A)&&(w[A]=p[A]);return x.prototype=p.prototype,w.prototype=new x,w.__super__=p.prototype,w},h={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),m=n("./XMLCData"),v=n("./XMLComment"),r=n("./XMLElement"),f=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),R.exports=function(S){function w(p,x){w.__super__.constructor.call(this,x),this.stream=p}return E(w,S),w.prototype.document=function(p){var x,A,D,b,U,y,L,k;for(y=p.children,A=0,b=y.length;A<b;A++)x=y[A],x.isLastRootNode=!1;for(p.children[p.children.length-1].isLastRootNode=!0,L=p.children,k=[],D=0,U=L.length;D<U;D++)switch(x=L[D],!1){case!(x instanceof e):k.push(this.declaration(x));break;case!(x instanceof o):k.push(this.docType(x));break;case!(x instanceof v):k.push(this.comment(x));break;case!(x instanceof l):k.push(this.processingInstruction(x));break;default:k.push(this.element(x))}return k},w.prototype.attribute=function(p){return this.stream.write(" "+p.name+'="'+p.value+'"')},w.prototype.cdata=function(p,x){return this.stream.write(this.space(x)+"<![CDATA["+p.text+"]]>"+this.endline(p))},w.prototype.comment=function(p,x){return this.stream.write(this.space(x)+"<!-- "+p.text+" -->"+this.endline(p))},w.prototype.declaration=function(p,x){return this.stream.write(this.space(x)),this.stream.write('<?xml version="'+p.version+'"'),p.encoding!=null&&this.stream.write(' encoding="'+p.encoding+'"'),p.standalone!=null&&this.stream.write(' standalone="'+p.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(p))},w.prototype.docType=function(p,x){var A,D,b,U;if(x||(x=0),this.stream.write(this.space(x)),this.stream.write("<!DOCTYPE "+p.root().name),p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(p)),U=p.children,D=0,b=U.length;D<b;D++)switch(A=U[D],!1){case!(A instanceof i):this.dtdAttList(A,x+1);break;case!(A instanceof u):this.dtdElement(A,x+1);break;case!(A instanceof d):this.dtdEntity(A,x+1);break;case!(A instanceof s):this.dtdNotation(A,x+1);break;case!(A instanceof m):this.cdata(A,x+1);break;case!(A instanceof v):this.comment(A,x+1);break;case!(A instanceof l):this.processingInstruction(A,x+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(p))},w.prototype.element=function(p,x){var A,D,b,U,y,L,k,z;x||(x=0),z=this.space(x),this.stream.write(z+"<"+p.name),L=p.attributes;for(y in L)h.call(L,y)&&(A=L[y],this.attribute(A));if(p.children.length===0||p.children.every(function(G){return G.value===""}))this.allowEmpty?this.stream.write("></"+p.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&p.children.length===1&&p.children[0].value!=null)this.stream.write(">"),this.stream.write(p.children[0].value),this.stream.write("</"+p.name+">");else{for(this.stream.write(">"+this.newline),k=p.children,b=0,U=k.length;b<U;b++)switch(D=k[b],!1){case!(D instanceof m):this.cdata(D,x+1);break;case!(D instanceof v):this.comment(D,x+1);break;case!(D instanceof r):this.element(D,x+1);break;case!(D instanceof f):this.raw(D,x+1);break;case!(D instanceof c):this.text(D,x+1);break;case!(D instanceof l):this.processingInstruction(D,x+1);break;default:throw new Error("Unknown XML node type: "+D.constructor.name)}this.stream.write(z+"</"+p.name+">")}return this.stream.write(this.endline(p))},w.prototype.processingInstruction=function(p,x){return this.stream.write(this.space(x)+"<?"+p.target),p.value&&this.stream.write(" "+p.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(p))},w.prototype.raw=function(p,x){return this.stream.write(this.space(x)+p.value+this.endline(p))},w.prototype.text=function(p,x){return this.stream.write(this.space(x)+p.value+this.endline(p))},w.prototype.dtdAttList=function(p,x){return this.stream.write(this.space(x)+"<!ATTLIST "+p.elementName+" "+p.attributeName+" "+p.attributeType),p.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+p.defaultValueType),p.defaultValue&&this.stream.write(' "'+p.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},w.prototype.dtdElement=function(p,x){return this.stream.write(this.space(x)+"<!ELEMENT "+p.name+" "+p.value),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},w.prototype.dtdEntity=function(p,x){return this.stream.write(this.space(x)+"<!ENTITY"),p.pe&&this.stream.write(" %"),this.stream.write(" "+p.name),p.value?this.stream.write(' "'+p.value+'"'):(p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),p.nData&&this.stream.write(" NDATA "+p.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},w.prototype.dtdNotation=function(p,x){return this.stream.write(this.space(x)+"<!NOTATION "+p.name),p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.pubID?this.stream.write(' PUBLIC "'+p.pubID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},w.prototype.endline=function(p){return p.isLastRootNode?"":this.newline},w}(T)}).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(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e,o,r,l,f,c,T,E=function(w,p){function x(){this.constructor=w}for(var A in p)h.call(p,A)&&(w[A]=p[A]);return x.prototype=p.prototype,w.prototype=new x,w.__super__=p.prototype,w},h={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),m=n("./XMLCData"),v=n("./XMLComment"),r=n("./XMLElement"),f=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),R.exports=function(S){function w(p){w.__super__.constructor.call(this,p)}return E(w,S),w.prototype.document=function(p){var x,A,D,b,U;for(this.textispresent=!1,b="",U=p.children,A=0,D=U.length;A<D;A++)x=U[A],b+=function(){switch(!1){case!(x instanceof e):return this.declaration(x);case!(x instanceof o):return this.docType(x);case!(x instanceof v):return this.comment(x);case!(x instanceof l):return this.processingInstruction(x);default:return this.element(x,0)}}.call(this);return this.pretty&&b.slice(-this.newline.length)===this.newline&&(b=b.slice(0,-this.newline.length)),b},w.prototype.attribute=function(p){return" "+p.name+'="'+p.value+'"'},w.prototype.cdata=function(p,x){return this.space(x)+"<![CDATA["+p.text+"]]>"+this.newline},w.prototype.comment=function(p,x){return this.space(x)+"<!-- "+p.text+" -->"+this.newline},w.prototype.declaration=function(p,x){var A;return A=this.space(x),A+='<?xml version="'+p.version+'"',p.encoding!=null&&(A+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(A+=' standalone="'+p.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline},w.prototype.docType=function(p,x){var A,D,b,U,y;if(x||(x=0),U=this.space(x),U+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?U+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(U+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(U+=" [",U+=this.newline,y=p.children,D=0,b=y.length;D<b;D++)A=y[D],U+=function(){switch(!1){case!(A instanceof i):return this.dtdAttList(A,x+1);case!(A instanceof u):return this.dtdElement(A,x+1);case!(A instanceof d):return this.dtdEntity(A,x+1);case!(A instanceof s):return this.dtdNotation(A,x+1);case!(A instanceof m):return this.cdata(A,x+1);case!(A instanceof v):return this.comment(A,x+1);case!(A instanceof l):return this.processingInstruction(A,x+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}.call(this);U+="]"}return U+=this.spacebeforeslash+">",U+=this.newline},w.prototype.element=function(p,x){var A,D,b,U,y,L,k,z,G,q,re,X,ne;x||(x=0),ne=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),X=this.space(x),z="",z+=X+"<"+p.name,G=p.attributes;for(k in G)h.call(G,k)&&(A=G[k],z+=this.attribute(A));if(p.children.length===0||p.children.every(function(J){return J.value===""}))this.allowEmpty?z+="></"+p.name+">"+this.newline:z+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&p.children.length===1&&p.children[0].value!=null)z+=">",z+=p.children[0].value,z+="</"+p.name+">"+this.newline;else{if(this.dontprettytextnodes){for(q=p.children,b=0,y=q.length;b<y;b++)if(D=q[b],D.value!=null){this.textispresent++,ne=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,X=this.space(x)),z+=">"+this.newline,re=p.children,U=0,L=re.length;U<L;U++)D=re[U],z+=function(){switch(!1){case!(D instanceof m):return this.cdata(D,x+1);case!(D instanceof v):return this.comment(D,x+1);case!(D instanceof r):return this.element(D,x+1);case!(D instanceof f):return this.raw(D,x+1);case!(D instanceof c):return this.text(D,x+1);case!(D instanceof l):return this.processingInstruction(D,x+1);default:throw new Error("Unknown XML node type: "+D.constructor.name)}}.call(this);ne&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z+=X+"</"+p.name+">"+this.newline}return z},w.prototype.processingInstruction=function(p,x){var A;return A=this.space(x)+"<?"+p.target,p.value&&(A+=" "+p.value),A+=this.spacebeforeslash+"?>"+this.newline},w.prototype.raw=function(p,x){return this.space(x)+p.value+this.newline},w.prototype.text=function(p,x){return this.space(x)+p.value+this.newline},w.prototype.dtdAttList=function(p,x){var A;return A=this.space(x)+"<!ATTLIST "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(A+=" "+p.defaultValueType),p.defaultValue&&(A+=' "'+p.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdElement=function(p,x){return this.space(x)+"<!ELEMENT "+p.name+" "+p.value+this.spacebeforeslash+">"+this.newline},w.prototype.dtdEntity=function(p,x){var A;return A=this.space(x)+"<!ENTITY",p.pe&&(A+=" %"),A+=" "+p.name,p.value?A+=' "'+p.value+'"':(p.pubID&&p.sysID?A+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(A+=' SYSTEM "'+p.sysID+'"'),p.nData&&(A+=" NDATA "+p.nData)),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdNotation=function(p,x){var A;return A=this.space(x)+"<!NOTATION "+p.name,p.pubID&&p.sysID?A+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?A+=' PUBLIC "'+p.pubID+'"':p.sysID&&(A+=' SYSTEM "'+p.sysID+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.openNode=function(p,x){var A,D,b,U;if(x||(x=0),p instanceof r){b=this.space(x)+"<"+p.name,U=p.attributes;for(D in U)h.call(U,D)&&(A=U[D],b+=this.attribute(A));return b+=(p.children?">":"/>")+this.newline}return b=this.space(x)+"<!DOCTYPE "+p.rootNodeName,p.pubID&&p.sysID?b+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(b+=' SYSTEM "'+p.sysID+'"'),b+=(p.children?" [":">")+this.newline},w.prototype.closeNode=function(p,x){switch(x||(x=0),!1){case!(p instanceof r):return this.space(x)+"</"+p.name+">"+this.newline;case!(p instanceof o):return this.space(x)+"]>"+this.newline}},w}(T)}).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(n,R,O){"use strict";(function(){var m=function(u,d){return function(){return u.apply(d,arguments)}},v={}.hasOwnProperty;R.exports=function(){function i(u){this.assertLegalChar=m(this.assertLegalChar,this);var d,s,e;u||(u={}),this.noDoubleEncoding=u.noDoubleEncoding,s=u.stringify||{};for(d in s)v.call(s,d)&&(e=s[d],this[d]=e)}return i.prototype.eleName=function(u){return u=""+u||"",this.assertLegalChar(u)},i.prototype.eleText=function(u){return u=""+u||"",this.assertLegalChar(this.elEscape(u))},i.prototype.cdata=function(u){return u=""+u||"",u=u.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(u)},i.prototype.comment=function(u){if(u=""+u||"",u.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+u);return this.assertLegalChar(u)},i.prototype.raw=function(u){return""+u||""},i.prototype.attName=function(u){return u=""+u||""},i.prototype.attValue=function(u){return u=""+u||"",this.attEscape(u)},i.prototype.insTarget=function(u){return""+u||""},i.prototype.insValue=function(u){if(u=""+u||"",u.match(/\?>/))throw new Error("Invalid processing instruction value: "+u);return u},i.prototype.xmlVersion=function(u){if(u=""+u||"",!u.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+u);return u},i.prototype.xmlEncoding=function(u){if(u=""+u||"",!u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+u);return u},i.prototype.xmlStandalone=function(u){return u?"yes":"no"},i.prototype.dtdPubID=function(u){return""+u||""},i.prototype.dtdSysID=function(u){return""+u||""},i.prototype.dtdElementValue=function(u){return""+u||""},i.prototype.dtdAttType=function(u){return""+u||""},i.prototype.dtdAttDefault=function(u){return u!=null?""+u||"":u},i.prototype.dtdEntityValue=function(u){return""+u||""},i.prototype.dtdNData=function(u){return""+u||""},i.prototype.convertAttKey="@",i.prototype.convertPIKey="?",i.prototype.convertTextKey="#text",i.prototype.convertCDataKey="#cdata",i.prototype.convertCommentKey="#comment",i.prototype.convertRawKey="#raw",i.prototype.assertLegalChar=function(u){var d;if(d=u.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+u+" at index "+d.index);return u},i.prototype.elEscape=function(u){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(d,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(u){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(d,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(void 0)},{}],233:[function(n,R,O){"use strict";var m=n("babel-runtime/core-js/object/create"),v=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u=function(e,o){function r(){this.constructor=e}for(var l in o)d.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},d={}.hasOwnProperty;i=n("./XMLNode"),R.exports=function(s){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return u(e,s),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).text(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,R,O){"use strict";(function(){var m={}.hasOwnProperty;R.exports=function(){function v(i){var u,d,s,e,o,r,l,f,c;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(d=i.allowEmpty)!=null&&d,this.pretty?(this.indent=(s=i.indent)!=null?s:" ",this.newline=(e=i.newline)!=null?e:`
|
||
`,this.offset=(o=i.offset)!=null?o:0,this.dontprettytextnodes=(r=i.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(l=i.spacebeforeslash)!=null?l:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=i.writer||{};for(u in f)m.call(f,u)&&(c=f[u],this[u]=c)}return v.prototype.set=function(i){var u,d,s;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
||
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=i.writer||{};for(u in d)m.call(d,u)&&(s=d[u],this[u]=s);return this},v.prototype.space=function(i){var u;return this.pretty?(u=(i||0)+this.offset+1,u>0?new Array(u).join(this.indent):""):""},v}()}).call(void 0)},{}],235:[function(n,R,O){"use strict";(function(){var m,v,i,u,d,s,e;e=n("./Utility"),d=e.assign,s=e.isFunction,m=n("./XMLDocument"),v=n("./XMLDocumentCB"),u=n("./XMLStringWriter"),i=n("./XMLStreamWriter"),R.exports.create=function(o,r,l,f){var c,T;if(o==null)throw new Error("Root element needs a name");return f=d({},r,l,f),c=new m(f),T=c.element(o),f.headless||(c.declaration(f),f.pubID==null&&f.sysID==null||c.doctype(f)),T},R.exports.begin=function(o,r,l){var f;return s(o)&&(f=[o,r],r=f[0],l=f[1],o={}),r?new v(o,r,l):new m(o)},R.exports.stringWriter=function(o){return new u(o)},R.exports.streamWriter=function(o,r){return new i(o,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,R,O){function m(){for(var i={},u=0;u<arguments.length;u++){var d=arguments[u];for(var s in d)v.call(d,s)&&(i[s]=d[s])}return i}R.exports=m;var v=Object.prototype.hasOwnProperty},{}],237:[function(n,R,O){"use strict";function m(f,c,T){u.isBuffer(c)||(c=new u(c)),u.isBuffer(T)||(T=new u(T)),c.length>r?c=f(c):c.length<r&&(c=u.concat([c,l],r));for(var E=new u(r),h=new u(r),S=0;S<r;S++)E[S]=54^c[S],h[S]=92^c[S];var w=f(u.concat([E,T]));return f(u.concat([h,w]))}function v(f,c){f=f||"sha1";var T=o[f],E=[],h=0;return T||i("algorithm:",f,"is not yet supported"),{update:function(w){return u.isBuffer(w)||(w=new u(w)),E.push(w),h+=w.length,this},digest:function(w){var p=u.concat(E),x=c?m(T,c,p):T(p);return E=null,w?x.toString(w):x}}}function i(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
||
`))}var u=n("buffer").Buffer,d=n("./sha"),s=n("./sha256"),e=n("./md5"),o={sha1:d,sha256:s,md5:e},r=64,l=new u(r);l.fill(0),O.createHash=function(f){return v(f)},O.createHmac=function(f,c){return v(f,c)},function(f,c){for(var T in f)c(f[T],T)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(f){O[f]=function(){i("sorry,",f,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,R,O){"use strict";function m(o,r){if(o.length%d!=0){var l=o.length+(d-o.length%d);o=u.concat([o,s],l)}for(var f=[],c=r?o.readInt32BE:o.readInt32LE,T=0;T<o.length;T+=d)f.push(c.call(o,T));return f}function v(o,r,l){for(var f=new u(r),c=l?f.writeInt32BE:f.writeInt32LE,T=0;T<o.length;T++)c.call(f,o[T],4*T,!0);return f}function i(o,r,l,f){return u.isBuffer(o)||(o=new u(o)),v(r(m(o,f),o.length*e),l,f)}var u=n("buffer").Buffer,d=4,s=new u(d);s.fill(0);var e=8;R.exports={hash:i}},{buffer:38}],239:[function(n,R,O){"use strict";function m(l,f){l[f>>5]|=128<<f%32,l[14+(f+64>>>9<<4)]=f;for(var c=1732584193,T=-271733879,E=-1732584194,h=271733878,S=0;S<l.length;S+=16){var w=c,p=T,x=E,A=h;c=i(c,T,E,h,l[S+0],7,-680876936),h=i(h,c,T,E,l[S+1],12,-389564586),E=i(E,h,c,T,l[S+2],17,606105819),T=i(T,E,h,c,l[S+3],22,-1044525330),c=i(c,T,E,h,l[S+4],7,-176418897),h=i(h,c,T,E,l[S+5],12,1200080426),E=i(E,h,c,T,l[S+6],17,-1473231341),T=i(T,E,h,c,l[S+7],22,-45705983),c=i(c,T,E,h,l[S+8],7,1770035416),h=i(h,c,T,E,l[S+9],12,-1958414417),E=i(E,h,c,T,l[S+10],17,-42063),T=i(T,E,h,c,l[S+11],22,-1990404162),c=i(c,T,E,h,l[S+12],7,1804603682),h=i(h,c,T,E,l[S+13],12,-40341101),E=i(E,h,c,T,l[S+14],17,-1502002290),T=i(T,E,h,c,l[S+15],22,1236535329),c=u(c,T,E,h,l[S+1],5,-165796510),h=u(h,c,T,E,l[S+6],9,-1069501632),E=u(E,h,c,T,l[S+11],14,643717713),T=u(T,E,h,c,l[S+0],20,-373897302),c=u(c,T,E,h,l[S+5],5,-701558691),h=u(h,c,T,E,l[S+10],9,38016083),E=u(E,h,c,T,l[S+15],14,-660478335),T=u(T,E,h,c,l[S+4],20,-405537848),c=u(c,T,E,h,l[S+9],5,568446438),h=u(h,c,T,E,l[S+14],9,-1019803690),E=u(E,h,c,T,l[S+3],14,-187363961),T=u(T,E,h,c,l[S+8],20,1163531501),c=u(c,T,E,h,l[S+13],5,-1444681467),h=u(h,c,T,E,l[S+2],9,-51403784),E=u(E,h,c,T,l[S+7],14,1735328473),T=u(T,E,h,c,l[S+12],20,-1926607734),c=d(c,T,E,h,l[S+5],4,-378558),h=d(h,c,T,E,l[S+8],11,-2022574463),E=d(E,h,c,T,l[S+11],16,1839030562),T=d(T,E,h,c,l[S+14],23,-35309556),c=d(c,T,E,h,l[S+1],4,-1530992060),h=d(h,c,T,E,l[S+4],11,1272893353),E=d(E,h,c,T,l[S+7],16,-155497632),T=d(T,E,h,c,l[S+10],23,-1094730640),c=d(c,T,E,h,l[S+13],4,681279174),h=d(h,c,T,E,l[S+0],11,-358537222),E=d(E,h,c,T,l[S+3],16,-722521979),T=d(T,E,h,c,l[S+6],23,76029189),c=d(c,T,E,h,l[S+9],4,-640364487),h=d(h,c,T,E,l[S+12],11,-421815835),E=d(E,h,c,T,l[S+15],16,530742520),T=d(T,E,h,c,l[S+2],23,-995338651),c=s(c,T,E,h,l[S+0],6,-198630844),h=s(h,c,T,E,l[S+7],10,1126891415),E=s(E,h,c,T,l[S+14],15,-1416354905),T=s(T,E,h,c,l[S+5],21,-57434055),c=s(c,T,E,h,l[S+12],6,1700485571),h=s(h,c,T,E,l[S+3],10,-1894986606),E=s(E,h,c,T,l[S+10],15,-1051523),T=s(T,E,h,c,l[S+1],21,-2054922799),c=s(c,T,E,h,l[S+8],6,1873313359),h=s(h,c,T,E,l[S+15],10,-30611744),E=s(E,h,c,T,l[S+6],15,-1560198380),T=s(T,E,h,c,l[S+13],21,1309151649),c=s(c,T,E,h,l[S+4],6,-145523070),h=s(h,c,T,E,l[S+11],10,-1120210379),E=s(E,h,c,T,l[S+2],15,718787259),T=s(T,E,h,c,l[S+9],21,-343485551),c=e(c,w),T=e(T,p),E=e(E,x),h=e(h,A)}return Array(c,T,E,h)}function v(l,f,c,T,E,h){return e(o(e(e(f,l),e(T,h)),E),c)}function i(l,f,c,T,E,h,S){return v(f&c|~f&T,l,f,E,h,S)}function u(l,f,c,T,E,h,S){return v(f&T|c&~T,l,f,E,h,S)}function d(l,f,c,T,E,h,S){return v(f^c^T,l,f,E,h,S)}function s(l,f,c,T,E,h,S){return v(c^(f|~T),l,f,E,h,S)}function e(l,f){var c=(65535&l)+(65535&f);return(l>>16)+(f>>16)+(c>>16)<<16|65535&c}function o(l,f){return l<<f|l>>>32-f}var r=n("./helpers");R.exports=function(l){return r.hash(l,m,16)}},{"./helpers":238}],240:[function(n,R,O){"use strict";function m(e,o){e[o>>5]|=128<<24-o%32,e[15+(o+64>>9<<4)]=o;for(var r=Array(80),l=1732584193,f=-271733879,c=-1732584194,T=271733878,E=-1009589776,h=0;h<e.length;h+=16){for(var S=l,w=f,p=c,x=T,A=E,D=0;D<80;D++){r[D]=D<16?e[h+D]:d(r[D-3]^r[D-8]^r[D-14]^r[D-16],1);var b=u(u(d(l,5),v(D,f,c,T)),u(u(E,r[D]),i(D)));E=T,T=c,c=d(f,30),f=l,l=b}l=u(l,S),f=u(f,w),c=u(c,p),T=u(T,x),E=u(E,A)}return Array(l,f,c,T,E)}function v(e,o,r,l){return e<20?o&r|~o&l:e<40?o^r^l:e<60?o&r|o&l|r&l:o^r^l}function i(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function u(e,o){var r=(65535&e)+(65535&o);return(e>>16)+(o>>16)+(r>>16)<<16|65535&r}function d(e,o){return e<<o|e>>>32-o}var s=n("./helpers");R.exports=function(e){return s.hash(e,m,20,!0)}},{"./helpers":238}],241:[function(n,R,O){"use strict";var m=n("./helpers"),v=function(T,E){var h=(65535&T)+(65535&E);return(T>>16)+(E>>16)+(h>>16)<<16|65535&h},i=function(T,E){return T>>>E|T<<32-E},u=function(T,E){return T>>>E},d=function(T,E,h){return T&E^~T&h},s=function(T,E,h){return T&E^T&h^E&h},e=function(T){return i(T,2)^i(T,13)^i(T,22)},o=function(T){return i(T,6)^i(T,11)^i(T,25)},r=function(T){return i(T,7)^i(T,18)^u(T,3)},l=function(T){return i(T,17)^i(T,19)^u(T,10)},f=function(T,E){var h,S,w,p,x,A,D,b,U,y,L,k,z=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),G=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),q=new Array(64);T[E>>5]|=128<<24-E%32,T[15+(E+64>>9<<4)]=E;for(var U=0;U<T.length;U+=16){h=G[0],S=G[1],w=G[2],p=G[3],x=G[4],A=G[5],D=G[6],b=G[7];for(var y=0;y<64;y++)q[y]=y<16?T[y+U]:v(v(v(l(q[y-2]),q[y-7]),r(q[y-15])),q[y-16]),L=v(v(v(v(b,o(x)),d(x,A,D)),z[y]),q[y]),k=v(e(h),s(h,S,w)),b=D,D=A,A=x,x=v(p,L),p=w,w=S,S=h,h=v(L,k);G[0]=v(h,G[0]),G[1]=v(S,G[1]),G[2]=v(w,G[2]),G[3]=v(p,G[3]),G[4]=v(x,G[4]),G[5]=v(A,G[5]),G[6]=v(D,G[6]),G[7]=v(b,G[7])}return G};R.exports=function(c){return m.hash(c,f,32,!0)}},{"./helpers":238}],242:[function(n,R,O){(function(m){"use strict";function v(f){return f&&f.__esModule?f:{default:f}}var i=n("babel-runtime/core-js/object/create"),u=v(i),d=n("babel-runtime/helpers/classCallCheck"),s=v(d),e=n("babel-runtime/helpers/createClass"),o=v(e),r=n("babel-runtime/helpers/typeof"),l=v(r);!function(f){if((O===void 0?"undefined":(0,l.default)(O))==="object"&&R!==void 0)R.exports=f();else if(typeof ve=="function"&&ve.amd)ve([],f);else{var c;c=typeof window!="undefined"?window:m!==void 0?m:typeof self!="undefined"?self:this,c.mime=f()}}(function(){return function f(c,T,E){function h(p,x){if(!T[p]){if(!c[p]){var A=typeof n=="function"&&n;if(!x&&A)return A(p,!0);if(S)return S(p,!0);var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D}var b=T[p]={exports:{}};c[p][0].call(b.exports,function(U){var y=c[p][1][U];return h(y||U)},b,b.exports,f,c,T,E)}return T[p].exports}for(var S=typeof n=="function"&&n,w=0;w<E.length;w++)h(E[w]);return h}({1:[function(f,c,T){var E=function(){function h(){(0,s.default)(this,h),this._types=(0,u.default)(null),this._extensions=(0,u.default)(null);for(var S=0;S<arguments.length;S++)this.define(arguments[S])}return(0,o.default)(h,[{key:"define",value:function(w,p){for(var x in w){for(var A=w[x],D=0;D<A.length;D++){var b=A[D];if(!p&&b in this._types)throw new Error('Attempt to change mapping for "'+b+'" extension from "'+this._types[b]+'" to "'+x+'". Pass `force=true` to allow this, otherwise remove "'+b+'" from the list of extensions for "'+x+'".');this._types[b]=x}!p&&this._extensions[x]||(this._extensions[x]=A[0])}}},{key:"getType",value:function(w){w=String(w);var p=w.replace(/^.*[\/\\]/,"").toLowerCase(),x=p.replace(/^.*\./,"").toLowerCase(),A=p.length<w.length;return(x.length<p.length-1||!A)&&this._types[x]||null}},{key:"getExtension",value:function(w){return(w=/^\s*([^;\s]*)/.test(w)&&RegExp.$1)&&this._extensions[w.toLowerCase()]||null}}]),h}();c.exports=E},{}],2:[function(f,c,T){var E=f("./Mime");c.exports=new E(f("./types/standard"),f("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(f,c,T){c.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(f,c,T){c.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,typeof Le!="undefined"?Le:typeof self!="undefined"?self:typeof window!="undefined"?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(n,R,O){"use strict";O.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(v){return m}},O.escape=n("escape-html"),O.timestamp=function(m){if(m){var v=m;return typeof v=="string"&&(v=Number(v)),String(m).length===10&&(v*=1e3),new Date(v)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,R,O){(function(m,v){"use strict";function i(D){return D&&D.__esModule?D:{default:D}}function u(D,b){return D===void 0?b:D}function d(D,b){return function(U,y,L){if(U)return b(U);D({data:y,status:L.statusCode,headers:L.headers,res:L})}}var s,e=n("babel-runtime/core-js/json/stringify"),o=i(e),r=n("babel-runtime/helpers/typeof"),l=i(r),f=n("util"),c=n("url"),T=n("http"),E=n("https"),h=n("debug")("urllib"),S=n("humanize-ms"),w=0,p=Math.pow(2,31)-10,x=/^https?:\/\//i;O.TIMEOUTS=[S("300s"),S("300s")];var A=["json","text"];O.request=function(D,b,U){return arguments.length===2&&typeof b=="function"&&(U=b,b=null),typeof U=="function"?O.requestWithCallback(D,b,U):(s||(s=n("any-promise")),new s(function(y,L){O.requestWithCallback(D,b,d(y,L))}))},O.requestWithCallback=function(D,b,U){function y(){de&&(clearTimeout(de),de=null)}function L(){P&&(clearTimeout(P),P=null)}function k(ce,Re,Be){if(L(),!U)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),J,m.pid,Q.method,D),void(ce&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
||
stack: %s`,Date(),J,m.pid,ce.name,ce.message,ce.stack));var Ae=U;U=null;var xe={};if(Be&&(g=Be.statusCode,xe=Be.headers),g===401&&xe["www-authenticate"]&&(!b.headers||!b.headers.Authorization)&&b.digestAuth){var Pe=xe["www-authenticate"];if(Pe.indexOf("Digest ")>=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",J,D,Pe),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(Q.method,Q.path,Pe,b.digestAuth),h("Request#%d %s: auth with digest header: %s",J,D,b.headers.Authorization),Be.headers["set-cookie"]&&(b.headers.Cookie=Be.headers["set-cookie"].join(";")),O.requestWithCallback(D,b,Ae)}var De=Date.now()-j;se&&(se.contentDownload=De),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",De,_,g,Q.method,Q.host,Q.path,C,se);var Fe={status:g,statusCode:g,headers:xe,size:_,aborted:F,rt:De,keepAliveSocket:C,data:Re,requestUrls:b.requestUrls,timing:se,remoteAddress:K,remotePort:pe};if(ce){var Ne="";Y&&typeof Y.getCurrentStatus=="function"&&(Ne=", agent status: "+(0,o.default)(Y.getCurrentStatus())),ce.message+=", "+Q.method+" "+D+" "+g+" (connected: "+a+", keepalive socket: "+C+Ne+`)
|
||
headers: `+(0,o.default)(xe),ce.data=Re,ce.path=Q.path,ce.status=g,ce.headers=xe,ce.res=Fe}Ae(ce,Re,b.streaming?Be:Fe),b.emitter&&(H.url=D,H.socket=Se&&Se.connection,H.options=Q,H.size=ie,b.emitter.emit("response",{requestId:J,error:ce,ctx:b.ctx,req:H,res:Fe}))}function z(ce){var Re=null;if(b.followRedirect&&statuses.redirect[ce.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var Be=ce.headers.location;if(Be){if(!(b._followRedirectCount>b.maxRedirects)){var Ae=b.formatRedirectUrl?b.formatRedirectUrl(D,Be):c.resolve(D,Be);h("Request#%d %s: `redirected` from %s to %s",J,Q.path,D,Ae),L(),b.headers&&b.headers.Host&&x.test(Be)&&(b.headers.Host=null);var xe=U;return U=null,O.requestWithCallback(Ae,b,xe),{redirect:!0,error:null}}Re=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+D),Re.name="MaxRedirectError"}else Re=new Error("Got statusCode "+ce.statusCode+" but cannot resolve next location from headers"),Re.name="FollowRedirectError"}return{redirect:!1,error:Re}}function G(ce,Re,Be){return Be(null,Re,ce.headers["content-encoding"])}function q(ce){if(se&&(se.waiting=Date.now()-j),h("Request#%d %s `req response` event emit: status %d, headers: %j",J,D,ce.statusCode,ce.headers),b.streaming){var Re=z(ce);return Re.redirect?void ce.resume():Re.error?(ce.resume(),k(Re.error,null,ce)):k(null,null,ce)}if(ce.on("close",function(){h("Request#%d %s: `res close` event emit, total size %d",J,D,_)}),ce.on("error",function(){h("Request#%d %s: `res error` event emit, total size %d",J,D,_)}),ce.on("aborted",function(){F=!0,h("Request#%d %s: `res aborted` event emit, total size %d",J,D,_)}),ue){var Re=z(ce);return Re.redirect?void ce.resume():Re.error?(ce.resume(),ue.end(),k(Re.error,null,ce)):(b.consumeWriteStream===!1?ce.on("end",k.bind(null,null,null,ce)):isNode010||isNode012?first([[ue,"close"],[ce,"aborted"]],function(xe,Pe,De){h("Request#%d %s: writeStream or res %s event emitted",J,D,De),k(t||null,null,ce)}):ue.on("close",function(){h("Request#%d %s: writeStream close event emitted",J,D),k(t||null,null,ce)}),ce.pipe(ue))}var Be=[];ce.on("data",function(Ae){h("Request#%d %s: `res data` event emit, size %d",J,D,Ae.length),_+=Ae.length,Be.push(Ae)}),ce.on("end",function(){var Ae=v.concat(Be,_);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",J,D,_,ce._dumped),t)return k(t,Ae,ce);var xe=z(ce);if(xe.error)return k(xe.error,Ae,ce);xe.redirect||G(ce,Ae,function(Pe,De,Fe){if(Pe)return k(Pe,Ae,ce);if(!Fe&&A.indexOf(b.dataType)>=0){try{De=decodeBodyByCharset(De,ce)}catch(qe){return h("decodeBodyByCharset error: %s",qe),k(null,De,ce)}if(b.dataType==="json")if(_===0)De=null;else{var Ne=parseJSON(De,ae);Ne.error?Pe=Ne.error:De=Ne.data}}F&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",J,D),k(Pe,De,ce)})})}function re(){h("Response timer ticking, timeout: %d",ye),P=setTimeout(function(){P=null;var ce="Response timeout for "+ye+"ms";t=new Error(ce),t.name="ResponseTimeoutError",t.requestId=J,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",J,D,t.name,ce,a),X()},ye)}function X(){h("Request#%d %s abort, connected: %s",J,D,a),Se.socket||(t.noSocket=!0,k(t)),Se.abort()}if(!D||typeof D!="string"&&(D===void 0?"undefined":(0,l.default)(D))!=="object"){var ne=f.format("expect request url to be a string or a http request options, but got %j",D);throw new Error(ne)}arguments.length===2&&typeof b=="function"&&(U=b,b=null),b=b||{},w>=p&&(w=0);var J=++w;b.requestUrls=b.requestUrls||[];var H={requestId:J,url:D,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",H),b.timeout=b.timeout||O.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var I,j=Date.now();typeof D=="string"?(x.test(D)||(D="http://"+D),I=c.parse(D)):I=D;var B=(b.type||b.method||I.method||"GET").toUpperCase(),M=I.port||80,V=T,Y=u(b.agent,O.agent),ae=b.fixJSONCtlChars;I.protocol==="https:"&&(V=E,Y=u(b.httpsAgent,O.httpsAgent),I.port||(M=443));var Q={host:I.hostname||I.host||"localhost",path:I.path||"/",method:B,port:M,agent:Y,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?Q.requestTimeout=b.timeout[b.timeout.length-1]:b.timeout!==void 0&&(Q.requestTimeout=b.timeout);for(var le=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],he=0;he<le.length;he++){var Z=le[he];b.hasOwnProperty(Z)&&(Q[Z]=b[Z])}Q.rejectUnauthorized!==!1||Q.hasOwnProperty("secureOptions")||(Q.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var $=b.auth||I.auth;$&&(Q.auth=$);var oe=b.content||b.data,W=B==="GET"||B==="HEAD"||b.dataAsQueryString;if(!b.content&&oe&&typeof oe!="string"&&!v.isBuffer(oe))if(W)oe=b.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe);else{var N=Q.headers["Content-Type"]||Q.headers["content-type"];N||(N=b.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Q.headers["Content-Type"]=N),oe=parseContentType(N).type==="application/json"?(0,o.default)(oe):b.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe)}W&&oe&&(Q.path+=(I.query?"&":"?")+oe,oe=null);var ie=0;if(oe){var ee=oe.length;v.isBuffer(oe)||(ee=v.byteLength(oe)),ie=Q.headers["Content-Length"]=ee}b.dataType==="json"&&(Q.headers.Accept="application/json"),typeof b.beforeRequest=="function"&&b.beforeRequest(Q);var de=null,P=null,t=null,a=!1,C=!1,_=0,g=-1,F=!1,K="",pe="",se=null;b.timing&&(se={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),Q.headers["User-Agent"]||Q.headers["user-agent"]||(Q.headers["User-Agent"]=navigator.userAgent),b.gzip&&(Q.headers["Accept-Encoding"]||Q.headers["accept-encoding"]||(Q.headers["Accept-Encoding"]="gzip"));var ue=b.writeStream;h("Request#%d %s %s with headers %j, options.path: %s",J,B,D,Q.headers,Q.path),b.requestUrls.push(D);var ge,ye;Array.isArray(b.timeout)?(ge=S(b.timeout[0]),ye=S(b.timeout[1])):ge=ye=S(b.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",ge,ye);var Se;try{Se=V.request(Q,q)}catch(ce){return k(ce)}return typeof window=="undefined"?function(){h("Connect timer ticking, timeout: %d",ge),de=setTimeout(function(){de=null,g===-1&&(g=-2);var ce="Connect timeout for "+ge+"ms",Re="ConnectionTimeoutError";Se.socket||(Re="SocketAssignTimeoutError",ce+=", working sockets is full"),t=new Error(ce),t.name=Re,t.requestId=J,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",J,D,t.name,ce,a),X()},ge)}():Se.on("requestTimeout",function(){g===-1&&(g=-2);var ce="Connect timeout for "+ge+"ms";t=new Error(ce),t.name="ConnectionTimeoutError",t.requestId=J,X()}),se&&Se.on("finish",function(){se.requestSent=Date.now()-j}),Se.once("socket",function(ce){se&&(se.queuing=Date.now()-j),isNode010&&ce.socket&&(ce=ce.socket);var Re=ce.readyState;if(Re==="opening")return ce.once("lookup",function(Be,Ae,xe){h("Request#%d %s lookup: %s, %s, %s",J,D,Be,Ae,xe),se&&(se.dnslookup=Date.now()-j),Ae&&(K=Ae)}),void ce.once("connect",function(){se&&(se.connected=Date.now()-j),y(),re(),h("Request#%d %s new socket connected",J,D),a=!0,K||(K=ce.remoteAddress),pe=ce.remotePort});h("Request#%d %s reuse socket connected, readyState: %s",J,D,Re),a=!0,C=!0,K||(K=ce.remoteAddress),pe=ce.remotePort,y(),re()}),Se.on("error",function(ce){ce.name!=="Error"&&ce.name!=="TypeError"||(ce.name=a?"ResponseError":"RequestError"),ce.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",J,D,ce.name,ce.message),k(t||ce)}),ue&&ue.once("error",function(ce){ce.message+=' (writeStream "error")',t=ce,h("Request#%d %s `writeStream error` event emit, %s: %s",J,D,ce.name,ce.message),X()}),b.stream?(b.stream.pipe(Se),b.stream.once("error",function(ce){ce.message+=' (stream "error")',t=ce,h("Request#%d %s `readStream error` event emit, %s: %s",J,D,ce.name,ce.message),X()})):Se.end(oe),Se.requestId=J,Se}}).call(this,n("_process"),n("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(ve){function n(O){if(R[O])return R[O].exports;var m=R[O]={i:O,l:!1,exports:{}};return ve[O].call(m.exports,m,m.exports,n),m.l=!0,m.exports}var R={};n.m=ve,n.c=R,n.d=function(O,m,v){n.o(O,m)||Object.defineProperty(O,m,{configurable:!1,enumerable:!0,get:v})},n.n=function(O){var m=O&&O.__esModule?function(){return O.default}:function(){return O};return n.d(m,"a",m),m},n.o=function(O,m){return Object.prototype.hasOwnProperty.call(O,m)},n.p="",n(n.s=12)}([function(ve,n,R){!function(O,m){ve.exports=n=m()}(0,function(){var O=O||function(m,v){var i=Object.create||function(){function E(){}return function(h){var S;return E.prototype=h,S=new E,E.prototype=null,S}}(),u={},d=u.lib={},s=d.Base=function(){return{extend:function(h){var S=i(this);return h&&S.mixIn(h),S.hasOwnProperty("init")&&this.init!==S.init||(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var S in h)h.hasOwnProperty(S)&&(this[S]=h[S]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=d.WordArray=s.extend({init:function(h,S){h=this.words=h||[],this.sigBytes=S!=null?S:4*h.length},toString:function(h){return(h||r).stringify(this)},concat:function(h){var S=this.words,w=h.words,p=this.sigBytes,x=h.sigBytes;if(this.clamp(),p%4)for(var A=0;A<x;A++){var D=w[A>>>2]>>>24-A%4*8&255;S[p+A>>>2]|=D<<24-(p+A)%4*8}else for(var A=0;A<x;A+=4)S[p+A>>>2]=w[A>>>2];return this.sigBytes+=x,this},clamp:function(){var h=this.words,S=this.sigBytes;h[S>>>2]&=4294967295<<32-S%4*8,h.length=m.ceil(S/4)},clone:function(){var h=s.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var S,w=[],p=0;p<h;p+=4){var x=function(A){var A=A,D=987654321,b=4294967295;return function(){D=36969*(65535&D)+(D>>16)&b,A=18e3*(65535&A)+(A>>16)&b;var U=(D<<16)+A&b;return U/=4294967296,(U+=.5)*(m.random()>.5?1:-1)}}(4294967296*(S||m.random()));S=987654071*x(),w.push(4294967296*x()|0)}return new e.init(w,h)}}),o=u.enc={},r=o.Hex={stringify:function(h){for(var S=h.words,w=h.sigBytes,p=[],x=0;x<w;x++){var A=S[x>>>2]>>>24-x%4*8&255;p.push((A>>>4).toString(16)),p.push((15&A).toString(16))}return p.join("")},parse:function(h){for(var S=h.length,w=[],p=0;p<S;p+=2)w[p>>>3]|=parseInt(h.substr(p,2),16)<<24-p%8*4;return new e.init(w,S/2)}},l=o.Latin1={stringify:function(h){for(var S=h.words,w=h.sigBytes,p=[],x=0;x<w;x++){var A=S[x>>>2]>>>24-x%4*8&255;p.push(String.fromCharCode(A))}return p.join("")},parse:function(h){for(var S=h.length,w=[],p=0;p<S;p++)w[p>>>2]|=(255&h.charCodeAt(p))<<24-p%4*8;return new e.init(w,S)}},f=o.Utf8={stringify:function(h){try{return decodeURIComponent(escape(l.stringify(h)))}catch(S){throw new Error("Malformed UTF-8 data")}},parse:function(h){return l.parse(unescape(encodeURIComponent(h)))}},c=d.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=f.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var S=this._data,w=S.words,p=S.sigBytes,x=this.blockSize,A=4*x,D=p/A;D=h?m.ceil(D):m.max((0|D)-this._minBufferSize,0);var b=D*x,U=m.min(4*b,p);if(b){for(var y=0;y<b;y+=x)this._doProcessBlock(w,y);var L=w.splice(0,b);S.sigBytes-=U}return new e.init(L,U)},clone:function(){var h=s.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),T=(d.Hasher=c.extend({cfg:s.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){return h&&this._append(h),this._doFinalize()},blockSize:16,_createHelper:function(h){return function(S,w){return new h.init(w).finalize(S)}},_createHmacHelper:function(h){return function(S,w){return new T.HMAC.init(h,w).finalize(S)}}}),u.algo={});return u}(Math);return O})},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"detectIEVersion",value:function(){for(var d=4,s=document.createElement("div"),e=s.getElementsByTagName("i");s.innerHTML="<!--[if gt IE "+d+"]><i></i><![endif]-->",e[0];)d++;return d>4&&d}},{key:"extend",value:function(d,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&s[e]&&(d[e]=s[e])}},{key:"isArray",value:function(d){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(d){return d=d.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(d)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(d)?"audio":/.bmp|.jpg|.jpeg|.png/.test(d)?"img":"other"}},{key:"isImage",value:function(d){return d=d.toLowerCase(),!!/.jpg|.jpeg|.png/.test(d)}},{key:"ISODateString",value:function(d){function s(e){return e<10?"0"+e:e}return d.getUTCFullYear()+"-"+s(d.getUTCMonth()+1)+"-"+s(d.getUTCDate())+"T"+s(d.getUTCHours())+":"+s(d.getUTCMinutes())+":"+s(d.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(d){return!!/^\d+$/.test(d)}}]),i}();n.default=v},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return function(m){function v(T,E,h,S,w,p,x){var A=T+(E&h|~E&S)+w+x;return(A<<p|A>>>32-p)+E}function i(T,E,h,S,w,p,x){var A=T+(E&S|h&~S)+w+x;return(A<<p|A>>>32-p)+E}function u(T,E,h,S,w,p,x){var A=T+(E^h^S)+w+x;return(A<<p|A>>>32-p)+E}function d(T,E,h,S,w,p,x){var A=T+(h^(E|~S))+w+x;return(A<<p|A>>>32-p)+E}var s=O,e=s.lib,o=e.WordArray,r=e.Hasher,l=s.algo,f=[];!function(){for(var T=0;T<64;T++)f[T]=4294967296*m.abs(m.sin(T+1))|0}();var c=l.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,h){for(var S=0;S<16;S++){var w=h+S,p=E[w];E[w]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}var x=this._hash.words,A=E[h+0],D=E[h+1],b=E[h+2],U=E[h+3],y=E[h+4],L=E[h+5],k=E[h+6],z=E[h+7],G=E[h+8],q=E[h+9],re=E[h+10],X=E[h+11],ne=E[h+12],J=E[h+13],H=E[h+14],I=E[h+15],j=x[0],B=x[1],M=x[2],V=x[3];j=v(j,B,M,V,A,7,f[0]),V=v(V,j,B,M,D,12,f[1]),M=v(M,V,j,B,b,17,f[2]),B=v(B,M,V,j,U,22,f[3]),j=v(j,B,M,V,y,7,f[4]),V=v(V,j,B,M,L,12,f[5]),M=v(M,V,j,B,k,17,f[6]),B=v(B,M,V,j,z,22,f[7]),j=v(j,B,M,V,G,7,f[8]),V=v(V,j,B,M,q,12,f[9]),M=v(M,V,j,B,re,17,f[10]),B=v(B,M,V,j,X,22,f[11]),j=v(j,B,M,V,ne,7,f[12]),V=v(V,j,B,M,J,12,f[13]),M=v(M,V,j,B,H,17,f[14]),B=v(B,M,V,j,I,22,f[15]),j=i(j,B,M,V,D,5,f[16]),V=i(V,j,B,M,k,9,f[17]),M=i(M,V,j,B,X,14,f[18]),B=i(B,M,V,j,A,20,f[19]),j=i(j,B,M,V,L,5,f[20]),V=i(V,j,B,M,re,9,f[21]),M=i(M,V,j,B,I,14,f[22]),B=i(B,M,V,j,y,20,f[23]),j=i(j,B,M,V,q,5,f[24]),V=i(V,j,B,M,H,9,f[25]),M=i(M,V,j,B,U,14,f[26]),B=i(B,M,V,j,G,20,f[27]),j=i(j,B,M,V,J,5,f[28]),V=i(V,j,B,M,b,9,f[29]),M=i(M,V,j,B,z,14,f[30]),B=i(B,M,V,j,ne,20,f[31]),j=u(j,B,M,V,L,4,f[32]),V=u(V,j,B,M,G,11,f[33]),M=u(M,V,j,B,X,16,f[34]),B=u(B,M,V,j,H,23,f[35]),j=u(j,B,M,V,D,4,f[36]),V=u(V,j,B,M,y,11,f[37]),M=u(M,V,j,B,z,16,f[38]),B=u(B,M,V,j,re,23,f[39]),j=u(j,B,M,V,J,4,f[40]),V=u(V,j,B,M,A,11,f[41]),M=u(M,V,j,B,U,16,f[42]),B=u(B,M,V,j,k,23,f[43]),j=u(j,B,M,V,q,4,f[44]),V=u(V,j,B,M,ne,11,f[45]),M=u(M,V,j,B,I,16,f[46]),B=u(B,M,V,j,b,23,f[47]),j=d(j,B,M,V,A,6,f[48]),V=d(V,j,B,M,z,10,f[49]),M=d(M,V,j,B,H,15,f[50]),B=d(B,M,V,j,L,21,f[51]),j=d(j,B,M,V,ne,6,f[52]),V=d(V,j,B,M,U,10,f[53]),M=d(M,V,j,B,re,15,f[54]),B=d(B,M,V,j,D,21,f[55]),j=d(j,B,M,V,G,6,f[56]),V=d(V,j,B,M,I,10,f[57]),M=d(M,V,j,B,k,15,f[58]),B=d(B,M,V,j,J,21,f[59]),j=d(j,B,M,V,y,6,f[60]),V=d(V,j,B,M,X,10,f[61]),M=d(M,V,j,B,b,15,f[62]),B=d(B,M,V,j,q,21,f[63]),x[0]=x[0]+j|0,x[1]=x[1]+B|0,x[2]=x[2]+M|0,x[3]=x[3]+V|0},_doFinalize:function(){var E=this._data,h=E.words,S=8*this._nDataBytes,w=8*E.sigBytes;h[w>>>5]|=128<<24-w%32;var p=m.floor(S/4294967296),x=S;h[15+(w+64>>>9<<4)]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h[14+(w+64>>>9<<4)]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8),E.sigBytes=4*(h.length+1),this._process();for(var A=this._hash,D=A.words,b=0;b<4;b++){var U=D[b];D[b]=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8)}return A},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});s.MD5=r._createHelper(c),s.HmacMD5=r._createHmacHelper(c)}(Math),O.MD5})},function(ve,n,R){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},n.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},n.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(ve,n,R){"use strict";function O(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function c(T,E){for(var h=0;h<E.length;h++){var S=E[h];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(T,S.key,S)}}return function(T,E,h){return E&&c(T.prototype,E),h&&c(T,h),T}}(),i=R(5),u=O(i),d=R(25),s=O(d),e=R(6),o=O(e),r=R(7),l=O(r),f=function(){function c(T){m(this,c);var E=l.default.os.name,h=l.default.os.version||"",S=l.default.browser.name,w=l.default.browser.version||"",p=window.location.href,x="";p&&(x=l.default.getHost(p));var A="pc";l.default.os.ipad?A="pad":(l.default.os.iphone||l.default.os.android)&&(A="phone"),this._ri=u.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:o.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:E,ov:h,et:S,ev:w,uat:navigator.userAgent,app_n:x,tt:A,dm:"h5",ut:""}}return v(c,[{key:"log",value:function(E,h){h&&h.ri?(this._ri=h.ri,delete h.ri):this._ri=u.default.create(),h&&h.ut&&(this.initParam.ut=h.ut,delete h.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=E=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=E;var S=[];if(h)for(var w in h)S.push(w+"="+h[w]);var p=S.join("&");this.initParam.args=encodeURIComponent(p==""?"0":p);var x=[];for(var w in this.initParam)x.push(w+"="+this.initParam[w]);var A=x.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=s.default.get("p_h5_upload_u");return E||(E=u.default.create(),s.default.set("p_h5_upload_u",E,730)),E}},{key:"getClientId",value:function(){return s.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(E){return E||(E=u.default.create()),s.default.set("p_h5_upload_clientId",E,730),E}}]),c}();n.default=f},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"create",value:function(d,s){var e,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(s=s||o.length,d)for(e=0;e<d;e++)r[e]=o[0|Math.random()*s];else{var l;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(l=0|16*Math.random(),r[e]=o[e==19?3&l|8:l])}return r.join("")}}]),i}();n.default=v},function(ve,n,R){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var O={version:"1.5.0"};n.default=O},function(ve,n,R){"use strict";function O(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function e(o,r){for(var l=0;l<r.length;l++){var f=r[l];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),v=function(o){var r=navigator.userAgent,l="other";if(o.ios)return"iOS";if(o.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(l="macOS"),navigator.platform=="X11"&&!f&&!c&&(l="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(l="Linux"),f?"windows":l},i=function(){var o=navigator.userAgent,r="";return(o.indexOf("Windows NT 5.0")>-1||o.indexOf("Windows 2000")>-1)&&(r="2000"),(o.indexOf("Windows NT 5.1")>-1||o.indexOf("Windows XP")>-1)&&(r="XP"),(o.indexOf("Windows NT 5.2")>-1||o.indexOf("Windows 2003")>-1)&&(r="2003"),(o.indexOf("Windows NT 6.0")>-1||o.indexOf("Windows Vista")>-1)&&(r="Vista"),(o.indexOf("Windows NT 6.1")>-1||o.indexOf("Windows 7")>-1)&&(r="7"),(o.indexOf("Windows NT 6.2")>-1||o.indexOf("Windows 8")>-1)&&(r="8"),(o.indexOf("Windows NT 6.3")>-1||o.indexOf("Windows 8.1")>-1)&&(r="8.1"),(o.indexOf("Windows NT 10")>-1||o.indexOf("Windows 10")>-1)&&(r="10"),r},u=function(o){var r=navigator.userAgent.toLowerCase();return o.chrome?"Chrome":o.firefox?"Firefox":o.safari?"Safari":o.webview?"webview":o.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},d=function(){var e={},o={},r=navigator.userAgent,l=navigator.platform,f=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=r.match(/(Android);?[\s\/]+([\d.]+)?/),T=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),h=r.match(/(iPod)(.*OS\s([\d_]+))?/),S=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),w=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),p=/Win\d{2}|Windows/.test(l),x=r.match(/Windows Phone ([\d.]+)/),A=w&&r.match(/TouchPad/),D=r.match(/Kindle\/([\d.]+)/),b=r.match(/Silk\/([\d._]+)/),U=r.match(/(BlackBerry).*Version\/([\d.]+)/),y=r.match(/(BB10).*Version\/([\d.]+)/),L=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),k=r.match(/PlayBook/),z=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),G=r.match(/Firefox\/([\d.]+)/),q=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),re=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),X=!z&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ne=X||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!f)&&(o.version=f[1]),c&&(e.android=!0,e.version=c[2]),S&&!h&&(e.ios=e.iphone=!0,e.version=S[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),h&&(e.ios=e.ipod=!0,e.version=h[3]?h[3].replace(/_/g,"."):null),x&&(e.wp=!0,e.version=x[1]),w&&(e.webos=!0,e.version=w[2]),A&&(e.touchpad=!0),U&&(e.blackberry=!0,e.version=U[2]),y&&(e.bb10=!0,e.version=y[2]),L&&(e.rimtabletos=!0,e.version=L[2]),k&&(o.playbook=!0),D&&(e.kindle=!0,e.version=D[1]),b&&(o.silk=!0,o.version=b[1]),!b&&e.android&&r.match(/Kindle Fire/)&&(o.silk=!0),z&&(o.chrome=!0,o.version=z[1]),G&&(o.firefox=!0,o.version=G[1]),q&&(e.firefoxos=!0,e.version=q[1]),re&&(o.ie=!0,o.version=re[1]),ne&&(T||e.ios||p||c)&&(o.safari=!0,e.ios||(o.version=ne[1])),X&&(o.webview=!0),T){var J=r.match(/[\d]*_[\d]*_[\d]*/);J&&J.length>0&&J[0]&&(e.version=J[0].replace(/_/g,"."))}return e.tablet=!!(E||k||c&&!r.match(/Mobile/)||G&&r.match(/Tablet/)||re&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||S||w||U||y||z&&r.match(/Android/)||z&&r.match(/CriOS\/([\d.]+)/)||G&&r.match(/Mobile/)||re&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,T?e.name="macOS":p?(e.name="windows",e.version=i()):e.name=v(e),o.name=u(o),{os:e,browser:o}}(),s=function(){function e(){O(this,e)}return m(e,null,[{key:"getHost",value:function(r){var l="";if(r===void 0||r==null||r=="")return"";var f=r.indexOf("//"),c=r;f>-1&&(c=r.substring(f+2));var l=c,T=c.split("/");return T&&T.length>0&&(l=T[0]),T=l.split(":"),T&&T.length>0&&(l=T[0]),l}},{key:"os",get:function(){return d.os}},{key:"browser",get:function(){var r=d.browser;return r.name||(r.name=u()),r}}]),e}();n.default=s},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"get",value:function(d,s,e,o,r){var l;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),l=new XMLHttpRequest,l.onreadystatechange=function(){l.readyState===4&&(l.status===200?s(l.responseText):e(l.responseText))};try{o===void 0&&(o=!0),l.open("GET",d,o),r&&(l.withCredentials=!0)}catch(f){return void e(f)}try{l.send()}catch(f){e(f)}}}]),i}();n.default=v},function(ve,n,R){"use strict";function O(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function d(s,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,e,o){return e&&d(s.prototype,e),o&&d(s,o),s}}(),v=R(27),i=R(30),u=(R(10),function(){function d(){O(this,d)}return m(d,null,[{key:"randomUUID",value:function(){for(var e=[],o="0123456789abcdef",r=0;r<36;r++)e[r]=o.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=o.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var o=encodeURIComponent(e);return o=o.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(e,o,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var l=[];for(var f in e)l.push(f);for(var c=l.sort(),T="",E=c.length,f=0;f<E;f++){var h=d.aliyunEncodeURI(c[f]),S=d.aliyunEncodeURI(e[c[f]]);T==""?T=h+o+S:T+=r+h+o+S}return T}},{key:"makeChangeSiga",value:function(e,o){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return i.stringify(v("GET&"+d.aliyunEncodeURI("/")+"&"+d.aliyunEncodeURI(d.makeUTF8sort(e,"=","&")),o+"&"))}}]),d}());n.default=u},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return O.enc.Utf8})},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return O.enc.Hex})},function(ve,n,R){ve.exports=R(13)},function(ve,n,R){"use strict";var O,m,v=(typeof Symbol=="function"&&Symbol.iterator,R(14)),i=function(d){return d&&d.__esModule?d:{default:d}}(v),u={Vod:i.default};O=[],(m=function(){return u}.apply(n,O))!==void 0&&(ve.exports=m),window.AliyunUpload=u,Ge.exports=AliyunUpload},function(ve,n,R){"use strict";function O(y){return y&&y.__esModule?y:{default:y}}function m(y,L){if(!(y instanceof L))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function y(L,k){for(var z=0;z<k.length;z++){var G=k[z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(L,G.key,G)}}return function(L,k,z){return k&&y(L.prototype,k),z&&y(L,z),L}}(),i=R(15),u=R(3),d=R(16),s=O(d),e=R(18),o=O(e),r=R(24),l=O(r),f=R(4),c=O(f),T=R(1),E=O(T),h=R(5),S=O(h),w=R(26),p=O(w),x=R(31),A=O(x),D=R(32),b=O(D),U=(R(2),function(){function y(L){m(this,y),this.options=L,this.options.partSize=this.options.partSize||u.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||u.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=i.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=i.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return v(y,[{key:"init",value:function(k,z,G,q){return this._retryCount=0,!(G&&!q||!G&&q)&&!(k&&!z||!k&&z)&&(this._ossCreditor.accessKeyId=k,this._ossCreditor.accessKeySecret=z,this._ossCreditor.securityToken=G,this._ossCreditor.expireTime=q,!0)}},{key:"addFile",value:function(k,z,G,q,re,X){if(!k)return!1;if(k.size==0)try{this.options.onUploadFailed({file:k},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(I){console.log(I)}for(var ne=(this.options,0);ne<this._uploadList.length;ne++)if(this._uploadList[ne].file==k)return!1;var J=new Object;if(J.file=k,J._endpoint=z,J._bucket=G,J._object=q,J.state=i.UPLOADSTATE.INIT,J.isImage=E.default.isImage(k.name),!J.isImage&&this.options.enableUploadProgress){var H=this;b.default.getMd5(k,function(I){J.fileHash=I;var j=H._getCheckoutpoint(J);H.options.localCheckpoint||j||H._getCheckoutpointFromCloud(J,function(B){if(B.UploadPoint){var M=JSON.parse(B.UploadPoint);M.loaded!=1&&(J.checkpoint=M.checkpoint,J.loaded=M.loaded,J.videoId=B.VideoId,H._saveCheckoutpoint(J,M.checkpoint))}},function(B){try{if((B=JSON.parse(B))&&B.Code=="InvalidParameter"&&B.Message.indexOf("UserId")>0){H._invalidUserId=!0;var M=B.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(V){console.log(V)}})})}re&&(J.videoInfo=re?JSON.parse(re).Vod:{},J.userData=o.default.encode(re)),J.ri=S.default.create(),this._uploadList.push(J),this._reportLog("20001",J,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(J)}catch(I){console.log(I)}return!0}},{key:"deleteFile",value:function(k){return!!this.cancelFile(k)&&(this._uploadList.splice(k,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var z=this._uploadList[k];if(k==this._curIndex&&z.state==i.UPLOADSTATE.UPLOADING){z.state=i.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(z);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(z),this._removeCheckoutpoint(z),this.nextUpload()}else z.state!=i.UPLOADSTATE.SUCCESS&&(z.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",z),!0}},{key:"resumeFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var z=this._uploadList[k];return z.state==i.UPLOADSTATE.CANCELED&&(z.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(k){return this._getCheckoutpoint({file:k})}},{key:"startUpload",value:function(k){if(this._retryCount=0,this.options,this._state==i.VODSTATE.START||this._state==i.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=i.VODSTATE.END);var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var k=this.options;if(this._state==i.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z)}else{this._state=i.VODSTATE.END;try{k.onUploadEnd&&k.onUploadEnd(z)}catch(G){console.log(G)}}}},{key:"clear",value:function(k){for(var z=this.options,G=0,q=0;q<this._uploadList.length;q++)z.uploadList[q].state==i.UPLOADSTATE.SUCCESS&&G++,this._uploadList[q].state==k&&(z.uploadList.splice(q,1),q--);z.onClear&&z.onClear(z.uploadList.length,G)}},{key:"stopUpload",value:function(){if((this._state==i.VODSTATE.START||this._state==i.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var k=this._uploadList[this._curIndex];this._state=i.VODSTATE.STOP,k.state=i.UPLOADSTATE.STOPED,this._changeState(k,i.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(k){var z=this;if(!k)return!1;var G=JSON.parse(o.default.decode(k));return!!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration)&&z.resumeUploadWithToken(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration)}},{key:"resumeUploadWithToken",value:function(k,z,G,q){if(this.options,!(k&&z&&G&&q))return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var re="";return this._uploadList.length>this._curIndex&&(re=this._uploadList[this._curIndex]),re&&(this.init(k,z,G,q),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(re,re.retry),re.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(k,z,G){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var q=this._uploadList[this._curIndex];q.object?this._refreshSTSTokenUpload(q,k,z,G):this.setSTSToken(q,k,z,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(k,z,G,q,re){if(!(z&&G&&q&&re))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var X=k;this.init(z,G,q,re),X.endpoint=X._endpoint,X.bucket=X._bucket,X.object=X._object,this._ossUpload=null,this._uploadCore(X,k.retry),k.retry=!1}},{key:"setSTSToken",value:function(k,z,G,q){if(!z||!G||!q)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var re=k.videoInfo,X={accessKeyId:z,securityToken:q,accessKeySecret:G,fileName:k.file.name,title:re.Title,requestId:k.ri,region:this.options.region};re.ImageType&&(X.imageType=re.ImageType),re.ImageExt&&(X.imageExt=re.ImageExt),re.FileSize&&(X.fileSize=re.FileSize),re.Description&&(X.description=re.Description),re.CateId&&(X.cateId=re.CateId),re.Tags&&(X.tags=re.Tags),re.TemplateGroupId&&(X.templateGroupId=re.TemplateGroupId),re.StorageLocation&&(X.storageLocation=re.StorageLocation),re.CoverURL&&(X.coverUrl=re.CoverURL),re.TransCodeMode&&(X.transCodeMode=re.TransCodeMode),re.UserData&&(X.userData=re.UserData);var ne=this,J="getUploadAuth";k.videoId?(X.videoId=k.videoId,J="refreshUploadAuth"):k.isImage&&(J="getImageUploadAuth"),p.default[J](X,function(H){k.videoId=H.VideoId?H.VideoId:k.videoId,ne.setUploadAuthAndAddress(k,H.UploadAuth,H.UploadAddress),ne._state=i.VODSTATE.START},function(H){ne._error(k,{name:H.Code,code:H.Code,message:H.Message,requestId:H.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(k,z,G,q){if(!k||!z||!G)return!1;var re=JSON.parse(o.default.decode(z));if(!(re.AccessKeyId&&re.AccessKeySecret&&re.SecurityToken&&re.Expiration))return console.error("uploadauth is invalid"),!1;var X={},ne=k;if(G){if(X=JSON.parse(o.default.decode(G)),!X.Endpoint||!X.Bucket||!X.FileName)return console.error("uploadAddress is invalid"),!1}else X.Endpoint=ne.endpoint,X.Bucket=ne.bucket,X.FileName=ne.object;this._ut="vod",this._uploadWay="vod",this.options.region=re.Region||this.options.region,this.init(re.AccessKeyId,re.AccessKeySecret,re.SecurityToken,re.Expiration),ne.endpoint=ne._endpoint?ne._endpoint:X.Endpoint,ne.bucket=ne._bucket?ne._bucket:X.Bucket,ne.object=ne._object?ne._object:X.FileName,ne.region=this.options.region,q&&(ne.videoId=q),this._ossUpload=null,this._uploadCore(ne,k.retry),k.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(k,z,G,q){if(!z||!G||!q)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var re={accessKeyId:z,securityToken:q,accessKeySecret:G,videoId:k.object,requestId:k.ri,region:this.options.region},X=this,ne="refreshUploadAuth";k.isImage&&(ne="getImageUploadAuth"),p.default[ne](re,function(J){X.setUploadAuthAndAddress(k,J.UploadAuth,UploadAddress),X._state=i.VODSTATE.START},function(J){X._error(k,{name:J.Code,code:J.Code,message:J.Message,requestId:J.RequestId})})}},{key:"_upload",value:function(k){var z=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(k.retry=z,G.onUploadstarted&&!z)try{var q=this._getCheckoutpoint(k);q&&q.state!=i.UPLOADSTATE.UPLOADING&&(k.checkpoint=q,k.videoId=q.videoId),G.onUploadstarted(k)}catch(re){console.log(re)}}},{key:"_uploadCore",value:function(k){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(k.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){k.endpoint=k.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var z=this;this._ossUpload=new s.default({bucket:k.bucket,endpoint:k.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(I,j){z._error.call(z,I,j)},oncomplete:function(I,j){z._complete.call(z,I,j)},onprogress:function(I,j,B){z._progress.call(z,I,j,B)}})}var G=E.default.getFileType(k.file.name),q=this._getCheckoutpoint(k),re="",X="";q&&q.checkpoint&&(X=q.state,re=q.videoId,q=q.checkpoint),q&&re==k.videoId&&X!=i.UPLOADSTATE.UPLOADING&&(q.file=k.file,k.checkpoint=q,q.uploadId);var ne=this._adjustPartSize(k);this._reportLog("20002",k,{ft:G,fs:k.file.size,bu:k.bucket,ok:k.object,vid:k.videoId||"",fn:k.file.name,fw:null,fh:null,ps:ne});var J={headers:{"x-oss-notification":k.userData?k.userData:""},partSize:ne,parallel:this.options.parallel};this._ossUpload.upload(k,J)}},{key:"_findUploadIndex",value:function(){for(var k=-1,z=0;z<this._uploadList.length;z++)if(this._uploadList[z].state==i.UPLOADSTATE.INIT){k=z;break}return k}},{key:"_error",value:function(k,z){if(z.name=="cancel")try{this.options.onUploadCanceled(k,z)}catch(q){console.log(q)}else{if(z.message.indexOf("InvalidAccessKeyIdError")>0||z.name=="SignatureDoesNotMatchError"||z.code=="SecurityTokenExpired"||z.code=="InvalidSecurityToken.Expired"||z.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,k.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(k,z)}catch(q){console.log(q)}}return}if((z.name=="RequestTimeoutError"||z.name=="ConnectionTimeout"||z.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(k,!0)},1e3*G._retryDuration),void this._retryCount++}z.name=="NoSuchUploadError"&&this._removeCheckoutpoint(k),this._handleError(k,z)}}},{key:"_handleError",value:function(k,z){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],q=i.UPLOADSTATE.FAIlURE;if(k.state!=i.UPLOADSTATE.CANCELED&&(k.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&z&&z.code&&z.message))try{this.options.onUploadFailed(k,z.code,z.message)}catch(X){console.log(X)}if(G&&this._changeState(k,q),this._reportLog("20006",k,{code:z.name,message:z.message,requestId:z.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),this._reportLog("20004",k,{requestId:z.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),k.ri=S.default.create(),this._findUploadIndex()!=-1){var re=this;this._state=i.VODSTATE.START,setTimeout(function(){re.nextUpload()},100)}}},{key:"_complete",value:function(k,z){if(k.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(k)}catch(re){console.log(re)}var G=0;z&&z.res&&z.res.headers&&(G=z.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(k);var q=this;setTimeout(function(){q.nextUpload()},100),this._retryCount=0,this._reportLog("20003",k,{requestId:G})}},{key:"_progress",value:function(k,z,G){if(this.options.onUploadProgress)try{k.loaded=z.loaded,this.options.onUploadProgress(k,z.total,z.loaded)}catch(I){console.log(I)}var q=z.checkpoint,re=0;q&&(k.checkpoint=q,this._saveCheckoutpoint(k,q,i.UPLOADSTATE.UPLOADING),re=q.uploadId),this._retryCount=0;var X=this._getPortNumber(q),ne=0;if(G&&G.headers&&(ne=G.headers["x-oss-request-id"]),z.loaded!=0&&this._reportLog("20007",k,{pn:X,requestId:ne}),z.loaded!=1&&this._reportLog("20005",k,{UploadId:re,pn:X+1,pr:k.retry?1:0,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),!this._invalidUserId&&!k.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var J={file:k.file,checkpoint:z,userId:this.options.userId,videoId:k.videoId,region:this.options.region,fileHash:k.fileHash};try{var H=this;A.default.upload(J,function(){},function(I){if((I=JSON.parse(I))&&I.Code=="InvalidParameter"&&I.Message.indexOf("UserId")>0){H._invalidUserId=!0;var j=I.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(j)}})}catch(I){console.log(I)}}}},{key:"_getPortNumber",value:function(k){if(k){var z=k.doneParts;if(z&&z.length>0)return z[z.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(k){var z=this._getCheckoutpointKey(k);l.default.remove(z)}},{key:"_getCheckoutpoint",value:function(k){var z=this._getCheckoutpointKey(k),G=l.default.get(z);if(G)try{return JSON.parse(G)}catch(q){}return""}},{key:"_saveCheckoutpoint",value:function(k,z,G){if(z){var q=this._getCheckoutpointKey(k),re=k.file,X={fileName:re.name,lastModified:re.lastModified,size:re.size,object:k.object,videoId:k.videoId,bucket:k.bucket,endpoint:k.endpoint,checkpoint:z,loaded:k.loaded,state:G};l.default.set(q,JSON.stringify(X))}}},{key:"_changeState",value:function(k,z){var G=this._getCheckoutpoint(k);G&&((this._onbeforeunload=!0)&&(z=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(k,G.checkpoint,z))}},{key:"_getCheckoutpointKey",value:function(k){return"upload_"+k.file.lastModified+"_"+k.file.name+"_"+k.file.size}},{key:"_getCheckoutpointFromCloud",value:function(k,z,G){var q={userId:this.options.userId,uploadInfoList:[{FileName:k.file.name,FileSize:k.file.size,FileCreateTime:k.file.lastModified,FileHash:k.fileHash}],region:this.options.region};A.default.get(q,function(re){z(re)},G)}},{key:"_reportLog",value:function(k,z,G){G||(G={}),G.ri=z.ri,this._ut&&(G.ut=this._ut),this._log.log(k,G)}},{key:"_initEvent",value:function(){var k=this;window&&(window.onbeforeunload=function(z){if(k._onbeforeunload=!0,k._curIndex!=-1&&k._uploadList.length>k._curIndex){var G=k._uploadList[k._curIndex];k._changeState(G,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var k=0;k<this._uploadList.length;k++){var z=this._uploadList[k];z.state!=i.UPLOADSTATE.FAIlURE&&z.state!=i.UPLOADSTATE.STOPED||(z.state=i.UPLOADSTATE.INIT)}this._state=i.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(k){return k.file.size/this.options.partSize>1e4?k.file.size/9999:this.options.partSize}}]),y}());n.default=U},function(ve,n,R){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},n.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(ve,n,R){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function m(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function e(o,r){for(var l=0;l<r.length;l++){var f=r[l];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),i=R(3),u=R(17),d=(O(u),R(1)),s=(O(d),function(){function e(o,r){if(m(this,e),o){this._config=o,this.create(this._config),this._uploadInfo=null,this._callback={};var l=function(){};this._callback.onerror=r.onerror||l,this._callback.oncomplete=r.oncomplete||l,this._callback.onprogress=r.onprogress||l}}return v(e,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var l={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(l.timeout=r.timeout),this.oss=new OSS.Wrapper(l)}},{key:"abort",value:function(r){if(r.checkpoint){var l=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,l)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,l){this._uploadInfo=r;var f=this,c=function(h,S,w){return function(p){f._progress(h,S,w),p()}},T={parallel:l.parallel||this._config.parallel||i.UPLOADDEFAULT.PARALLEL,partSize:l.partSize||this._config.partSize||i.UPLOADDEFAULT.PARTSIZE,progress:c};l.headers&&(T.headers=l.headers),r.checkpoint&&(T.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,T).then(function(E,h){f._complete(E)}).catch(function(E){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(E)})}},{key:"header",value:function(r,l,f){this.oss.get(r.object).then(function(c){l(c)}).catch(function(c){f(c)})}},{key:"_progress",value:function(r,l,f){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:l},f)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());n.default=s},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"format",value:function(d){if(arguments.length<2)return null;for(var s=arguments[1],e=1;e<arguments.length;e++){var o=new RegExp("\\{"+(e-1)+"\\}","gm");s=s.replace(o,arguments[e+1])}return{code:d,message:s}}},{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."}}}]),i}();n.default=v},function(ve,n,R){"use strict";(function(O){function m(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function u(d,s){for(var e=0;e<s.length;e++){var o=s[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(d,o.key,o)}}return function(d,s,e){return s&&u(d.prototype,s),e&&u(d,e),d}}(),i=function(){function u(){m(this,u)}return v(u,null,[{key:"encode",value:function(s){return new O(s).toString("base64")}},{key:"decode",value:function(s){return new O(s,"base64").toString()}}]),u}();n.default=i}).call(n,R(19).Buffer)},function(ve,n,R){"use strict";(function(O){function m(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(P,t){if(m()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(P=new Uint8Array(t),P.__proto__=i.prototype):(P===null&&(P=new i(t)),P.length=t),P}function i(P,t,a){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(P,t,a);if(typeof P=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,P)}return u(this,P,t,a)}function u(P,t,a,C){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?l(P,t,a,C):typeof t=="string"?o(P,t,a):f(P,t)}function d(P){if(typeof P!="number")throw new TypeError('"size" argument must be a number');if(P<0)throw new RangeError('"size" argument must not be negative')}function s(P,t,a,C){return d(t),t<=0?v(P,t):a!==void 0?typeof C=="string"?v(P,t).fill(a,C):v(P,t).fill(a):v(P,t)}function e(P,t){if(d(t),P=v(P,t<0?0:0|c(t)),!i.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)P[a]=0;return P}function o(P,t,a){if(typeof a=="string"&&a!==""||(a="utf8"),!i.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var C=0|E(t,a);P=v(P,C);var _=P.write(t,a);return _!==C&&(P=P.slice(0,_)),P}function r(P,t){var a=t.length<0?0:0|c(t.length);P=v(P,a);for(var C=0;C<a;C+=1)P[C]=255&t[C];return P}function l(P,t,a,C){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(C||0))throw new RangeError("'length' is out of bounds");return t=a===void 0&&C===void 0?new Uint8Array(t):C===void 0?new Uint8Array(t,a):new Uint8Array(t,a,C),i.TYPED_ARRAY_SUPPORT?(P=t,P.__proto__=i.prototype):P=r(P,t),P}function f(P,t){if(i.isBuffer(t)){var a=0|c(t.length);return P=v(P,a),P.length===0||t.copy(P,0,0,a),P}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||oe(t.length)?v(P,0):r(P,t);if(t.type==="Buffer"&&ie(t.data))return r(P,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(P){if(P>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|P}function T(P){return+P!=P&&(P=0),i.alloc(+P)}function E(P,t){if(i.isBuffer(P))return P.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(P)||P instanceof ArrayBuffer))return P.byteLength;typeof P!="string"&&(P=""+P);var a=P.length;if(a===0)return 0;for(var C=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Q(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Z(P).length;default:if(C)return Q(P).length;t=(""+t).toLowerCase(),C=!0}}function h(P,t,a){var C=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((a===void 0||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";for(P||(P="utf8");;)switch(P){case"hex":return re(this,t,a);case"utf8":case"utf-8":return k(this,t,a);case"ascii":return G(this,t,a);case"latin1":case"binary":return q(this,t,a);case"base64":return L(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,t,a);default:if(C)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),C=!0}}function S(P,t,a){var C=P[t];P[t]=P[a],P[a]=C}function w(P,t,a,C,_){if(P.length===0)return-1;if(typeof a=="string"?(C=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=_?0:P.length-1),a<0&&(a=P.length+a),a>=P.length){if(_)return-1;a=P.length-1}else if(a<0){if(!_)return-1;a=0}if(typeof t=="string"&&(t=i.from(t,C)),i.isBuffer(t))return t.length===0?-1:p(P,t,a,C,_);if(typeof t=="number")return t&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(P,t,a):Uint8Array.prototype.lastIndexOf.call(P,t,a):p(P,[t],a,C,_);throw new TypeError("val must be string, number or Buffer")}function p(P,t,a,C,_){function g(Se,ce){return F===1?Se[ce]:Se.readUInt16BE(ce*F)}var F=1,K=P.length,pe=t.length;if(C!==void 0&&((C=String(C).toLowerCase())==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(P.length<2||t.length<2)return-1;F=2,K/=2,pe/=2,a/=2}var se;if(_){var ue=-1;for(se=a;se<K;se++)if(g(P,se)===g(t,ue===-1?0:se-ue)){if(ue===-1&&(ue=se),se-ue+1===pe)return ue*F}else ue!==-1&&(se-=se-ue),ue=-1}else for(a+pe>K&&(a=K-pe),se=a;se>=0;se--){for(var ge=!0,ye=0;ye<pe;ye++)if(g(P,se+ye)!==g(t,ye)){ge=!1;break}if(ge)return se}return-1}function x(P,t,a,C){a=Number(a)||0;var _=P.length-a;C?(C=Number(C))>_&&(C=_):C=_;var g=t.length;if(g%2!=0)throw new TypeError("Invalid hex string");C>g/2&&(C=g/2);for(var F=0;F<C;++F){var K=parseInt(t.substr(2*F,2),16);if(isNaN(K))return F;P[a+F]=K}return F}function A(P,t,a,C){return $(Q(t,P.length-a),P,a,C)}function D(P,t,a,C){return $(le(t),P,a,C)}function b(P,t,a,C){return D(P,t,a,C)}function U(P,t,a,C){return $(Z(t),P,a,C)}function y(P,t,a,C){return $(he(t,P.length-a),P,a,C)}function L(P,t,a){return t===0&&a===P.length?W.fromByteArray(P):W.fromByteArray(P.slice(t,a))}function k(P,t,a){a=Math.min(P.length,a);for(var C=[],_=t;_<a;){var g=P[_],F=null,K=g>239?4:g>223?3:g>191?2:1;if(_+K<=a){var pe,se,ue,ge;switch(K){case 1:g<128&&(F=g);break;case 2:pe=P[_+1],(192&pe)==128&&(ge=(31&g)<<6|63&pe)>127&&(F=ge);break;case 3:pe=P[_+1],se=P[_+2],(192&pe)==128&&(192&se)==128&&(ge=(15&g)<<12|(63&pe)<<6|63&se)>2047&&(ge<55296||ge>57343)&&(F=ge);break;case 4:pe=P[_+1],se=P[_+2],ue=P[_+3],(192&pe)==128&&(192&se)==128&&(192&ue)==128&&(ge=(15&g)<<18|(63&pe)<<12|(63&se)<<6|63&ue)>65535&&ge<1114112&&(F=ge)}}F===null?(F=65533,K=1):F>65535&&(F-=65536,C.push(F>>>10&1023|55296),F=56320|1023&F),C.push(F),_+=K}return z(C)}function z(P){var t=P.length;if(t<=ee)return String.fromCharCode.apply(String,P);for(var a="",C=0;C<t;)a+=String.fromCharCode.apply(String,P.slice(C,C+=ee));return a}function G(P,t,a){var C="";a=Math.min(P.length,a);for(var _=t;_<a;++_)C+=String.fromCharCode(127&P[_]);return C}function q(P,t,a){var C="";a=Math.min(P.length,a);for(var _=t;_<a;++_)C+=String.fromCharCode(P[_]);return C}function re(P,t,a){var C=P.length;(!t||t<0)&&(t=0),(!a||a<0||a>C)&&(a=C);for(var _="",g=t;g<a;++g)_+=ae(P[g]);return _}function X(P,t,a){for(var C=P.slice(t,a),_="",g=0;g<C.length;g+=2)_+=String.fromCharCode(C[g]+256*C[g+1]);return _}function ne(P,t,a){if(P%1!=0||P<0)throw new RangeError("offset is not uint");if(P+t>a)throw new RangeError("Trying to access beyond buffer length")}function J(P,t,a,C,_,g){if(!i.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>_||t<g)throw new RangeError('"value" argument is out of bounds');if(a+C>P.length)throw new RangeError("Index out of range")}function H(P,t,a,C){t<0&&(t=65535+t+1);for(var _=0,g=Math.min(P.length-a,2);_<g;++_)P[a+_]=(t&255<<8*(C?_:1-_))>>>8*(C?_:1-_)}function I(P,t,a,C){t<0&&(t=4294967295+t+1);for(var _=0,g=Math.min(P.length-a,4);_<g;++_)P[a+_]=t>>>8*(C?_:3-_)&255}function j(P,t,a,C,_,g){if(a+C>P.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function B(P,t,a,C,_){return _||j(P,t,a,4,34028234663852886e22,-34028234663852886e22),N.write(P,t,a,C,23,4),a+4}function M(P,t,a,C,_){return _||j(P,t,a,8,17976931348623157e292,-17976931348623157e292),N.write(P,t,a,C,52,8),a+8}function V(P){if(P=Y(P).replace(de,""),P.length<2)return"";for(;P.length%4!=0;)P+="=";return P}function Y(P){return P.trim?P.trim():P.replace(/^\s+|\s+$/g,"")}function ae(P){return P<16?"0"+P.toString(16):P.toString(16)}function Q(P,t){t=t||1/0;for(var a,C=P.length,_=null,g=[],F=0;F<C;++F){if((a=P.charCodeAt(F))>55295&&a<57344){if(!_){if(a>56319){(t-=3)>-1&&g.push(239,191,189);continue}if(F+1===C){(t-=3)>-1&&g.push(239,191,189);continue}_=a;continue}if(a<56320){(t-=3)>-1&&g.push(239,191,189),_=a;continue}a=65536+(_-55296<<10|a-56320)}else _&&(t-=3)>-1&&g.push(239,191,189);if(_=null,a<128){if((t-=1)<0)break;g.push(a)}else if(a<2048){if((t-=2)<0)break;g.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;g.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;g.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return g}function le(P){for(var t=[],a=0;a<P.length;++a)t.push(255&P.charCodeAt(a));return t}function he(P,t){for(var a,C,_,g=[],F=0;F<P.length&&!((t-=2)<0);++F)a=P.charCodeAt(F),C=a>>8,_=a%256,g.push(_),g.push(C);return g}function Z(P){return W.toByteArray(V(P))}function $(P,t,a,C){for(var _=0;_<C&&!(_+a>=t.length||_>=P.length);++_)t[_+a]=P[_];return _}function oe(P){return P!==P}/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var W=R(21),N=R(22),ie=R(23);n.Buffer=i,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:function(){try{var P=new Uint8Array(1);return P.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},P.foo()===42&&typeof P.subarray=="function"&&P.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=m(),i.poolSize=8192,i._augment=function(P){return P.__proto__=i.prototype,P},i.from=function(P,t,a){return u(null,P,t,a)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(P,t,a){return s(null,P,t,a)},i.allocUnsafe=function(P){return e(null,P)},i.allocUnsafeSlow=function(P){return e(null,P)},i.isBuffer=function(P){return!(P==null||!P._isBuffer)},i.compare=function(P,t){if(!i.isBuffer(P)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(P===t)return 0;for(var a=P.length,C=t.length,_=0,g=Math.min(a,C);_<g;++_)if(P[_]!==t[_]){a=P[_],C=t[_];break}return a<C?-1:C<a?1:0},i.isEncoding=function(P){switch(String(P).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}},i.concat=function(P,t){if(!ie(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return i.alloc(0);var a;if(t===void 0)for(t=0,a=0;a<P.length;++a)t+=P[a].length;var C=i.allocUnsafe(t),_=0;for(a=0;a<P.length;++a){var g=P[a];if(!i.isBuffer(g))throw new TypeError('"list" argument must be an Array of Buffers');g.copy(C,_),_+=g.length}return C},i.byteLength=E,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<P;t+=2)S(this,t,t+1);return this},i.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<P;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},i.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<P;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},i.prototype.toString=function(){var P=0|this.length;return P===0?"":arguments.length===0?k(this,0,P):h.apply(this,arguments)},i.prototype.equals=function(P){if(!i.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P||i.compare(this,P)===0},i.prototype.inspect=function(){var P="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(P=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(P+=" ... ")),"<Buffer "+P+">"},i.prototype.compare=function(P,t,a,C,_){if(!i.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),a===void 0&&(a=P?P.length:0),C===void 0&&(C=0),_===void 0&&(_=this.length),t<0||a>P.length||C<0||_>this.length)throw new RangeError("out of range index");if(C>=_&&t>=a)return 0;if(C>=_)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,C>>>=0,_>>>=0,this===P)return 0;for(var g=_-C,F=a-t,K=Math.min(g,F),pe=this.slice(C,_),se=P.slice(t,a),ue=0;ue<K;++ue)if(pe[ue]!==se[ue]){g=pe[ue],F=se[ue];break}return g<F?-1:F<g?1:0},i.prototype.includes=function(P,t,a){return this.indexOf(P,t,a)!==-1},i.prototype.indexOf=function(P,t,a){return w(this,P,t,a,!0)},i.prototype.lastIndexOf=function(P,t,a){return w(this,P,t,a,!1)},i.prototype.write=function(P,t,a,C){if(t===void 0)C="utf8",a=this.length,t=0;else if(a===void 0&&typeof t=="string")C=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(a)?(a|=0,C===void 0&&(C="utf8")):(C=a,a=void 0)}var _=this.length-t;if((a===void 0||a>_)&&(a=_),P.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var g=!1;;)switch(C){case"hex":return x(this,P,t,a);case"utf8":case"utf-8":return A(this,P,t,a);case"ascii":return D(this,P,t,a);case"latin1":case"binary":return b(this,P,t,a);case"base64":return U(this,P,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,P,t,a);default:if(g)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),g=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;i.prototype.slice=function(P,t){var a=this.length;P=~~P,t=t===void 0?a:~~t,P<0?(P+=a)<0&&(P=0):P>a&&(P=a),t<0?(t+=a)<0&&(t=0):t>a&&(t=a),t<P&&(t=P);var C;if(i.TYPED_ARRAY_SUPPORT)C=this.subarray(P,t),C.__proto__=i.prototype;else{var _=t-P;C=new i(_,void 0);for(var g=0;g<_;++g)C[g]=this[g+P]}return C},i.prototype.readUIntLE=function(P,t,a){P|=0,t|=0,a||ne(P,t,this.length);for(var C=this[P],_=1,g=0;++g<t&&(_*=256);)C+=this[P+g]*_;return C},i.prototype.readUIntBE=function(P,t,a){P|=0,t|=0,a||ne(P,t,this.length);for(var C=this[P+--t],_=1;t>0&&(_*=256);)C+=this[P+--t]*_;return C},i.prototype.readUInt8=function(P,t){return t||ne(P,1,this.length),this[P]},i.prototype.readUInt16LE=function(P,t){return t||ne(P,2,this.length),this[P]|this[P+1]<<8},i.prototype.readUInt16BE=function(P,t){return t||ne(P,2,this.length),this[P]<<8|this[P+1]},i.prototype.readUInt32LE=function(P,t){return t||ne(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},i.prototype.readUInt32BE=function(P,t){return t||ne(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},i.prototype.readIntLE=function(P,t,a){P|=0,t|=0,a||ne(P,t,this.length);for(var C=this[P],_=1,g=0;++g<t&&(_*=256);)C+=this[P+g]*_;return _*=128,C>=_&&(C-=Math.pow(2,8*t)),C},i.prototype.readIntBE=function(P,t,a){P|=0,t|=0,a||ne(P,t,this.length);for(var C=t,_=1,g=this[P+--C];C>0&&(_*=256);)g+=this[P+--C]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*t)),g},i.prototype.readInt8=function(P,t){return t||ne(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},i.prototype.readInt16LE=function(P,t){t||ne(P,2,this.length);var a=this[P]|this[P+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(P,t){t||ne(P,2,this.length);var a=this[P+1]|this[P]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(P,t){return t||ne(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},i.prototype.readInt32BE=function(P,t){return t||ne(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},i.prototype.readFloatLE=function(P,t){return t||ne(P,4,this.length),N.read(this,P,!0,23,4)},i.prototype.readFloatBE=function(P,t){return t||ne(P,4,this.length),N.read(this,P,!1,23,4)},i.prototype.readDoubleLE=function(P,t){return t||ne(P,8,this.length),N.read(this,P,!0,52,8)},i.prototype.readDoubleBE=function(P,t){return t||ne(P,8,this.length),N.read(this,P,!1,52,8)},i.prototype.writeUIntLE=function(P,t,a,C){(P=+P,t|=0,a|=0,!C)&&J(this,P,t,a,Math.pow(2,8*a)-1,0);var _=1,g=0;for(this[t]=255&P;++g<a&&(_*=256);)this[t+g]=P/_&255;return t+a},i.prototype.writeUIntBE=function(P,t,a,C){(P=+P,t|=0,a|=0,!C)&&J(this,P,t,a,Math.pow(2,8*a)-1,0);var _=a-1,g=1;for(this[t+_]=255&P;--_>=0&&(g*=256);)this[t+_]=P/g&255;return t+a},i.prototype.writeUInt8=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),this[t]=255&P,t+1},i.prototype.writeUInt16LE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):H(this,P,t,!0),t+2},i.prototype.writeUInt16BE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):H(this,P,t,!1),t+2},i.prototype.writeUInt32LE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=P>>>24,this[t+2]=P>>>16,this[t+1]=P>>>8,this[t]=255&P):I(this,P,t,!0),t+4},i.prototype.writeUInt32BE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>24,this[t+1]=P>>>16,this[t+2]=P>>>8,this[t+3]=255&P):I(this,P,t,!1),t+4},i.prototype.writeIntLE=function(P,t,a,C){if(P=+P,t|=0,!C){var _=Math.pow(2,8*a-1);J(this,P,t,a,_-1,-_)}var g=0,F=1,K=0;for(this[t]=255&P;++g<a&&(F*=256);)P<0&&K===0&&this[t+g-1]!==0&&(K=1),this[t+g]=(P/F>>0)-K&255;return t+a},i.prototype.writeIntBE=function(P,t,a,C){if(P=+P,t|=0,!C){var _=Math.pow(2,8*a-1);J(this,P,t,a,_-1,-_)}var g=a-1,F=1,K=0;for(this[t+g]=255&P;--g>=0&&(F*=256);)P<0&&K===0&&this[t+g+1]!==0&&(K=1),this[t+g]=(P/F>>0)-K&255;return t+a},i.prototype.writeInt8=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),P<0&&(P=255+P+1),this[t]=255&P,t+1},i.prototype.writeInt16LE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):H(this,P,t,!0),t+2},i.prototype.writeInt16BE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):H(this,P,t,!1),t+2},i.prototype.writeInt32LE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8,this[t+2]=P>>>16,this[t+3]=P>>>24):I(this,P,t,!0),t+4},i.prototype.writeInt32BE=function(P,t,a){return P=+P,t|=0,a||J(this,P,t,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>24,this[t+1]=P>>>16,this[t+2]=P>>>8,this[t+3]=255&P):I(this,P,t,!1),t+4},i.prototype.writeFloatLE=function(P,t,a){return B(this,P,t,!0,a)},i.prototype.writeFloatBE=function(P,t,a){return B(this,P,t,!1,a)},i.prototype.writeDoubleLE=function(P,t,a){return M(this,P,t,!0,a)},i.prototype.writeDoubleBE=function(P,t,a){return M(this,P,t,!1,a)},i.prototype.copy=function(P,t,a,C){if(a||(a=0),C||C===0||(C=this.length),t>=P.length&&(t=P.length),t||(t=0),C>0&&C<a&&(C=a),C===a)return 0;if(P.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),P.length-t<C-a&&(C=P.length-t+a);var _,g=C-a;if(this===P&&a<t&&t<C)for(_=g-1;_>=0;--_)P[_+t]=this[_+a];else if(g<1e3||!i.TYPED_ARRAY_SUPPORT)for(_=0;_<g;++_)P[_+t]=this[_+a];else Uint8Array.prototype.set.call(P,this.subarray(a,a+g),t);return g},i.prototype.fill=function(P,t,a,C){if(typeof P=="string"){if(typeof t=="string"?(C=t,t=0,a=this.length):typeof a=="string"&&(C=a,a=this.length),P.length===1){var _=P.charCodeAt(0);_<256&&(P=_)}if(C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!i.isEncoding(C))throw new TypeError("Unknown encoding: "+C)}else typeof P=="number"&&(P&=255);if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;t>>>=0,a=a===void 0?this.length:a>>>0,P||(P=0);var g;if(typeof P=="number")for(g=t;g<a;++g)this[g]=P;else{var F=i.isBuffer(P)?P:Q(new i(P,C).toString()),K=F.length;for(g=0;g<a-t;++g)this[g+t]=F[g%K]}return this};var de=/[^+\/0-9A-Za-z-_]/g}).call(n,R(20))},function(ve,n){var R;R=function(){return this}();try{R=R||Function("return this")()||(0,eval)("this")}catch(O){typeof window=="object"&&(R=window)}ve.exports=R},function(ve,n,R){"use strict";function O(c){var T=c.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[T-2]==="="?2:c[T-1]==="="?1:0}function m(c){return 3*c.length/4-O(c)}function v(c){var T,E,h,S,w,p=c.length;S=O(c),w=new o(3*p/4-S),E=S>0?p-4:p;var x=0;for(T=0;T<E;T+=4)h=e[c.charCodeAt(T)]<<18|e[c.charCodeAt(T+1)]<<12|e[c.charCodeAt(T+2)]<<6|e[c.charCodeAt(T+3)],w[x++]=h>>16&255,w[x++]=h>>8&255,w[x++]=255&h;return S===2?(h=e[c.charCodeAt(T)]<<2|e[c.charCodeAt(T+1)]>>4,w[x++]=255&h):S===1&&(h=e[c.charCodeAt(T)]<<10|e[c.charCodeAt(T+1)]<<4|e[c.charCodeAt(T+2)]>>2,w[x++]=h>>8&255,w[x++]=255&h),w}function i(c){return s[c>>18&63]+s[c>>12&63]+s[c>>6&63]+s[63&c]}function u(c,T,E){for(var h,S=[],w=T;w<E;w+=3)h=(c[w]<<16)+(c[w+1]<<8)+c[w+2],S.push(i(h));return S.join("")}function d(c){for(var T,E=c.length,h=E%3,S="",w=[],p=0,x=E-h;p<x;p+=16383)w.push(u(c,p,p+16383>x?x:p+16383));return h===1?(T=c[E-1],S+=s[T>>2],S+=s[T<<4&63],S+="=="):h===2&&(T=(c[E-2]<<8)+c[E-1],S+=s[T>>10],S+=s[T>>4&63],S+=s[T<<2&63],S+="="),w.push(S),w.join("")}n.byteLength=m,n.toByteArray=v,n.fromByteArray=d;for(var s=[],e=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=r.length;l<f;++l)s[l]=r[l],e[r.charCodeAt(l)]=l;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(ve,n){n.read=function(R,O,m,v,i){var u,d,s=8*i-v-1,e=(1<<s)-1,o=e>>1,r=-7,l=m?i-1:0,f=m?-1:1,c=R[O+l];for(l+=f,u=c&(1<<-r)-1,c>>=-r,r+=s;r>0;u=256*u+R[O+l],l+=f,r-=8);for(d=u&(1<<-r)-1,u>>=-r,r+=v;r>0;d=256*d+R[O+l],l+=f,r-=8);if(u===0)u=1-o;else{if(u===e)return d?NaN:1/0*(c?-1:1);d+=Math.pow(2,v),u-=o}return(c?-1:1)*d*Math.pow(2,u-v)},n.write=function(R,O,m,v,i,u){var d,s,e,o=8*u-i-1,r=(1<<o)-1,l=r>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=v?0:u-1,T=v?1:-1,E=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(s=isNaN(O)?1:0,d=r):(d=Math.floor(Math.log(O)/Math.LN2),O*(e=Math.pow(2,-d))<1&&(d--,e*=2),O+=d+l>=1?f/e:f*Math.pow(2,1-l),O*e>=2&&(d++,e/=2),d+l>=r?(s=0,d=r):d+l>=1?(s=(O*e-1)*Math.pow(2,i),d+=l):(s=O*Math.pow(2,l-1)*Math.pow(2,i),d=0));i>=8;R[m+c]=255&s,c+=T,s/=256,i-=8);for(d=d<<i|s,o+=i;o>0;R[m+c]=255&d,c+=T,d/=256,o-=8);R[m+c-T]|=128*E}},function(ve,n){var R={}.toString;ve.exports=Array.isArray||function(O){return R.call(O)=="[object Array]"}},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"set",value:function(d,s){try{window.localStorage&&localStorage.setItem(d,s)}catch(e){window[d+"_localStorage"]=s}}},{key:"get",value:function(d){try{if(window.localStorage)return localStorage.getItem(d)}catch(s){return window[d+"_localStorage"]}return""}},{key:"remove",value:function(d){try{window.localStorage&&localStorage.removeItem(d)}catch(s){delete window[d+"_localStorage"]}}}]),i}();n.default=v},function(ve,n,R){"use strict";function O(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function i(u,d){for(var s=0;s<d.length;s++){var e=d[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}return function(u,d,s){return d&&i(u.prototype,d),s&&i(u,s),u}}(),v=function(){function i(){O(this,i)}return m(i,null,[{key:"get",value:function(d){for(var s=d+"",e=document.cookie.split(";"),o=0;o<e.length;o++){var r=e[o].trim();if(r.indexOf(s)==0)return unescape(r.substring(s.length+1,r.length))}return""}},{key:"set",value:function(d,s,e){var o=new Date;o.setTime(o.getTime()+24*e*60*60*1e3);var r="expires="+o.toGMTString();document.cookie=d+"="+escape(s)+"; "+r}}]),i}();n.default=v},function(ve,n,R){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function m(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function o(r,l){for(var f=0;f<l.length;f++){var c=l[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,l,f){return l&&o(r.prototype,l),f&&o(r,f),r}}(),i=R(8),u=O(i),d=R(9),s=O(d),e=function(){function o(){m(this,o)}return v(o,null,[{key:"refreshUploadAuth",value:function(l,f,c){var T=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"RefreshUploadVideo",VideoId:l.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:l.requestId},h=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),S="https://vod."+l.region+".aliyuncs.com/?"+h;u.default.get(S,function(w){var w=JSON.parse(w);f&&f(w)},function(w){if(c){var p=JSON.parse(w);c(p)}})}},{key:"getUploadAuth",value:function(l,f,c){var T=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadVideo",Title:l.title,FileName:l.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:l.requestId};l.fileSize&&(E.FileSize=l.fileSize),l.description&&(E.Description=l.description),l.cateId&&(E.CateId=l.cateId),l.tags&&(E.Tags=l.tags),l.templateGroupId&&(E.TemplateGroupId=l.templateGroupId),l.storageLocation&&(E.StorageLocation=l.storageLocation),l.coverUrl&&(E.CoverURL=l.coverUrl),l.transCodeMode&&(E.TransCodeMode=l.transCodeMode),l.userData&&(E.UserData=JSON.stringify(l.userData));var h=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),S="https://vod."+l.region+".aliyuncs.com/?"+h;u.default.get(S,function(w){try{w=JSON.parse(w)}catch(p){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(w)},function(w){if(c){var p={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{p=JSON.parse(w)}catch(x){}c(p)}})}},{key:"getImageUploadAuth",value:function(l,f,c){var T=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadImage",ImageType:l.imageType?l.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:l.requestId};l.title&&(E.Title=l.title),l.imageExt&&(E.ImageExt=l.imageExt),l.tags&&(E.Tags=l.tags),l.storageLocation&&(E.StorageLocation=l.storageLocation);var h=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),S="https://vod."+l.region+".aliyuncs.com/?"+h;u.default.get(S,function(w){w=JSON.parse(w),f&&f(w)},function(w){if(c){var p=JSON.parse(w);c(p)}})}}]),o}();n.default=e},function(ve,n,R){!function(O,m,v){ve.exports=n=m(R(0),R(28),R(29))}(0,function(O){return O.HmacSHA1})},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return function(){var m=O,v=m.lib,i=v.WordArray,u=v.Hasher,d=m.algo,s=[],e=d.SHA1=u.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,l){for(var f=this._hash.words,c=f[0],T=f[1],E=f[2],h=f[3],S=f[4],w=0;w<80;w++){if(w<16)s[w]=0|r[l+w];else{var p=s[w-3]^s[w-8]^s[w-14]^s[w-16];s[w]=p<<1|p>>>31}var x=(c<<5|c>>>27)+S+s[w];x+=w<20?1518500249+(T&E|~T&h):w<40?1859775393+(T^E^h):w<60?(T&E|T&h|E&h)-1894007588:(T^E^h)-899497514,S=h,h=E,E=T<<30|T>>>2,T=c,c=x}f[0]=f[0]+c|0,f[1]=f[1]+T|0,f[2]=f[2]+E|0,f[3]=f[3]+h|0,f[4]=f[4]+S|0},_doFinalize:function(){var r=this._data,l=r.words,f=8*this._nDataBytes,c=8*r.sigBytes;return l[c>>>5]|=128<<24-c%32,l[14+(c+64>>>9<<4)]=Math.floor(f/4294967296),l[15+(c+64>>>9<<4)]=f,r.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var r=u.clone.call(this);return r._hash=this._hash.clone(),r}});m.SHA1=u._createHelper(e),m.HmacSHA1=u._createHmacHelper(e)}(),O.SHA1})},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){!function(){var m=O,v=m.lib,i=v.Base,u=m.enc,d=u.Utf8,s=m.algo;s.HMAC=i.extend({init:function(o,r){o=this._hasher=new o.init,typeof r=="string"&&(r=d.parse(r));var l=o.blockSize,f=4*l;r.sigBytes>f&&(r=o.finalize(r)),r.clamp();for(var c=this._oKey=r.clone(),T=this._iKey=r.clone(),E=c.words,h=T.words,S=0;S<l;S++)E[S]^=1549556828,h[S]^=909522486;c.sigBytes=T.sigBytes=f,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var r=this._hasher,l=r.finalize(o);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}()})},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return function(){function m(s,e,o){for(var r=[],l=0,f=0;f<e;f++)if(f%4){var c=o[s.charCodeAt(f-1)]<<f%4*2,T=o[s.charCodeAt(f)]>>>6-f%4*2;r[l>>>2]|=(c|T)<<24-l%4*8,l++}return u.create(r,l)}var v=O,i=v.lib,u=i.WordArray,d=v.enc;d.Base64={stringify:function(e){var o=e.words,r=e.sigBytes,l=this._map;e.clamp();for(var f=[],c=0;c<r;c+=3)for(var T=o[c>>>2]>>>24-c%4*8&255,E=o[c+1>>>2]>>>24-(c+1)%4*8&255,h=o[c+2>>>2]>>>24-(c+2)%4*8&255,S=T<<16|E<<8|h,w=0;w<4&&c+.75*w<r;w++)f.push(l.charAt(S>>>6*(3-w)&63));var p=l.charAt(64);if(p)for(;f.length%4;)f.push(p);return f.join("")},parse:function(e){var o=e.length,r=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var f=0;f<r.length;f++)l[r.charCodeAt(f)]=f}var c=r.charAt(64);if(c){var T=e.indexOf(c);T!==-1&&(o=T)}return m(e,o,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),O.enc.Base64})},function(ve,n,R){"use strict";function O(x){return x&&x.__esModule?x:{default:x}}function m(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function x(A,D){for(var b=0;b<D.length;b++){var U=D[b];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(A,U.key,U)}}return function(A,D,b){return D&&x(A.prototype,D),b&&x(A,b),A}}(),i=R(8),u=O(i),d=R(7),s=O(d),e=R(4),o=O(e),r=R(6),l=O(r),f=R(1),c=O(f),T=R(9),E=O(T),h=R(2),S=R(11),w=R(10),p=function(){function x(){m(this,x)}return v(x,null,[{key:"getAuthInfo",value:function(D,b,U){var y=D+"|f#Ylm&^1TppeRhLg|"+U;return b&&(y=D+"|"+b+"|f#Ylm&^1TppeRhLg|"+U),h(w.parse(y)).toString(S)}},{key:"upload",value:function(D,b,U){var y=c.default.ISODateString(new Date),L=Math.floor(new Date().valueOf()/1e3),k=o.default.getClientId();k=o.default.setClientId(k);var z=x.getAuthInfo(D.userId,k,L),G=E.default.randomUUID(),q={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:L,Timestamp:y,AuthInfo:z,FileName:D.file.name,FileSize:D.file.size,FileCreateTime:D.file.lastModified,FileHash:D.fileHash,UploadId:D.checkpoint.checkpoint.uploadId,PartSize:D.checkpoint.checkpoint.partSize,DonePartsCount:D.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(D.checkpoint),UploadRatio:D.checkpoint.loaded,UserId:D.userId,VideoId:D.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};k&&(q.ClientId=k);var re=E.default.makeUTF8sort(q,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(q,D.accessKeySecret)),X="https://vod."+D.region+".aliyuncs.com/?"+re;u.default.get(X,function(ne){b&&b()},function(ne){ne&&(U(ne),console.log(ne))})}},{key:"get",value:function(D,b,U){var y=c.default.ISODateString(new Date),L=Math.floor(new Date().valueOf()/1e3),k=o.default.getClientId(),z=x.getAuthInfo(D.userId,k,L),G=E.default.randomUUID(),q={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:L,Timestamp:y,AuthInfo:z,UserId:D.userId,UploadInfoList:JSON.stringify(D.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};k&&(q.ClientId=k);var re=E.default.makeUTF8sort(q,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(q,D.accessKeySecret)),X="https://vod."+D.region+".aliyuncs.com/?"+re;u.default.get(X,function(ne){var J={},H=k;ne=ne?JSON.parse(ne):{},ne.UploadProgress&&ne.UploadProgress.UploadProgressList&&ne.UploadProgress.UploadProgressList.length>0&&(J=ne.UploadProgress.UploadProgressList[0],H=J.ClientId),o.default.setClientId(H),b&&b(J)},function(ne){ne&&(U(ne),console.log(ne))})}}]),x}();n.default=p},function(ve,n,R){"use strict";function O(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function d(s,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,e,o){return e&&d(s.prototype,e),o&&d(s,o),s}}(),v=R(2),i=R(33),u=(R(11),function(){function d(){O(this,d)}return m(d,null,[{key:"getMd5",value:function(e,o,r){var l=new FileReader;l.onload=function(T){try{if(T&&T.target){var E=v(i.parse(T.target.result)),h=E.toString();o(h)}}catch(S){console.log(S)}},l.onerror=function(T){console.log(T),errorCallback(T)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=f.call(e,0,1024);l.readAsBinaryString(c)}}]),d}());n.default=u},function(ve,n,R){!function(O,m){ve.exports=n=m(R(0))}(0,function(O){return O.enc.Latin1})}])}).call(this,te("UywP"))},qHKi:function(Ge,Me,te){Ge.exports={wrap:"wrap___gKjIH",name:"name___2VcBo",button:"button___1W9Co",progress:"progress___38g4B",havaLearn:"havaLearn___1t2h0"}},"qsz/":function(Ge,Me,te){Ge.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(Ge,Me,te){"use strict";var Le=te("NE/W"),We=te("L7QV"),ve=te("VBJJ"),n=te.n(ve),R=te("z3+T"),O=te("rjoL"),m=te("TMtJ"),v=te("X/R0"),i=te("M6G9"),u=te("EkPb"),d=te("7X0+"),s=te("GZha"),e=te("55MS"),o=te("V0hb"),r=te("DHCt"),l=te("CRgH"),f=te("ZZRV"),c=te.n(f),T=te("q5+0"),E=te("DndG"),h=te("9kvl"),S=te("kwm0"),w=te.n(S),p=te("Aky1"),x=l.a.TextArea,A=500,D=function(y,L){var k,z=L.payload||{},G=z.uploadInfo,q=G===void 0?{}:G;switch(L.type){case"addVideo":return{videoList:[].concat(Object(o.a)(y.videoList),[{name:q.file.name,size:q.file.size,type:q.file.type,fileHash:q.fileHash,state:q.state,videoId:q.videoId,loaded:q.loaded||0,title:""}])};case"removeVideo":return{videoList:y.videoList.filter(function(re){return re.name!==L.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:y.videoList.map(function(re){return re.name===L.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},re),{loaded:L.payload.progressPercent,videoId:q.videoId,fileHash:q.fileHash}):re})};case"updateTitle":return{videoList:(k=y.videoList)===null||k===void 0?void 0:k.map(function(re){return re.name===L.payload.item.name?Object(e.a)(Object(e.a)({},re),{title:L.payload.title}):re})};default:return{videoList:[]}}},b=function(y){var L,k=y.user,z=y.globalSetting,G=y.loading,q=y.dispatch,re=y.visible,X=y.editData,ne=y.onCancel,J=ne===void 0?function(){}:ne,H=y.onOk,I=H===void 0?function(){}:H,j=Object(T.m)(),B=d.a.useForm(),M=Object(s.a)(B,1),V=M[0],Y=Object(f.useReducer)(D,{videoList:[]}),ae=Object(s.a)(Y,2),Q=ae[0],le=ae[1],he=Object(f.useState)(!1),Z=Object(s.a)(he,2),$=Z[0],oe=Z[1],W=Object(f.useRef)(),N=Object(f.useState)(),ie=Object(s.a)(N,2),ee=ie[0],de=ie[1],P=Object(f.useState)(!1),t=Object(s.a)(P,2),a=t[0],C=t[1],_=Object(f.useState)(!1),g=Object(s.a)(_,2),F=g[0],K=g[1];Object(f.useEffect)(function(){if(!X)return;C(X.is_link),de(X.link),!X.is_link&&le({type:"addVideo",payload:{uploadInfo:{file:{name:X.file_name},videoId:X.video_id,loaded:100}}}),V.setFieldsValue({name:X.name,description:X.description})},[X]);var pe=function(){var Ae=document.getElementById("fileUpload");Ae.value=""},se=function(Ae){var xe,Pe,De;C(!1);var Fe=Ae.target.files[0];if(!Fe){pe();return}var Ne=Fe.name.toLowerCase();if(Ne&&Ne.indexOf(".avi")==-1&&Ne.indexOf(".flv")==-1&&Ne.indexOf(".f4v")==-1&&Ne.indexOf(".m4v")==-1&&Ne.indexOf(".mov")==-1&&Ne.indexOf(".mp4")==-1&&Ne.indexOf(".rmvb")==-1&&Ne.indexOf(".swf")==-1&&Ne.indexOf(".webm")==-1&&Ne.indexOf(".wmv")==-1){i.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),pe();return}if(!(((xe=k.userInfo)===null||xe===void 0?void 0:xe.admin)||((Pe=k.userInfo)===null||Pe===void 0?void 0:Pe.business))&&Fe.size>A*1024*1024){i.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(A,"M")),pe();return}if((De=Q.videoList)===null||De===void 0?void 0:De.find(function(qe){return qe.name===Fe.name})){i.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),pe();return}ge(Fe)},ue=function(Ae,xe){m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",xe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){pe(),le({type:"removeVideo",payload:{name:Ae}})}})},ge=function(Ae){var xe,Pe='{"Vod":{}}';if(oe(!0),W.current){W.current.addFile(Ae,null,null,null,Pe);return}Object(p.a)((xe=k.userInfo)===null||xe===void 0?void 0:xe.login,{create:!W,addFileSuccess:function(Fe){le({type:"addVideo",payload:{uploadInfo:Fe}})},onUploadProgress:function(Fe,Ne,qe){var ct=Math.ceil(qe*100);le({type:"updateProgress",payload:{uploadInfo:Fe,progressPercent:ct}}),pe()},onUploadFailed:function(Fe){i.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(Fe){oe(!1)},onUploadSucceed:function(Fe){oe(!1)},onUploadError:function(Fe){oe(!1)},gotUploader:function(Fe){Fe.addFile(Ae,null,null,null,Pe),W.current=Fe}})},ye=function(){var Be=Object(R.a)(n.a.mark(function Ae(){var xe,Pe,De,Fe;return n.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,V.validateFields();case 2:if(!(!a&&!((xe=Q.videoList)===null||xe===void 0?void 0:xe.length)||a&&!ee)){qe.next=5;break}return i.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),qe.abrupt("return");case 5:return K(!0),De=a?{link:ee}:{video_id:(Pe=Q.videoList)===null||Pe===void 0?void 0:Pe[0].videoId},qe.next=9,I(Object(e.a)(Object(e.a)({},De),{name:V.getFieldValue("name"),description:V.getFieldValue("description")}));case 9:Fe=qe.sent,K(!1),Fe.id&&Se();case 12:case"end":return qe.stop()}},Ae)}));return function(){return Be.apply(this,arguments)}}(),Se=function(){V.resetFields(),le({type:"removeAll"}),de(null),C(null)},ce=function(){J(),Se()},Re=function(){var Ae,xe,Pe,De,Fe,Ne,qe,ct,Ot,At,Pt,Ct;return c.a.createElement(c.a.Fragment,null,!a&&!!((Ae=Q.videoList)===null||Ae===void 0?void 0:Ae.length)&&c.a.createElement("div",{className:w.a.fileProgress},((xe=Q.videoList)===null||xe===void 0||((Pe=xe[0])===null||Pe===void 0)?void 0:Pe.loaded)==100?c.a.createElement("div",{className:"".concat(w.a.videoName," font14")},(De=Q.videoList)===null||De===void 0||((Fe=De[0])===null||Fe===void 0)?void 0:Fe.name):c.a.createElement(We.a,{style:{width:"80%"},percent:(Ne=Q.videoList)===null||Ne===void 0||((qe=Ne[0])===null||qe===void 0)?void 0:qe.loaded,status:((ct=Q.videoList)===null||ct===void 0||((Ot=ct[0])===null||Ot===void 0)?void 0:Ot.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:w.a.fileCancel,onClick:function(){var gt,wt,Rt,Mt;return ue((gt=Q.videoList)===null||gt===void 0||((wt=gt[0])===null||wt===void 0)?void 0:wt.name,((Rt=Q.videoList)===null||Rt===void 0||((Mt=Rt[0])===null||Mt===void 0)?void 0:Mt.loaded)==100)}},((At=Q.videoList)===null||At===void 0||((Pt=At[0])===null||Pt===void 0)?void 0:Pt.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ct=Q.videoList)===null||Ct===void 0?void 0:Ct.length)&&c.a.createElement("div",{className:w.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:w.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(w.a.upload," ").concat(w.a.uploadLink),onClick:function(){return C(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),a&&c.a.createElement(l.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ee,onChange:function(gt){return de(gt.target.value)}}))};return c.a.createElement(m.a,{centered:!0,maskClosable:!1,title:X?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:w.a.modal,visible:re,confirmLoading:F,onOk:ye,onCancel:ce},c.a.createElement(d.a,{form:V},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:se,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},c.a.createElement(l.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:w.a.contentItem},Re()),c.a.createElement(d.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},c.a.createElement(x,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),c.a.createElement("div",{className:"c-grey-999"},c.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),c.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",c.a.createElement(E.Link,{to:"/users/".concat((L=k.userInfo)===null||L===void 0?void 0:L.login,"/videos/protocol"),target:"_blank",className:w.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),c.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),c.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),c.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"))))};Me.a=Object(h.a)(function(U){var y=U.user,L=U.loading,k=U.globalSetting;return{user:y,globalSetting:k,loading:L}})(b)},wzkS:function(Ge,Me,te){"use strict";te.d(Me,"c",function(){return R}),te.d(Me,"b",function(){return O}),te.d(Me,"d",function(){return m}),te.d(Me,"a",function(){return i}),te.d(Me,"e",function(){return u});var Le=te("VBJJ"),We=te.n(Le),ve=te("z3+T"),n=te("ErOA");function R(d){return Object(n.c)("libraries/".concat(d,".json"))}function O(){return Object(n.c)("library_tags.json")}function m(d){return v.apply(this,arguments)}function v(){return v=Object(ve.a)(We.a.mark(function d(s){var e;return We.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(n.b)("attachments/".concat(s,".json"));case 2:return e=r.sent,r.abrupt("return",e.status===0);case 4:case"end":return r.stop()}},d)})),v.apply(this,arguments)}function i(d){return Object(n.e)("libraries.json",d)}function u(d,s){return Object(n.f)("libraries/".concat(d,".json"),s)}},y5JW:function(Ge,Me,te){"use strict";te.d(Me,"c",function(){return l}),te.d(Me,"a",function(){return f});var Le=te("anXI"),We=te("vZQr"),ve=te("MPZO"),n=te("bnk9"),R=te("VBJJ"),O=te.n(R),m=te("z3+T"),v=te("55MS"),i=te("V0hb"),u=te("X/R0"),d=te("M6G9"),s=te("ZZRV"),e=te.n(s),o=te("m3rI"),r=te("wzkS"),l="\u3000\u3000";function f(c){var T=["Bytes","KB","MB","GB","TB"];if(c==0)return"0 Byte";var E=parseInt(""+Math.floor(Math.log(c)/Math.log(1024)),10);return(c/Math.pow(1024,E)).toFixed(1)+" "+T[E]}Me.b=function(c){var T=c.value,E=T===void 0?[]:T,h=c.onChange,S=c.className,w=c.maxSize,p=w===void 0?150:w,x=c.title,A=x===void 0?"\u6587\u4EF6\u4E0A\u4F20":x,D=c.accept,b=D===void 0?null:D,U={multiple:!1,fileList:E,accept:b,withCredentials:!0,beforeUpload:function(k){var z=k.size/1024/1024;return z<p?!0:(d.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(p,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(o.a.API_SERVER,"/api/attachments.json"),onChange:function(k){var z=Object(i.a)(k.fileList);z=z.map(function(G){return G.name.indexOf(l)===-1&&(G.name="".concat(G.name).concat(l).concat(f(G.size))),Object(v.a)({},G)}),h(z)},onRemove:function(){var L=Object(m.a)(O.a.mark(function z(G){var q,re;return O.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(q=G.response?G.response.id:G.uid,!q){ne.next=8;break}return ne.next=4,Object(r.d)(G.response?G.response.id:G.id);case 4:return re=ne.sent,ne.abrupt("return",re);case 8:return ne.abrupt("return",!0);case 9:case"end":return ne.stop()}},z)}));function k(z){return L.apply(this,arguments)}return k}()};function y(L){L.preventDefault(),L.stopPropagation()}return e.a.createElement("div",{className:"single-upload ".concat(S||"")},e.a.createElement(We.a,U,e.a.createElement(n.a,{type:"primary",title:E.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:E.length>0,ghost:!0},A),e.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",p,"M) ")))}}}]);
|