diff --git a/p__Classrooms__Lists__OnlineLearning__index.js b/p__Classrooms__Lists__OnlineLearning__index.js index db67186809..cef06d3b3a 100644 --- a/p__Classrooms__Lists__OnlineLearning__index.js +++ b/p__Classrooms__Lists__OnlineLearning__index.js @@ -1,43 +1,43 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[77,9,10,11,14],{"500L":function(qe,Ne,oe){"use strict";oe.d(Ne,"a",function(){return S});var je=oe("DZo9"),Ke=oe("8z0m"),_e=oe("+L6B"),n=oe("2/Rp"),k=oe("2qtc"),T=oe("kLXV"),m=oe("WmNS"),_=oe.n(m),i=oe("9og8"),u=oe("k1fw"),d=oe("oBTY"),s=oe("miYZ"),e=oe("tsqr"),a=oe("q1tI"),r=oe.n(a),c=oe("m3rI"),p=oe("wzkS"),l=oe("y5JW");function S(E){var f=[];return E&&E.length>0&&(f=E.map(function(A){return{uid:A.id,id:A.id,name:A.title+l.c+A.filesize,url:A.url,filesize:A.filesize,status:"done",response:{id:A.id}}})),f}Ne.b=function(E){var f=E.value,A=E.onChange,g=E.className,h=E.maxSize,w=h===void 0?150:h,O=E.title,R=O===void 0?"\u4E0A\u4F20\u9644\u4EF6":O,b=E.showRemoveModal,I=b===void 0?!1:b,y={multiple:!0,fileList:f,beforeUpload:function(N){var G=N.size/1024/1024;return G-1?ye(He.filter(function(At){return At!==Be.id})):ye(He.concat(Be.id))}}),y.a.createElement("div",{className:me.a.info},y.a.createElement("div",{className:me.a.title},y.a.createElement("div",{className:me.a.titleLeft},y.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Be==null?void 0:Be.identifier,"/challenges"),target:"_blank"},y.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Be.title}})))),y.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},y.a.createElement("span",{className:me.a.description,dangerouslySetInnerHTML:{__html:Be.description}})),y.a.createElement("div",{className:"flex-wrp mt15"},Be.challenge_names.map(function(nt,ot){return y.a.createElement("span",{key:ot,className:"mr30 font12"},"\u7B2C",ot+1,"\u5173 ",nt," ")})),y.a.createElement(n.a,{dashed:!0}),y.a.createElement("div",{className:"c-light-black mt20 font12"},y.a.createElement("span",null,Be.author_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,Be.author_school_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Be.level),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),y.a.createElement("span",null,Be.study_count))))}),y.a.createElement("p",null)),y.a.createElement("div",{className:"tc"},y.a.createElement(j.a,{current:tt.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:Le==null?void 0:Le.shixuns_count,onChange:function(st){tt.page=st,ht({type:"classroomList/getShixunLists",payload:Object(c.a)({},tt)})}})))},ue=Object(N.a)(function(xe){var Ee=xe.classroomList,We=xe.loading;return{classroomList:Ee,loading:We}})(Pe),Te=oe("NLgs"),Ie=oe("xKgJ"),Ce=oe("MXD1"),ke=oe("CFYs"),ze=oe("qHKi"),Re=oe.n(ze),Fe=function(Ee){var We=Ee.data,he=We===void 0?{}:We,at=Ee.dispatch,ht=at===void 0?function(){}:at,ct=Ee.onReloadData,Et=ct===void 0?function(){}:ct,Qe=function(){if(!Object(Te.c)(ht))return;if(Object(Ie.p)())return;for(var $e,it=0;it<(he==null||((Le=he.stages)===null||Le===void 0)?void 0:Le.length);it++){var Le,dt,Je,He=he==null||((dt=he.stages)===null||dt===void 0)?void 0:dt[it],ye=He==null||((Je=He.shixuns_list)===null||Je===void 0)?void 0:Je.find(function(lt){return(lt==null?void 0:lt.shixun_status)!=="\u6682\u672A\u516C\u5F00"});if(ye){$e=ye.identifier;break}}$e?we($e):S.b.info("\u5B9E\u8BAD\u6682\u672A\u516C\u5F00!")},Dt=function Ze($e){var it;$e=((it=$e)===null||it===void 0?void 0:it.includes(".json"))?$e:"".concat($e,".json"),f.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 Le=Object(h.a)(g.a.mark(function Je(){var He,ye;return g.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(K.db)({url:$e});case 2:if(He=et.sent,He){et.next=5;break}return et.abrupt("return");case 5:return S.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),et.next=8,Object(K.w)({id:He.shixun_identifier});case 8:if(ye=et.sent,!(ye==null?void 0:ye.game_identifier)){et.next=13;break}return Object(te.z)("/tasks/".concat(ye.game_identifier)),Et(),et.abrupt("return");case 13:(ye==null?void 0:ye.status)===2?Ze(ye==null?void 0:ye.message):(ye==null?void 0:ye.status)===3&&wt(ye==null?void 0:ye.message);case 14:case"end":return et.stop()}},Je)}));function dt(){return Le.apply(this,arguments)}return dt}()})},wt=function($e){f.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",$e,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},we=function(){var Ze=Object(h.a)(g.a.mark(function $e(it){var Le;return g.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(K.w)({id:it});case 2:if(Le=Je.sent,!(Le==null?void 0:Le.game_identifier)){Je.next=7;break}return Object(te.z)("/tasks/".concat(Le.game_identifier)),Et(),Je.abrupt("return");case 7:(Le==null?void 0:Le.status)===2?Dt(Le==null?void 0:Le.message):(Le==null?void 0:Le.status)===3&&wt(Le==null?void 0:Le.message);case 8:case"end":return Je.stop()}},$e)}));return function(it){return Ze.apply(this,arguments)}}();return y.a.createElement("section",null,!Object(Ie.c)()&&y.a.createElement(y.a.Fragment,null,(he==null?void 0:he.start_learning)?y.a.createElement("div",{className:Re.a.wrap},y.a.createElement("div",{className:"mt5 ".concat(Re.a.havaLearn)},y.a.createElement("span",null,"\u5DF2\u5B66",he==null?void 0:he.learned,"%")),y.a.createElement("div",{className:"mt5 ".concat(Re.a.progress)},y.a.createElement(ke.a,{percent:he==null?void 0:he.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"},he==null?void 0:he.last_shixun))):y.a.createElement(i.a,{className:Re.a.wrap,align:"middle"},y.a.createElement(r.a,{flex:"1"},y.a.createElement("span",{className:Re.a.name},"\u8FD8\u672A\u5F00\u59CB\u5B66\u4E60")),y.a.createElement(r.a,null,y.a.createElement(d.a,{className:Re.a.button,type:"primary",onClick:Qe},"\u5F00\u59CB\u5B66\u4E60")))))},Ge=Fe,Ye=oe("V0Rq"),_t=oe("sBCT"),xt=oe("500L"),bt=oe("m3rI"),St=function(Ee){var We=Ee.classroomList,he=Ee.user,at=Ee.globalSetting,ht=Ee.loading,ct=Ee.dispatch,Et=Object(b.a)(Ee,["classroomList","user","globalSetting","loading","dispatch"]),Qe=Object(U.m)(),Dt=Object(I.useState)([]),wt=Object(R.a)(Dt,2),we=wt[0],Ze=wt[1],$e=Object(I.useState)({}),it=Object(R.a)($e,2),Le=it[0],dt=it[1],Je=Object(I.useState)(-1),He=Object(R.a)(Je,2),ye=He[0],lt=He[1],et=Object(I.useState)(!1),tt=Object(R.a)(et,2),jt=tt[0],Tt=tt[1],Be=Object(I.useState)({name:"",is_jupyter:!1}),st=Object(R.a)(Be,2),nt=st[0],ot=st[1],ft=O.a.useForm(),At=Object(R.a)(ft,1),rt=At[0],Ft=O.a.useForm(),Lt=Object(R.a)(Ft,1),vt=Lt[0],Ot=O.a.useForm(),Pt=Object(R.a)(Ot,1),kt=Pt[0],tn=Object(I.useState)(!1),Bt=Object(R.a)(tn,2),nn=Bt[0],zt=Bt[1],rn=Object(I.useState)(),Xt=Object(R.a)(rn,2),Ct=Xt[0],Wt=Xt[1],on=Object(I.useState)([]),Gt=Object(R.a)(on,2),an=Gt[0],sn=Gt[1],un=Object(I.useState)(),Kt=Object(R.a)(un,2),cn=Kt[0],Ut=Kt[1];Object(I.useEffect)(function(){gt()},[Qe==null?void 0:Qe.coursesId]),Object(I.useEffect)(function(){We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&>()},[We.actionTabs.key]);var ln=function(){var De=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ct({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),Ae.next=3,Object(K.w)({id:ve});case 3:if(be=Ae.sent,ct({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(be==null?void 0:be.game_identifier)){Ae.next=8;break}return Object(te.z)("/tasks/".concat(be.game_identifier)),Ae.abrupt("return");case 8:(be==null?void 0:be.status)===2?dn(be==null?void 0:be.message):(be==null?void 0:be.status)===3&&qt(be==null?void 0:be.message);case 9:case"end":return Ae.stop()}},de)}));return function(ve){return De.apply(this,arguments)}}(),dn=function De(de){var ve;de=((ve=de)===null||ve===void 0?void 0:ve.includes(".json"))?de:"".concat(de,".json"),f.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(h.a)(g.a.mark(function Ae(){var Ve,Xe;return g.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(Ye.K)({url:de});case 2:if(Ve=Ue.sent,Ve){Ue.next=5;break}return Ue.abrupt("return");case 5:return S.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ue.next=8,Object(K.w)({id:Ve.shixun_identifier});case 8:if(Xe=Ue.sent,!(Xe==null?void 0:Xe.game_identifier)){Ue.next=12;break}return Object(te.z)("/tasks/".concat(Xe.game_identifier)),Ue.abrupt("return");case 12:(Xe==null?void 0:Xe.status)===2?De(Xe==null?void 0:Xe.message):(Xe==null?void 0:Xe.status)===3&&qt(Xe==null?void 0:Xe.message);case 13:case"end":return Ue.stop()}},Ae)}));function Oe(){return be.apply(this,arguments)}return Oe}()})},qt=function(de){f.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",de,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},pn=function(){var de={shixuns_list:[]};Vt(we.length,de),Ze([].concat(Object(p.a)(we),[de])),Wt(!0)},Ht=function(){ye===we.length-1&&Ct&&(Nt(),Ze(we.filter(function(de,ve){return ve!==we.length-1}))),gt(),lt(-1)},Vt=function(de,ve){if(!Mt())return;lt(de),rt.setFieldsValue({name:ve.stage_name,description:ve.stage_description})},Yt=function(de){we[ye].shixuns_list=we[ye].shixuns_list.concat(de),Ze(Object(p.a)(we))},fn=function(de){we[ye].attachments_list=we[ye].attachments_list.concat(de),Ze(Object(p.a)(we))},hn=function(){var De=Object(h.a)(g.a.mark(function de(ve){var be,Oe;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,re(Object(c.a)({id:we[ye].stage_id,course_id:Qe.coursesId},ve));case 2:return be=Ve.sent,be.id&&(Ut(!1),Oe=[Object(c.a)({},be)],we[ye].shixuns_list=we[ye].shixuns_list.concat(Oe),Ze(Object(p.a)(we))),Ve.abrupt("return",be);case 5:case"end":return Ve.stop()}},de)}));return function(ve){return De.apply(this,arguments)}}(),gt=function(){var De=Object(h.a)(g.a.mark(function de(){var ve;return g.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,Y({coursesId:Qe==null?void 0:Qe.coursesId});case 2:ve=Oe.sent,(ve==null?void 0:ve.stages)&&Ze((ve==null?void 0:ve.stages)?Object(p.a)(ve==null?void 0:ve.stages):[]),dt(ve?Object(c.a)({},ve):{}),Nt(),lt(-1);case 7:case"end":return Oe.stop()}},de)}));return function(){return De.apply(this,arguments)}}(),It=function(){var De=Object(h.a)(g.a.mark(function de(ve,be){var Oe,Ae,Ve;return g.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ve==null?void 0:ve.name){Me.next=2;break}return Me.abrupt("return",S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(Nt(),Oe=[],we[ye][be||"shixuns_list"].map(function(Ue){Oe.push({type:Ue.item_type,id:Ue.id})}),!Ct){Me.next=12;break}return Me.next=8,fe(Object(c.a)(Object(c.a)({},ve),{},{coursesId:Qe.coursesId,list:Oe}));case 8:Ae=Me.sent,Ae&&(we[ye]=Object(c.a)(Object(c.a)({},we[ye]),Ae)),Me.next=16;break;case 12:return Me.next=14,ne(Object(c.a)(Object(c.a)({},ve),{},{id:we[ye].stage_id,type:Array.from(new Set(Oe.map(function(Ue){return Ue.type}))),list:Oe}));case 14:Ve=Me.sent,Ve&&(we[ye]=Object(c.a)(Object(c.a)({},we[ye]),Ve));case 16:case"end":return Me.stop()}},de)}));return function(ve,be){return De.apply(this,arguments)}}(),mn=function(de,ve,be){var Oe=Array.from(de),Ae=Oe.splice(ve,1),Ve=Object(R.a)(Ae,1),Xe=Ve[0];return Oe.splice(be,0,Xe),Oe},$t=function(de,ve){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(){we[ye][ve||"shixuns_list"].splice(de,1),S.b.success("\u5220\u9664\u6210\u529F"),Ze(Object(p.a)(we)),It(rt.getFieldsValue(),ve)}})},_n=function(de){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 ve=Object(h.a)(g.a.mark(function Oe(){var Ae;return g.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,V({id:de});case 2:Ae=Xe.sent,Ae.status===0&&(lt(-1),S.b.success("\u5220\u9664\u6210\u529F"),gt());case 4:case"end":return Xe.stop()}},Oe)}));function be(){return ve.apply(this,arguments)}return be}()})},Jt=function(){ot({name:"",is_jupyter:!1}),vt.setFieldsValue({name:"",is_jupyter:!1}),Tt(!1)},Qt=function(de,ve){if(!de.destination)return;var be=mn(we[ye][ve||"shixuns_list"],de.source.index,de.destination.index);we[ye][ve||"shixuns_list"]=be,Ze(Object(p.a)(we)),It(rt.getFieldsValue(),ve)},vn=function(){var De=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Mt()){Ae.next=2;break}return Ae.abrupt("return");case 2:return Ae.next=4,C({id:ve});case 4:be=Ae.sent,be.status===0&>();case 6:case"end":return Ae.stop()}},de)}));return function(ve){return De.apply(this,arguments)}}(),gn=function(){var De=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Mt()){Ae.next=2;break}return Ae.abrupt("return");case 2:return Ae.next=4,x({id:ve});case 4:be=Ae.sent,be.status===0&>();case 6:case"end":return Ae.stop()}},de)}));return function(ve){return De.apply(this,arguments)}}(),Mt=function(){return ye!==-1?(f.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 ve="Edit_".concat(ye),be=document.getElementById(ve);be&&setTimeout(function(){return be.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},Zt=function(){It(rt.getFieldsValue())},Nt=function(){Wt(!1)},en=function(de,ve,be){return y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:ve,gutter:[5,10]},y.a.createElement(r.a,null,de.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:!de.allow_visit&&!de.to_be_built&&(de.shixun_status==="\u6682\u672A\u516C\u5F00"||de.shixun_status==="\u5DF2\u5220\u9664")?Z.a.color204:""},be+1,"-",ve+1,"\xA0\xA0",de.name,ye===-1&&de.complete_status===1&&y.a.createElement("span",{className:Z.a.completed},y.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),y.a.createElement(r.a,null,ye===be&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){$t(ve,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),ye!==be&&de.item_type==="VideoItem"&&y.a.createElement("aside",null,y.a.createElement(d.a,{type:"primary",href:de.link||"/video/".concat(de.id,"?course_id=").concat(Qe.coursesId),target:"_blank"},de.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(de.allow_visit||de.to_be_built||de.shixun_status!=="\u6682\u672A\u516C\u5F00"&&de.shixun_status!=="\u5DF2\u5220\u9664")&&ye!==be&&de.item_type==="Shixun"&&y.a.createElement("aside",null,y.a.createElement(D.Link,{to:"/shixuns/".concat(de.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),de.shixun_status!=="\u6682\u672A\u516C\u5F00"&&y.a.createElement(d.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(Te.c)(ct))return;ln(de.identifier)}},"\u5F00\u59CB\u5B9E\u6218")),ye===-1&&!de.allow_visit&&de.shixun_status==="\u6682\u672A\u516C\u5F00"&&y.a.createElement("span",{className:Z.a.color204},"\u6682\u672A\u516C\u5F00"),ye===-1&&!de.allow_visit&&de.shixun_status==="\u5DF2\u5220\u9664"&&y.a.createElement("span",{className:Z.a.color204},"\u5DF2\u5220\u9664"),ye===-1&&de.allow_visit&&de.item_type==="Shixun"&&y.a.createElement("span",{className:"".concat(Z.a.color204," ml5 experiment-number")},"\u5B9E\u9A8C\u6570 ",de.challenges_count)))},yn=function(de,ve){var be,Oe,Ae,Ve,Xe;return y.a.createElement("section",{key:ve,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:Z.a.icons},y.a.createElement("img",{src:oe("JWDV")}))),y.a.createElement(r.a,{flex:1,className:"tl font18 bold c-grey-333"},de.stage_name||"\u7B2C".concat(we==null?void 0:we.length,"\u90E8\u5206")),y.a.createElement(r.a,null,Object(Ie.c)()&&ye===ve&&!Ct&&y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){_n(de.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),Object(Ie.c)()&&ye!==ve&&y.a.createElement("div",null,ve>0&&y.a.createElement(e.a,{title:"\u5411\u4E0A\u79FB\u52A8"},y.a.createElement("span",{onClick:function(){return vn(de.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),ve")}})))),ye===ve&&y.a.createElement("div",{className:"pl20 pr20"},y.a.createElement("aside",null,y.a.createElement(O.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(we==null?void 0:we.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:Zt})),y.a.createElement(O.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(we==null?void 0:we.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:Zt}))),y.a.createElement("aside",null,y.a.createElement(d.a,{size:"large",className:"mt20",onClick:function(){if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Te.c)(ct))return;if(!Object(Te.a)())return;Tt(!0),vt.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 Ue;if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");ct({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",id:we[ye].stage_id,course_id:Qe.coursesId}}),sn(de==null||((Ue=de.shixuns_list)===null||Ue===void 0)?void 0:Ue.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),!(at==null||((Oe=at.setting)===null||Oe===void 0)?void 0:Oe.is_local)&&y.a.createElement(y.a.Fragment,null,y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){var Ue,ut;if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Ue=he.userInfo)===null||Ue===void 0?void 0:Ue.admin)||((ut=he.userInfo)===null||ut===void 0?void 0:ut.is_teacher)&&Object(Te.b)())&&Ut(!0)}},y.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE"),y.a.createElement("br",null))),y.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(ve)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),y.a.createElement("aside",{className:Z.a.shixuns},ye>-1?y.a.createElement(G.a,{onDragEnd:function(Ue){return Qt(Ue,"shixuns_list")}},y.a.createElement(G.c,{droppableId:"droppable-id"},function(Me,Ue){var ut;return y.a.createElement("div",Object(k.a)({className:"mt20",ref:Me.innerRef},Me.droppableProps,{onScroll:function(){}}),(ut=de.shixuns_list)===null||ut===void 0?void 0:ut.map(function(pt,mt){return y.a.createElement(G.b,{draggableId:"".concat(pt.id.toString(),"-").concat(ve,"-").concat(mt),index:mt,key:pt.id},function(yt,bn){return y.a.createElement("div",Object(k.a)({ref:yt.innerRef},yt.draggableProps,yt.dragHandleProps),en(pt,mt,ve))})}))})):y.a.createElement("div",{className:"mt20"},(Ae=de.shixuns_list)===null||Ae===void 0?void 0:Ae.map(function(Me,Ue){return y.a.createElement("div",null,en(Me,Ue,ve))}))),!!((Ve=de.attachments_list)===null||Ve===void 0?void 0:Ve.length)&&y.a.createElement(n.a,null),y.a.createElement("aside",{className:Z.a.shixuns},ye>-1?y.a.createElement(G.a,{onDragEnd:function(Ue){return Qt(Ue,"attachments_list")}},y.a.createElement(G.c,{droppableId:"droppable-id2"},function(Me,Ue){var ut;return y.a.createElement("div",Object(k.a)({className:"mt20",ref:Me.innerRef},Me.droppableProps,{onScroll:function(){}}),(ut=de.attachments_list)===null||ut===void 0?void 0:ut.map(function(pt,mt){return y.a.createElement(G.b,{draggableId:"".concat(pt.id.toString(),"-").concat(ve,"-").concat(mt),index:mt,key:pt.id},function(yt,bn){return y.a.createElement("div",Object(k.a)({ref:yt.innerRef},yt.draggableProps,yt.dragHandleProps),y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:mt,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:bt.a.IMG_SERVER+pt.url+"?disposition=inline",target:"_blank"},pt.name)),y.a.createElement(r.a,null,ye===ve&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){$t(mt,"attachments_list")},className:"iconfont icon-shanchu c-grey-c"}))))))})}))})):y.a.createElement("div",{className:"mt20"},(Xe=de.attachments_list)===null||Xe===void 0?void 0:Xe.map(function(Me,Ue){return y.a.createElement("div",null,y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:Ue,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:bt.a.IMG_SERVER+Me.url+"?disposition=inline",target:"_blank"},Me.name))))}))),ye===ve&&y.a.createElement("aside",{className:Z.a.buttons},y.a.createElement(d.a,{onClick:Ht,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),y.a.createElement(d.a,{onClick:Ht,size:"large",type:"primary"},"\u4FDD\u5B58")))};return y.a.createElement("section",{className:"mb50"},y.a.createElement(Ge,{data:Le,dispatch:ct,onReloadData:gt}),y.a.createElement(O.a,{form:rt,onFinish:It},we==null?void 0:we.map(function(De,de){return y.a.createElement("div",{key:de},yn(De,de))})),Object(Ie.c)()&&!Ct&&ye===-1&&y.a.createElement("div",{className:Z.a.addStage,onClick:pn},y.a.createElement("span",{className:Z.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(f.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE",visible:jt,onOk:Object(h.a)(g.a.mark(function De(){var de;return g.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,vt.validateFields();case 2:return be.next=4,J(Object(c.a)({id:we[ye].stage_id,course_id:Qe.coursesId},nt));case 4:de=be.sent,Jt(),de.id&&(S.b.success("\u6DFB\u52A0\u6210\u529F"),Yt([de]));case 7:case"end":return be.stop()}},De)})),onCancel:Jt},y.a.createElement(O.a,{form:vt,onValuesChange:function(de){ot(Object(c.a)(Object(c.a)({},nt),de))}},y.a.createElement(O.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},y.a.createElement(Ke.a.Group,null,y.a.createElement(Ke.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),y.a.createElement(Ke.a,{value:!0},"jupyter\u5B9E\u8BAD"))),y.a.createElement(O.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,nt.name.length,"/60")})))),y.a.createElement(f.a,{centered:!0,title:"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:nn,onOk:Object(h.a)(g.a.mark(function De(){var de,ve;return g.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,kt.validateFields();case 2:return Oe.next=4,kt.getFieldsValue();case 4:return de=Oe.sent,Oe.next=7,ce({id:we[ye].stage_id,course_id:Qe.coursesId,attachment_ids:de.files.map(function(Ae){return Ae.response.id})});case 7:ve=Oe.sent,ve.status===0&&(S.b.success("\u6DFB\u52A0\u6210\u529F"),zt(!1),fn(Object(p.a)(de.files)));case 9:case"end":return Oe.stop()}},De)})),onCancel:function(){return zt(!1)}},y.a.createElement(O.a,{form:kt},y.a.createElement(O.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},y.a.createElement(xt.b,{maxSize:150,accept:"*.pdf"})),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(D.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(ue,{shixunIds:an,cb:Yt}),y.a.createElement(_t.a,{visible:cn,onCancel:function(){return Ut(!1)},onOk:hn}))},Rt=Ne.default=Object(N.a)(function(xe){var Ee=xe.classroomList,We=xe.user,he=xe.loading,at=xe.globalSetting;return{classroomList:Ee,user:We,globalSetting:at,loading:he.models.index}})(St)},Aky1:function(qe,Ne,oe){"use strict";oe.d(Ne,"a",function(){return _});var je=oe("ErOA"),Ke=oe("qGJc"),_e=oe.n(Ke),n="",k;function T(i){m(i)}function m(i){debugger;k=new _e.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),k.startUpload()},onUploadstarted:function(d){var s=d.file.name;if(d.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(je.a)(r,{method:"put",body:{video_id:d.videoId,title:s,file_name:s}}).then(function(c){if(c.status==-1){i.onUploadError&&i.onUploadError(d);return}var p=c.data,l=p.UploadAuth,S=p.UploadAddress,E=p.VideoId;k.setUploadAuthAndAddress(d,l,S)}).catch(function(c){k.deleteFile(k._curIndex),k.nextUpload(),console.log(c)})}else{var e="/api/users/".concat(n,"/video_auths.json"),a="";Object(je.a)(e,{method:"Post",body:{title:a+s,file_name:a+s}}).then(function(c){if(c){var p=c.data,l=p.UploadAuth,S=p.UploadAddress,E=p.VideoId;k.setUploadAuthAndAddress(d,l,S,E)}}).catch(function(c){k.deleteFile(k._curIndex),k.nextUpload(),console.log(c)}),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 a=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(je.a)(s,{method:"put",body:{video_id:d.videoId}}).then(function(e){var a=e.data,r=a.UploadAuth;k.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(k)}function _(i,u){i&&(n=i),T(u);debugger}},ItnT:function(qe,Ne,oe){qe.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(qe,Ne,oe){qe.exports=oe.p+"static/charpter-white.5fa14f93.svg"},NLgs:function(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return i}),oe.d(Ne,"d",function(){return u}),oe.d(Ne,"b",function(){return s}),oe.d(Ne,"a",function(){return e});var je=oe("2qtc"),Ke=oe("kLXV"),_e=oe("q1tI"),n=oe.n(_e),k=oe("9kvl"),T=oe("xKgJ"),m=oe("1vsH"),_=oe("m3rI"),i=function(r){return!!(u(r)&&d())},u=function(r){return Object(T.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(){var r,c=Object(k.b)()._store.getState(),p=c.user;return((r=p.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(Ke.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(){k.c.push("/account/profile/edit")}}),!1)},s=function(){var r,c=Object(k.b)()._store.getState(),p=c.user;return((r=p.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(Ke.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(T.a)()?!0:(Ke.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(T.r)()?oe("WdTA"):"".concat(_.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(T.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(qe,Ne,oe){qe.exports=oe.p+"static/studnetqun.a5754d96.png"},kwm0:function(qe,Ne,oe){qe.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(qe,Ne,oe){(function(je){var Ke,Ke;!function(_e){if(!0)window.OSS=_e(),qe.exports=_e();else var n}(function(){var _e;return function(){function n(k,T,m){function _(d,s){if(!T[d]){if(!k[d]){var e=typeof Ke=="function"&&Ke;if(!s&&e)return Ke(d,!0);if(i)return i(d,!0);var a=new Error("Cannot find module '"+d+"'");throw a.code="MODULE_NOT_FOUND",a}var r=T[d]={exports:{}};k[d][0].call(r.exports,function(c){return _(k[d][1][c]||c)},r,r.exports,n,k,T,m)}return T[d].exports}for(var i=typeof Ke=="function"&&Ke,u=0;u0?L["Content-Type"]=q.mime:L["Content-Type"]=g.getType(q.mime||f.extname(q.object||""))||"application/octet-stream"),q.content&&(L["Content-Md5"]=E.createHash("md5").update(new _(q.content,"utf8")).digest("base64"),L["Content-Length"]||(L["Content-Length"]=q.content.length));var j=this._getResource(q);L.authorization=this.authorization(q.method,j,q.subres,L);var F=this._getReqUrl(q);S("request %s %s, with headers %j, !!stream: %s",q.method,F,L,!!q.stream);var M=q.timeout||this.options.timeout;return{url:F,params:{agent:this.agent,method:q.method,content:q.content,stream:q.stream,headers:L,timeout:M,writeStream:q.writeStream,customResponse:q.customResponse,ctx:q.ctx||this.ctx}}},$.request=c.default.mark(function q(L){var j,F,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return j=this.createRequest(L),F=void 0,M=void 0,Y.prev=3,Y.next=6,this.urllib.request(j.url,j.params);case 6:F=Y.sent,S("response %s %s, got %s, headers: %j",L.method,j.url,F.status,F.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),M=Y.t0;case 13:if(H=void 0,!F||!L.successStatuses||L.successStatuses.indexOf(F.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(F);case 17:if(H=Y.sent,H.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(H.serverTime)-new Date,Y.next=22,this.request(L);case 22:return Y.abrupt("return",Y.sent);case 23:H.params=L,Y.next=30;break;case 26:if(!M){Y.next=30;break}return Y.next=29,this.requestError(M);case 29:H=Y.sent;case 30:if(!H){Y.next=32;break}throw H;case 32:if(!L.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(F.data);case 35:F.data=Y.sent;case 36:return Y.abrupt("return",F);case 37:case"end":return Y.stop()}},q,this,[[3,10]])}),$._getResource=function(q){var L="/";return q.bucket&&(L+=q.bucket+"/"),q.object&&(L+=q.object),L},$._isIP=function(q){return z._isIP(q)},$._escape=function(q){return U.encodeURIComponent(q).replace(/%2F/g,"/")},$._getReqUrl=function(q){var L={};A(this.options.endpoint).to(L);var j=this._isIP(L.hostname),F=this.options.cname;!q.bucket||F||j||(L.host=q.bucket+"."+L.host);var M="/";q.bucket&&j&&(M+=q.bucket+"/"),q.object&&(M+=this._escape(q.object).replace(/\+/g,"%2B")),L.pathname=M;var H={};if(q.query&&R(H,q.query),q.subres){var Y={};I.string(q.subres)?Y[q.subres]="":I.array(q.subres)?q.subres.forEach(function(ae){Y[ae]=""}):Y=q.subres,R(H,Y)}return L.query=H,b.format(L)},$._getUserAgent=function(){var q=m&&m.browser?"js":"nodejs",L="aliyun-sdk-"+q+"/"+N.version,j=y.description;return!j&&m&&(j="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(L+" "+j)},$._checkUserAgent=function(q){return q.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(q,L){return K.name===q&&K.version.split(".")[0]===L},$.parseXML=function(q){return function(L){_.isBuffer(q)&&(q=q.toString()),h.parseString(q,{explicitRoot:!1,explicitArray:!1},L)}},$.requestError=c.default.mark(function q(L){var j,F,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(j=null,L.data&&L.data.length){Y.next=5;break}L.status===-1||L.status===-2?(j=new Error(L.message),j.name=L.name,j.status=L.status,j.code=L.name):(L.status===404?(j=new Error("Object not exists"),j.name="NoSuchKeyError",j.status=404,j.code="NoSuchKey"):L.status===412?(j=new Error("Pre condition failed"),j.name="PreconditionFailedError",j.status=412,j.code="PreconditionFailed"):(j=new Error("Unknow error, status: "+L.status),j.name="UnknowError",j.status=L.status),j.requestId=L.headers["x-oss-request-id"],j.host=""),Y.next=30;break;case 5:return F=String(L.data),S("request response error data: %s",F),M=void 0,Y.prev=8,Y.next=11,this.parseXML(F)||{};case 11:M=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),S(F),Y.t0.message+=` -raw xml: `+F,Y.t0.status=L.status,Y.t0.requestId=L.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:H=M.Message||"unknow request error, status: "+L.status,M.Condition&&(H+=" (condition: "+M.Condition+")"),j=new Error(H),j.name=M.Code?M.Code+"Error":"UnknowError",j.status=L.status,j.code=M.Code,j.requestId=M.RequestId,j.hostId=M.HostId,j.serverTime=M.ServerTime;case 30:return S("generate error %j",j),Y.abrupt("return",j);case 32:case"end":return Y.stop()}},q,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,k,T){(function(m){"use strict";function _(A){return A&&A.__esModule?A:{default:A}}function i(A,g){if(!(this instanceof i))return new i(A,g);f.call(this,g),this.file=A,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=n("babel-runtime/core-js/array/from"),d=_(u),s=n("babel-runtime/regenerator"),e=_(s),a=n("is-type-of"),r=n("util"),c=n("path"),p=n("mime"),l=n("copy-to"),S=T;S.multipartUpload=e.default.mark(function A(g,h,w){var O,R,b,I,y,U,D,N,G;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),w=w||{},!w.checkpoint||!w.checkpoint.uploadId){K.next=6;break}return K.next=5,this._resumeMultipart(w.checkpoint,w);case 5:return K.abrupt("return",K.sent);case 6:return O=102400,w.mime||(a.file(h)?w.mime=p.getType(c.extname(h.name)):a.blob(h)?w.mime=h.type:w.mime=p.getType(c.extname(h))),w.headers=w.headers||{},this._convertMetaToHeaders(w.meta,w.headers),K.next=12,this._getFileSize(h);case 12:if(!((R=K.sent)0&&l(I).to(U),D=this._divideParts(O,R),N=D.length,G=!1,K=e.default.mark(function ae(ne,se){var fe,Q,J;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(ne.isCancel()){ie.next=21;break}return ie.prev=1,fe=D[se-1],Q={stream:ne._createStream(w,fe.start,fe.end),size:fe.end-fe.start},ie.next=6,ne._uploadPart(y,b,se,Q);case 6:if(J=ie.sent,ne.isCancel()||G){ie.next=13;break}if(g.doneParts.push({number:se,etag:J.res.headers.etag}),U.push({number:se,etag:J.res.headers.etag}),!h||!h.progress){ie.next=13;break}return ie.next=13,h.progress(I.length/N,g,J.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),ne.isCancel()){ie.next=21;break}throw ne.cancel(),ie.t0.partNum=se,ie.t0;case 21:case"end":return ie.stop()}},ae,this,[[1,15]])}),te=(0,d.default)(new Array(N),function(ae,ne){return ne+1}),z=U.map(function(ae){return ae.number}),Z=te.filter(function(ae){return z.indexOf(ae)<0}),$=5,q=h.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&q!==1){Y.next=26;break}L=0;case 16:if(!(L0)){Y.next=37;break}throw this.resetCancelFlag(),H=M[0],H.message="Failed to upload some parts with error: "+H.toString()+" part_num: "+H.partNum,H;case 37:if(!this.isCancel()){Y.next=40;break}throw j=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(y,b,U,h);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},A,this)}),a.file=function(A){return typeof File!="undefined"&&A instanceof File},a.blob=function(A){return typeof Blob!="undefined"&&A instanceof Blob},S._getFileSize=e.default.mark(function A(g){var h;return e.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!a.buffer(g)){w.next=4;break}return w.abrupt("return",g.length);case 4:if(!a.blob(g)&&!a.file(g)){w.next=6;break}return w.abrupt("return",g.size);case 6:if(!a.string(g)){w.next=11;break}return w.next=9,this._statFile(g);case 9:return h=w.sent,w.abrupt("return",h.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return w.stop()}},A,this)});var E=n("stream"),f=E.Readable;r.inherits(i,f),i.prototype.readFileAndPush=function(A){if(this.fileBuffer)for(var g=!0;g&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:w,this.start=w,g=this.push(this.fileBuffer.slice(h,w))}},i.prototype._read=function(A){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);A=A||16384;var g=this;this.reader.onload=function(h){g.fileBuffer=new m(new Uint8Array(h.target.result)),g.file=null,g.readFileAndPush(A)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(A)},S._createStream=function(A,g,h){if(a.blob(A)||a.file(A))return new i(A.slice(g,h));throw new Error("_createStream requires File/String.")},S._getPartSize=function(A,g){return g?Math.max(Math.ceil(A/1e4),g):1048576},S._divideParts=function(A,g){for(var h=Math.ceil(A/g),w=[],O=0;O +(window.webpackJsonp=window.webpackJsonp||[]).push([[77,9,10,11,14],{"500L":function(qe,Ne,oe){"use strict";oe.d(Ne,"a",function(){return S});var De=oe("DZo9"),Ke=oe("8z0m"),_e=oe("+L6B"),n=oe("2/Rp"),k=oe("2qtc"),T=oe("kLXV"),m=oe("WmNS"),_=oe.n(m),i=oe("9og8"),u=oe("k1fw"),d=oe("oBTY"),s=oe("miYZ"),e=oe("tsqr"),a=oe("q1tI"),r=oe.n(a),c=oe("m3rI"),p=oe("wzkS"),l=oe("y5JW");function S(E){var f=[];return E&&E.length>0&&(f=E.map(function(A){return{uid:A.id,id:A.id,name:A.title+l.c+A.filesize,url:A.url,filesize:A.filesize,status:"done",response:{id:A.id}}})),f}Ne.b=function(E){var f=E.value,A=E.onChange,g=E.className,h=E.maxSize,w=h===void 0?150:h,O=E.title,R=O===void 0?"\u4E0A\u4F20\u9644\u4EF6":O,b=E.showRemoveModal,I=b===void 0?!1:b,y={multiple:!0,fileList:f,beforeUpload:function(N){var G=N.size/1024/1024;return G-1?ye(He.filter(function(At){return At!==Be.id})):ye(He.concat(Be.id))}}),y.a.createElement("div",{className:me.a.info},y.a.createElement("div",{className:me.a.title},y.a.createElement("div",{className:me.a.titleLeft},y.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Be==null?void 0:Be.identifier,"/challenges"),target:"_blank"},y.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Be.title}})))),y.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},y.a.createElement("span",{className:me.a.description,dangerouslySetInnerHTML:{__html:Be.description}})),y.a.createElement("div",{className:"flex-wrp mt15"},Be.challenge_names.map(function(nt,ot){return y.a.createElement("span",{key:ot,className:"mr30 font12"},"\u7B2C",ot+1,"\u5173 ",nt," ")})),y.a.createElement(n.a,{dashed:!0}),y.a.createElement("div",{className:"c-light-black mt20 font12"},y.a.createElement("span",null,Be.author_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,Be.author_school_name),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Be.level),y.a.createElement("span",{className:"ml15 mr15"},"|"),y.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),y.a.createElement("span",null,Be.study_count))))}),y.a.createElement("p",null)),y.a.createElement("div",{className:"tc"},y.a.createElement(D.a,{current:tt.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:Le==null?void 0:Le.shixuns_count,onChange:function(st){tt.page=st,ht({type:"classroomList/getShixunLists",payload:Object(c.a)({},tt)})}})))},ue=Object(N.a)(function(Se){var Ee=Se.classroomList,We=Se.loading;return{classroomList:Ee,loading:We}})(Pe),xe=oe("NLgs"),Ie=oe("xKgJ"),Ce=oe("MXD1"),ke=oe("CFYs"),ze=oe("qHKi"),Re=oe.n(ze),Fe=function(Ee){var We=Ee.data,he=We===void 0?{}:We,at=Ee.dispatch,ht=at===void 0?function(){}:at,ct=Ee.onReloadData,Et=ct===void 0?function(){}:ct,Qe=function(){if(!Object(xe.c)(ht))return;if(Object(Ie.p)())return;for(var $e,it=0;it<(he==null||((Le=he.stages)===null||Le===void 0)?void 0:Le.length);it++){var Le,dt,Je,He=he==null||((dt=he.stages)===null||dt===void 0)?void 0:dt[it],ye=He==null||((Je=He.shixuns_list)===null||Je===void 0)?void 0:Je.find(function(lt){return(lt==null?void 0:lt.shixun_status)!=="\u6682\u672A\u516C\u5F00"});if(ye){$e=ye.identifier;break}}$e?we($e):S.b.info("\u5B9E\u8BAD\u6682\u672A\u516C\u5F00!")},jt=function Ze($e){var it;$e=((it=$e)===null||it===void 0?void 0:it.includes(".json"))?$e:"".concat($e,".json"),f.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 Le=Object(h.a)(g.a.mark(function Je(){var He,ye;return g.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(K.db)({url:$e});case 2:if(He=et.sent,He){et.next=5;break}return et.abrupt("return");case 5:return S.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),et.next=8,Object(K.w)({id:He.shixun_identifier});case 8:if(ye=et.sent,!(ye==null?void 0:ye.game_identifier)){et.next=13;break}return Object(te.z)("/tasks/".concat(ye.game_identifier)),Et(),et.abrupt("return");case 13:(ye==null?void 0:ye.status)===2?Ze(ye==null?void 0:ye.message):(ye==null?void 0:ye.status)===3&&wt(ye==null?void 0:ye.message);case 14:case"end":return et.stop()}},Je)}));function dt(){return Le.apply(this,arguments)}return dt}()})},wt=function($e){f.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",$e,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},we=function(){var Ze=Object(h.a)(g.a.mark(function $e(it){var Le;return g.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(K.w)({id:it});case 2:if(Le=Je.sent,!(Le==null?void 0:Le.game_identifier)){Je.next=7;break}return Object(te.z)("/tasks/".concat(Le.game_identifier)),Et(),Je.abrupt("return");case 7:(Le==null?void 0:Le.status)===2?jt(Le==null?void 0:Le.message):(Le==null?void 0:Le.status)===3&&wt(Le==null?void 0:Le.message);case 8:case"end":return Je.stop()}},$e)}));return function(it){return Ze.apply(this,arguments)}}();return y.a.createElement("section",null,!Object(Ie.c)()&&y.a.createElement(y.a.Fragment,null,(he==null?void 0:he.start_learning)?y.a.createElement("div",{className:Re.a.wrap},y.a.createElement("div",{className:"mt5 ".concat(Re.a.havaLearn)},y.a.createElement("span",null,"\u5DF2\u5B66",he==null?void 0:he.learned,"%")),y.a.createElement("div",{className:"mt5 ".concat(Re.a.progress)},y.a.createElement(ke.a,{percent:he==null?void 0:he.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"},he==null?void 0:he.last_shixun))):y.a.createElement(i.a,{className:Re.a.wrap,align:"middle"},y.a.createElement(r.a,{flex:"1"},y.a.createElement("span",{className:Re.a.name},"\u8FD8\u672A\u5F00\u59CB\u5B66\u4E60")),y.a.createElement(r.a,null,y.a.createElement(d.a,{className:Re.a.button,type:"primary",onClick:Qe},"\u5F00\u59CB\u5B66\u4E60")))))},Ge=Fe,Ye=oe("V0Rq"),vt=oe("sBCT"),xt=oe("500L"),bt=oe("m3rI"),St=function(Ee){var We=Ee.classroomList,he=Ee.user,at=Ee.globalSetting,ht=Ee.loading,ct=Ee.dispatch,Et=Object(b.a)(Ee,["classroomList","user","globalSetting","loading","dispatch"]),Qe=Object(U.m)(),jt=Object(I.useState)([]),wt=Object(R.a)(jt,2),we=wt[0],Ze=wt[1],$e=Object(I.useState)({}),it=Object(R.a)($e,2),Le=it[0],dt=it[1],Je=Object(I.useState)(-1),He=Object(R.a)(Je,2),ye=He[0],lt=He[1],et=Object(I.useState)(!1),tt=Object(R.a)(et,2),Dt=tt[0],Tt=tt[1],Be=Object(I.useState)({name:"",is_jupyter:!1}),st=Object(R.a)(Be,2),nt=st[0],ot=st[1],ft=O.a.useForm(),At=Object(R.a)(ft,1),rt=At[0],Bt=O.a.useForm(),Lt=Object(R.a)(Bt,1),mt=Lt[0],Ot=O.a.useForm(),Pt=Object(R.a)(Ot,1),kt=Pt[0],tn=Object(I.useState)(!1),zt=Object(R.a)(tn,2),nn=zt[0],Ut=zt[1],rn=Object(I.useState)(),Xt=Object(R.a)(rn,2),Ct=Xt[0],Wt=Xt[1],on=Object(I.useState)([]),Gt=Object(R.a)(on,2),an=Gt[0],sn=Gt[1],un=Object(I.useState)(),Kt=Object(R.a)(un,2),cn=Kt[0],Mt=Kt[1];Object(I.useEffect)(function(){gt()},[Qe==null?void 0:Qe.coursesId]),Object(I.useEffect)(function(){We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&>()},[We.actionTabs.key]);var ln=function(){var je=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ct({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),Ae.next=3,Object(K.w)({id:ve});case 3:if(be=Ae.sent,ct({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(be==null?void 0:be.game_identifier)){Ae.next=8;break}return Object(te.z)("/tasks/".concat(be.game_identifier)),Ae.abrupt("return");case 8:(be==null?void 0:be.status)===2?dn(be==null?void 0:be.message):(be==null?void 0:be.status)===3&&qt(be==null?void 0:be.message);case 9:case"end":return Ae.stop()}},de)}));return function(ve){return je.apply(this,arguments)}}(),dn=function je(de){var ve;de=((ve=de)===null||ve===void 0?void 0:ve.includes(".json"))?de:"".concat(de,".json"),f.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(h.a)(g.a.mark(function Ae(){var Ve,Xe;return g.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(Ye.K)({url:de});case 2:if(Ve=Ue.sent,Ve){Ue.next=5;break}return Ue.abrupt("return");case 5:return S.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ue.next=8,Object(K.w)({id:Ve.shixun_identifier});case 8:if(Xe=Ue.sent,!(Xe==null?void 0:Xe.game_identifier)){Ue.next=12;break}return Object(te.z)("/tasks/".concat(Xe.game_identifier)),Ue.abrupt("return");case 12:(Xe==null?void 0:Xe.status)===2?je(Xe==null?void 0:Xe.message):(Xe==null?void 0:Xe.status)===3&&qt(Xe==null?void 0:Xe.message);case 13:case"end":return Ue.stop()}},Ae)}));function Oe(){return be.apply(this,arguments)}return Oe}()})},qt=function(de){f.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",de,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},pn=function(){var de={shixuns_list:[]};Vt(we.length,de),Ze([].concat(Object(p.a)(we),[de])),Wt(!0)},Ht=function(){ye===we.length-1&&Ct&&(Ft(),Ze(we.filter(function(de,ve){return ve!==we.length-1}))),gt(),lt(-1)},Vt=function(de,ve){if(!Nt())return;lt(de),rt.setFieldsValue({name:ve.stage_name,description:ve.stage_description})},Yt=function(de){we[ye].shixuns_list=we[ye].shixuns_list.concat(de),Ze(Object(p.a)(we))},fn=function(de){we[ye].attachments_list=we[ye].attachments_list.concat(de),Ze(Object(p.a)(we))},hn=function(){var je=Object(h.a)(g.a.mark(function de(ve){var be,Oe;return g.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,re(Object(c.a)({id:we[ye].stage_id,course_id:Qe.coursesId},ve));case 2:return be=Ve.sent,be.id&&(Mt(!1),Oe=[Object(c.a)({},be)],we[ye].shixuns_list=we[ye].shixuns_list.concat(Oe),Ze(Object(p.a)(we))),Ve.abrupt("return",be);case 5:case"end":return Ve.stop()}},de)}));return function(ve){return je.apply(this,arguments)}}(),gt=function(){var je=Object(h.a)(g.a.mark(function de(){var ve;return g.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,Y({coursesId:Qe==null?void 0:Qe.coursesId});case 2:ve=Oe.sent,(ve==null?void 0:ve.stages)&&Ze((ve==null?void 0:ve.stages)?Object(p.a)(ve==null?void 0:ve.stages):[]),dt(ve?Object(c.a)({},ve):{}),Ft(),lt(-1);case 7:case"end":return Oe.stop()}},de)}));return function(){return je.apply(this,arguments)}}(),It=function(){var je=Object(h.a)(g.a.mark(function de(ve,be){var Oe,Ae,Ve;return g.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ve==null?void 0:ve.name){Me.next=2;break}return Me.abrupt("return",S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(Ft(),Oe=[],we[ye][be||"shixuns_list"].map(function(Ue){Oe.push({type:Ue.item_type,id:Ue.id})}),!Ct){Me.next=12;break}return Me.next=8,fe(Object(c.a)(Object(c.a)({},ve),{},{coursesId:Qe.coursesId,list:Oe}));case 8:Ae=Me.sent,Ae&&(we[ye]=Object(c.a)(Object(c.a)({},we[ye]),Ae)),Me.next=16;break;case 12:return Me.next=14,ne(Object(c.a)(Object(c.a)({},ve),{},{id:we[ye].stage_id,type:Array.from(new Set(Oe.map(function(Ue){return Ue.type}))),list:Oe}));case 14:Ve=Me.sent,Ve&&(we[ye]=Object(c.a)(Object(c.a)({},we[ye]),Ve));case 16:case"end":return Me.stop()}},de)}));return function(ve,be){return je.apply(this,arguments)}}(),mn=function(de,ve,be){var Oe=Array.from(de),Ae=Oe.splice(ve,1),Ve=Object(R.a)(Ae,1),Xe=Ve[0];return Oe.splice(be,0,Xe),Oe},$t=function(de,ve){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(){we[ye][ve||"shixuns_list"].splice(de,1),S.b.success("\u5220\u9664\u6210\u529F"),Ze(Object(p.a)(we)),It(rt.getFieldsValue(),ve)}})},_n=function(de){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 ve=Object(h.a)(g.a.mark(function Oe(){var Ae;return g.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,V({id:de});case 2:Ae=Xe.sent,Ae.status===0&&(lt(-1),S.b.success("\u5220\u9664\u6210\u529F"),gt());case 4:case"end":return Xe.stop()}},Oe)}));function be(){return ve.apply(this,arguments)}return be}()})},Jt=function(){ot({name:"",is_jupyter:!1}),mt.setFieldsValue({name:"",is_jupyter:!1}),Tt(!1)},Qt=function(de,ve){if(!de.destination)return;var be=mn(we[ye][ve||"shixuns_list"],de.source.index,de.destination.index);we[ye][ve||"shixuns_list"]=be,Ze(Object(p.a)(we)),It(rt.getFieldsValue(),ve)},vn=function(){var je=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Nt()){Ae.next=2;break}return Ae.abrupt("return");case 2:return Ae.next=4,C({id:ve});case 4:be=Ae.sent,be.status===0&>();case 6:case"end":return Ae.stop()}},de)}));return function(ve){return je.apply(this,arguments)}}(),gn=function(){var je=Object(h.a)(g.a.mark(function de(ve){var be;return g.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Nt()){Ae.next=2;break}return Ae.abrupt("return");case 2:return Ae.next=4,x({id:ve});case 4:be=Ae.sent,be.status===0&>();case 6:case"end":return Ae.stop()}},de)}));return function(ve){return je.apply(this,arguments)}}(),Nt=function(){return ye!==-1?(f.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 ve="Edit_".concat(ye),be=document.getElementById(ve);be&&setTimeout(function(){return be.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},Zt=function(){It(rt.getFieldsValue())},Ft=function(){Wt(!1)},en=function(de,ve,be){return y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:ve,gutter:[5,10]},y.a.createElement(r.a,null,de.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:!de.allow_visit&&!de.to_be_built&&(de.shixun_status==="\u6682\u672A\u516C\u5F00"||de.shixun_status==="\u5DF2\u5220\u9664")?Z.a.color204:""},be+1,"-",ve+1,"\xA0\xA0",de.name,ye===-1&&de.complete_status===1&&y.a.createElement("span",{className:Z.a.completed},y.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),y.a.createElement(r.a,null,ye===be&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){$t(ve,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),ye!==be&&de.item_type==="VideoItem"&&y.a.createElement("aside",null,y.a.createElement(d.a,{type:"primary",href:de.link||"/video/".concat(de.id,"?course_id=").concat(Qe.coursesId),target:"_blank"},de.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(de.allow_visit||de.to_be_built||de.shixun_status!=="\u6682\u672A\u516C\u5F00"&&de.shixun_status!=="\u5DF2\u5220\u9664")&&ye!==be&&de.item_type==="Shixun"&&y.a.createElement("aside",null,y.a.createElement(j.Link,{to:"/shixuns/".concat(de.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),de.shixun_status!=="\u6682\u672A\u516C\u5F00"&&y.a.createElement(d.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(xe.c)(ct))return;ln(de.identifier)}},"\u5F00\u59CB\u5B9E\u6218")),ye===-1&&!de.allow_visit&&de.shixun_status==="\u6682\u672A\u516C\u5F00"&&y.a.createElement("span",{className:Z.a.color204},"\u6682\u672A\u516C\u5F00"),ye===-1&&!de.allow_visit&&de.shixun_status==="\u5DF2\u5220\u9664"&&y.a.createElement("span",{className:Z.a.color204},"\u5DF2\u5220\u9664"),ye===-1&&de.allow_visit&&de.item_type==="Shixun"&&y.a.createElement("span",{className:"".concat(Z.a.color204," ml5 experiment-number")},"\u5B9E\u9A8C\u6570 ",de.challenges_count)))},yn=function(de,ve){var be,Oe,Ae,Ve,Xe;return y.a.createElement("section",{key:ve,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:Z.a.icons},y.a.createElement("img",{src:oe("JWDV")}))),y.a.createElement(r.a,{flex:1,className:"tl font18 bold c-grey-333"},de.stage_name||"\u7B2C".concat(we==null?void 0:we.length,"\u90E8\u5206")),y.a.createElement(r.a,null,Object(Ie.c)()&&ye===ve&&!Ct&&y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){_n(de.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),Object(Ie.c)()&&ye!==ve&&y.a.createElement("div",null,ve>0&&y.a.createElement(e.a,{title:"\u5411\u4E0A\u79FB\u52A8"},y.a.createElement("span",{onClick:function(){return vn(de.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),ve")}})))),ye===ve&&y.a.createElement("div",{className:"pl20 pr20"},y.a.createElement("aside",null,y.a.createElement(O.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(we==null?void 0:we.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:Zt})),y.a.createElement(O.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(we==null?void 0:we.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:Zt}))),y.a.createElement("aside",null,y.a.createElement(d.a,{size:"large",className:"mt20",onClick:function(){if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(xe.c)(ct))return;if(!Object(xe.a)())return;Tt(!0),mt.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 Ue;if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");ct({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",id:we[ye].stage_id,course_id:Qe.coursesId}}),sn(de==null||((Ue=de.shixuns_list)===null||Ue===void 0)?void 0:Ue.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),!(at==null||((Oe=at.setting)===null||Oe===void 0)?void 0:Oe.is_local)&&y.a.createElement(y.a.Fragment,null,y.a.createElement(d.a,{size:"large",className:"mt10",onClick:function(){var Ue,ut;if(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Ue=he.userInfo)===null||Ue===void 0?void 0:Ue.admin)||((ut=he.userInfo)===null||ut===void 0?void 0:ut.is_teacher)&&Object(xe.b)())&&Mt(!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(!we[ye].stage_id)return S.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(xe.c)(ct))return;if(!Object(xe.a)())return;Ut(!0),mt.setFieldsValue({name:"",is_jupyter:!1})}},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(ve)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),y.a.createElement("aside",{className:Z.a.shixuns},ye>-1?y.a.createElement(G.a,{onDragEnd:function(Ue){return Qt(Ue,"shixuns_list")}},y.a.createElement(G.c,{droppableId:"droppable-id"},function(Me,Ue){var ut;return y.a.createElement("div",Object(k.a)({className:"mt20",ref:Me.innerRef},Me.droppableProps,{onScroll:function(){}}),(ut=de.shixuns_list)===null||ut===void 0?void 0:ut.map(function(pt,_t){return y.a.createElement(G.b,{draggableId:"".concat(pt.id.toString(),"-").concat(ve,"-").concat(_t),index:_t,key:pt.id},function(yt,bn){return y.a.createElement("div",Object(k.a)({ref:yt.innerRef},yt.draggableProps,yt.dragHandleProps),en(pt,_t,ve))})}))})):y.a.createElement("div",{className:"mt20"},(Ae=de.shixuns_list)===null||Ae===void 0?void 0:Ae.map(function(Me,Ue){return y.a.createElement("div",null,en(Me,Ue,ve))}))),!!((Ve=de.attachments_list)===null||Ve===void 0?void 0:Ve.length)&&y.a.createElement(n.a,null),y.a.createElement("aside",{className:Z.a.shixuns},ye>-1?y.a.createElement(G.a,{onDragEnd:function(Ue){return Qt(Ue,"attachments_list")}},y.a.createElement(G.c,{droppableId:"droppable-id2"},function(Me,Ue){var ut;return y.a.createElement("div",Object(k.a)({className:"mt20",ref:Me.innerRef},Me.droppableProps,{onScroll:function(){}}),(ut=de.attachments_list)===null||ut===void 0?void 0:ut.map(function(pt,_t){return y.a.createElement(G.b,{draggableId:"".concat(pt.id.toString(),"-").concat(ve,"-").concat(_t),index:_t,key:pt.id},function(yt,bn){return y.a.createElement("div",Object(k.a)({ref:yt.innerRef},yt.draggableProps,yt.dragHandleProps),y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:_t,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:bt.a.IMG_SERVER+pt.url+"?disposition=inline",target:"_blank"},pt.name)),y.a.createElement(r.a,null,ye===ve&&y.a.createElement("div",null,y.a.createElement(e.a,{title:"\u5220\u9664"},y.a.createElement("span",{onClick:function(){$t(_t,"attachments_list")},className:"iconfont icon-shanchu c-grey-c"}))))))})}))})):y.a.createElement("div",{className:"mt20"},(Xe=de.attachments_list)===null||Xe===void 0?void 0:Xe.map(function(Me,Ue){return y.a.createElement("div",null,y.a.createElement(i.a,{className:"list-item-row",align:"middle",key:Ue,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:bt.a.IMG_SERVER+Me.url+"?disposition=inline",target:"_blank"},Me.name))))}))),ye===ve&&y.a.createElement("aside",{className:Z.a.buttons},y.a.createElement(d.a,{onClick:Ht,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),y.a.createElement(d.a,{onClick:Ht,size:"large",type:"primary"},"\u4FDD\u5B58")))};return y.a.createElement("section",{className:"mb50"},y.a.createElement(Ge,{data:Le,dispatch:ct,onReloadData:gt}),y.a.createElement(O.a,{form:rt,onFinish:It},we==null?void 0:we.map(function(je,de){return y.a.createElement("div",{key:de},yn(je,de))})),Object(Ie.c)()&&!Ct&&ye===-1&&y.a.createElement("div",{className:Z.a.addStage,onClick:pn},y.a.createElement("span",{className:Z.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(f.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE",visible:Dt,onOk:Object(h.a)(g.a.mark(function je(){var de;return g.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,mt.validateFields();case 2:return be.next=4,J(Object(c.a)({id:we[ye].stage_id,course_id:Qe.coursesId},nt));case 4:de=be.sent,Jt(),de.id&&(S.b.success("\u6DFB\u52A0\u6210\u529F"),Yt([de]));case 7:case"end":return be.stop()}},je)})),onCancel:Jt},y.a.createElement(O.a,{form:mt,onValuesChange:function(de){ot(Object(c.a)(Object(c.a)({},nt),de))}},y.a.createElement(O.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},y.a.createElement(Ke.a.Group,null,y.a.createElement(Ke.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),y.a.createElement(Ke.a,{value:!0},"jupyter\u5B9E\u8BAD"))),y.a.createElement(O.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,nt.name.length,"/60")})))),y.a.createElement(f.a,{centered:!0,title:"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:nn,onOk:Object(h.a)(g.a.mark(function je(){var de,ve;return g.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,kt.validateFields();case 2:return Oe.next=4,kt.getFieldsValue();case 4:return de=Oe.sent,Oe.next=7,ce({id:we[ye].stage_id,course_id:Qe.coursesId,attachment_ids:de.files.map(function(Ae){return Ae.response.id})});case 7:ve=Oe.sent,ve.status===0&&(S.b.success("\u6DFB\u52A0\u6210\u529F"),Ut(!1),fn(Object(p.a)(de.files)));case 9:case"end":return Oe.stop()}},je)})),onCancel:function(){return Ut(!1)}},y.a.createElement(O.a,{form:kt},y.a.createElement(O.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},y.a.createElement(xt.b,{maxSize:150,accept:"*.pdf"})),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(j.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(ue,{shixunIds:an,cb:Yt}),y.a.createElement(vt.a,{visible:cn,onCancel:function(){return Mt(!1)},onOk:hn}))},Rt=Ne.default=Object(N.a)(function(Se){var Ee=Se.classroomList,We=Se.user,he=Se.loading,at=Se.globalSetting;return{classroomList:Ee,user:We,globalSetting:at,loading:he.models.index}})(St)},Aky1:function(qe,Ne,oe){"use strict";oe.d(Ne,"a",function(){return _});var De=oe("ErOA"),Ke=oe("qGJc"),_e=oe.n(Ke),n="",k;function T(i){m(i)}function m(i){debugger;k=new _e.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),k.startUpload()},onUploadstarted:function(d){var s=d.file.name;if(d.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(De.a)(r,{method:"put",body:{video_id:d.videoId,title:s,file_name:s}}).then(function(c){if(c.status==-1){i.onUploadError&&i.onUploadError(d);return}var p=c.data,l=p.UploadAuth,S=p.UploadAddress,E=p.VideoId;k.setUploadAuthAndAddress(d,l,S)}).catch(function(c){k.deleteFile(k._curIndex),k.nextUpload(),console.log(c)})}else{var e="/api/users/".concat(n,"/video_auths.json"),a="";Object(De.a)(e,{method:"Post",body:{title:a+s,file_name:a+s}}).then(function(c){if(c){var p=c.data,l=p.UploadAuth,S=p.UploadAddress,E=p.VideoId;k.setUploadAuthAndAddress(d,l,S,E)}}).catch(function(c){k.deleteFile(k._curIndex),k.nextUpload(),console.log(c)}),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 a=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(De.a)(s,{method:"put",body:{video_id:d.videoId}}).then(function(e){var a=e.data,r=a.UploadAuth;k.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(k)}function _(i,u){i&&(n=i),T(u);debugger}},ItnT:function(qe,Ne,oe){qe.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(qe,Ne,oe){qe.exports=oe.p+"static/charpter-white.5fa14f93.svg"},NLgs:function(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return i}),oe.d(Ne,"d",function(){return u}),oe.d(Ne,"b",function(){return s}),oe.d(Ne,"a",function(){return e});var De=oe("2qtc"),Ke=oe("kLXV"),_e=oe("q1tI"),n=oe.n(_e),k=oe("9kvl"),T=oe("xKgJ"),m=oe("1vsH"),_=oe("m3rI"),i=function(r){return!!(u(r)&&d())},u=function(r){return Object(T.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(){var r,c=Object(k.b)()._store.getState(),p=c.user;return((r=p.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(Ke.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(){k.c.push("/account/profile/edit")}}),!1)},s=function(){var r,c=Object(k.b)()._store.getState(),p=c.user;return((r=p.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(Ke.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(T.a)()?!0:(Ke.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(T.r)()?oe("WdTA"):"".concat(_.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(T.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(qe,Ne,oe){qe.exports=oe.p+"static/studnetqun.a5754d96.png"},kwm0:function(qe,Ne,oe){qe.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(qe,Ne,oe){(function(De){var Ke,Ke;!function(_e){if(!0)window.OSS=_e(),qe.exports=_e();else var n}(function(){var _e;return function(){function n(k,T,m){function _(d,s){if(!T[d]){if(!k[d]){var e=typeof Ke=="function"&&Ke;if(!s&&e)return Ke(d,!0);if(i)return i(d,!0);var a=new Error("Cannot find module '"+d+"'");throw a.code="MODULE_NOT_FOUND",a}var r=T[d]={exports:{}};k[d][0].call(r.exports,function(c){return _(k[d][1][c]||c)},r,r.exports,n,k,T,m)}return T[d].exports}for(var i=typeof Ke=="function"&&Ke,u=0;u0?L["Content-Type"]=q.mime:L["Content-Type"]=g.getType(q.mime||f.extname(q.object||""))||"application/octet-stream"),q.content&&(L["Content-Md5"]=E.createHash("md5").update(new _(q.content,"utf8")).digest("base64"),L["Content-Length"]||(L["Content-Length"]=q.content.length));var D=this._getResource(q);L.authorization=this.authorization(q.method,D,q.subres,L);var F=this._getReqUrl(q);S("request %s %s, with headers %j, !!stream: %s",q.method,F,L,!!q.stream);var M=q.timeout||this.options.timeout;return{url:F,params:{agent:this.agent,method:q.method,content:q.content,stream:q.stream,headers:L,timeout:M,writeStream:q.writeStream,customResponse:q.customResponse,ctx:q.ctx||this.ctx}}},$.request=c.default.mark(function q(L){var D,F,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return D=this.createRequest(L),F=void 0,M=void 0,Y.prev=3,Y.next=6,this.urllib.request(D.url,D.params);case 6:F=Y.sent,S("response %s %s, got %s, headers: %j",L.method,D.url,F.status,F.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),M=Y.t0;case 13:if(H=void 0,!F||!L.successStatuses||L.successStatuses.indexOf(F.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(F);case 17:if(H=Y.sent,H.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(H.serverTime)-new Date,Y.next=22,this.request(L);case 22:return Y.abrupt("return",Y.sent);case 23:H.params=L,Y.next=30;break;case 26:if(!M){Y.next=30;break}return Y.next=29,this.requestError(M);case 29:H=Y.sent;case 30:if(!H){Y.next=32;break}throw H;case 32:if(!L.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(F.data);case 35:F.data=Y.sent;case 36:return Y.abrupt("return",F);case 37:case"end":return Y.stop()}},q,this,[[3,10]])}),$._getResource=function(q){var L="/";return q.bucket&&(L+=q.bucket+"/"),q.object&&(L+=q.object),L},$._isIP=function(q){return z._isIP(q)},$._escape=function(q){return U.encodeURIComponent(q).replace(/%2F/g,"/")},$._getReqUrl=function(q){var L={};A(this.options.endpoint).to(L);var D=this._isIP(L.hostname),F=this.options.cname;!q.bucket||F||D||(L.host=q.bucket+"."+L.host);var M="/";q.bucket&&D&&(M+=q.bucket+"/"),q.object&&(M+=this._escape(q.object).replace(/\+/g,"%2B")),L.pathname=M;var H={};if(q.query&&R(H,q.query),q.subres){var Y={};I.string(q.subres)?Y[q.subres]="":I.array(q.subres)?q.subres.forEach(function(ae){Y[ae]=""}):Y=q.subres,R(H,Y)}return L.query=H,b.format(L)},$._getUserAgent=function(){var q=m&&m.browser?"js":"nodejs",L="aliyun-sdk-"+q+"/"+N.version,D=y.description;return!D&&m&&(D="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(L+" "+D)},$._checkUserAgent=function(q){return q.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(q,L){return K.name===q&&K.version.split(".")[0]===L},$.parseXML=function(q){return function(L){_.isBuffer(q)&&(q=q.toString()),h.parseString(q,{explicitRoot:!1,explicitArray:!1},L)}},$.requestError=c.default.mark(function q(L){var D,F,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(D=null,L.data&&L.data.length){Y.next=5;break}L.status===-1||L.status===-2?(D=new Error(L.message),D.name=L.name,D.status=L.status,D.code=L.name):(L.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):L.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+L.status),D.name="UnknowError",D.status=L.status),D.requestId=L.headers["x-oss-request-id"],D.host=""),Y.next=30;break;case 5:return F=String(L.data),S("request response error data: %s",F),M=void 0,Y.prev=8,Y.next=11,this.parseXML(F)||{};case 11:M=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),S(F),Y.t0.message+=` +raw xml: `+F,Y.t0.status=L.status,Y.t0.requestId=L.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:H=M.Message||"unknow request error, status: "+L.status,M.Condition&&(H+=" (condition: "+M.Condition+")"),D=new Error(H),D.name=M.Code?M.Code+"Error":"UnknowError",D.status=L.status,D.code=M.Code,D.requestId=M.RequestId,D.hostId=M.HostId,D.serverTime=M.ServerTime;case 30:return S("generate error %j",D),Y.abrupt("return",D);case 32:case"end":return Y.stop()}},q,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,k,T){(function(m){"use strict";function _(A){return A&&A.__esModule?A:{default:A}}function i(A,g){if(!(this instanceof i))return new i(A,g);f.call(this,g),this.file=A,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=n("babel-runtime/core-js/array/from"),d=_(u),s=n("babel-runtime/regenerator"),e=_(s),a=n("is-type-of"),r=n("util"),c=n("path"),p=n("mime"),l=n("copy-to"),S=T;S.multipartUpload=e.default.mark(function A(g,h,w){var O,R,b,I,y,U,j,N,G;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),w=w||{},!w.checkpoint||!w.checkpoint.uploadId){K.next=6;break}return K.next=5,this._resumeMultipart(w.checkpoint,w);case 5:return K.abrupt("return",K.sent);case 6:return O=102400,w.mime||(a.file(h)?w.mime=p.getType(c.extname(h.name)):a.blob(h)?w.mime=h.type:w.mime=p.getType(c.extname(h))),w.headers=w.headers||{},this._convertMetaToHeaders(w.meta,w.headers),K.next=12,this._getFileSize(h);case 12:if(!((R=K.sent)0&&l(I).to(U),j=this._divideParts(O,R),N=j.length,G=!1,K=e.default.mark(function ae(ne,se){var fe,Q,J;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(ne.isCancel()){ie.next=21;break}return ie.prev=1,fe=j[se-1],Q={stream:ne._createStream(w,fe.start,fe.end),size:fe.end-fe.start},ie.next=6,ne._uploadPart(y,b,se,Q);case 6:if(J=ie.sent,ne.isCancel()||G){ie.next=13;break}if(g.doneParts.push({number:se,etag:J.res.headers.etag}),U.push({number:se,etag:J.res.headers.etag}),!h||!h.progress){ie.next=13;break}return ie.next=13,h.progress(I.length/N,g,J.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),ne.isCancel()){ie.next=21;break}throw ne.cancel(),ie.t0.partNum=se,ie.t0;case 21:case"end":return ie.stop()}},ae,this,[[1,15]])}),te=(0,d.default)(new Array(N),function(ae,ne){return ne+1}),z=U.map(function(ae){return ae.number}),Z=te.filter(function(ae){return z.indexOf(ae)<0}),$=5,q=h.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&q!==1){Y.next=26;break}L=0;case 16:if(!(L0)){Y.next=37;break}throw this.resetCancelFlag(),H=M[0],H.message="Failed to upload some parts with error: "+H.toString()+" part_num: "+H.partNum,H;case 37:if(!this.isCancel()){Y.next=40;break}throw D=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(y,b,U,h);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},A,this)}),a.file=function(A){return typeof File!="undefined"&&A instanceof File},a.blob=function(A){return typeof Blob!="undefined"&&A instanceof Blob},S._getFileSize=e.default.mark(function A(g){var h;return e.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!a.buffer(g)){w.next=4;break}return w.abrupt("return",g.length);case 4:if(!a.blob(g)&&!a.file(g)){w.next=6;break}return w.abrupt("return",g.size);case 6:if(!a.string(g)){w.next=11;break}return w.next=9,this._statFile(g);case 9:return h=w.sent,w.abrupt("return",h.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return w.stop()}},A,this)});var E=n("stream"),f=E.Readable;r.inherits(i,f),i.prototype.readFileAndPush=function(A){if(this.fileBuffer)for(var g=!0;g&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:w,this.start=w,g=this.push(this.fileBuffer.slice(h,w))}},i.prototype._read=function(A){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);A=A||16384;var g=this;this.reader.onload=function(h){g.fileBuffer=new m(new Uint8Array(h.target.result)),g.file=null,g.readFileAndPush(A)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(A)},S._createStream=function(A,g,h){if(a.blob(A)||a.file(A))return new i(A.slice(g,h));throw new Error("_createStream requires File/String.")},S._getPartSize=function(A,g){return g?Math.max(Math.ceil(A/1e4),g):1048576},S._divideParts=function(A,g){for(var h=Math.ceil(A/g),w=[],O=0;O `,w.quiet?O+=` true `:O+=` false `,R=0;R"+e.escape(this._objectName(h[R]))+` -`;return O+="",s("delete multi objects: %s",O),w.subres="delete",b=this._objectRequestParams("POST","",w),b.mime="xml",b.content=O,b.xmlResponse=!0,b.successStatuses=[200],D.next=14,this.request(b);case 14:return I=D.sent,y=I.data,U=y&&y.Deleted||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(N){return N.Key})),D.abrupt("return",{res:I.res,deleted:U});case 19:case"end":return D.stop()}},g,this)}),A.copy=d.default.mark(function g(h,w,O){var R,b,I;return d.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return O=O||{},O.headers=O.headers||{},(0,i.default)(O.headers).forEach(function(U){O.headers["x-oss-copy-source-"+U.toLowerCase()]=O.headers[U]}),O.meta&&(O.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(O.meta,O.headers),w=w[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(w):"/"+encodeURIComponent(w.slice(1)),O.headers["x-oss-copy-source"]=w,R=this._objectRequestParams("PUT",h,O),R.xmlResponse=!0,R.successStatuses=[200,304],y.next=12,this.request(R);case 12:return b=y.sent,I=b.data,I&&(I={etag:I.ETag,lastModified:I.LastModified}),y.abrupt("return",{data:I,res:b.res});case 16:case"end":return y.stop()}},g,this)}),A.putMeta=d.default.mark(function g(h,w,O){return d.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,this.copy(h,h,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return R.abrupt("return",R.sent);case 3:case"end":return R.stop()}},g,this)}),A.list=d.default.mark(function g(h,w){var O,R,b,I,y;return d.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=h,O.xmlResponse=!0,O.successStatuses=[200],U.next=6,this.request(O);case 6:return R=U.sent,b=R.data.Contents,I=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(D){return{name:D.Key,url:I._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),y=R.data.CommonPrefixes||null,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(D){return D.Prefix})),U.abrupt("return",{res:R.res,objects:b,prefixes:y,nextMarker:R.data.NextMarker||null,isTruncated:R.data.IsTruncated==="true"});case 13:case"end":return U.stop()}},g,this)}),A.putACL=d.default.mark(function g(h,w,O){var R,b;return d.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=w,h=this._objectName(h),R=this._objectRequestParams("PUT",h,O),R.successStatuses=[200],I.next=9,this.request(R);case 9:return b=I.sent,I.abrupt("return",{res:b.res});case 11:case"end":return I.stop()}},g,this)}),A.getACL=d.default.mark(function g(h,w){var O,R;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return w=w||{},w.subres="acl",h=this._objectName(h),O=this._objectRequestParams("GET",h,w),O.successStatuses=[200],O.xmlResponse=!0,b.next=8,this.request(O);case 8:return R=b.sent,b.abrupt("return",{acl:R.data.AccessControlList.Grant,owner:{id:R.data.Owner.ID,displayName:R.data.Owner.DisplayName},res:R.res});case 10:case"end":return b.stop()}},g,this)}),A.restore=d.default.mark(function g(h,w){var O,R;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return w=w||{},w.subres="restore",O=this._objectRequestParams("POST",h,w),O.successStatuses=[202],b.next=6,this.request(O);case 6:return R=b.sent,b.abrupt("return",{res:R.res});case 8:case"end":return b.stop()}},g,this)}),A.signatureUrl=function(g,h){h=h||{},g=this._objectName(g),h.method=h.method||"GET";var w=e.timestamp()+(h.expires||1800),O={bucket:this.options.bucket,object:g},R=this._getResource(O);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var b=f._signatureForURL(this.options.accessKeySecret,h,R,w),I=c.parse(this._getReqUrl(O));return I.query={OSSAccessKeyId:this.options.accessKeyId,Expires:w,Signature:b.Signature},p(b.subResource).to(I.query),I.format()},A.getObjectUrl=function(g,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(g))},A._objectUrl=function(g){return this._getReqUrl({bucket:this.options.bucket,object:g})},A.generateObjectUrl=function(g,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var w=c.parse(h),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,h=w.format()}return h+this._escape(this._objectName(g))},A._objectRequestParams=function(g,h,w){if(!this.options.bucket)throw new Error("Please create a bucket first");w=w||{},h=this._objectName(h);var O={object:h,bucket:this.options.bucket,method:g,subres:w&&w.subres,timeout:w&&w.timeout,ctx:w&&w.ctx};return w.headers&&(O.headers={},p(w.headers).to(O.headers)),O},A._objectName=function(g){return g.replace(/^\/+/,"")},A._statFile=function(g){return function(h){a.stat(g,h)}},A._convertMetaToHeaders=function(g,h){g&&(0,i.default)(g).forEach(function(w){h["x-oss-meta-"+w]=g[w]})},A._deleteFileSafe=function(g){return function(h){a.exists(g,function(w){w?a.unlink(g,function(O){O&&s("unlink %j error: %s",g,O),h()}):h()})}}},{"../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,k,T){"use strict";T.version="5.3.1"},{}],6:[function(n,k,T){"use strict";function m(l){return l&&l.__esModule?l:{default:l}}function _(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"}function i(l){if(!l)return!1;var S=l.constructor;return!!S&&(S.name==="GeneratorFunction"||S.displayName==="GeneratorFunction"||_(S.prototype)||_(l.prototype))}function u(l,S){var E=new l(S),f=(0,r.default)(E),A=(0,r.default)((0,e.default)(E));f.concat(A).forEach(function(g){i(E[g])?this[g]=c.wrap(E[g]).bind(E):this[g]=E[g]},this)}function d(l){if(!(this instanceof d))return new d(l);u.call(this,p,l)}var s=n("babel-runtime/core-js/object/get-prototype-of"),e=m(s),a=n("babel-runtime/core-js/object/keys"),r=m(a),c=n("co"),p=n("./client");k.exports=d,d.STS=function l(S){if(!(this instanceof l))return new l(S);u.call(this,p.STS,S)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,k,T){(function(m){"use strict";function _(e){return e&&e.__esModule?e:{default:e}}var i=n("babel-runtime/core-js/object/keys"),u=_(i),d=n("babel-runtime/core-js/json/stringify"),s=_(d);T.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var c=new m((0,s.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=c,a.callback.customValue){var p={};(0,u.default)(a.callback.customValue).forEach(function(l){p["x:"+l]=a.callback.customValue[l]}),e.headers["x-oss-callback-var"]=new m((0,s.default)(p)).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,k,T){"use strict";var m=n("babel-runtime/regenerator"),_=function(s){return s&&s.__esModule?s:{default:s}}(m),i=n("copy-to"),u=n("./callback"),d=T;d.listUploads=_.default.mark(function s(e,a){var r,c,p,l;return _.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return a=a||{},r={},i(a).to(r),r.subres="uploads",c=this._objectRequestParams("GET","",r),c.query=e,c.xmlResponse=!0,c.successStatuses=[200],S.next=10,this.request(c);case 10:return p=S.sent,l=p.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),S.abrupt("return",{res:p.res,uploads:l,bucket:p.data.Bucket,nextKeyMarker:p.data.NextKeyMarker,nextUploadIdMarker:p.data.NextUploadIdMarker,isTruncated:p.data.IsTruncated==="true"});case 15:case"end":return S.stop()}},s,this)}),d.listParts=_.default.mark(function s(e,a,r,c){var p,l,S;return _.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=c||{},p={},i(c).to(p),p.subres={uploadId:a},l=this._objectRequestParams("GET",e,p),l.query=r,l.xmlResponse=!0,l.successStatuses=[200],E.next=10,this.request(l);case 10:return S=E.sent,E.abrupt("return",{res:S.res,uploadId:S.data.UploadId,bucket:S.data.Bucket,name:S.data.Key,partNumberMarker:S.data.PartNumberMarker,nextPartNumberMarker:S.data.NextPartNumberMarker,maxParts:S.data.MaxParts,isTruncated:S.data.IsTruncated,parts:S.data.Part||[]});case 12:case"end":return E.stop()}},s,this)}),d.abortMultipartUpload=_.default.mark(function s(e,a,r){var c,p,l;return _.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return this.cancel(),r=r||{},c={},i(r).to(c),c.subres={uploadId:a},p=this._objectRequestParams("DELETE",e,c),p.successStatuses=[204],S.next=9,this.request(p);case 9:return l=S.sent,S.abrupt("return",{res:l.res});case 11:case"end":return S.stop()}},s,this)}),d.initMultipartUpload=_.default.mark(function s(e,a){var r,c,p;return _.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},r={},i(a).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(a.meta,r.headers),r.subres="uploads",c=this._objectRequestParams("POST",e,r),c.mime=a.mime,c.xmlResponse=!0,c.successStatuses=[200],l.next=12,this.request(c);case 12:return p=l.sent,l.abrupt("return",{res:p.res,bucket:p.data.Bucket,name:p.data.Key,uploadId:p.data.UploadId});case 14:case"end":return l.stop()}},s,this)}),d.uploadPart=_.default.mark(function s(e,a,r,c,p,l,S){var E;return _.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return E={stream:this._createStream(c,p,l),size:l-p},f.next=3,this._uploadPart(e,a,r,E,S);case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},s,this)}),d.completeMultipartUpload=_.default.mark(function s(e,a,r,c){var p,l,S,E,f,A,g,h;return _.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(p=r.concat().sort(function(O,R){return O.number-R.number}).filter(function(O,R,b){return!R||O.number!==b[R-1].number}),l=` +`;return O+="",s("delete multi objects: %s",O),w.subres="delete",b=this._objectRequestParams("POST","",w),b.mime="xml",b.content=O,b.xmlResponse=!0,b.successStatuses=[200],j.next=14,this.request(b);case 14:return I=j.sent,y=I.data,U=y&&y.Deleted||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(N){return N.Key})),j.abrupt("return",{res:I.res,deleted:U});case 19:case"end":return j.stop()}},g,this)}),A.copy=d.default.mark(function g(h,w,O){var R,b,I;return d.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return O=O||{},O.headers=O.headers||{},(0,i.default)(O.headers).forEach(function(U){O.headers["x-oss-copy-source-"+U.toLowerCase()]=O.headers[U]}),O.meta&&(O.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(O.meta,O.headers),w=w[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(w):"/"+encodeURIComponent(w.slice(1)),O.headers["x-oss-copy-source"]=w,R=this._objectRequestParams("PUT",h,O),R.xmlResponse=!0,R.successStatuses=[200,304],y.next=12,this.request(R);case 12:return b=y.sent,I=b.data,I&&(I={etag:I.ETag,lastModified:I.LastModified}),y.abrupt("return",{data:I,res:b.res});case 16:case"end":return y.stop()}},g,this)}),A.putMeta=d.default.mark(function g(h,w,O){return d.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,this.copy(h,h,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return R.abrupt("return",R.sent);case 3:case"end":return R.stop()}},g,this)}),A.list=d.default.mark(function g(h,w){var O,R,b,I,y;return d.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=h,O.xmlResponse=!0,O.successStatuses=[200],U.next=6,this.request(O);case 6:return R=U.sent,b=R.data.Contents,I=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(j){return{name:j.Key,url:I._objectUrl(j.Key),lastModified:j.LastModified,etag:j.ETag,type:j.Type,size:Number(j.Size),storageClass:j.StorageClass,owner:{id:j.Owner.ID,displayName:j.Owner.DisplayName}}})),y=R.data.CommonPrefixes||null,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(j){return j.Prefix})),U.abrupt("return",{res:R.res,objects:b,prefixes:y,nextMarker:R.data.NextMarker||null,isTruncated:R.data.IsTruncated==="true"});case 13:case"end":return U.stop()}},g,this)}),A.putACL=d.default.mark(function g(h,w,O){var R,b;return d.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=w,h=this._objectName(h),R=this._objectRequestParams("PUT",h,O),R.successStatuses=[200],I.next=9,this.request(R);case 9:return b=I.sent,I.abrupt("return",{res:b.res});case 11:case"end":return I.stop()}},g,this)}),A.getACL=d.default.mark(function g(h,w){var O,R;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return w=w||{},w.subres="acl",h=this._objectName(h),O=this._objectRequestParams("GET",h,w),O.successStatuses=[200],O.xmlResponse=!0,b.next=8,this.request(O);case 8:return R=b.sent,b.abrupt("return",{acl:R.data.AccessControlList.Grant,owner:{id:R.data.Owner.ID,displayName:R.data.Owner.DisplayName},res:R.res});case 10:case"end":return b.stop()}},g,this)}),A.restore=d.default.mark(function g(h,w){var O,R;return d.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return w=w||{},w.subres="restore",O=this._objectRequestParams("POST",h,w),O.successStatuses=[202],b.next=6,this.request(O);case 6:return R=b.sent,b.abrupt("return",{res:R.res});case 8:case"end":return b.stop()}},g,this)}),A.signatureUrl=function(g,h){h=h||{},g=this._objectName(g),h.method=h.method||"GET";var w=e.timestamp()+(h.expires||1800),O={bucket:this.options.bucket,object:g},R=this._getResource(O);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var b=f._signatureForURL(this.options.accessKeySecret,h,R,w),I=c.parse(this._getReqUrl(O));return I.query={OSSAccessKeyId:this.options.accessKeyId,Expires:w,Signature:b.Signature},p(b.subResource).to(I.query),I.format()},A.getObjectUrl=function(g,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(g))},A._objectUrl=function(g){return this._getReqUrl({bucket:this.options.bucket,object:g})},A.generateObjectUrl=function(g,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var w=c.parse(h),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,h=w.format()}return h+this._escape(this._objectName(g))},A._objectRequestParams=function(g,h,w){if(!this.options.bucket)throw new Error("Please create a bucket first");w=w||{},h=this._objectName(h);var O={object:h,bucket:this.options.bucket,method:g,subres:w&&w.subres,timeout:w&&w.timeout,ctx:w&&w.ctx};return w.headers&&(O.headers={},p(w.headers).to(O.headers)),O},A._objectName=function(g){return g.replace(/^\/+/,"")},A._statFile=function(g){return function(h){a.stat(g,h)}},A._convertMetaToHeaders=function(g,h){g&&(0,i.default)(g).forEach(function(w){h["x-oss-meta-"+w]=g[w]})},A._deleteFileSafe=function(g){return function(h){a.exists(g,function(w){w?a.unlink(g,function(O){O&&s("unlink %j error: %s",g,O),h()}):h()})}}},{"../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,k,T){"use strict";T.version="5.3.1"},{}],6:[function(n,k,T){"use strict";function m(l){return l&&l.__esModule?l:{default:l}}function _(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"}function i(l){if(!l)return!1;var S=l.constructor;return!!S&&(S.name==="GeneratorFunction"||S.displayName==="GeneratorFunction"||_(S.prototype)||_(l.prototype))}function u(l,S){var E=new l(S),f=(0,r.default)(E),A=(0,r.default)((0,e.default)(E));f.concat(A).forEach(function(g){i(E[g])?this[g]=c.wrap(E[g]).bind(E):this[g]=E[g]},this)}function d(l){if(!(this instanceof d))return new d(l);u.call(this,p,l)}var s=n("babel-runtime/core-js/object/get-prototype-of"),e=m(s),a=n("babel-runtime/core-js/object/keys"),r=m(a),c=n("co"),p=n("./client");k.exports=d,d.STS=function l(S){if(!(this instanceof l))return new l(S);u.call(this,p.STS,S)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,k,T){(function(m){"use strict";function _(e){return e&&e.__esModule?e:{default:e}}var i=n("babel-runtime/core-js/object/keys"),u=_(i),d=n("babel-runtime/core-js/json/stringify"),s=_(d);T.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var c=new m((0,s.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=c,a.callback.customValue){var p={};(0,u.default)(a.callback.customValue).forEach(function(l){p["x:"+l]=a.callback.customValue[l]}),e.headers["x-oss-callback-var"]=new m((0,s.default)(p)).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,k,T){"use strict";var m=n("babel-runtime/regenerator"),_=function(s){return s&&s.__esModule?s:{default:s}}(m),i=n("copy-to"),u=n("./callback"),d=T;d.listUploads=_.default.mark(function s(e,a){var r,c,p,l;return _.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return a=a||{},r={},i(a).to(r),r.subres="uploads",c=this._objectRequestParams("GET","",r),c.query=e,c.xmlResponse=!0,c.successStatuses=[200],S.next=10,this.request(c);case 10:return p=S.sent,l=p.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),S.abrupt("return",{res:p.res,uploads:l,bucket:p.data.Bucket,nextKeyMarker:p.data.NextKeyMarker,nextUploadIdMarker:p.data.NextUploadIdMarker,isTruncated:p.data.IsTruncated==="true"});case 15:case"end":return S.stop()}},s,this)}),d.listParts=_.default.mark(function s(e,a,r,c){var p,l,S;return _.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=c||{},p={},i(c).to(p),p.subres={uploadId:a},l=this._objectRequestParams("GET",e,p),l.query=r,l.xmlResponse=!0,l.successStatuses=[200],E.next=10,this.request(l);case 10:return S=E.sent,E.abrupt("return",{res:S.res,uploadId:S.data.UploadId,bucket:S.data.Bucket,name:S.data.Key,partNumberMarker:S.data.PartNumberMarker,nextPartNumberMarker:S.data.NextPartNumberMarker,maxParts:S.data.MaxParts,isTruncated:S.data.IsTruncated,parts:S.data.Part||[]});case 12:case"end":return E.stop()}},s,this)}),d.abortMultipartUpload=_.default.mark(function s(e,a,r){var c,p,l;return _.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return this.cancel(),r=r||{},c={},i(r).to(c),c.subres={uploadId:a},p=this._objectRequestParams("DELETE",e,c),p.successStatuses=[204],S.next=9,this.request(p);case 9:return l=S.sent,S.abrupt("return",{res:l.res});case 11:case"end":return S.stop()}},s,this)}),d.initMultipartUpload=_.default.mark(function s(e,a){var r,c,p;return _.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},r={},i(a).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(a.meta,r.headers),r.subres="uploads",c=this._objectRequestParams("POST",e,r),c.mime=a.mime,c.xmlResponse=!0,c.successStatuses=[200],l.next=12,this.request(c);case 12:return p=l.sent,l.abrupt("return",{res:p.res,bucket:p.data.Bucket,name:p.data.Key,uploadId:p.data.UploadId});case 14:case"end":return l.stop()}},s,this)}),d.uploadPart=_.default.mark(function s(e,a,r,c,p,l,S){var E;return _.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return E={stream:this._createStream(c,p,l),size:l-p},f.next=3,this._uploadPart(e,a,r,E,S);case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},s,this)}),d.completeMultipartUpload=_.default.mark(function s(e,a,r,c){var p,l,S,E,f,A,g,h;return _.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(p=r.concat().sort(function(O,R){return O.number-R.number}).filter(function(O,R,b){return!R||O.number!==b[R-1].number}),l=` `,S=0;S `,l+=""+E.number+` `,l+=""+E.etag+` `,l+=` `;return l+="",c=c||{},f={},i(c).to(f),f.subres={uploadId:a},A=this._objectRequestParams("POST",e,f),u.encodeCallback(A,f),A.mime="xml",A.content=l,A.headers&&A.headers["x-oss-callback"]||(A.xmlResponse=!0),A.successStatuses=[200],w.next=16,this.request(A);case 16:return g=w.sent,h={res:g.res,bucket:A.bucket,name:e,etag:g.res.headers.etag},A.headers&&A.headers["x-oss-callback"]&&(h.data=JSON.parse(g.data.toString())),w.abrupt("return",h);case 20:case"end":return w.stop()}},s,this)}),d._uploadPart=_.default.mark(function s(e,a,r,c,p){var l,S,E;return _.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return p=p||{},l={},i(p).to(l),l.headers={"Content-Length":c.size},l.subres={partNumber:r,uploadId:a},S=this._objectRequestParams("PUT",e,l),S.mime=l.mime,S.stream=c.stream,S.successStatuses=[200],f.next=11,this.request(S);case 11:return E=f.sent,c.stream=null,S.stream=null,f.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return f.stop()}},s,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,k,T){(function(m){"use strict";function _(r){return r&&r.__esModule?r:{default:r}}var i=n("babel-runtime/core-js/json/stringify"),u=_(i),d=n("babel-runtime/core-js/object/keys"),s=_(d),e=n("./../../shims/crypto/crypto.js"),a=n("is-type-of");T.buildCanonicalizedResource=function(r,c){var p=""+r,l="?";if(a.string(c)&&c.trim()!=="")p+=l+c;else if(a.array(c))c.sort(),p+=l+c.join("&");else if(c){var S=function(A,g){return A[0]>g[0]?1:A[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var A=E.indexOf("=");return A===-1&&(A=f),[A,A===f?0:4-A%4]}function _(E){var f=m(E),A=f[0],g=f[1];return 3*(A+g)/4-g}function i(E,f,A){return 3*(f+A)/4-A}function u(E){for(var f,A=m(E),g=A[0],h=A[1],w=new c(i(E,g,h)),O=0,R=h>0?g-4:g,b=0;b>16&255,w[O++]=f>>8&255,w[O++]=255&f;return h===2&&(f=r[E.charCodeAt(b)]<<2|r[E.charCodeAt(b+1)]>>4,w[O++]=255&f),h===1&&(f=r[E.charCodeAt(b)]<<10|r[E.charCodeAt(b+1)]<<4|r[E.charCodeAt(b+2)]>>2,w[O++]=f>>8&255,w[O++]=255&f),w}function d(E){return a[E>>18&63]+a[E>>12&63]+a[E>>6&63]+a[63&E]}function s(E,f,A){for(var g,h=[],w=f;wO?O:w+16383));return g===1?(f=E[A-1],h.push(a[f>>2]+a[f<<4&63]+"==")):g===2&&(f=(E[A-2]<<8)+E[A-1],h.push(a[f>>10]+a[f>>4&63]+a[f<<2&63]+"=")),h.join("")}T.byteLength=_,T.toByteArray=u,T.fromByteArray=e;for(var a=[],r=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,S=p.length;l1&&L[1]||""}function p(q){var L=r.match(q);return L&&L.length>1&&L[2]||""}var l,S=c(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),f=!E&&/android/i.test(r),A=/nexus\s*[0-6]\s*/i.test(r),g=!A&&/nexus\s*[0-9]+/i.test(r),h=/CrOS/.test(r),w=/silk/i.test(r),O=/sailfish/i.test(r),R=/tizen/i.test(r),b=/(web|hpw)os/i.test(r),I=/windows phone/i.test(r),y=(/SamsungBrowser/i.test(r),!I&&/windows/i.test(r)),U=!S&&!w&&/macintosh/i.test(r),D=!f&&!O&&!R&&!b&&/linux/i.test(r),N=p(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=c(/version\/(\d+(\.\d+)?)/i),K=/tablet/i.test(r)&&!/tablet pc/i.test(r),te=!K&&/[^-]mobi/i.test(r),z=/xbox/i.test(r);/opera/i.test(r)?l={name:"Opera",opera:e,version:G||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?l={name:"Opera",opera:e,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(r)?l={name:"Samsung Internet for Android",samsungBrowser:e,version:G||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?l={name:"Opera Coast",coast:e,version:G||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?l={name:"Yandex Browser",yandexbrowser:e,version:G||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?l={name:"UC Browser",ucbrowser:e,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?l={name:"Maxthon",maxthon:e,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?l={name:"Epiphany",epiphany:e,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?l={name:"Puffin",puffin:e,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?l={name:"Sleipnir",sleipnir:e,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?l={name:"K-Meleon",kMeleon:e,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:I?(l={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},N?(l.msedge=e,l.version=N):(l.msie=e,l.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?l={name:"Internet Explorer",msie:e,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?l={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?l={name:"Microsoft Edge",msedge:e,version:N}:/vivaldi/i.test(r)?l={name:"Vivaldi",vivaldi:e,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||G}:O?l={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?l={name:"SeaMonkey",seamonkey:e,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(l={name:"Firefox",firefox:e,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(l.firefoxos=e,l.osname="Firefox OS")):w?l={name:"Amazon Silk",silk:e,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?l={name:"PhantomJS",phantom:e,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?l={name:"SlimerJS",slimer:e,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?l={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:G||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(l={name:"WebOS",osname:"WebOS",webos:e,version:G||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(l.touchpad=e)):/bada/i.test(r)?l={name:"Bada",osname:"Bada",bada:e,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:R?l={name:"Tizen",osname:"Tizen",tizen:e,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(r)?l={name:"QupZilla",qupzilla:e,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(r)?l={name:"Chromium",chromium:e,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(r)?l={name:"Chrome",chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?l={name:"Android",version:G}:/safari|applewebkit/i.test(r)?(l={name:"Safari",safari:e},G&&(l.version=G)):S?(l={name:S=="iphone"?"iPhone":S=="ipad"?"iPad":"iPod"},G&&(l.version=G)):l=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:c(/googlebot\/(\d+(\.\d+))/i)||G}:{name:c(/^(.*)\/(.*) /),version:p(/^(.*)\/(.*) /)},!l.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(l.name=l.name||"Blink",l.blink=e):(l.name=l.name||"Webkit",l.webkit=e),!l.version&&G&&(l.version=G)):!l.opera&&/gecko\//i.test(r)&&(l.name=l.name||"Gecko",l.gecko=e,l.version=l.version||c(/gecko\/(\d+(\.\d+)?)/i)),l.windowsphone||!f&&!l.silk?!l.windowsphone&&S?(l[S]=e,l.ios=e,l.osname="iOS"):U?(l.mac=e,l.osname="macOS"):z?(l.xbox=e,l.osname="Xbox"):y?(l.windows=e,l.osname="Windows"):D&&(l.linux=e,l.osname="Linux"):(l.android=e,l.osname="Android");var Z="";l.windows?Z=function(q){switch(q){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}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):l.windowsphone?Z=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):l.mac?(Z=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),Z=Z.replace(/[_\s]/g,".")):S?(Z=c(/os (\d+([_\s]\d+)*) like mac os x/i),Z=Z.replace(/[_\s]/g,".")):f?Z=c(/android[ \/-](\d+(\.\d+)*)/i):l.webos?Z=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):l.blackberry?Z=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):l.bada?Z=c(/bada\/(\d+(\.\d+)*)/i):l.tizen&&(Z=c(/tizen[\/\s](\d+(\.\d+)*)/i)),Z&&(l.osversion=Z);var $=!l.windows&&Z.split(".")[0];return K||g||S=="ipad"||f&&($==3||$>=4&&!te)||l.silk?l.tablet=e:(te||S=="iphone"||S=="ipod"||f||A||l.blackberry||l.webos||l.bada)&&(l.mobile=e),l.msedge||l.msie&&l.version>=10||l.yandexbrowser&&l.version>=15||l.vivaldi&&l.version>=1||l.chrome&&l.version>=20||l.samsungBrowser&&l.version>=4||l.firefox&&l.version>=20||l.safari&&l.version>=6||l.opera&&l.version>=10||l.ios&&l.osversion&&l.osversion.split(".")[0]>=6||l.blackberry&&l.version>=10.1||l.chromium&&l.version>=20?l.a=e:l.msie&&l.version<10||l.chrome&&l.version<20||l.firefox&&l.version<20||l.safari&&l.version<6||l.opera&&l.version<10||l.ios&&l.osversion&&l.osversion.split(".")[0]<6||l.chromium&&l.version<20?l.c=e:l.x=e,l}function _(r){return r.split(".").length}function i(r,c){var p,l=[];if(Array.prototype.map)return Array.prototype.map.call(r,c);for(p=0;p=0;){if(p[0][c]>p[1][c])return 1;if(p[0][c]!==p[1][c])return-1;if(c===0)return 0}}function d(r,c,p){var l=a;typeof c=="string"&&(p=c,c=void 0),c===void 0&&(c=!1),p&&(l=m(p));var S=""+l.version;for(var E in r)if(r.hasOwnProperty(E)&&l[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return u([S,r[E]])<0}return c}function s(r,c,p){return!d(r,c,p)}var e=!0,a=m(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(r){for(var c=0;c=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&l<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(a);var p=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,p),p-=this.charReceived),r+=a.toString(this.encoding,0,p);var p=r.length-1,l=r.charCodeAt(p);if(l>=55296&&l<=56319){var S=this.surrogateSize;return this.charLength+=S,this.charReceived+=S,this.charBuffer.copy(this.charBuffer,S,0,S),a.copy(this.charBuffer,0,0,S),r.substring(0,p)}return r},e.prototype.detectIncompleteChar=function(a){for(var r=a.length>=3?3:a.length;r>0;r--){var c=a[a.length-r];if(r==1&&c>>5==6){this.charLength=2;break}if(r<=2&&c>>4==14){this.charLength=3;break}if(r<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(a){var r="";if(a&&a.length&&(r=this.write(a)),this.charReceived){var c=this.charReceived,p=this.charBuffer,l=this.encoding;r+=p.slice(0,c).toString(l)}return r}},{buffer:38}],38:[function(n,k,T){(function(m){"use strict";function _(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,o){if(_()=_())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),u.alloc(+t)}function f(t,o){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 v=!1;;)switch(o){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":case void 0:return se(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return J(t).length;default:if(v)return se(t).length;o=(""+o).toLowerCase(),v=!0}}function A(t,o,C){var v=!1;if((o===void 0||o<0)&&(o=0),o>this.length)return"";if((C===void 0||C>this.length)&&(C=this.length),C<=0)return"";if(C>>>=0,o>>>=0,C<=o)return"";for(t||(t="utf8");;)switch(t){case"hex":return z(this,o,C);case"utf8":case"utf-8":return N(this,o,C);case"ascii":return K(this,o,C);case"latin1":case"binary":return te(this,o,C);case"base64":return D(this,o,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,o,C);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}function g(t,o,C){var v=t[o];t[o]=t[C],t[C]=v}function h(t,o,C,v,x){if(t.length===0)return-1;if(typeof C=="string"?(v=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,isNaN(C)&&(C=x?0:t.length-1),C<0&&(C=t.length+C),C>=t.length){if(x)return-1;C=t.length-1}else if(C<0){if(!x)return-1;C=0}if(typeof o=="string"&&(o=u.from(o,v)),u.isBuffer(o))return o.length===0?-1:w(t,o,C,v,x);if(typeof o=="number")return o&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(t,o,C):Uint8Array.prototype.lastIndexOf.call(t,o,C):w(t,[o],C,v,x);throw new TypeError("val must be string, number or Buffer")}function w(t,o,C,v,x){function X(ue,Te){return V===1?ue[Te]:ue.readUInt16BE(Te*V)}var V=1,pe=t.length,le=o.length;if(v!==void 0&&((v=String(v).toLowerCase())==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||o.length<2)return-1;V=2,pe/=2,le/=2,C/=2}var me;if(x){var ge=-1;for(me=C;mepe&&(C=pe-le),me=C;me>=0;me--){for(var Se=!0,Pe=0;Pex&&(v=x):v=x;var X=o.length;if(X%2!=0)throw new TypeError("Invalid hex string");v>X/2&&(v=X/2);for(var V=0;V239?4:X>223?3:X>191?2:1;if(x+pe<=C){var le,me,ge,Se;switch(pe){case 1:X<128&&(V=X);break;case 2:le=t[x+1],(192&le)==128&&(Se=(31&X)<<6|63&le)>127&&(V=Se);break;case 3:le=t[x+1],me=t[x+2],(192&le)==128&&(192&me)==128&&(Se=(15&X)<<12|(63&le)<<6|63&me)>2047&&(Se<55296||Se>57343)&&(V=Se);break;case 4:le=t[x+1],me=t[x+2],ge=t[x+3],(192&le)==128&&(192&me)==128&&(192&ge)==128&&(Se=(15&X)<<18|(63&le)<<12|(63&me)<<6|63&ge)>65535&&Se<1114112&&(V=Se)}}V===null?(V=65533,pe=1):V>65535&&(V-=65536,v.push(V>>>10&1023|55296),V=56320|1023&V),v.push(V),x+=pe}return G(v)}function G(t){var o=t.length;if(o<=ce)return String.fromCharCode.apply(String,t);for(var C="",v=0;vv)&&(C=v);for(var x="",X=o;XC)throw new RangeError("Trying to access beyond buffer length")}function q(t,o,C,v,x,X){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>x||ot.length)throw new RangeError("Index out of range")}function L(t,o,C,v){o<0&&(o=65535+o+1);for(var x=0,X=Math.min(t.length-C,2);x>>8*(v?x:1-x)}function j(t,o,C,v){o<0&&(o=4294967295+o+1);for(var x=0,X=Math.min(t.length-C,4);x>>8*(v?x:3-x)&255}function F(t,o,C,v,x,X){if(C+v>t.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function M(t,o,C,v,x){return x||F(t,o,C,4,34028234663852886e22,-34028234663852886e22),re.write(t,o,C,v,23,4),C+4}function H(t,o,C,v,x){return x||F(t,o,C,8,17976931348623157e292,-17976931348623157e292),re.write(t,o,C,v,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 ne(t){return t<16?"0"+t.toString(16):t.toString(16)}function se(t,o){o=o||1/0;for(var C,v=t.length,x=null,X=[],V=0;V55295&&C<57344){if(!x){if(C>56319){(o-=3)>-1&&X.push(239,191,189);continue}if(V+1===v){(o-=3)>-1&&X.push(239,191,189);continue}x=C;continue}if(C<56320){(o-=3)>-1&&X.push(239,191,189),x=C;continue}C=65536+(x-55296<<10|C-56320)}else x&&(o-=3)>-1&&X.push(239,191,189);if(x=null,C<128){if((o-=1)<0)break;X.push(C)}else if(C<2048){if((o-=2)<0)break;X.push(C>>6|192,63&C|128)}else if(C<65536){if((o-=3)<0)break;X.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((o-=4)<0)break;X.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return X}function fe(t){for(var o=[],C=0;C>8,x=C%256,X.push(x),X.push(v);return X}function J(t){return B.toByteArray(Y(t))}function ie(t,o,C,v){for(var x=0;x=o.length||x>=t.length);++x)o[x+C]=t[x];return x}function W(t){return t!==t}var B=n("base64-js"),re=n("ieee754"),ee=n("isarray");T.Buffer=u,T.SlowBuffer=E,T.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(o){return!1}}(),T.kMaxLength=_(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,o,C){return d(null,t,o,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,o,C){return e(null,t,o,C)},u.allocUnsafe=function(t){return a(null,t)},u.allocUnsafeSlow=function(t){return a(null,t)},u.isBuffer=function(t){return!(t==null||!t._isBuffer)},u.compare=function(t,o){if(!u.isBuffer(t)||!u.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(t===o)return 0;for(var C=t.length,v=o.length,x=0,X=Math.min(C,v);x0&&(t=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(t+=" ... ")),""},u.prototype.compare=function(t,o,C,v,x){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(o===void 0&&(o=0),C===void 0&&(C=t?t.length:0),v===void 0&&(v=0),x===void 0&&(x=this.length),o<0||C>t.length||v<0||x>this.length)throw new RangeError("out of range index");if(v>=x&&o>=C)return 0;if(v>=x)return-1;if(o>=C)return 1;if(o>>>=0,C>>>=0,v>>>=0,x>>>=0,this===t)return 0;for(var X=x-v,V=C-o,pe=Math.min(X,V),le=this.slice(v,x),me=t.slice(o,C),ge=0;gex)&&(C=x),t.length>0&&(C<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var X=!1;;)switch(v){case"hex":return O(this,t,o,C);case"utf8":case"utf-8":return R(this,t,o,C);case"ascii":return b(this,t,o,C);case"latin1":case"binary":return I(this,t,o,C);case"base64":return y(this,t,o,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,o,C);default:if(X)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),X=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ce=4096;u.prototype.slice=function(t,o){var C=this.length;t=~~t,o=o===void 0?C:~~o,t<0?(t+=C)<0&&(t=0):t>C&&(t=C),o<0?(o+=C)<0&&(o=0):o>C&&(o=C),o0&&(x*=256);)v+=this[t+--o]*x;return v},u.prototype.readUInt8=function(t,o){return o||$(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,o){return o||$(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,o){return o||$(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,o){return o||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,o){return o||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,o,C){t|=0,o|=0,C||$(t,o,this.length);for(var v=this[t],x=1,X=0;++X=x&&(v-=Math.pow(2,8*o)),v},u.prototype.readIntBE=function(t,o,C){t|=0,o|=0,C||$(t,o,this.length);for(var v=o,x=1,X=this[t+--v];v>0&&(x*=256);)X+=this[t+--v]*x;return x*=128,X>=x&&(X-=Math.pow(2,8*o)),X},u.prototype.readInt8=function(t,o){return o||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,o){o||$(t,2,this.length);var C=this[t]|this[t+1]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt16BE=function(t,o){o||$(t,2,this.length);var C=this[t+1]|this[t]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt32LE=function(t,o){return o||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,o){return o||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,o){return o||$(t,4,this.length),re.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,o){return o||$(t,4,this.length),re.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,o){return o||$(t,8,this.length),re.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,o){return o||$(t,8,this.length),re.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,o,C,v){(t=+t,o|=0,C|=0,!v)&&q(this,t,o,C,Math.pow(2,8*C)-1,0);var x=1,X=0;for(this[o]=255&t;++X=0&&(X*=256);)this[o+x]=t/X&255;return o+C},u.prototype.writeUInt8=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[o]=255&t,o+1},u.prototype.writeUInt16LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8):L(this,t,o,!0),o+2},u.prototype.writeUInt16BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=255&t):L(this,t,o,!1),o+2},u.prototype.writeUInt32LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[o+3]=t>>>24,this[o+2]=t>>>16,this[o+1]=t>>>8,this[o]=255&t):j(this,t,o,!0),o+4},u.prototype.writeUInt32BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=255&t):j(this,t,o,!1),o+4},u.prototype.writeIntLE=function(t,o,C,v){if(t=+t,o|=0,!v){var x=Math.pow(2,8*C-1);q(this,t,o,C,x-1,-x)}var X=0,V=1,pe=0;for(this[o]=255&t;++X>0)-pe&255;return o+C},u.prototype.writeIntBE=function(t,o,C,v){if(t=+t,o|=0,!v){var x=Math.pow(2,8*C-1);q(this,t,o,C,x-1,-x)}var X=C-1,V=1,pe=0;for(this[o+X]=255&t;--X>=0&&(V*=256);)t<0&&pe===0&&this[o+X+1]!==0&&(pe=1),this[o+X]=(t/V>>0)-pe&255;return o+C},u.prototype.writeInt8=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[o]=255&t,o+1},u.prototype.writeInt16LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8):L(this,t,o,!0),o+2},u.prototype.writeInt16BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=255&t):L(this,t,o,!1),o+2},u.prototype.writeInt32LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8,this[o+2]=t>>>16,this[o+3]=t>>>24):j(this,t,o,!0),o+4},u.prototype.writeInt32BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=255&t):j(this,t,o,!1),o+4},u.prototype.writeFloatLE=function(t,o,C){return M(this,t,o,!0,C)},u.prototype.writeFloatBE=function(t,o,C){return M(this,t,o,!1,C)},u.prototype.writeDoubleLE=function(t,o,C){return H(this,t,o,!0,C)},u.prototype.writeDoubleBE=function(t,o,C){return H(this,t,o,!1,C)},u.prototype.copy=function(t,o,C,v){if(C||(C=0),v||v===0||(v=this.length),o>=t.length&&(o=t.length),o||(o=0),v>0&&v=this.length)throw new RangeError("sourceStart out of bounds");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-o=0;--x)t[x+o]=this[x+C];else if(X<1e3||!u.TYPED_ARRAY_SUPPORT)for(x=0;x>>=0,C=C===void 0?this.length:C>>>0,t||(t=0);var X;if(typeof t=="number")for(X=o;X>>1;s(u[r])2&&(A=c.call(arguments,1)),S(A)})})}function u(p){return Promise.all(p.map(_,this))}function d(p){for(var l=new p.constructor,S=Object.keys(p),E=[],f=0;fp;)if((a=r[p++])!=a)return!0}else for(;c>p;p++)if((u||p in r)&&r[p]===s)return u||p||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,k,T){var m=n("./_cof"),_=n("./_wks")("toStringTag"),i=m(function(){return arguments}())=="Arguments",u=function(s,e){try{return s[e]}catch(a){}};k.exports=function(d){var s,e,a;return d===void 0?"Undefined":d===null?"Null":typeof(e=u(s=Object(d),_))=="string"?e:i?m(s):(a=m(s))=="Object"&&typeof s.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(n,k,T){var m={}.toString;k.exports=function(_){return m.call(_).slice(8,-1)}},{}],65:[function(n,k,T){var m=k.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(n,k,T){"use strict";var m=n("./_object-dp"),_=n("./_property-desc");k.exports=function(i,u,d){u in i?m.f(i,u,_(0,d)):i[u]=d}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,k,T){var m=n("./_a-function");k.exports=function(_,i,u){if(m(_),i===void 0)return _;switch(u){case 1:return function(d){return _.call(i,d)};case 2:return function(d,s){return _.call(i,d,s)};case 3:return function(d,s,e){return _.call(i,d,s,e)}}return function(){return _.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,k,T){k.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(n,k,T){k.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,k,T){var m=n("./_is-object"),_=n("./_global").document,i=m(_)&&m(_.createElement);k.exports=function(u){return i?_.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,k,T){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,k,T){var m=n("./_object-keys"),_=n("./_object-gops"),i=n("./_object-pie");k.exports=function(u){var d=m(u),s=_.f;if(s)for(var e,a=s(u),r=i.f,c=0;a.length>c;)r.call(u,e=a[c++])&&d.push(e);return d}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,k,T){var m=n("./_global"),_=n("./_core"),i=n("./_ctx"),u=n("./_hide"),d=n("./_has"),s=function e(a,r,c){var p,l,S,E=a&e.F,f=a&e.G,A=a&e.S,g=a&e.P,h=a&e.B,w=a&e.W,O=f?_:_[r]||(_[r]={}),R=O.prototype,b=f?m:A?m[r]:(m[r]||{}).prototype;f&&(c=r);for(p in c)(l=!E&&b&&b[p]!==void 0)&&d(O,p)||(S=l?b[p]:c[p],O[p]=f&&typeof b[p]!="function"?c[p]:h&&l?i(S,m):w&&b[p]==S?function(I){var y=function(D,N,G){if(this instanceof I){switch(arguments.length){case 0:return new I;case 1:return new I(D);case 2:return new I(D,N)}return new I(D,N,G)}return I.apply(this,arguments)};return y.prototype=I.prototype,y}(S):g&&typeof S=="function"?i(Function.call,S):S,g&&((O.virtual||(O.virtual={}))[p]=S,a&e.R&&R&&!R[p]&&u(R,p,S)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,k.exports=s},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,k,T){k.exports=function(m){try{return!!m()}catch(_){return!0}}},{}],75:[function(n,k,T){var m=n("./_ctx"),_=n("./_iter-call"),i=n("./_is-array-iter"),u=n("./_an-object"),d=n("./_to-length"),s=n("./core.get-iterator-method"),e={},a={},T=k.exports=function(r,c,p,l,S){var E,f,A,g,h=S?function(){return r}:s(r),w=m(p,l,c?2:1),O=0;if(typeof h!="function")throw TypeError(r+" is not iterable!");if(i(h)){for(E=d(r.length);E>O;O++)if((g=c?w(u(f=r[O])[0],f[1]):w(r[O]))===e||g===a)return g}else for(A=h.call(r);!(f=A.next()).done;)if((g=_(A,w,f.value,c))===e||g===a)return g};T.BREAK=e,T.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,k,T){var m=k.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,k,T){var m={}.hasOwnProperty;k.exports=function(_,i){return m.call(_,i)}},{}],78:[function(n,k,T){var m=n("./_object-dp"),_=n("./_property-desc");k.exports=n("./_descriptors")?function(i,u,d){return m.f(i,u,_(1,d))}:function(i,u,d){return i[u]=d,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,k,T){var m=n("./_global").document;k.exports=m&&m.documentElement},{"./_global":76}],80:[function(n,k,T){k.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,k,T){k.exports=function(m,_,i){var u=i===void 0;switch(_.length){case 0:return u?m():m.call(i);case 1:return u?m(_[0]):m.call(i,_[0]);case 2:return u?m(_[0],_[1]):m.call(i,_[0],_[1]);case 3:return u?m(_[0],_[1],_[2]):m.call(i,_[0],_[1],_[2]);case 4:return u?m(_[0],_[1],_[2],_[3]):m.call(i,_[0],_[1],_[2],_[3])}return m.apply(i,_)}},{}],82:[function(n,k,T){var m=n("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(_){return m(_)=="String"?_.split(""):Object(_)}},{"./_cof":64}],83:[function(n,k,T){var m=n("./_iterators"),_=n("./_wks")("iterator"),i=Array.prototype;k.exports=function(u){return u!==void 0&&(m.Array===u||i[_]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(n,k,T){var m=n("./_cof");k.exports=Array.isArray||function(_){return m(_)=="Array"}},{"./_cof":64}],85:[function(n,k,T){k.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(n,k,T){var m=n("./_an-object");k.exports=function(_,i,u,d){try{return d?i(m(u)[0],u[1]):i(u)}catch(e){var s=_.return;throw s!==void 0&&m(s.call(_)),e}}},{"./_an-object":61}],87:[function(n,k,T){"use strict";var m=n("./_object-create"),_=n("./_property-desc"),i=n("./_set-to-string-tag"),u={};n("./_hide")(u,n("./_wks")("iterator"),function(){return this}),k.exports=function(d,s,e){d.prototype=m(u,{next:_(1,e)}),i(d,s+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,k,T){"use strict";var m=n("./_library"),_=n("./_export"),i=n("./_redefine"),u=n("./_hide"),d=n("./_iterators"),s=n("./_iter-create"),e=n("./_set-to-string-tag"),a=n("./_object-gpo"),r=n("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),p=function(){return this};k.exports=function(l,S,E,f,A,g,h){s(E,S,f);var w,O,R,b=function(Z){if(!c&&Z in D)return D[Z];switch(Z){case"keys":case"values":return function(){return new E(this,Z)}}return function(){return new E(this,Z)}},I=S+" Iterator",y=A=="values",U=!1,D=l.prototype,N=D[r]||D["@@iterator"]||A&&D[A],G=N||b(A),K=A?y?b("entries"):G:void 0,te=S=="Array"&&D.entries||N;if(te&&(R=a(te.call(new l)))!==Object.prototype&&R.next&&(e(R,I,!0),m||typeof R[r]=="function"||u(R,r,p)),y&&N&&N.name!=="values"&&(U=!0,G=function(){return N.call(this)}),m&&!h||!c&&!U&&D[r]||u(D,r,G),d[S]=G,d[I]=p,A)if(w={values:y?G:b("values"),keys:g?G:b("keys"),entries:K},h)for(O in w)O in D||i(D,O,w[O]);else _(_.P+_.F*(c||U),S,w);return w}},{"./_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,k,T){var m=n("./_wks")("iterator"),_=!1;try{var i=[7][m]();i.return=function(){_=!0},Array.from(i,function(){throw 2})}catch(u){}k.exports=function(u,d){if(!d&&!_)return!1;var s=!1;try{var e=[7],a=e[m]();a.next=function(){return{done:s=!0}},e[m]=function(){return a},u(e)}catch(r){}return s}},{"./_wks":131}],90:[function(n,k,T){k.exports=function(m,_){return{value:_,done:!!m}}},{}],91:[function(n,k,T){k.exports={}},{}],92:[function(n,k,T){k.exports=!0},{}],93:[function(n,k,T){var m=n("./_uid")("meta"),_=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({}))}),a=function(E){u(E,m,{value:{i:"O"+ ++d,w:{}}})},r=function(E,f){if(!_(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!i(E,m)){if(!s(E))return"F";if(!f)return"E";a(E)}return E[m].i},c=function(E,f){if(!i(E,m)){if(!s(E))return!0;if(!f)return!1;a(E)}return E[m].w},p=function(E){return e&&l.NEED&&s(E)&&!i(E,m)&&a(E),E},l=k.exports={KEY:m,NEED:!1,fastKey:r,getWeak:c,onFreeze:p}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,k,T){var m=n("./_global"),_=n("./_task").set,i=m.MutationObserver||m.WebKitMutationObserver,u=m.process,d=m.Promise,s=n("./_cof")(u)=="process";k.exports=function(){var e,a,r,c=function(){var f,A;for(s&&(f=u.domain)&&f.exit();e;){A=e.fn,e=e.next;try{A()}catch(g){throw e?r():a=void 0,g}}a=void 0,f&&f.enter()};if(s)r=function(){u.nextTick(c)};else if(!i||m.navigator&&m.navigator.standalone)if(d&&d.resolve){var p=d.resolve(void 0);r=function(){p.then(c)}}else r=function(){_.call(m,c)};else{var l=!0,S=document.createTextNode("");new i(c).observe(S,{characterData:!0}),r=function(){S.data=l=!l}}return function(E){var f={fn:E,next:void 0};a&&(a.next=f),e||(e=f,r()),a=f}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,k,T){"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=_(u),this.reject=_(d)}var _=n("./_a-function");k.exports.f=function(i){return new m(i)}},{"./_a-function":58}],96:[function(n,k,T){"use strict";var m=n("./_object-keys"),_=n("./_object-gops"),i=n("./_object-pie"),u=n("./_to-object"),d=n("./_iobject"),s=Object.assign;k.exports=!s||n("./_fails")(function(){var e={},a={},r=Symbol(),c="abcdefghijklmnopqrst";return e[r]=7,c.split("").forEach(function(p){a[p]=p}),s({},e)[r]!=7||Object.keys(s({},a)).join("")!=c})?function(e,a){for(var r=u(e),c=arguments.length,p=1,l=_.f,S=i.f;c>p;)for(var E,f=d(arguments[p++]),A=l?m(f).concat(l(f)):m(f),g=A.length,h=0;g>h;)S.call(f,E=A[h++])&&(r[E]=f[E]);return r}:s},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,k,T){var m=n("./_an-object"),_=n("./_object-dps"),i=n("./_enum-bug-keys"),u=n("./_shared-key")("IE_PROTO"),d=function(){},s=function(){var a,r=n("./_dom-create")("iframe"),c=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",a=r.contentWindow.document,a.open(),a.write(""),a.close(),s=a.F;c--;)delete s.prototype[i[c]];return s()};k.exports=Object.create||function(e,a){var r;return e!==null?(d.prototype=m(e),r=new d,d.prototype=null,r[u]=e):r=s(),a===void 0?r:_(r,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,k,T){var m=n("./_an-object"),_=n("./_ie8-dom-define"),i=n("./_to-primitive"),u=Object.defineProperty;T.f=n("./_descriptors")?Object.defineProperty:function(d,s,e){if(m(d),s=i(s,!0),m(e),_)try{return u(d,s,e)}catch(a){}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,k,T){var m=n("./_object-dp"),_=n("./_an-object"),i=n("./_object-keys");k.exports=n("./_descriptors")?Object.defineProperties:function(u,d){_(u);for(var s,e=i(d),a=e.length,r=0;a>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,k,T){var m=n("./_object-pie"),_=n("./_property-desc"),i=n("./_to-iobject"),u=n("./_to-primitive"),d=n("./_has"),s=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;T.f=n("./_descriptors")?e:function(a,r){if(a=i(a),r=u(r,!0),s)try{return e(a,r)}catch(c){}if(d(a,r))return _(!m.f.call(a,r),a[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,k,T){var m=n("./_to-iobject"),_=n("./_object-gopn").f,i={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(e){try{return _(e)}catch(a){return u.slice()}};k.exports.f=function(s){return u&&i.call(s)=="[object Window]"?d(s):_(m(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,k,T){var m=n("./_object-keys-internal"),_=n("./_enum-bug-keys").concat("length","prototype");T.f=Object.getOwnPropertyNames||function(i){return m(i,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,k,T){T.f=Object.getOwnPropertySymbols},{}],104:[function(n,k,T){var m=n("./_has"),_=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),u=Object.prototype;k.exports=Object.getPrototypeOf||function(d){return d=_(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,k,T){var m=n("./_has"),_=n("./_to-iobject"),i=n("./_array-includes")(!1),u=n("./_shared-key")("IE_PROTO");k.exports=function(d,s){var e,a=_(d),r=0,c=[];for(e in a)e!=u&&m(a,e)&&c.push(e);for(;s.length>r;)m(a,e=s[r++])&&(~i(c,e)||c.push(e));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,k,T){var m=n("./_object-keys-internal"),_=n("./_enum-bug-keys");k.exports=Object.keys||function(i){return m(i,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,k,T){T.f={}.propertyIsEnumerable},{}],108:[function(n,k,T){var m=n("./_export"),_=n("./_core"),i=n("./_fails");k.exports=function(u,d){var s=(_.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,k,T){k.exports=function(m){try{return{e:!1,v:m()}}catch(_){return{e:!0,v:_}}}},{}],110:[function(n,k,T){var m=n("./_an-object"),_=n("./_is-object"),i=n("./_new-promise-capability");k.exports=function(u,d){if(m(u),_(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,k,T){k.exports=function(m,_){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:_}}},{}],112:[function(n,k,T){var m=n("./_hide");k.exports=function(_,i,u){for(var d in i)u&&_[d]?_[d]=i[d]:m(_,d,i[d]);return _}},{"./_hide":78}],113:[function(n,k,T){k.exports=n("./_hide")},{"./_hide":78}],114:[function(n,k,T){"use strict";var m=n("./_global"),_=n("./_core"),i=n("./_object-dp"),u=n("./_descriptors"),d=n("./_wks")("species");k.exports=function(s){var e=typeof _[s]=="function"?_[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,k,T){var m=n("./_object-dp").f,_=n("./_has"),i=n("./_wks")("toStringTag");k.exports=function(u,d,s){u&&!_(u=s?u:u.prototype,i)&&m(u,i,{configurable:!0,value:d})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,k,T){var m=n("./_shared")("keys"),_=n("./_uid");k.exports=function(i){return m[i]||(m[i]=_(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,k,T){var m=n("./_core"),_=n("./_global"),i=_["__core-js_shared__"]||(_["__core-js_shared__"]={});(k.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,k,T){var m=n("./_an-object"),_=n("./_a-function"),i=n("./_wks")("species");k.exports=function(u,d){var s,e=m(u).constructor;return e===void 0||(s=m(e)[i])==null?d:_(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,k,T){var m=n("./_to-integer"),_=n("./_defined");k.exports=function(i){return function(u,d){var s,e,a=String(_(u)),r=m(d),c=a.length;return r<0||r>=c?i?"":void 0:(s=a.charCodeAt(r),s<55296||s>56319||r+1===c||(e=a.charCodeAt(r+1))<56320||e>57343?i?a.charAt(r):s:i?a.slice(r,r+2):e-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,k,T){var m,_,i,u=n("./_ctx"),d=n("./_invoke"),s=n("./_html"),e=n("./_dom-create"),a=n("./_global"),r=a.process,c=a.setImmediate,p=a.clearImmediate,l=a.MessageChannel,S=a.Dispatch,E=0,f={},A=function(){var w=+this;if(f.hasOwnProperty(w)){var O=f[w];delete f[w],O()}},g=function(w){A.call(w.data)};c&&p||(c=function(w){for(var O=[],R=1;arguments.length>R;)O.push(arguments[R++]);return f[++E]=function(){d(typeof w=="function"?w:Function(w),O)},m(E),E},p=function(w){delete f[w]},n("./_cof")(r)=="process"?m=function(w){r.nextTick(u(A,w,1))}:S&&S.now?m=function(w){S.now(u(A,w,1))}:l?(_=new l,i=_.port2,_.port1.onmessage=g,m=u(i.postMessage,i,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(w){a.postMessage(w+"","*")},a.addEventListener("message",g,!1)):m="onreadystatechange"in e("script")?function(h){s.appendChild(e("script")).onreadystatechange=function(){s.removeChild(this),A.call(h)}}:function(h){setTimeout(u(A,h,1),0)}),k.exports={set:c,clear:p}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,k,T){var m=n("./_to-integer"),_=Math.max,i=Math.min;k.exports=function(u,d){return u=m(u),u<0?_(u+d,0):i(u,d)}},{"./_to-integer":122}],122:[function(n,k,T){var m=Math.ceil,_=Math.floor;k.exports=function(i){return isNaN(i=+i)?0:(i>0?_:m)(i)}},{}],123:[function(n,k,T){var m=n("./_iobject"),_=n("./_defined");k.exports=function(i){return m(_(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,k,T){var m=n("./_to-integer"),_=Math.min;k.exports=function(i){return i>0?_(m(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,k,T){var m=n("./_defined");k.exports=function(_){return Object(m(_))}},{"./_defined":68}],126:[function(n,k,T){var m=n("./_is-object");k.exports=function(_,i){if(!m(_))return _;var u,d;if(i&&typeof(u=_.toString)=="function"&&!m(d=u.call(_)))return d;if(typeof(u=_.valueOf)=="function"&&!m(d=u.call(_)))return d;if(!i&&typeof(u=_.toString)=="function"&&!m(d=u.call(_)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,k,T){var m=0,_=Math.random();k.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++m+_).toString(36))}},{}],128:[function(n,k,T){var m=n("./_global"),_=m.navigator;k.exports=_&&_.userAgent||""},{"./_global":76}],129:[function(n,k,T){var m=n("./_global"),_=n("./_core"),i=n("./_library"),u=n("./_wks-ext"),d=n("./_object-dp").f;k.exports=function(s){var e=_.Symbol||(_.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,k,T){T.f=n("./_wks")},{"./_wks":131}],131:[function(n,k,T){var m=n("./_shared")("wks"),_=n("./_uid"),i=n("./_global").Symbol,u=typeof i=="function";(k.exports=function(d){return m[d]||(m[d]=u&&i[d]||(u?i:_)("Symbol."+d))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,k,T){var m=n("./_classof"),_=n("./_wks")("iterator"),i=n("./_iterators");k.exports=n("./_core").getIteratorMethod=function(u){if(u!=null)return u[_]||u["@@iterator"]||i[m(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,k,T){"use strict";var m=n("./_ctx"),_=n("./_export"),i=n("./_to-object"),u=n("./_iter-call"),d=n("./_is-array-iter"),s=n("./_to-length"),e=n("./_create-property"),a=n("./core.get-iterator-method");_(_.S+_.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(c){var p,l,S,E,f=i(c),A=typeof this=="function"?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,w=h!==void 0,O=0,R=a(f);if(w&&(h=m(h,g>2?arguments[2]:void 0,2)),R==null||A==Array&&d(R))for(p=s(f.length),l=new A(p);p>O;O++)e(l,O,w?h(f[O],O):f[O]);else for(E=R.call(f),l=new A;!(S=E.next()).done;O++)e(l,O,w?u(E,h,[S.value,O],!0):S.value);return l.length=O,l}})},{"./_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,k,T){"use strict";var m=n("./_add-to-unscopables"),_=n("./_iter-step"),i=n("./_iterators"),u=n("./_to-iobject");k.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,_(1)):s=="keys"?_(0,e):s=="values"?_(0,d[e]):_(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,k,T){"use strict";var m=n("./_is-object"),_=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=_(s);)if(this.prototype===s)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,k,T){var m=n("./_export");m(m.S+m.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,k,T){var m=n("./_export");m(m.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,k,T){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,k,T){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,k,T){var m=n("./_to-object"),_=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return _(m(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,k,T){var m=n("./_to-object"),_=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return _(m(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,k,T){arguments[4][36][0].apply(T,arguments)},{dup:36}],143:[function(n,k,T){"use strict";var m,_,i,u,d=n("./_library"),s=n("./_global"),e=n("./_ctx"),a=n("./_classof"),r=n("./_export"),c=n("./_is-object"),p=n("./_a-function"),l=n("./_an-instance"),S=n("./_for-of"),E=n("./_species-constructor"),f=n("./_task").set,A=n("./_microtask")(),g=n("./_new-promise-capability"),h=n("./_perform"),w=n("./_user-agent"),O=n("./_promise-resolve"),R=s.TypeError,b=s.process,I=b&&b.versions,y=I&&I.v8||"",U=s.Promise,D=a(b)=="process",N=function(){},G=_=g.f,K=!!function(){try{var F=U.resolve(1),M=(F.constructor={})[n("./_wks")("species")]=function(H){H(N,N)};return(D||typeof PromiseRejectionEvent=="function")&&F.then(N)instanceof M&&y.indexOf("6.6")!==0&&w.indexOf("Chrome/66")===-1}catch(H){}}(),te=function(M){var H;return!(!c(M)||typeof(H=M.then)!="function")&&H},z=function(M,H){if(!M._n){M._n=!0;var Y=M._c;A(function(){for(var ae=M._v,ne=M._s==1,se=0;Y.length>se;)!function(fe){var Q,J,ie,W=ne?fe.ok:fe.fail,B=fe.resolve,re=fe.reject,ee=fe.domain;try{W?(ne||(M._h==2&&q(M),M._h=1),W===!0?Q=ae:(ee&&ee.enter(),Q=W(ae),ee&&(ee.exit(),ie=!0)),Q===fe.promise?re(R("Promise-chain cycle")):(J=te(Q))?J.call(Q,B,re):B(Q)):re(ae)}catch(ce){ee&&!ie&&ee.exit(),re(ce)}}(Y[se++]);M._c=[],M._n=!1,H&&!M._h&&Z(M)})}},Z=function(M){f.call(s,function(){var H,Y,ae,ne=M._v,se=$(M);if(se&&(H=h(function(){D?b.emit("unhandledRejection",ne,M):(Y=s.onunhandledrejection)?Y({promise:M,reason:ne}):(ae=s.console)&&ae.error&&ae.error("Unhandled promise rejection",ne)}),M._h=D||$(M)?2:1),M._a=void 0,se&&H.e)throw H.v})},$=function(M){return M._h!==1&&(M._a||M._c).length===0},q=function(M){f.call(s,function(){var H;D?b.emit("rejectionHandled",M):(H=s.onrejectionhandled)&&H({promise:M,reason:M._v})})},L=function(M){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=M,H._s=2,H._a||(H._a=H._c.slice()),z(H,!0))},j=function F(M){var H,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===M)throw R("Promise can't be resolved itself");(H=te(M))?A(function(){var ae={_w:Y,_d:!1};try{H.call(M,e(F,ae,1),e(L,ae,1))}catch(ne){L.call(ae,ne)}}):(Y._v=M,Y._s=1,z(Y,!1))}catch(ae){L.call({_w:Y,_d:!1},ae)}}};K||(U=function(M){l(this,U,"Promise","_h"),p(M),m.call(this);try{M(e(j,this,1),e(L,this,1))}catch(H){L.call(this,H)}},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")(U.prototype,{then:function(M,H){var Y=G(E(this,U));return Y.ok=typeof M!="function"||M,Y.fail=typeof H=="function"&&H,Y.domain=D?b.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&z(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(L,M,1)},g.f=G=function(M){return M===U||M===u?new i(M):_(M)}),r(r.G+r.W+r.F*!K,{Promise:U}),n("./_set-to-string-tag")(U,"Promise"),n("./_set-species")("Promise"),u=n("./_core").Promise,r(r.S+r.F*!K,"Promise",{reject:function(M){var H=G(this);return(0,H.reject)(M),H.promise}}),r(r.S+r.F*(d||!K),"Promise",{resolve:function(M){return O(d&&this===u?U:this,M)}}),r(r.S+r.F*!(K&&n("./_iter-detect")(function(F){U.all(F).catch(N)})),"Promise",{all:function(M){var H=this,Y=G(H),ae=Y.resolve,ne=Y.reject,se=h(function(){var fe=[],Q=0,J=1;S(M,!1,function(ie){var W=Q++,B=!1;fe.push(void 0),J++,H.resolve(ie).then(function(re){B||(B=!0,fe[W]=re,--J||ae(fe))},ne)}),--J||ae(fe)});return se.e&&ne(se.v),Y.promise},race:function(M){var H=this,Y=G(H),ae=Y.reject,ne=h(function(){S(M,!1,function(se){H.resolve(se).then(Y.resolve,ae)})});return ne.e&&ae(ne.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,k,T){var m=n("./_export"),_=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,a=[],r=arguments.length,c=0;r>c;){if(e=+arguments[c++],_(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,k,T){"use strict";var m=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(_){this._t=String(_),this._i=0},function(){var _,i=this._t,u=this._i;return u>=i.length?{value:void 0,done:!0}:(_=m(i,u),this._i+=_.length,{value:_,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,k,T){"use strict";var m=n("./_global"),_=n("./_has"),i=n("./_descriptors"),u=n("./_export"),d=n("./_redefine"),s=n("./_meta").KEY,e=n("./_fails"),a=n("./_shared"),r=n("./_set-to-string-tag"),c=n("./_uid"),p=n("./_wks"),l=n("./_wks-ext"),S=n("./_wks-define"),E=n("./_enum-keys"),f=n("./_is-array"),A=n("./_an-object"),g=n("./_is-object"),h=n("./_to-iobject"),w=n("./_to-primitive"),O=n("./_property-desc"),R=n("./_object-create"),b=n("./_object-gopn-ext"),I=n("./_object-gopd"),y=n("./_object-dp"),U=n("./_object-keys"),D=I.f,N=y.f,G=b.f,K=m.Symbol,te=m.JSON,z=te&&te.stringify,Z=p("_hidden"),$=p("toPrimitive"),q={}.propertyIsEnumerable,L=a("symbol-registry"),j=a("symbols"),F=a("op-symbols"),M=Object.prototype,H=typeof K=="function",Y=m.QObject,ae=!Y||!Y.prototype||!Y.prototype.findChild,ne=i&&e(function(){return R(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(C,v,x){var X=D(M,v);X&&delete M[v],N(C,v,x),X&&C!==M&&N(M,v,X)}:N,se=function(v){var x=j[v]=R(K.prototype);return x._k=v,x},fe=H&&typeof K.iterator=="symbol"?function(C){return typeof C=="symbol"}:function(C){return C instanceof K},Q=function C(v,x,X){return v===M&&C(F,x,X),A(v),x=w(x,!0),A(X),_(j,x)?(X.enumerable?(_(v,Z)&&v[Z][x]&&(v[Z][x]=!1),X=R(X,{enumerable:O(0,!1)})):(_(v,Z)||N(v,Z,O(1,{})),v[Z][x]=!0),ne(v,x,X)):N(v,x,X)},J=function(v,x){A(v);for(var X,V=E(x=h(x)),pe=0,le=V.length;le>pe;)Q(v,X=V[pe++],x[X]);return v},ie=function(v,x){return x===void 0?R(v):J(R(v),x)},W=function(v){var x=q.call(this,v=w(v,!0));return!(this===M&&_(j,v)&&!_(F,v))&&(!(x||!_(this,v)||!_(j,v)||_(this,Z)&&this[Z][v])||x)},B=function(v,x){if(v=h(v),x=w(x,!0),v!==M||!_(j,x)||_(F,x)){var X=D(v,x);return!X||!_(j,x)||_(v,Z)&&v[Z][x]||(X.enumerable=!0),X}},re=function(v){for(var x,X=G(h(v)),V=[],pe=0;X.length>pe;)_(j,x=X[pe++])||x==Z||x==s||V.push(x);return V},ee=function(v){for(var x,X=v===M,V=G(X?F:h(v)),pe=[],le=0;V.length>le;)!_(j,x=V[le++])||X&&!_(M,x)||pe.push(j[x]);return pe};H||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var v=c(arguments.length>0?arguments[0]:void 0),x=function X(V){this===M&&X.call(F,V),_(this,Z)&&_(this[Z],v)&&(this[Z][v]=!1),ne(this,v,O(1,V))};return i&&ae&&ne(M,v,{configurable:!0,set:x}),se(v)},d(K.prototype,"toString",function(){return this._k}),I.f=B,y.f=Q,n("./_object-gopn").f=b.f=re,n("./_object-pie").f=W,n("./_object-gops").f=ee,i&&!n("./_library")&&d(M,"propertyIsEnumerable",W,!0),l.f=function(C){return se(p(C))}),u(u.G+u.W+u.F*!H,{Symbol:K});for(var ce="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),P=0;ce.length>P;)p(ce[P++]);for(var t=U(p.store),o=0;t.length>o;)S(t[o++]);u(u.S+u.F*!H,"Symbol",{for:function(v){return _(L,v+="")?L[v]:L[v]=K(v)},keyFor:function(v){if(!fe(v))throw TypeError(v+" is not a symbol!");for(var x in L)if(L[x]===v)return x},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),u(u.S+u.F*!H,"Object",{create:ie,defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:B,getOwnPropertyNames:re,getOwnPropertySymbols:ee}),te&&u(u.S+u.F*(!H||e(function(){var C=K();return z([C])!="[null]"||z({a:C})!="{}"||z(Object(C))!="{}"})),"JSON",{stringify:function(v){for(var x,X,V=[v],pe=1;arguments.length>pe;)V.push(arguments[pe++]);if(X=x=V[1],(g(x)||v!==void 0)&&!fe(v))return f(x)||(x=function(me,ge){if(typeof X=="function"&&(ge=X.call(this,me,ge)),!fe(ge))return ge}),V[1]=x,z.apply(te,V)}}),K.prototype[$]||n("./_hide")(K.prototype,$,K.prototype.valueOf),r(K,"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,k,T){"use strict";var m=n("./_export"),_=n("./_core"),i=n("./_global"),u=n("./_species-constructor"),d=n("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(e){var a=u(this,_.Promise||i.Promise),r=typeof e=="function";return this.then(r?function(c){return d(a,e()).then(function(){return c})}:e,r?function(c){return d(a,e()).then(function(){throw c})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,k,T){"use strict";var m=n("./_export"),_=n("./_new-promise-capability"),i=n("./_perform");m(m.S,"Promise",{try:function(d){var s=_.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,k,T){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,k,T){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,k,T){n("./es6.array.iterator");for(var m=n("./_global"),_=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;s0?"-":"+")+u(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:N,N:G};return S.replace(r,function(te){return te in K?K[te]:te.slice(1,te.length-1)})}}();a.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"},a.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 _e=="function"&&_e.amd?_e(function(){return a}):(T===void 0?"undefined":(0,_.default)(T))==="object"?k.exports=a:i.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,k,T){(function(m){function _(){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 a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+T.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var c=0,p=0;e[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(c++,l==="%c"&&(p=c))}),e.splice(p,0,r)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(e){try{e==null?T.storage.removeItem("debug"):T.storage.debug=e}catch(a){}}function s(){var e;try{e=T.storage.debug}catch(a){}return!e&&m!==void 0&&"env"in m&&(e=m.env.DEBUG),e}T=k.exports=n("./debug"),T.log=u,T.formatArgs=i,T.save=d,T.load=s,T.useColors=_,T.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),T.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],T.formatters.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},T.enable(s())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,k,T){function m(a){var r,c=0;for(r in a)c=(c<<5)-c+a.charCodeAt(r),c|=0;return T.colors[Math.abs(c)%T.colors.length]}function _(a){function r(){if(r.enabled){var c=r,p=+new Date,l=p-(e||p);c.diff=l,c.prev=e,c.curr=p,e=p;for(var S=new Array(arguments.length),E=0;E]/;k.exports=m},{}],158:[function(n,k,T){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function _(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}k.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,a,r,c,p,l;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 S=new Error('Uncaught, unspecified "error" event. ('+e+")");throw S.context=e,S}if(a=this._events[s],d(a))return!1;if(_(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(u(a))for(c=Array.prototype.slice.call(arguments,1),l=a.slice(),r=l.length,p=0;p0&&this._events[s].length>a&&(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 a(){this.removeListener(s,a),r||(r=!0,e.apply(this,arguments))}if(!_(e))throw TypeError("listener must be a function");var r=!1;return a.listener=e,this.on(s,a),this},m.prototype.removeListener=function(s,e){var a,r,c,p;if(!_(e))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(a=this._events[s],c=a.length,r=-1,a===e||_(a.listener)&&a.listener===e)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,e);else if(u(a)){for(p=c;p-- >0;)if(a[p]===e||a[p].listener&&a[p].listener===e){r=p;break}if(r<0)return this;a.length===1?(a.length=0,delete this._events[s]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",s,e)}return this},m.prototype.removeAllListeners=function(s){var e,a;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(a=this._events[s],_(a))this.removeListener(s,a);else if(a)for(;a.length;)this.removeListener(s,a[a.length-1]);return delete this._events[s],this},m.prototype.listeners=function(s){return this._events&&this._events[s]?_(this._events[s])?[this._events[s]]:this._events[s].slice():[]},m.prototype.listenerCount=function(s){if(this._events){var e=this._events[s];if(_(e))return 1;if(e)return e.length}return 0},m.listenerCount=function(s,e){return s.listenerCount(e)}},{}],159:[function(n,k,T){var m=n("http"),_=k.exports;for(var i in m)m.hasOwnProperty(i)&&(_[i]=m[i]);_.request=function(u,d){return u||(u={}),u.scheme="https",u.protocol="https:",m.request.call(this,u,d)}},{http:196}],160:[function(n,k,T){"use strict";var m=n("util"),_=n("ms");k.exports=function(i){if(typeof i=="number")return i;var u=_(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,k,T){T.read=function(m,_,i,u,d){var s,e,a=8*d-u-1,r=(1<>1,p=-7,l=i?d-1:0,S=i?-1:1,E=m[_+l];for(l+=S,s=E&(1<<-p)-1,E>>=-p,p+=a;p>0;s=256*s+m[_+l],l+=S,p-=8);for(e=s&(1<<-p)-1,s>>=-p,p+=u;p>0;e=256*e+m[_+l],l+=S,p-=8);if(s===0)s=1-c;else{if(s===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,u),s-=c}return(E?-1:1)*e*Math.pow(2,s-u)},T.write=function(m,_,i,u,d,s){var e,a,r,c=8*s-d-1,p=(1<>1,S=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:s-1,f=u?1:-1,A=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(a=isNaN(_)?1:0,e=p):(e=Math.floor(Math.log(_)/Math.LN2),_*(r=Math.pow(2,-e))<1&&(e--,r*=2),_+=e+l>=1?S/r:S*Math.pow(2,1-l),_*r>=2&&(e++,r/=2),e+l>=p?(a=0,e=p):e+l>=1?(a=(_*r-1)*Math.pow(2,d),e+=l):(a=_*Math.pow(2,l-1)*Math.pow(2,d),e=0));d>=8;m[i+E]=255&a,E+=f,a/=256,d-=8);for(e=e<0;m[i+E]=255&e,E+=f,e/=256,c-=8);m[i+E-f]|=128*A}},{}],162:[function(n,k,T){typeof Object.create=="function"?k.exports=function(m,_){m.super_=_,m.prototype=Object.create(_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(m,_){m.super_=_;var i=function(){};i.prototype=_.prototype,m.prototype=new i,m.prototype.constructor=m}},{}],163:[function(n,k,T){function m(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function _(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&m(i.slice(0,0))}k.exports=function(i){return i!=null&&(m(i)||_(i)||!!i._isBuffer)}},{}],164:[function(n,k,T){!function(m){function _(d){return u.call(d).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(d){return typeof d=="function"&&(/^class(\s|\{\}$)/.test(u.call(d))||/^.*classCallCheck\(/.test(_(d)))}var u=Function.prototype.toString;T!==void 0?(k!==void 0&&k.exports&&(T=k.exports=i),T.isClass=i):typeof _e=="function"&&_e.amd?_e([],function(){return i}):m.isClass=i}(this)},{}],165:[function(n,k,T){"use strict";function m(s){var e=s.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var _=n("core-util-is"),i=n("isstream"),u=n("is-class");Object.keys(_).map(function(s){T[m(s)]=_[s]}),T.stream=i,T.readableStream=i.isReadable,T.writableStream=i.isWritable,T.duplexStream=i.isDuplex,T.class=u,T.finite=function(s){return Number.isFinite(s)},T.NaN=function(s){return Number.isNaN(s)},T.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},T.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},T.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},T.promise=function(s){return s&&typeof s.then=="function"};var d=Math.pow(2,31);T.int=function(s){return _.isNumber(s)&&s%1==0},T.int32=function(s){return T.int(s)&&s=-d},T.long=function(s){return T.int(s)&&(s>=d||s<-d)},T.Long=function(s){return T.object(s)&&T.number(s.high)&&T.number(s.low)},T.double=function(s){return _.isNumber(s)&&!isNaN(s)&&s%1!=0},T.date=function(s){return s instanceof Date},T.regExp=function(s){return s instanceof RegExp},T.regexp=T.regExp,T.error=function(s){return s instanceof Error},T.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,k,T){var m={}.toString;k.exports=Array.isArray||function(_){return m.call(_)=="[object Array]"}},{}],167:[function(n,k,T){function m(s){return s instanceof d.Stream}function _(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 _(s)&&i(s)}var d=n("stream");k.exports=m,k.exports.isReadable=_,k.exports.isWritable=i,k.exports.isDuplex=u},{stream:195}],168:[function(n,k,T){"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||!_.call(i,s)){var e=Object.getOwnPropertyDescriptor(u,s);Object.defineProperty(i,s,e)}}),i}k.exports=m;var _=Object.prototype.hasOwnProperty},{}],169:[function(n,k,T){function m(c){if(c=String(c),!(c.length>100)){var p=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(p){var l=parseFloat(p[1]);switch((p[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*r;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*e;case"minutes":case"minute":case"mins":case"min":case"m":return l*s;case"seconds":case"second":case"secs":case"sec":case"s":return l*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function _(c){return c>=a?Math.round(c/a)+"d":c>=e?Math.round(c/e)+"h":c>=s?Math.round(c/s)+"m":c>=d?Math.round(c/d)+"s":c+"ms"}function i(c){return u(c,a,"day")||u(c,e,"hour")||u(c,s,"minute")||u(c,d,"second")||c+" ms"}function u(c,p,l){if(!(c0)return m(c);if(l==="number"&&isNaN(c)===!1)return p.long?i(c):_(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(n,k,T){(function(m){function _(s,e){for(var a=0,r=s.length-1;r>=0;r--){var c=s[r];c==="."?s.splice(r,1):c===".."?(s.splice(r,1),a++):a&&(s.splice(r,1),a--)}if(e)for(;a--;a)s.unshift("..");return s}function i(s){typeof s!="string"&&(s+="");var e,a=0,r=-1,c=!0;for(e=s.length-1;e>=0;--e)if(s.charCodeAt(e)===47){if(!c){a=e+1;break}}else r===-1&&(c=!1,r=e+1);return r===-1?"":s.slice(a,r)}function u(s,e){if(s.filter)return s.filter(e);for(var a=[],r=0;r=-1&&!e;a--){var r=a>=0?arguments[a]: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=_(u(s.split("/"),function(c){return!!c}),!e).join("/"),(e?"/":"")+s||"."},T.normalize=function(s){var e=T.isAbsolute(s),a=d(s,-1)==="/";return s=_(u(s.split("/"),function(r){return!!r}),!e).join("/"),s||e||(s="."),s&&a&&(s+="/"),(e?"/":"")+s},T.isAbsolute=function(s){return s.charAt(0)==="/"},T.join=function(){var s=Array.prototype.slice.call(arguments,0);return T.normalize(u(s,function(e,a){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},T.relative=function(s,e){function a(f){for(var A=0;A=0&&f[g]==="";g--);return A>g?[]:f.slice(A,g-A+1)}s=T.resolve(s).substr(1),e=T.resolve(e).substr(1);for(var r=a(s.split("/")),c=a(e.split("/")),p=Math.min(r.length,c.length),l=p,S=0;S=1;--p)if((e=s.charCodeAt(p))===47){if(!c){r=p;break}}else c=!1;return r===-1?a?"/":".":a&&r===1?"/":s.slice(0,r)},T.basename=function(s,e){var a=i(s);return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},T.extname=function(s){typeof s!="string"&&(s+="");for(var e=-1,a=0,r=-1,c=!0,p=0,l=s.length-1;l>=0;--l){var S=s.charCodeAt(l);if(S!==47)r===-1&&(c=!1,r=l+1),S===46?e===-1?e=l:p!==1&&(p=1):e!==-1&&(p=-1);else if(!c){a=l+1;break}}return e===-1||r===-1||p===0||p===1&&e===r-1&&e===a+1?"":s.slice(e,r)};var d="ab".substr(-1)==="b"?function(s,e,a){return s.substr(e,a)}:function(s,e,a){return e<0&&(e=s.length+e),s.substr(e,a)}}).call(this,n("_process"))},{_process:173}],171:[function(n,k,T){(function(m){(function(){"use strict";function _(y){return y=String(y),y.charAt(0).toUpperCase()+y.slice(1)}function i(y,U,D){var N={"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 U&&D&&/^Win/i.test(y)&&!/^Windows Phone /i.test(y)&&(N=N[/[\d.]+$/.exec(y)])&&(y="Windows "+N),y=String(y),U&&D&&(y=y.replace(RegExp(U,"i"),D)),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,U){var D=-1,N=y?y.length:0;if(typeof N=="number"&&N>-1&&N<=h)for(;++D3&&"WebKit"||/\bOpera\b/.test(ee)&&(/\bOPR\b/.test(y)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(y)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(y)&&(t=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ee)&&"NetFront")&&(re=[z]),ee=="IE"&&(z=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(y)||0)[1])?(ee+=" Mobile",t="Windows Phone "+(/\+$/.test(z)?z:z+".x"),J.unshift("desktop mode")):/\bWPDesktop\b/i.test(y)?(ee="IE Mobile",t="Windows Phone 8.x",J.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(y)||0)[1])):ee!="IE"&&re=="Trident"&&(z=/\brv:([\d.]+)/.exec(y))&&(ee&&J.push("identifying as "+ee+(B?" "+B:"")),ee="IE",B=z[1]),W){if(a(N,"global"))if(M&&(z=M.lang.System,Q=z.getProperty("os.arch"),t=t||z.getProperty("os.name")+" "+z.getProperty("os.version")),H){try{B=N.require("ringo/engine").version.join("."),ee="RingoJS"}catch(C){(z=N.system)&&z.global.system==N.system&&(ee="Narwhal",t||(t=z[0].os||null))}ee||(ee="Rhino")}else typeof N.process=="object"&&!N.process.browser&&(z=N.process)&&(typeof z.versions=="object"&&(typeof z.versions.electron=="string"?(J.push("Node "+z.versions.node),ee="Electron",B=z.versions.electron):typeof z.versions.nw=="string"&&(J.push("Chromium "+B,"Node "+z.versions.node),ee="NW.js",B=z.versions.nw)),ee||(ee="Node.js",Q=z.arch,t=z.platform,B=/[\d.]+/.exec(z.version),B=B?B[0]:null));else e(z=N.runtime)==q?(ee="Adobe AIR",t=z.flash.system.Capabilities.os):e(z=N.phantom)==F?(ee="PhantomJS",B=(z=z.version||null)&&z.major+"."+z.minor+"."+z.patch):typeof ne.documentMode=="number"&&(z=/\bTrident\/(\d+)/i.exec(y))?(B=[B,ne.documentMode],(z=+z[1]+4)!=B[1]&&(J.push("IE "+B[1]+" mode"),re&&(re[1]=""),B[1]=z),B=ee=="IE"?String(B[1].toFixed(1)):B[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ee)&&(J.push("masking as "+ee+" "+B),ee="IE",B="11.0",re=["Trident"],t="Windows");t=t&&d(t)}if(B&&(z=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(y+";"+(W&&K.appMinorVersion))||/\bMinefield\b/i.test(y)&&"a")&&(ie=/b/i.test(z)?"beta":"alpha",B=B.replace(RegExp(z+"\\+?$"),"")+(ie=="beta"?ae:Y)+(/\d+\+?/.exec(z)||"")),ee=="Fennec"||ee=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ee="Firefox Mobile";else if(ee=="Maxthon"&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ce))ce=="Xbox 360"&&(t=null),ce=="Xbox 360"&&/\bIEMobile\b/.test(y)&&J.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ee)&&(!ee||ce||/Browser|Mobi/.test(ee))||t!="Windows CE"&&!/Mobi/i.test(y))if(ee=="IE"&&W)try{N.external===null&&J.unshift("platform preview")}catch(C){J.unshift("embedded")}else(/\bBlackBerry\b/.test(ce)||/\bBB10\b/.test(y))&&(z=(RegExp(ce.replace(/ +/g," *")+"/([.\\d]+)","i").exec(y)||0)[1]||B)?(z=[z,/BB10/.test(y)],t=(z[1]?(ce=null,P="BlackBerry"):"Device Software")+" "+z[0],B=null):this!=s&&ce!="Wii"&&(W&&se||/Opera/.test(ee)&&/\b(?:MSIE|Firefox)\b/i.test(y)||ee=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ee=="IE"&&(t&&!/^Win/.test(t)&&B>5.5||/\bWindows XP\b/.test(t)&&B>8||B==8&&!/\bTrident\b/.test(y)))&&!w.test(z=l.call(s,y.replace(w,"")+";"))&&z.name&&(z="ing as "+z.name+((z=z.version)?" "+z:""),w.test(ee)?(/\bIE\b/.test(z)&&t=="Mac OS"&&(t=null),z="identify"+z):(z="mask"+z,ee=fe?d(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(z)&&(t=null),W||(B=null)),re=["Presto"],J.push(z));else ee+=" Mobile";(z=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(y)||0)[1])&&(z=[parseFloat(z.replace(/\.(\d)$/,".0$1")),z],ee=="Safari"&&z[1].slice(-1)=="+"?(ee="WebKit Nightly",ie="alpha",B=z[1].slice(0,-1)):B!=z[1]&&B!=(z[2]=(/\bSafari\/([\d.]+\+?)/i.exec(y)||0)[1])||(B=null),z[1]=(/\bChrome\/([\d.]+)/i.exec(y)||0)[1],z[0]==537.36&&z[2]==537.36&&parseFloat(z[1])>=28&&re=="WebKit"&&(re=["Blink"]),W&&($||z[1])?(re&&(re[1]="like Chrome"),z=z[1]||(z=z[0],z<530?1:z<532?2:z<532.05?3:z<533?4:z<534.03?5:z<534.07?6:z<534.1?7:z<534.13?8:z<534.16?9:z<534.24?10:z<534.3?11:z<535.01?12:z<535.02?"13+":z<535.07?15:z<535.11?16:z<535.19?17:z<536.05?18:z<536.1?19:z<537.01?20:z<537.11?"21+":z<537.13?23:z<537.18?24:z<537.24?25:z<537.36?26:re!="Blink"?"27":"28")):(re&&(re[1]="like Safari"),z=z[0],z=z<400?1:z<500?2:z<526?3:z<533?4:z<534?"4+":z<535?5:z<537?6:z<538?7:z<601?8:"8"),re&&(re[1]+=" "+(z+=typeof z=="number"?".x":/[.+]/.test(z)?"":"+")),ee=="Safari"&&(!B||parseInt(B)>45)&&(B=z)),ee=="Opera"&&(z=/\bzbov|zvav$/.exec(t))?(ee+=" ",J.unshift("desktop mode"),z=="zvav"?(ee+="Mini",B=null):ee+="Mobile",t=t.replace(RegExp(" *"+z+"$"),"")):ee=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(J.unshift("desktop mode"),ee="Chrome Mobile",B=null,/\bOS X\b/.test(t)?(P="Apple",t="iOS 4.3+"):t=null),B&&B.indexOf(z=/[\d.]+$/.exec(t))==0&&y.indexOf("/"+z+"-")>-1&&(t=p(t.replace(z,""))),re&&!/\b(?:Avant|Nook)\b/.test(ee)&&(/Browser|Lunascape|Maxthon/.test(ee)||ee!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ee)&&re[1])&&(z=re[re.length-1])&&J.push(z),J.length&&(J=["("+J.join("; ")+")"]),P&&ce&&ce.indexOf(P)<0&&J.push("on "+P),ce&&J.push((/^on /.test(J[J.length-1])?"":"on ")+ce),t&&(z=/ ([\d.+]+)$/.exec(t),Z=z&&t.charAt(t.length-z[0].length-1)=="/",t={architecture:32,family:z&&!Z?t.replace(z[0],""):t,version:z?z[1]:null,toString:function(){var v=this.version;return this.family+(v&&!Z?" "+v:"")+(this.architecture==64?" 64-bit":"")}}),(z=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Q))&&!/\bi686\b/i.test(Q)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+z),"")),ee&&(/\bWOW64\b/i.test(y)||W&&/\w(?:86|32)$/.test(K.cpuClass||K.platform)&&!/\bWin64; x64\b/i.test(y))&&J.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ee=="Chrome"&&parseFloat(B)>=39&&(t.architecture=64),y||(y=null);var o={};return o.description=y,o.layout=re&&re[0],o.manufacturer=P,o.name=ee,o.prerelease=ie,o.product=ce,o.ua=y,o.version=ee&&B,o.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},o.parse=l,o.toString=D,o.version&&J.unshift(B),o.name&&J.unshift(ee),t&&ee&&(t!=String(t).split(" ")[0]||t!=ee.split(" ")[0]&&!ce)&&J.push(ce?"("+t+")":"on "+t),J.length&&(o.description=J.join(" ")),o}var S={function:!0,object:!0},E=S[typeof window]&&window||this,f=S[typeof T]&&T,A=S[typeof k]&&k&&!k.nodeType&&k,g=f&&A&&typeof m=="object"&&m;!g||g.global!==g&&g.window!==g&&g.self!==g||(E=g);var h=Math.pow(2,53)-1,w=/\bOpera/,O=Object.prototype,R=O.hasOwnProperty,b=O.toString,I=l();typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd?(E.platform=I,_e(function(){return I})):f&&A?s(I,function(y,U){f[U]=y}):E.platform=I}).call(this)}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,k,T){(function(m){"use strict";function _(i,u,d,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var e,a,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),a=0;a1)for(var h=1;h1&&(H=M[0]+"@",j=M[1]),j=j.replace(z,"."),H+u(j.split("."),F).join(".")}function s(j){for(var F,M,H=[],Y=0,ae=j.length;Y=55296&&F<=56319&&Y65535&&(F-=65536,M+=L(F>>>10&1023|55296),F=56320|1023&F),M+=L(F)}).join("")}function a(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:R}function r(j,F){return j+22+75*(j<26)-((F!=0)<<5)}function c(j,F,M){var H=0;for(j=M?q(j/U):j>>1,j+=q(j/F);j>$*I>>1;H+=R)j=q(j/$);return q(H+($+1)*j/(j+y))}function p(j){var F,M,H,Y,ae,ne,se,fe,Q,J,ie=[],W=j.length,B=0,re=N,ee=D;for(M=j.lastIndexOf(G),M<0&&(M=0),H=0;H=128&&i("not-basic"),ie.push(j.charCodeAt(H));for(Y=M>0?M+1:0;Y=W&&i("invalid-input"),fe=a(j.charCodeAt(Y++)),(fe>=R||fe>q((O-B)/ne))&&i("overflow"),B+=fe*ne,Q=se<=ee?b:se>=ee+I?I:se-ee,!(feq(O/J)&&i("overflow"),ne*=J;F=ie.length+1,ee=c(B-ae,F,ae==0),q(B/F)>O-re&&i("overflow"),re+=q(B/F),B%=F,ie.splice(B++,0,re)}return e(ie)}function l(j){var F,M,H,Y,ae,ne,se,fe,Q,J,ie,W,B,re,ee,ce=[];for(j=s(j),W=j.length,F=N,M=0,ae=D,ne=0;ne=F&&ieq((O-M)/B)&&i("overflow"),M+=(se-F)*B,F=se,ne=0;neO&&i("overflow"),ie==F){for(fe=M,Q=R;J=Q<=ae?b:Q>=ae+I?I:Q-ae,!(fe= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=R-b,q=Math.floor,L=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:s,encode:e},decode:p,encode:l,toASCII:E,toUnicode:S},typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd)_e("punycode",function(){return h});else if(f&&A)if(k.exports==f)A.exports=h;else for(w in h)h.hasOwnProperty(w)&&(f[w]=h[w]);else _.punycode=h}(this)}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,k,T){"use strict";function m(i,u){return Object.prototype.hasOwnProperty.call(i,u)}k.exports=function(i,u,d,s){u=u||"&",d=d||"=";var e={};if(typeof i!="string"||i.length===0)return e;var a=/\+/g;i=i.split(u);var r=1e3;s&&typeof s.maxKeys=="number"&&(r=s.maxKeys);var c=i.length;r>0&&c>r&&(c=r);for(var p=0;p=0?(l=A.substr(0,g),S=A.substr(g+1)):(l=A,S=""),E=decodeURIComponent(l),f=decodeURIComponent(S),m(e,E)?_(e[E])?e[E].push(f):e[E]=[e[E],f]:e[E]=f}return e};var _=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,k,T){"use strict";function m(d,s){if(d.map)return d.map(s);for(var e=[],a=0;a0?(typeof B=="string"||P.objectMode||(0,Z.default)(B)===M.prototype||(B=i(B)),ee?P.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):r(W,P,B,!0):P.ended?W.emit("error",new Error("stream.push() after EOF")):(P.reading=!1,P.decoder&&!re?(B=P.decoder.write(B),P.objectMode||B.length!==0?r(W,P,B,!1):g(W,P)):r(W,P,B,!1))):ee||(P.reading=!1)}return p(P)}function r(W,B,re,ee){B.flowing&&B.length===0&&!B.sync?(W.emit("data",re),W.read(0)):(B.length+=B.objectMode?1:re.length,ee?B.buffer.unshift(re):B.buffer.push(re),B.needReadable&&f(W)),g(W,B)}function c(W,B){var re;return u(B)||typeof B=="string"||B===void 0||W.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re}function p(W){return!W.ended&&(W.needReadable||W.length=ie?W=ie:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function S(W,B){return W<=0||B.length===0&&B.ended?0:B.objectMode?1:W!==W?B.flowing&&B.length?B.buffer.head.data.length:B.length:(W>B.highWaterMark&&(B.highWaterMark=l(W)),W<=B.length?W:B.ended?B.length:(B.needReadable=!0,0))}function E(W,B){if(!B.ended){if(B.decoder){var re=B.decoder.end();re&&re.length&&(B.buffer.push(re),B.length+=B.objectMode?1:re.length)}B.ended=!0,f(W)}}function f(W){var B=W._readableState;B.needReadable=!1,B.emittedReadable||(ne("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?$.nextTick(A,W):A(W))}function A(W){ne("emit readable"),W.emit("readable"),I(W)}function g(W,B){B.readingMore||(B.readingMore=!0,$.nextTick(h,W,B))}function h(W,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=U(W,B.buffer,B.decoder),re}function U(W,B,re){var ee;return WP.length?P.length:W;if(t===P.length?ce+=P:ce+=P.slice(0,W),(W-=t)===0){t===P.length?(++ee,re.next?B.head=re.next:B.head=B.tail=null):(B.head=re,re.data=P.slice(t));break}++ee}return B.length-=ee,ce}function N(W,B){var re=M.allocUnsafe(W),ee=B.head,ce=1;for(ee.data.copy(re),W-=ee.data.length;ee=ee.next;){var P=ee.data,t=W>P.length?P.length:W;if(P.copy(re,re.length-W,0,t),(W-=t)===0){t===P.length?(++ce,ee.next?B.head=ee.next:B.head=B.tail=null):(B.head=ee,ee.data=P.slice(t));break}++ce}return B.length-=ce,re}function G(W){var B=W._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,$.nextTick(K,B,W))}function K(W,B){W.endEmitted||W.length!==0||(W.endEmitted=!0,B.readable=!1,B.emit("end"))}function te(W,B){for(var re=0,ee=W.length;re=B.highWaterMark||B.ended))return ne("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?G(this):f(this),null;if((W=S(W,B))===0&&B.ended)return B.length===0&&G(this),null;var ee=B.needReadable;ne("need readable",ee),(B.length===0||B.length-W0?y(W,B):null,ce===null?(B.needReadable=!0,W=0):B.length-=W,B.length===0&&(B.ended||(B.needReadable=!0),re!==W&&B.ended&&G(this)),ce!==null&&this.emit("data",ce),ce},e.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(W,B){function re(Se,Pe){ne("onunpipe"),Se===x&&Pe&&Pe.hasUnpiped===!1&&(Pe.hasUnpiped=!0,ce())}function ee(){ne("onend"),W.end()}function ce(){ne("cleanup"),W.removeListener("close",o),W.removeListener("finish",C),W.removeListener("drain",le),W.removeListener("error",t),W.removeListener("unpipe",re),x.removeListener("end",ee),x.removeListener("end",v),x.removeListener("data",P),me=!0,!X.awaitDrain||W._writableState&&!W._writableState.needDrain||le()}function P(Se){ne("ondata"),ge=!1,W.write(Se)!==!1||ge||((X.pipesCount===1&&X.pipes===W||X.pipesCount>1&&te(X.pipes,W)!==-1)&&!me&&(ne("false write response, pause",x._readableState.awaitDrain),x._readableState.awaitDrain++,ge=!0),x.pause())}function t(Se){ne("onerror",Se),v(),W.removeListener("error",t),j(W,"error")===0&&W.emit("error",Se)}function o(){W.removeListener("finish",C),v()}function C(){ne("onfinish"),W.removeListener("close",o),v()}function v(){ne("unpipe"),x.unpipe(W)}var x=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=W;break;case 1:X.pipes=[X.pipes,W];break;default:X.pipes.push(W)}X.pipesCount+=1,ne("pipe count=%d opts=%j",X.pipesCount,B);var V=(!B||B.end!==!1)&&W!==m.stdout&&W!==m.stderr,pe=V?ee:v;X.endEmitted?$.nextTick(pe):x.once("end",pe),W.on("unpipe",re);var le=w(x);W.on("drain",le);var me=!1,ge=!1;return x.on("data",P),d(W,"error",t),W.once("close",o),W.once("finish",C),W.emit("pipe",x),X.flowing||(ne("pipe resume"),x.resume()),W},e.prototype.unpipe=function(W){var B=this._readableState,re={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return W&&W!==B.pipes?this:(W||(W=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,W&&W.emit("unpipe",this,re),this);if(!W){var ee=B.pipes,ce=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var P=0;P-1?q.default:L.nextTick;r.WritableState=a;var M=n("core-util-is");M.inherits=n("inherits");var H={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),ae=n("safe-buffer").Buffer,ne=_.Uint8Array||function(){},se=n("./internal/streams/destroy");M.inherits(r,Y),a.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,J=[];Q;)J.push(Q),Q=Q.next;return J},function(){try{Object.defineProperty(a.prototype,"buffer",{get:H.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}();var fe;typeof Z.default=="function"&&te.default&&typeof Function.prototype[te.default]=="function"?(fe=Function.prototype[te.default],(0,G.default)(r,te.default,{value:function(J){return!!fe.call(this,J)||this===r&&J&&J._writableState instanceof a}})):fe=function(J){return J instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Q,J,ie){var W=this._writableState,B=!1,re=!W.objectMode&&s(Q);return re&&!ae.isBuffer(Q)&&(Q=d(Q)),typeof J=="function"&&(ie=J,J=null),re?J="buffer":J||(J=W.defaultEncoding),typeof ie!="function"&&(ie=e),W.ended?c(this,ie):(re||p(this,W,Q,ie))&&(W.pendingcb++,B=S(this,W,re,Q,J,ie)),B},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,Q.writing||Q.corked||Q.finished||Q.bufferProcessing||!Q.bufferedRequest||O(this,Q))},r.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Q,J,ie){ie(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Q,J,ie){var W=this._writableState;typeof Q=="function"?(ie=Q,Q=null,J=null):typeof J=="function"&&(ie=J,J=null),Q!=null&&this.write(Q,J),W.corked&&(W.corked=1,this.uncork()),W.ending||W.finished||U(this,W,ie)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),r.prototype.destroy=se.destroy,r.prototype._undestroy=se.undestroy,r.prototype._destroy=function(Q,J){this.end(),J(Q)}}).call(this,n("_process"),typeof je!="undefined"?je: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,k,T){"use strict";function m(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")}function _(d,s,e){d.copy(s,e)}var i=n("safe-buffer").Buffer,u=n("util");k.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,a=""+e.data;e=e.next;)a+=s+e.data;return a},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),a=this.head,r=0;a;)_(a.data,e,r),r+=a.data.length,a=a.next;return e},d}(),u&&u.inspect&&u.inspect.custom&&(k.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,k,T){"use strict";function m(d,s){var e=this,a=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return a||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(c){!s&&c?(u.nextTick(i,e,c),e._writableState&&(e._writableState.errorEmitted=!0)):s&&s(c)}),this)}function _(){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");k.exports={destroy:m,undestroy:_}},{"process-nextick-args":172}],186:[function(n,k,T){"use strict";k.exports=n("events").EventEmitter},{events:158}],187:[function(n,k,T){k.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,k,T){T=k.exports=n("./lib/_stream_readable.js"),T.Stream=T,T.Readable=T,T.Writable=n("./lib/_stream_writable.js"),T.Duplex=n("./lib/_stream_duplex.js"),T.Transform=n("./lib/_stream_transform.js"),T.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,k,T){k.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,k,T){k.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,k,T){var m=function(){return this}()||Function("return this")(),_=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,i=_&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,k.exports=n("./runtime"),_)m.regeneratorRuntime=i;else try{delete m.regeneratorRuntime}catch(u){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,k,T){!function(m){"use strict";function _(q,L,j,F){var M=L&&L.prototype instanceof u?L:u,H=Object.create(M.prototype),Y=new S(F||[]);return H._invoke=r(q,j,Y),H}function i(q,L,j){try{return{type:"normal",arg:q.call(L,j)}}catch(F){return{type:"throw",arg:F}}}function u(){}function d(){}function s(){}function e(q){["next","throw","return"].forEach(function(L){q[L]=function(j){return this._invoke(L,j)}})}function a(q){function L(M,H,Y,ae){var ne=i(q[M],q,H);if(ne.type!=="throw"){var se=ne.arg,fe=se.value;return fe&&typeof fe=="object"&&h.call(fe,"__await")?Promise.resolve(fe.__await).then(function(Q){L("next",Q,Y,ae)},function(Q){L("throw",Q,Y,ae)}):Promise.resolve(fe).then(function(Q){se.value=Q,Y(se)},ae)}ae(ne.arg)}function j(M,H){function Y(){return new Promise(function(ae,ne){L(M,H,ae,ne)})}return F=F?F.then(Y,Y):Y()}var F;this._invoke=j}function r(q,L,j){var F=U;return function(M,H){if(F===N)throw new Error("Generator is already running");if(F===G){if(M==="throw")throw H;return f()}for(j.method=M,j.arg=H;;){var Y=j.delegate;if(Y){var ae=c(Y,j);if(ae){if(ae===K)continue;return ae}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===U)throw F=G,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=N;var ne=i(q,L,j);if(ne.type==="normal"){if(F=j.done?G:D,ne.arg===K)continue;return{value:ne.arg,done:j.done}}ne.type==="throw"&&(F=G,j.method="throw",j.arg=ne.arg)}}}function c(q,L){var j=q.iterator[L.method];if(j===A){if(L.delegate=null,L.method==="throw"){if(q.iterator.return&&(L.method="return",L.arg=A,c(q,L),L.method==="throw"))return K;L.method="throw",L.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}var F=i(j,q.iterator,L.arg);if(F.type==="throw")return L.method="throw",L.arg=F.arg,L.delegate=null,K;var M=F.arg;return M?M.done?(L[q.resultName]=M.value,L.next=q.nextLoc,L.method!=="return"&&(L.method="next",L.arg=A),L.delegate=null,K):M:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,K)}function p(q){var L={tryLoc:q[0]};1 in q&&(L.catchLoc=q[1]),2 in q&&(L.finallyLoc=q[2],L.afterLoc=q[3]),this.tryEntries.push(L)}function l(q){var L=q.completion||{};L.type="normal",delete L.arg,q.completion=L}function S(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(p,this),this.reset(!0)}function E(q){if(q){var L=q[O];if(L)return L.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var j=-1,F=function M(){for(;++j=0;--M){var H=this.tryEntries[M],Y=H.completion;if(H.tryLoc==="root")return j("end");if(H.tryLoc<=this.prev){var ae=h.call(H,"catchLoc"),ne=h.call(H,"finallyLoc");if(ae&&ne){if(this.prev=0;--F){var M=this.tryEntries[F];if(M.tryLoc<=this.prev&&h.call(M,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===L)return this.complete(F.completion,F.afterLoc),l(F),K}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===L){var M=F.completion;if(M.type==="throw"){var H=M.arg;l(F)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(L,j,F){return this.delegate={iterator:E(L),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=A),K}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,k,T){function m(d,s){for(var e in d)s[e]=d[e]}function _(d,s,e){return u(d,s,e)}var i=n("buffer"),u=i.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?k.exports=i:(m(i,T),T.Buffer=_),m(u,_),_.from=function(d,s,e){if(typeof d=="number")throw new TypeError("Argument must not be a number");return u(d,s,e)},_.alloc=function(d,s,e){if(typeof d!="number")throw new TypeError("Argument must be a number");var a=u(d);return s!==void 0?typeof e=="string"?a.fill(s,e):a.fill(s):a.fill(0),a},_.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return u(d)},_.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(d)}},{buffer:38}],194:[function(n,k,T){(function(m){"use strict";function _(f){return f&&f.__esModule?f:{default:f}}var i=n("babel-runtime/core-js/string/from-code-point"),u=_(i),d=n("babel-runtime/core-js/json/stringify"),s=_(d),e=n("babel-runtime/helpers/typeof"),a=_(e),r=n("babel-runtime/core-js/object/define-property"),c=_(r),p=n("babel-runtime/core-js/object/keys"),l=_(p),S=n("babel-runtime/core-js/object/create"),E=_(S);!function(f){function A(v,x){if(!(this instanceof A))return new A(v,x);var X=this;h(X),X.q=X.c="",X.bufferCheckPosition=f.MAX_BUFFER_LENGTH,X.opt=x||{},X.opt.lowercase=X.opt.lowercase||X.opt.lowercasetags,X.looseCase=X.opt.lowercase?"toLowerCase":"toUpperCase",X.tags=[],X.closed=X.closedRoot=X.sawRoot=!1,X.tag=X.error=null,X.strict=!!v,X.noscript=!(!v&&!X.opt.noscript),X.state=o.BEGIN,X.strictEntities=X.opt.strictEntities,X.ENTITIES=X.strictEntities?(0,E.default)(f.XML_ENTITIES):(0,E.default)(f.ENTITIES),X.attribList=[],X.opt.xmlns&&(X.ns=(0,E.default)(re)),X.trackPosition=X.opt.position!==!1,X.trackPosition&&(X.position=X.line=X.column=0),N(X,"onready")}function g(v){for(var x=Math.max(f.MAX_BUFFER_LENGTH,10),X=0,V=0,pe=se.length;Vx)switch(se[V]){case"textNode":K(v);break;case"cdata":G(v,"oncdata",v.cdata),v.cdata="";break;case"script":G(v,"onscript",v.script),v.script="";break;default:z(v,"Max buffer length exceeded: "+se[V])}X=Math.max(X,le)}var me=f.MAX_BUFFER_LENGTH-X;v.bufferCheckPosition=me+v.position}function h(v){for(var x=0,X=se.length;x"||b(v)}function U(v,x){return v.test(x)}function D(v,x){return!U(v,x)}function N(v,x,X){v[x]&&v[x](X)}function G(v,x,X){v.textNode&&K(v),N(v,x,X)}function K(v){v.textNode=te(v.opt,v.textNode),v.textNode&&N(v,"ontext",v.textNode),v.textNode=""}function te(v,x){return v.trim&&(x=x.trim()),v.normalize&&(x=x.replace(/\s+/g," ")),x}function z(v,x){return K(v),v.trackPosition&&(x+=` +`)},T.computeSignature=function(r,c){return e.createHmac("sha1",r).update(new m(c,"utf8")).digest("base64")},T.authorization=function(r,c,p){return"OSS "+r+":"+this.computeSignature(c,p)},T._signatureForURL=function(r,c,p,l){var S={},E={};if(c.process&&(E["x-oss-process"]=c.process),c.response&&(0,s.default)(c.response).forEach(function(h){var w="response-"+h.toLowerCase();E[w]=c.response[h]}),(0,s.default)(c).forEach(function(h){var w=h.toLowerCase(),O=c[h];w.indexOf("x-oss-")===0?S[w]=O:w.indexOf("content-md5")===0||w.indexOf("content-type")===0?S[h]=O:w!=="expires"&&w!=="response"&&w!=="process"&&w!=="method"&&(E[w]=O)}),Object.prototype.hasOwnProperty.call(c,"security-token")&&(E["security-token"]=c["security-token"]),Object.prototype.hasOwnProperty.call(c,"callback")){var f={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};if(c.callback.host&&(f.callbackHost=c.callback.host),c.callback.contentType&&(f.callbackBodyType=c.callback.contentType),E.callback=new m((0,u.default)(f)).toString("base64"),c.callback.customValue){var A={};(0,s.default)(c.callback.customValue).forEach(function(h){A["x:"+h]=c.callback.customValue[h]}),E["callback-var"]=new m((0,u.default)(A)).toString("base64")}}var g=this.buildCanonicalString(c.method,p,{headers:S,parameters:E},l.toString());return{Signature:this.computeSignature(r,g),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,k,T){"use strict";var m=n("babel-runtime/regenerator"),_=function(e){return e&&e.__esModule?e:{default:e}}(m),i=n("co"),u=n("co-priority-queue"),d=n("any-promise"),s=T;s._thunkPool=function(e,a){function r(E,f){++l===E.length&&f(S)}function c(E,f){function A(){var b;return _.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:b=void 0;case 1:if(p.isCancel()){I.next=9;break}return I.next=4,w.next();case 4:return b=I.sent,I.next=7,b();case 7:I.next=1;break;case 9:O+=1,O===E&&(w.fns=[],w.buffer=[],f(S));case 11:case"end":return I.stop()}},h,this)}function g(b){console.error(b.stack)}for(var h=_.default.mark(A),w=new u,O=0,R=0;R0)throw new Error("Invalid string. Length must be a multiple of 4");var A=E.indexOf("=");return A===-1&&(A=f),[A,A===f?0:4-A%4]}function _(E){var f=m(E),A=f[0],g=f[1];return 3*(A+g)/4-g}function i(E,f,A){return 3*(f+A)/4-A}function u(E){for(var f,A=m(E),g=A[0],h=A[1],w=new c(i(E,g,h)),O=0,R=h>0?g-4:g,b=0;b>16&255,w[O++]=f>>8&255,w[O++]=255&f;return h===2&&(f=r[E.charCodeAt(b)]<<2|r[E.charCodeAt(b+1)]>>4,w[O++]=255&f),h===1&&(f=r[E.charCodeAt(b)]<<10|r[E.charCodeAt(b+1)]<<4|r[E.charCodeAt(b+2)]>>2,w[O++]=f>>8&255,w[O++]=255&f),w}function d(E){return a[E>>18&63]+a[E>>12&63]+a[E>>6&63]+a[63&E]}function s(E,f,A){for(var g,h=[],w=f;wO?O:w+16383));return g===1?(f=E[A-1],h.push(a[f>>2]+a[f<<4&63]+"==")):g===2&&(f=(E[A-2]<<8)+E[A-1],h.push(a[f>>10]+a[f>>4&63]+a[f<<2&63]+"=")),h.join("")}T.byteLength=_,T.toByteArray=u,T.fromByteArray=e;for(var a=[],r=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,S=p.length;l1&&L[1]||""}function p(q){var L=r.match(q);return L&&L.length>1&&L[2]||""}var l,S=c(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),f=!E&&/android/i.test(r),A=/nexus\s*[0-6]\s*/i.test(r),g=!A&&/nexus\s*[0-9]+/i.test(r),h=/CrOS/.test(r),w=/silk/i.test(r),O=/sailfish/i.test(r),R=/tizen/i.test(r),b=/(web|hpw)os/i.test(r),I=/windows phone/i.test(r),y=(/SamsungBrowser/i.test(r),!I&&/windows/i.test(r)),U=!S&&!w&&/macintosh/i.test(r),j=!f&&!O&&!R&&!b&&/linux/i.test(r),N=p(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=c(/version\/(\d+(\.\d+)?)/i),K=/tablet/i.test(r)&&!/tablet pc/i.test(r),te=!K&&/[^-]mobi/i.test(r),z=/xbox/i.test(r);/opera/i.test(r)?l={name:"Opera",opera:e,version:G||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?l={name:"Opera",opera:e,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(r)?l={name:"Samsung Internet for Android",samsungBrowser:e,version:G||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?l={name:"Opera Coast",coast:e,version:G||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?l={name:"Yandex Browser",yandexbrowser:e,version:G||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?l={name:"UC Browser",ucbrowser:e,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?l={name:"Maxthon",maxthon:e,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?l={name:"Epiphany",epiphany:e,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?l={name:"Puffin",puffin:e,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?l={name:"Sleipnir",sleipnir:e,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?l={name:"K-Meleon",kMeleon:e,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:I?(l={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},N?(l.msedge=e,l.version=N):(l.msie=e,l.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?l={name:"Internet Explorer",msie:e,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?l={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?l={name:"Microsoft Edge",msedge:e,version:N}:/vivaldi/i.test(r)?l={name:"Vivaldi",vivaldi:e,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||G}:O?l={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?l={name:"SeaMonkey",seamonkey:e,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(l={name:"Firefox",firefox:e,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(l.firefoxos=e,l.osname="Firefox OS")):w?l={name:"Amazon Silk",silk:e,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?l={name:"PhantomJS",phantom:e,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?l={name:"SlimerJS",slimer:e,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?l={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:G||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(l={name:"WebOS",osname:"WebOS",webos:e,version:G||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(l.touchpad=e)):/bada/i.test(r)?l={name:"Bada",osname:"Bada",bada:e,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:R?l={name:"Tizen",osname:"Tizen",tizen:e,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(r)?l={name:"QupZilla",qupzilla:e,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(r)?l={name:"Chromium",chromium:e,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(r)?l={name:"Chrome",chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?l={name:"Android",version:G}:/safari|applewebkit/i.test(r)?(l={name:"Safari",safari:e},G&&(l.version=G)):S?(l={name:S=="iphone"?"iPhone":S=="ipad"?"iPad":"iPod"},G&&(l.version=G)):l=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:c(/googlebot\/(\d+(\.\d+))/i)||G}:{name:c(/^(.*)\/(.*) /),version:p(/^(.*)\/(.*) /)},!l.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(l.name=l.name||"Blink",l.blink=e):(l.name=l.name||"Webkit",l.webkit=e),!l.version&&G&&(l.version=G)):!l.opera&&/gecko\//i.test(r)&&(l.name=l.name||"Gecko",l.gecko=e,l.version=l.version||c(/gecko\/(\d+(\.\d+)?)/i)),l.windowsphone||!f&&!l.silk?!l.windowsphone&&S?(l[S]=e,l.ios=e,l.osname="iOS"):U?(l.mac=e,l.osname="macOS"):z?(l.xbox=e,l.osname="Xbox"):y?(l.windows=e,l.osname="Windows"):j&&(l.linux=e,l.osname="Linux"):(l.android=e,l.osname="Android");var Z="";l.windows?Z=function(q){switch(q){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}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):l.windowsphone?Z=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):l.mac?(Z=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),Z=Z.replace(/[_\s]/g,".")):S?(Z=c(/os (\d+([_\s]\d+)*) like mac os x/i),Z=Z.replace(/[_\s]/g,".")):f?Z=c(/android[ \/-](\d+(\.\d+)*)/i):l.webos?Z=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):l.blackberry?Z=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):l.bada?Z=c(/bada\/(\d+(\.\d+)*)/i):l.tizen&&(Z=c(/tizen[\/\s](\d+(\.\d+)*)/i)),Z&&(l.osversion=Z);var $=!l.windows&&Z.split(".")[0];return K||g||S=="ipad"||f&&($==3||$>=4&&!te)||l.silk?l.tablet=e:(te||S=="iphone"||S=="ipod"||f||A||l.blackberry||l.webos||l.bada)&&(l.mobile=e),l.msedge||l.msie&&l.version>=10||l.yandexbrowser&&l.version>=15||l.vivaldi&&l.version>=1||l.chrome&&l.version>=20||l.samsungBrowser&&l.version>=4||l.firefox&&l.version>=20||l.safari&&l.version>=6||l.opera&&l.version>=10||l.ios&&l.osversion&&l.osversion.split(".")[0]>=6||l.blackberry&&l.version>=10.1||l.chromium&&l.version>=20?l.a=e:l.msie&&l.version<10||l.chrome&&l.version<20||l.firefox&&l.version<20||l.safari&&l.version<6||l.opera&&l.version<10||l.ios&&l.osversion&&l.osversion.split(".")[0]<6||l.chromium&&l.version<20?l.c=e:l.x=e,l}function _(r){return r.split(".").length}function i(r,c){var p,l=[];if(Array.prototype.map)return Array.prototype.map.call(r,c);for(p=0;p=0;){if(p[0][c]>p[1][c])return 1;if(p[0][c]!==p[1][c])return-1;if(c===0)return 0}}function d(r,c,p){var l=a;typeof c=="string"&&(p=c,c=void 0),c===void 0&&(c=!1),p&&(l=m(p));var S=""+l.version;for(var E in r)if(r.hasOwnProperty(E)&&l[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return u([S,r[E]])<0}return c}function s(r,c,p){return!d(r,c,p)}var e=!0,a=m(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(r){for(var c=0;c=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&l<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(a);var p=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,p),p-=this.charReceived),r+=a.toString(this.encoding,0,p);var p=r.length-1,l=r.charCodeAt(p);if(l>=55296&&l<=56319){var S=this.surrogateSize;return this.charLength+=S,this.charReceived+=S,this.charBuffer.copy(this.charBuffer,S,0,S),a.copy(this.charBuffer,0,0,S),r.substring(0,p)}return r},e.prototype.detectIncompleteChar=function(a){for(var r=a.length>=3?3:a.length;r>0;r--){var c=a[a.length-r];if(r==1&&c>>5==6){this.charLength=2;break}if(r<=2&&c>>4==14){this.charLength=3;break}if(r<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(a){var r="";if(a&&a.length&&(r=this.write(a)),this.charReceived){var c=this.charReceived,p=this.charBuffer,l=this.encoding;r+=p.slice(0,c).toString(l)}return r}},{buffer:38}],38:[function(n,k,T){(function(m){"use strict";function _(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,o){if(_()=_())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),u.alloc(+t)}function f(t,o){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 v=!1;;)switch(o){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":case void 0:return se(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return J(t).length;default:if(v)return se(t).length;o=(""+o).toLowerCase(),v=!0}}function A(t,o,C){var v=!1;if((o===void 0||o<0)&&(o=0),o>this.length)return"";if((C===void 0||C>this.length)&&(C=this.length),C<=0)return"";if(C>>>=0,o>>>=0,C<=o)return"";for(t||(t="utf8");;)switch(t){case"hex":return z(this,o,C);case"utf8":case"utf-8":return N(this,o,C);case"ascii":return K(this,o,C);case"latin1":case"binary":return te(this,o,C);case"base64":return j(this,o,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,o,C);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}function g(t,o,C){var v=t[o];t[o]=t[C],t[C]=v}function h(t,o,C,v,x){if(t.length===0)return-1;if(typeof C=="string"?(v=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,isNaN(C)&&(C=x?0:t.length-1),C<0&&(C=t.length+C),C>=t.length){if(x)return-1;C=t.length-1}else if(C<0){if(!x)return-1;C=0}if(typeof o=="string"&&(o=u.from(o,v)),u.isBuffer(o))return o.length===0?-1:w(t,o,C,v,x);if(typeof o=="number")return o&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(t,o,C):Uint8Array.prototype.lastIndexOf.call(t,o,C):w(t,[o],C,v,x);throw new TypeError("val must be string, number or Buffer")}function w(t,o,C,v,x){function X(ue,xe){return V===1?ue[xe]:ue.readUInt16BE(xe*V)}var V=1,pe=t.length,le=o.length;if(v!==void 0&&((v=String(v).toLowerCase())==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||o.length<2)return-1;V=2,pe/=2,le/=2,C/=2}var me;if(x){var ge=-1;for(me=C;mepe&&(C=pe-le),me=C;me>=0;me--){for(var Te=!0,Pe=0;Pex&&(v=x):v=x;var X=o.length;if(X%2!=0)throw new TypeError("Invalid hex string");v>X/2&&(v=X/2);for(var V=0;V239?4:X>223?3:X>191?2:1;if(x+pe<=C){var le,me,ge,Te;switch(pe){case 1:X<128&&(V=X);break;case 2:le=t[x+1],(192&le)==128&&(Te=(31&X)<<6|63&le)>127&&(V=Te);break;case 3:le=t[x+1],me=t[x+2],(192&le)==128&&(192&me)==128&&(Te=(15&X)<<12|(63&le)<<6|63&me)>2047&&(Te<55296||Te>57343)&&(V=Te);break;case 4:le=t[x+1],me=t[x+2],ge=t[x+3],(192&le)==128&&(192&me)==128&&(192&ge)==128&&(Te=(15&X)<<18|(63&le)<<12|(63&me)<<6|63&ge)>65535&&Te<1114112&&(V=Te)}}V===null?(V=65533,pe=1):V>65535&&(V-=65536,v.push(V>>>10&1023|55296),V=56320|1023&V),v.push(V),x+=pe}return G(v)}function G(t){var o=t.length;if(o<=ce)return String.fromCharCode.apply(String,t);for(var C="",v=0;vv)&&(C=v);for(var x="",X=o;XC)throw new RangeError("Trying to access beyond buffer length")}function q(t,o,C,v,x,X){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>x||ot.length)throw new RangeError("Index out of range")}function L(t,o,C,v){o<0&&(o=65535+o+1);for(var x=0,X=Math.min(t.length-C,2);x>>8*(v?x:1-x)}function D(t,o,C,v){o<0&&(o=4294967295+o+1);for(var x=0,X=Math.min(t.length-C,4);x>>8*(v?x:3-x)&255}function F(t,o,C,v,x,X){if(C+v>t.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function M(t,o,C,v,x){return x||F(t,o,C,4,34028234663852886e22,-34028234663852886e22),re.write(t,o,C,v,23,4),C+4}function H(t,o,C,v,x){return x||F(t,o,C,8,17976931348623157e292,-17976931348623157e292),re.write(t,o,C,v,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 ne(t){return t<16?"0"+t.toString(16):t.toString(16)}function se(t,o){o=o||1/0;for(var C,v=t.length,x=null,X=[],V=0;V55295&&C<57344){if(!x){if(C>56319){(o-=3)>-1&&X.push(239,191,189);continue}if(V+1===v){(o-=3)>-1&&X.push(239,191,189);continue}x=C;continue}if(C<56320){(o-=3)>-1&&X.push(239,191,189),x=C;continue}C=65536+(x-55296<<10|C-56320)}else x&&(o-=3)>-1&&X.push(239,191,189);if(x=null,C<128){if((o-=1)<0)break;X.push(C)}else if(C<2048){if((o-=2)<0)break;X.push(C>>6|192,63&C|128)}else if(C<65536){if((o-=3)<0)break;X.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((o-=4)<0)break;X.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return X}function fe(t){for(var o=[],C=0;C>8,x=C%256,X.push(x),X.push(v);return X}function J(t){return B.toByteArray(Y(t))}function ie(t,o,C,v){for(var x=0;x=o.length||x>=t.length);++x)o[x+C]=t[x];return x}function W(t){return t!==t}var B=n("base64-js"),re=n("ieee754"),ee=n("isarray");T.Buffer=u,T.SlowBuffer=E,T.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(o){return!1}}(),T.kMaxLength=_(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,o,C){return d(null,t,o,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,o,C){return e(null,t,o,C)},u.allocUnsafe=function(t){return a(null,t)},u.allocUnsafeSlow=function(t){return a(null,t)},u.isBuffer=function(t){return!(t==null||!t._isBuffer)},u.compare=function(t,o){if(!u.isBuffer(t)||!u.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(t===o)return 0;for(var C=t.length,v=o.length,x=0,X=Math.min(C,v);x0&&(t=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(t+=" ... ")),""},u.prototype.compare=function(t,o,C,v,x){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(o===void 0&&(o=0),C===void 0&&(C=t?t.length:0),v===void 0&&(v=0),x===void 0&&(x=this.length),o<0||C>t.length||v<0||x>this.length)throw new RangeError("out of range index");if(v>=x&&o>=C)return 0;if(v>=x)return-1;if(o>=C)return 1;if(o>>>=0,C>>>=0,v>>>=0,x>>>=0,this===t)return 0;for(var X=x-v,V=C-o,pe=Math.min(X,V),le=this.slice(v,x),me=t.slice(o,C),ge=0;gex)&&(C=x),t.length>0&&(C<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var X=!1;;)switch(v){case"hex":return O(this,t,o,C);case"utf8":case"utf-8":return R(this,t,o,C);case"ascii":return b(this,t,o,C);case"latin1":case"binary":return I(this,t,o,C);case"base64":return y(this,t,o,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,o,C);default:if(X)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),X=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ce=4096;u.prototype.slice=function(t,o){var C=this.length;t=~~t,o=o===void 0?C:~~o,t<0?(t+=C)<0&&(t=0):t>C&&(t=C),o<0?(o+=C)<0&&(o=0):o>C&&(o=C),o0&&(x*=256);)v+=this[t+--o]*x;return v},u.prototype.readUInt8=function(t,o){return o||$(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,o){return o||$(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,o){return o||$(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,o){return o||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,o){return o||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,o,C){t|=0,o|=0,C||$(t,o,this.length);for(var v=this[t],x=1,X=0;++X=x&&(v-=Math.pow(2,8*o)),v},u.prototype.readIntBE=function(t,o,C){t|=0,o|=0,C||$(t,o,this.length);for(var v=o,x=1,X=this[t+--v];v>0&&(x*=256);)X+=this[t+--v]*x;return x*=128,X>=x&&(X-=Math.pow(2,8*o)),X},u.prototype.readInt8=function(t,o){return o||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,o){o||$(t,2,this.length);var C=this[t]|this[t+1]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt16BE=function(t,o){o||$(t,2,this.length);var C=this[t+1]|this[t]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt32LE=function(t,o){return o||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,o){return o||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,o){return o||$(t,4,this.length),re.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,o){return o||$(t,4,this.length),re.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,o){return o||$(t,8,this.length),re.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,o){return o||$(t,8,this.length),re.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,o,C,v){(t=+t,o|=0,C|=0,!v)&&q(this,t,o,C,Math.pow(2,8*C)-1,0);var x=1,X=0;for(this[o]=255&t;++X=0&&(X*=256);)this[o+x]=t/X&255;return o+C},u.prototype.writeUInt8=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[o]=255&t,o+1},u.prototype.writeUInt16LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8):L(this,t,o,!0),o+2},u.prototype.writeUInt16BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=255&t):L(this,t,o,!1),o+2},u.prototype.writeUInt32LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[o+3]=t>>>24,this[o+2]=t>>>16,this[o+1]=t>>>8,this[o]=255&t):D(this,t,o,!0),o+4},u.prototype.writeUInt32BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=255&t):D(this,t,o,!1),o+4},u.prototype.writeIntLE=function(t,o,C,v){if(t=+t,o|=0,!v){var x=Math.pow(2,8*C-1);q(this,t,o,C,x-1,-x)}var X=0,V=1,pe=0;for(this[o]=255&t;++X>0)-pe&255;return o+C},u.prototype.writeIntBE=function(t,o,C,v){if(t=+t,o|=0,!v){var x=Math.pow(2,8*C-1);q(this,t,o,C,x-1,-x)}var X=C-1,V=1,pe=0;for(this[o+X]=255&t;--X>=0&&(V*=256);)t<0&&pe===0&&this[o+X+1]!==0&&(pe=1),this[o+X]=(t/V>>0)-pe&255;return o+C},u.prototype.writeInt8=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[o]=255&t,o+1},u.prototype.writeInt16LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8):L(this,t,o,!0),o+2},u.prototype.writeInt16BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=255&t):L(this,t,o,!1),o+2},u.prototype.writeInt32LE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[o]=255&t,this[o+1]=t>>>8,this[o+2]=t>>>16,this[o+3]=t>>>24):D(this,t,o,!0),o+4},u.prototype.writeInt32BE=function(t,o,C){return t=+t,o|=0,C||q(this,t,o,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=255&t):D(this,t,o,!1),o+4},u.prototype.writeFloatLE=function(t,o,C){return M(this,t,o,!0,C)},u.prototype.writeFloatBE=function(t,o,C){return M(this,t,o,!1,C)},u.prototype.writeDoubleLE=function(t,o,C){return H(this,t,o,!0,C)},u.prototype.writeDoubleBE=function(t,o,C){return H(this,t,o,!1,C)},u.prototype.copy=function(t,o,C,v){if(C||(C=0),v||v===0||(v=this.length),o>=t.length&&(o=t.length),o||(o=0),v>0&&v=this.length)throw new RangeError("sourceStart out of bounds");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-o=0;--x)t[x+o]=this[x+C];else if(X<1e3||!u.TYPED_ARRAY_SUPPORT)for(x=0;x>>=0,C=C===void 0?this.length:C>>>0,t||(t=0);var X;if(typeof t=="number")for(X=o;X>>1;s(u[r])2&&(A=c.call(arguments,1)),S(A)})})}function u(p){return Promise.all(p.map(_,this))}function d(p){for(var l=new p.constructor,S=Object.keys(p),E=[],f=0;fp;)if((a=r[p++])!=a)return!0}else for(;c>p;p++)if((u||p in r)&&r[p]===s)return u||p||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,k,T){var m=n("./_cof"),_=n("./_wks")("toStringTag"),i=m(function(){return arguments}())=="Arguments",u=function(s,e){try{return s[e]}catch(a){}};k.exports=function(d){var s,e,a;return d===void 0?"Undefined":d===null?"Null":typeof(e=u(s=Object(d),_))=="string"?e:i?m(s):(a=m(s))=="Object"&&typeof s.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(n,k,T){var m={}.toString;k.exports=function(_){return m.call(_).slice(8,-1)}},{}],65:[function(n,k,T){var m=k.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(n,k,T){"use strict";var m=n("./_object-dp"),_=n("./_property-desc");k.exports=function(i,u,d){u in i?m.f(i,u,_(0,d)):i[u]=d}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,k,T){var m=n("./_a-function");k.exports=function(_,i,u){if(m(_),i===void 0)return _;switch(u){case 1:return function(d){return _.call(i,d)};case 2:return function(d,s){return _.call(i,d,s)};case 3:return function(d,s,e){return _.call(i,d,s,e)}}return function(){return _.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,k,T){k.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(n,k,T){k.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,k,T){var m=n("./_is-object"),_=n("./_global").document,i=m(_)&&m(_.createElement);k.exports=function(u){return i?_.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,k,T){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,k,T){var m=n("./_object-keys"),_=n("./_object-gops"),i=n("./_object-pie");k.exports=function(u){var d=m(u),s=_.f;if(s)for(var e,a=s(u),r=i.f,c=0;a.length>c;)r.call(u,e=a[c++])&&d.push(e);return d}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,k,T){var m=n("./_global"),_=n("./_core"),i=n("./_ctx"),u=n("./_hide"),d=n("./_has"),s=function e(a,r,c){var p,l,S,E=a&e.F,f=a&e.G,A=a&e.S,g=a&e.P,h=a&e.B,w=a&e.W,O=f?_:_[r]||(_[r]={}),R=O.prototype,b=f?m:A?m[r]:(m[r]||{}).prototype;f&&(c=r);for(p in c)(l=!E&&b&&b[p]!==void 0)&&d(O,p)||(S=l?b[p]:c[p],O[p]=f&&typeof b[p]!="function"?c[p]:h&&l?i(S,m):w&&b[p]==S?function(I){var y=function(j,N,G){if(this instanceof I){switch(arguments.length){case 0:return new I;case 1:return new I(j);case 2:return new I(j,N)}return new I(j,N,G)}return I.apply(this,arguments)};return y.prototype=I.prototype,y}(S):g&&typeof S=="function"?i(Function.call,S):S,g&&((O.virtual||(O.virtual={}))[p]=S,a&e.R&&R&&!R[p]&&u(R,p,S)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,k.exports=s},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,k,T){k.exports=function(m){try{return!!m()}catch(_){return!0}}},{}],75:[function(n,k,T){var m=n("./_ctx"),_=n("./_iter-call"),i=n("./_is-array-iter"),u=n("./_an-object"),d=n("./_to-length"),s=n("./core.get-iterator-method"),e={},a={},T=k.exports=function(r,c,p,l,S){var E,f,A,g,h=S?function(){return r}:s(r),w=m(p,l,c?2:1),O=0;if(typeof h!="function")throw TypeError(r+" is not iterable!");if(i(h)){for(E=d(r.length);E>O;O++)if((g=c?w(u(f=r[O])[0],f[1]):w(r[O]))===e||g===a)return g}else for(A=h.call(r);!(f=A.next()).done;)if((g=_(A,w,f.value,c))===e||g===a)return g};T.BREAK=e,T.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,k,T){var m=k.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,k,T){var m={}.hasOwnProperty;k.exports=function(_,i){return m.call(_,i)}},{}],78:[function(n,k,T){var m=n("./_object-dp"),_=n("./_property-desc");k.exports=n("./_descriptors")?function(i,u,d){return m.f(i,u,_(1,d))}:function(i,u,d){return i[u]=d,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,k,T){var m=n("./_global").document;k.exports=m&&m.documentElement},{"./_global":76}],80:[function(n,k,T){k.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,k,T){k.exports=function(m,_,i){var u=i===void 0;switch(_.length){case 0:return u?m():m.call(i);case 1:return u?m(_[0]):m.call(i,_[0]);case 2:return u?m(_[0],_[1]):m.call(i,_[0],_[1]);case 3:return u?m(_[0],_[1],_[2]):m.call(i,_[0],_[1],_[2]);case 4:return u?m(_[0],_[1],_[2],_[3]):m.call(i,_[0],_[1],_[2],_[3])}return m.apply(i,_)}},{}],82:[function(n,k,T){var m=n("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(_){return m(_)=="String"?_.split(""):Object(_)}},{"./_cof":64}],83:[function(n,k,T){var m=n("./_iterators"),_=n("./_wks")("iterator"),i=Array.prototype;k.exports=function(u){return u!==void 0&&(m.Array===u||i[_]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(n,k,T){var m=n("./_cof");k.exports=Array.isArray||function(_){return m(_)=="Array"}},{"./_cof":64}],85:[function(n,k,T){k.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(n,k,T){var m=n("./_an-object");k.exports=function(_,i,u,d){try{return d?i(m(u)[0],u[1]):i(u)}catch(e){var s=_.return;throw s!==void 0&&m(s.call(_)),e}}},{"./_an-object":61}],87:[function(n,k,T){"use strict";var m=n("./_object-create"),_=n("./_property-desc"),i=n("./_set-to-string-tag"),u={};n("./_hide")(u,n("./_wks")("iterator"),function(){return this}),k.exports=function(d,s,e){d.prototype=m(u,{next:_(1,e)}),i(d,s+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,k,T){"use strict";var m=n("./_library"),_=n("./_export"),i=n("./_redefine"),u=n("./_hide"),d=n("./_iterators"),s=n("./_iter-create"),e=n("./_set-to-string-tag"),a=n("./_object-gpo"),r=n("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),p=function(){return this};k.exports=function(l,S,E,f,A,g,h){s(E,S,f);var w,O,R,b=function(Z){if(!c&&Z in j)return j[Z];switch(Z){case"keys":case"values":return function(){return new E(this,Z)}}return function(){return new E(this,Z)}},I=S+" Iterator",y=A=="values",U=!1,j=l.prototype,N=j[r]||j["@@iterator"]||A&&j[A],G=N||b(A),K=A?y?b("entries"):G:void 0,te=S=="Array"&&j.entries||N;if(te&&(R=a(te.call(new l)))!==Object.prototype&&R.next&&(e(R,I,!0),m||typeof R[r]=="function"||u(R,r,p)),y&&N&&N.name!=="values"&&(U=!0,G=function(){return N.call(this)}),m&&!h||!c&&!U&&j[r]||u(j,r,G),d[S]=G,d[I]=p,A)if(w={values:y?G:b("values"),keys:g?G:b("keys"),entries:K},h)for(O in w)O in j||i(j,O,w[O]);else _(_.P+_.F*(c||U),S,w);return w}},{"./_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,k,T){var m=n("./_wks")("iterator"),_=!1;try{var i=[7][m]();i.return=function(){_=!0},Array.from(i,function(){throw 2})}catch(u){}k.exports=function(u,d){if(!d&&!_)return!1;var s=!1;try{var e=[7],a=e[m]();a.next=function(){return{done:s=!0}},e[m]=function(){return a},u(e)}catch(r){}return s}},{"./_wks":131}],90:[function(n,k,T){k.exports=function(m,_){return{value:_,done:!!m}}},{}],91:[function(n,k,T){k.exports={}},{}],92:[function(n,k,T){k.exports=!0},{}],93:[function(n,k,T){var m=n("./_uid")("meta"),_=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({}))}),a=function(E){u(E,m,{value:{i:"O"+ ++d,w:{}}})},r=function(E,f){if(!_(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!i(E,m)){if(!s(E))return"F";if(!f)return"E";a(E)}return E[m].i},c=function(E,f){if(!i(E,m)){if(!s(E))return!0;if(!f)return!1;a(E)}return E[m].w},p=function(E){return e&&l.NEED&&s(E)&&!i(E,m)&&a(E),E},l=k.exports={KEY:m,NEED:!1,fastKey:r,getWeak:c,onFreeze:p}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,k,T){var m=n("./_global"),_=n("./_task").set,i=m.MutationObserver||m.WebKitMutationObserver,u=m.process,d=m.Promise,s=n("./_cof")(u)=="process";k.exports=function(){var e,a,r,c=function(){var f,A;for(s&&(f=u.domain)&&f.exit();e;){A=e.fn,e=e.next;try{A()}catch(g){throw e?r():a=void 0,g}}a=void 0,f&&f.enter()};if(s)r=function(){u.nextTick(c)};else if(!i||m.navigator&&m.navigator.standalone)if(d&&d.resolve){var p=d.resolve(void 0);r=function(){p.then(c)}}else r=function(){_.call(m,c)};else{var l=!0,S=document.createTextNode("");new i(c).observe(S,{characterData:!0}),r=function(){S.data=l=!l}}return function(E){var f={fn:E,next:void 0};a&&(a.next=f),e||(e=f,r()),a=f}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,k,T){"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=_(u),this.reject=_(d)}var _=n("./_a-function");k.exports.f=function(i){return new m(i)}},{"./_a-function":58}],96:[function(n,k,T){"use strict";var m=n("./_object-keys"),_=n("./_object-gops"),i=n("./_object-pie"),u=n("./_to-object"),d=n("./_iobject"),s=Object.assign;k.exports=!s||n("./_fails")(function(){var e={},a={},r=Symbol(),c="abcdefghijklmnopqrst";return e[r]=7,c.split("").forEach(function(p){a[p]=p}),s({},e)[r]!=7||Object.keys(s({},a)).join("")!=c})?function(e,a){for(var r=u(e),c=arguments.length,p=1,l=_.f,S=i.f;c>p;)for(var E,f=d(arguments[p++]),A=l?m(f).concat(l(f)):m(f),g=A.length,h=0;g>h;)S.call(f,E=A[h++])&&(r[E]=f[E]);return r}:s},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,k,T){var m=n("./_an-object"),_=n("./_object-dps"),i=n("./_enum-bug-keys"),u=n("./_shared-key")("IE_PROTO"),d=function(){},s=function(){var a,r=n("./_dom-create")("iframe"),c=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",a=r.contentWindow.document,a.open(),a.write(""),a.close(),s=a.F;c--;)delete s.prototype[i[c]];return s()};k.exports=Object.create||function(e,a){var r;return e!==null?(d.prototype=m(e),r=new d,d.prototype=null,r[u]=e):r=s(),a===void 0?r:_(r,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,k,T){var m=n("./_an-object"),_=n("./_ie8-dom-define"),i=n("./_to-primitive"),u=Object.defineProperty;T.f=n("./_descriptors")?Object.defineProperty:function(d,s,e){if(m(d),s=i(s,!0),m(e),_)try{return u(d,s,e)}catch(a){}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,k,T){var m=n("./_object-dp"),_=n("./_an-object"),i=n("./_object-keys");k.exports=n("./_descriptors")?Object.defineProperties:function(u,d){_(u);for(var s,e=i(d),a=e.length,r=0;a>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,k,T){var m=n("./_object-pie"),_=n("./_property-desc"),i=n("./_to-iobject"),u=n("./_to-primitive"),d=n("./_has"),s=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;T.f=n("./_descriptors")?e:function(a,r){if(a=i(a),r=u(r,!0),s)try{return e(a,r)}catch(c){}if(d(a,r))return _(!m.f.call(a,r),a[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,k,T){var m=n("./_to-iobject"),_=n("./_object-gopn").f,i={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(e){try{return _(e)}catch(a){return u.slice()}};k.exports.f=function(s){return u&&i.call(s)=="[object Window]"?d(s):_(m(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,k,T){var m=n("./_object-keys-internal"),_=n("./_enum-bug-keys").concat("length","prototype");T.f=Object.getOwnPropertyNames||function(i){return m(i,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,k,T){T.f=Object.getOwnPropertySymbols},{}],104:[function(n,k,T){var m=n("./_has"),_=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),u=Object.prototype;k.exports=Object.getPrototypeOf||function(d){return d=_(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,k,T){var m=n("./_has"),_=n("./_to-iobject"),i=n("./_array-includes")(!1),u=n("./_shared-key")("IE_PROTO");k.exports=function(d,s){var e,a=_(d),r=0,c=[];for(e in a)e!=u&&m(a,e)&&c.push(e);for(;s.length>r;)m(a,e=s[r++])&&(~i(c,e)||c.push(e));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,k,T){var m=n("./_object-keys-internal"),_=n("./_enum-bug-keys");k.exports=Object.keys||function(i){return m(i,_)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,k,T){T.f={}.propertyIsEnumerable},{}],108:[function(n,k,T){var m=n("./_export"),_=n("./_core"),i=n("./_fails");k.exports=function(u,d){var s=(_.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,k,T){k.exports=function(m){try{return{e:!1,v:m()}}catch(_){return{e:!0,v:_}}}},{}],110:[function(n,k,T){var m=n("./_an-object"),_=n("./_is-object"),i=n("./_new-promise-capability");k.exports=function(u,d){if(m(u),_(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,k,T){k.exports=function(m,_){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:_}}},{}],112:[function(n,k,T){var m=n("./_hide");k.exports=function(_,i,u){for(var d in i)u&&_[d]?_[d]=i[d]:m(_,d,i[d]);return _}},{"./_hide":78}],113:[function(n,k,T){k.exports=n("./_hide")},{"./_hide":78}],114:[function(n,k,T){"use strict";var m=n("./_global"),_=n("./_core"),i=n("./_object-dp"),u=n("./_descriptors"),d=n("./_wks")("species");k.exports=function(s){var e=typeof _[s]=="function"?_[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,k,T){var m=n("./_object-dp").f,_=n("./_has"),i=n("./_wks")("toStringTag");k.exports=function(u,d,s){u&&!_(u=s?u:u.prototype,i)&&m(u,i,{configurable:!0,value:d})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,k,T){var m=n("./_shared")("keys"),_=n("./_uid");k.exports=function(i){return m[i]||(m[i]=_(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,k,T){var m=n("./_core"),_=n("./_global"),i=_["__core-js_shared__"]||(_["__core-js_shared__"]={});(k.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,k,T){var m=n("./_an-object"),_=n("./_a-function"),i=n("./_wks")("species");k.exports=function(u,d){var s,e=m(u).constructor;return e===void 0||(s=m(e)[i])==null?d:_(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,k,T){var m=n("./_to-integer"),_=n("./_defined");k.exports=function(i){return function(u,d){var s,e,a=String(_(u)),r=m(d),c=a.length;return r<0||r>=c?i?"":void 0:(s=a.charCodeAt(r),s<55296||s>56319||r+1===c||(e=a.charCodeAt(r+1))<56320||e>57343?i?a.charAt(r):s:i?a.slice(r,r+2):e-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,k,T){var m,_,i,u=n("./_ctx"),d=n("./_invoke"),s=n("./_html"),e=n("./_dom-create"),a=n("./_global"),r=a.process,c=a.setImmediate,p=a.clearImmediate,l=a.MessageChannel,S=a.Dispatch,E=0,f={},A=function(){var w=+this;if(f.hasOwnProperty(w)){var O=f[w];delete f[w],O()}},g=function(w){A.call(w.data)};c&&p||(c=function(w){for(var O=[],R=1;arguments.length>R;)O.push(arguments[R++]);return f[++E]=function(){d(typeof w=="function"?w:Function(w),O)},m(E),E},p=function(w){delete f[w]},n("./_cof")(r)=="process"?m=function(w){r.nextTick(u(A,w,1))}:S&&S.now?m=function(w){S.now(u(A,w,1))}:l?(_=new l,i=_.port2,_.port1.onmessage=g,m=u(i.postMessage,i,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(w){a.postMessage(w+"","*")},a.addEventListener("message",g,!1)):m="onreadystatechange"in e("script")?function(h){s.appendChild(e("script")).onreadystatechange=function(){s.removeChild(this),A.call(h)}}:function(h){setTimeout(u(A,h,1),0)}),k.exports={set:c,clear:p}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,k,T){var m=n("./_to-integer"),_=Math.max,i=Math.min;k.exports=function(u,d){return u=m(u),u<0?_(u+d,0):i(u,d)}},{"./_to-integer":122}],122:[function(n,k,T){var m=Math.ceil,_=Math.floor;k.exports=function(i){return isNaN(i=+i)?0:(i>0?_:m)(i)}},{}],123:[function(n,k,T){var m=n("./_iobject"),_=n("./_defined");k.exports=function(i){return m(_(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,k,T){var m=n("./_to-integer"),_=Math.min;k.exports=function(i){return i>0?_(m(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,k,T){var m=n("./_defined");k.exports=function(_){return Object(m(_))}},{"./_defined":68}],126:[function(n,k,T){var m=n("./_is-object");k.exports=function(_,i){if(!m(_))return _;var u,d;if(i&&typeof(u=_.toString)=="function"&&!m(d=u.call(_)))return d;if(typeof(u=_.valueOf)=="function"&&!m(d=u.call(_)))return d;if(!i&&typeof(u=_.toString)=="function"&&!m(d=u.call(_)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,k,T){var m=0,_=Math.random();k.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++m+_).toString(36))}},{}],128:[function(n,k,T){var m=n("./_global"),_=m.navigator;k.exports=_&&_.userAgent||""},{"./_global":76}],129:[function(n,k,T){var m=n("./_global"),_=n("./_core"),i=n("./_library"),u=n("./_wks-ext"),d=n("./_object-dp").f;k.exports=function(s){var e=_.Symbol||(_.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,k,T){T.f=n("./_wks")},{"./_wks":131}],131:[function(n,k,T){var m=n("./_shared")("wks"),_=n("./_uid"),i=n("./_global").Symbol,u=typeof i=="function";(k.exports=function(d){return m[d]||(m[d]=u&&i[d]||(u?i:_)("Symbol."+d))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,k,T){var m=n("./_classof"),_=n("./_wks")("iterator"),i=n("./_iterators");k.exports=n("./_core").getIteratorMethod=function(u){if(u!=null)return u[_]||u["@@iterator"]||i[m(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,k,T){"use strict";var m=n("./_ctx"),_=n("./_export"),i=n("./_to-object"),u=n("./_iter-call"),d=n("./_is-array-iter"),s=n("./_to-length"),e=n("./_create-property"),a=n("./core.get-iterator-method");_(_.S+_.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(c){var p,l,S,E,f=i(c),A=typeof this=="function"?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,w=h!==void 0,O=0,R=a(f);if(w&&(h=m(h,g>2?arguments[2]:void 0,2)),R==null||A==Array&&d(R))for(p=s(f.length),l=new A(p);p>O;O++)e(l,O,w?h(f[O],O):f[O]);else for(E=R.call(f),l=new A;!(S=E.next()).done;O++)e(l,O,w?u(E,h,[S.value,O],!0):S.value);return l.length=O,l}})},{"./_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,k,T){"use strict";var m=n("./_add-to-unscopables"),_=n("./_iter-step"),i=n("./_iterators"),u=n("./_to-iobject");k.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,_(1)):s=="keys"?_(0,e):s=="values"?_(0,d[e]):_(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,k,T){"use strict";var m=n("./_is-object"),_=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=_(s);)if(this.prototype===s)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,k,T){var m=n("./_export");m(m.S+m.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,k,T){var m=n("./_export");m(m.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,k,T){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,k,T){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,k,T){var m=n("./_to-object"),_=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return _(m(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,k,T){var m=n("./_to-object"),_=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return _(m(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,k,T){arguments[4][36][0].apply(T,arguments)},{dup:36}],143:[function(n,k,T){"use strict";var m,_,i,u,d=n("./_library"),s=n("./_global"),e=n("./_ctx"),a=n("./_classof"),r=n("./_export"),c=n("./_is-object"),p=n("./_a-function"),l=n("./_an-instance"),S=n("./_for-of"),E=n("./_species-constructor"),f=n("./_task").set,A=n("./_microtask")(),g=n("./_new-promise-capability"),h=n("./_perform"),w=n("./_user-agent"),O=n("./_promise-resolve"),R=s.TypeError,b=s.process,I=b&&b.versions,y=I&&I.v8||"",U=s.Promise,j=a(b)=="process",N=function(){},G=_=g.f,K=!!function(){try{var F=U.resolve(1),M=(F.constructor={})[n("./_wks")("species")]=function(H){H(N,N)};return(j||typeof PromiseRejectionEvent=="function")&&F.then(N)instanceof M&&y.indexOf("6.6")!==0&&w.indexOf("Chrome/66")===-1}catch(H){}}(),te=function(M){var H;return!(!c(M)||typeof(H=M.then)!="function")&&H},z=function(M,H){if(!M._n){M._n=!0;var Y=M._c;A(function(){for(var ae=M._v,ne=M._s==1,se=0;Y.length>se;)!function(fe){var Q,J,ie,W=ne?fe.ok:fe.fail,B=fe.resolve,re=fe.reject,ee=fe.domain;try{W?(ne||(M._h==2&&q(M),M._h=1),W===!0?Q=ae:(ee&&ee.enter(),Q=W(ae),ee&&(ee.exit(),ie=!0)),Q===fe.promise?re(R("Promise-chain cycle")):(J=te(Q))?J.call(Q,B,re):B(Q)):re(ae)}catch(ce){ee&&!ie&&ee.exit(),re(ce)}}(Y[se++]);M._c=[],M._n=!1,H&&!M._h&&Z(M)})}},Z=function(M){f.call(s,function(){var H,Y,ae,ne=M._v,se=$(M);if(se&&(H=h(function(){j?b.emit("unhandledRejection",ne,M):(Y=s.onunhandledrejection)?Y({promise:M,reason:ne}):(ae=s.console)&&ae.error&&ae.error("Unhandled promise rejection",ne)}),M._h=j||$(M)?2:1),M._a=void 0,se&&H.e)throw H.v})},$=function(M){return M._h!==1&&(M._a||M._c).length===0},q=function(M){f.call(s,function(){var H;j?b.emit("rejectionHandled",M):(H=s.onrejectionhandled)&&H({promise:M,reason:M._v})})},L=function(M){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=M,H._s=2,H._a||(H._a=H._c.slice()),z(H,!0))},D=function F(M){var H,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===M)throw R("Promise can't be resolved itself");(H=te(M))?A(function(){var ae={_w:Y,_d:!1};try{H.call(M,e(F,ae,1),e(L,ae,1))}catch(ne){L.call(ae,ne)}}):(Y._v=M,Y._s=1,z(Y,!1))}catch(ae){L.call({_w:Y,_d:!1},ae)}}};K||(U=function(M){l(this,U,"Promise","_h"),p(M),m.call(this);try{M(e(D,this,1),e(L,this,1))}catch(H){L.call(this,H)}},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")(U.prototype,{then:function(M,H){var Y=G(E(this,U));return Y.ok=typeof M!="function"||M,Y.fail=typeof H=="function"&&H,Y.domain=j?b.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&z(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(D,M,1),this.reject=e(L,M,1)},g.f=G=function(M){return M===U||M===u?new i(M):_(M)}),r(r.G+r.W+r.F*!K,{Promise:U}),n("./_set-to-string-tag")(U,"Promise"),n("./_set-species")("Promise"),u=n("./_core").Promise,r(r.S+r.F*!K,"Promise",{reject:function(M){var H=G(this);return(0,H.reject)(M),H.promise}}),r(r.S+r.F*(d||!K),"Promise",{resolve:function(M){return O(d&&this===u?U:this,M)}}),r(r.S+r.F*!(K&&n("./_iter-detect")(function(F){U.all(F).catch(N)})),"Promise",{all:function(M){var H=this,Y=G(H),ae=Y.resolve,ne=Y.reject,se=h(function(){var fe=[],Q=0,J=1;S(M,!1,function(ie){var W=Q++,B=!1;fe.push(void 0),J++,H.resolve(ie).then(function(re){B||(B=!0,fe[W]=re,--J||ae(fe))},ne)}),--J||ae(fe)});return se.e&&ne(se.v),Y.promise},race:function(M){var H=this,Y=G(H),ae=Y.reject,ne=h(function(){S(M,!1,function(se){H.resolve(se).then(Y.resolve,ae)})});return ne.e&&ae(ne.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,k,T){var m=n("./_export"),_=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,a=[],r=arguments.length,c=0;r>c;){if(e=+arguments[c++],_(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,k,T){"use strict";var m=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(_){this._t=String(_),this._i=0},function(){var _,i=this._t,u=this._i;return u>=i.length?{value:void 0,done:!0}:(_=m(i,u),this._i+=_.length,{value:_,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,k,T){"use strict";var m=n("./_global"),_=n("./_has"),i=n("./_descriptors"),u=n("./_export"),d=n("./_redefine"),s=n("./_meta").KEY,e=n("./_fails"),a=n("./_shared"),r=n("./_set-to-string-tag"),c=n("./_uid"),p=n("./_wks"),l=n("./_wks-ext"),S=n("./_wks-define"),E=n("./_enum-keys"),f=n("./_is-array"),A=n("./_an-object"),g=n("./_is-object"),h=n("./_to-iobject"),w=n("./_to-primitive"),O=n("./_property-desc"),R=n("./_object-create"),b=n("./_object-gopn-ext"),I=n("./_object-gopd"),y=n("./_object-dp"),U=n("./_object-keys"),j=I.f,N=y.f,G=b.f,K=m.Symbol,te=m.JSON,z=te&&te.stringify,Z=p("_hidden"),$=p("toPrimitive"),q={}.propertyIsEnumerable,L=a("symbol-registry"),D=a("symbols"),F=a("op-symbols"),M=Object.prototype,H=typeof K=="function",Y=m.QObject,ae=!Y||!Y.prototype||!Y.prototype.findChild,ne=i&&e(function(){return R(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(C,v,x){var X=j(M,v);X&&delete M[v],N(C,v,x),X&&C!==M&&N(M,v,X)}:N,se=function(v){var x=D[v]=R(K.prototype);return x._k=v,x},fe=H&&typeof K.iterator=="symbol"?function(C){return typeof C=="symbol"}:function(C){return C instanceof K},Q=function C(v,x,X){return v===M&&C(F,x,X),A(v),x=w(x,!0),A(X),_(D,x)?(X.enumerable?(_(v,Z)&&v[Z][x]&&(v[Z][x]=!1),X=R(X,{enumerable:O(0,!1)})):(_(v,Z)||N(v,Z,O(1,{})),v[Z][x]=!0),ne(v,x,X)):N(v,x,X)},J=function(v,x){A(v);for(var X,V=E(x=h(x)),pe=0,le=V.length;le>pe;)Q(v,X=V[pe++],x[X]);return v},ie=function(v,x){return x===void 0?R(v):J(R(v),x)},W=function(v){var x=q.call(this,v=w(v,!0));return!(this===M&&_(D,v)&&!_(F,v))&&(!(x||!_(this,v)||!_(D,v)||_(this,Z)&&this[Z][v])||x)},B=function(v,x){if(v=h(v),x=w(x,!0),v!==M||!_(D,x)||_(F,x)){var X=j(v,x);return!X||!_(D,x)||_(v,Z)&&v[Z][x]||(X.enumerable=!0),X}},re=function(v){for(var x,X=G(h(v)),V=[],pe=0;X.length>pe;)_(D,x=X[pe++])||x==Z||x==s||V.push(x);return V},ee=function(v){for(var x,X=v===M,V=G(X?F:h(v)),pe=[],le=0;V.length>le;)!_(D,x=V[le++])||X&&!_(M,x)||pe.push(D[x]);return pe};H||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var v=c(arguments.length>0?arguments[0]:void 0),x=function X(V){this===M&&X.call(F,V),_(this,Z)&&_(this[Z],v)&&(this[Z][v]=!1),ne(this,v,O(1,V))};return i&&ae&&ne(M,v,{configurable:!0,set:x}),se(v)},d(K.prototype,"toString",function(){return this._k}),I.f=B,y.f=Q,n("./_object-gopn").f=b.f=re,n("./_object-pie").f=W,n("./_object-gops").f=ee,i&&!n("./_library")&&d(M,"propertyIsEnumerable",W,!0),l.f=function(C){return se(p(C))}),u(u.G+u.W+u.F*!H,{Symbol:K});for(var ce="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),P=0;ce.length>P;)p(ce[P++]);for(var t=U(p.store),o=0;t.length>o;)S(t[o++]);u(u.S+u.F*!H,"Symbol",{for:function(v){return _(L,v+="")?L[v]:L[v]=K(v)},keyFor:function(v){if(!fe(v))throw TypeError(v+" is not a symbol!");for(var x in L)if(L[x]===v)return x},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),u(u.S+u.F*!H,"Object",{create:ie,defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:B,getOwnPropertyNames:re,getOwnPropertySymbols:ee}),te&&u(u.S+u.F*(!H||e(function(){var C=K();return z([C])!="[null]"||z({a:C})!="{}"||z(Object(C))!="{}"})),"JSON",{stringify:function(v){for(var x,X,V=[v],pe=1;arguments.length>pe;)V.push(arguments[pe++]);if(X=x=V[1],(g(x)||v!==void 0)&&!fe(v))return f(x)||(x=function(me,ge){if(typeof X=="function"&&(ge=X.call(this,me,ge)),!fe(ge))return ge}),V[1]=x,z.apply(te,V)}}),K.prototype[$]||n("./_hide")(K.prototype,$,K.prototype.valueOf),r(K,"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,k,T){"use strict";var m=n("./_export"),_=n("./_core"),i=n("./_global"),u=n("./_species-constructor"),d=n("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(e){var a=u(this,_.Promise||i.Promise),r=typeof e=="function";return this.then(r?function(c){return d(a,e()).then(function(){return c})}:e,r?function(c){return d(a,e()).then(function(){throw c})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,k,T){"use strict";var m=n("./_export"),_=n("./_new-promise-capability"),i=n("./_perform");m(m.S,"Promise",{try:function(d){var s=_.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,k,T){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,k,T){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,k,T){n("./es6.array.iterator");for(var m=n("./_global"),_=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;s0?"-":"+")+u(100*Math.floor(Math.abs(j)/60)+Math.abs(j)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:N,N:G};return S.replace(r,function(te){return te in K?K[te]:te.slice(1,te.length-1)})}}();a.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"},a.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 _e=="function"&&_e.amd?_e(function(){return a}):(T===void 0?"undefined":(0,_.default)(T))==="object"?k.exports=a:i.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,k,T){(function(m){function _(){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 a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+T.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var c=0,p=0;e[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(c++,l==="%c"&&(p=c))}),e.splice(p,0,r)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(e){try{e==null?T.storage.removeItem("debug"):T.storage.debug=e}catch(a){}}function s(){var e;try{e=T.storage.debug}catch(a){}return!e&&m!==void 0&&"env"in m&&(e=m.env.DEBUG),e}T=k.exports=n("./debug"),T.log=u,T.formatArgs=i,T.save=d,T.load=s,T.useColors=_,T.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),T.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],T.formatters.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},T.enable(s())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,k,T){function m(a){var r,c=0;for(r in a)c=(c<<5)-c+a.charCodeAt(r),c|=0;return T.colors[Math.abs(c)%T.colors.length]}function _(a){function r(){if(r.enabled){var c=r,p=+new Date,l=p-(e||p);c.diff=l,c.prev=e,c.curr=p,e=p;for(var S=new Array(arguments.length),E=0;E]/;k.exports=m},{}],158:[function(n,k,T){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function _(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}k.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,a,r,c,p,l;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 S=new Error('Uncaught, unspecified "error" event. ('+e+")");throw S.context=e,S}if(a=this._events[s],d(a))return!1;if(_(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(u(a))for(c=Array.prototype.slice.call(arguments,1),l=a.slice(),r=l.length,p=0;p0&&this._events[s].length>a&&(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 a(){this.removeListener(s,a),r||(r=!0,e.apply(this,arguments))}if(!_(e))throw TypeError("listener must be a function");var r=!1;return a.listener=e,this.on(s,a),this},m.prototype.removeListener=function(s,e){var a,r,c,p;if(!_(e))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(a=this._events[s],c=a.length,r=-1,a===e||_(a.listener)&&a.listener===e)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,e);else if(u(a)){for(p=c;p-- >0;)if(a[p]===e||a[p].listener&&a[p].listener===e){r=p;break}if(r<0)return this;a.length===1?(a.length=0,delete this._events[s]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",s,e)}return this},m.prototype.removeAllListeners=function(s){var e,a;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(a=this._events[s],_(a))this.removeListener(s,a);else if(a)for(;a.length;)this.removeListener(s,a[a.length-1]);return delete this._events[s],this},m.prototype.listeners=function(s){return this._events&&this._events[s]?_(this._events[s])?[this._events[s]]:this._events[s].slice():[]},m.prototype.listenerCount=function(s){if(this._events){var e=this._events[s];if(_(e))return 1;if(e)return e.length}return 0},m.listenerCount=function(s,e){return s.listenerCount(e)}},{}],159:[function(n,k,T){var m=n("http"),_=k.exports;for(var i in m)m.hasOwnProperty(i)&&(_[i]=m[i]);_.request=function(u,d){return u||(u={}),u.scheme="https",u.protocol="https:",m.request.call(this,u,d)}},{http:196}],160:[function(n,k,T){"use strict";var m=n("util"),_=n("ms");k.exports=function(i){if(typeof i=="number")return i;var u=_(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,k,T){T.read=function(m,_,i,u,d){var s,e,a=8*d-u-1,r=(1<>1,p=-7,l=i?d-1:0,S=i?-1:1,E=m[_+l];for(l+=S,s=E&(1<<-p)-1,E>>=-p,p+=a;p>0;s=256*s+m[_+l],l+=S,p-=8);for(e=s&(1<<-p)-1,s>>=-p,p+=u;p>0;e=256*e+m[_+l],l+=S,p-=8);if(s===0)s=1-c;else{if(s===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,u),s-=c}return(E?-1:1)*e*Math.pow(2,s-u)},T.write=function(m,_,i,u,d,s){var e,a,r,c=8*s-d-1,p=(1<>1,S=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:s-1,f=u?1:-1,A=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(a=isNaN(_)?1:0,e=p):(e=Math.floor(Math.log(_)/Math.LN2),_*(r=Math.pow(2,-e))<1&&(e--,r*=2),_+=e+l>=1?S/r:S*Math.pow(2,1-l),_*r>=2&&(e++,r/=2),e+l>=p?(a=0,e=p):e+l>=1?(a=(_*r-1)*Math.pow(2,d),e+=l):(a=_*Math.pow(2,l-1)*Math.pow(2,d),e=0));d>=8;m[i+E]=255&a,E+=f,a/=256,d-=8);for(e=e<0;m[i+E]=255&e,E+=f,e/=256,c-=8);m[i+E-f]|=128*A}},{}],162:[function(n,k,T){typeof Object.create=="function"?k.exports=function(m,_){m.super_=_,m.prototype=Object.create(_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(m,_){m.super_=_;var i=function(){};i.prototype=_.prototype,m.prototype=new i,m.prototype.constructor=m}},{}],163:[function(n,k,T){function m(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function _(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&m(i.slice(0,0))}k.exports=function(i){return i!=null&&(m(i)||_(i)||!!i._isBuffer)}},{}],164:[function(n,k,T){!function(m){function _(d){return u.call(d).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(d){return typeof d=="function"&&(/^class(\s|\{\}$)/.test(u.call(d))||/^.*classCallCheck\(/.test(_(d)))}var u=Function.prototype.toString;T!==void 0?(k!==void 0&&k.exports&&(T=k.exports=i),T.isClass=i):typeof _e=="function"&&_e.amd?_e([],function(){return i}):m.isClass=i}(this)},{}],165:[function(n,k,T){"use strict";function m(s){var e=s.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var _=n("core-util-is"),i=n("isstream"),u=n("is-class");Object.keys(_).map(function(s){T[m(s)]=_[s]}),T.stream=i,T.readableStream=i.isReadable,T.writableStream=i.isWritable,T.duplexStream=i.isDuplex,T.class=u,T.finite=function(s){return Number.isFinite(s)},T.NaN=function(s){return Number.isNaN(s)},T.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},T.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},T.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},T.promise=function(s){return s&&typeof s.then=="function"};var d=Math.pow(2,31);T.int=function(s){return _.isNumber(s)&&s%1==0},T.int32=function(s){return T.int(s)&&s=-d},T.long=function(s){return T.int(s)&&(s>=d||s<-d)},T.Long=function(s){return T.object(s)&&T.number(s.high)&&T.number(s.low)},T.double=function(s){return _.isNumber(s)&&!isNaN(s)&&s%1!=0},T.date=function(s){return s instanceof Date},T.regExp=function(s){return s instanceof RegExp},T.regexp=T.regExp,T.error=function(s){return s instanceof Error},T.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,k,T){var m={}.toString;k.exports=Array.isArray||function(_){return m.call(_)=="[object Array]"}},{}],167:[function(n,k,T){function m(s){return s instanceof d.Stream}function _(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 _(s)&&i(s)}var d=n("stream");k.exports=m,k.exports.isReadable=_,k.exports.isWritable=i,k.exports.isDuplex=u},{stream:195}],168:[function(n,k,T){"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||!_.call(i,s)){var e=Object.getOwnPropertyDescriptor(u,s);Object.defineProperty(i,s,e)}}),i}k.exports=m;var _=Object.prototype.hasOwnProperty},{}],169:[function(n,k,T){function m(c){if(c=String(c),!(c.length>100)){var p=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(p){var l=parseFloat(p[1]);switch((p[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*r;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*e;case"minutes":case"minute":case"mins":case"min":case"m":return l*s;case"seconds":case"second":case"secs":case"sec":case"s":return l*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function _(c){return c>=a?Math.round(c/a)+"d":c>=e?Math.round(c/e)+"h":c>=s?Math.round(c/s)+"m":c>=d?Math.round(c/d)+"s":c+"ms"}function i(c){return u(c,a,"day")||u(c,e,"hour")||u(c,s,"minute")||u(c,d,"second")||c+" ms"}function u(c,p,l){if(!(c0)return m(c);if(l==="number"&&isNaN(c)===!1)return p.long?i(c):_(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(n,k,T){(function(m){function _(s,e){for(var a=0,r=s.length-1;r>=0;r--){var c=s[r];c==="."?s.splice(r,1):c===".."?(s.splice(r,1),a++):a&&(s.splice(r,1),a--)}if(e)for(;a--;a)s.unshift("..");return s}function i(s){typeof s!="string"&&(s+="");var e,a=0,r=-1,c=!0;for(e=s.length-1;e>=0;--e)if(s.charCodeAt(e)===47){if(!c){a=e+1;break}}else r===-1&&(c=!1,r=e+1);return r===-1?"":s.slice(a,r)}function u(s,e){if(s.filter)return s.filter(e);for(var a=[],r=0;r=-1&&!e;a--){var r=a>=0?arguments[a]: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=_(u(s.split("/"),function(c){return!!c}),!e).join("/"),(e?"/":"")+s||"."},T.normalize=function(s){var e=T.isAbsolute(s),a=d(s,-1)==="/";return s=_(u(s.split("/"),function(r){return!!r}),!e).join("/"),s||e||(s="."),s&&a&&(s+="/"),(e?"/":"")+s},T.isAbsolute=function(s){return s.charAt(0)==="/"},T.join=function(){var s=Array.prototype.slice.call(arguments,0);return T.normalize(u(s,function(e,a){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},T.relative=function(s,e){function a(f){for(var A=0;A=0&&f[g]==="";g--);return A>g?[]:f.slice(A,g-A+1)}s=T.resolve(s).substr(1),e=T.resolve(e).substr(1);for(var r=a(s.split("/")),c=a(e.split("/")),p=Math.min(r.length,c.length),l=p,S=0;S=1;--p)if((e=s.charCodeAt(p))===47){if(!c){r=p;break}}else c=!1;return r===-1?a?"/":".":a&&r===1?"/":s.slice(0,r)},T.basename=function(s,e){var a=i(s);return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},T.extname=function(s){typeof s!="string"&&(s+="");for(var e=-1,a=0,r=-1,c=!0,p=0,l=s.length-1;l>=0;--l){var S=s.charCodeAt(l);if(S!==47)r===-1&&(c=!1,r=l+1),S===46?e===-1?e=l:p!==1&&(p=1):e!==-1&&(p=-1);else if(!c){a=l+1;break}}return e===-1||r===-1||p===0||p===1&&e===r-1&&e===a+1?"":s.slice(e,r)};var d="ab".substr(-1)==="b"?function(s,e,a){return s.substr(e,a)}:function(s,e,a){return e<0&&(e=s.length+e),s.substr(e,a)}}).call(this,n("_process"))},{_process:173}],171:[function(n,k,T){(function(m){(function(){"use strict";function _(y){return y=String(y),y.charAt(0).toUpperCase()+y.slice(1)}function i(y,U,j){var N={"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 U&&j&&/^Win/i.test(y)&&!/^Windows Phone /i.test(y)&&(N=N[/[\d.]+$/.exec(y)])&&(y="Windows "+N),y=String(y),U&&j&&(y=y.replace(RegExp(U,"i"),j)),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,U){var j=-1,N=y?y.length:0;if(typeof N=="number"&&N>-1&&N<=h)for(;++j3&&"WebKit"||/\bOpera\b/.test(ee)&&(/\bOPR\b/.test(y)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(y)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(y)&&(t=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ee)&&"NetFront")&&(re=[z]),ee=="IE"&&(z=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(y)||0)[1])?(ee+=" Mobile",t="Windows Phone "+(/\+$/.test(z)?z:z+".x"),J.unshift("desktop mode")):/\bWPDesktop\b/i.test(y)?(ee="IE Mobile",t="Windows Phone 8.x",J.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(y)||0)[1])):ee!="IE"&&re=="Trident"&&(z=/\brv:([\d.]+)/.exec(y))&&(ee&&J.push("identifying as "+ee+(B?" "+B:"")),ee="IE",B=z[1]),W){if(a(N,"global"))if(M&&(z=M.lang.System,Q=z.getProperty("os.arch"),t=t||z.getProperty("os.name")+" "+z.getProperty("os.version")),H){try{B=N.require("ringo/engine").version.join("."),ee="RingoJS"}catch(C){(z=N.system)&&z.global.system==N.system&&(ee="Narwhal",t||(t=z[0].os||null))}ee||(ee="Rhino")}else typeof N.process=="object"&&!N.process.browser&&(z=N.process)&&(typeof z.versions=="object"&&(typeof z.versions.electron=="string"?(J.push("Node "+z.versions.node),ee="Electron",B=z.versions.electron):typeof z.versions.nw=="string"&&(J.push("Chromium "+B,"Node "+z.versions.node),ee="NW.js",B=z.versions.nw)),ee||(ee="Node.js",Q=z.arch,t=z.platform,B=/[\d.]+/.exec(z.version),B=B?B[0]:null));else e(z=N.runtime)==q?(ee="Adobe AIR",t=z.flash.system.Capabilities.os):e(z=N.phantom)==F?(ee="PhantomJS",B=(z=z.version||null)&&z.major+"."+z.minor+"."+z.patch):typeof ne.documentMode=="number"&&(z=/\bTrident\/(\d+)/i.exec(y))?(B=[B,ne.documentMode],(z=+z[1]+4)!=B[1]&&(J.push("IE "+B[1]+" mode"),re&&(re[1]=""),B[1]=z),B=ee=="IE"?String(B[1].toFixed(1)):B[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ee)&&(J.push("masking as "+ee+" "+B),ee="IE",B="11.0",re=["Trident"],t="Windows");t=t&&d(t)}if(B&&(z=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(y+";"+(W&&K.appMinorVersion))||/\bMinefield\b/i.test(y)&&"a")&&(ie=/b/i.test(z)?"beta":"alpha",B=B.replace(RegExp(z+"\\+?$"),"")+(ie=="beta"?ae:Y)+(/\d+\+?/.exec(z)||"")),ee=="Fennec"||ee=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ee="Firefox Mobile";else if(ee=="Maxthon"&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ce))ce=="Xbox 360"&&(t=null),ce=="Xbox 360"&&/\bIEMobile\b/.test(y)&&J.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ee)&&(!ee||ce||/Browser|Mobi/.test(ee))||t!="Windows CE"&&!/Mobi/i.test(y))if(ee=="IE"&&W)try{N.external===null&&J.unshift("platform preview")}catch(C){J.unshift("embedded")}else(/\bBlackBerry\b/.test(ce)||/\bBB10\b/.test(y))&&(z=(RegExp(ce.replace(/ +/g," *")+"/([.\\d]+)","i").exec(y)||0)[1]||B)?(z=[z,/BB10/.test(y)],t=(z[1]?(ce=null,P="BlackBerry"):"Device Software")+" "+z[0],B=null):this!=s&&ce!="Wii"&&(W&&se||/Opera/.test(ee)&&/\b(?:MSIE|Firefox)\b/i.test(y)||ee=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ee=="IE"&&(t&&!/^Win/.test(t)&&B>5.5||/\bWindows XP\b/.test(t)&&B>8||B==8&&!/\bTrident\b/.test(y)))&&!w.test(z=l.call(s,y.replace(w,"")+";"))&&z.name&&(z="ing as "+z.name+((z=z.version)?" "+z:""),w.test(ee)?(/\bIE\b/.test(z)&&t=="Mac OS"&&(t=null),z="identify"+z):(z="mask"+z,ee=fe?d(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(z)&&(t=null),W||(B=null)),re=["Presto"],J.push(z));else ee+=" Mobile";(z=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(y)||0)[1])&&(z=[parseFloat(z.replace(/\.(\d)$/,".0$1")),z],ee=="Safari"&&z[1].slice(-1)=="+"?(ee="WebKit Nightly",ie="alpha",B=z[1].slice(0,-1)):B!=z[1]&&B!=(z[2]=(/\bSafari\/([\d.]+\+?)/i.exec(y)||0)[1])||(B=null),z[1]=(/\bChrome\/([\d.]+)/i.exec(y)||0)[1],z[0]==537.36&&z[2]==537.36&&parseFloat(z[1])>=28&&re=="WebKit"&&(re=["Blink"]),W&&($||z[1])?(re&&(re[1]="like Chrome"),z=z[1]||(z=z[0],z<530?1:z<532?2:z<532.05?3:z<533?4:z<534.03?5:z<534.07?6:z<534.1?7:z<534.13?8:z<534.16?9:z<534.24?10:z<534.3?11:z<535.01?12:z<535.02?"13+":z<535.07?15:z<535.11?16:z<535.19?17:z<536.05?18:z<536.1?19:z<537.01?20:z<537.11?"21+":z<537.13?23:z<537.18?24:z<537.24?25:z<537.36?26:re!="Blink"?"27":"28")):(re&&(re[1]="like Safari"),z=z[0],z=z<400?1:z<500?2:z<526?3:z<533?4:z<534?"4+":z<535?5:z<537?6:z<538?7:z<601?8:"8"),re&&(re[1]+=" "+(z+=typeof z=="number"?".x":/[.+]/.test(z)?"":"+")),ee=="Safari"&&(!B||parseInt(B)>45)&&(B=z)),ee=="Opera"&&(z=/\bzbov|zvav$/.exec(t))?(ee+=" ",J.unshift("desktop mode"),z=="zvav"?(ee+="Mini",B=null):ee+="Mobile",t=t.replace(RegExp(" *"+z+"$"),"")):ee=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(J.unshift("desktop mode"),ee="Chrome Mobile",B=null,/\bOS X\b/.test(t)?(P="Apple",t="iOS 4.3+"):t=null),B&&B.indexOf(z=/[\d.]+$/.exec(t))==0&&y.indexOf("/"+z+"-")>-1&&(t=p(t.replace(z,""))),re&&!/\b(?:Avant|Nook)\b/.test(ee)&&(/Browser|Lunascape|Maxthon/.test(ee)||ee!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ee)&&re[1])&&(z=re[re.length-1])&&J.push(z),J.length&&(J=["("+J.join("; ")+")"]),P&&ce&&ce.indexOf(P)<0&&J.push("on "+P),ce&&J.push((/^on /.test(J[J.length-1])?"":"on ")+ce),t&&(z=/ ([\d.+]+)$/.exec(t),Z=z&&t.charAt(t.length-z[0].length-1)=="/",t={architecture:32,family:z&&!Z?t.replace(z[0],""):t,version:z?z[1]:null,toString:function(){var v=this.version;return this.family+(v&&!Z?" "+v:"")+(this.architecture==64?" 64-bit":"")}}),(z=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Q))&&!/\bi686\b/i.test(Q)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+z),"")),ee&&(/\bWOW64\b/i.test(y)||W&&/\w(?:86|32)$/.test(K.cpuClass||K.platform)&&!/\bWin64; x64\b/i.test(y))&&J.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ee=="Chrome"&&parseFloat(B)>=39&&(t.architecture=64),y||(y=null);var o={};return o.description=y,o.layout=re&&re[0],o.manufacturer=P,o.name=ee,o.prerelease=ie,o.product=ce,o.ua=y,o.version=ee&&B,o.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},o.parse=l,o.toString=j,o.version&&J.unshift(B),o.name&&J.unshift(ee),t&&ee&&(t!=String(t).split(" ")[0]||t!=ee.split(" ")[0]&&!ce)&&J.push(ce?"("+t+")":"on "+t),J.length&&(o.description=J.join(" ")),o}var S={function:!0,object:!0},E=S[typeof window]&&window||this,f=S[typeof T]&&T,A=S[typeof k]&&k&&!k.nodeType&&k,g=f&&A&&typeof m=="object"&&m;!g||g.global!==g&&g.window!==g&&g.self!==g||(E=g);var h=Math.pow(2,53)-1,w=/\bOpera/,O=Object.prototype,R=O.hasOwnProperty,b=O.toString,I=l();typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd?(E.platform=I,_e(function(){return I})):f&&A?s(I,function(y,U){f[U]=y}):E.platform=I}).call(this)}).call(this,typeof De!="undefined"?De:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,k,T){(function(m){"use strict";function _(i,u,d,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var e,a,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),a=0;a1)for(var h=1;h1&&(H=M[0]+"@",D=M[1]),D=D.replace(z,"."),H+u(D.split("."),F).join(".")}function s(D){for(var F,M,H=[],Y=0,ae=D.length;Y=55296&&F<=56319&&Y65535&&(F-=65536,M+=L(F>>>10&1023|55296),F=56320|1023&F),M+=L(F)}).join("")}function a(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:R}function r(D,F){return D+22+75*(D<26)-((F!=0)<<5)}function c(D,F,M){var H=0;for(D=M?q(D/U):D>>1,D+=q(D/F);D>$*I>>1;H+=R)D=q(D/$);return q(H+($+1)*D/(D+y))}function p(D){var F,M,H,Y,ae,ne,se,fe,Q,J,ie=[],W=D.length,B=0,re=N,ee=j;for(M=D.lastIndexOf(G),M<0&&(M=0),H=0;H=128&&i("not-basic"),ie.push(D.charCodeAt(H));for(Y=M>0?M+1:0;Y=W&&i("invalid-input"),fe=a(D.charCodeAt(Y++)),(fe>=R||fe>q((O-B)/ne))&&i("overflow"),B+=fe*ne,Q=se<=ee?b:se>=ee+I?I:se-ee,!(feq(O/J)&&i("overflow"),ne*=J;F=ie.length+1,ee=c(B-ae,F,ae==0),q(B/F)>O-re&&i("overflow"),re+=q(B/F),B%=F,ie.splice(B++,0,re)}return e(ie)}function l(D){var F,M,H,Y,ae,ne,se,fe,Q,J,ie,W,B,re,ee,ce=[];for(D=s(D),W=D.length,F=N,M=0,ae=j,ne=0;ne=F&&ieq((O-M)/B)&&i("overflow"),M+=(se-F)*B,F=se,ne=0;neO&&i("overflow"),ie==F){for(fe=M,Q=R;J=Q<=ae?b:Q>=ae+I?I:Q-ae,!(fe= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=R-b,q=Math.floor,L=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:s,encode:e},decode:p,encode:l,toASCII:E,toUnicode:S},typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd)_e("punycode",function(){return h});else if(f&&A)if(k.exports==f)A.exports=h;else for(w in h)h.hasOwnProperty(w)&&(f[w]=h[w]);else _.punycode=h}(this)}).call(this,typeof De!="undefined"?De:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,k,T){"use strict";function m(i,u){return Object.prototype.hasOwnProperty.call(i,u)}k.exports=function(i,u,d,s){u=u||"&",d=d||"=";var e={};if(typeof i!="string"||i.length===0)return e;var a=/\+/g;i=i.split(u);var r=1e3;s&&typeof s.maxKeys=="number"&&(r=s.maxKeys);var c=i.length;r>0&&c>r&&(c=r);for(var p=0;p=0?(l=A.substr(0,g),S=A.substr(g+1)):(l=A,S=""),E=decodeURIComponent(l),f=decodeURIComponent(S),m(e,E)?_(e[E])?e[E].push(f):e[E]=[e[E],f]:e[E]=f}return e};var _=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,k,T){"use strict";function m(d,s){if(d.map)return d.map(s);for(var e=[],a=0;a0?(typeof B=="string"||P.objectMode||(0,Z.default)(B)===M.prototype||(B=i(B)),ee?P.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):r(W,P,B,!0):P.ended?W.emit("error",new Error("stream.push() after EOF")):(P.reading=!1,P.decoder&&!re?(B=P.decoder.write(B),P.objectMode||B.length!==0?r(W,P,B,!1):g(W,P)):r(W,P,B,!1))):ee||(P.reading=!1)}return p(P)}function r(W,B,re,ee){B.flowing&&B.length===0&&!B.sync?(W.emit("data",re),W.read(0)):(B.length+=B.objectMode?1:re.length,ee?B.buffer.unshift(re):B.buffer.push(re),B.needReadable&&f(W)),g(W,B)}function c(W,B){var re;return u(B)||typeof B=="string"||B===void 0||W.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re}function p(W){return!W.ended&&(W.needReadable||W.length=ie?W=ie:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function S(W,B){return W<=0||B.length===0&&B.ended?0:B.objectMode?1:W!==W?B.flowing&&B.length?B.buffer.head.data.length:B.length:(W>B.highWaterMark&&(B.highWaterMark=l(W)),W<=B.length?W:B.ended?B.length:(B.needReadable=!0,0))}function E(W,B){if(!B.ended){if(B.decoder){var re=B.decoder.end();re&&re.length&&(B.buffer.push(re),B.length+=B.objectMode?1:re.length)}B.ended=!0,f(W)}}function f(W){var B=W._readableState;B.needReadable=!1,B.emittedReadable||(ne("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?$.nextTick(A,W):A(W))}function A(W){ne("emit readable"),W.emit("readable"),I(W)}function g(W,B){B.readingMore||(B.readingMore=!0,$.nextTick(h,W,B))}function h(W,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=U(W,B.buffer,B.decoder),re}function U(W,B,re){var ee;return WP.length?P.length:W;if(t===P.length?ce+=P:ce+=P.slice(0,W),(W-=t)===0){t===P.length?(++ee,re.next?B.head=re.next:B.head=B.tail=null):(B.head=re,re.data=P.slice(t));break}++ee}return B.length-=ee,ce}function N(W,B){var re=M.allocUnsafe(W),ee=B.head,ce=1;for(ee.data.copy(re),W-=ee.data.length;ee=ee.next;){var P=ee.data,t=W>P.length?P.length:W;if(P.copy(re,re.length-W,0,t),(W-=t)===0){t===P.length?(++ce,ee.next?B.head=ee.next:B.head=B.tail=null):(B.head=ee,ee.data=P.slice(t));break}++ce}return B.length-=ce,re}function G(W){var B=W._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,$.nextTick(K,B,W))}function K(W,B){W.endEmitted||W.length!==0||(W.endEmitted=!0,B.readable=!1,B.emit("end"))}function te(W,B){for(var re=0,ee=W.length;re=B.highWaterMark||B.ended))return ne("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?G(this):f(this),null;if((W=S(W,B))===0&&B.ended)return B.length===0&&G(this),null;var ee=B.needReadable;ne("need readable",ee),(B.length===0||B.length-W0?y(W,B):null,ce===null?(B.needReadable=!0,W=0):B.length-=W,B.length===0&&(B.ended||(B.needReadable=!0),re!==W&&B.ended&&G(this)),ce!==null&&this.emit("data",ce),ce},e.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(W,B){function re(Te,Pe){ne("onunpipe"),Te===x&&Pe&&Pe.hasUnpiped===!1&&(Pe.hasUnpiped=!0,ce())}function ee(){ne("onend"),W.end()}function ce(){ne("cleanup"),W.removeListener("close",o),W.removeListener("finish",C),W.removeListener("drain",le),W.removeListener("error",t),W.removeListener("unpipe",re),x.removeListener("end",ee),x.removeListener("end",v),x.removeListener("data",P),me=!0,!X.awaitDrain||W._writableState&&!W._writableState.needDrain||le()}function P(Te){ne("ondata"),ge=!1,W.write(Te)!==!1||ge||((X.pipesCount===1&&X.pipes===W||X.pipesCount>1&&te(X.pipes,W)!==-1)&&!me&&(ne("false write response, pause",x._readableState.awaitDrain),x._readableState.awaitDrain++,ge=!0),x.pause())}function t(Te){ne("onerror",Te),v(),W.removeListener("error",t),D(W,"error")===0&&W.emit("error",Te)}function o(){W.removeListener("finish",C),v()}function C(){ne("onfinish"),W.removeListener("close",o),v()}function v(){ne("unpipe"),x.unpipe(W)}var x=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=W;break;case 1:X.pipes=[X.pipes,W];break;default:X.pipes.push(W)}X.pipesCount+=1,ne("pipe count=%d opts=%j",X.pipesCount,B);var V=(!B||B.end!==!1)&&W!==m.stdout&&W!==m.stderr,pe=V?ee:v;X.endEmitted?$.nextTick(pe):x.once("end",pe),W.on("unpipe",re);var le=w(x);W.on("drain",le);var me=!1,ge=!1;return x.on("data",P),d(W,"error",t),W.once("close",o),W.once("finish",C),W.emit("pipe",x),X.flowing||(ne("pipe resume"),x.resume()),W},e.prototype.unpipe=function(W){var B=this._readableState,re={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return W&&W!==B.pipes?this:(W||(W=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,W&&W.emit("unpipe",this,re),this);if(!W){var ee=B.pipes,ce=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var P=0;P-1?q.default:L.nextTick;r.WritableState=a;var M=n("core-util-is");M.inherits=n("inherits");var H={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),ae=n("safe-buffer").Buffer,ne=_.Uint8Array||function(){},se=n("./internal/streams/destroy");M.inherits(r,Y),a.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,J=[];Q;)J.push(Q),Q=Q.next;return J},function(){try{Object.defineProperty(a.prototype,"buffer",{get:H.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}();var fe;typeof Z.default=="function"&&te.default&&typeof Function.prototype[te.default]=="function"?(fe=Function.prototype[te.default],(0,G.default)(r,te.default,{value:function(J){return!!fe.call(this,J)||this===r&&J&&J._writableState instanceof a}})):fe=function(J){return J instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Q,J,ie){var W=this._writableState,B=!1,re=!W.objectMode&&s(Q);return re&&!ae.isBuffer(Q)&&(Q=d(Q)),typeof J=="function"&&(ie=J,J=null),re?J="buffer":J||(J=W.defaultEncoding),typeof ie!="function"&&(ie=e),W.ended?c(this,ie):(re||p(this,W,Q,ie))&&(W.pendingcb++,B=S(this,W,re,Q,J,ie)),B},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,Q.writing||Q.corked||Q.finished||Q.bufferProcessing||!Q.bufferedRequest||O(this,Q))},r.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Q,J,ie){ie(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Q,J,ie){var W=this._writableState;typeof Q=="function"?(ie=Q,Q=null,J=null):typeof J=="function"&&(ie=J,J=null),Q!=null&&this.write(Q,J),W.corked&&(W.corked=1,this.uncork()),W.ending||W.finished||U(this,W,ie)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),r.prototype.destroy=se.destroy,r.prototype._undestroy=se.undestroy,r.prototype._destroy=function(Q,J){this.end(),J(Q)}}).call(this,n("_process"),typeof De!="undefined"?De: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,k,T){"use strict";function m(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")}function _(d,s,e){d.copy(s,e)}var i=n("safe-buffer").Buffer,u=n("util");k.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,a=""+e.data;e=e.next;)a+=s+e.data;return a},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),a=this.head,r=0;a;)_(a.data,e,r),r+=a.data.length,a=a.next;return e},d}(),u&&u.inspect&&u.inspect.custom&&(k.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,k,T){"use strict";function m(d,s){var e=this,a=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return a||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(c){!s&&c?(u.nextTick(i,e,c),e._writableState&&(e._writableState.errorEmitted=!0)):s&&s(c)}),this)}function _(){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");k.exports={destroy:m,undestroy:_}},{"process-nextick-args":172}],186:[function(n,k,T){"use strict";k.exports=n("events").EventEmitter},{events:158}],187:[function(n,k,T){k.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,k,T){T=k.exports=n("./lib/_stream_readable.js"),T.Stream=T,T.Readable=T,T.Writable=n("./lib/_stream_writable.js"),T.Duplex=n("./lib/_stream_duplex.js"),T.Transform=n("./lib/_stream_transform.js"),T.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,k,T){k.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,k,T){k.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,k,T){var m=function(){return this}()||Function("return this")(),_=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,i=_&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,k.exports=n("./runtime"),_)m.regeneratorRuntime=i;else try{delete m.regeneratorRuntime}catch(u){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,k,T){!function(m){"use strict";function _(q,L,D,F){var M=L&&L.prototype instanceof u?L:u,H=Object.create(M.prototype),Y=new S(F||[]);return H._invoke=r(q,D,Y),H}function i(q,L,D){try{return{type:"normal",arg:q.call(L,D)}}catch(F){return{type:"throw",arg:F}}}function u(){}function d(){}function s(){}function e(q){["next","throw","return"].forEach(function(L){q[L]=function(D){return this._invoke(L,D)}})}function a(q){function L(M,H,Y,ae){var ne=i(q[M],q,H);if(ne.type!=="throw"){var se=ne.arg,fe=se.value;return fe&&typeof fe=="object"&&h.call(fe,"__await")?Promise.resolve(fe.__await).then(function(Q){L("next",Q,Y,ae)},function(Q){L("throw",Q,Y,ae)}):Promise.resolve(fe).then(function(Q){se.value=Q,Y(se)},ae)}ae(ne.arg)}function D(M,H){function Y(){return new Promise(function(ae,ne){L(M,H,ae,ne)})}return F=F?F.then(Y,Y):Y()}var F;this._invoke=D}function r(q,L,D){var F=U;return function(M,H){if(F===N)throw new Error("Generator is already running");if(F===G){if(M==="throw")throw H;return f()}for(D.method=M,D.arg=H;;){var Y=D.delegate;if(Y){var ae=c(Y,D);if(ae){if(ae===K)continue;return ae}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(F===U)throw F=G,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);F=N;var ne=i(q,L,D);if(ne.type==="normal"){if(F=D.done?G:j,ne.arg===K)continue;return{value:ne.arg,done:D.done}}ne.type==="throw"&&(F=G,D.method="throw",D.arg=ne.arg)}}}function c(q,L){var D=q.iterator[L.method];if(D===A){if(L.delegate=null,L.method==="throw"){if(q.iterator.return&&(L.method="return",L.arg=A,c(q,L),L.method==="throw"))return K;L.method="throw",L.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}var F=i(D,q.iterator,L.arg);if(F.type==="throw")return L.method="throw",L.arg=F.arg,L.delegate=null,K;var M=F.arg;return M?M.done?(L[q.resultName]=M.value,L.next=q.nextLoc,L.method!=="return"&&(L.method="next",L.arg=A),L.delegate=null,K):M:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,K)}function p(q){var L={tryLoc:q[0]};1 in q&&(L.catchLoc=q[1]),2 in q&&(L.finallyLoc=q[2],L.afterLoc=q[3]),this.tryEntries.push(L)}function l(q){var L=q.completion||{};L.type="normal",delete L.arg,q.completion=L}function S(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(p,this),this.reset(!0)}function E(q){if(q){var L=q[O];if(L)return L.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var D=-1,F=function M(){for(;++D=0;--M){var H=this.tryEntries[M],Y=H.completion;if(H.tryLoc==="root")return D("end");if(H.tryLoc<=this.prev){var ae=h.call(H,"catchLoc"),ne=h.call(H,"finallyLoc");if(ae&&ne){if(this.prev=0;--F){var M=this.tryEntries[F];if(M.tryLoc<=this.prev&&h.call(M,"finallyLoc")&&this.prev=0;--D){var F=this.tryEntries[D];if(F.finallyLoc===L)return this.complete(F.completion,F.afterLoc),l(F),K}},catch:function(L){for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D];if(F.tryLoc===L){var M=F.completion;if(M.type==="throw"){var H=M.arg;l(F)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(L,D,F){return this.delegate={iterator:E(L),resultName:D,nextLoc:F},this.method==="next"&&(this.arg=A),K}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,k,T){function m(d,s){for(var e in d)s[e]=d[e]}function _(d,s,e){return u(d,s,e)}var i=n("buffer"),u=i.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?k.exports=i:(m(i,T),T.Buffer=_),m(u,_),_.from=function(d,s,e){if(typeof d=="number")throw new TypeError("Argument must not be a number");return u(d,s,e)},_.alloc=function(d,s,e){if(typeof d!="number")throw new TypeError("Argument must be a number");var a=u(d);return s!==void 0?typeof e=="string"?a.fill(s,e):a.fill(s):a.fill(0),a},_.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return u(d)},_.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(d)}},{buffer:38}],194:[function(n,k,T){(function(m){"use strict";function _(f){return f&&f.__esModule?f:{default:f}}var i=n("babel-runtime/core-js/string/from-code-point"),u=_(i),d=n("babel-runtime/core-js/json/stringify"),s=_(d),e=n("babel-runtime/helpers/typeof"),a=_(e),r=n("babel-runtime/core-js/object/define-property"),c=_(r),p=n("babel-runtime/core-js/object/keys"),l=_(p),S=n("babel-runtime/core-js/object/create"),E=_(S);!function(f){function A(v,x){if(!(this instanceof A))return new A(v,x);var X=this;h(X),X.q=X.c="",X.bufferCheckPosition=f.MAX_BUFFER_LENGTH,X.opt=x||{},X.opt.lowercase=X.opt.lowercase||X.opt.lowercasetags,X.looseCase=X.opt.lowercase?"toLowerCase":"toUpperCase",X.tags=[],X.closed=X.closedRoot=X.sawRoot=!1,X.tag=X.error=null,X.strict=!!v,X.noscript=!(!v&&!X.opt.noscript),X.state=o.BEGIN,X.strictEntities=X.opt.strictEntities,X.ENTITIES=X.strictEntities?(0,E.default)(f.XML_ENTITIES):(0,E.default)(f.ENTITIES),X.attribList=[],X.opt.xmlns&&(X.ns=(0,E.default)(re)),X.trackPosition=X.opt.position!==!1,X.trackPosition&&(X.position=X.line=X.column=0),N(X,"onready")}function g(v){for(var x=Math.max(f.MAX_BUFFER_LENGTH,10),X=0,V=0,pe=se.length;Vx)switch(se[V]){case"textNode":K(v);break;case"cdata":G(v,"oncdata",v.cdata),v.cdata="";break;case"script":G(v,"onscript",v.script),v.script="";break;default:z(v,"Max buffer length exceeded: "+se[V])}X=Math.max(X,le)}var me=f.MAX_BUFFER_LENGTH-X;v.bufferCheckPosition=me+v.position}function h(v){for(var x=0,X=se.length;x"||b(v)}function U(v,x){return v.test(x)}function j(v,x){return!U(v,x)}function N(v,x,X){v[x]&&v[x](X)}function G(v,x,X){v.textNode&&K(v),N(v,x,X)}function K(v){v.textNode=te(v.opt,v.textNode),v.textNode&&N(v,"ontext",v.textNode),v.textNode=""}function te(v,x){return v.trim&&(x=x.trim()),v.normalize&&(x=x.replace(/\s+/g," ")),x}function z(v,x){return K(v),v.trackPosition&&(x+=` Line: `+v.line+` Column: `+v.column+` -Char: `+v.c),x=new Error(x),v.error=x,N(v,"onerror",x),v}function Z(v){return v.sawRoot&&!v.closedRoot&&$(v,"Unclosed root tag"),v.state!==o.BEGIN&&v.state!==o.BEGIN_WHITESPACE&&v.state!==o.TEXT&&z(v,"Unexpected end"),K(v),v.c="",v.closed=!0,N(v,"onend"),A.call(v,v.strict,v.opt),v}function $(v,x){if((v===void 0?"undefined":(0,a.default)(v))!=="object"||!(v instanceof A))throw new Error("bad call to strictFail");v.strict&&z(v,x)}function q(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var x=v.tags[v.tags.length-1]||v,X=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(X.ns=x.ns),v.attribList.length=0,G(v,"onopentagstart",X)}function L(v,x){var X=v.indexOf(":"),V=X<0?["",v]:v.split(":"),pe=V[0],le=V[1];return x&&v==="xmlns"&&(pe="xmlns",le=""),{prefix:pe,local:le}}function j(v){if(v.strict||(v.attribName=v.attribName[v.looseCase]()),v.attribList.indexOf(v.attribName)!==-1||v.tag.attributes.hasOwnProperty(v.attribName))return void(v.attribName=v.attribValue="");if(v.opt.xmlns){var x=L(v.attribName,!0),X=x.prefix,V=x.local;if(X==="xmlns")if(V==="xml"&&v.attribValue!==W)$(v,"xml: prefix must be bound to "+W+` +Char: `+v.c),x=new Error(x),v.error=x,N(v,"onerror",x),v}function Z(v){return v.sawRoot&&!v.closedRoot&&$(v,"Unclosed root tag"),v.state!==o.BEGIN&&v.state!==o.BEGIN_WHITESPACE&&v.state!==o.TEXT&&z(v,"Unexpected end"),K(v),v.c="",v.closed=!0,N(v,"onend"),A.call(v,v.strict,v.opt),v}function $(v,x){if((v===void 0?"undefined":(0,a.default)(v))!=="object"||!(v instanceof A))throw new Error("bad call to strictFail");v.strict&&z(v,x)}function q(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var x=v.tags[v.tags.length-1]||v,X=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(X.ns=x.ns),v.attribList.length=0,G(v,"onopentagstart",X)}function L(v,x){var X=v.indexOf(":"),V=X<0?["",v]:v.split(":"),pe=V[0],le=V[1];return x&&v==="xmlns"&&(pe="xmlns",le=""),{prefix:pe,local:le}}function D(v){if(v.strict||(v.attribName=v.attribName[v.looseCase]()),v.attribList.indexOf(v.attribName)!==-1||v.tag.attributes.hasOwnProperty(v.attribName))return void(v.attribName=v.attribValue="");if(v.opt.xmlns){var x=L(v.attribName,!0),X=x.prefix,V=x.local;if(X==="xmlns")if(V==="xml"&&v.attribValue!==W)$(v,"xml: prefix must be bound to "+W+` Actual: `+v.attribValue);else if(V==="xmlns"&&v.attribValue!==B)$(v,"xmlns: prefix must be bound to "+B+` -Actual: `+v.attribValue);else{var pe=v.tag,le=v.tags[v.tags.length-1]||v;pe.ns===le.ns&&(pe.ns=(0,E.default)(le.ns)),pe.ns[V]=v.attribValue}v.attribList.push([v.attribName,v.attribValue])}else v.tag.attributes[v.attribName]=v.attribValue,G(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function F(v,x){if(v.opt.xmlns){var X=v.tag,V=L(v.tagName);X.prefix=V.prefix,X.local=V.local,X.uri=X.ns[V.prefix]||"",X.prefix&&!X.uri&&($(v,"Unbound namespace prefix: "+(0,s.default)(v.tagName)),X.uri=V.prefix);var pe=v.tags[v.tags.length-1]||v;X.ns&&pe.ns!==X.ns&&(0,l.default)(X.ns).forEach(function(ze){G(v,"onopennamespace",{prefix:ze,uri:X.ns[ze]})});for(var le=0,me=v.attribList.length;le",v.tagName="",void(v.state=o.SCRIPT);G(v,"onscript",v.script),v.script=""}var x=v.tags.length,X=v.tagName;v.strict||(X=X[v.looseCase]());for(var V=X;x--&&!(v.tags[x].name===V);)$(v,"Unexpected close tag");if(x<0)return $(v,"Unmatched closing tag: "+v.tagName),v.textNode+="",void(v.state=o.TEXT);v.tagName=X;for(var pe=v.tags.length;pe-- >x;){var le=v.tag=v.tags.pop();v.tagName=v.tag.name,G(v,"onclosetag",v.tagName);var me={};for(var ge in le.ns)me[ge]=le.ns[ge];var Se=v.tags[v.tags.length-1]||v;v.opt.xmlns&&le.ns!==Se.ns&&(0,l.default)(le.ns).forEach(function(Pe){var ue=le.ns[Pe];G(v,"onclosenamespace",{prefix:Pe,uri:ue})})}x===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=o.TEXT}function H(v){var x,X=v.entity,V=X.toLowerCase(),pe="";return v.ENTITIES[X]?v.ENTITIES[X]:v.ENTITIES[V]?v.ENTITIES[V]:(X=V,X.charAt(0)==="#"&&(X.charAt(1)==="x"?(X=X.slice(2),x=parseInt(X,16),pe=x.toString(16)):(X=X.slice(1),x=parseInt(X,10),pe=x.toString(10))),X=X.replace(/^0+/,""),isNaN(x)||pe.toLowerCase()!==X?($(v,"Invalid character entity"),"&"+v.entity+";"):(0,u.default)(x))}function Y(v,x){x==="<"?(v.state=o.OPEN_WAKA,v.startTagPosition=v.position):b(x)||($(v,"Non-whitespace before first tag."),v.textNode=x,v.state=o.TEXT)}function ae(v,x){var X="";return x",v.tagName="",void(v.state=o.SCRIPT);G(v,"onscript",v.script),v.script=""}var x=v.tags.length,X=v.tagName;v.strict||(X=X[v.looseCase]());for(var V=X;x--&&!(v.tags[x].name===V);)$(v,"Unexpected close tag");if(x<0)return $(v,"Unmatched closing tag: "+v.tagName),v.textNode+="",void(v.state=o.TEXT);v.tagName=X;for(var pe=v.tags.length;pe-- >x;){var le=v.tag=v.tags.pop();v.tagName=v.tag.name,G(v,"onclosetag",v.tagName);var me={};for(var ge in le.ns)me[ge]=le.ns[ge];var Te=v.tags[v.tags.length-1]||v;v.opt.xmlns&&le.ns!==Te.ns&&(0,l.default)(le.ns).forEach(function(Pe){var ue=le.ns[Pe];G(v,"onclosenamespace",{prefix:Pe,uri:ue})})}x===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=o.TEXT}function H(v){var x,X=v.entity,V=X.toLowerCase(),pe="";return v.ENTITIES[X]?v.ENTITIES[X]:v.ENTITIES[V]?v.ENTITIES[V]:(X=V,X.charAt(0)==="#"&&(X.charAt(1)==="x"?(X=X.slice(2),x=parseInt(X,16),pe=x.toString(16)):(X=X.slice(1),x=parseInt(X,10),pe=x.toString(10))),X=X.replace(/^0+/,""),isNaN(x)||pe.toLowerCase()!==X?($(v,"Invalid character entity"),"&"+v.entity+";"):(0,u.default)(x))}function Y(v,x){x==="<"?(v.state=o.OPEN_WAKA,v.startTagPosition=v.position):b(x)||($(v,"Non-whitespace before first tag."),v.textNode=x,v.state=o.TEXT)}function ae(v,x){var X="";return x"?(G(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=o.TEXT):(I(V)&&(x.state=o.SGML_DECL_QUOTED),x.sgmlDecl+=V);continue;case o.SGML_DECL_QUOTED:V===x.q&&(x.state=o.SGML_DECL,x.q=""),x.sgmlDecl+=V;continue;case o.DOCTYPE:V===">"?(x.state=o.TEXT,G(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=V,V==="["?x.state=o.DOCTYPE_DTD:I(V)&&(x.state=o.DOCTYPE_QUOTED,x.q=V));continue;case o.DOCTYPE_QUOTED:x.doctype+=V,V===x.q&&(x.q="",x.state=o.DOCTYPE);continue;case o.DOCTYPE_DTD:x.doctype+=V,V==="]"?x.state=o.DOCTYPE:I(V)&&(x.state=o.DOCTYPE_DTD_QUOTED,x.q=V);continue;case o.DOCTYPE_DTD_QUOTED:x.doctype+=V,V===x.q&&(x.state=o.DOCTYPE_DTD,x.q="");continue;case o.COMMENT:V==="-"?x.state=o.COMMENT_ENDING:x.comment+=V;continue;case o.COMMENT_ENDING:V==="-"?(x.state=o.COMMENT_ENDED,x.comment=te(x.opt,x.comment),x.comment&&G(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+V,x.state=o.COMMENT);continue;case o.COMMENT_ENDED:V!==">"?($(x,"Malformed comment"),x.comment+="--"+V,x.state=o.COMMENT):x.state=o.TEXT;continue;case o.CDATA:V==="]"?x.state=o.CDATA_ENDING:x.cdata+=V;continue;case o.CDATA_ENDING:V==="]"?x.state=o.CDATA_ENDING_2:(x.cdata+="]"+V,x.state=o.CDATA);continue;case o.CDATA_ENDING_2:V===">"?(x.cdata&&G(x,"oncdata",x.cdata),G(x,"onclosecdata"),x.cdata="",x.state=o.TEXT):V==="]"?x.cdata+="]":(x.cdata+="]]"+V,x.state=o.CDATA);continue;case o.PROC_INST:V==="?"?x.state=o.PROC_INST_ENDING:b(V)?x.state=o.PROC_INST_BODY:x.procInstName+=V;continue;case o.PROC_INST_BODY:if(!x.procInstBody&&b(V))continue;V==="?"?x.state=o.PROC_INST_ENDING:x.procInstBody+=V;continue;case o.PROC_INST_ENDING:V===">"?(G(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=o.TEXT):(x.procInstBody+="?"+V,x.state=o.PROC_INST_BODY);continue;case o.OPEN_TAG:U(ce,V)?x.tagName+=V:(q(x),V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:(b(V)||$(x,"Invalid character in tag name"),x.state=o.ATTRIB));continue;case o.OPEN_TAG_SLASH:V===">"?(F(x,!0),M(x)):($(x,"Forward-slash in opening tag not followed by >"),x.state=o.ATTRIB);continue;case o.ATTRIB:if(b(V))continue;V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:U(ee,V)?(x.attribName=V,x.attribValue="",x.state=o.ATTRIB_NAME):$(x,"Invalid attribute name");continue;case o.ATTRIB_NAME:V==="="?x.state=o.ATTRIB_VALUE:V===">"?($(x,"Attribute without value"),x.attribValue=x.attribName,j(x),F(x)):b(V)?x.state=o.ATTRIB_NAME_SAW_WHITE:U(ce,V)?x.attribName+=V:$(x,"Invalid attribute name");continue;case o.ATTRIB_NAME_SAW_WHITE:if(V==="=")x.state=o.ATTRIB_VALUE;else{if(b(V))continue;$(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",G(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",V===">"?F(x):U(ee,V)?(x.attribName=V,x.state=o.ATTRIB_NAME):($(x,"Invalid attribute name"),x.state=o.ATTRIB)}continue;case o.ATTRIB_VALUE:if(b(V))continue;I(V)?(x.q=V,x.state=o.ATTRIB_VALUE_QUOTED):($(x,"Unquoted attribute value"),x.state=o.ATTRIB_VALUE_UNQUOTED,x.attribValue=V);continue;case o.ATTRIB_VALUE_QUOTED:if(V!==x.q){V==="&"?x.state=o.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=V;continue}j(x),x.q="",x.state=o.ATTRIB_VALUE_CLOSED;continue;case o.ATTRIB_VALUE_CLOSED:b(V)?x.state=o.ATTRIB:V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:U(ee,V)?($(x,"No whitespace between attributes"),x.attribName=V,x.attribValue="",x.state=o.ATTRIB_NAME):$(x,"Invalid attribute name");continue;case o.ATTRIB_VALUE_UNQUOTED:if(!y(V)){V==="&"?x.state=o.ATTRIB_VALUE_ENTITY_U:x.attribValue+=V;continue}j(x),V===">"?F(x):x.state=o.ATTRIB;continue;case o.CLOSE_TAG:if(x.tagName)V===">"?M(x):U(ce,V)?x.tagName+=V:x.script?(x.script+=""?M(x):$(x,"Invalid characters in closing tag");continue;case o.TEXT_ENTITY:case o.ATTRIB_VALUE_ENTITY_Q:case o.ATTRIB_VALUE_ENTITY_U:var me,ge;switch(x.state){case o.TEXT_ENTITY:me=o.TEXT,ge="textNode";break;case o.ATTRIB_VALUE_ENTITY_Q:me=o.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case o.ATTRIB_VALUE_ENTITY_U:me=o.ATTRIB_VALUE_UNQUOTED,ge="attribValue"}V===";"?(x[ge]+=H(x),x.entity="",x.state=me):U(x.entity.length?t:P,V)?x.entity+=V:($(x,"Invalid character in entity name"),x[ge]+="&"+x.entity+V,x.entity="",x.state=me);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&g(x),x}f.parser=function(v,x){return new A(v,x)},f.SAXParser=A,f.SAXStream=R,f.createStream=O,f.MAX_BUFFER_LENGTH=65536;var se=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];f.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],E.default||(Object.create=function(v){function x(){}return x.prototype=v,new x}),l.default||(Object.keys=function(v){var x=[];for(var X in v)v.hasOwnProperty(X)&&x.push(X);return x}),A.prototype={end:function(){Z(this)},write:ne,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){w(this)}};var fe;try{fe=n("stream").Stream}catch(v){fe=function(){}}var Q=f.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});R.prototype=(0,E.default)(fe.prototype,{constructor:{value:R}}),R.prototype.write=function(v){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(v)){if(!this._decoder){var x=n("string_decoder").StringDecoder;this._decoder=new x("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},R.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},R.prototype.on=function(v,x){var X=this;return X._parser["on"+v]||Q.indexOf(v)===-1||(X._parser["on"+v]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,v),X.emit.apply(X,V)}),fe.prototype.on.call(X,v,x)};var J="[CDATA[",ie="DOCTYPE",W="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",re={xml:W,xmlns:B},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]/,ce=/[:_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-]/,o=0;f.STATE={BEGIN:o++,BEGIN_WHITESPACE:o++,TEXT:o++,TEXT_ENTITY:o++,OPEN_WAKA:o++,SGML_DECL:o++,SGML_DECL_QUOTED:o++,DOCTYPE:o++,DOCTYPE_QUOTED:o++,DOCTYPE_DTD:o++,DOCTYPE_DTD_QUOTED:o++,COMMENT_STARTING:o++,COMMENT:o++,COMMENT_ENDING:o++,COMMENT_ENDED:o++,CDATA:o++,CDATA_ENDING:o++,CDATA_ENDING_2:o++,PROC_INST:o++,PROC_INST_BODY:o++,PROC_INST_ENDING:o++,OPEN_TAG:o++,OPEN_TAG_SLASH:o++,ATTRIB:o++,ATTRIB_NAME:o++,ATTRIB_NAME_SAW_WHITE:o++,ATTRIB_VALUE:o++,ATTRIB_VALUE_QUOTED:o++,ATTRIB_VALUE_CLOSED:o++,ATTRIB_VALUE_UNQUOTED:o++,ATTRIB_VALUE_ENTITY_Q:o++,ATTRIB_VALUE_ENTITY_U:o++,CLOSE_TAG:o++,CLOSE_TAG_SAW_WHITE:o++,SCRIPT:o++,SCRIPT_ENDING:o++},f.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},f.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,l.default)(f.ENTITIES).forEach(function(v){var x=f.ENTITIES[v],X=typeof x=="number"?String.fromCharCode(x):x;f.ENTITIES[v]=X});for(var C in f.STATE)f.STATE[f.STATE[C]]=C;o=f.STATE,u.default||function(){var v=String.fromCharCode,x=Math.floor,X=function(){var pe,le,me=[],ge=-1,Se=arguments.length;if(!Se)return"";for(var Pe="";++ge1114111||x(ue)!==ue)throw RangeError("Invalid code point: "+ue);ue<=65535?me.push(ue):(ue-=65536,pe=55296+(ue>>10),le=ue%1024+56320,me.push(pe,le)),(ge+1===Se||me.length>16384)&&(Pe+=v.apply(null,me),me.length=0)}return Pe};c.default?Object.defineProperty(String,"fromCodePoint",{value:X,configurable:!0,writable:!0}):String.fromCodePoint=X}()}(T===void 0?(void 0).sax={}:T)}).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,k,T){function m(){_.call(this)}k.exports=m;var _=n("events").EventEmitter;n("inherits")(m,_),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(S){i.writable&&i.write(S)===!1&&p.pause&&p.pause()}function s(){p.readable&&p.resume&&p.resume()}function e(){l||(l=!0,i.end())}function a(){l||(l=!0,typeof i.destroy=="function"&&i.destroy())}function r(S){if(c(),_.listenerCount(this,"error")===0)throw S}function c(){p.removeListener("data",d),i.removeListener("drain",s),p.removeListener("end",e),p.removeListener("close",a),p.removeListener("error",r),i.removeListener("error",r),p.removeListener("end",c),p.removeListener("close",c),i.removeListener("close",c)}var p=this;p.on("data",d),i.on("drain",s),i._isStdio||u&&u.end===!1||(p.on("end",e),p.on("close",a));var l=!1;return p.on("error",r),i.on("error",r),p.on("end",c),p.on("close",c),i.on("close",c),i.emit("pipe",p),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,k,T){(function(m){var _=n("./lib/request"),i=n("./lib/response"),u=n("xtend"),d=n("builtin-status-codes"),s=n("url"),e=T;e.request=function(a,r){a=typeof a=="string"?s.parse(a):u(a);var c=m.location.protocol.search(/^https?:$/)===-1?"http:":"",p=a.protocol||c,l=a.hostname||a.host,S=a.port,E=a.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),a.url=(l?p+"//"+l:"")+(S?":"+S:"")+E,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var f=new _(a);return r&&f.on("response",r),f},e.get=function(a,r){var c=e.request(a,r);return c.end(),c},e.ClientRequest=_,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 je!="undefined"?je: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,k,T){(function(m){"use strict";function _(){if(d!==void 0)return d;if(m.XMLHttpRequest){d=new m.XMLHttpRequest;try{d.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(a){d=null}}else d=null;return d}function i(a){var r=_();if(!r)return!1;try{return r.responseType=a,r.responseType===a}catch(c){}return!1}function u(a){return typeof a=="function"}T.fetch=u(m.fetch)&&u(m.ReadableStream),T.writableStream=u(m.WritableStream),T.abortController=u(m.AbortController),T.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),T.blobConstructor=!0}catch(a){}var d,s=m.ArrayBuffer!==void 0,e=s&&u(m.ArrayBuffer.prototype.slice);T.arraybuffer=T.fetch||s&&i("arraybuffer"),T.msstream=!T.fetch&&e&&i("ms-stream"),T.mozchunkedarraybuffer=!T.fetch&&s&&i("moz-chunked-arraybuffer"),T.overrideMimeType=T.fetch||!!_()&&u(_().overrideMimeType),T.vbArray=u(m.VBArray),d=null}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,k,T){(function(m,_,i){"use strict";function u(g,h){return a.fetch&&h?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&g?"arraybuffer":a.vbArray&&g?"text:vbarray":"text"}function d(g){try{var h=g.status;return h!==null&&h!==0}catch(w){return!1}}var s=n("babel-runtime/core-js/object/keys"),e=function(g){return g&&g.__esModule?g:{default:g}}(s),a=n("./capability"),r=n("inherits"),c=n("./response"),p=n("readable-stream"),l=n("to-arraybuffer"),S=c.IncomingMessage,E=c.readyStates,f=k.exports=function(g){var h=this;p.Writable.call(h),h._opts=g,h._body=[],h._headers={},g.auth&&h.setHeader("Authorization","Basic "+new i(g.auth).toString("base64")),(0,e.default)(g.headers).forEach(function(R){h.setHeader(R,g.headers[R])});var w,O=!0;if(g.mode==="disable-fetch"||"requestTimeout"in g&&!a.abortController)O=!1,w=!0;else if(g.mode==="prefer-streaming")w=!1;else if(g.mode==="allow-wrong-content-type")w=!a.overrideMimeType;else{if(g.mode&&g.mode!=="default"&&g.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");w=!0}h._mode=u(w,O),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};r(f,p.Writable),f.prototype.setHeader=function(g,h){var w=this,O=g.toLowerCase();A.indexOf(O)===-1&&(w._headers[O]={name:g,value:h})},f.prototype.getHeader=function(g){var h=this._headers[g.toLowerCase()];return h?h.value:null},f.prototype.removeHeader=function(g){delete this._headers[g.toLowerCase()]},f.prototype._onFinish=function(){var g=this;if(!g._destroyed){var h=g._opts,w=g._headers,O=null;h.method!=="GET"&&h.method!=="HEAD"&&(O=a.arraybuffer?l(i.concat(g._body)):a.blobConstructor?new _.Blob(g._body.map(function(U){return l(U)}),{type:(w["content-type"]||{}).value||""}):i.concat(g._body).toString());var R=[];if((0,e.default)(w).forEach(function(U){var D=w[U].name,N=w[U].value;Array.isArray(N)?N.forEach(function(G){R.push([D,G])}):R.push([D,N])}),g._mode==="fetch"){var b=null;if(a.abortController){var I=new AbortController;b=I.signal,g._fetchAbortController=I,"requestTimeout"in h&&h.requestTimeout!==0&&(g._fetchTimer=_.setTimeout(function(){g.emit("requestTimeout"),g._fetchAbortController&&g._fetchAbortController.abort()},h.requestTimeout))}_.fetch(g._opts.url,{method:g._opts.method,headers:R,body:O||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:b}).then(function(U){g._fetchResponse=U,g._connect()},function(U){_.clearTimeout(g._fetchTimer),g._destroyed||g.emit("error",U)})}else{var y=g._xhr=new _.XMLHttpRequest;try{y.open(g._opts.method,g._opts.url,!0)}catch(U){return void m.nextTick(function(){g.emit("error",U)})}"responseType"in y&&(y.responseType=g._mode.split(":")[0]),"withCredentials"in y&&(y.withCredentials=!!h.withCredentials),g._mode==="text"&&"overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(y.timeout=h.requestTimeout,y.ontimeout=function(){g.emit("requestTimeout")}),R.forEach(function(U){y.setRequestHeader(U[0],U[1])}),g._response=null,y.onreadystatechange=function(){switch(y.readyState){case E.LOADING:case E.DONE:g._onXHRProgress()}},g._mode==="moz-chunked-arraybuffer"&&(y.onprogress=function(){g._onXHRProgress()}),y.onerror=function(){g._destroyed||g.emit("error",new Error("XHR error"))};try{y.send(O)}catch(U){return void m.nextTick(function(){g.emit("error",U)})}}}},f.prototype._onXHRProgress=function(){var g=this;d(g._xhr)&&!g._destroyed&&(g._response||g._connect(),g._response._onXHRProgress())},f.prototype._connect=function(){var g=this;g._destroyed||(g._response=new S(g._xhr,g._fetchResponse,g._mode,g._fetchTimer),g._response.on("error",function(h){g.emit("error",h)}),g.emit("response",g._response))},f.prototype._write=function(g,h,w){this._body.push(g),w()},f.prototype.abort=f.prototype.destroy=function(){var g=this;g._destroyed=!0,_.clearTimeout(g._fetchTimer),g._response&&(g._response._destroyed=!0),g._xhr?g._xhr.abort():g._fetchAbortController&&g._fetchAbortController.abort()},f.prototype.end=function(g,h,w){var O=this;typeof g=="function"&&(w=g,g=void 0),p.Writable.prototype.end.call(O,g,h,w)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var A=["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 je!="undefined"?je: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,k,T){(function(m,_,i){"use strict";var u=n("babel-runtime/core-js/promise"),d=function(p){return p&&p.__esModule?p:{default:p}}(u),s=n("./capability"),e=n("inherits"),a=n("readable-stream"),r=T.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=T.IncomingMessage=function(p,l,S,E){var f=this;if(a.Readable.call(f),f._mode=S,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){m.nextTick(function(){f.emit("close")})}),S==="fetch"){if(f._fetchResponse=l,f.url=l.url,f.statusCode=l.status,f.statusMessage=l.statusText,l.headers.forEach(function(O,R){f.headers[R.toLowerCase()]=O,f.rawHeaders.push(R,O)}),s.writableStream){var A=new WritableStream({write:function(R){return new d.default(function(b,I){f._destroyed?I():f.push(new i(R))?b():f._resumeFetch=b})},close:function(){_.clearTimeout(E),f._destroyed||f.push(null)},abort:function(R){f._destroyed||f.emit("error",R)}});try{return void l.body.pipeTo(A).catch(function(O){_.clearTimeout(E),f._destroyed||f.emit("error",O)})}catch(O){}}var g=l.body.getReader();!function O(){g.read().then(function(R){if(!f._destroyed){if(R.done)return _.clearTimeout(E),void f.push(null);f.push(new i(R.value)),O()}}).catch(function(R){_.clearTimeout(E),f._destroyed||f.emit("error",R)})}()}else if(f._xhr=p,f._pos=0,f.url=p.responseURL,f.statusCode=p.status,f.statusMessage=p.statusText,p.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var R=O.match(/^([^:]+):\s*(.*)/);if(R){var b=R[1].toLowerCase();b==="set-cookie"?(f.headers[b]===void 0&&(f.headers[b]=[]),f.headers[b].push(R[2])):f.headers[b]!==void 0?f.headers[b]+=", "+R[2]:f.headers[b]=R[2],f.rawHeaders.push(R[1],R[2])}}),f._charset="x-user-defined",!s.overrideMimeType){var h=f.rawHeaders["mime-type"];if(h){var w=h.match(/;\s*charset=([^;])(;|$)/);w&&(f._charset=w[1].toLowerCase())}f._charset||(f._charset="utf-8")}};e(c,a.Readable),c.prototype._read=function(){var p=this,l=p._resumeFetch;l&&(p._resumeFetch=null,l())},c.prototype._onXHRProgress=function(){var p=this,l=p._xhr,S=null;switch(p._mode){case"text:vbarray":if(l.readyState!==r.DONE)break;try{S=new _.VBArray(l.responseBody).toArray()}catch(h){}if(S!==null){p.push(new i(S));break}case"text":try{S=l.responseText}catch(h){p._mode="text:vbarray";break}if(S.length>p._pos){var E=S.substr(p._pos);if(p._charset==="x-user-defined"){for(var f=new i(E.length),A=0;Ap._pos&&(p.push(new i(new Uint8Array(g.result.slice(p._pos)))),p._pos=g.result.byteLength)},g.onload=function(){p.push(null)},g.readAsArrayBuffer(S)}p._xhr.readyState===r.DONE&&p._mode!=="ms-stream"&&p.push(null)}}).call(this,n("_process"),typeof je!="undefined"?je: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,k,T){"use strict";function m(h){if(!h)return"utf8";for(var w;;)switch(h){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 h;default:if(w)return;h=(""+h).toLowerCase(),w=!0}}function _(h){var w=m(h);if(typeof w!="string"&&(A.isEncoding===g||!g(h)))throw new Error("Unknown encoding: "+h);return w||h}function i(h){this.encoding=_(h);var w;switch(this.encoding){case"utf16le":this.text=c,this.end=p,w=4;break;case"utf8":this.fillLast=e,w=4;break;case"base64":this.text=l,this.end=S,w=3;break;default:return this.write=E,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(w)}function u(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function d(h,w,O){var R=w.length-1;if(R=0?(b>0&&(h.lastNeed=b-1),b):--R=0?(b>0&&(h.lastNeed=b-2),b):--R=0?(b>0&&(b===2?b=0:h.lastNeed=b-3),b):0)}function s(h,w,O){if((192&w[0])!=128)return h.lastNeed=0,"\u951F\uFFFD";if(h.lastNeed>1&&w.length>1){if((192&w[1])!=128)return h.lastNeed=1,"\u951F\uFFFD";if(h.lastNeed>2&&w.length>2&&(192&w[2])!=128)return h.lastNeed=2,"\u951F\uFFFD"}}function e(h){var w=this.lastTotal-this.lastNeed,O=s(this,h,w);return O!==void 0?O:this.lastNeed<=h.length?(h.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,w,0,h.length),void(this.lastNeed-=h.length))}function a(h,w){var O=d(this,h,w);if(!this.lastNeed)return h.toString("utf8",w);this.lastTotal=O;var R=h.length-(O-this.lastNeed);return h.copy(this.lastChar,0,R),h.toString("utf8",w,R)}function r(h){var w=h&&h.length?this.write(h):"";return this.lastNeed?w+"\u951F\uFFFD":w}function c(h,w){if((h.length-w)%2==0){var O=h.toString("utf16le",w);if(O){var R=O.charCodeAt(O.length-1);if(R>=55296&&R<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",w,h.length-1)}function p(h){var w=h&&h.length?this.write(h):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,O)}return w}function l(h,w){var O=(h.length-w)%3;return O===0?h.toString("base64",w):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",w,h.length-O))}function S(h){var w=h&&h.length?this.write(h):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function E(h){return h.toString(this.encoding)}function f(h){return h&&h.length?this.write(h):""}var A=n("safe-buffer").Buffer,g=A.isEncoding||function(h){switch((h=""+h)&&h.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}};T.StringDecoder=i,i.prototype.write=function(h){if(h.length===0)return"";var w,O;if(this.lastNeed){if((w=this.fillLast(h))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},c))},T.setImmediate=typeof m=="function"?m:function(r){var c=a++,p=!(arguments.length<2)&&s.call(arguments,1);return e[c]=!0,u(function(){e[c]&&(p?r.apply(null,p):r.call(null),T.clearImmediate(c))}),c},T.clearImmediate=typeof _=="function"?_:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,k,T){var m=n("buffer").Buffer;k.exports=function(_){if(_ instanceof Uint8Array){if(_.byteOffset===0&&_.byteLength===_.buffer.byteLength)return _.buffer;if(typeof _.buffer.slice=="function")return _.buffer.slice(_.byteOffset,_.byteOffset+_.byteLength)}if(m.isBuffer(_)){for(var i=new Uint8Array(_.length),u=_.length,d=0;d",'"',"`"," ","\r",` -`," "],l=["{","}","|","\\","^","`"].concat(p),S=["'"].concat(l),E=["%","/","?",";","#"].concat(S),f=["/","?","#"],A=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=n("querystring");m.prototype.parse=function(b,I,y){if(!e.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var U=b.indexOf("?"),D=U!==-1&&U127?se+="x":se+=ne[fe];if(!se.match(A)){var J=Y.slice(0,L),ie=Y.slice(L+1),W=ne.match(g);W&&(J.push(W[1]),ie.unshift(W[2])),ie.length&&(K="/"+ie.join(".")+K),this.hostname=J.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=s.toASCII(this.hostname));var B=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+B,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),K[0]!=="/"&&(K="/"+K))}if(!h[Z])for(var L=0,ae=S.length;L0)&&y.host.split("@");se&&(y.auth=se.shift(),y.host=y.hostname=se.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 fe=Y.slice(-1)[0],Q=(y.host||b.host||Y.length>1)&&(fe==="."||fe==="..")||fe==="",J=0,ie=Y.length;ie>=0;ie--)fe=Y[ie],fe==="."?Y.splice(ie,1):fe===".."?(Y.splice(ie,1),J++):J&&(Y.splice(ie,1),J--);if(!M&&!H)for(;J--;J)Y.unshift("..");!M||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Q&&Y.join("/").substr(-1)!=="/"&&Y.push("");var W=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(ne){y.hostname=y.host=W?"":Y.length?Y.shift():"";var se=!!(y.host&&y.host.indexOf("@")>0)&&y.host.split("@");se&&(y.auth=se.shift(),y.host=y.hostname=se.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,I=r.exec(b);I&&(I=I[0],I!==":"&&(this.port=I.substr(1)),b=b.substr(0,b.length-I.length)),b&&(this.hostname=b)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,k,T){"use strict";k.exports={isString:function(_){return typeof _=="string"},isObject:function(_){return typeof _=="object"&&_!==null},isNull:function(_){return _===null},isNullOrUndefined:function(_){return _==null}}},{}],205:[function(n,k,T){(function(m){function _(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"}k.exports=_}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,k,T){k.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(n,k,T){(function(m,_){function i(L,j){var F={seen:[],stylize:d};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),E(j)?F.showHidden=j:j&&T._extend(F,j),O(F.showHidden)&&(F.showHidden=!1),O(F.depth)&&(F.depth=2),O(F.colors)&&(F.colors=!1),O(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=u),e(F,L,F.depth)}function u(L,j){var F=i.styles[j];return F?"["+i.colors[F][0]+"m"+L+"["+i.colors[F][1]+"m":L}function d(L,j){return L}function s(L){var j={};return L.forEach(function(F,M){j[F]=!0}),j}function e(L,j,F){if(L.customInspect&&j&&U(j.inspect)&&j.inspect!==T.inspect&&(!j.constructor||j.constructor.prototype!==j)){var M=j.inspect(F,L);return h(M)||(M=e(L,M,F)),M}var H=a(L,j);if(H)return H;var Y=Object.keys(j),ae=s(Y);if(L.showHidden&&(Y=Object.getOwnPropertyNames(j)),y(j)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(j);if(Y.length===0){if(U(j)){var ne=j.name?": "+j.name:"";return L.stylize("[Function"+ne+"]","special")}if(R(j))return L.stylize(RegExp.prototype.toString.call(j),"regexp");if(I(j))return L.stylize(Date.prototype.toString.call(j),"date");if(y(j))return r(j)}var se="",fe=!1,Q=["{","}"];if((S(j)&&(fe=!0,Q=["[","]"]),U(j))&&(se=" [Function"+(j.name?": "+j.name:"")+"]"),R(j)&&(se=" "+RegExp.prototype.toString.call(j)),I(j)&&(se=" "+Date.prototype.toUTCString.call(j)),y(j)&&(se=" "+r(j)),Y.length===0&&(!fe||j.length==0))return Q[0]+se+Q[1];if(F<0)return R(j)?L.stylize(RegExp.prototype.toString.call(j),"regexp"):L.stylize("[Object]","special");L.seen.push(j);var J;return J=fe?c(L,j,F,ae,Y):Y.map(function(ie){return p(L,j,F,ae,ie,fe)}),L.seen.pop(),l(J,se,Q)}function a(L,j){if(O(j))return L.stylize("undefined","undefined");if(h(j)){var F="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(F,"string")}return g(j)?L.stylize(""+j,"number"):E(j)?L.stylize(""+j,"boolean"):f(j)?L.stylize("null","null"):void 0}function r(L){return"["+Error.prototype.toString.call(L)+"]"}function c(L,j,F,M,H){for(var Y=[],ae=0,ne=j.length;ae"?(G(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=o.TEXT):(I(V)&&(x.state=o.SGML_DECL_QUOTED),x.sgmlDecl+=V);continue;case o.SGML_DECL_QUOTED:V===x.q&&(x.state=o.SGML_DECL,x.q=""),x.sgmlDecl+=V;continue;case o.DOCTYPE:V===">"?(x.state=o.TEXT,G(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=V,V==="["?x.state=o.DOCTYPE_DTD:I(V)&&(x.state=o.DOCTYPE_QUOTED,x.q=V));continue;case o.DOCTYPE_QUOTED:x.doctype+=V,V===x.q&&(x.q="",x.state=o.DOCTYPE);continue;case o.DOCTYPE_DTD:x.doctype+=V,V==="]"?x.state=o.DOCTYPE:I(V)&&(x.state=o.DOCTYPE_DTD_QUOTED,x.q=V);continue;case o.DOCTYPE_DTD_QUOTED:x.doctype+=V,V===x.q&&(x.state=o.DOCTYPE_DTD,x.q="");continue;case o.COMMENT:V==="-"?x.state=o.COMMENT_ENDING:x.comment+=V;continue;case o.COMMENT_ENDING:V==="-"?(x.state=o.COMMENT_ENDED,x.comment=te(x.opt,x.comment),x.comment&&G(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+V,x.state=o.COMMENT);continue;case o.COMMENT_ENDED:V!==">"?($(x,"Malformed comment"),x.comment+="--"+V,x.state=o.COMMENT):x.state=o.TEXT;continue;case o.CDATA:V==="]"?x.state=o.CDATA_ENDING:x.cdata+=V;continue;case o.CDATA_ENDING:V==="]"?x.state=o.CDATA_ENDING_2:(x.cdata+="]"+V,x.state=o.CDATA);continue;case o.CDATA_ENDING_2:V===">"?(x.cdata&&G(x,"oncdata",x.cdata),G(x,"onclosecdata"),x.cdata="",x.state=o.TEXT):V==="]"?x.cdata+="]":(x.cdata+="]]"+V,x.state=o.CDATA);continue;case o.PROC_INST:V==="?"?x.state=o.PROC_INST_ENDING:b(V)?x.state=o.PROC_INST_BODY:x.procInstName+=V;continue;case o.PROC_INST_BODY:if(!x.procInstBody&&b(V))continue;V==="?"?x.state=o.PROC_INST_ENDING:x.procInstBody+=V;continue;case o.PROC_INST_ENDING:V===">"?(G(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=o.TEXT):(x.procInstBody+="?"+V,x.state=o.PROC_INST_BODY);continue;case o.OPEN_TAG:U(ce,V)?x.tagName+=V:(q(x),V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:(b(V)||$(x,"Invalid character in tag name"),x.state=o.ATTRIB));continue;case o.OPEN_TAG_SLASH:V===">"?(F(x,!0),M(x)):($(x,"Forward-slash in opening tag not followed by >"),x.state=o.ATTRIB);continue;case o.ATTRIB:if(b(V))continue;V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:U(ee,V)?(x.attribName=V,x.attribValue="",x.state=o.ATTRIB_NAME):$(x,"Invalid attribute name");continue;case o.ATTRIB_NAME:V==="="?x.state=o.ATTRIB_VALUE:V===">"?($(x,"Attribute without value"),x.attribValue=x.attribName,D(x),F(x)):b(V)?x.state=o.ATTRIB_NAME_SAW_WHITE:U(ce,V)?x.attribName+=V:$(x,"Invalid attribute name");continue;case o.ATTRIB_NAME_SAW_WHITE:if(V==="=")x.state=o.ATTRIB_VALUE;else{if(b(V))continue;$(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",G(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",V===">"?F(x):U(ee,V)?(x.attribName=V,x.state=o.ATTRIB_NAME):($(x,"Invalid attribute name"),x.state=o.ATTRIB)}continue;case o.ATTRIB_VALUE:if(b(V))continue;I(V)?(x.q=V,x.state=o.ATTRIB_VALUE_QUOTED):($(x,"Unquoted attribute value"),x.state=o.ATTRIB_VALUE_UNQUOTED,x.attribValue=V);continue;case o.ATTRIB_VALUE_QUOTED:if(V!==x.q){V==="&"?x.state=o.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=V;continue}D(x),x.q="",x.state=o.ATTRIB_VALUE_CLOSED;continue;case o.ATTRIB_VALUE_CLOSED:b(V)?x.state=o.ATTRIB:V===">"?F(x):V==="/"?x.state=o.OPEN_TAG_SLASH:U(ee,V)?($(x,"No whitespace between attributes"),x.attribName=V,x.attribValue="",x.state=o.ATTRIB_NAME):$(x,"Invalid attribute name");continue;case o.ATTRIB_VALUE_UNQUOTED:if(!y(V)){V==="&"?x.state=o.ATTRIB_VALUE_ENTITY_U:x.attribValue+=V;continue}D(x),V===">"?F(x):x.state=o.ATTRIB;continue;case o.CLOSE_TAG:if(x.tagName)V===">"?M(x):U(ce,V)?x.tagName+=V:x.script?(x.script+=""?M(x):$(x,"Invalid characters in closing tag");continue;case o.TEXT_ENTITY:case o.ATTRIB_VALUE_ENTITY_Q:case o.ATTRIB_VALUE_ENTITY_U:var me,ge;switch(x.state){case o.TEXT_ENTITY:me=o.TEXT,ge="textNode";break;case o.ATTRIB_VALUE_ENTITY_Q:me=o.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case o.ATTRIB_VALUE_ENTITY_U:me=o.ATTRIB_VALUE_UNQUOTED,ge="attribValue"}V===";"?(x[ge]+=H(x),x.entity="",x.state=me):U(x.entity.length?t:P,V)?x.entity+=V:($(x,"Invalid character in entity name"),x[ge]+="&"+x.entity+V,x.entity="",x.state=me);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&g(x),x}f.parser=function(v,x){return new A(v,x)},f.SAXParser=A,f.SAXStream=R,f.createStream=O,f.MAX_BUFFER_LENGTH=65536;var se=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];f.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],E.default||(Object.create=function(v){function x(){}return x.prototype=v,new x}),l.default||(Object.keys=function(v){var x=[];for(var X in v)v.hasOwnProperty(X)&&x.push(X);return x}),A.prototype={end:function(){Z(this)},write:ne,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){w(this)}};var fe;try{fe=n("stream").Stream}catch(v){fe=function(){}}var Q=f.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});R.prototype=(0,E.default)(fe.prototype,{constructor:{value:R}}),R.prototype.write=function(v){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(v)){if(!this._decoder){var x=n("string_decoder").StringDecoder;this._decoder=new x("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},R.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},R.prototype.on=function(v,x){var X=this;return X._parser["on"+v]||Q.indexOf(v)===-1||(X._parser["on"+v]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,v),X.emit.apply(X,V)}),fe.prototype.on.call(X,v,x)};var J="[CDATA[",ie="DOCTYPE",W="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",re={xml:W,xmlns:B},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]/,ce=/[:_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-]/,o=0;f.STATE={BEGIN:o++,BEGIN_WHITESPACE:o++,TEXT:o++,TEXT_ENTITY:o++,OPEN_WAKA:o++,SGML_DECL:o++,SGML_DECL_QUOTED:o++,DOCTYPE:o++,DOCTYPE_QUOTED:o++,DOCTYPE_DTD:o++,DOCTYPE_DTD_QUOTED:o++,COMMENT_STARTING:o++,COMMENT:o++,COMMENT_ENDING:o++,COMMENT_ENDED:o++,CDATA:o++,CDATA_ENDING:o++,CDATA_ENDING_2:o++,PROC_INST:o++,PROC_INST_BODY:o++,PROC_INST_ENDING:o++,OPEN_TAG:o++,OPEN_TAG_SLASH:o++,ATTRIB:o++,ATTRIB_NAME:o++,ATTRIB_NAME_SAW_WHITE:o++,ATTRIB_VALUE:o++,ATTRIB_VALUE_QUOTED:o++,ATTRIB_VALUE_CLOSED:o++,ATTRIB_VALUE_UNQUOTED:o++,ATTRIB_VALUE_ENTITY_Q:o++,ATTRIB_VALUE_ENTITY_U:o++,CLOSE_TAG:o++,CLOSE_TAG_SAW_WHITE:o++,SCRIPT:o++,SCRIPT_ENDING:o++},f.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},f.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,l.default)(f.ENTITIES).forEach(function(v){var x=f.ENTITIES[v],X=typeof x=="number"?String.fromCharCode(x):x;f.ENTITIES[v]=X});for(var C in f.STATE)f.STATE[f.STATE[C]]=C;o=f.STATE,u.default||function(){var v=String.fromCharCode,x=Math.floor,X=function(){var pe,le,me=[],ge=-1,Te=arguments.length;if(!Te)return"";for(var Pe="";++ge1114111||x(ue)!==ue)throw RangeError("Invalid code point: "+ue);ue<=65535?me.push(ue):(ue-=65536,pe=55296+(ue>>10),le=ue%1024+56320,me.push(pe,le)),(ge+1===Te||me.length>16384)&&(Pe+=v.apply(null,me),me.length=0)}return Pe};c.default?Object.defineProperty(String,"fromCodePoint",{value:X,configurable:!0,writable:!0}):String.fromCodePoint=X}()}(T===void 0?(void 0).sax={}:T)}).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,k,T){function m(){_.call(this)}k.exports=m;var _=n("events").EventEmitter;n("inherits")(m,_),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(S){i.writable&&i.write(S)===!1&&p.pause&&p.pause()}function s(){p.readable&&p.resume&&p.resume()}function e(){l||(l=!0,i.end())}function a(){l||(l=!0,typeof i.destroy=="function"&&i.destroy())}function r(S){if(c(),_.listenerCount(this,"error")===0)throw S}function c(){p.removeListener("data",d),i.removeListener("drain",s),p.removeListener("end",e),p.removeListener("close",a),p.removeListener("error",r),i.removeListener("error",r),p.removeListener("end",c),p.removeListener("close",c),i.removeListener("close",c)}var p=this;p.on("data",d),i.on("drain",s),i._isStdio||u&&u.end===!1||(p.on("end",e),p.on("close",a));var l=!1;return p.on("error",r),i.on("error",r),p.on("end",c),p.on("close",c),i.on("close",c),i.emit("pipe",p),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,k,T){(function(m){var _=n("./lib/request"),i=n("./lib/response"),u=n("xtend"),d=n("builtin-status-codes"),s=n("url"),e=T;e.request=function(a,r){a=typeof a=="string"?s.parse(a):u(a);var c=m.location.protocol.search(/^https?:$/)===-1?"http:":"",p=a.protocol||c,l=a.hostname||a.host,S=a.port,E=a.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),a.url=(l?p+"//"+l:"")+(S?":"+S:"")+E,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var f=new _(a);return r&&f.on("response",r),f},e.get=function(a,r){var c=e.request(a,r);return c.end(),c},e.ClientRequest=_,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 De!="undefined"?De: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,k,T){(function(m){"use strict";function _(){if(d!==void 0)return d;if(m.XMLHttpRequest){d=new m.XMLHttpRequest;try{d.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(a){d=null}}else d=null;return d}function i(a){var r=_();if(!r)return!1;try{return r.responseType=a,r.responseType===a}catch(c){}return!1}function u(a){return typeof a=="function"}T.fetch=u(m.fetch)&&u(m.ReadableStream),T.writableStream=u(m.WritableStream),T.abortController=u(m.AbortController),T.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),T.blobConstructor=!0}catch(a){}var d,s=m.ArrayBuffer!==void 0,e=s&&u(m.ArrayBuffer.prototype.slice);T.arraybuffer=T.fetch||s&&i("arraybuffer"),T.msstream=!T.fetch&&e&&i("ms-stream"),T.mozchunkedarraybuffer=!T.fetch&&s&&i("moz-chunked-arraybuffer"),T.overrideMimeType=T.fetch||!!_()&&u(_().overrideMimeType),T.vbArray=u(m.VBArray),d=null}).call(this,typeof De!="undefined"?De:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,k,T){(function(m,_,i){"use strict";function u(g,h){return a.fetch&&h?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&g?"arraybuffer":a.vbArray&&g?"text:vbarray":"text"}function d(g){try{var h=g.status;return h!==null&&h!==0}catch(w){return!1}}var s=n("babel-runtime/core-js/object/keys"),e=function(g){return g&&g.__esModule?g:{default:g}}(s),a=n("./capability"),r=n("inherits"),c=n("./response"),p=n("readable-stream"),l=n("to-arraybuffer"),S=c.IncomingMessage,E=c.readyStates,f=k.exports=function(g){var h=this;p.Writable.call(h),h._opts=g,h._body=[],h._headers={},g.auth&&h.setHeader("Authorization","Basic "+new i(g.auth).toString("base64")),(0,e.default)(g.headers).forEach(function(R){h.setHeader(R,g.headers[R])});var w,O=!0;if(g.mode==="disable-fetch"||"requestTimeout"in g&&!a.abortController)O=!1,w=!0;else if(g.mode==="prefer-streaming")w=!1;else if(g.mode==="allow-wrong-content-type")w=!a.overrideMimeType;else{if(g.mode&&g.mode!=="default"&&g.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");w=!0}h._mode=u(w,O),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};r(f,p.Writable),f.prototype.setHeader=function(g,h){var w=this,O=g.toLowerCase();A.indexOf(O)===-1&&(w._headers[O]={name:g,value:h})},f.prototype.getHeader=function(g){var h=this._headers[g.toLowerCase()];return h?h.value:null},f.prototype.removeHeader=function(g){delete this._headers[g.toLowerCase()]},f.prototype._onFinish=function(){var g=this;if(!g._destroyed){var h=g._opts,w=g._headers,O=null;h.method!=="GET"&&h.method!=="HEAD"&&(O=a.arraybuffer?l(i.concat(g._body)):a.blobConstructor?new _.Blob(g._body.map(function(U){return l(U)}),{type:(w["content-type"]||{}).value||""}):i.concat(g._body).toString());var R=[];if((0,e.default)(w).forEach(function(U){var j=w[U].name,N=w[U].value;Array.isArray(N)?N.forEach(function(G){R.push([j,G])}):R.push([j,N])}),g._mode==="fetch"){var b=null;if(a.abortController){var I=new AbortController;b=I.signal,g._fetchAbortController=I,"requestTimeout"in h&&h.requestTimeout!==0&&(g._fetchTimer=_.setTimeout(function(){g.emit("requestTimeout"),g._fetchAbortController&&g._fetchAbortController.abort()},h.requestTimeout))}_.fetch(g._opts.url,{method:g._opts.method,headers:R,body:O||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:b}).then(function(U){g._fetchResponse=U,g._connect()},function(U){_.clearTimeout(g._fetchTimer),g._destroyed||g.emit("error",U)})}else{var y=g._xhr=new _.XMLHttpRequest;try{y.open(g._opts.method,g._opts.url,!0)}catch(U){return void m.nextTick(function(){g.emit("error",U)})}"responseType"in y&&(y.responseType=g._mode.split(":")[0]),"withCredentials"in y&&(y.withCredentials=!!h.withCredentials),g._mode==="text"&&"overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(y.timeout=h.requestTimeout,y.ontimeout=function(){g.emit("requestTimeout")}),R.forEach(function(U){y.setRequestHeader(U[0],U[1])}),g._response=null,y.onreadystatechange=function(){switch(y.readyState){case E.LOADING:case E.DONE:g._onXHRProgress()}},g._mode==="moz-chunked-arraybuffer"&&(y.onprogress=function(){g._onXHRProgress()}),y.onerror=function(){g._destroyed||g.emit("error",new Error("XHR error"))};try{y.send(O)}catch(U){return void m.nextTick(function(){g.emit("error",U)})}}}},f.prototype._onXHRProgress=function(){var g=this;d(g._xhr)&&!g._destroyed&&(g._response||g._connect(),g._response._onXHRProgress())},f.prototype._connect=function(){var g=this;g._destroyed||(g._response=new S(g._xhr,g._fetchResponse,g._mode,g._fetchTimer),g._response.on("error",function(h){g.emit("error",h)}),g.emit("response",g._response))},f.prototype._write=function(g,h,w){this._body.push(g),w()},f.prototype.abort=f.prototype.destroy=function(){var g=this;g._destroyed=!0,_.clearTimeout(g._fetchTimer),g._response&&(g._response._destroyed=!0),g._xhr?g._xhr.abort():g._fetchAbortController&&g._fetchAbortController.abort()},f.prototype.end=function(g,h,w){var O=this;typeof g=="function"&&(w=g,g=void 0),p.Writable.prototype.end.call(O,g,h,w)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var A=["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 De!="undefined"?De: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,k,T){(function(m,_,i){"use strict";var u=n("babel-runtime/core-js/promise"),d=function(p){return p&&p.__esModule?p:{default:p}}(u),s=n("./capability"),e=n("inherits"),a=n("readable-stream"),r=T.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=T.IncomingMessage=function(p,l,S,E){var f=this;if(a.Readable.call(f),f._mode=S,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){m.nextTick(function(){f.emit("close")})}),S==="fetch"){if(f._fetchResponse=l,f.url=l.url,f.statusCode=l.status,f.statusMessage=l.statusText,l.headers.forEach(function(O,R){f.headers[R.toLowerCase()]=O,f.rawHeaders.push(R,O)}),s.writableStream){var A=new WritableStream({write:function(R){return new d.default(function(b,I){f._destroyed?I():f.push(new i(R))?b():f._resumeFetch=b})},close:function(){_.clearTimeout(E),f._destroyed||f.push(null)},abort:function(R){f._destroyed||f.emit("error",R)}});try{return void l.body.pipeTo(A).catch(function(O){_.clearTimeout(E),f._destroyed||f.emit("error",O)})}catch(O){}}var g=l.body.getReader();!function O(){g.read().then(function(R){if(!f._destroyed){if(R.done)return _.clearTimeout(E),void f.push(null);f.push(new i(R.value)),O()}}).catch(function(R){_.clearTimeout(E),f._destroyed||f.emit("error",R)})}()}else if(f._xhr=p,f._pos=0,f.url=p.responseURL,f.statusCode=p.status,f.statusMessage=p.statusText,p.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var R=O.match(/^([^:]+):\s*(.*)/);if(R){var b=R[1].toLowerCase();b==="set-cookie"?(f.headers[b]===void 0&&(f.headers[b]=[]),f.headers[b].push(R[2])):f.headers[b]!==void 0?f.headers[b]+=", "+R[2]:f.headers[b]=R[2],f.rawHeaders.push(R[1],R[2])}}),f._charset="x-user-defined",!s.overrideMimeType){var h=f.rawHeaders["mime-type"];if(h){var w=h.match(/;\s*charset=([^;])(;|$)/);w&&(f._charset=w[1].toLowerCase())}f._charset||(f._charset="utf-8")}};e(c,a.Readable),c.prototype._read=function(){var p=this,l=p._resumeFetch;l&&(p._resumeFetch=null,l())},c.prototype._onXHRProgress=function(){var p=this,l=p._xhr,S=null;switch(p._mode){case"text:vbarray":if(l.readyState!==r.DONE)break;try{S=new _.VBArray(l.responseBody).toArray()}catch(h){}if(S!==null){p.push(new i(S));break}case"text":try{S=l.responseText}catch(h){p._mode="text:vbarray";break}if(S.length>p._pos){var E=S.substr(p._pos);if(p._charset==="x-user-defined"){for(var f=new i(E.length),A=0;Ap._pos&&(p.push(new i(new Uint8Array(g.result.slice(p._pos)))),p._pos=g.result.byteLength)},g.onload=function(){p.push(null)},g.readAsArrayBuffer(S)}p._xhr.readyState===r.DONE&&p._mode!=="ms-stream"&&p.push(null)}}).call(this,n("_process"),typeof De!="undefined"?De: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,k,T){"use strict";function m(h){if(!h)return"utf8";for(var w;;)switch(h){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 h;default:if(w)return;h=(""+h).toLowerCase(),w=!0}}function _(h){var w=m(h);if(typeof w!="string"&&(A.isEncoding===g||!g(h)))throw new Error("Unknown encoding: "+h);return w||h}function i(h){this.encoding=_(h);var w;switch(this.encoding){case"utf16le":this.text=c,this.end=p,w=4;break;case"utf8":this.fillLast=e,w=4;break;case"base64":this.text=l,this.end=S,w=3;break;default:return this.write=E,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(w)}function u(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function d(h,w,O){var R=w.length-1;if(R=0?(b>0&&(h.lastNeed=b-1),b):--R=0?(b>0&&(h.lastNeed=b-2),b):--R=0?(b>0&&(b===2?b=0:h.lastNeed=b-3),b):0)}function s(h,w,O){if((192&w[0])!=128)return h.lastNeed=0,"\u951F\uFFFD";if(h.lastNeed>1&&w.length>1){if((192&w[1])!=128)return h.lastNeed=1,"\u951F\uFFFD";if(h.lastNeed>2&&w.length>2&&(192&w[2])!=128)return h.lastNeed=2,"\u951F\uFFFD"}}function e(h){var w=this.lastTotal-this.lastNeed,O=s(this,h,w);return O!==void 0?O:this.lastNeed<=h.length?(h.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,w,0,h.length),void(this.lastNeed-=h.length))}function a(h,w){var O=d(this,h,w);if(!this.lastNeed)return h.toString("utf8",w);this.lastTotal=O;var R=h.length-(O-this.lastNeed);return h.copy(this.lastChar,0,R),h.toString("utf8",w,R)}function r(h){var w=h&&h.length?this.write(h):"";return this.lastNeed?w+"\u951F\uFFFD":w}function c(h,w){if((h.length-w)%2==0){var O=h.toString("utf16le",w);if(O){var R=O.charCodeAt(O.length-1);if(R>=55296&&R<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",w,h.length-1)}function p(h){var w=h&&h.length?this.write(h):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,O)}return w}function l(h,w){var O=(h.length-w)%3;return O===0?h.toString("base64",w):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",w,h.length-O))}function S(h){var w=h&&h.length?this.write(h):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function E(h){return h.toString(this.encoding)}function f(h){return h&&h.length?this.write(h):""}var A=n("safe-buffer").Buffer,g=A.isEncoding||function(h){switch((h=""+h)&&h.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}};T.StringDecoder=i,i.prototype.write=function(h){if(h.length===0)return"";var w,O;if(this.lastNeed){if((w=this.fillLast(h))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},c))},T.setImmediate=typeof m=="function"?m:function(r){var c=a++,p=!(arguments.length<2)&&s.call(arguments,1);return e[c]=!0,u(function(){e[c]&&(p?r.apply(null,p):r.call(null),T.clearImmediate(c))}),c},T.clearImmediate=typeof _=="function"?_:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,k,T){var m=n("buffer").Buffer;k.exports=function(_){if(_ instanceof Uint8Array){if(_.byteOffset===0&&_.byteLength===_.buffer.byteLength)return _.buffer;if(typeof _.buffer.slice=="function")return _.buffer.slice(_.byteOffset,_.byteOffset+_.byteLength)}if(m.isBuffer(_)){for(var i=new Uint8Array(_.length),u=_.length,d=0;d",'"',"`"," ","\r",` +`," "],l=["{","}","|","\\","^","`"].concat(p),S=["'"].concat(l),E=["%","/","?",";","#"].concat(S),f=["/","?","#"],A=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=n("querystring");m.prototype.parse=function(b,I,y){if(!e.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var U=b.indexOf("?"),j=U!==-1&&U127?se+="x":se+=ne[fe];if(!se.match(A)){var J=Y.slice(0,L),ie=Y.slice(L+1),W=ne.match(g);W&&(J.push(W[1]),ie.unshift(W[2])),ie.length&&(K="/"+ie.join(".")+K),this.hostname=J.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=s.toASCII(this.hostname));var B=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+B,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),K[0]!=="/"&&(K="/"+K))}if(!h[Z])for(var L=0,ae=S.length;L0)&&y.host.split("@");se&&(y.auth=se.shift(),y.host=y.hostname=se.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 fe=Y.slice(-1)[0],Q=(y.host||b.host||Y.length>1)&&(fe==="."||fe==="..")||fe==="",J=0,ie=Y.length;ie>=0;ie--)fe=Y[ie],fe==="."?Y.splice(ie,1):fe===".."?(Y.splice(ie,1),J++):J&&(Y.splice(ie,1),J--);if(!M&&!H)for(;J--;J)Y.unshift("..");!M||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Q&&Y.join("/").substr(-1)!=="/"&&Y.push("");var W=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(ne){y.hostname=y.host=W?"":Y.length?Y.shift():"";var se=!!(y.host&&y.host.indexOf("@")>0)&&y.host.split("@");se&&(y.auth=se.shift(),y.host=y.hostname=se.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,I=r.exec(b);I&&(I=I[0],I!==":"&&(this.port=I.substr(1)),b=b.substr(0,b.length-I.length)),b&&(this.hostname=b)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,k,T){"use strict";k.exports={isString:function(_){return typeof _=="string"},isObject:function(_){return typeof _=="object"&&_!==null},isNull:function(_){return _===null},isNullOrUndefined:function(_){return _==null}}},{}],205:[function(n,k,T){(function(m){function _(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"}k.exports=_}).call(this,typeof De!="undefined"?De:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,k,T){k.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(n,k,T){(function(m,_){function i(L,D){var F={seen:[],stylize:d};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),E(D)?F.showHidden=D:D&&T._extend(F,D),O(F.showHidden)&&(F.showHidden=!1),O(F.depth)&&(F.depth=2),O(F.colors)&&(F.colors=!1),O(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=u),e(F,L,F.depth)}function u(L,D){var F=i.styles[D];return F?"["+i.colors[F][0]+"m"+L+"["+i.colors[F][1]+"m":L}function d(L,D){return L}function s(L){var D={};return L.forEach(function(F,M){D[F]=!0}),D}function e(L,D,F){if(L.customInspect&&D&&U(D.inspect)&&D.inspect!==T.inspect&&(!D.constructor||D.constructor.prototype!==D)){var M=D.inspect(F,L);return h(M)||(M=e(L,M,F)),M}var H=a(L,D);if(H)return H;var Y=Object.keys(D),ae=s(Y);if(L.showHidden&&(Y=Object.getOwnPropertyNames(D)),y(D)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(D);if(Y.length===0){if(U(D)){var ne=D.name?": "+D.name:"";return L.stylize("[Function"+ne+"]","special")}if(R(D))return L.stylize(RegExp.prototype.toString.call(D),"regexp");if(I(D))return L.stylize(Date.prototype.toString.call(D),"date");if(y(D))return r(D)}var se="",fe=!1,Q=["{","}"];if((S(D)&&(fe=!0,Q=["[","]"]),U(D))&&(se=" [Function"+(D.name?": "+D.name:"")+"]"),R(D)&&(se=" "+RegExp.prototype.toString.call(D)),I(D)&&(se=" "+Date.prototype.toUTCString.call(D)),y(D)&&(se=" "+r(D)),Y.length===0&&(!fe||D.length==0))return Q[0]+se+Q[1];if(F<0)return R(D)?L.stylize(RegExp.prototype.toString.call(D),"regexp"):L.stylize("[Object]","special");L.seen.push(D);var J;return J=fe?c(L,D,F,ae,Y):Y.map(function(ie){return p(L,D,F,ae,ie,fe)}),L.seen.pop(),l(J,se,Q)}function a(L,D){if(O(D))return L.stylize("undefined","undefined");if(h(D)){var F="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(F,"string")}return g(D)?L.stylize(""+D,"number"):E(D)?L.stylize(""+D,"boolean"):f(D)?L.stylize("null","null"):void 0}function r(L){return"["+Error.prototype.toString.call(L)+"]"}function c(L,D,F,M,H){for(var Y=[],ae=0,ne=D.length;ae-1&&(ne=Y?ne.split(` `).map(function(fe){return" "+fe}).join(` `).substr(2):` `+ne.split(` `).map(function(fe){return" "+fe}).join(` -`))):ne=L.stylize("[Circular]","special")),O(ae)){if(Y&&H.match(/^\d+$/))return ne;ae=JSON.stringify(""+H),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=L.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=L.stylize(ae,"string"))}return ae+": "+ne}function l(L,j,F){var M=0;return L.reduce(function(H,Y){return M++,Y.indexOf(` -`)>=0&&M++,H+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?F[0]+(j===""?"":j+` +`))):ne=L.stylize("[Circular]","special")),O(ae)){if(Y&&H.match(/^\d+$/))return ne;ae=JSON.stringify(""+H),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=L.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=L.stylize(ae,"string"))}return ae+": "+ne}function l(L,D,F){var M=0;return L.reduce(function(H,Y){return M++,Y.indexOf(` +`)>=0&&M++,H+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?F[0]+(D===""?"":D+` `)+" "+L.join(`, - `)+" "+F[1]:F[0]+j+" "+L.join(", ")+" "+F[1]}function S(L){return Array.isArray(L)}function E(L){return typeof L=="boolean"}function f(L){return L===null}function A(L){return L==null}function g(L){return typeof L=="number"}function h(L){return typeof L=="string"}function w(L){return typeof L=="symbol"}function O(L){return L===void 0}function R(L){return b(L)&&N(L)==="[object RegExp]"}function b(L){return typeof L=="object"&&L!==null}function I(L){return b(L)&&N(L)==="[object Date]"}function y(L){return b(L)&&(N(L)==="[object Error]"||L instanceof Error)}function U(L){return typeof L=="function"}function D(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||L===void 0}function N(L){return Object.prototype.toString.call(L)}function G(L){return L<10?"0"+L.toString(10):L.toString(10)}function K(){var L=new Date,j=[G(L.getHours()),G(L.getMinutes()),G(L.getSeconds())].join(":");return[L.getDate(),q[L.getMonth()],j].join(" ")}function te(L,j){return Object.prototype.hasOwnProperty.call(L,j)}var z=/%[sdj%]/g;T.format=function(L){if(!h(L)){for(var j=[],F=0;F=H)return se;switch(se){case"%s":return String(M[F++]);case"%d":return Number(M[F++]);case"%j":try{return JSON.stringify(M[F++])}catch(fe){return"[Circular]"}default:return se}}),ae=M[F];F=0||S.indexOf(">")>=0||S.indexOf("<")>=0)},c=function(S){return""},a=function(S){return S.replace("]]>","]]]]>")},T.Builder=function(){function l(S){var E,f,A;this.options={},f=e[.2];for(E in f)p.call(f,E)&&(A=f[E],this.options[E]=A);for(E in S)p.call(S,E)&&(A=S[E],this.options[E]=A)}return l.prototype.buildObject=function(S){var E,f,A,g,h;return E=this.options.attrkey,f=this.options.charkey,(0,d.default)(S).length===1&&this.options.rootName===e[.2].rootName?(h=(0,d.default)(S)[0],S=S[h]):h=this.options.rootName,A=function(w){return function(O,R){var b,I,y,U,D,N;if((R===void 0?"undefined":(0,i.default)(R))!=="object")w.options.cdata&&r(R)?O.raw(c(R)):O.txt(R);else if(Array.isArray(R)){for(U in R)if(p.call(R,U)){I=R[U];for(D in I)y=I[D],O=A(O.ele(D),y).up()}}else for(D in R)if(p.call(R,D))if(I=R[D],D===E){if((I===void 0?"undefined":(0,i.default)(I))==="object")for(b in I)N=I[b],O=O.att(b,N)}else if(D===f)O=w.options.cdata&&r(I)?O.raw(c(I)):O.txt(I);else if(Array.isArray(I))for(U in I)p.call(I,U)&&(y=I[U],O=typeof y=="string"?w.options.cdata&&r(y)?O.ele(D).raw(c(y)).up():O.ele(D,y).up():A(O.ele(D),y).up());else(I===void 0?"undefined":(0,i.default)(I))==="object"?O=A(O.ele(D),I).up():typeof I=="string"&&w.options.cdata&&r(I)?O=O.ele(D).raw(c(I)).up():(I==null&&(I=""),O=O.ele(D,I.toString()).up());return O}}(this),g=s.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),A(g,S).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,k,T){"use strict";(function(){T.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,k,T){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var _=n("babel-runtime/core-js/object/get-own-property-names"),i=m(_),u=n("babel-runtime/core-js/object/keys"),d=m(u),s=n("babel-runtime/helpers/typeof"),e=m(s);(function(){var a,r,c,p,l,S,E,f,A=function(O,R){return function(){return O.apply(R,arguments)}},g=function(O,R){function b(){this.constructor=O}for(var I in R)h.call(R,I)&&(O[I]=R[I]);return b.prototype=R.prototype,O.prototype=new b,O.__super__=R.prototype,O},h={}.hasOwnProperty;E=n("sax"),c=n("events"),a=n("./bom"),S=n("./processors"),f=n("timers").setImmediate,r=n("./defaults").defaults,p=function(O){return(O===void 0?"undefined":(0,e.default)(O))==="object"&&O!=null&&(0,d.default)(O).length===0},l=function(O,R,b){var I,y,U;for(I=0,y=O.length;I0&&(K[U.options.childkey]=z),z=K;return y.length>0?U.assignOrPush(q,te,z):(U.options.explicitRoot&&($=z,z={},z[te]=$),U.resultObject=z,U.saxParser.ended=!0,U.emit("end",U.resultObject))}}(this),I=function(U){return function(D){var N,G;if(G=y[y.length-1])return G[b]+=D,U.options.explicitChildren&&U.options.preserveChildrenOrder&&U.options.charsAsChildren&&(U.options.includeWhiteChars||D.replace(/\\n/g,"").trim()!=="")&&(G[U.options.childkey]=G[U.options.childkey]||[],N={"#name":"__text__"},N[b]=D,U.options.normalize&&(N[b]=N[b].replace(/\s{2,}/g," ").trim()),G[U.options.childkey].push(N)),G}}(this),this.saxParser.ontext=I,this.saxParser.oncdata=function(U){return function(D){var N;if(N=I(D))return N.cdata=!0}}()},O.prototype.parseString=function(R,b){var I;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 R=R.toString(),R.trim()===""?(this.emit("end",null),!0):(R=a.stripBOM(R),this.options.async?(this.remaining=R,f(this.processAsync),this.saxParser):this.saxParser.write(R).close())}catch(y){if(I=y,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",I),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw I}},O}(c.EventEmitter),T.parseString=function(w,O,R){var b,I,y;return R!=null?(typeof R=="function"&&(b=R),(O===void 0?"undefined":(0,e.default)(O))==="object"&&(I=O)):(typeof O=="function"&&(b=O),I={}),y=new T.Parser(I),y.parseString(w,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,k,T){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),T.normalize=function(_){return _.toLowerCase()},T.firstCharLowerCase=function(_){return _.charAt(0).toLowerCase()+_.slice(1)},T.stripPrefix=function(_){return _.replace(m,"")},T.parseNumbers=function(_){return isNaN(_)||(_=_%1==0?parseInt(_,10):parseFloat(_)),_},T.parseBooleans=function(_){return/^(?:true|false)$/i.test(_)&&(_=_.toLowerCase()==="true"),_}}).call(void 0)},{}],213:[function(n,k,T){"use strict";(function(){var m,_,i,u,d=function(a,r){function c(){this.constructor=a}for(var p in r)s.call(r,p)&&(a[p]=r[p]);return c.prototype=r.prototype,a.prototype=new c,a.__super__=r.prototype,a},s={}.hasOwnProperty;_=n("./defaults"),m=n("./builder"),i=n("./parser"),u=n("./processors"),T.defaults=_.defaults,T.processors=u,T.ValidationError=function(e){function a(r){this.message=r}return d(a,e),a}(Error),T.Builder=m.Builder,T.Parser=i.Parser,T.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,k,T){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var _=n("babel-runtime/core-js/object/get-prototype-of"),i=m(_),u=n("babel-runtime/helpers/typeof"),d=m(u),s=n("babel-runtime/core-js/object/assign"),e=m(s);(function(){var a,r,c,p,l,S,E=[].slice,f={}.hasOwnProperty;a=function(){var g,h,w,O,R,b;if(b=arguments[0],R=2<=arguments.length?E.call(arguments,1):[],p(e.default))e.default.apply(null,arguments);else for(g=0,w=R.length;g=0;)this.up();return this.onEnd()},R.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},R.prototype.openNode=function(b){if(!b.isOpen)return!this.root&&this.currentLevel===0&&b instanceof c&&(this.root=b),this.onData(this.writer.openNode(b,this.currentLevel)),b.isOpen=!0},R.prototype.closeNode=function(b){if(!b.isClosed)return this.onData(this.writer.closeNode(b,this.currentLevel)),b.isClosed=!0},R.prototype.onData=function(b){return this.documentStarted=!0,this.onDataCallback(b)},R.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},R.prototype.ele=function(){return this.element.apply(this,arguments)},R.prototype.nod=function(b,I,y){return this.node(b,I,y)},R.prototype.txt=function(b){return this.text(b)},R.prototype.dat=function(b){return this.cdata(b)},R.prototype.com=function(b){return this.comment(b)},R.prototype.ins=function(b,I){return this.instruction(b,I)},R.prototype.dec=function(b,I,y){return this.declaration(b,I,y)},R.prototype.dtd=function(b,I,y){return this.doctype(b,I,y)},R.prototype.e=function(b,I,y){return this.element(b,I,y)},R.prototype.n=function(b,I,y){return this.node(b,I,y)},R.prototype.t=function(b){return this.text(b)},R.prototype.d=function(b){return this.cdata(b)},R.prototype.c=function(b){return this.comment(b)},R.prototype.r=function(b){return this.raw(b)},R.prototype.i=function(b,I){return this.instruction(b,I)},R.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.ent=function(b,I){return this.entity(b,I)},R.prototype.pent=function(b,I){return this.pEntity(b,I)},R.prototype.not=function(b,I){return this.notation(b,I)},R}()}).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,k,T){"use strict";var m=n("babel-runtime/core-js/object/create"),_=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u,d,s,e,a=function(p,l){function S(){this.constructor=p}for(var E in l)r.call(l,E)&&(p[E]=l[E]);return S.prototype=l.prototype,p.prototype=new S,p.__super__=l.prototype,p},r={}.hasOwnProperty;e=n("./Utility"),s=e.isObject,d=e.isFunction,u=n("./XMLNode"),i=n("./XMLAttribute"),k.exports=function(c){function p(l,S,E){if(p.__super__.constructor.call(this,l),S==null)throw new Error("Missing element name");this.name=this.stringify.eleName(S),this.attributes={},E!=null&&this.attribute(E),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return a(p,c),p.prototype.clone=function(){var l,S,E,f;E=(0,_.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},f=this.attributes;for(S in f)r.call(f,S)&&(l=f[S],E.attributes[S]=l.clone());return E.children=[],this.children.forEach(function(A){var g;return g=A.clone(),g.parent=E,E.children.push(g)}),E},p.prototype.attribute=function(l,S){var E,f;if(l!=null&&(l=l.valueOf()),s(l))for(E in l)r.call(l,E)&&(f=l[E],this.attribute(E,f));else d(S)&&(S=S.apply()),this.options.skipNullAttributes&&S==null||(this.attributes[l]=new i(this,l,S));return this},p.prototype.removeAttribute=function(l){var S,E,f;if(l==null)throw new Error("Missing attribute name");if(l=l.valueOf(),Array.isArray(l))for(E=0,f=l.length;E"+this.endline(h))},g.prototype.comment=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.declaration=function(h,w){return this.stream.write(this.space(w)),this.stream.write('"),this.stream.write(this.endline(h))},g.prototype.docType=function(h,w){var O,R,b,I;if(w||(w=0),this.stream.write(this.space(w)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(h)),I=h.children,R=0,b=I.length;R"),this.stream.write(this.endline(h))},g.prototype.element=function(h,w){var O,R,b,I,y,U,D,N;w||(w=0),N=this.space(w),this.stream.write(N+"<"+h.name),U=h.attributes;for(y in U)f.call(U,y)&&(O=U[y],this.attribute(O));if(h.children.length===0||h.children.every(function(G){return G.value===""}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)this.stream.write(">"),this.stream.write(h.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),D=h.children,b=0,I=D.length;b")}return this.stream.write(this.endline(h))},g.prototype.processingInstruction=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.raw=function(h,w){return this.stream.write(this.space(w)+h.value+this.endline(h))},g.prototype.text=function(h,w){return this.stream.write(this.space(w)+h.value+this.endline(h))},g.prototype.dtdAttList=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdElement=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdEntity=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdNotation=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},g}(S)}).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,k,T){"use strict";(function(){var m,_,i,u,d,s,e,a,r,c,p,l,S,E=function(g,h){function w(){this.constructor=g}for(var O in h)f.call(h,O)&&(g[O]=h[O]);return w.prototype=h.prototype,g.prototype=new w,g.__super__=h.prototype,g},f={}.hasOwnProperty;e=n("./XMLDeclaration"),a=n("./XMLDocType"),m=n("./XMLCData"),_=n("./XMLComment"),r=n("./XMLElement"),p=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),S=n("./XMLWriterBase"),k.exports=function(A){function g(h){g.__super__.constructor.call(this,h)}return E(g,A),g.prototype.document=function(h){var w,O,R,b,I;for(this.textispresent=!1,b="",I=h.children,O=0,R=I.length;O"+this.newline},g.prototype.comment=function(h,w){return this.space(w)+""+this.newline},g.prototype.declaration=function(h,w){var O;return O=this.space(w),O+='",O+=this.newline},g.prototype.docType=function(h,w){var O,R,b,I,y;if(w||(w=0),I=this.space(w),I+="0){for(I+=" [",I+=this.newline,y=h.children,R=0,b=y.length;R",I+=this.newline},g.prototype.element=function(h,w){var O,R,b,I,y,U,D,N,G,K,te,z,Z;w||(w=0),Z=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z=this.space(w),N="",N+=z+"<"+h.name,G=h.attributes;for(D in G)f.call(G,D)&&(O=G[D],N+=this.attribute(O));if(h.children.length===0||h.children.every(function($){return $.value===""}))this.allowEmpty?N+=">"+this.newline:N+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)N+=">",N+=h.children[0].value,N+=""+this.newline;else{if(this.dontprettytextnodes){for(K=h.children,b=0,y=K.length;b"+this.newline,te=h.children,I=0,U=te.length;I"+this.newline}return N},g.prototype.processingInstruction=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.raw=function(h,w){return this.space(w)+h.value+this.newline},g.prototype.text=function(h,w){return this.space(w)+h.value+this.newline},g.prototype.dtdAttList=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.dtdElement=function(h,w){return this.space(w)+""+this.newline},g.prototype.dtdEntity=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.dtdNotation=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.openNode=function(h,w){var O,R,b,I;if(w||(w=0),h instanceof r){b=this.space(w)+"<"+h.name,I=h.attributes;for(R in I)f.call(I,R)&&(O=I[R],b+=this.attribute(O));return b+=(h.children?">":"/>")+this.newline}return b=this.space(w)+"")+this.newline},g.prototype.closeNode=function(h,w){switch(w||(w=0),!1){case!(h instanceof r):return this.space(w)+""+this.newline;case!(h instanceof a):return this.space(w)+"]>"+this.newline}},g}(S)}).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,k,T){"use strict";(function(){var m=function(u,d){return function(){return u.apply(d,arguments)}},_={}.hasOwnProperty;k.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)_.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("]]>","]]]]>"),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(/\r/g," ")},i.prototype.attEscape=function(u){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(d,"&").replace(/=H)return se;switch(se){case"%s":return String(M[F++]);case"%d":return Number(M[F++]);case"%j":try{return JSON.stringify(M[F++])}catch(fe){return"[Circular]"}default:return se}}),ae=M[F];F=0||S.indexOf(">")>=0||S.indexOf("<")>=0)},c=function(S){return""},a=function(S){return S.replace("]]>","]]]]>")},T.Builder=function(){function l(S){var E,f,A;this.options={},f=e[.2];for(E in f)p.call(f,E)&&(A=f[E],this.options[E]=A);for(E in S)p.call(S,E)&&(A=S[E],this.options[E]=A)}return l.prototype.buildObject=function(S){var E,f,A,g,h;return E=this.options.attrkey,f=this.options.charkey,(0,d.default)(S).length===1&&this.options.rootName===e[.2].rootName?(h=(0,d.default)(S)[0],S=S[h]):h=this.options.rootName,A=function(w){return function(O,R){var b,I,y,U,j,N;if((R===void 0?"undefined":(0,i.default)(R))!=="object")w.options.cdata&&r(R)?O.raw(c(R)):O.txt(R);else if(Array.isArray(R)){for(U in R)if(p.call(R,U)){I=R[U];for(j in I)y=I[j],O=A(O.ele(j),y).up()}}else for(j in R)if(p.call(R,j))if(I=R[j],j===E){if((I===void 0?"undefined":(0,i.default)(I))==="object")for(b in I)N=I[b],O=O.att(b,N)}else if(j===f)O=w.options.cdata&&r(I)?O.raw(c(I)):O.txt(I);else if(Array.isArray(I))for(U in I)p.call(I,U)&&(y=I[U],O=typeof y=="string"?w.options.cdata&&r(y)?O.ele(j).raw(c(y)).up():O.ele(j,y).up():A(O.ele(j),y).up());else(I===void 0?"undefined":(0,i.default)(I))==="object"?O=A(O.ele(j),I).up():typeof I=="string"&&w.options.cdata&&r(I)?O=O.ele(j).raw(c(I)).up():(I==null&&(I=""),O=O.ele(j,I.toString()).up());return O}}(this),g=s.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),A(g,S).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,k,T){"use strict";(function(){T.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,k,T){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var _=n("babel-runtime/core-js/object/get-own-property-names"),i=m(_),u=n("babel-runtime/core-js/object/keys"),d=m(u),s=n("babel-runtime/helpers/typeof"),e=m(s);(function(){var a,r,c,p,l,S,E,f,A=function(O,R){return function(){return O.apply(R,arguments)}},g=function(O,R){function b(){this.constructor=O}for(var I in R)h.call(R,I)&&(O[I]=R[I]);return b.prototype=R.prototype,O.prototype=new b,O.__super__=R.prototype,O},h={}.hasOwnProperty;E=n("sax"),c=n("events"),a=n("./bom"),S=n("./processors"),f=n("timers").setImmediate,r=n("./defaults").defaults,p=function(O){return(O===void 0?"undefined":(0,e.default)(O))==="object"&&O!=null&&(0,d.default)(O).length===0},l=function(O,R,b){var I,y,U;for(I=0,y=O.length;I0&&(K[U.options.childkey]=z),z=K;return y.length>0?U.assignOrPush(q,te,z):(U.options.explicitRoot&&($=z,z={},z[te]=$),U.resultObject=z,U.saxParser.ended=!0,U.emit("end",U.resultObject))}}(this),I=function(U){return function(j){var N,G;if(G=y[y.length-1])return G[b]+=j,U.options.explicitChildren&&U.options.preserveChildrenOrder&&U.options.charsAsChildren&&(U.options.includeWhiteChars||j.replace(/\\n/g,"").trim()!=="")&&(G[U.options.childkey]=G[U.options.childkey]||[],N={"#name":"__text__"},N[b]=j,U.options.normalize&&(N[b]=N[b].replace(/\s{2,}/g," ").trim()),G[U.options.childkey].push(N)),G}}(this),this.saxParser.ontext=I,this.saxParser.oncdata=function(U){return function(j){var N;if(N=I(j))return N.cdata=!0}}()},O.prototype.parseString=function(R,b){var I;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 R=R.toString(),R.trim()===""?(this.emit("end",null),!0):(R=a.stripBOM(R),this.options.async?(this.remaining=R,f(this.processAsync),this.saxParser):this.saxParser.write(R).close())}catch(y){if(I=y,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",I),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw I}},O}(c.EventEmitter),T.parseString=function(w,O,R){var b,I,y;return R!=null?(typeof R=="function"&&(b=R),(O===void 0?"undefined":(0,e.default)(O))==="object"&&(I=O)):(typeof O=="function"&&(b=O),I={}),y=new T.Parser(I),y.parseString(w,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,k,T){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),T.normalize=function(_){return _.toLowerCase()},T.firstCharLowerCase=function(_){return _.charAt(0).toLowerCase()+_.slice(1)},T.stripPrefix=function(_){return _.replace(m,"")},T.parseNumbers=function(_){return isNaN(_)||(_=_%1==0?parseInt(_,10):parseFloat(_)),_},T.parseBooleans=function(_){return/^(?:true|false)$/i.test(_)&&(_=_.toLowerCase()==="true"),_}}).call(void 0)},{}],213:[function(n,k,T){"use strict";(function(){var m,_,i,u,d=function(a,r){function c(){this.constructor=a}for(var p in r)s.call(r,p)&&(a[p]=r[p]);return c.prototype=r.prototype,a.prototype=new c,a.__super__=r.prototype,a},s={}.hasOwnProperty;_=n("./defaults"),m=n("./builder"),i=n("./parser"),u=n("./processors"),T.defaults=_.defaults,T.processors=u,T.ValidationError=function(e){function a(r){this.message=r}return d(a,e),a}(Error),T.Builder=m.Builder,T.Parser=i.Parser,T.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,k,T){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var _=n("babel-runtime/core-js/object/get-prototype-of"),i=m(_),u=n("babel-runtime/helpers/typeof"),d=m(u),s=n("babel-runtime/core-js/object/assign"),e=m(s);(function(){var a,r,c,p,l,S,E=[].slice,f={}.hasOwnProperty;a=function(){var g,h,w,O,R,b;if(b=arguments[0],R=2<=arguments.length?E.call(arguments,1):[],p(e.default))e.default.apply(null,arguments);else for(g=0,w=R.length;g=0;)this.up();return this.onEnd()},R.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},R.prototype.openNode=function(b){if(!b.isOpen)return!this.root&&this.currentLevel===0&&b instanceof c&&(this.root=b),this.onData(this.writer.openNode(b,this.currentLevel)),b.isOpen=!0},R.prototype.closeNode=function(b){if(!b.isClosed)return this.onData(this.writer.closeNode(b,this.currentLevel)),b.isClosed=!0},R.prototype.onData=function(b){return this.documentStarted=!0,this.onDataCallback(b)},R.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},R.prototype.ele=function(){return this.element.apply(this,arguments)},R.prototype.nod=function(b,I,y){return this.node(b,I,y)},R.prototype.txt=function(b){return this.text(b)},R.prototype.dat=function(b){return this.cdata(b)},R.prototype.com=function(b){return this.comment(b)},R.prototype.ins=function(b,I){return this.instruction(b,I)},R.prototype.dec=function(b,I,y){return this.declaration(b,I,y)},R.prototype.dtd=function(b,I,y){return this.doctype(b,I,y)},R.prototype.e=function(b,I,y){return this.element(b,I,y)},R.prototype.n=function(b,I,y){return this.node(b,I,y)},R.prototype.t=function(b){return this.text(b)},R.prototype.d=function(b){return this.cdata(b)},R.prototype.c=function(b){return this.comment(b)},R.prototype.r=function(b){return this.raw(b)},R.prototype.i=function(b,I){return this.instruction(b,I)},R.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.ent=function(b,I){return this.entity(b,I)},R.prototype.pent=function(b,I){return this.pEntity(b,I)},R.prototype.not=function(b,I){return this.notation(b,I)},R}()}).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,k,T){"use strict";var m=n("babel-runtime/core-js/object/create"),_=function(i){return i&&i.__esModule?i:{default:i}}(m);(function(){var i,u,d,s,e,a=function(p,l){function S(){this.constructor=p}for(var E in l)r.call(l,E)&&(p[E]=l[E]);return S.prototype=l.prototype,p.prototype=new S,p.__super__=l.prototype,p},r={}.hasOwnProperty;e=n("./Utility"),s=e.isObject,d=e.isFunction,u=n("./XMLNode"),i=n("./XMLAttribute"),k.exports=function(c){function p(l,S,E){if(p.__super__.constructor.call(this,l),S==null)throw new Error("Missing element name");this.name=this.stringify.eleName(S),this.attributes={},E!=null&&this.attribute(E),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return a(p,c),p.prototype.clone=function(){var l,S,E,f;E=(0,_.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},f=this.attributes;for(S in f)r.call(f,S)&&(l=f[S],E.attributes[S]=l.clone());return E.children=[],this.children.forEach(function(A){var g;return g=A.clone(),g.parent=E,E.children.push(g)}),E},p.prototype.attribute=function(l,S){var E,f;if(l!=null&&(l=l.valueOf()),s(l))for(E in l)r.call(l,E)&&(f=l[E],this.attribute(E,f));else d(S)&&(S=S.apply()),this.options.skipNullAttributes&&S==null||(this.attributes[l]=new i(this,l,S));return this},p.prototype.removeAttribute=function(l){var S,E,f;if(l==null)throw new Error("Missing attribute name");if(l=l.valueOf(),Array.isArray(l))for(E=0,f=l.length;E"+this.endline(h))},g.prototype.comment=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.declaration=function(h,w){return this.stream.write(this.space(w)),this.stream.write('"),this.stream.write(this.endline(h))},g.prototype.docType=function(h,w){var O,R,b,I;if(w||(w=0),this.stream.write(this.space(w)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(h)),I=h.children,R=0,b=I.length;R"),this.stream.write(this.endline(h))},g.prototype.element=function(h,w){var O,R,b,I,y,U,j,N;w||(w=0),N=this.space(w),this.stream.write(N+"<"+h.name),U=h.attributes;for(y in U)f.call(U,y)&&(O=U[y],this.attribute(O));if(h.children.length===0||h.children.every(function(G){return G.value===""}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)this.stream.write(">"),this.stream.write(h.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),j=h.children,b=0,I=j.length;b")}return this.stream.write(this.endline(h))},g.prototype.processingInstruction=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.raw=function(h,w){return this.stream.write(this.space(w)+h.value+this.endline(h))},g.prototype.text=function(h,w){return this.stream.write(this.space(w)+h.value+this.endline(h))},g.prototype.dtdAttList=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdElement=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdEntity=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.dtdNotation=function(h,w){return this.stream.write(this.space(w)+""+this.endline(h))},g.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},g}(S)}).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,k,T){"use strict";(function(){var m,_,i,u,d,s,e,a,r,c,p,l,S,E=function(g,h){function w(){this.constructor=g}for(var O in h)f.call(h,O)&&(g[O]=h[O]);return w.prototype=h.prototype,g.prototype=new w,g.__super__=h.prototype,g},f={}.hasOwnProperty;e=n("./XMLDeclaration"),a=n("./XMLDocType"),m=n("./XMLCData"),_=n("./XMLComment"),r=n("./XMLElement"),p=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),S=n("./XMLWriterBase"),k.exports=function(A){function g(h){g.__super__.constructor.call(this,h)}return E(g,A),g.prototype.document=function(h){var w,O,R,b,I;for(this.textispresent=!1,b="",I=h.children,O=0,R=I.length;O"+this.newline},g.prototype.comment=function(h,w){return this.space(w)+""+this.newline},g.prototype.declaration=function(h,w){var O;return O=this.space(w),O+='",O+=this.newline},g.prototype.docType=function(h,w){var O,R,b,I,y;if(w||(w=0),I=this.space(w),I+="0){for(I+=" [",I+=this.newline,y=h.children,R=0,b=y.length;R",I+=this.newline},g.prototype.element=function(h,w){var O,R,b,I,y,U,j,N,G,K,te,z,Z;w||(w=0),Z=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z=this.space(w),N="",N+=z+"<"+h.name,G=h.attributes;for(j in G)f.call(G,j)&&(O=G[j],N+=this.attribute(O));if(h.children.length===0||h.children.every(function($){return $.value===""}))this.allowEmpty?N+=">"+this.newline:N+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)N+=">",N+=h.children[0].value,N+=""+this.newline;else{if(this.dontprettytextnodes){for(K=h.children,b=0,y=K.length;b"+this.newline,te=h.children,I=0,U=te.length;I"+this.newline}return N},g.prototype.processingInstruction=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.raw=function(h,w){return this.space(w)+h.value+this.newline},g.prototype.text=function(h,w){return this.space(w)+h.value+this.newline},g.prototype.dtdAttList=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.dtdElement=function(h,w){return this.space(w)+""+this.newline},g.prototype.dtdEntity=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.dtdNotation=function(h,w){var O;return O=this.space(w)+""+this.newline},g.prototype.openNode=function(h,w){var O,R,b,I;if(w||(w=0),h instanceof r){b=this.space(w)+"<"+h.name,I=h.attributes;for(R in I)f.call(I,R)&&(O=I[R],b+=this.attribute(O));return b+=(h.children?">":"/>")+this.newline}return b=this.space(w)+"")+this.newline},g.prototype.closeNode=function(h,w){switch(w||(w=0),!1){case!(h instanceof r):return this.space(w)+""+this.newline;case!(h instanceof a):return this.space(w)+"]>"+this.newline}},g}(S)}).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,k,T){"use strict";(function(){var m=function(u,d){return function(){return u.apply(d,arguments)}},_={}.hasOwnProperty;k.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)_.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("]]>","]]]]>"),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(/\r/g," ")},i.prototype.attEscape=function(u){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(d,"&").replace(/0?new Array(u).join(this.indent):""):""},_}()}).call(void 0)},{}],235:[function(n,k,T){"use strict";(function(){var m,_,i,u,d,s,e;e=n("./Utility"),d=e.assign,s=e.isFunction,m=n("./XMLDocument"),_=n("./XMLDocumentCB"),u=n("./XMLStringWriter"),i=n("./XMLStreamWriter"),k.exports.create=function(a,r,c,p){var l,S;if(a==null)throw new Error("Root element needs a name");return p=d({},r,c,p),l=new m(p),S=l.element(a),p.headless||(l.declaration(p),p.pubID==null&&p.sysID==null||l.doctype(p)),S},k.exports.begin=function(a,r,c){var p;return s(a)&&(p=[a,r],r=p[0],c=p[1],a={}),r?new _(a,r,c):new m(a)},k.exports.stringWriter=function(a){return new u(a)},k.exports.streamWriter=function(a,r){return new i(a,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,k,T){function m(){for(var i={},u=0;ur?l=p(l):l.length>5]|=128<>>9<<4)]=p;for(var l=1732584193,S=-271733879,E=-1732584194,f=271733878,A=0;A>16)+(p>>16)+(l>>16)<<16|65535&l}function a(c,p){return c<>>32-p}var r=n("./helpers");k.exports=function(c){return r.hash(c,m,16)}},{"./helpers":238}],240:[function(n,k,T){"use strict";function m(e,a){e[a>>5]|=128<<24-a%32,e[15+(a+64>>9<<4)]=a;for(var r=Array(80),c=1732584193,p=-271733879,l=-1732584194,S=271733878,E=-1009589776,f=0;f>16)+(a>>16)+(r>>16)<<16|65535&r}function d(e,a){return e<>>32-a}var s=n("./helpers");k.exports=function(e){return s.hash(e,m,20,!0)}},{"./helpers":238}],241:[function(n,k,T){"use strict";var m=n("./helpers"),_=function(S,E){var f=(65535&S)+(65535&E);return(S>>16)+(E>>16)+(f>>16)<<16|65535&f},i=function(S,E){return S>>>E|S<<32-E},u=function(S,E){return S>>>E},d=function(S,E,f){return S&E^~S&f},s=function(S,E,f){return S&E^S&f^E&f},e=function(S){return i(S,2)^i(S,13)^i(S,22)},a=function(S){return i(S,6)^i(S,11)^i(S,25)},r=function(S){return i(S,7)^i(S,18)^u(S,3)},c=function(S){return i(S,17)^i(S,19)^u(S,10)},p=function(S,E){var f,A,g,h,w,O,R,b,I,y,U,D,N=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),K=new Array(64);S[E>>5]|=128<<24-E%32,S[15+(E+64>>9<<4)]=E;for(var I=0;I=0)return f("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,R,ze),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(ne.method,ne.path,ze,b.digestAuth),f("Request#%d %s: auth with digest header: %s",$,R,b.headers.Authorization),Ie.headers["set-cookie"]&&(b.headers.Cookie=Ie.headers["set-cookie"].join(";")),T.requestWithCallback(R,b,Ce)}var Re=Date.now()-j;le&&(le.contentDownload=Re),f("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Re,v,x,ne.method,ne.host,ne.path,C,le);var Fe={status:x,statusCode:x,headers:ke,size:v,aborted:X,rt:Re,keepAliveSocket:C,data:Te,requestUrls:b.requestUrls,timing:le,remoteAddress:V,remotePort:pe};if(ue){var Ge="";Y&&typeof Y.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,a.default)(Y.getCurrentStatus())),ue.message+=", "+ne.method+" "+R+" "+x+" (connected: "+o+", keepalive socket: "+C+Ge+`) -headers: `+(0,a.default)(ke),ue.data=Te,ue.path=ne.path,ue.status=x,ue.headers=ke,ue.res=Fe}Ce(ue,Te,b.streaming?Ie:Fe),b.emitter&&(q.url=R,q.socket=Pe&&Pe.connection,q.options=ne,q.size=re,b.emitter.emit("response",{requestId:$,error:ue,ctx:b.ctx,req:q,res:Fe}))}function N(ue){var Te=null;if(b.followRedirect&&statuses.redirect[ue.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var Ie=ue.headers.location;if(Ie){if(!(b._followRedirectCount>b.maxRedirects)){var Ce=b.formatRedirectUrl?b.formatRedirectUrl(R,Ie):l.resolve(R,Ie);f("Request#%d %s: `redirected` from %s to %s",$,ne.path,R,Ce),U(),b.headers&&b.headers.Host&&w.test(Ie)&&(b.headers.Host=null);var ke=I;return I=null,T.requestWithCallback(Ce,b,ke),{redirect:!0,error:null}}Te=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+R),Te.name="MaxRedirectError"}else Te=new Error("Got statusCode "+ue.statusCode+" but cannot resolve next location from headers"),Te.name="FollowRedirectError"}return{redirect:!1,error:Te}}function G(ue,Te,Ie){return Ie(null,Te,ue.headers["content-encoding"])}function K(ue){if(le&&(le.waiting=Date.now()-j),f("Request#%d %s `req response` event emit: status %d, headers: %j",$,R,ue.statusCode,ue.headers),b.streaming){var Te=N(ue);return Te.redirect?void ue.resume():Te.error?(ue.resume(),D(Te.error,null,ue)):D(null,null,ue)}if(ue.on("close",function(){f("Request#%d %s: `res close` event emit, total size %d",$,R,v)}),ue.on("error",function(){f("Request#%d %s: `res error` event emit, total size %d",$,R,v)}),ue.on("aborted",function(){X=!0,f("Request#%d %s: `res aborted` event emit, total size %d",$,R,v)}),me){var Te=N(ue);return Te.redirect?void ue.resume():Te.error?(ue.resume(),me.end(),D(Te.error,null,ue)):(b.consumeWriteStream===!1?ue.on("end",D.bind(null,null,null,ue)):isNode010||isNode012?first([[me,"close"],[ue,"aborted"]],function(ke,ze,Re){f("Request#%d %s: writeStream or res %s event emitted",$,R,Re),D(t||null,null,ue)}):me.on("close",function(){f("Request#%d %s: writeStream close event emitted",$,R),D(t||null,null,ue)}),ue.pipe(me))}var Ie=[];ue.on("data",function(Ce){f("Request#%d %s: `res data` event emit, size %d",$,R,Ce.length),v+=Ce.length,Ie.push(Ce)}),ue.on("end",function(){var Ce=_.concat(Ie,v);if(f("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,R,v,ue._dumped),t)return D(t,Ce,ue);var ke=N(ue);if(ke.error)return D(ke.error,Ce,ue);ke.redirect||G(ue,Ce,function(ze,Re,Fe){if(ze)return D(ze,Ce,ue);if(!Fe&&O.indexOf(b.dataType)>=0){try{Re=decodeBodyByCharset(Re,ue)}catch(Ye){return f("decodeBodyByCharset error: %s",Ye),D(null,Re,ue)}if(b.dataType==="json")if(v===0)Re=null;else{var Ge=parseJSON(Re,ae);Ge.error?ze=Ge.error:Re=Ge.data}}X&&f("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,R),D(ze,Re,ue)})})}function te(){f("Response timer ticking, timeout: %d",Se),P=setTimeout(function(){P=null;var ue="Response timeout for "+Se+"ms";t=new Error(ue),t.name="ResponseTimeoutError",t.requestId=$,f("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,R,t.name,ue,o),z()},Se)}function z(){f("Request#%d %s abort, connected: %s",$,R,o),Pe.socket||(t.noSocket=!0,D(t)),Pe.abort()}if(!R||typeof R!="string"&&(R===void 0?"undefined":(0,c.default)(R))!=="object"){var Z=p.format("expect request url to be a string or a http request options, but got %j",R);throw new Error(Z)}arguments.length===2&&typeof b=="function"&&(I=b,b=null),b=b||{},g>=h&&(g=0);var $=++g;b.requestUrls=b.requestUrls||[];var q={requestId:$,url:R,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",q),b.timeout=b.timeout||T.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var L,j=Date.now();typeof R=="string"?(w.test(R)||(R="http://"+R),L=l.parse(R)):L=R;var F=(b.type||b.method||L.method||"GET").toUpperCase(),M=L.port||80,H=S,Y=u(b.agent,T.agent),ae=b.fixJSONCtlChars;L.protocol==="https:"&&(H=E,Y=u(b.httpsAgent,T.httpsAgent),L.port||(M=443));var ne={host:L.hostname||L.host||"localhost",path:L.path||"/",method:F,port:M,agent:Y,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?ne.requestTimeout=b.timeout[b.timeout.length-1]:b.timeout!==void 0&&(ne.requestTimeout=b.timeout);for(var se=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],fe=0;fe>>2]>>>24-O%4*8&255;A[h+O>>>2]|=R<<24-(h+O)%4*8}else for(var O=0;O>>2]=g[O>>>2];return this.sigBytes+=w,this},clamp:function(){var f=this.words,A=this.sigBytes;f[A>>>2]&=4294967295<<32-A%4*8,f.length=m.ceil(A/4)},clone:function(){var f=s.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var A,g=[],h=0;h>16)&b,O=18e3*(65535&O)+(O>>16)&b;var I=(R<<16)+O&b;return I/=4294967296,(I+=.5)*(m.random()>.5?1:-1)}}(4294967296*(A||m.random()));A=987654071*w(),g.push(4294967296*w()|0)}return new e.init(g,f)}}),a=u.enc={},r=a.Hex={stringify:function(f){for(var A=f.words,g=f.sigBytes,h=[],w=0;w>>2]>>>24-w%4*8&255;h.push((O>>>4).toString(16)),h.push((15&O).toString(16))}return h.join("")},parse:function(f){for(var A=f.length,g=[],h=0;h>>3]|=parseInt(f.substr(h,2),16)<<24-h%8*4;return new e.init(g,A/2)}},c=a.Latin1={stringify:function(f){for(var A=f.words,g=f.sigBytes,h=[],w=0;w>>2]>>>24-w%4*8&255;h.push(String.fromCharCode(O))}return h.join("")},parse:function(f){for(var A=f.length,g=[],h=0;h>>2]|=(255&f.charCodeAt(h))<<24-h%4*8;return new e.init(g,A)}},p=a.Utf8={stringify:function(f){try{return decodeURIComponent(escape(c.stringify(f)))}catch(A){throw new Error("Malformed UTF-8 data")}},parse:function(f){return c.parse(unescape(encodeURIComponent(f)))}},l=d.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=p.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var A=this._data,g=A.words,h=A.sigBytes,w=this.blockSize,O=4*w,R=h/O;R=f?m.ceil(R):m.max((0|R)-this._minBufferSize,0);var b=R*w,I=m.min(4*b,h);if(b){for(var y=0;y",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=_},function(_e,n,k){!function(T,m){_e.exports=n=m(k(0))}(0,function(T){return function(m){function _(S,E,f,A,g,h,w){var O=S+(E&f|~E&A)+g+w;return(O<>>32-h)+E}function i(S,E,f,A,g,h,w){var O=S+(E&A|f&~A)+g+w;return(O<>>32-h)+E}function u(S,E,f,A,g,h,w){var O=S+(E^f^A)+g+w;return(O<>>32-h)+E}function d(S,E,f,A,g,h,w){var O=S+(f^(E|~A))+g+w;return(O<>>32-h)+E}var s=T,e=s.lib,a=e.WordArray,r=e.Hasher,c=s.algo,p=[];!function(){for(var S=0;S<64;S++)p[S]=4294967296*m.abs(m.sin(S+1))|0}();var l=c.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,f){for(var A=0;A<16;A++){var g=f+A,h=E[g];E[g]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var w=this._hash.words,O=E[f+0],R=E[f+1],b=E[f+2],I=E[f+3],y=E[f+4],U=E[f+5],D=E[f+6],N=E[f+7],G=E[f+8],K=E[f+9],te=E[f+10],z=E[f+11],Z=E[f+12],$=E[f+13],q=E[f+14],L=E[f+15],j=w[0],F=w[1],M=w[2],H=w[3];j=_(j,F,M,H,O,7,p[0]),H=_(H,j,F,M,R,12,p[1]),M=_(M,H,j,F,b,17,p[2]),F=_(F,M,H,j,I,22,p[3]),j=_(j,F,M,H,y,7,p[4]),H=_(H,j,F,M,U,12,p[5]),M=_(M,H,j,F,D,17,p[6]),F=_(F,M,H,j,N,22,p[7]),j=_(j,F,M,H,G,7,p[8]),H=_(H,j,F,M,K,12,p[9]),M=_(M,H,j,F,te,17,p[10]),F=_(F,M,H,j,z,22,p[11]),j=_(j,F,M,H,Z,7,p[12]),H=_(H,j,F,M,$,12,p[13]),M=_(M,H,j,F,q,17,p[14]),F=_(F,M,H,j,L,22,p[15]),j=i(j,F,M,H,R,5,p[16]),H=i(H,j,F,M,D,9,p[17]),M=i(M,H,j,F,z,14,p[18]),F=i(F,M,H,j,O,20,p[19]),j=i(j,F,M,H,U,5,p[20]),H=i(H,j,F,M,te,9,p[21]),M=i(M,H,j,F,L,14,p[22]),F=i(F,M,H,j,y,20,p[23]),j=i(j,F,M,H,K,5,p[24]),H=i(H,j,F,M,q,9,p[25]),M=i(M,H,j,F,I,14,p[26]),F=i(F,M,H,j,G,20,p[27]),j=i(j,F,M,H,$,5,p[28]),H=i(H,j,F,M,b,9,p[29]),M=i(M,H,j,F,N,14,p[30]),F=i(F,M,H,j,Z,20,p[31]),j=u(j,F,M,H,U,4,p[32]),H=u(H,j,F,M,G,11,p[33]),M=u(M,H,j,F,z,16,p[34]),F=u(F,M,H,j,q,23,p[35]),j=u(j,F,M,H,R,4,p[36]),H=u(H,j,F,M,y,11,p[37]),M=u(M,H,j,F,N,16,p[38]),F=u(F,M,H,j,te,23,p[39]),j=u(j,F,M,H,$,4,p[40]),H=u(H,j,F,M,O,11,p[41]),M=u(M,H,j,F,I,16,p[42]),F=u(F,M,H,j,D,23,p[43]),j=u(j,F,M,H,K,4,p[44]),H=u(H,j,F,M,Z,11,p[45]),M=u(M,H,j,F,L,16,p[46]),F=u(F,M,H,j,b,23,p[47]),j=d(j,F,M,H,O,6,p[48]),H=d(H,j,F,M,N,10,p[49]),M=d(M,H,j,F,q,15,p[50]),F=d(F,M,H,j,U,21,p[51]),j=d(j,F,M,H,Z,6,p[52]),H=d(H,j,F,M,I,10,p[53]),M=d(M,H,j,F,te,15,p[54]),F=d(F,M,H,j,R,21,p[55]),j=d(j,F,M,H,G,6,p[56]),H=d(H,j,F,M,L,10,p[57]),M=d(M,H,j,F,D,15,p[58]),F=d(F,M,H,j,$,21,p[59]),j=d(j,F,M,H,y,6,p[60]),H=d(H,j,F,M,z,10,p[61]),M=d(M,H,j,F,b,15,p[62]),F=d(F,M,H,j,K,21,p[63]),w[0]=w[0]+j|0,w[1]=w[1]+F|0,w[2]=w[2]+M|0,w[3]=w[3]+H|0},_doFinalize:function(){var E=this._data,f=E.words,A=8*this._nDataBytes,g=8*E.sigBytes;f[g>>>5]|=128<<24-g%32;var h=m.floor(A/4294967296),w=A;f[15+(g+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f[14+(g+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),E.sigBytes=4*(f.length+1),this._process();for(var O=this._hash,R=O.words,b=0;b<4;b++){var I=R[b];R[b]=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8)}return O},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});s.MD5=r._createHelper(l),s.HmacMD5=r._createHmacHelper(l)}(Math),T.MD5})},function(_e,n,k){"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(_e,n,k){"use strict";function T(l){return l&&l.__esModule?l:{default:l}}function m(l,S){if(!(l instanceof S))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var _=function(){function l(S,E){for(var f=0;f-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var p=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,l=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return l&&(c="macOS"),navigator.platform=="X11"&&!p&&!l&&(c="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(c="Linux"),p?"windows":c},i=function(){var a=navigator.userAgent,r="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(r="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(r="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(r="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(r="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(r="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(r="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(r="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(r="10"),r},u=function(a){var r=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.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={},a={},r=navigator.userAgent,c=navigator.platform,p=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),l=r.match(/(Android);?[\s\/]+([\d.]+)?/),S=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),f=r.match(/(iPod)(.*OS\s([\d_]+))?/),A=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),g=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(c),w=r.match(/Windows Phone ([\d.]+)/),O=g&&r.match(/TouchPad/),R=r.match(/Kindle\/([\d.]+)/),b=r.match(/Silk\/([\d._]+)/),I=r.match(/(BlackBerry).*Version\/([\d.]+)/),y=r.match(/(BB10).*Version\/([\d.]+)/),U=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),D=r.match(/PlayBook/),N=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),G=r.match(/Firefox\/([\d.]+)/),K=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),te=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),z=!N&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),Z=z||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!p)&&(a.version=p[1]),l&&(e.android=!0,e.version=l[2]),A&&!f&&(e.ios=e.iphone=!0,e.version=A[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),f&&(e.ios=e.ipod=!0,e.version=f[3]?f[3].replace(/_/g,"."):null),w&&(e.wp=!0,e.version=w[1]),g&&(e.webos=!0,e.version=g[2]),O&&(e.touchpad=!0),I&&(e.blackberry=!0,e.version=I[2]),y&&(e.bb10=!0,e.version=y[2]),U&&(e.rimtabletos=!0,e.version=U[2]),D&&(a.playbook=!0),R&&(e.kindle=!0,e.version=R[1]),b&&(a.silk=!0,a.version=b[1]),!b&&e.android&&r.match(/Kindle Fire/)&&(a.silk=!0),N&&(a.chrome=!0,a.version=N[1]),G&&(a.firefox=!0,a.version=G[1]),K&&(e.firefoxos=!0,e.version=K[1]),te&&(a.ie=!0,a.version=te[1]),Z&&(S||e.ios||h||l)&&(a.safari=!0,e.ios||(a.version=Z[1])),z&&(a.webview=!0),S){var $=r.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||D||l&&!r.match(/Mobile/)||G&&r.match(/Tablet/)||te&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(l||A||g||I||y||N&&r.match(/Android/)||N&&r.match(/CriOS\/([\d.]+)/)||G&&r.match(/Mobile/)||te&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,S?e.name="macOS":h?(e.name="windows",e.version=i()):e.name=_(e),a.name=u(a),{os:e,browser:a}}(),s=function(){function e(){T(this,e)}return m(e,null,[{key:"getHost",value:function(r){var c="";if(r===void 0||r==null||r=="")return"";var p=r.indexOf("//"),l=r;p>-1&&(l=r.substring(p+2));var c=l,S=l.split("/");return S&&S.length>0&&(c=S[0]),S=c.split(":"),S&&S.length>0&&(c=S[0]),c}},{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(_e,n,k){"use strict";function T(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;s0){q._invalidUserId=!0;var M=F.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(H){console.log(H)}})})}te&&($.videoInfo=te?JSON.parse(te).Vod:{},$.userData=a.default.encode(te)),$.ri=A.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(L){console.log(L)}return!0}},{key:"deleteFile",value:function(D){return!!this.cancelFile(D)&&(this._uploadList.splice(D,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(D){if(this.options,D<0||D>=this._uploadList.length)return!1;var N=this._uploadList[D];if(D==this._curIndex&&N.state==i.UPLOADSTATE.UPLOADING){N.state=i.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(N);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=i.UPLOADSTATE.SUCCESS&&(N.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(D){if(this.options,D<0||D>=this._uploadList.length)return!1;var N=this._uploadList[D];return N.state==i.UPLOADSTATE.CANCELED&&(N.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(D){return this._getCheckoutpoint({file:D})}},{key:"startUpload",value:function(D){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 N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var D=this.options;if(this._state==i.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N)}else{this._state=i.VODSTATE.END;try{D.onUploadEnd&&D.onUploadEnd(N)}catch(G){console.log(G)}}}},{key:"clear",value:function(D){for(var N=this.options,G=0,K=0;Kthis._curIndex&&(te=this._uploadList[this._curIndex]),te&&(this.init(D,N,G,K),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(te,te.retry),te.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(D,N,G){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var K=this._uploadList[this._curIndex];K.object?this._refreshSTSTokenUpload(K,D,N,G):this.setSTSToken(K,D,N,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(D,N,G,K,te){if(!(N&&G&&K&&te))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var z=D;this.init(N,G,K,te),z.endpoint=z._endpoint,z.bucket=z._bucket,z.object=z._object,this._ossUpload=null,this._uploadCore(z,D.retry),D.retry=!1}},{key:"setSTSToken",value:function(D,N,G,K){if(!N||!G||!K)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var te=D.videoInfo,z={accessKeyId:N,securityToken:K,accessKeySecret:G,fileName:D.file.name,title:te.Title,requestId:D.ri,region:this.options.region};te.ImageType&&(z.imageType=te.ImageType),te.ImageExt&&(z.imageExt=te.ImageExt),te.FileSize&&(z.fileSize=te.FileSize),te.Description&&(z.description=te.Description),te.CateId&&(z.cateId=te.CateId),te.Tags&&(z.tags=te.Tags),te.TemplateGroupId&&(z.templateGroupId=te.TemplateGroupId),te.StorageLocation&&(z.storageLocation=te.StorageLocation),te.CoverURL&&(z.coverUrl=te.CoverURL),te.TransCodeMode&&(z.transCodeMode=te.TransCodeMode),te.UserData&&(z.userData=te.UserData);var Z=this,$="getUploadAuth";D.videoId?(z.videoId=D.videoId,$="refreshUploadAuth"):D.isImage&&($="getImageUploadAuth"),h.default[$](z,function(q){D.videoId=q.VideoId?q.VideoId:D.videoId,Z.setUploadAuthAndAddress(D,q.UploadAuth,q.UploadAddress),Z._state=i.VODSTATE.START},function(q){Z._error(D,{name:q.Code,code:q.Code,message:q.Message,requestId:q.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(D,N,G,K){if(!D||!N||!G)return!1;var te=JSON.parse(a.default.decode(N));if(!(te.AccessKeyId&&te.AccessKeySecret&&te.SecurityToken&&te.Expiration))return console.error("uploadauth is invalid"),!1;var z={},Z=D;if(G){if(z=JSON.parse(a.default.decode(G)),!z.Endpoint||!z.Bucket||!z.FileName)return console.error("uploadAddress is invalid"),!1}else z.Endpoint=Z.endpoint,z.Bucket=Z.bucket,z.FileName=Z.object;this._ut="vod",this._uploadWay="vod",this.options.region=te.Region||this.options.region,this.init(te.AccessKeyId,te.AccessKeySecret,te.SecurityToken,te.Expiration),Z.endpoint=Z._endpoint?Z._endpoint:z.Endpoint,Z.bucket=Z._bucket?Z._bucket:z.Bucket,Z.object=Z._object?Z._object:z.FileName,Z.region=this.options.region,K&&(Z.videoId=K),this._ossUpload=null,this._uploadCore(Z,D.retry),D.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(D,N,G,K){if(!N||!G||!K)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var te={accessKeyId:N,securityToken:K,accessKeySecret:G,videoId:D.object,requestId:D.ri,region:this.options.region},z=this,Z="refreshUploadAuth";D.isImage&&(Z="getImageUploadAuth"),h.default[Z](te,function($){z.setUploadAuthAndAddress(D,$.UploadAuth,UploadAddress),z._state=i.VODSTATE.START},function($){z._error(D,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(D){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(D.retry=N,G.onUploadstarted&&!N)try{var K=this._getCheckoutpoint(D);K&&K.state!=i.UPLOADSTATE.UPLOADING&&(D.checkpoint=K,D.videoId=K.videoId),G.onUploadstarted(D)}catch(te){console.log(te)}}},{key:"_uploadCore",value:function(D){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(D.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){D.endpoint=D.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new s.default({bucket:D.bucket,endpoint:D.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(L,j){N._error.call(N,L,j)},oncomplete:function(L,j){N._complete.call(N,L,j)},onprogress:function(L,j,F){N._progress.call(N,L,j,F)}})}var G=E.default.getFileType(D.file.name),K=this._getCheckoutpoint(D),te="",z="";K&&K.checkpoint&&(z=K.state,te=K.videoId,K=K.checkpoint),K&&te==D.videoId&&z!=i.UPLOADSTATE.UPLOADING&&(K.file=D.file,D.checkpoint=K,K.uploadId);var Z=this._adjustPartSize(D);this._reportLog("20002",D,{ft:G,fs:D.file.size,bu:D.bucket,ok:D.object,vid:D.videoId||"",fn:D.file.name,fw:null,fh:null,ps:Z});var $={headers:{"x-oss-notification":D.userData?D.userData:""},partSize:Z,parallel:this.options.parallel};this._ossUpload.upload(D,$)}},{key:"_findUploadIndex",value:function(){for(var D=-1,N=0;N0||N.name=="SignatureDoesNotMatchError"||N.code=="SecurityTokenExpired"||N.code=="InvalidSecurityToken.Expired"||N.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,D.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(D,N)}catch(K){console.log(K)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(D,!0)},1e3*G._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(D),this._handleError(D,N)}}},{key:"_handleError",value:function(D,N){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],K=i.UPLOADSTATE.FAIlURE;if(D.state!=i.UPLOADSTATE.CANCELED&&(D.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(D,N.code,N.message)}catch(z){console.log(z)}if(G&&this._changeState(D,K),this._reportLog("20006",D,{code:N.name,message:N.message,requestId:N.requestId,fs:D.file.size,bu:D.bucket,ok:D.object,fn:D.file.name}),this._reportLog("20004",D,{requestId:N.requestId,fs:D.file.size,bu:D.bucket,ok:D.object,fn:D.file.name}),D.ri=A.default.create(),this._findUploadIndex()!=-1){var te=this;this._state=i.VODSTATE.START,setTimeout(function(){te.nextUpload()},100)}}},{key:"_complete",value:function(D,N){if(D.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(D)}catch(te){console.log(te)}var G=0;N&&N.res&&N.res.headers&&(G=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(D);var K=this;setTimeout(function(){K.nextUpload()},100),this._retryCount=0,this._reportLog("20003",D,{requestId:G})}},{key:"_progress",value:function(D,N,G){if(this.options.onUploadProgress)try{D.loaded=N.loaded,this.options.onUploadProgress(D,N.total,N.loaded)}catch(L){console.log(L)}var K=N.checkpoint,te=0;K&&(D.checkpoint=K,this._saveCheckoutpoint(D,K,i.UPLOADSTATE.UPLOADING),te=K.uploadId),this._retryCount=0;var z=this._getPortNumber(K),Z=0;if(G&&G.headers&&(Z=G.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",D,{pn:z,requestId:Z}),N.loaded!=1&&this._reportLog("20005",D,{UploadId:te,pn:z+1,pr:D.retry?1:0,fs:D.file.size,bu:D.bucket,ok:D.object,fn:D.file.name}),!this._invalidUserId&&!D.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var $={file:D.file,checkpoint:N,userId:this.options.userId,videoId:D.videoId,region:this.options.region,fileHash:D.fileHash};try{var q=this;O.default.upload($,function(){},function(L){if((L=JSON.parse(L))&&L.Code=="InvalidParameter"&&L.Message.indexOf("UserId")>0){q._invalidUserId=!0;var j=L.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(j)}})}catch(L){console.log(L)}}}},{key:"_getPortNumber",value:function(D){if(D){var N=D.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(D){var N=this._getCheckoutpointKey(D);c.default.remove(N)}},{key:"_getCheckoutpoint",value:function(D){var N=this._getCheckoutpointKey(D),G=c.default.get(N);if(G)try{return JSON.parse(G)}catch(K){}return""}},{key:"_saveCheckoutpoint",value:function(D,N,G){if(N){var K=this._getCheckoutpointKey(D),te=D.file,z={fileName:te.name,lastModified:te.lastModified,size:te.size,object:D.object,videoId:D.videoId,bucket:D.bucket,endpoint:D.endpoint,checkpoint:N,loaded:D.loaded,state:G};c.default.set(K,JSON.stringify(z))}}},{key:"_changeState",value:function(D,N){var G=this._getCheckoutpoint(D);G&&((this._onbeforeunload=!0)&&(N=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(D,G.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(D){return"upload_"+D.file.lastModified+"_"+D.file.name+"_"+D.file.size}},{key:"_getCheckoutpointFromCloud",value:function(D,N,G){var K={userId:this.options.userId,uploadInfoList:[{FileName:D.file.name,FileSize:D.file.size,FileCreateTime:D.file.lastModified,FileHash:D.fileHash}],region:this.options.region};O.default.get(K,function(te){N(te)},G)}},{key:"_reportLog",value:function(D,N,G){G||(G={}),G.ri=N.ri,this._ut&&(G.ut=this._ut),this._log.log(D,G)}},{key:"_initEvent",value:function(){var D=this;window&&(window.onbeforeunload=function(N){if(D._onbeforeunload=!0,D._curIndex!=-1&&D._uploadList.length>D._curIndex){var G=D._uploadList[D._curIndex];D._changeState(G,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var D=0;D1e4?D.file.size/9999:this.options.partSize}}]),y}());n.default=I},function(_e,n,k){"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(_e,n,k){"use strict";function T(e){return e&&e.__esModule?e:{default:e}}function m(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var _=function(){function e(a,r){for(var c=0;c=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|P}function S(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 o=P.length;if(o===0)return 0;for(var C=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return ne(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return Q(P).length;default:if(C)return ne(P).length;t=(""+t).toLowerCase(),C=!0}}function f(P,t,o){var C=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((o===void 0||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,t>>>=0,o<=t)return"";for(P||(P="utf8");;)switch(P){case"hex":return te(this,t,o);case"utf8":case"utf-8":return D(this,t,o);case"ascii":return G(this,t,o);case"latin1":case"binary":return K(this,t,o);case"base64":return U(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,o);default:if(C)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),C=!0}}function A(P,t,o){var C=P[t];P[t]=P[o],P[o]=C}function g(P,t,o,C,v){if(P.length===0)return-1;if(typeof o=="string"?(C=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=v?0:P.length-1),o<0&&(o=P.length+o),o>=P.length){if(v)return-1;o=P.length-1}else if(o<0){if(!v)return-1;o=0}if(typeof t=="string"&&(t=i.from(t,C)),i.isBuffer(t))return t.length===0?-1:h(P,t,o,C,v);if(typeof t=="number")return t&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(P,t,o):Uint8Array.prototype.lastIndexOf.call(P,t,o):h(P,[t],o,C,v);throw new TypeError("val must be string, number or Buffer")}function h(P,t,o,C,v){function x(Pe,ue){return X===1?Pe[ue]:Pe.readUInt16BE(ue*X)}var X=1,V=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;X=2,V/=2,pe/=2,o/=2}var le;if(v){var me=-1;for(le=o;leV&&(o=V-pe),le=o;le>=0;le--){for(var ge=!0,Se=0;Sev&&(C=v):C=v;var x=t.length;if(x%2!=0)throw new TypeError("Invalid hex string");C>x/2&&(C=x/2);for(var X=0;X239?4:x>223?3:x>191?2:1;if(v+V<=o){var pe,le,me,ge;switch(V){case 1:x<128&&(X=x);break;case 2:pe=P[v+1],(192&pe)==128&&(ge=(31&x)<<6|63&pe)>127&&(X=ge);break;case 3:pe=P[v+1],le=P[v+2],(192&pe)==128&&(192&le)==128&&(ge=(15&x)<<12|(63&pe)<<6|63&le)>2047&&(ge<55296||ge>57343)&&(X=ge);break;case 4:pe=P[v+1],le=P[v+2],me=P[v+3],(192&pe)==128&&(192&le)==128&&(192&me)==128&&(ge=(15&x)<<18|(63&pe)<<12|(63&le)<<6|63&me)>65535&&ge<1114112&&(X=ge)}}X===null?(X=65533,V=1):X>65535&&(X-=65536,C.push(X>>>10&1023|55296),X=56320|1023&X),C.push(X),v+=V}return N(C)}function N(P){var t=P.length;if(t<=ee)return String.fromCharCode.apply(String,P);for(var o="",C=0;CC)&&(o=C);for(var v="",x=t;xo)throw new RangeError("Trying to access beyond buffer length")}function $(P,t,o,C,v,x){if(!i.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>v||tP.length)throw new RangeError("Index out of range")}function q(P,t,o,C){t<0&&(t=65535+t+1);for(var v=0,x=Math.min(P.length-o,2);v>>8*(C?v:1-v)}function L(P,t,o,C){t<0&&(t=4294967295+t+1);for(var v=0,x=Math.min(P.length-o,4);v>>8*(C?v:3-v)&255}function j(P,t,o,C,v,x){if(o+C>P.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function F(P,t,o,C,v){return v||j(P,t,o,4,34028234663852886e22,-34028234663852886e22),B.write(P,t,o,C,23,4),o+4}function M(P,t,o,C,v){return v||j(P,t,o,8,17976931348623157e292,-17976931348623157e292),B.write(P,t,o,C,52,8),o+8}function H(P){if(P=Y(P).replace(ce,""),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 ne(P,t){t=t||1/0;for(var o,C=P.length,v=null,x=[],X=0;X55295&&o<57344){if(!v){if(o>56319){(t-=3)>-1&&x.push(239,191,189);continue}if(X+1===C){(t-=3)>-1&&x.push(239,191,189);continue}v=o;continue}if(o<56320){(t-=3)>-1&&x.push(239,191,189),v=o;continue}o=65536+(v-55296<<10|o-56320)}else v&&(t-=3)>-1&&x.push(239,191,189);if(v=null,o<128){if((t-=1)<0)break;x.push(o)}else if(o<2048){if((t-=2)<0)break;x.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;x.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;x.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return x}function se(P){for(var t=[],o=0;o>8,v=o%256,x.push(v),x.push(C);return x}function Q(P){return W.toByteArray(H(P))}function J(P,t,o,C){for(var v=0;v=t.length||v>=P.length);++v)t[v+o]=P[v];return v}function ie(P){return P!==P}/*! +`))}var u=n("buffer").Buffer,d=n("./sha"),s=n("./sha256"),e=n("./md5"),a={sha1:d,sha256:s,md5:e},r=64,c=new u(r);c.fill(0),T.createHash=function(p){return _(p)},T.createHmac=function(p,l){return _(p,l)},function(p,l){for(var S in p)l(p[S],S)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(p){T[p]=function(){i("sorry,",p,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,k,T){"use strict";function m(a,r){if(a.length%d!=0){var c=a.length+(d-a.length%d);a=u.concat([a,s],c)}for(var p=[],l=r?a.readInt32BE:a.readInt32LE,S=0;S>5]|=128<>>9<<4)]=p;for(var l=1732584193,S=-271733879,E=-1732584194,f=271733878,A=0;A>16)+(p>>16)+(l>>16)<<16|65535&l}function a(c,p){return c<>>32-p}var r=n("./helpers");k.exports=function(c){return r.hash(c,m,16)}},{"./helpers":238}],240:[function(n,k,T){"use strict";function m(e,a){e[a>>5]|=128<<24-a%32,e[15+(a+64>>9<<4)]=a;for(var r=Array(80),c=1732584193,p=-271733879,l=-1732584194,S=271733878,E=-1009589776,f=0;f>16)+(a>>16)+(r>>16)<<16|65535&r}function d(e,a){return e<>>32-a}var s=n("./helpers");k.exports=function(e){return s.hash(e,m,20,!0)}},{"./helpers":238}],241:[function(n,k,T){"use strict";var m=n("./helpers"),_=function(S,E){var f=(65535&S)+(65535&E);return(S>>16)+(E>>16)+(f>>16)<<16|65535&f},i=function(S,E){return S>>>E|S<<32-E},u=function(S,E){return S>>>E},d=function(S,E,f){return S&E^~S&f},s=function(S,E,f){return S&E^S&f^E&f},e=function(S){return i(S,2)^i(S,13)^i(S,22)},a=function(S){return i(S,6)^i(S,11)^i(S,25)},r=function(S){return i(S,7)^i(S,18)^u(S,3)},c=function(S){return i(S,17)^i(S,19)^u(S,10)},p=function(S,E){var f,A,g,h,w,O,R,b,I,y,U,j,N=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),K=new Array(64);S[E>>5]|=128<<24-E%32,S[15+(E+64>>9<<4)]=E;for(var I=0;I=0)return f("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,R,ze),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(ne.method,ne.path,ze,b.digestAuth),f("Request#%d %s: auth with digest header: %s",$,R,b.headers.Authorization),Ie.headers["set-cookie"]&&(b.headers.Cookie=Ie.headers["set-cookie"].join(";")),T.requestWithCallback(R,b,Ce)}var Re=Date.now()-D;le&&(le.contentDownload=Re),f("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Re,v,x,ne.method,ne.host,ne.path,C,le);var Fe={status:x,statusCode:x,headers:ke,size:v,aborted:X,rt:Re,keepAliveSocket:C,data:xe,requestUrls:b.requestUrls,timing:le,remoteAddress:V,remotePort:pe};if(ue){var Ge="";Y&&typeof Y.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,a.default)(Y.getCurrentStatus())),ue.message+=", "+ne.method+" "+R+" "+x+" (connected: "+o+", keepalive socket: "+C+Ge+`) +headers: `+(0,a.default)(ke),ue.data=xe,ue.path=ne.path,ue.status=x,ue.headers=ke,ue.res=Fe}Ce(ue,xe,b.streaming?Ie:Fe),b.emitter&&(q.url=R,q.socket=Pe&&Pe.connection,q.options=ne,q.size=re,b.emitter.emit("response",{requestId:$,error:ue,ctx:b.ctx,req:q,res:Fe}))}function N(ue){var xe=null;if(b.followRedirect&&statuses.redirect[ue.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var Ie=ue.headers.location;if(Ie){if(!(b._followRedirectCount>b.maxRedirects)){var Ce=b.formatRedirectUrl?b.formatRedirectUrl(R,Ie):l.resolve(R,Ie);f("Request#%d %s: `redirected` from %s to %s",$,ne.path,R,Ce),U(),b.headers&&b.headers.Host&&w.test(Ie)&&(b.headers.Host=null);var ke=I;return I=null,T.requestWithCallback(Ce,b,ke),{redirect:!0,error:null}}xe=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+R),xe.name="MaxRedirectError"}else xe=new Error("Got statusCode "+ue.statusCode+" but cannot resolve next location from headers"),xe.name="FollowRedirectError"}return{redirect:!1,error:xe}}function G(ue,xe,Ie){return Ie(null,xe,ue.headers["content-encoding"])}function K(ue){if(le&&(le.waiting=Date.now()-D),f("Request#%d %s `req response` event emit: status %d, headers: %j",$,R,ue.statusCode,ue.headers),b.streaming){var xe=N(ue);return xe.redirect?void ue.resume():xe.error?(ue.resume(),j(xe.error,null,ue)):j(null,null,ue)}if(ue.on("close",function(){f("Request#%d %s: `res close` event emit, total size %d",$,R,v)}),ue.on("error",function(){f("Request#%d %s: `res error` event emit, total size %d",$,R,v)}),ue.on("aborted",function(){X=!0,f("Request#%d %s: `res aborted` event emit, total size %d",$,R,v)}),me){var xe=N(ue);return xe.redirect?void ue.resume():xe.error?(ue.resume(),me.end(),j(xe.error,null,ue)):(b.consumeWriteStream===!1?ue.on("end",j.bind(null,null,null,ue)):isNode010||isNode012?first([[me,"close"],[ue,"aborted"]],function(ke,ze,Re){f("Request#%d %s: writeStream or res %s event emitted",$,R,Re),j(t||null,null,ue)}):me.on("close",function(){f("Request#%d %s: writeStream close event emitted",$,R),j(t||null,null,ue)}),ue.pipe(me))}var Ie=[];ue.on("data",function(Ce){f("Request#%d %s: `res data` event emit, size %d",$,R,Ce.length),v+=Ce.length,Ie.push(Ce)}),ue.on("end",function(){var Ce=_.concat(Ie,v);if(f("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,R,v,ue._dumped),t)return j(t,Ce,ue);var ke=N(ue);if(ke.error)return j(ke.error,Ce,ue);ke.redirect||G(ue,Ce,function(ze,Re,Fe){if(ze)return j(ze,Ce,ue);if(!Fe&&O.indexOf(b.dataType)>=0){try{Re=decodeBodyByCharset(Re,ue)}catch(Ye){return f("decodeBodyByCharset error: %s",Ye),j(null,Re,ue)}if(b.dataType==="json")if(v===0)Re=null;else{var Ge=parseJSON(Re,ae);Ge.error?ze=Ge.error:Re=Ge.data}}X&&f("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,R),j(ze,Re,ue)})})}function te(){f("Response timer ticking, timeout: %d",Te),P=setTimeout(function(){P=null;var ue="Response timeout for "+Te+"ms";t=new Error(ue),t.name="ResponseTimeoutError",t.requestId=$,f("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,R,t.name,ue,o),z()},Te)}function z(){f("Request#%d %s abort, connected: %s",$,R,o),Pe.socket||(t.noSocket=!0,j(t)),Pe.abort()}if(!R||typeof R!="string"&&(R===void 0?"undefined":(0,c.default)(R))!=="object"){var Z=p.format("expect request url to be a string or a http request options, but got %j",R);throw new Error(Z)}arguments.length===2&&typeof b=="function"&&(I=b,b=null),b=b||{},g>=h&&(g=0);var $=++g;b.requestUrls=b.requestUrls||[];var q={requestId:$,url:R,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",q),b.timeout=b.timeout||T.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var L,D=Date.now();typeof R=="string"?(w.test(R)||(R="http://"+R),L=l.parse(R)):L=R;var F=(b.type||b.method||L.method||"GET").toUpperCase(),M=L.port||80,H=S,Y=u(b.agent,T.agent),ae=b.fixJSONCtlChars;L.protocol==="https:"&&(H=E,Y=u(b.httpsAgent,T.httpsAgent),L.port||(M=443));var ne={host:L.hostname||L.host||"localhost",path:L.path||"/",method:F,port:M,agent:Y,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?ne.requestTimeout=b.timeout[b.timeout.length-1]:b.timeout!==void 0&&(ne.requestTimeout=b.timeout);for(var se=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],fe=0;fe>>2]>>>24-O%4*8&255;A[h+O>>>2]|=R<<24-(h+O)%4*8}else for(var O=0;O>>2]=g[O>>>2];return this.sigBytes+=w,this},clamp:function(){var f=this.words,A=this.sigBytes;f[A>>>2]&=4294967295<<32-A%4*8,f.length=m.ceil(A/4)},clone:function(){var f=s.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var A,g=[],h=0;h>16)&b,O=18e3*(65535&O)+(O>>16)&b;var I=(R<<16)+O&b;return I/=4294967296,(I+=.5)*(m.random()>.5?1:-1)}}(4294967296*(A||m.random()));A=987654071*w(),g.push(4294967296*w()|0)}return new e.init(g,f)}}),a=u.enc={},r=a.Hex={stringify:function(f){for(var A=f.words,g=f.sigBytes,h=[],w=0;w>>2]>>>24-w%4*8&255;h.push((O>>>4).toString(16)),h.push((15&O).toString(16))}return h.join("")},parse:function(f){for(var A=f.length,g=[],h=0;h>>3]|=parseInt(f.substr(h,2),16)<<24-h%8*4;return new e.init(g,A/2)}},c=a.Latin1={stringify:function(f){for(var A=f.words,g=f.sigBytes,h=[],w=0;w>>2]>>>24-w%4*8&255;h.push(String.fromCharCode(O))}return h.join("")},parse:function(f){for(var A=f.length,g=[],h=0;h>>2]|=(255&f.charCodeAt(h))<<24-h%4*8;return new e.init(g,A)}},p=a.Utf8={stringify:function(f){try{return decodeURIComponent(escape(c.stringify(f)))}catch(A){throw new Error("Malformed UTF-8 data")}},parse:function(f){return c.parse(unescape(encodeURIComponent(f)))}},l=d.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=p.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var A=this._data,g=A.words,h=A.sigBytes,w=this.blockSize,O=4*w,R=h/O;R=f?m.ceil(R):m.max((0|R)-this._minBufferSize,0);var b=R*w,I=m.min(4*b,h);if(b){for(var y=0;y",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=_},function(_e,n,k){!function(T,m){_e.exports=n=m(k(0))}(0,function(T){return function(m){function _(S,E,f,A,g,h,w){var O=S+(E&f|~E&A)+g+w;return(O<>>32-h)+E}function i(S,E,f,A,g,h,w){var O=S+(E&A|f&~A)+g+w;return(O<>>32-h)+E}function u(S,E,f,A,g,h,w){var O=S+(E^f^A)+g+w;return(O<>>32-h)+E}function d(S,E,f,A,g,h,w){var O=S+(f^(E|~A))+g+w;return(O<>>32-h)+E}var s=T,e=s.lib,a=e.WordArray,r=e.Hasher,c=s.algo,p=[];!function(){for(var S=0;S<64;S++)p[S]=4294967296*m.abs(m.sin(S+1))|0}();var l=c.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,f){for(var A=0;A<16;A++){var g=f+A,h=E[g];E[g]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var w=this._hash.words,O=E[f+0],R=E[f+1],b=E[f+2],I=E[f+3],y=E[f+4],U=E[f+5],j=E[f+6],N=E[f+7],G=E[f+8],K=E[f+9],te=E[f+10],z=E[f+11],Z=E[f+12],$=E[f+13],q=E[f+14],L=E[f+15],D=w[0],F=w[1],M=w[2],H=w[3];D=_(D,F,M,H,O,7,p[0]),H=_(H,D,F,M,R,12,p[1]),M=_(M,H,D,F,b,17,p[2]),F=_(F,M,H,D,I,22,p[3]),D=_(D,F,M,H,y,7,p[4]),H=_(H,D,F,M,U,12,p[5]),M=_(M,H,D,F,j,17,p[6]),F=_(F,M,H,D,N,22,p[7]),D=_(D,F,M,H,G,7,p[8]),H=_(H,D,F,M,K,12,p[9]),M=_(M,H,D,F,te,17,p[10]),F=_(F,M,H,D,z,22,p[11]),D=_(D,F,M,H,Z,7,p[12]),H=_(H,D,F,M,$,12,p[13]),M=_(M,H,D,F,q,17,p[14]),F=_(F,M,H,D,L,22,p[15]),D=i(D,F,M,H,R,5,p[16]),H=i(H,D,F,M,j,9,p[17]),M=i(M,H,D,F,z,14,p[18]),F=i(F,M,H,D,O,20,p[19]),D=i(D,F,M,H,U,5,p[20]),H=i(H,D,F,M,te,9,p[21]),M=i(M,H,D,F,L,14,p[22]),F=i(F,M,H,D,y,20,p[23]),D=i(D,F,M,H,K,5,p[24]),H=i(H,D,F,M,q,9,p[25]),M=i(M,H,D,F,I,14,p[26]),F=i(F,M,H,D,G,20,p[27]),D=i(D,F,M,H,$,5,p[28]),H=i(H,D,F,M,b,9,p[29]),M=i(M,H,D,F,N,14,p[30]),F=i(F,M,H,D,Z,20,p[31]),D=u(D,F,M,H,U,4,p[32]),H=u(H,D,F,M,G,11,p[33]),M=u(M,H,D,F,z,16,p[34]),F=u(F,M,H,D,q,23,p[35]),D=u(D,F,M,H,R,4,p[36]),H=u(H,D,F,M,y,11,p[37]),M=u(M,H,D,F,N,16,p[38]),F=u(F,M,H,D,te,23,p[39]),D=u(D,F,M,H,$,4,p[40]),H=u(H,D,F,M,O,11,p[41]),M=u(M,H,D,F,I,16,p[42]),F=u(F,M,H,D,j,23,p[43]),D=u(D,F,M,H,K,4,p[44]),H=u(H,D,F,M,Z,11,p[45]),M=u(M,H,D,F,L,16,p[46]),F=u(F,M,H,D,b,23,p[47]),D=d(D,F,M,H,O,6,p[48]),H=d(H,D,F,M,N,10,p[49]),M=d(M,H,D,F,q,15,p[50]),F=d(F,M,H,D,U,21,p[51]),D=d(D,F,M,H,Z,6,p[52]),H=d(H,D,F,M,I,10,p[53]),M=d(M,H,D,F,te,15,p[54]),F=d(F,M,H,D,R,21,p[55]),D=d(D,F,M,H,G,6,p[56]),H=d(H,D,F,M,L,10,p[57]),M=d(M,H,D,F,j,15,p[58]),F=d(F,M,H,D,$,21,p[59]),D=d(D,F,M,H,y,6,p[60]),H=d(H,D,F,M,z,10,p[61]),M=d(M,H,D,F,b,15,p[62]),F=d(F,M,H,D,K,21,p[63]),w[0]=w[0]+D|0,w[1]=w[1]+F|0,w[2]=w[2]+M|0,w[3]=w[3]+H|0},_doFinalize:function(){var E=this._data,f=E.words,A=8*this._nDataBytes,g=8*E.sigBytes;f[g>>>5]|=128<<24-g%32;var h=m.floor(A/4294967296),w=A;f[15+(g+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f[14+(g+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),E.sigBytes=4*(f.length+1),this._process();for(var O=this._hash,R=O.words,b=0;b<4;b++){var I=R[b];R[b]=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8)}return O},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});s.MD5=r._createHelper(l),s.HmacMD5=r._createHmacHelper(l)}(Math),T.MD5})},function(_e,n,k){"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(_e,n,k){"use strict";function T(l){return l&&l.__esModule?l:{default:l}}function m(l,S){if(!(l instanceof S))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var _=function(){function l(S,E){for(var f=0;f-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var p=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,l=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return l&&(c="macOS"),navigator.platform=="X11"&&!p&&!l&&(c="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(c="Linux"),p?"windows":c},i=function(){var a=navigator.userAgent,r="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(r="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(r="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(r="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(r="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(r="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(r="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(r="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(r="10"),r},u=function(a){var r=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.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={},a={},r=navigator.userAgent,c=navigator.platform,p=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),l=r.match(/(Android);?[\s\/]+([\d.]+)?/),S=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),f=r.match(/(iPod)(.*OS\s([\d_]+))?/),A=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),g=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(c),w=r.match(/Windows Phone ([\d.]+)/),O=g&&r.match(/TouchPad/),R=r.match(/Kindle\/([\d.]+)/),b=r.match(/Silk\/([\d._]+)/),I=r.match(/(BlackBerry).*Version\/([\d.]+)/),y=r.match(/(BB10).*Version\/([\d.]+)/),U=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),j=r.match(/PlayBook/),N=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),G=r.match(/Firefox\/([\d.]+)/),K=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),te=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),z=!N&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),Z=z||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!p)&&(a.version=p[1]),l&&(e.android=!0,e.version=l[2]),A&&!f&&(e.ios=e.iphone=!0,e.version=A[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),f&&(e.ios=e.ipod=!0,e.version=f[3]?f[3].replace(/_/g,"."):null),w&&(e.wp=!0,e.version=w[1]),g&&(e.webos=!0,e.version=g[2]),O&&(e.touchpad=!0),I&&(e.blackberry=!0,e.version=I[2]),y&&(e.bb10=!0,e.version=y[2]),U&&(e.rimtabletos=!0,e.version=U[2]),j&&(a.playbook=!0),R&&(e.kindle=!0,e.version=R[1]),b&&(a.silk=!0,a.version=b[1]),!b&&e.android&&r.match(/Kindle Fire/)&&(a.silk=!0),N&&(a.chrome=!0,a.version=N[1]),G&&(a.firefox=!0,a.version=G[1]),K&&(e.firefoxos=!0,e.version=K[1]),te&&(a.ie=!0,a.version=te[1]),Z&&(S||e.ios||h||l)&&(a.safari=!0,e.ios||(a.version=Z[1])),z&&(a.webview=!0),S){var $=r.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||j||l&&!r.match(/Mobile/)||G&&r.match(/Tablet/)||te&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(l||A||g||I||y||N&&r.match(/Android/)||N&&r.match(/CriOS\/([\d.]+)/)||G&&r.match(/Mobile/)||te&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,S?e.name="macOS":h?(e.name="windows",e.version=i()):e.name=_(e),a.name=u(a),{os:e,browser:a}}(),s=function(){function e(){T(this,e)}return m(e,null,[{key:"getHost",value:function(r){var c="";if(r===void 0||r==null||r=="")return"";var p=r.indexOf("//"),l=r;p>-1&&(l=r.substring(p+2));var c=l,S=l.split("/");return S&&S.length>0&&(c=S[0]),S=c.split(":"),S&&S.length>0&&(c=S[0]),c}},{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(_e,n,k){"use strict";function T(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;s0){q._invalidUserId=!0;var M=F.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(H){console.log(H)}})})}te&&($.videoInfo=te?JSON.parse(te).Vod:{},$.userData=a.default.encode(te)),$.ri=A.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(L){console.log(L)}return!0}},{key:"deleteFile",value:function(j){return!!this.cancelFile(j)&&(this._uploadList.splice(j,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var N=this._uploadList[j];if(j==this._curIndex&&N.state==i.UPLOADSTATE.UPLOADING){N.state=i.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(N);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=i.UPLOADSTATE.SUCCESS&&(N.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var N=this._uploadList[j];return N.state==i.UPLOADSTATE.CANCELED&&(N.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(j){return this._getCheckoutpoint({file:j})}},{key:"startUpload",value:function(j){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 N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var j=this.options;if(this._state==i.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N)}else{this._state=i.VODSTATE.END;try{j.onUploadEnd&&j.onUploadEnd(N)}catch(G){console.log(G)}}}},{key:"clear",value:function(j){for(var N=this.options,G=0,K=0;Kthis._curIndex&&(te=this._uploadList[this._curIndex]),te&&(this.init(j,N,G,K),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(te,te.retry),te.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(j,N,G){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var K=this._uploadList[this._curIndex];K.object?this._refreshSTSTokenUpload(K,j,N,G):this.setSTSToken(K,j,N,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(j,N,G,K,te){if(!(N&&G&&K&&te))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var z=j;this.init(N,G,K,te),z.endpoint=z._endpoint,z.bucket=z._bucket,z.object=z._object,this._ossUpload=null,this._uploadCore(z,j.retry),j.retry=!1}},{key:"setSTSToken",value:function(j,N,G,K){if(!N||!G||!K)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var te=j.videoInfo,z={accessKeyId:N,securityToken:K,accessKeySecret:G,fileName:j.file.name,title:te.Title,requestId:j.ri,region:this.options.region};te.ImageType&&(z.imageType=te.ImageType),te.ImageExt&&(z.imageExt=te.ImageExt),te.FileSize&&(z.fileSize=te.FileSize),te.Description&&(z.description=te.Description),te.CateId&&(z.cateId=te.CateId),te.Tags&&(z.tags=te.Tags),te.TemplateGroupId&&(z.templateGroupId=te.TemplateGroupId),te.StorageLocation&&(z.storageLocation=te.StorageLocation),te.CoverURL&&(z.coverUrl=te.CoverURL),te.TransCodeMode&&(z.transCodeMode=te.TransCodeMode),te.UserData&&(z.userData=te.UserData);var Z=this,$="getUploadAuth";j.videoId?(z.videoId=j.videoId,$="refreshUploadAuth"):j.isImage&&($="getImageUploadAuth"),h.default[$](z,function(q){j.videoId=q.VideoId?q.VideoId:j.videoId,Z.setUploadAuthAndAddress(j,q.UploadAuth,q.UploadAddress),Z._state=i.VODSTATE.START},function(q){Z._error(j,{name:q.Code,code:q.Code,message:q.Message,requestId:q.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(j,N,G,K){if(!j||!N||!G)return!1;var te=JSON.parse(a.default.decode(N));if(!(te.AccessKeyId&&te.AccessKeySecret&&te.SecurityToken&&te.Expiration))return console.error("uploadauth is invalid"),!1;var z={},Z=j;if(G){if(z=JSON.parse(a.default.decode(G)),!z.Endpoint||!z.Bucket||!z.FileName)return console.error("uploadAddress is invalid"),!1}else z.Endpoint=Z.endpoint,z.Bucket=Z.bucket,z.FileName=Z.object;this._ut="vod",this._uploadWay="vod",this.options.region=te.Region||this.options.region,this.init(te.AccessKeyId,te.AccessKeySecret,te.SecurityToken,te.Expiration),Z.endpoint=Z._endpoint?Z._endpoint:z.Endpoint,Z.bucket=Z._bucket?Z._bucket:z.Bucket,Z.object=Z._object?Z._object:z.FileName,Z.region=this.options.region,K&&(Z.videoId=K),this._ossUpload=null,this._uploadCore(Z,j.retry),j.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(j,N,G,K){if(!N||!G||!K)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var te={accessKeyId:N,securityToken:K,accessKeySecret:G,videoId:j.object,requestId:j.ri,region:this.options.region},z=this,Z="refreshUploadAuth";j.isImage&&(Z="getImageUploadAuth"),h.default[Z](te,function($){z.setUploadAuthAndAddress(j,$.UploadAuth,UploadAddress),z._state=i.VODSTATE.START},function($){z._error(j,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(j){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(j.retry=N,G.onUploadstarted&&!N)try{var K=this._getCheckoutpoint(j);K&&K.state!=i.UPLOADSTATE.UPLOADING&&(j.checkpoint=K,j.videoId=K.videoId),G.onUploadstarted(j)}catch(te){console.log(te)}}},{key:"_uploadCore",value:function(j){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(j.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){j.endpoint=j.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new s.default({bucket:j.bucket,endpoint:j.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(L,D){N._error.call(N,L,D)},oncomplete:function(L,D){N._complete.call(N,L,D)},onprogress:function(L,D,F){N._progress.call(N,L,D,F)}})}var G=E.default.getFileType(j.file.name),K=this._getCheckoutpoint(j),te="",z="";K&&K.checkpoint&&(z=K.state,te=K.videoId,K=K.checkpoint),K&&te==j.videoId&&z!=i.UPLOADSTATE.UPLOADING&&(K.file=j.file,j.checkpoint=K,K.uploadId);var Z=this._adjustPartSize(j);this._reportLog("20002",j,{ft:G,fs:j.file.size,bu:j.bucket,ok:j.object,vid:j.videoId||"",fn:j.file.name,fw:null,fh:null,ps:Z});var $={headers:{"x-oss-notification":j.userData?j.userData:""},partSize:Z,parallel:this.options.parallel};this._ossUpload.upload(j,$)}},{key:"_findUploadIndex",value:function(){for(var j=-1,N=0;N0||N.name=="SignatureDoesNotMatchError"||N.code=="SecurityTokenExpired"||N.code=="InvalidSecurityToken.Expired"||N.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,j.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(j,N)}catch(K){console.log(K)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(j,!0)},1e3*G._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(j),this._handleError(j,N)}}},{key:"_handleError",value:function(j,N){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],K=i.UPLOADSTATE.FAIlURE;if(j.state!=i.UPLOADSTATE.CANCELED&&(j.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(j,N.code,N.message)}catch(z){console.log(z)}if(G&&this._changeState(j,K),this._reportLog("20006",j,{code:N.name,message:N.message,requestId:N.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),this._reportLog("20004",j,{requestId:N.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),j.ri=A.default.create(),this._findUploadIndex()!=-1){var te=this;this._state=i.VODSTATE.START,setTimeout(function(){te.nextUpload()},100)}}},{key:"_complete",value:function(j,N){if(j.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(j)}catch(te){console.log(te)}var G=0;N&&N.res&&N.res.headers&&(G=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(j);var K=this;setTimeout(function(){K.nextUpload()},100),this._retryCount=0,this._reportLog("20003",j,{requestId:G})}},{key:"_progress",value:function(j,N,G){if(this.options.onUploadProgress)try{j.loaded=N.loaded,this.options.onUploadProgress(j,N.total,N.loaded)}catch(L){console.log(L)}var K=N.checkpoint,te=0;K&&(j.checkpoint=K,this._saveCheckoutpoint(j,K,i.UPLOADSTATE.UPLOADING),te=K.uploadId),this._retryCount=0;var z=this._getPortNumber(K),Z=0;if(G&&G.headers&&(Z=G.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",j,{pn:z,requestId:Z}),N.loaded!=1&&this._reportLog("20005",j,{UploadId:te,pn:z+1,pr:j.retry?1:0,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),!this._invalidUserId&&!j.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var $={file:j.file,checkpoint:N,userId:this.options.userId,videoId:j.videoId,region:this.options.region,fileHash:j.fileHash};try{var q=this;O.default.upload($,function(){},function(L){if((L=JSON.parse(L))&&L.Code=="InvalidParameter"&&L.Message.indexOf("UserId")>0){q._invalidUserId=!0;var D=L.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(D)}})}catch(L){console.log(L)}}}},{key:"_getPortNumber",value:function(j){if(j){var N=j.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(j){var N=this._getCheckoutpointKey(j);c.default.remove(N)}},{key:"_getCheckoutpoint",value:function(j){var N=this._getCheckoutpointKey(j),G=c.default.get(N);if(G)try{return JSON.parse(G)}catch(K){}return""}},{key:"_saveCheckoutpoint",value:function(j,N,G){if(N){var K=this._getCheckoutpointKey(j),te=j.file,z={fileName:te.name,lastModified:te.lastModified,size:te.size,object:j.object,videoId:j.videoId,bucket:j.bucket,endpoint:j.endpoint,checkpoint:N,loaded:j.loaded,state:G};c.default.set(K,JSON.stringify(z))}}},{key:"_changeState",value:function(j,N){var G=this._getCheckoutpoint(j);G&&((this._onbeforeunload=!0)&&(N=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(j,G.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(j){return"upload_"+j.file.lastModified+"_"+j.file.name+"_"+j.file.size}},{key:"_getCheckoutpointFromCloud",value:function(j,N,G){var K={userId:this.options.userId,uploadInfoList:[{FileName:j.file.name,FileSize:j.file.size,FileCreateTime:j.file.lastModified,FileHash:j.fileHash}],region:this.options.region};O.default.get(K,function(te){N(te)},G)}},{key:"_reportLog",value:function(j,N,G){G||(G={}),G.ri=N.ri,this._ut&&(G.ut=this._ut),this._log.log(j,G)}},{key:"_initEvent",value:function(){var j=this;window&&(window.onbeforeunload=function(N){if(j._onbeforeunload=!0,j._curIndex!=-1&&j._uploadList.length>j._curIndex){var G=j._uploadList[j._curIndex];j._changeState(G,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var j=0;j1e4?j.file.size/9999:this.options.partSize}}]),y}());n.default=I},function(_e,n,k){"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(_e,n,k){"use strict";function T(e){return e&&e.__esModule?e:{default:e}}function m(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var _=function(){function e(a,r){for(var c=0;c=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|P}function S(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 o=P.length;if(o===0)return 0;for(var C=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return ne(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return Q(P).length;default:if(C)return ne(P).length;t=(""+t).toLowerCase(),C=!0}}function f(P,t,o){var C=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((o===void 0||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,t>>>=0,o<=t)return"";for(P||(P="utf8");;)switch(P){case"hex":return te(this,t,o);case"utf8":case"utf-8":return j(this,t,o);case"ascii":return G(this,t,o);case"latin1":case"binary":return K(this,t,o);case"base64":return U(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,o);default:if(C)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),C=!0}}function A(P,t,o){var C=P[t];P[t]=P[o],P[o]=C}function g(P,t,o,C,v){if(P.length===0)return-1;if(typeof o=="string"?(C=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=v?0:P.length-1),o<0&&(o=P.length+o),o>=P.length){if(v)return-1;o=P.length-1}else if(o<0){if(!v)return-1;o=0}if(typeof t=="string"&&(t=i.from(t,C)),i.isBuffer(t))return t.length===0?-1:h(P,t,o,C,v);if(typeof t=="number")return t&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(P,t,o):Uint8Array.prototype.lastIndexOf.call(P,t,o):h(P,[t],o,C,v);throw new TypeError("val must be string, number or Buffer")}function h(P,t,o,C,v){function x(Pe,ue){return X===1?Pe[ue]:Pe.readUInt16BE(ue*X)}var X=1,V=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;X=2,V/=2,pe/=2,o/=2}var le;if(v){var me=-1;for(le=o;leV&&(o=V-pe),le=o;le>=0;le--){for(var ge=!0,Te=0;Tev&&(C=v):C=v;var x=t.length;if(x%2!=0)throw new TypeError("Invalid hex string");C>x/2&&(C=x/2);for(var X=0;X239?4:x>223?3:x>191?2:1;if(v+V<=o){var pe,le,me,ge;switch(V){case 1:x<128&&(X=x);break;case 2:pe=P[v+1],(192&pe)==128&&(ge=(31&x)<<6|63&pe)>127&&(X=ge);break;case 3:pe=P[v+1],le=P[v+2],(192&pe)==128&&(192&le)==128&&(ge=(15&x)<<12|(63&pe)<<6|63&le)>2047&&(ge<55296||ge>57343)&&(X=ge);break;case 4:pe=P[v+1],le=P[v+2],me=P[v+3],(192&pe)==128&&(192&le)==128&&(192&me)==128&&(ge=(15&x)<<18|(63&pe)<<12|(63&le)<<6|63&me)>65535&&ge<1114112&&(X=ge)}}X===null?(X=65533,V=1):X>65535&&(X-=65536,C.push(X>>>10&1023|55296),X=56320|1023&X),C.push(X),v+=V}return N(C)}function N(P){var t=P.length;if(t<=ee)return String.fromCharCode.apply(String,P);for(var o="",C=0;CC)&&(o=C);for(var v="",x=t;xo)throw new RangeError("Trying to access beyond buffer length")}function $(P,t,o,C,v,x){if(!i.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>v||tP.length)throw new RangeError("Index out of range")}function q(P,t,o,C){t<0&&(t=65535+t+1);for(var v=0,x=Math.min(P.length-o,2);v>>8*(C?v:1-v)}function L(P,t,o,C){t<0&&(t=4294967295+t+1);for(var v=0,x=Math.min(P.length-o,4);v>>8*(C?v:3-v)&255}function D(P,t,o,C,v,x){if(o+C>P.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function F(P,t,o,C,v){return v||D(P,t,o,4,34028234663852886e22,-34028234663852886e22),B.write(P,t,o,C,23,4),o+4}function M(P,t,o,C,v){return v||D(P,t,o,8,17976931348623157e292,-17976931348623157e292),B.write(P,t,o,C,52,8),o+8}function H(P){if(P=Y(P).replace(ce,""),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 ne(P,t){t=t||1/0;for(var o,C=P.length,v=null,x=[],X=0;X55295&&o<57344){if(!v){if(o>56319){(t-=3)>-1&&x.push(239,191,189);continue}if(X+1===C){(t-=3)>-1&&x.push(239,191,189);continue}v=o;continue}if(o<56320){(t-=3)>-1&&x.push(239,191,189),v=o;continue}o=65536+(v-55296<<10|o-56320)}else v&&(t-=3)>-1&&x.push(239,191,189);if(v=null,o<128){if((t-=1)<0)break;x.push(o)}else if(o<2048){if((t-=2)<0)break;x.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;x.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;x.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return x}function se(P){for(var t=[],o=0;o>8,v=o%256,x.push(v),x.push(C);return x}function Q(P){return W.toByteArray(H(P))}function J(P,t,o,C){for(var v=0;v=t.length||v>=P.length);++v)t[v+o]=P[v];return v}function ie(P){return P!==P}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var W=k(21),B=k(22),re=k(23);n.Buffer=i,n.SlowBuffer=S,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=T.TYPED_ARRAY_SUPPORT!==void 0?T.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,o){return u(null,P,t,o)},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,o){return s(null,P,t,o)},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 o=P.length,C=t.length,v=0,x=Math.min(o,C);v0&&(P=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(P+=" ... ")),""},i.prototype.compare=function(P,t,o,C,v){if(!i.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),o===void 0&&(o=P?P.length:0),C===void 0&&(C=0),v===void 0&&(v=this.length),t<0||o>P.length||C<0||v>this.length)throw new RangeError("out of range index");if(C>=v&&t>=o)return 0;if(C>=v)return-1;if(t>=o)return 1;if(t>>>=0,o>>>=0,C>>>=0,v>>>=0,this===P)return 0;for(var x=v-C,X=o-t,V=Math.min(x,X),pe=this.slice(C,v),le=P.slice(t,o),me=0;mev)&&(o=v),P.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var x=!1;;)switch(C){case"hex":return w(this,P,t,o);case"utf8":case"utf-8":return O(this,P,t,o);case"ascii":return R(this,P,t,o);case"latin1":case"binary":return b(this,P,t,o);case"base64":return I(this,P,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,P,t,o);default:if(x)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),x=!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 o=this.length;P=~~P,t=t===void 0?o:~~t,P<0?(P+=o)<0&&(P=0):P>o&&(P=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(v*=256);)C+=this[P+--t]*v;return C},i.prototype.readUInt8=function(P,t){return t||Z(P,1,this.length),this[P]},i.prototype.readUInt16LE=function(P,t){return t||Z(P,2,this.length),this[P]|this[P+1]<<8},i.prototype.readUInt16BE=function(P,t){return t||Z(P,2,this.length),this[P]<<8|this[P+1]},i.prototype.readUInt32LE=function(P,t){return t||Z(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||Z(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},i.prototype.readIntLE=function(P,t,o){P|=0,t|=0,o||Z(P,t,this.length);for(var C=this[P],v=1,x=0;++x=v&&(C-=Math.pow(2,8*t)),C},i.prototype.readIntBE=function(P,t,o){P|=0,t|=0,o||Z(P,t,this.length);for(var C=t,v=1,x=this[P+--C];C>0&&(v*=256);)x+=this[P+--C]*v;return v*=128,x>=v&&(x-=Math.pow(2,8*t)),x},i.prototype.readInt8=function(P,t){return t||Z(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},i.prototype.readInt16LE=function(P,t){t||Z(P,2,this.length);var o=this[P]|this[P+1]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt16BE=function(P,t){t||Z(P,2,this.length);var o=this[P+1]|this[P]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt32LE=function(P,t){return t||Z(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||Z(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||Z(P,4,this.length),B.read(this,P,!0,23,4)},i.prototype.readFloatBE=function(P,t){return t||Z(P,4,this.length),B.read(this,P,!1,23,4)},i.prototype.readDoubleLE=function(P,t){return t||Z(P,8,this.length),B.read(this,P,!0,52,8)},i.prototype.readDoubleBE=function(P,t){return t||Z(P,8,this.length),B.read(this,P,!1,52,8)},i.prototype.writeUIntLE=function(P,t,o,C){(P=+P,t|=0,o|=0,!C)&&$(this,P,t,o,Math.pow(2,8*o)-1,0);var v=1,x=0;for(this[t]=255&P;++x=0&&(x*=256);)this[t+v]=P/x&255;return t+o},i.prototype.writeUInt8=function(P,t,o){return P=+P,t|=0,o||$(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,o){return P=+P,t|=0,o||$(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):q(this,P,t,!0),t+2},i.prototype.writeUInt16BE=function(P,t,o){return P=+P,t|=0,o||$(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):q(this,P,t,!1),t+2},i.prototype.writeUInt32LE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!0),t+4},i.prototype.writeUInt32BE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!1),t+4},i.prototype.writeIntLE=function(P,t,o,C){if(P=+P,t|=0,!C){var v=Math.pow(2,8*o-1);$(this,P,t,o,v-1,-v)}var x=0,X=1,V=0;for(this[t]=255&P;++x>0)-V&255;return t+o},i.prototype.writeIntBE=function(P,t,o,C){if(P=+P,t|=0,!C){var v=Math.pow(2,8*o-1);$(this,P,t,o,v-1,-v)}var x=o-1,X=1,V=0;for(this[t+x]=255&P;--x>=0&&(X*=256);)P<0&&V===0&&this[t+x+1]!==0&&(V=1),this[t+x]=(P/X>>0)-V&255;return t+o},i.prototype.writeInt8=function(P,t,o){return P=+P,t|=0,o||$(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,o){return P=+P,t|=0,o||$(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):q(this,P,t,!0),t+2},i.prototype.writeInt16BE=function(P,t,o){return P=+P,t|=0,o||$(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):q(this,P,t,!1),t+2},i.prototype.writeInt32LE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!0),t+4},i.prototype.writeInt32BE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!1),t+4},i.prototype.writeFloatLE=function(P,t,o){return F(this,P,t,!0,o)},i.prototype.writeFloatBE=function(P,t,o){return F(this,P,t,!1,o)},i.prototype.writeDoubleLE=function(P,t,o){return M(this,P,t,!0,o)},i.prototype.writeDoubleBE=function(P,t,o){return M(this,P,t,!1,o)},i.prototype.copy=function(P,t,o,C){if(o||(o=0),C||C===0||(C=this.length),t>=P.length&&(t=P.length),t||(t=0),C>0&&C=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=0;--v)P[v+t]=this[v+o];else if(x<1e3||!i.TYPED_ARRAY_SUPPORT)for(v=0;v>>=0,o=o===void 0?this.length:o>>>0,P||(P=0);var x;if(typeof P=="number")for(x=t;x0)throw new Error("Invalid string. Length must be a multiple of 4");return l[S-2]==="="?2:l[S-1]==="="?1:0}function m(l){return 3*l.length/4-T(l)}function _(l){var S,E,f,A,g,h=l.length;A=T(l),g=new a(3*h/4-A),E=A>0?h-4:h;var w=0;for(S=0;S>16&255,g[w++]=f>>8&255,g[w++]=255&f;return A===2?(f=e[l.charCodeAt(S)]<<2|e[l.charCodeAt(S+1)]>>4,g[w++]=255&f):A===1&&(f=e[l.charCodeAt(S)]<<10|e[l.charCodeAt(S+1)]<<4|e[l.charCodeAt(S+2)]>>2,g[w++]=f>>8&255,g[w++]=255&f),g}function i(l){return s[l>>18&63]+s[l>>12&63]+s[l>>6&63]+s[63&l]}function u(l,S,E){for(var f,A=[],g=S;gw?w:h+16383));return f===1?(S=l[E-1],A+=s[S>>2],A+=s[S<<4&63],A+="=="):f===2&&(S=(l[E-2]<<8)+l[E-1],A+=s[S>>10],A+=s[S>>4&63],A+=s[S<<2&63],A+="="),g.push(A),g.join("")}n.byteLength=m,n.toByteArray=_,n.fromByteArray=d;for(var s=[],e=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,p=r.length;c>1,r=-7,c=m?i-1:0,p=m?-1:1,l=k[T+c];for(c+=p,u=l&(1<<-r)-1,l>>=-r,r+=s;r>0;u=256*u+k[T+c],c+=p,r-=8);for(d=u&(1<<-r)-1,u>>=-r,r+=_;r>0;d=256*d+k[T+c],c+=p,r-=8);if(u===0)u=1-a;else{if(u===e)return d?NaN:1/0*(l?-1:1);d+=Math.pow(2,_),u-=a}return(l?-1:1)*d*Math.pow(2,u-_)},n.write=function(k,T,m,_,i,u){var d,s,e,a=8*u-i-1,r=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=_?0:u-1,S=_?1:-1,E=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(s=isNaN(T)?1:0,d=r):(d=Math.floor(Math.log(T)/Math.LN2),T*(e=Math.pow(2,-d))<1&&(d--,e*=2),T+=d+c>=1?p/e:p*Math.pow(2,1-c),T*e>=2&&(d++,e/=2),d+c>=r?(s=0,d=r):d+c>=1?(s=(T*e-1)*Math.pow(2,i),d+=c):(s=T*Math.pow(2,c-1)*Math.pow(2,i),d=0));i>=8;k[m+l]=255&s,l+=S,s/=256,i-=8);for(d=d<0;k[m+l]=255&d,l+=S,d/=256,a-=8);k[m+l-S]|=128*E}},function(_e,n){var k={}.toString;_e.exports=Array.isArray||function(T){return k.call(T)=="[object Array]"}},function(_e,n,k){"use strict";function T(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>>31}var w=(l<<5|l>>>27)+A+s[g];w+=g<20?1518500249+(S&E|~S&f):g<40?1859775393+(S^E^f):g<60?(S&E|S&f|E&f)-1894007588:(S^E^f)-899497514,A=f,f=E,E=S<<30|S>>>2,S=l,l=w}p[0]=p[0]+l|0,p[1]=p[1]+S|0,p[2]=p[2]+E|0,p[3]=p[3]+f|0,p[4]=p[4]+A|0},_doFinalize:function(){var r=this._data,c=r.words,p=8*this._nDataBytes,l=8*r.sigBytes;return c[l>>>5]|=128<<24-l%32,c[14+(l+64>>>9<<4)]=Math.floor(p/4294967296),c[15+(l+64>>>9<<4)]=p,r.sigBytes=4*c.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)}(),T.SHA1})},function(_e,n,k){!function(T,m){_e.exports=n=m(k(0))}(0,function(T){!function(){var m=T,_=m.lib,i=_.Base,u=m.enc,d=u.Utf8,s=m.algo;s.HMAC=i.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=d.parse(r));var c=a.blockSize,p=4*c;r.sigBytes>p&&(r=a.finalize(r)),r.clamp();for(var l=this._oKey=r.clone(),S=this._iKey=r.clone(),E=l.words,f=S.words,A=0;A>>6-p%4*2;r[c>>>2]|=(l|S)<<24-c%4*8,c++}return u.create(r,c)}var _=T,i=_.lib,u=i.WordArray,d=_.enc;d.Base64={stringify:function(e){var a=e.words,r=e.sigBytes,c=this._map;e.clamp();for(var p=[],l=0;l>>2]>>>24-l%4*8&255,E=a[l+1>>>2]>>>24-(l+1)%4*8&255,f=a[l+2>>>2]>>>24-(l+2)%4*8&255,A=S<<16|E<<8|f,g=0;g<4&&l+.75*g>>6*(3-g)&63));var h=c.charAt(64);if(h)for(;p.length%4;)p.push(h);return p.join("")},parse:function(e){var a=e.length,r=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var p=0;p0&&($=Z.UploadProgress.UploadProgressList[0],q=$.ClientId),a.default.setClientId(q),b&&b($)},function(Z){Z&&(I(Z),console.log(Z))})}}]),w}();n.default=h},function(_e,n,k){"use strict";function T(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 a=0;aO*1024*1024){i.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(O,"M")),pe();return}if((Re=ne.videoList)===null||Re===void 0?void 0:Re.find(function(Ye){return Ye.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)},me=function(Ce,ke){m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:l.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ke?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){pe(),se({type:"removeVideo",payload:{name:Ce}})}})},ge=function(Ce){var ke,ze='{"Vod":{}}';if(ie(!0),W.current){W.current.addFile(Ce,null,null,null,ze);return}Object(h.a)((ke=D.userInfo)===null||ke===void 0?void 0:ke.login,{create:!W,addFileSuccess:function(Fe){se({type:"addVideo",payload:{uploadInfo:Fe}})},onUploadProgress:function(Fe,Ge,Ye){var _t=Math.ceil(Ye*100);se({type:"updateProgress",payload:{uploadInfo:Fe,progressPercent:_t}}),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){ie(!1)},onUploadSucceed:function(Fe){ie(!1)},onUploadError:function(Fe){ie(!1)},gotUploader:function(Fe){Fe.addFile(Ce,null,null,null,ze),W.current=Fe}})},Se=function(){var Ie=Object(k.a)(n.a.mark(function Ce(){var ke,ze,Re,Fe;return n.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,H.validateFields();case 2:if(!(!o&&!((ke=ne.videoList)===null||ke===void 0?void 0:ke.length)||o&&!ee)){Ye.next=5;break}return i.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Ye.abrupt("return");case 5:return V(!0),Re=o?{link:ee}:{video_id:(ze=ne.videoList)===null||ze===void 0?void 0:ze[0].videoId},Ye.next=9,L(Object(e.a)(Object(e.a)({},Re),{name:H.getFieldValue("name"),description:H.getFieldValue("description")}));case 9:Fe=Ye.sent,V(!1),Fe.id&&Pe();case 12:case"end":return Ye.stop()}},Ce)}));return function(){return Ie.apply(this,arguments)}}(),Pe=function(){H.resetFields(),se({type:"removeAll"}),ce(null),C(null)},ue=function(){$(),Pe()},Te=function(){var Ce,ke,ze,Re,Fe,Ge,Ye,_t,xt,bt,St,Rt;return l.a.createElement(l.a.Fragment,null,!o&&!!((Ce=ne.videoList)===null||Ce===void 0?void 0:Ce.length)&&l.a.createElement("div",{className:g.a.fileProgress},((ke=ne.videoList)===null||ke===void 0||((ze=ke[0])===null||ze===void 0)?void 0:ze.loaded)==100?l.a.createElement("div",{className:"".concat(g.a.videoName," font14")},(Re=ne.videoList)===null||Re===void 0||((Fe=Re[0])===null||Fe===void 0)?void 0:Fe.name):l.a.createElement(Ke.a,{style:{width:"80%"},percent:(Ge=ne.videoList)===null||Ge===void 0||((Ye=Ge[0])===null||Ye===void 0)?void 0:Ye.loaded,status:((_t=ne.videoList)===null||_t===void 0||((xt=_t[0])===null||xt===void 0)?void 0:xt.loaded)==100?"normal":"active"}),l.a.createElement("div",{className:g.a.fileCancel,onClick:function(){var Ee,We,he,at;return me((Ee=ne.videoList)===null||Ee===void 0||((We=Ee[0])===null||We===void 0)?void 0:We.name,((he=ne.videoList)===null||he===void 0||((at=he[0])===null||at===void 0)?void 0:at.loaded)==100)}},((bt=ne.videoList)===null||bt===void 0||((St=bt[0])===null||St===void 0)?void 0:St.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Rt=ne.videoList)===null||Rt===void 0?void 0:Rt.length)&&l.a.createElement("div",{className:g.a.uploadWrap},l.a.createElement("label",{htmlFor:"fileUpload",className:g.a.upload},l.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),l.a.createElement("label",{className:"".concat(g.a.upload," ").concat(g.a.uploadLink),onClick:function(){return C(!0)}},l.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),o&&l.a.createElement(c.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ee,onChange:function(Ee){return ce(Ee.target.value)}}))};return l.a.createElement(m.a,{centered:!0,maskClosable:!1,title:z?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:g.a.modal,visible:te,confirmLoading:X,onOk:Se,onCancel:ue},l.a.createElement(d.a,{form:H},l.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:le,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},l.a.createElement(c.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:g.a.contentItem},Te()),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},l.a.createElement(w,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),l.a.createElement("div",{className:"c-grey-999"},l.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),l.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",l.a.createElement(E.Link,{to:"/users/".concat((U=D.userInfo)===null||U===void 0?void 0:U.login,"/videos/protocol"),target:"_blank",className:g.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),l.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),l.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),l.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"))))};Ne.a=Object(f.a)(function(I){var y=I.user,U=I.loading,D=I.globalSetting;return{user:y,globalSetting:D,loading:U}})(b)},wzkS:function(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return k}),oe.d(Ne,"b",function(){return T}),oe.d(Ne,"d",function(){return m}),oe.d(Ne,"a",function(){return i}),oe.d(Ne,"e",function(){return u});var je=oe("WmNS"),Ke=oe.n(je),_e=oe("9og8"),n=oe("ErOA");function k(d){return Object(n.c)("libraries/".concat(d,".json"))}function T(){return Object(n.c)("library_tags.json")}function m(d){return _.apply(this,arguments)}function _(){return _=Object(_e.a)(Ke.a.mark(function d(s){var e;return Ke.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)})),_.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(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return c}),oe.d(Ne,"a",function(){return p});var je=oe("DZo9"),Ke=oe("8z0m"),_e=oe("+L6B"),n=oe("2/Rp"),k=oe("WmNS"),T=oe.n(k),m=oe("9og8"),_=oe("k1fw"),i=oe("oBTY"),u=oe("miYZ"),d=oe("tsqr"),s=oe("q1tI"),e=oe.n(s),a=oe("m3rI"),r=oe("wzkS"),c="\u3000\u3000";function p(l){var S=["Bytes","KB","MB","GB","TB"];if(l==0)return"0 Byte";var E=parseInt(""+Math.floor(Math.log(l)/Math.log(1024)),10);return(l/Math.pow(1024,E)).toFixed(1)+" "+S[E]}Ne.b=function(l){var S=l.value,E=S===void 0?[]:S,f=l.onChange,A=l.className,g=l.maxSize,h=g===void 0?150:g,w=l.title,O=w===void 0?"\u6587\u4EF6\u4E0A\u4F20":w,R=l.accept,b=R===void 0?null:R,I={multiple:!1,fileList:E,accept:b,withCredentials:!0,beforeUpload:function(D){var N=D.size/1024/1024;return N0?"\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},O),e.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",h,"M) ")))}}}]); +*/var W=k(21),B=k(22),re=k(23);n.Buffer=i,n.SlowBuffer=S,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=T.TYPED_ARRAY_SUPPORT!==void 0?T.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,o){return u(null,P,t,o)},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,o){return s(null,P,t,o)},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 o=P.length,C=t.length,v=0,x=Math.min(o,C);v0&&(P=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(P+=" ... ")),""},i.prototype.compare=function(P,t,o,C,v){if(!i.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),o===void 0&&(o=P?P.length:0),C===void 0&&(C=0),v===void 0&&(v=this.length),t<0||o>P.length||C<0||v>this.length)throw new RangeError("out of range index");if(C>=v&&t>=o)return 0;if(C>=v)return-1;if(t>=o)return 1;if(t>>>=0,o>>>=0,C>>>=0,v>>>=0,this===P)return 0;for(var x=v-C,X=o-t,V=Math.min(x,X),pe=this.slice(C,v),le=P.slice(t,o),me=0;mev)&&(o=v),P.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var x=!1;;)switch(C){case"hex":return w(this,P,t,o);case"utf8":case"utf-8":return O(this,P,t,o);case"ascii":return R(this,P,t,o);case"latin1":case"binary":return b(this,P,t,o);case"base64":return I(this,P,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,P,t,o);default:if(x)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),x=!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 o=this.length;P=~~P,t=t===void 0?o:~~t,P<0?(P+=o)<0&&(P=0):P>o&&(P=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(v*=256);)C+=this[P+--t]*v;return C},i.prototype.readUInt8=function(P,t){return t||Z(P,1,this.length),this[P]},i.prototype.readUInt16LE=function(P,t){return t||Z(P,2,this.length),this[P]|this[P+1]<<8},i.prototype.readUInt16BE=function(P,t){return t||Z(P,2,this.length),this[P]<<8|this[P+1]},i.prototype.readUInt32LE=function(P,t){return t||Z(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||Z(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},i.prototype.readIntLE=function(P,t,o){P|=0,t|=0,o||Z(P,t,this.length);for(var C=this[P],v=1,x=0;++x=v&&(C-=Math.pow(2,8*t)),C},i.prototype.readIntBE=function(P,t,o){P|=0,t|=0,o||Z(P,t,this.length);for(var C=t,v=1,x=this[P+--C];C>0&&(v*=256);)x+=this[P+--C]*v;return v*=128,x>=v&&(x-=Math.pow(2,8*t)),x},i.prototype.readInt8=function(P,t){return t||Z(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},i.prototype.readInt16LE=function(P,t){t||Z(P,2,this.length);var o=this[P]|this[P+1]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt16BE=function(P,t){t||Z(P,2,this.length);var o=this[P+1]|this[P]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt32LE=function(P,t){return t||Z(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||Z(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||Z(P,4,this.length),B.read(this,P,!0,23,4)},i.prototype.readFloatBE=function(P,t){return t||Z(P,4,this.length),B.read(this,P,!1,23,4)},i.prototype.readDoubleLE=function(P,t){return t||Z(P,8,this.length),B.read(this,P,!0,52,8)},i.prototype.readDoubleBE=function(P,t){return t||Z(P,8,this.length),B.read(this,P,!1,52,8)},i.prototype.writeUIntLE=function(P,t,o,C){(P=+P,t|=0,o|=0,!C)&&$(this,P,t,o,Math.pow(2,8*o)-1,0);var v=1,x=0;for(this[t]=255&P;++x=0&&(x*=256);)this[t+v]=P/x&255;return t+o},i.prototype.writeUInt8=function(P,t,o){return P=+P,t|=0,o||$(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,o){return P=+P,t|=0,o||$(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):q(this,P,t,!0),t+2},i.prototype.writeUInt16BE=function(P,t,o){return P=+P,t|=0,o||$(this,P,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):q(this,P,t,!1),t+2},i.prototype.writeUInt32LE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!0),t+4},i.prototype.writeUInt32BE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!1),t+4},i.prototype.writeIntLE=function(P,t,o,C){if(P=+P,t|=0,!C){var v=Math.pow(2,8*o-1);$(this,P,t,o,v-1,-v)}var x=0,X=1,V=0;for(this[t]=255&P;++x>0)-V&255;return t+o},i.prototype.writeIntBE=function(P,t,o,C){if(P=+P,t|=0,!C){var v=Math.pow(2,8*o-1);$(this,P,t,o,v-1,-v)}var x=o-1,X=1,V=0;for(this[t+x]=255&P;--x>=0&&(X*=256);)P<0&&V===0&&this[t+x+1]!==0&&(V=1),this[t+x]=(P/X>>0)-V&255;return t+o},i.prototype.writeInt8=function(P,t,o){return P=+P,t|=0,o||$(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,o){return P=+P,t|=0,o||$(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&P,this[t+1]=P>>>8):q(this,P,t,!0),t+2},i.prototype.writeInt16BE=function(P,t,o){return P=+P,t|=0,o||$(this,P,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=P>>>8,this[t+1]=255&P):q(this,P,t,!1),t+2},i.prototype.writeInt32LE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!0),t+4},i.prototype.writeInt32BE=function(P,t,o){return P=+P,t|=0,o||$(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):L(this,P,t,!1),t+4},i.prototype.writeFloatLE=function(P,t,o){return F(this,P,t,!0,o)},i.prototype.writeFloatBE=function(P,t,o){return F(this,P,t,!1,o)},i.prototype.writeDoubleLE=function(P,t,o){return M(this,P,t,!0,o)},i.prototype.writeDoubleBE=function(P,t,o){return M(this,P,t,!1,o)},i.prototype.copy=function(P,t,o,C){if(o||(o=0),C||C===0||(C=this.length),t>=P.length&&(t=P.length),t||(t=0),C>0&&C=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=0;--v)P[v+t]=this[v+o];else if(x<1e3||!i.TYPED_ARRAY_SUPPORT)for(v=0;v>>=0,o=o===void 0?this.length:o>>>0,P||(P=0);var x;if(typeof P=="number")for(x=t;x0)throw new Error("Invalid string. Length must be a multiple of 4");return l[S-2]==="="?2:l[S-1]==="="?1:0}function m(l){return 3*l.length/4-T(l)}function _(l){var S,E,f,A,g,h=l.length;A=T(l),g=new a(3*h/4-A),E=A>0?h-4:h;var w=0;for(S=0;S>16&255,g[w++]=f>>8&255,g[w++]=255&f;return A===2?(f=e[l.charCodeAt(S)]<<2|e[l.charCodeAt(S+1)]>>4,g[w++]=255&f):A===1&&(f=e[l.charCodeAt(S)]<<10|e[l.charCodeAt(S+1)]<<4|e[l.charCodeAt(S+2)]>>2,g[w++]=f>>8&255,g[w++]=255&f),g}function i(l){return s[l>>18&63]+s[l>>12&63]+s[l>>6&63]+s[63&l]}function u(l,S,E){for(var f,A=[],g=S;gw?w:h+16383));return f===1?(S=l[E-1],A+=s[S>>2],A+=s[S<<4&63],A+="=="):f===2&&(S=(l[E-2]<<8)+l[E-1],A+=s[S>>10],A+=s[S>>4&63],A+=s[S<<2&63],A+="="),g.push(A),g.join("")}n.byteLength=m,n.toByteArray=_,n.fromByteArray=d;for(var s=[],e=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,p=r.length;c>1,r=-7,c=m?i-1:0,p=m?-1:1,l=k[T+c];for(c+=p,u=l&(1<<-r)-1,l>>=-r,r+=s;r>0;u=256*u+k[T+c],c+=p,r-=8);for(d=u&(1<<-r)-1,u>>=-r,r+=_;r>0;d=256*d+k[T+c],c+=p,r-=8);if(u===0)u=1-a;else{if(u===e)return d?NaN:1/0*(l?-1:1);d+=Math.pow(2,_),u-=a}return(l?-1:1)*d*Math.pow(2,u-_)},n.write=function(k,T,m,_,i,u){var d,s,e,a=8*u-i-1,r=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=_?0:u-1,S=_?1:-1,E=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(s=isNaN(T)?1:0,d=r):(d=Math.floor(Math.log(T)/Math.LN2),T*(e=Math.pow(2,-d))<1&&(d--,e*=2),T+=d+c>=1?p/e:p*Math.pow(2,1-c),T*e>=2&&(d++,e/=2),d+c>=r?(s=0,d=r):d+c>=1?(s=(T*e-1)*Math.pow(2,i),d+=c):(s=T*Math.pow(2,c-1)*Math.pow(2,i),d=0));i>=8;k[m+l]=255&s,l+=S,s/=256,i-=8);for(d=d<0;k[m+l]=255&d,l+=S,d/=256,a-=8);k[m+l-S]|=128*E}},function(_e,n){var k={}.toString;_e.exports=Array.isArray||function(T){return k.call(T)=="[object Array]"}},function(_e,n,k){"use strict";function T(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>>31}var w=(l<<5|l>>>27)+A+s[g];w+=g<20?1518500249+(S&E|~S&f):g<40?1859775393+(S^E^f):g<60?(S&E|S&f|E&f)-1894007588:(S^E^f)-899497514,A=f,f=E,E=S<<30|S>>>2,S=l,l=w}p[0]=p[0]+l|0,p[1]=p[1]+S|0,p[2]=p[2]+E|0,p[3]=p[3]+f|0,p[4]=p[4]+A|0},_doFinalize:function(){var r=this._data,c=r.words,p=8*this._nDataBytes,l=8*r.sigBytes;return c[l>>>5]|=128<<24-l%32,c[14+(l+64>>>9<<4)]=Math.floor(p/4294967296),c[15+(l+64>>>9<<4)]=p,r.sigBytes=4*c.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)}(),T.SHA1})},function(_e,n,k){!function(T,m){_e.exports=n=m(k(0))}(0,function(T){!function(){var m=T,_=m.lib,i=_.Base,u=m.enc,d=u.Utf8,s=m.algo;s.HMAC=i.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=d.parse(r));var c=a.blockSize,p=4*c;r.sigBytes>p&&(r=a.finalize(r)),r.clamp();for(var l=this._oKey=r.clone(),S=this._iKey=r.clone(),E=l.words,f=S.words,A=0;A>>6-p%4*2;r[c>>>2]|=(l|S)<<24-c%4*8,c++}return u.create(r,c)}var _=T,i=_.lib,u=i.WordArray,d=_.enc;d.Base64={stringify:function(e){var a=e.words,r=e.sigBytes,c=this._map;e.clamp();for(var p=[],l=0;l>>2]>>>24-l%4*8&255,E=a[l+1>>>2]>>>24-(l+1)%4*8&255,f=a[l+2>>>2]>>>24-(l+2)%4*8&255,A=S<<16|E<<8|f,g=0;g<4&&l+.75*g>>6*(3-g)&63));var h=c.charAt(64);if(h)for(;p.length%4;)p.push(h);return p.join("")},parse:function(e){var a=e.length,r=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var p=0;p0&&($=Z.UploadProgress.UploadProgressList[0],q=$.ClientId),a.default.setClientId(q),b&&b($)},function(Z){Z&&(I(Z),console.log(Z))})}}]),w}();n.default=h},function(_e,n,k){"use strict";function T(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 a=0;aO*1024*1024){i.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(O,"M")),pe();return}if((Re=ne.videoList)===null||Re===void 0?void 0:Re.find(function(Ye){return Ye.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)},me=function(Ce,ke){m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:l.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ke?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){pe(),se({type:"removeVideo",payload:{name:Ce}})}})},ge=function(Ce){var ke,ze='{"Vod":{}}';if(ie(!0),W.current){W.current.addFile(Ce,null,null,null,ze);return}Object(h.a)((ke=j.userInfo)===null||ke===void 0?void 0:ke.login,{create:!W,addFileSuccess:function(Fe){se({type:"addVideo",payload:{uploadInfo:Fe}})},onUploadProgress:function(Fe,Ge,Ye){var vt=Math.ceil(Ye*100);se({type:"updateProgress",payload:{uploadInfo:Fe,progressPercent:vt}}),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){ie(!1)},onUploadSucceed:function(Fe){ie(!1)},onUploadError:function(Fe){ie(!1)},gotUploader:function(Fe){Fe.addFile(Ce,null,null,null,ze),W.current=Fe}})},Te=function(){var Ie=Object(k.a)(n.a.mark(function Ce(){var ke,ze,Re,Fe;return n.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,H.validateFields();case 2:if(!(!o&&!((ke=ne.videoList)===null||ke===void 0?void 0:ke.length)||o&&!ee)){Ye.next=5;break}return i.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Ye.abrupt("return");case 5:return V(!0),Re=o?{link:ee}:{video_id:(ze=ne.videoList)===null||ze===void 0?void 0:ze[0].videoId},Ye.next=9,L(Object(e.a)(Object(e.a)({},Re),{name:H.getFieldValue("name"),description:H.getFieldValue("description")}));case 9:Fe=Ye.sent,V(!1),Fe.id&&Pe();case 12:case"end":return Ye.stop()}},Ce)}));return function(){return Ie.apply(this,arguments)}}(),Pe=function(){H.resetFields(),se({type:"removeAll"}),ce(null),C(null)},ue=function(){$(),Pe()},xe=function(){var Ce,ke,ze,Re,Fe,Ge,Ye,vt,xt,bt,St,Rt;return l.a.createElement(l.a.Fragment,null,!o&&!!((Ce=ne.videoList)===null||Ce===void 0?void 0:Ce.length)&&l.a.createElement("div",{className:g.a.fileProgress},((ke=ne.videoList)===null||ke===void 0||((ze=ke[0])===null||ze===void 0)?void 0:ze.loaded)==100?l.a.createElement("div",{className:"".concat(g.a.videoName," font14")},(Re=ne.videoList)===null||Re===void 0||((Fe=Re[0])===null||Fe===void 0)?void 0:Fe.name):l.a.createElement(Ke.a,{style:{width:"80%"},percent:(Ge=ne.videoList)===null||Ge===void 0||((Ye=Ge[0])===null||Ye===void 0)?void 0:Ye.loaded,status:((vt=ne.videoList)===null||vt===void 0||((xt=vt[0])===null||xt===void 0)?void 0:xt.loaded)==100?"normal":"active"}),l.a.createElement("div",{className:g.a.fileCancel,onClick:function(){var Ee,We,he,at;return me((Ee=ne.videoList)===null||Ee===void 0||((We=Ee[0])===null||We===void 0)?void 0:We.name,((he=ne.videoList)===null||he===void 0||((at=he[0])===null||at===void 0)?void 0:at.loaded)==100)}},((bt=ne.videoList)===null||bt===void 0||((St=bt[0])===null||St===void 0)?void 0:St.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Rt=ne.videoList)===null||Rt===void 0?void 0:Rt.length)&&l.a.createElement("div",{className:g.a.uploadWrap},l.a.createElement("label",{htmlFor:"fileUpload",className:g.a.upload},l.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),l.a.createElement("label",{className:"".concat(g.a.upload," ").concat(g.a.uploadLink),onClick:function(){return C(!0)}},l.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),o&&l.a.createElement(c.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ee,onChange:function(Ee){return ce(Ee.target.value)}}))};return l.a.createElement(m.a,{centered:!0,maskClosable:!1,title:z?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:g.a.modal,visible:te,confirmLoading:X,onOk:Te,onCancel:ue},l.a.createElement(d.a,{form:H},l.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:le,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},l.a.createElement(c.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:g.a.contentItem},xe()),l.a.createElement(d.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},l.a.createElement(w,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),l.a.createElement("div",{className:"c-grey-999"},l.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),l.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",l.a.createElement(E.Link,{to:"/users/".concat((U=j.userInfo)===null||U===void 0?void 0:U.login,"/videos/protocol"),target:"_blank",className:g.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),l.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),l.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),l.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"))))};Ne.a=Object(f.a)(function(I){var y=I.user,U=I.loading,j=I.globalSetting;return{user:y,globalSetting:j,loading:U}})(b)},wzkS:function(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return k}),oe.d(Ne,"b",function(){return T}),oe.d(Ne,"d",function(){return m}),oe.d(Ne,"a",function(){return i}),oe.d(Ne,"e",function(){return u});var De=oe("WmNS"),Ke=oe.n(De),_e=oe("9og8"),n=oe("ErOA");function k(d){return Object(n.c)("libraries/".concat(d,".json"))}function T(){return Object(n.c)("library_tags.json")}function m(d){return _.apply(this,arguments)}function _(){return _=Object(_e.a)(Ke.a.mark(function d(s){var e;return Ke.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)})),_.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(qe,Ne,oe){"use strict";oe.d(Ne,"c",function(){return c}),oe.d(Ne,"a",function(){return p});var De=oe("DZo9"),Ke=oe("8z0m"),_e=oe("+L6B"),n=oe("2/Rp"),k=oe("WmNS"),T=oe.n(k),m=oe("9og8"),_=oe("k1fw"),i=oe("oBTY"),u=oe("miYZ"),d=oe("tsqr"),s=oe("q1tI"),e=oe.n(s),a=oe("m3rI"),r=oe("wzkS"),c="\u3000\u3000";function p(l){var S=["Bytes","KB","MB","GB","TB"];if(l==0)return"0 Byte";var E=parseInt(""+Math.floor(Math.log(l)/Math.log(1024)),10);return(l/Math.pow(1024,E)).toFixed(1)+" "+S[E]}Ne.b=function(l){var S=l.value,E=S===void 0?[]:S,f=l.onChange,A=l.className,g=l.maxSize,h=g===void 0?150:g,w=l.title,O=w===void 0?"\u6587\u4EF6\u4E0A\u4F20":w,R=l.accept,b=R===void 0?null:R,I={multiple:!1,fileList:E,accept:b,withCredentials:!0,beforeUpload:function(j){var N=j.size/1024/1024;return N0?"\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},O),e.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",h,"M) ")))}}}]);