(window.webpackJsonp=window.webpackJsonp||[]).push([[192,10,14],{"96GE":function(Le,Ie,se){"use strict";se.r(Ie),se.d(Ie,"formatQuery",function(){return t});var we=se("T2oS"),je=se("W9HT"),de=se("k1fw"),n=se("PpiC"),O=se("q1tI"),b=se.n(O),h=se("Ty5D"),g=se("9kvl"),i=se("JqQi"),s=se.n(i),p=se("5Dmo"),u=se("3S7+"),e=se("+L6B"),o=se("2/Rp"),r=se("pC0b"),l=se("GzdX"),d=se("WmNS"),c=se.n(d),x=se("9og8"),E=se("tJVT"),f=se("nUhQ"),T=se.n(f),S=se("2qtc"),m=se("kLXV"),_=se("7Kak"),A=se("9yH6"),I=se("miYZ"),w=se("tsqr"),R=se("5NDa"),C=se("5rEg"),M=se("sWEp"),j=se.n(M),X=se("qdXH"),H=C.a.Search,q=function(y){var B,K=y.videoDetail,pe=y.globalSetting,ce=y.loading,he=y.dispatch,me=Object(n.a)(y,["videoDetail","globalSetting","loading","dispatch"]),ye=Object(h.m)(),ge=Object(h.l)(),ae=Object(O.useState)([]),_e=Object(E.a)(ae,2),Ee=_e[0],be=_e[1],ve=Object(O.useState)(""),xe=Object(E.a)(ve,2),Oe=xe[0],Se=xe[1],ke=Object(O.useState)(),Ce=Object(E.a)(ke,2),Ue=Ce[0],Re=Ce[1],Me=Object(O.useState)(!1),qe=Object(E.a)(Me,2),Ve=qe[0],He=qe[1],Te=Object(O.useState)(!1),Be=Object(E.a)(Te,2),Ge=Be[0],ze=Be[1];Object(O.useEffect)(function(){K.actionTabs.key==="Banner-SendToClass"&&Ke()},[K.actionTabs.key]);var Ke=function(){var Ae=Object(x.a)(c.a.mark(function Ne(){var Fe,Xe;return c.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(X.g)({});case 2:if(Xe=$e.sent,!(Xe==null||((Fe=Xe.courses)===null||Fe===void 0)?void 0:Fe.length)){$e.next=8;break}be((Xe==null?void 0:Xe.courses)||[]),ze(!0),$e.next=11;break;case 8:return Pe(),w.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),$e.abrupt("return");case 11:case"end":return $e.stop()}},Ne)}));return function(){return Ae.apply(this,arguments)}}(),We=function(Ne){be(Ee==null?void 0:Ee.map(function(Fe){return Object(de.a)(Object(de.a)({},Fe),{},{hide:!Fe.course_name.includes(Ne)})}))},De=function(){var Ae=Object(x.a)(c.a.mark(function Ne(){var Fe;return c.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ue){Ye.next=3;break}return He(!0),Ye.abrupt("return");case 3:return Ye.next=5,Object(X.m)({id:ye.videoId,course_id:Ue});case 5:Fe=Ye.sent,(Fe==null?void 0:Fe.status)===0&&(w.b.success(Fe.message),Pe(),g.c===null||g.c===void 0||g.c.replace("/classrooms/".concat(Ue,"/shixun_homework")));case 7:case"end":return Ye.stop()}},Ne)}));return function(){return Ae.apply(this,arguments)}}(),Pe=function(){Se(""),Re(null),He(!1),he({type:"videoDetail/setActionTabs",payload:{}}),ze(!1)};return b.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:Ge,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:De,onCancel:Pe},b.a.createElement("div",{className:j.a.wrap},b.a.createElement("div",{className:"mb10"},b.a.createElement(H,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Oe,onChange:function(Ne){return Se(Ne.target.value)},onSearch:function(Ne){Se(Ne),We(Ne)}})),b.a.createElement("div",{className:j.a.radioWrap},b.a.createElement(A.a.Group,{value:Ue,onChange:function(Ne){Re(Ne.target.value),He(!1)}},Ee==null||((B=Ee.filter(function(Ae){return!(Ae==null?void 0:Ae.hide)}))===null||B===void 0)?void 0:B.map(function(Ae,Ne){return b.a.createElement(A.a,{className:j.a.radio,value:Ae.course_id,key:Ne},Ae.course_name)}))),Ve&&b.a.createElement("div",{className:j.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),b.a.createElement("div",{className:j.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},Q=Object(g.a)(function(v){var y=v.videoDetail,B=v.loading,K=v.globalSetting;return{videoDetail:y,globalSetting:K,loading:B.models.index}})(q),U=se("sBCT"),ee=se("1vsH"),$=se("NLgs"),W=se("Awhp"),L=se("KrTs"),D=se("O3gP"),N=se("lrIw"),F=se("oBTY"),V=se("eoI0"),Y=se.n(V),oe=se("HBuW"),te=function(y){var B,K,pe=y.videoDetail,ce=y.dispatch,he=ce===void 0?function(){}:ce,me=y.visible,ye=y.onClose,ge=ye===void 0?function(){}:ye,ae=Object(h.m)(),_e=Object(h.l)(),Ee=Object(O.useState)(0),be=Object(E.a)(Ee,2),ve=be[0],xe=be[1],Oe=Object(O.useState)(""),Se=Object(E.a)(Oe,2),ke=Se[0],Ce=Se[1],Ue=Object(O.useState)([]),Re=Object(E.a)(Ue,2),Me=Re[0],qe=Re[1],Ve=Object(O.useState)([]),He=Object(E.a)(Ve,2),Te=He[0],Be=He[1];Object(O.useEffect)(function(){var De,Pe,Ae=((De=pe.detail)===null||De===void 0||((Pe=De.video_item)===null||Pe===void 0)?void 0:Pe.schools)||[];xe((Ae==null?void 0:Ae.length)?1:0),Be(Ae)},[(B=pe.detail)===null||B===void 0||((K=B.video_item)===null||K===void 0)?void 0:K.schools]);var Ge=function(){var De=Object(x.a)(c.a.mark(function Pe(Ae){var Ne;return c.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Object(oe.G)({q:Ae});case 2:Ne=Xe.sent,Ne&&qe(Ne.shools_name||[]);case 4:case"end":return Xe.stop()}},Pe)}));return function(Ae){return De.apply(this,arguments)}}(),ze=function(Pe){if(Te.includes(Pe)){w.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Ce(""),Be([].concat(Object(F.a)(Te),[Pe]))},Ke=function(){var De=Object(x.a)(c.a.mark(function Pe(){var Ae;return c.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(ve===1&&!(Te==null?void 0:Te.length))){Fe.next=2;break}return Fe.abrupt("return",w.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return Fe.next=4,Object(X.a)(Object(de.a)(Object(de.a)({},t(_e.query)),{},{id:ae.videoId,schools:ve===0?[]:Te}));case 4:Ae=Fe.sent,(Ae==null?void 0:Ae.status)===0&&(w.b.success("\u8BBE\u7F6E\u6210\u529F"),We());case 6:case"end":return Fe.stop()}},Pe)}));return function(){return De.apply(this,arguments)}}(),We=function(){ge(),he({type:"videoDetail/getVideoDetail",payload:Object(de.a)(Object(de.a)({},t(_e.query)),{},{id:ae.videoId})})};return b.a.createElement(m.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:Y.a.modal,visible:me,onOk:Ke,onCancel:We},b.a.createElement(b.a.Fragment,null,b.a.createElement(A.a.Group,{value:ve,onChange:function(Pe){return xe(Pe.target.value)}},b.a.createElement(A.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",b.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),b.a.createElement(A.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",b.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09"))),ve===1&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:"mt10"},b.a.createElement(N.a,{showSearch:!0,className:Y.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:ke,onChange:function(Pe){Ce(Pe),Ge(Pe)},onSelect:ze,options:Me==null?void 0:Me.map(function(De){return{value:De}})})),b.a.createElement("div",{className:"mt10"},Te==null?void 0:Te.map(function(De){return b.a.createElement(L.a,{count:b.a.createElement("span",{className:Y.a.delete,onClick:function(){return Be(Te.filter(function(Ae){return Ae!==De}))}},"x"),className:"mt10 mr20 current"},b.a.createElement(o.a,{type:"primary",ghost:!0},De))})))))},ue=te,fe=function(y){var B=y.user,K=y.videoDetail,pe=y.globalSetting,ce=y.loading,he=y.dispatch,me=Object(n.a)(y,["user","videoDetail","globalSetting","loading","dispatch"]),ye=Object(h.m)(),ge=Object(h.l)(),ae=Object(O.useState)(),_e=Object(E.a)(ae,2),Ee=_e[0],be=_e[1],ve=Object(O.useState)(),xe=Object(E.a)(ve,2),Oe=xe[0],Se=xe[1],ke=Object(O.useState)(!1),Ce=Object(E.a)(ke,2),Ue=Ce[0],Re=Ce[1],Me=function(){he({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},qe=function(){var Be=Object(x.a)(c.a.mark(function Ge(){var ze,Ke,We;return c.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(!(((ze=B.userInfo)===null||ze===void 0?void 0:ze.admin)||((Ke=B.userInfo)===null||Ke===void 0?void 0:Ke.is_teacher)&&Object($.b)())){Pe.next=6;break}return Pe.next=3,Object(X.f)(Object(de.a)({id:ye.videoId},t(ge.query)));case 3:We=Pe.sent,Se(We==null?void 0:We.video_item),be(!0);case 6:case"end":return Pe.stop()}},Ge)}));return function(){return Be.apply(this,arguments)}}(),Ve=function(){var Be=Object(x.a)(c.a.mark(function Ge(ze){var Ke,We,De;return c.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(X.l)(Object(de.a)(Object(de.a)({},ze),{},{id:ye.videoId,subject_id:ge==null||((Ke=ge.query)===null||Ke===void 0)?void 0:Ke.subject_id,course_id:ge==null||((We=ge.query)===null||We===void 0)?void 0:We.course_id}));case 2:return De=Ae.sent,(De==null?void 0:De.status)===0&&(be(!1),he({type:"videoDetail/getVideoDetail",payload:Object(de.a)({id:ye.videoId},t(ge.query))})),Ae.abrupt("return",De);case 5:case"end":return Ae.stop()}},Ge)}));return function(ze){return Be.apply(this,arguments)}}(),He=K.detail||{},Te=He.video_item;return b.a.createElement("aside",{className:T.a.banner},b.a.createElement("aside",{className:T.a.wrap},b.a.createElement("p",{className:T.a.title},Te==null?void 0:Te.name),b.a.createElement("div",{className:T.a.contentWrap},b.a.createElement("span",{className:"font14 c-white"},b.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),b.a.createElement("span",null,(Te==null?void 0:Te.study_video_items_count)||0),b.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),b.a.createElement(l.a,{allowHalf:!0,value:Object(ee.p)(Te==null?void 0:Te.star),disabled:!0,className:T.a.rating})),b.a.createElement("div",null,(Te==null?void 0:Te.can_edit)&&b.a.createElement(o.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:function(){return Re(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(Te==null?void 0:Te.can_edit)&&b.a.createElement(o.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:qe},"\u7F16\u8F91"),b.a.createElement(u.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},b.a.createElement(o.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:Me},"\u53D1\u9001\u81F3"))))),b.a.createElement(Q,null),b.a.createElement(U.a,{editData:Oe,visible:Ee,onCancel:function(){return be(!1)},onOk:Ve}),b.a.createElement(ue,{dispatch:he,videoDetail:K,visible:Ue,onClose:function(){return Re(!1)}}))},Z=Object(g.a)(function(v){var y=v.user,B=v.videoDetail,K=v.loading,pe=v.globalSetting;return{user:y,videoDetail:B,globalSetting:pe,loading:K}})(fe),J=se("J66h"),ie=se("hgre"),G=se("9Bee"),z=se("vZDz"),re=se.n(z),ne=se("9VGf"),le=function(y){var B=y.videoDetail,K=y.globalSetting,pe=y.loading,ce=y.dispatch,he=Object(n.a)(y,["videoDetail","globalSetting","loading","dispatch"]),me=Object(h.m)(),ye=Object(h.l)(),ge=Object(O.useRef)(),ae=Object(O.useRef)(),_e=Object(O.useRef)(),Ee=Object(O.useRef)(5),be=B.detail||{},ve=be.video_item;Object(ne.a)(Object(x.a)(c.a.mark(function Ue(){return c.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!ae.current){Me.next=4;break}return console.log("videoRef lastUpdatedTime: ",ge.current.getLastUpdatedTime()),Me.next=4,xe();case 4:case"end":return Me.stop()}},Ue)})),Ee.current*1e3);var xe=function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Me=Re?{is_f:1}:{};return Object(X.n)(Object(de.a)(Object(de.a)({},Me),{id:me.videoId,point:ge.current.getLastUpdatedTime(),total:ge.current.getDuration()}))},Oe=function(Re){return console.log("handlLogWatchHistory: ",Re),Re.ed==="1"&&(ae.current=!1,xe(!0)),!ae.current&&!Re.ed&&(ae.current=!0,Ee.current=ge.current.getDuration()<=5?1:5,xe()),ce({type:"userDetail/logWatchHistory",payload:Re})},Se=function(){ae.current=!1},ke=function(){ae.current=!0},Ce=function(){_e.current=5,m.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:b.a.createElement("div",{className:"tc font14"},b.a.createElement(l.a,{defaultValue:_e.current,onChange:function(Me){return _e.current=Me},className:re.a.modalRating})),onOk:function(){var Re=Object(x.a)(c.a.mark(function qe(){var Ve;return c.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(X.k)({id:me.videoId,star:_e.current});case 2:Ve=Te.sent,Ve.status===0&&ce({type:"videoDetail/getVideoDetail",payload:Object(de.a)({id:me.videoId},t(ye.query))});case 4:case"end":return Te.stop()}},qe)}));function Me(){return Re.apply(this,arguments)}return Me}()})};return b.a.createElement("aside",{className:re.a.contentWrap},b.a.createElement("aside",{className:re.a.wrap},b.a.createElement("header",null,b.a.createElement("span",{className:re.a.introName},"\u7B80\u4ECB"),Object(ee.y)(ve==null?void 0:ve.my_star)?b.a.createElement(o.a,{type:"primary",ghost:!0,onClick:Ce},"\u8BC4\u5206"):b.a.createElement("span",null,b.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),b.a.createElement(l.a,{value:ve==null?void 0:ve.my_star,disabled:!0,className:re.a.rating}))),b.a.createElement("div",{className:"mt20"},b.a.createElement(G.a,{value:(ve==null?void 0:ve.description)||""})),b.a.createElement(ie.a,{ref:ge,startTime:ve==null?void 0:ve.last_point,src:(ve==null?void 0:ve.is_link)?ve==null?void 0:ve.link:(ve==null?void 0:ve.play_url)&&J.Base64.decode(ve==null?void 0:ve.play_url),videoId:ve==null?void 0:ve.video_id,logWatchHistory:Oe,handlePause:Se,handlePlay:ke})))},k=Object(g.a)(function(v){var y=v.videoDetail,B=v.loading,K=v.globalSetting;return{videoDetail:y,globalSetting:K,loading:B}})(le),t=function(y){if(y==null?void 0:y.subject_id)return{subject_id:y==null?void 0:y.subject_id};if(y==null?void 0:y.course_id)return{course_id:y.course_id}},a=function(y){var B=y.videoDetail,K=y.globalSetting,pe=y.loading,ce=y.dispatch,he=Object(n.a)(y,["videoDetail","globalSetting","loading","dispatch"]),me=Object(h.m)(),ye=Object(h.l)();return Object(O.useEffect)(function(){if(!me.videoId)return;ce({type:"videoDetail/getVideoDetail",payload:Object(de.a)(Object(de.a)({},t(ye.query)),{},{id:me.videoId})})},[me.videoId]),Object(O.useEffect)(function(){var ge,ae;document.title=((ge=B.detail)===null||ge===void 0||((ae=ge.video_item)===null||ae===void 0)?void 0:ae.name)||"EduCoder"},[B]),b.a.createElement(je.a,{spinning:!1},b.a.createElement("section",{className:s.a.bg},b.a.createElement(Z,null),b.a.createElement(k,null)))},P=Ie.default=Object(g.a)(function(v){var y=v.videoDetail,B=v.loading,K=v.globalSetting;return{videoDetail:y,globalSetting:K,loading:B}})(a)},"9Bee":function(Le,Ie,se){"use strict";var we=se("q1tI"),je=se.n(we),de=se("vg9a"),n=se("tJVT"),O=se("DlQD"),b=se.n(O),h=se("rUJ1");function g(q,Q){var U=q.match(/^(\s+)(?:```)/);if(U===null)return Q;var ee=U[1];return Q.split(` `).map(function($){var W=$.match(/^\s+/);if(W===null)return $;var L=Object(n.a)(W,1),D=L[0];return D.length>=ee.length?$.slice(ee.length):$}).join(` `)}var i=[],s=["
".concat(q,"
"):'').concat(U?q:Object(h.escape)(q,!0),`
`):''+(U?q:Object(h.escape)(q,!0))+""},p.heading=function(q,Q,U){var ee=this.options.headerPrefix+U.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:ee,level:Q,text:q}),"]*>/g;function X(q){var Q=document.createElement("div");return Q.innerHTML=q,Q.childNodes.length===0?"":Q.childNodes[0].nodeValue}var H=Ie.a=function(q){var Q=q.value,U=Q===void 0?"":Q,ee=q.className,$=q.style,W=$===void 0?{}:$,L=String(U),D=Object(we.useMemo)(function(){var V=I(L),Y=f();return L.match(/\[TOC\]/)&&(V=V.replace("[TOC]
",r()),e()),V=V.replace(/(__special_katext_id_\d+__)/g,function(oe,te){var ue=Y[te],fe=ue.type,Z=ue.expression;return Object(M.renderToString)(X(Z)||"",{displayMode:fe==="block",throwOnError:!1,output:"html"})}),V=V.replace(/▁/g,"\u2581\u2581\u2581"),T(),C.a.sanitize(V)},[L]),N=Object(we.useRef)();function F(V){var Y=V.target;if(Y.tagName.toUpperCase()==="A"){var oe=Y.getAttribute("href");if(oe.startsWith("#")){V.preventDefault();var te=document.getElementById(oe.replace("#",""));te&&te.scrollIntoView(!0)}}}return Object(we.useEffect)(function(){if(N.current&&D&&(D.match(j)&&window.PR.prettyPrint()),N.current)return N.current.addEventListener("click",F),function(){N.current.removeEventListener("click",F),T(),e()}},[D,N.current,F]),je.a.createElement("div",{ref:N,style:W,className:"".concat(ee||""," markdown-body"),dangerouslySetInnerHTML:{__html:D}})}},"9VGf":function(Le,Ie,se){"use strict";se.d(Ie,"a",function(){return de});var we=se("q1tI"),je=se.n(we);function de(n,O){var b=Object(we.useRef)();Object(we.useEffect)(function(){b.current=n}),Object(we.useEffect)(function(){function h(){b.current()}if(O!==null){var g=setInterval(h,O);return function(){return clearInterval(g)}}},[O])}},Aky1:function(Le,Ie,se){"use strict";se.d(Ie,"a",function(){return g});var we=se("ErOA"),je=se("qGJc"),de=se.n(je),n="",O;function b(i){h(i)}function h(i){debugger;O=new de.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(p){console.log("addFileSuccess: "+p.file.name),i.addFileSuccess&&i.addFileSuccess(p),O.startUpload()},onUploadstarted:function(p){var u=p.file.name;if(p.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(we.a)(r,{method:"put",body:{video_id:p.videoId,title:u,file_name:u}}).then(function(l){if(l.status==-1){i.onUploadError&&i.onUploadError(p);return}var d=l.data,c=d.UploadAuth,x=d.UploadAddress,E=d.VideoId;O.setUploadAuthAndAddress(p,c,x)}).catch(function(l){O.deleteFile(O._curIndex),O.nextUpload(),console.log(l)})}else{var e="/api/users/".concat(n,"/video_auths.json"),o="";Object(we.a)(e,{method:"Post",body:{title:o+u,file_name:o+u}}).then(function(l){if(l){var d=l.data,c=d.UploadAuth,x=d.UploadAddress,E=d.VideoId;O.setUploadAuthAndAddress(p,c,x,E)}}).catch(function(l){O.deleteFile(O._curIndex),O.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(p){i.onUploadSucceed&&i.onUploadSucceed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(p,u,e){i.onUploadFailed&&i.onUploadFailed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(p,u,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(p,u,e){i.onUploadProgress&&i.onUploadProgress(p,u,e);var o=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(p){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var u="/api/users/".concat(n,"/video_auths.json");Object(we.a)(u,{method:"put",body:{video_id:p.videoId}}).then(function(e){var o=e.data,r=o.UploadAuth;O.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(p){i.onUploadEnd&&i.onUploadEnd(p),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(O)}function g(i,s){i&&(n=i),b(s);debugger}},JqQi:function(Le,Ie,se){Le.exports={bg:"bg___31owl"}},NLgs:function(Le,Ie,se){"use strict";se.d(Ie,"c",function(){return i}),se.d(Ie,"d",function(){return s}),se.d(Ie,"b",function(){return u}),se.d(Ie,"a",function(){return e});var we=se("2qtc"),je=se("kLXV"),de=se("q1tI"),n=se.n(de),O=se("9kvl"),b=se("xKgJ"),h=se("1vsH"),g=se("m3rI"),i=function(r){return!!(s(r)&&p())},s=function(r){return Object(b.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},p=function(){var r,l=Object(O.b)()._store.getState(),d=l.user;return((r=d.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(je.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(){O.c.push("/account/profile/edit")}}),!1)},u=function(){var r,l=Object(O.b)()._store.getState(),d=l.user;return((r=d.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(je.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(h.z)("/account/certification")}}),!1)},e=function(){return Object(b.a)()?!0:(je.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(b.r)()?se("WdTA"):"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(b.r)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.z)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},WdTA:function(Le,Ie,se){Le.exports=se.p+"static/studnetqun.a5754d96.png"},eoI0:function(Le,Ie,se){Le.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(Le,Ie,se){"use strict";var we=se("WmNS"),je=se.n(we),de=se("9og8"),n=se("q1tI"),O=se.n(n),b=se("GUcZ");Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function h(s,p){return s-p}function g(s){s.sort(h);for(var p=0,u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,D={point:_.current.currentTime};j?(D.log_id=j,D.watch_duration=g(ee),D.total_duration=C):(d?(D.video_id=parseInt(o,10),D.course_id=parseInt(d,10)):D.video_id=o,D.duration=R,D.device=I),L&&(D.ed="1");function N(){return F.apply(this,arguments)}function F(){return F=Object(de.a)(je.a.mark(function V(){var Y;return je.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Q=!0,te.next=3,r(D);case 3:Y=te.sent,j=Y,Q=!1,W&&W();case 7:case"end":return te.stop()}},V)})),F.apply(this,arguments)}N()},[o,d]);return Object(n.useEffect)(function(){var W=null;return b.a.isSupported&&m?(W=b.a.createPlayer({type:"flv",volume:.8,cors:!0,url:e,muted:!1}),_.current&&(W.attachMediaElement(_.current),W.load())):_.current.setAttribute("src",e),function(){W&&(W.unload(),W.pause(),W.destroy(),W=null)}},[_,m,e]),Object(n.useEffect)(function(){function W(){T(),c&&!w.current&&(_.current.currentTime=c),w.current=!0,ee.push(_.current.currentTime),X||(X=!0,$())}function L(){return D.apply(this,arguments)}function D(){return D=Object(de.a)(je.a.mark(function te(){return je.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:ee.push(_.current.currentTime),$(function(){j=null,M=0,X=!1,Q=!1,U=!1,ee=[],C=0,q=1},!0);case 2:case"end":return fe.stop()}},te)})),D.apply(this,arguments)}function N(){if(!U){var te=_.current.currentTime,ue=te-M;Math.abs(ue)<10?(C+=Math.abs(ue),M=te,Q||C-q*H>=0&&(q++,ee.push(M),$())):(M=te,$())}}function F(){U=!0}function V(){_.current.playing&&ee.push(_.current.currentTime,M),M=_.current.currentTime,U=!1}function Y(){R=_.current.duration,R<=20&&(H=R/3),_.current.addEventListener("play",W)}function oe(){E()}return _.current.addEventListener("canplay",Y),_.current.addEventListener("ended",L),_.current.addEventListener("seeking",F),_.current.addEventListener("seeked",V),_.current.addEventListener("timeupdate",N),_.current.addEventListener("pause",oe),function(){_.current.removeEventListener("canplay",Y),_.current.removeEventListener("play",W),_.current.removeEventListener("ended",L),_.current.removeEventListener("seeking",F),_.current.removeEventListener("seeked",V),_.current.removeEventListener("timeupdate",N),_.current.removeEventListener("pause",oe),_.current.playing&&(ee.push(M,_.current.currentTime),$())}},[_,e]),O.a.createElement("video",{ref:_,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})})},kwm0:function(Le,Ie,se){Le.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"}},nUhQ:function(Le,Ie,se){Le.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},qGJc:function(Le,Ie,se){(function(we){var je,je;!function(de){if(!0)window.OSS=de(),Le.exports=de();else var n}(function(){var de;return function(){function n(O,b,h){function g(p,u){if(!b[p]){if(!O[p]){var e=typeof je=="function"&&je;if(!u&&e)return je(p,!0);if(i)return i(p,!0);var o=new Error("Cannot find module '"+p+"'");throw o.code="MODULE_NOT_FOUND",o}var r=b[p]={exports:{}};O[p][0].call(r.exports,function(l){return g(O[p][1][l]||l)},r,r.exports,n,O,b,h)}return b[p].exports}for(var i=typeof je=="function"&&je,s=0;s0?L["Content-Type"]=W.mime:L["Content-Type"]=S.getType(W.mime||f.extname(W.object||""))||"application/octet-stream"),W.content&&(L["Content-Md5"]=E.createHash("md5").update(new g(W.content,"utf8")).digest("base64"),L["Content-Length"]||(L["Content-Length"]=W.content.length));var D=this._getResource(W);L.authorization=this.authorization(W.method,D,W.subres,L);var N=this._getReqUrl(W);x("request %s %s, with headers %j, !!stream: %s",W.method,N,L,!!W.stream);var F=W.timeout||this.options.timeout;return{url:N,params:{agent:this.agent,method:W.method,content:W.content,stream:W.stream,headers:L,timeout:F,writeStream:W.writeStream,customResponse:W.customResponse,ctx:W.ctx||this.ctx}}},$.request=l.default.mark(function W(L){var D,N,F,V;return l.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return D=this.createRequest(L),N=void 0,F=void 0,Y.prev=3,Y.next=6,this.urllib.request(D.url,D.params);case 6:N=Y.sent,x("response %s %s, got %s, headers: %j",L.method,D.url,N.status,N.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),F=Y.t0;case 13:if(V=void 0,!N||!L.successStatuses||L.successStatuses.indexOf(N.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(N);case 17:if(V=Y.sent,V.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,Y.next=22,this.request(L);case 22:return Y.abrupt("return",Y.sent);case 23:V.params=L,Y.next=30;break;case 26:if(!F){Y.next=30;break}return Y.next=29,this.requestError(F);case 29:V=Y.sent;case 30:if(!V){Y.next=32;break}throw V;case 32:if(!L.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(N.data);case 35:N.data=Y.sent;case 36:return Y.abrupt("return",N);case 37:case"end":return Y.stop()}},W,this,[[3,10]])}),$._getResource=function(W){var L="/";return W.bucket&&(L+=W.bucket+"/"),W.object&&(L+=W.object),L},$._isIP=function(W){return U._isIP(W)},$._escape=function(W){return M.encodeURIComponent(W).replace(/%2F/g,"/")},$._getReqUrl=function(W){var L={};T(this.options.endpoint).to(L);var D=this._isIP(L.hostname),N=this.options.cname;!W.bucket||N||D||(L.host=W.bucket+"."+L.host);var F="/";W.bucket&&D&&(F+=W.bucket+"/"),W.object&&(F+=this._escape(W.object).replace(/\+/g,"%2B")),L.pathname=F;var V={};if(W.query&&I(V,W.query),W.subres){var Y={};R.string(W.subres)?Y[W.subres]="":R.array(W.subres)?W.subres.forEach(function(oe){Y[oe]=""}):Y=W.subres,I(V,Y)}return L.query=V,w.format(L)},$._getUserAgent=function(){var W=h&&h.browser?"js":"nodejs",L="aliyun-sdk-"+W+"/"+X.version,D=C.description;return!D&&h&&(D="Node.js "+h.version.slice(1)+" on "+h.platform+" "+h.arch),this._checkUserAgent(L+" "+D)},$._checkUserAgent=function(W){return W.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(W,L){return q.name===W&&q.version.split(".")[0]===L},$.parseXML=function(W){return function(L){g.isBuffer(W)&&(W=W.toString()),m.parseString(W,{explicitRoot:!1,explicitArray:!1},L)}},$.requestError=l.default.mark(function W(L){var D,N,F,V;return l.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 N=String(L.data),x("request response error data: %s",N),F=void 0,Y.prev=8,Y.next=11,this.parseXML(N)||{};case 11:F=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),x(N),Y.t0.message+=`
raw xml: `+N,Y.t0.status=L.status,Y.t0.requestId=L.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:V=F.Message||"unknow request error, status: "+L.status,F.Condition&&(V+=" (condition: "+F.Condition+")"),D=new Error(V),D.name=F.Code?F.Code+"Error":"UnknowError",D.status=L.status,D.code=F.Code,D.requestId=F.RequestId,D.hostId=F.HostId,D.serverTime=F.ServerTime;case 30:return x("generate error %j",D),Y.abrupt("return",D);case 32:case"end":return Y.stop()}},W,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,O,b){(function(h){"use strict";function g(T){return T&&T.__esModule?T:{default:T}}function i(T,S){if(!(this instanceof i))return new i(T,S);f.call(this,S),this.file=T,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var s=n("babel-runtime/core-js/array/from"),p=g(s),u=n("babel-runtime/regenerator"),e=g(u),o=n("is-type-of"),r=n("util"),l=n("path"),d=n("mime"),c=n("copy-to"),x=b;x.multipartUpload=e.default.mark(function T(S,m,_){var A,I,w,R,C,M,j,X,H;return e.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){q.next=6;break}return q.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return q.abrupt("return",q.sent);case 6:return A=102400,_.mime||(o.file(m)?_.mime=d.getType(l.extname(m.name)):o.blob(m)?_.mime=m.type:_.mime=d.getType(l.extname(m))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),q.next=12,this._getFileSize(m);case 12:if(!((I=q.sent)0&&c(R).to(M),j=this._divideParts(A,I),X=j.length,H=!1,q=e.default.mark(function oe(te,ue){var fe,Z,J;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(te.isCancel()){ie.next=21;break}return ie.prev=1,fe=j[ue-1],Z={stream:te._createStream(_,fe.start,fe.end),size:fe.end-fe.start},ie.next=6,te._uploadPart(C,w,ue,Z);case 6:if(J=ie.sent,te.isCancel()||H){ie.next=13;break}if(S.doneParts.push({number:ue,etag:J.res.headers.etag}),M.push({number:ue,etag:J.res.headers.etag}),!m||!m.progress){ie.next=13;break}return ie.next=13,m.progress(R.length/X,S,J.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),te.isCancel()){ie.next=21;break}throw te.cancel(),ie.t0.partNum=ue,ie.t0;case 21:case"end":return ie.stop()}},oe,this,[[1,15]])}),Q=(0,p.default)(new Array(X),function(oe,te){return te+1}),U=M.map(function(oe){return oe.number}),ee=Q.filter(function(oe){return U.indexOf(oe)<0}),$=5,W=m.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&W!==1){Y.next=26;break}L=0;case 16:if(!(L0)){Y.next=37;break}throw this.resetCancelFlag(),V=F[0],V.message="Failed to upload some parts with error: "+V.toString()+" part_num: "+V.partNum,V;case 37:if(!this.isCancel()){Y.next=40;break}throw D=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(C,w,M,m);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},T,this)}),o.file=function(T){return typeof File!="undefined"&&T instanceof File},o.blob=function(T){return typeof Blob!="undefined"&&T instanceof Blob},x._getFileSize=e.default.mark(function T(S){var m;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!o.buffer(S)){_.next=4;break}return _.abrupt("return",S.length);case 4:if(!o.blob(S)&&!o.file(S)){_.next=6;break}return _.abrupt("return",S.size);case 6:if(!o.string(S)){_.next=11;break}return _.next=9,this._statFile(S);case 9:return m=_.sent,_.abrupt("return",m.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return _.stop()}},T,this)});var E=n("stream"),f=E.Readable;r.inherits(i,f),i.prototype.readFileAndPush=function(T){if(this.fileBuffer)for(var S=!0;S&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:_,this.start=_,S=this.push(this.fileBuffer.slice(m,_))}},i.prototype._read=function(T){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);T=T||16384;var S=this;this.reader.onload=function(m){S.fileBuffer=new h(new Uint8Array(m.target.result)),S.file=null,S.readFileAndPush(T)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(T)},x._createStream=function(T,S,m){if(o.blob(T)||o.file(T))return new i(T.slice(S,m));throw new Error("_createStream requires File/String.")},x._getPartSize=function(T,S){return S?Math.max(Math.ceil(T/1e4),S):1048576},x._divideParts=function(T,S){for(var m=Math.ceil(T/S),_=[],A=0;A
`,_.quiet?A+=` true
`:A+=` false
`,I=0;I"+e.escape(this._objectName(m[I]))+`
`;return A+=" ",u("delete multi objects: %s",A),_.subres="delete",w=this._objectRequestParams("POST","",_),w.mime="xml",w.content=A,w.xmlResponse=!0,w.successStatuses=[200],j.next=14,this.request(w);case 14:return R=j.sent,C=R.data,M=C&&C.Deleted||null,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(X){return X.Key})),j.abrupt("return",{res:R.res,deleted:M});case 19:case"end":return j.stop()}},S,this)}),T.copy=p.default.mark(function S(m,_,A){var I,w,R;return p.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return A=A||{},A.headers=A.headers||{},(0,i.default)(A.headers).forEach(function(M){A.headers["x-oss-copy-source-"+M.toLowerCase()]=A.headers[M]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),_=_[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(_):"/"+encodeURIComponent(_.slice(1)),A.headers["x-oss-copy-source"]=_,I=this._objectRequestParams("PUT",m,A),I.xmlResponse=!0,I.successStatuses=[200,304],C.next=12,this.request(I);case 12:return w=C.sent,R=w.data,R&&(R={etag:R.ETag,lastModified:R.LastModified}),C.abrupt("return",{data:R,res:w.res});case 16:case"end":return C.stop()}},S,this)}),T.putMeta=p.default.mark(function S(m,_,A){return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.copy(m,m,{meta:_||{},timeout:A&&A.timeout,ctx:A&&A.ctx});case 2:return I.abrupt("return",I.sent);case 3:case"end":return I.stop()}},S,this)}),T.list=p.default.mark(function S(m,_){var A,I,w,R,C;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return A=this._objectRequestParams("GET","",_),A.query=m,A.xmlResponse=!0,A.successStatuses=[200],M.next=6,this.request(A);case 6:return I=M.sent,w=I.data.Contents,R=this,w&&(Array.isArray(w)||(w=[w]),w=w.map(function(j){return{name:j.Key,url:R._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}}})),C=I.data.CommonPrefixes||null,C&&(Array.isArray(C)||(C=[C]),C=C.map(function(j){return j.Prefix})),M.abrupt("return",{res:I.res,objects:w,prefixes:C,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return M.stop()}},S,this)}),T.putACL=p.default.mark(function S(m,_,A){var I,w;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return A=A||{},A.subres="acl",A.headers=A.headers||{},A.headers["x-oss-object-acl"]=_,m=this._objectName(m),I=this._objectRequestParams("PUT",m,A),I.successStatuses=[200],R.next=9,this.request(I);case 9:return w=R.sent,R.abrupt("return",{res:w.res});case 11:case"end":return R.stop()}},S,this)}),T.getACL=p.default.mark(function S(m,_){var A,I;return p.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return _=_||{},_.subres="acl",m=this._objectName(m),A=this._objectRequestParams("GET",m,_),A.successStatuses=[200],A.xmlResponse=!0,w.next=8,this.request(A);case 8:return I=w.sent,w.abrupt("return",{acl:I.data.AccessControlList.Grant,owner:{id:I.data.Owner.ID,displayName:I.data.Owner.DisplayName},res:I.res});case 10:case"end":return w.stop()}},S,this)}),T.restore=p.default.mark(function S(m,_){var A,I;return p.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return _=_||{},_.subres="restore",A=this._objectRequestParams("POST",m,_),A.successStatuses=[202],w.next=6,this.request(A);case 6:return I=w.sent,w.abrupt("return",{res:I.res});case 8:case"end":return w.stop()}},S,this)}),T.signatureUrl=function(S,m){m=m||{},S=this._objectName(S),m.method=m.method||"GET";var _=e.timestamp()+(m.expires||1800),A={bucket:this.options.bucket,object:S},I=this._getResource(A);this.options.stsToken&&(m["security-token"]=this.options.stsToken);var w=f._signatureForURL(this.options.accessKeySecret,m,I,_),R=l.parse(this._getReqUrl(A));return R.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:w.Signature},d(w.subResource).to(R.query),R.format()},T.getObjectUrl=function(S,m){return m?m[m.length-1]!=="/"&&(m+="/"):m=this.options.endpoint.format(),m+this._escape(this._objectName(S))},T._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},T.generateObjectUrl=function(S,m){if(m)m[m.length-1]!=="/"&&(m+="/");else{m=this.options.endpoint.format();var _=l.parse(m),A=this.options.bucket;_.hostname=A+"."+_.hostname,_.host=A+"."+_.host,m=_.format()}return m+this._escape(this._objectName(S))},T._objectRequestParams=function(S,m,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},m=this._objectName(m);var A={object:m,bucket:this.options.bucket,method:S,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(A.headers={},d(_.headers).to(A.headers)),A},T._objectName=function(S){return S.replace(/^\/+/,"")},T._statFile=function(S){return function(m){o.stat(S,m)}},T._convertMetaToHeaders=function(S,m){S&&(0,i.default)(S).forEach(function(_){m["x-oss-meta-"+_]=S[_]})},T._deleteFileSafe=function(S){return function(m){o.exists(S,function(_){_?o.unlink(S,function(A){A&&u("unlink %j error: %s",S,A),m()}):m()})}}},{"../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,O,b){"use strict";b.version="5.3.1"},{}],6:[function(n,O,b){"use strict";function h(c){return c&&c.__esModule?c:{default:c}}function g(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function i(c){if(!c)return!1;var x=c.constructor;return!!x&&(x.name==="GeneratorFunction"||x.displayName==="GeneratorFunction"||g(x.prototype)||g(c.prototype))}function s(c,x){var E=new c(x),f=(0,r.default)(E),T=(0,r.default)((0,e.default)(E));f.concat(T).forEach(function(S){i(E[S])?this[S]=l.wrap(E[S]).bind(E):this[S]=E[S]},this)}function p(c){if(!(this instanceof p))return new p(c);s.call(this,d,c)}var u=n("babel-runtime/core-js/object/get-prototype-of"),e=h(u),o=n("babel-runtime/core-js/object/keys"),r=h(o),l=n("co"),d=n("./client");O.exports=p,p.STS=function c(x){if(!(this instanceof c))return new c(x);s.call(this,d.STS,x)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,O,b){(function(h){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}var i=n("babel-runtime/core-js/object/keys"),s=g(i),p=n("babel-runtime/core-js/json/stringify"),u=g(p);b.encodeCallback=function(e,o){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var l=new h((0,u.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=l,o.callback.customValue){var d={};(0,s.default)(o.callback.customValue).forEach(function(c){d["x:"+c]=o.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new h((0,u.default)(d)).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,O,b){"use strict";var h=n("babel-runtime/regenerator"),g=function(u){return u&&u.__esModule?u:{default:u}}(h),i=n("copy-to"),s=n("./callback"),p=b;p.listUploads=g.default.mark(function u(e,o){var r,l,d,c;return g.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return o=o||{},r={},i(o).to(r),r.subres="uploads",l=this._objectRequestParams("GET","",r),l.query=e,l.xmlResponse=!0,l.successStatuses=[200],x.next=10,this.request(l);case 10:return d=x.sent,c=d.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),x.abrupt("return",{res:d.res,uploads:c,bucket:d.data.Bucket,nextKeyMarker:d.data.NextKeyMarker,nextUploadIdMarker:d.data.NextUploadIdMarker,isTruncated:d.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},u,this)}),p.listParts=g.default.mark(function u(e,o,r,l){var d,c,x;return g.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=l||{},d={},i(l).to(d),d.subres={uploadId:o},c=this._objectRequestParams("GET",e,d),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],E.next=10,this.request(c);case 10:return x=E.sent,E.abrupt("return",{res:x.res,uploadId:x.data.UploadId,bucket:x.data.Bucket,name:x.data.Key,partNumberMarker:x.data.PartNumberMarker,nextPartNumberMarker:x.data.NextPartNumberMarker,maxParts:x.data.MaxParts,isTruncated:x.data.IsTruncated,parts:x.data.Part||[]});case 12:case"end":return E.stop()}},u,this)}),p.abortMultipartUpload=g.default.mark(function u(e,o,r){var l,d,c;return g.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return this.cancel(),r=r||{},l={},i(r).to(l),l.subres={uploadId:o},d=this._objectRequestParams("DELETE",e,l),d.successStatuses=[204],x.next=9,this.request(d);case 9:return c=x.sent,x.abrupt("return",{res:c.res});case 11:case"end":return x.stop()}},u,this)}),p.initMultipartUpload=g.default.mark(function u(e,o){var r,l,d;return g.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=o||{},r={},i(o).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(o.meta,r.headers),r.subres="uploads",l=this._objectRequestParams("POST",e,r),l.mime=o.mime,l.xmlResponse=!0,l.successStatuses=[200],c.next=12,this.request(l);case 12:return d=c.sent,c.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return c.stop()}},u,this)}),p.uploadPart=g.default.mark(function u(e,o,r,l,d,c,x){var E;return g.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return E={stream:this._createStream(l,d,c),size:c-d},f.next=3,this._uploadPart(e,o,r,E,x);case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},u,this)}),p.completeMultipartUpload=g.default.mark(function u(e,o,r,l){var d,c,x,E,f,T,S,m;return g.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(d=r.concat().sort(function(A,I){return A.number-I.number}).filter(function(A,I,w){return!I||A.number!==w[I-1].number}),c=`
`,x=0;x
`,c+=""+E.number+`
`,c+=""+E.etag+`
`,c+=`
`;return c+=" ",l=l||{},f={},i(l).to(f),f.subres={uploadId:o},T=this._objectRequestParams("POST",e,f),s.encodeCallback(T,f),T.mime="xml",T.content=c,T.headers&&T.headers["x-oss-callback"]||(T.xmlResponse=!0),T.successStatuses=[200],_.next=16,this.request(T);case 16:return S=_.sent,m={res:S.res,bucket:T.bucket,name:e,etag:S.res.headers.etag},T.headers&&T.headers["x-oss-callback"]&&(m.data=JSON.parse(S.data.toString())),_.abrupt("return",m);case 20:case"end":return _.stop()}},u,this)}),p._uploadPart=g.default.mark(function u(e,o,r,l,d){var c,x,E;return g.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return d=d||{},c={},i(d).to(c),c.headers={"Content-Length":l.size},c.subres={partNumber:r,uploadId:o},x=this._objectRequestParams("PUT",e,c),x.mime=c.mime,x.stream=l.stream,x.successStatuses=[200],f.next=11,this.request(x);case 11:return E=f.sent,l.stream=null,x.stream=null,f.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return f.stop()}},u,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,O,b){(function(h){"use strict";function g(r){return r&&r.__esModule?r:{default:r}}var i=n("babel-runtime/core-js/json/stringify"),s=g(i),p=n("babel-runtime/core-js/object/keys"),u=g(p),e=n("./../../shims/crypto/crypto.js"),o=n("is-type-of");b.buildCanonicalizedResource=function(r,l){var d=""+r,c="?";if(o.string(l)&&l.trim()!=="")d+=c+l;else if(o.array(l))l.sort(),d+=c+l.join("&");else if(l){var x=function(T,S){return T[0]>S[0]?1:T[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var T=E.indexOf("=");return T===-1&&(T=f),[T,T===f?0:4-T%4]}function g(E){var f=h(E),T=f[0],S=f[1];return 3*(T+S)/4-S}function i(E,f,T){return 3*(f+T)/4-T}function s(E){for(var f,T=h(E),S=T[0],m=T[1],_=new l(i(E,S,m)),A=0,I=m>0?S-4:S,w=0;w>16&255,_[A++]=f>>8&255,_[A++]=255&f;return m===2&&(f=r[E.charCodeAt(w)]<<2|r[E.charCodeAt(w+1)]>>4,_[A++]=255&f),m===1&&(f=r[E.charCodeAt(w)]<<10|r[E.charCodeAt(w+1)]<<4|r[E.charCodeAt(w+2)]>>2,_[A++]=f>>8&255,_[A++]=255&f),_}function p(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[63&E]}function u(E,f,T){for(var S,m=[],_=f;_A?A:_+16383));return S===1?(f=E[T-1],m.push(o[f>>2]+o[f<<4&63]+"==")):S===2&&(f=(E[T-2]<<8)+E[T-1],m.push(o[f>>10]+o[f>>4&63]+o[f<<2&63]+"=")),m.join("")}b.byteLength=g,b.toByteArray=s,b.fromByteArray=e;for(var o=[],r=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,x=d.length;c1&&L[1]||""}function d(W){var L=r.match(W);return L&&L.length>1&&L[2]||""}var c,x=l(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),f=!E&&/android/i.test(r),T=/nexus\s*[0-6]\s*/i.test(r),S=!T&&/nexus\s*[0-9]+/i.test(r),m=/CrOS/.test(r),_=/silk/i.test(r),A=/sailfish/i.test(r),I=/tizen/i.test(r),w=/(web|hpw)os/i.test(r),R=/windows phone/i.test(r),C=(/SamsungBrowser/i.test(r),!R&&/windows/i.test(r)),M=!x&&!_&&/macintosh/i.test(r),j=!f&&!A&&!I&&!w&&/linux/i.test(r),X=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=l(/version\/(\d+(\.\d+)?)/i),q=/tablet/i.test(r)&&!/tablet pc/i.test(r),Q=!q&&/[^-]mobi/i.test(r),U=/xbox/i.test(r);/opera/i.test(r)?c={name:"Opera",opera:e,version:H||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?c={name:"Opera",opera:e,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(r)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:H||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?c={name:"Opera Coast",coast:e,version:H||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?c={name:"Yandex Browser",yandexbrowser:e,version:H||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?c={name:"UC Browser",ucbrowser:e,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?c={name:"Maxthon",maxthon:e,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?c={name:"Epiphany",epiphany:e,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?c={name:"Puffin",puffin:e,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?c={name:"Sleipnir",sleipnir:e,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?c={name:"K-Meleon",kMeleon:e,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:R?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},X?(c.msedge=e,c.version=X):(c.msie=e,c.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?c={name:"Internet Explorer",msie:e,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:m?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?c={name:"Microsoft Edge",msedge:e,version:X}:/vivaldi/i.test(r)?c={name:"Vivaldi",vivaldi:e,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||H}:A?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?c={name:"SeaMonkey",seamonkey:e,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(c={name:"Firefox",firefox:e,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(c.firefoxos=e,c.osname="Firefox OS")):_?c={name:"Amazon Silk",silk:e,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?c={name:"PhantomJS",phantom:e,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?c={name:"SlimerJS",slimer:e,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:H||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(c={name:"WebOS",osname:"WebOS",webos:e,version:H||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(c.touchpad=e)):/bada/i.test(r)?c={name:"Bada",osname:"Bada",bada:e,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:I?c={name:"Tizen",osname:"Tizen",tizen:e,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(r)?c={name:"QupZilla",qupzilla:e,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(r)?c={name:"Chromium",chromium:e,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(r)?c={name:"Chrome",chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?c={name:"Android",version:H}:/safari|applewebkit/i.test(r)?(c={name:"Safari",safari:e},H&&(c.version=H)):x?(c={name:x=="iphone"?"iPhone":x=="ipad"?"iPad":"iPod"},H&&(c.version=H)):c=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:l(/googlebot\/(\d+(\.\d+))/i)||H}:{name:l(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&H&&(c.version=H)):!c.opera&&/gecko\//i.test(r)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||l(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!f&&!c.silk?!c.windowsphone&&x?(c[x]=e,c.ios=e,c.osname="iOS"):M?(c.mac=e,c.osname="macOS"):U?(c.xbox=e,c.osname="Xbox"):C?(c.windows=e,c.osname="Windows"):j&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ee="";c.windows?ee=function(W){switch(W){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ee=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ee=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),ee=ee.replace(/[_\s]/g,".")):x?(ee=l(/os (\d+([_\s]\d+)*) like mac os x/i),ee=ee.replace(/[_\s]/g,".")):f?ee=l(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ee=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ee=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ee=l(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ee=l(/tizen[\/\s](\d+(\.\d+)*)/i)),ee&&(c.osversion=ee);var $=!c.windows&&ee.split(".")[0];return q||S||x=="ipad"||f&&($==3||$>=4&&!Q)||c.silk?c.tablet=e:(Q||x=="iphone"||x=="ipod"||f||T||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function g(r){return r.split(".").length}function i(r,l){var d,c=[];if(Array.prototype.map)return Array.prototype.map.call(r,l);for(d=0;d=0;){if(d[0][l]>d[1][l])return 1;if(d[0][l]!==d[1][l])return-1;if(l===0)return 0}}function p(r,l,d){var c=o;typeof l=="string"&&(d=l,l=void 0),l===void 0&&(l=!1),d&&(c=h(d));var x=""+c.version;for(var E in r)if(r.hasOwnProperty(E)&&c[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return s([x,r[E]])<0}return l}function u(r,l,d){return!p(r,l,d)}var e=!0,o=h(typeof navigator!="undefined"&&navigator.userAgent||"");return o.test=function(r){for(var l=0;l=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(o);var d=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,d),d-=this.charReceived),r+=o.toString(this.encoding,0,d);var d=r.length-1,c=r.charCodeAt(d);if(c>=55296&&c<=56319){var x=this.surrogateSize;return this.charLength+=x,this.charReceived+=x,this.charBuffer.copy(this.charBuffer,x,0,x),o.copy(this.charBuffer,0,0,x),r.substring(0,d)}return r},e.prototype.detectIncompleteChar=function(o){for(var r=o.length>=3?3:o.length;r>0;r--){var l=o[o.length-r];if(r==1&&l>>5==6){this.charLength=2;break}if(r<=2&&l>>4==14){this.charLength=3;break}if(r<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(o){var r="";if(o&&o.length&&(r=this.write(o)),this.charReceived){var l=this.charReceived,d=this.charBuffer,c=this.encoding;r+=d.slice(0,l).toString(c)}return r}},{buffer:38}],38:[function(n,O,b){(function(h){"use strict";function g(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,a){if(g()=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),s.alloc(+t)}function f(t,a){if(s.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 P=t.length;if(P===0)return 0;for(var v=!1;;)switch(a){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":case void 0:return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*P;case"hex":return P>>>1;case"base64":return J(t).length;default:if(v)return ue(t).length;a=(""+a).toLowerCase(),v=!0}}function T(t,a,P){var v=!1;if((a===void 0||a<0)&&(a=0),a>this.length)return"";if((P===void 0||P>this.length)&&(P=this.length),P<=0)return"";if(P>>>=0,a>>>=0,P<=a)return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,a,P);case"utf8":case"utf-8":return X(this,a,P);case"ascii":return q(this,a,P);case"latin1":case"binary":return Q(this,a,P);case"base64":return j(this,a,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,a,P);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}function S(t,a,P){var v=t[a];t[a]=t[P],t[P]=v}function m(t,a,P,v,y){if(t.length===0)return-1;if(typeof P=="string"?(v=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,isNaN(P)&&(P=y?0:t.length-1),P<0&&(P=t.length+P),P>=t.length){if(y)return-1;P=t.length-1}else if(P<0){if(!y)return-1;P=0}if(typeof a=="string"&&(a=s.from(a,v)),s.isBuffer(a))return a.length===0?-1:_(t,a,P,v,y);if(typeof a=="number")return a&=255,s.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(t,a,P):Uint8Array.prototype.lastIndexOf.call(t,a,P):_(t,[a],P,v,y);throw new TypeError("val must be string, number or Buffer")}function _(t,a,P,v,y){function B(ae,_e){return K===1?ae[_e]:ae.readUInt16BE(_e*K)}var K=1,pe=t.length,ce=a.length;if(v!==void 0&&((v=String(v).toLowerCase())==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||a.length<2)return-1;K=2,pe/=2,ce/=2,P/=2}var he;if(y){var me=-1;for(he=P;hepe&&(P=pe-ce),he=P;he>=0;he--){for(var ye=!0,ge=0;gey&&(v=y):v=y;var B=a.length;if(B%2!=0)throw new TypeError("Invalid hex string");v>B/2&&(v=B/2);for(var K=0;K239?4:B>223?3:B>191?2:1;if(y+pe<=P){var ce,he,me,ye;switch(pe){case 1:B<128&&(K=B);break;case 2:ce=t[y+1],(192&ce)==128&&(ye=(31&B)<<6|63&ce)>127&&(K=ye);break;case 3:ce=t[y+1],he=t[y+2],(192&ce)==128&&(192&he)==128&&(ye=(15&B)<<12|(63&ce)<<6|63&he)>2047&&(ye<55296||ye>57343)&&(K=ye);break;case 4:ce=t[y+1],he=t[y+2],me=t[y+3],(192&ce)==128&&(192&he)==128&&(192&me)==128&&(ye=(15&B)<<18|(63&ce)<<12|(63&he)<<6|63&me)>65535&&ye<1114112&&(K=ye)}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,v.push(K>>>10&1023|55296),K=56320|1023&K),v.push(K),y+=pe}return H(v)}function H(t){var a=t.length;if(a<=le)return String.fromCharCode.apply(String,t);for(var P="",v=0;vv)&&(P=v);for(var y="",B=a;BP)throw new RangeError("Trying to access beyond buffer length")}function W(t,a,P,v,y,B){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>y||at.length)throw new RangeError("Index out of range")}function L(t,a,P,v){a<0&&(a=65535+a+1);for(var y=0,B=Math.min(t.length-P,2);y>>8*(v?y:1-y)}function D(t,a,P,v){a<0&&(a=4294967295+a+1);for(var y=0,B=Math.min(t.length-P,4);y>>8*(v?y:3-y)&255}function N(t,a,P,v,y,B){if(P+v>t.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function F(t,a,P,v,y){return y||N(t,a,P,4,34028234663852886e22,-34028234663852886e22),re.write(t,a,P,v,23,4),P+4}function V(t,a,P,v,y){return y||N(t,a,P,8,17976931348623157e292,-17976931348623157e292),re.write(t,a,P,v,52,8),P+8}function Y(t){if(t=oe(t).replace(k,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function oe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function te(t){return t<16?"0"+t.toString(16):t.toString(16)}function ue(t,a){a=a||1/0;for(var P,v=t.length,y=null,B=[],K=0;K55295&&P<57344){if(!y){if(P>56319){(a-=3)>-1&&B.push(239,191,189);continue}if(K+1===v){(a-=3)>-1&&B.push(239,191,189);continue}y=P;continue}if(P<56320){(a-=3)>-1&&B.push(239,191,189),y=P;continue}P=65536+(y-55296<<10|P-56320)}else y&&(a-=3)>-1&&B.push(239,191,189);if(y=null,P<128){if((a-=1)<0)break;B.push(P)}else if(P<2048){if((a-=2)<0)break;B.push(P>>6|192,63&P|128)}else if(P<65536){if((a-=3)<0)break;B.push(P>>12|224,P>>6&63|128,63&P|128)}else{if(!(P<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;B.push(P>>18|240,P>>12&63|128,P>>6&63|128,63&P|128)}}return B}function fe(t){for(var a=[],P=0;P>8,y=P%256,B.push(y),B.push(v);return B}function J(t){return z.toByteArray(Y(t))}function ie(t,a,P,v){for(var y=0;y=a.length||y>=t.length);++y)a[y+P]=t[y];return y}function G(t){return t!==t}var z=n("base64-js"),re=n("ieee754"),ne=n("isarray");b.Buffer=s,b.SlowBuffer=E,b.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(a){return!1}}(),b.kMaxLength=g(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,a,P){return p(null,t,a,P)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,a,P){return e(null,t,a,P)},s.allocUnsafe=function(t){return o(null,t)},s.allocUnsafeSlow=function(t){return o(null,t)},s.isBuffer=function(t){return!(t==null||!t._isBuffer)},s.compare=function(t,a){if(!s.isBuffer(t)||!s.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(t===a)return 0;for(var P=t.length,v=a.length,y=0,B=Math.min(P,v);y0&&(t=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(t+=" ... ")),""},s.prototype.compare=function(t,a,P,v,y){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),P===void 0&&(P=t?t.length:0),v===void 0&&(v=0),y===void 0&&(y=this.length),a<0||P>t.length||v<0||y>this.length)throw new RangeError("out of range index");if(v>=y&&a>=P)return 0;if(v>=y)return-1;if(a>=P)return 1;if(a>>>=0,P>>>=0,v>>>=0,y>>>=0,this===t)return 0;for(var B=y-v,K=P-a,pe=Math.min(B,K),ce=this.slice(v,y),he=t.slice(a,P),me=0;mey)&&(P=y),t.length>0&&(P<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var B=!1;;)switch(v){case"hex":return A(this,t,a,P);case"utf8":case"utf-8":return I(this,t,a,P);case"ascii":return w(this,t,a,P);case"latin1":case"binary":return R(this,t,a,P);case"base64":return C(this,t,a,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,a,P);default:if(B)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),B=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var le=4096;s.prototype.slice=function(t,a){var P=this.length;t=~~t,a=a===void 0?P:~~a,t<0?(t+=P)<0&&(t=0):t>P&&(t=P),a<0?(a+=P)<0&&(a=0):a>P&&(a=P),a0&&(y*=256);)v+=this[t+--a]*y;return v},s.prototype.readUInt8=function(t,a){return a||$(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,a){return a||$(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,a){return a||$(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,a){return a||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,a){return a||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var v=this[t],y=1,B=0;++B=y&&(v-=Math.pow(2,8*a)),v},s.prototype.readIntBE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var v=a,y=1,B=this[t+--v];v>0&&(y*=256);)B+=this[t+--v]*y;return y*=128,B>=y&&(B-=Math.pow(2,8*a)),B},s.prototype.readInt8=function(t,a){return a||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,a){a||$(t,2,this.length);var P=this[t]|this[t+1]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt16BE=function(t,a){a||$(t,2,this.length);var P=this[t+1]|this[t]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt32LE=function(t,a){return a||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,a){return a||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,a){return a||$(t,4,this.length),re.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,a){return a||$(t,4,this.length),re.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,a){return a||$(t,8,this.length),re.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,a){return a||$(t,8,this.length),re.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,a,P,v){(t=+t,a|=0,P|=0,!v)&&W(this,t,a,P,Math.pow(2,8*P)-1,0);var y=1,B=0;for(this[a]=255&t;++B=0&&(B*=256);)this[a+y]=t/B&255;return a+P},s.prototype.writeUInt8=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[a]=255&t,a+1},s.prototype.writeUInt16LE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):L(this,t,a,!0),a+2},s.prototype.writeUInt16BE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):L(this,t,a,!1),a+2},s.prototype.writeUInt32LE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a+3]=t>>>24,this[a+2]=t>>>16,this[a+1]=t>>>8,this[a]=255&t):D(this,t,a,!0),a+4},s.prototype.writeUInt32BE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):D(this,t,a,!1),a+4},s.prototype.writeIntLE=function(t,a,P,v){if(t=+t,a|=0,!v){var y=Math.pow(2,8*P-1);W(this,t,a,P,y-1,-y)}var B=0,K=1,pe=0;for(this[a]=255&t;++B
>0)-pe&255;return a+P},s.prototype.writeIntBE=function(t,a,P,v){if(t=+t,a|=0,!v){var y=Math.pow(2,8*P-1);W(this,t,a,P,y-1,-y)}var B=P-1,K=1,pe=0;for(this[a+B]=255&t;--B>=0&&(K*=256);)t<0&&pe===0&&this[a+B+1]!==0&&(pe=1),this[a+B]=(t/K>>0)-pe&255;return a+P},s.prototype.writeInt8=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[a]=255&t,a+1},s.prototype.writeInt16LE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):L(this,t,a,!0),a+2},s.prototype.writeInt16BE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):L(this,t,a,!1),a+2},s.prototype.writeInt32LE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8,this[a+2]=t>>>16,this[a+3]=t>>>24):D(this,t,a,!0),a+4},s.prototype.writeInt32BE=function(t,a,P){return t=+t,a|=0,P||W(this,t,a,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):D(this,t,a,!1),a+4},s.prototype.writeFloatLE=function(t,a,P){return F(this,t,a,!0,P)},s.prototype.writeFloatBE=function(t,a,P){return F(this,t,a,!1,P)},s.prototype.writeDoubleLE=function(t,a,P){return V(this,t,a,!0,P)},s.prototype.writeDoubleBE=function(t,a,P){return V(this,t,a,!1,P)},s.prototype.copy=function(t,a,P,v){if(P||(P=0),v||v===0||(v=this.length),a>=t.length&&(a=t.length),a||(a=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-a=0;--y)t[y+a]=this[y+P];else if(B<1e3||!s.TYPED_ARRAY_SUPPORT)for(y=0;y>>=0,P=P===void 0?this.length:P>>>0,t||(t=0);var B;if(typeof t=="number")for(B=a;B>>1;u(s[r])
2&&(T=l.call(arguments,1)),x(T)})})}function s(d){return Promise.all(d.map(g,this))}function p(d){for(var c=new d.constructor,x=Object.keys(d),E=[],f=0;fd;)if((o=r[d++])!=o)return!0}else for(;l>d;d++)if((s||d in r)&&r[d]===u)return s||d||0;return!s&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,O,b){var h=n("./_cof"),g=n("./_wks")("toStringTag"),i=h(function(){return arguments}())=="Arguments",s=function(u,e){try{return u[e]}catch(o){}};O.exports=function(p){var u,e,o;return p===void 0?"Undefined":p===null?"Null":typeof(e=s(u=Object(p),g))=="string"?e:i?h(u):(o=h(u))=="Object"&&typeof u.callee=="function"?"Arguments":o}},{"./_cof":64,"./_wks":131}],64:[function(n,O,b){var h={}.toString;O.exports=function(g){return h.call(g).slice(8,-1)}},{}],65:[function(n,O,b){var h=O.exports={version:"2.5.7"};typeof __e=="number"&&(__e=h)},{}],66:[function(n,O,b){"use strict";var h=n("./_object-dp"),g=n("./_property-desc");O.exports=function(i,s,p){s in i?h.f(i,s,g(0,p)):i[s]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,O,b){var h=n("./_a-function");O.exports=function(g,i,s){if(h(g),i===void 0)return g;switch(s){case 1:return function(p){return g.call(i,p)};case 2:return function(p,u){return g.call(i,p,u)};case 3:return function(p,u,e){return g.call(i,p,u,e)}}return function(){return g.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,O,b){O.exports=function(h){if(h==null)throw TypeError("Can't call method on "+h);return h}},{}],69:[function(n,O,b){O.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,O,b){var h=n("./_is-object"),g=n("./_global").document,i=h(g)&&h(g.createElement);O.exports=function(s){return i?g.createElement(s):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,O,b){O.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,O,b){var h=n("./_object-keys"),g=n("./_object-gops"),i=n("./_object-pie");O.exports=function(s){var p=h(s),u=g.f;if(u)for(var e,o=u(s),r=i.f,l=0;o.length>l;)r.call(s,e=o[l++])&&p.push(e);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,O,b){var h=n("./_global"),g=n("./_core"),i=n("./_ctx"),s=n("./_hide"),p=n("./_has"),u=function e(o,r,l){var d,c,x,E=o&e.F,f=o&e.G,T=o&e.S,S=o&e.P,m=o&e.B,_=o&e.W,A=f?g:g[r]||(g[r]={}),I=A.prototype,w=f?h:T?h[r]:(h[r]||{}).prototype;f&&(l=r);for(d in l)(c=!E&&w&&w[d]!==void 0)&&p(A,d)||(x=c?w[d]:l[d],A[d]=f&&typeof w[d]!="function"?l[d]:m&&c?i(x,h):_&&w[d]==x?function(R){var C=function(j,X,H){if(this instanceof R){switch(arguments.length){case 0:return new R;case 1:return new R(j);case 2:return new R(j,X)}return new R(j,X,H)}return R.apply(this,arguments)};return C.prototype=R.prototype,C}(x):S&&typeof x=="function"?i(Function.call,x):x,S&&((A.virtual||(A.virtual={}))[d]=x,o&e.R&&I&&!I[d]&&s(I,d,x)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,O.exports=u},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,O,b){O.exports=function(h){try{return!!h()}catch(g){return!0}}},{}],75:[function(n,O,b){var h=n("./_ctx"),g=n("./_iter-call"),i=n("./_is-array-iter"),s=n("./_an-object"),p=n("./_to-length"),u=n("./core.get-iterator-method"),e={},o={},b=O.exports=function(r,l,d,c,x){var E,f,T,S,m=x?function(){return r}:u(r),_=h(d,c,l?2:1),A=0;if(typeof m!="function")throw TypeError(r+" is not iterable!");if(i(m)){for(E=p(r.length);E>A;A++)if((S=l?_(s(f=r[A])[0],f[1]):_(r[A]))===e||S===o)return S}else for(T=m.call(r);!(f=T.next()).done;)if((S=g(T,_,f.value,l))===e||S===o)return S};b.BREAK=e,b.RETURN=o},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,O,b){var h=O.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=h)},{}],77:[function(n,O,b){var h={}.hasOwnProperty;O.exports=function(g,i){return h.call(g,i)}},{}],78:[function(n,O,b){var h=n("./_object-dp"),g=n("./_property-desc");O.exports=n("./_descriptors")?function(i,s,p){return h.f(i,s,g(1,p))}:function(i,s,p){return i[s]=p,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,O,b){var h=n("./_global").document;O.exports=h&&h.documentElement},{"./_global":76}],80:[function(n,O,b){O.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,O,b){O.exports=function(h,g,i){var s=i===void 0;switch(g.length){case 0:return s?h():h.call(i);case 1:return s?h(g[0]):h.call(i,g[0]);case 2:return s?h(g[0],g[1]):h.call(i,g[0],g[1]);case 3:return s?h(g[0],g[1],g[2]):h.call(i,g[0],g[1],g[2]);case 4:return s?h(g[0],g[1],g[2],g[3]):h.call(i,g[0],g[1],g[2],g[3])}return h.apply(i,g)}},{}],82:[function(n,O,b){var h=n("./_cof");O.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return h(g)=="String"?g.split(""):Object(g)}},{"./_cof":64}],83:[function(n,O,b){var h=n("./_iterators"),g=n("./_wks")("iterator"),i=Array.prototype;O.exports=function(s){return s!==void 0&&(h.Array===s||i[g]===s)}},{"./_iterators":91,"./_wks":131}],84:[function(n,O,b){var h=n("./_cof");O.exports=Array.isArray||function(g){return h(g)=="Array"}},{"./_cof":64}],85:[function(n,O,b){O.exports=function(h){return typeof h=="object"?h!==null:typeof h=="function"}},{}],86:[function(n,O,b){var h=n("./_an-object");O.exports=function(g,i,s,p){try{return p?i(h(s)[0],s[1]):i(s)}catch(e){var u=g.return;throw u!==void 0&&h(u.call(g)),e}}},{"./_an-object":61}],87:[function(n,O,b){"use strict";var h=n("./_object-create"),g=n("./_property-desc"),i=n("./_set-to-string-tag"),s={};n("./_hide")(s,n("./_wks")("iterator"),function(){return this}),O.exports=function(p,u,e){p.prototype=h(s,{next:g(1,e)}),i(p,u+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,O,b){"use strict";var h=n("./_library"),g=n("./_export"),i=n("./_redefine"),s=n("./_hide"),p=n("./_iterators"),u=n("./_iter-create"),e=n("./_set-to-string-tag"),o=n("./_object-gpo"),r=n("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};O.exports=function(c,x,E,f,T,S,m){u(E,x,f);var _,A,I,w=function(ee){if(!l&&ee in j)return j[ee];switch(ee){case"keys":case"values":return function(){return new E(this,ee)}}return function(){return new E(this,ee)}},R=x+" Iterator",C=T=="values",M=!1,j=c.prototype,X=j[r]||j["@@iterator"]||T&&j[T],H=X||w(T),q=T?C?w("entries"):H:void 0,Q=x=="Array"&&j.entries||X;if(Q&&(I=o(Q.call(new c)))!==Object.prototype&&I.next&&(e(I,R,!0),h||typeof I[r]=="function"||s(I,r,d)),C&&X&&X.name!=="values"&&(M=!0,H=function(){return X.call(this)}),h&&!m||!l&&!M&&j[r]||s(j,r,H),p[x]=H,p[R]=d,T)if(_={values:C?H:w("values"),keys:S?H:w("keys"),entries:q},m)for(A in _)A in j||i(j,A,_[A]);else g(g.P+g.F*(l||M),x,_);return _}},{"./_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,O,b){var h=n("./_wks")("iterator"),g=!1;try{var i=[7][h]();i.return=function(){g=!0},Array.from(i,function(){throw 2})}catch(s){}O.exports=function(s,p){if(!p&&!g)return!1;var u=!1;try{var e=[7],o=e[h]();o.next=function(){return{done:u=!0}},e[h]=function(){return o},s(e)}catch(r){}return u}},{"./_wks":131}],90:[function(n,O,b){O.exports=function(h,g){return{value:g,done:!!h}}},{}],91:[function(n,O,b){O.exports={}},{}],92:[function(n,O,b){O.exports=!0},{}],93:[function(n,O,b){var h=n("./_uid")("meta"),g=n("./_is-object"),i=n("./_has"),s=n("./_object-dp").f,p=0,u=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return u(Object.preventExtensions({}))}),o=function(E){s(E,h,{value:{i:"O"+ ++p,w:{}}})},r=function(E,f){if(!g(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!i(E,h)){if(!u(E))return"F";if(!f)return"E";o(E)}return E[h].i},l=function(E,f){if(!i(E,h)){if(!u(E))return!0;if(!f)return!1;o(E)}return E[h].w},d=function(E){return e&&c.NEED&&u(E)&&!i(E,h)&&o(E),E},c=O.exports={KEY:h,NEED:!1,fastKey:r,getWeak:l,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,O,b){var h=n("./_global"),g=n("./_task").set,i=h.MutationObserver||h.WebKitMutationObserver,s=h.process,p=h.Promise,u=n("./_cof")(s)=="process";O.exports=function(){var e,o,r,l=function(){var f,T;for(u&&(f=s.domain)&&f.exit();e;){T=e.fn,e=e.next;try{T()}catch(S){throw e?r():o=void 0,S}}o=void 0,f&&f.enter()};if(u)r=function(){s.nextTick(l)};else if(!i||h.navigator&&h.navigator.standalone)if(p&&p.resolve){var d=p.resolve(void 0);r=function(){d.then(l)}}else r=function(){g.call(h,l)};else{var c=!0,x=document.createTextNode("");new i(l).observe(x,{characterData:!0}),r=function(){x.data=c=!c}}return function(E){var f={fn:E,next:void 0};o&&(o.next=f),e||(e=f,r()),o=f}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,O,b){"use strict";function h(i){var s,p;this.promise=new i(function(u,e){if(s!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");s=u,p=e}),this.resolve=g(s),this.reject=g(p)}var g=n("./_a-function");O.exports.f=function(i){return new h(i)}},{"./_a-function":58}],96:[function(n,O,b){"use strict";var h=n("./_object-keys"),g=n("./_object-gops"),i=n("./_object-pie"),s=n("./_to-object"),p=n("./_iobject"),u=Object.assign;O.exports=!u||n("./_fails")(function(){var e={},o={},r=Symbol(),l="abcdefghijklmnopqrst";return e[r]=7,l.split("").forEach(function(d){o[d]=d}),u({},e)[r]!=7||Object.keys(u({},o)).join("")!=l})?function(e,o){for(var r=s(e),l=arguments.length,d=1,c=g.f,x=i.f;l>d;)for(var E,f=p(arguments[d++]),T=c?h(f).concat(c(f)):h(f),S=T.length,m=0;S>m;)x.call(f,E=T[m++])&&(r[E]=f[E]);return r}:u},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,O,b){var h=n("./_an-object"),g=n("./_object-dps"),i=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),p=function(){},u=function(){var o,r=n("./_dom-create")("iframe"),l=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",o=r.contentWindow.document,o.open(),o.write(""),o.close(),u=o.F;l--;)delete u.prototype[i[l]];return u()};O.exports=Object.create||function(e,o){var r;return e!==null?(p.prototype=h(e),r=new p,p.prototype=null,r[s]=e):r=u(),o===void 0?r:g(r,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,O,b){var h=n("./_an-object"),g=n("./_ie8-dom-define"),i=n("./_to-primitive"),s=Object.defineProperty;b.f=n("./_descriptors")?Object.defineProperty:function(p,u,e){if(h(p),u=i(u,!0),h(e),g)try{return s(p,u,e)}catch(o){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(p[u]=e.value),p}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,O,b){var h=n("./_object-dp"),g=n("./_an-object"),i=n("./_object-keys");O.exports=n("./_descriptors")?Object.defineProperties:function(s,p){g(s);for(var u,e=i(p),o=e.length,r=0;o>r;)h.f(s,u=e[r++],p[u]);return s}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,O,b){var h=n("./_object-pie"),g=n("./_property-desc"),i=n("./_to-iobject"),s=n("./_to-primitive"),p=n("./_has"),u=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;b.f=n("./_descriptors")?e:function(o,r){if(o=i(o),r=s(r,!0),u)try{return e(o,r)}catch(l){}if(p(o,r))return g(!h.f.call(o,r),o[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,O,b){var h=n("./_to-iobject"),g=n("./_object-gopn").f,i={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(e){try{return g(e)}catch(o){return s.slice()}};O.exports.f=function(u){return s&&i.call(u)=="[object Window]"?p(u):g(h(u))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,O,b){var h=n("./_object-keys-internal"),g=n("./_enum-bug-keys").concat("length","prototype");b.f=Object.getOwnPropertyNames||function(i){return h(i,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,O,b){b.f=Object.getOwnPropertySymbols},{}],104:[function(n,O,b){var h=n("./_has"),g=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),s=Object.prototype;O.exports=Object.getPrototypeOf||function(p){return p=g(p),h(p,i)?p[i]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?s:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,O,b){var h=n("./_has"),g=n("./_to-iobject"),i=n("./_array-includes")(!1),s=n("./_shared-key")("IE_PROTO");O.exports=function(p,u){var e,o=g(p),r=0,l=[];for(e in o)e!=s&&h(o,e)&&l.push(e);for(;u.length>r;)h(o,e=u[r++])&&(~i(l,e)||l.push(e));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,O,b){var h=n("./_object-keys-internal"),g=n("./_enum-bug-keys");O.exports=Object.keys||function(i){return h(i,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,O,b){b.f={}.propertyIsEnumerable},{}],108:[function(n,O,b){var h=n("./_export"),g=n("./_core"),i=n("./_fails");O.exports=function(s,p){var u=(g.Object||{})[s]||Object[s],e={};e[s]=p(u),h(h.S+h.F*i(function(){u(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,O,b){O.exports=function(h){try{return{e:!1,v:h()}}catch(g){return{e:!0,v:g}}}},{}],110:[function(n,O,b){var h=n("./_an-object"),g=n("./_is-object"),i=n("./_new-promise-capability");O.exports=function(s,p){if(h(s),g(p)&&p.constructor===s)return p;var u=i.f(s);return(0,u.resolve)(p),u.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,O,b){O.exports=function(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}}},{}],112:[function(n,O,b){var h=n("./_hide");O.exports=function(g,i,s){for(var p in i)s&&g[p]?g[p]=i[p]:h(g,p,i[p]);return g}},{"./_hide":78}],113:[function(n,O,b){O.exports=n("./_hide")},{"./_hide":78}],114:[function(n,O,b){"use strict";var h=n("./_global"),g=n("./_core"),i=n("./_object-dp"),s=n("./_descriptors"),p=n("./_wks")("species");O.exports=function(u){var e=typeof g[u]=="function"?g[u]:h[u];s&&e&&!e[p]&&i.f(e,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,O,b){var h=n("./_object-dp").f,g=n("./_has"),i=n("./_wks")("toStringTag");O.exports=function(s,p,u){s&&!g(s=u?s:s.prototype,i)&&h(s,i,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,O,b){var h=n("./_shared")("keys"),g=n("./_uid");O.exports=function(i){return h[i]||(h[i]=g(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,O,b){var h=n("./_core"),g=n("./_global"),i=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(O.exports=function(s,p){return i[s]||(i[s]=p!==void 0?p:{})})("versions",[]).push({version:h.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,O,b){var h=n("./_an-object"),g=n("./_a-function"),i=n("./_wks")("species");O.exports=function(s,p){var u,e=h(s).constructor;return e===void 0||(u=h(e)[i])==null?p:g(u)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,O,b){var h=n("./_to-integer"),g=n("./_defined");O.exports=function(i){return function(s,p){var u,e,o=String(g(s)),r=h(p),l=o.length;return r<0||r>=l?i?"":void 0:(u=o.charCodeAt(r),u<55296||u>56319||r+1===l||(e=o.charCodeAt(r+1))<56320||e>57343?i?o.charAt(r):u:i?o.slice(r,r+2):e-56320+(u-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,O,b){var h,g,i,s=n("./_ctx"),p=n("./_invoke"),u=n("./_html"),e=n("./_dom-create"),o=n("./_global"),r=o.process,l=o.setImmediate,d=o.clearImmediate,c=o.MessageChannel,x=o.Dispatch,E=0,f={},T=function(){var _=+this;if(f.hasOwnProperty(_)){var A=f[_];delete f[_],A()}},S=function(_){T.call(_.data)};l&&d||(l=function(_){for(var A=[],I=1;arguments.length>I;)A.push(arguments[I++]);return f[++E]=function(){p(typeof _=="function"?_:Function(_),A)},h(E),E},d=function(_){delete f[_]},n("./_cof")(r)=="process"?h=function(_){r.nextTick(s(T,_,1))}:x&&x.now?h=function(_){x.now(s(T,_,1))}:c?(g=new c,i=g.port2,g.port1.onmessage=S,h=s(i.postMessage,i,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(h=function(_){o.postMessage(_+"","*")},o.addEventListener("message",S,!1)):h="onreadystatechange"in e("script")?function(m){u.appendChild(e("script")).onreadystatechange=function(){u.removeChild(this),T.call(m)}}:function(m){setTimeout(s(T,m,1),0)}),O.exports={set:l,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,O,b){var h=n("./_to-integer"),g=Math.max,i=Math.min;O.exports=function(s,p){return s=h(s),s<0?g(s+p,0):i(s,p)}},{"./_to-integer":122}],122:[function(n,O,b){var h=Math.ceil,g=Math.floor;O.exports=function(i){return isNaN(i=+i)?0:(i>0?g:h)(i)}},{}],123:[function(n,O,b){var h=n("./_iobject"),g=n("./_defined");O.exports=function(i){return h(g(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,O,b){var h=n("./_to-integer"),g=Math.min;O.exports=function(i){return i>0?g(h(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,O,b){var h=n("./_defined");O.exports=function(g){return Object(h(g))}},{"./_defined":68}],126:[function(n,O,b){var h=n("./_is-object");O.exports=function(g,i){if(!h(g))return g;var s,p;if(i&&typeof(s=g.toString)=="function"&&!h(p=s.call(g)))return p;if(typeof(s=g.valueOf)=="function"&&!h(p=s.call(g)))return p;if(!i&&typeof(s=g.toString)=="function"&&!h(p=s.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,O,b){var h=0,g=Math.random();O.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++h+g).toString(36))}},{}],128:[function(n,O,b){var h=n("./_global"),g=h.navigator;O.exports=g&&g.userAgent||""},{"./_global":76}],129:[function(n,O,b){var h=n("./_global"),g=n("./_core"),i=n("./_library"),s=n("./_wks-ext"),p=n("./_object-dp").f;O.exports=function(u){var e=g.Symbol||(g.Symbol=i?{}:h.Symbol||{});u.charAt(0)=="_"||u in e||p(e,u,{value:s.f(u)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,O,b){b.f=n("./_wks")},{"./_wks":131}],131:[function(n,O,b){var h=n("./_shared")("wks"),g=n("./_uid"),i=n("./_global").Symbol,s=typeof i=="function";(O.exports=function(p){return h[p]||(h[p]=s&&i[p]||(s?i:g)("Symbol."+p))}).store=h},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,O,b){var h=n("./_classof"),g=n("./_wks")("iterator"),i=n("./_iterators");O.exports=n("./_core").getIteratorMethod=function(s){if(s!=null)return s[g]||s["@@iterator"]||i[h(s)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,O,b){"use strict";var h=n("./_ctx"),g=n("./_export"),i=n("./_to-object"),s=n("./_iter-call"),p=n("./_is-array-iter"),u=n("./_to-length"),e=n("./_create-property"),o=n("./core.get-iterator-method");g(g.S+g.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(l){var d,c,x,E,f=i(l),T=typeof this=="function"?this:Array,S=arguments.length,m=S>1?arguments[1]:void 0,_=m!==void 0,A=0,I=o(f);if(_&&(m=h(m,S>2?arguments[2]:void 0,2)),I==null||T==Array&&p(I))for(d=u(f.length),c=new T(d);d>A;A++)e(c,A,_?m(f[A],A):f[A]);else for(E=I.call(f),c=new T;!(x=E.next()).done;A++)e(c,A,_?s(E,m,[x.value,A],!0):x.value);return c.length=A,c}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,O,b){"use strict";var h=n("./_add-to-unscopables"),g=n("./_iter-step"),i=n("./_iterators"),s=n("./_to-iobject");O.exports=n("./_iter-define")(Array,"Array",function(p,u){this._t=s(p),this._i=0,this._k=u},function(){var p=this._t,u=this._k,e=this._i++;return!p||e>=p.length?(this._t=void 0,g(1)):u=="keys"?g(0,e):u=="values"?g(0,p[e]):g(0,[e,p[e]])},"values"),i.Arguments=i.Array,h("keys"),h("values"),h("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,O,b){"use strict";var h=n("./_is-object"),g=n("./_object-gpo"),i=n("./_wks")("hasInstance"),s=Function.prototype;i in s||n("./_object-dp").f(s,i,{value:function(u){if(typeof this!="function"||!h(u))return!1;if(!h(this.prototype))return u instanceof this;for(;u=g(u);)if(this.prototype===u)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,O,b){var h=n("./_export");h(h.S+h.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,O,b){var h=n("./_export");h(h.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,O,b){var h=n("./_export");h(h.S+h.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,O,b){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,O,b){var h=n("./_to-object"),g=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return g(h(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,O,b){var h=n("./_to-object"),g=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return g(h(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,O,b){arguments[4][36][0].apply(b,arguments)},{dup:36}],143:[function(n,O,b){"use strict";var h,g,i,s,p=n("./_library"),u=n("./_global"),e=n("./_ctx"),o=n("./_classof"),r=n("./_export"),l=n("./_is-object"),d=n("./_a-function"),c=n("./_an-instance"),x=n("./_for-of"),E=n("./_species-constructor"),f=n("./_task").set,T=n("./_microtask")(),S=n("./_new-promise-capability"),m=n("./_perform"),_=n("./_user-agent"),A=n("./_promise-resolve"),I=u.TypeError,w=u.process,R=w&&w.versions,C=R&&R.v8||"",M=u.Promise,j=o(w)=="process",X=function(){},H=g=S.f,q=!!function(){try{var N=M.resolve(1),F=(N.constructor={})[n("./_wks")("species")]=function(V){V(X,X)};return(j||typeof PromiseRejectionEvent=="function")&&N.then(X)instanceof F&&C.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(V){}}(),Q=function(F){var V;return!(!l(F)||typeof(V=F.then)!="function")&&V},U=function(F,V){if(!F._n){F._n=!0;var Y=F._c;T(function(){for(var oe=F._v,te=F._s==1,ue=0;Y.length>ue;)!function(fe){var Z,J,ie,G=te?fe.ok:fe.fail,z=fe.resolve,re=fe.reject,ne=fe.domain;try{G?(te||(F._h==2&&W(F),F._h=1),G===!0?Z=oe:(ne&&ne.enter(),Z=G(oe),ne&&(ne.exit(),ie=!0)),Z===fe.promise?re(I("Promise-chain cycle")):(J=Q(Z))?J.call(Z,z,re):z(Z)):re(oe)}catch(le){ne&&!ie&&ne.exit(),re(le)}}(Y[ue++]);F._c=[],F._n=!1,V&&!F._h&&ee(F)})}},ee=function(F){f.call(u,function(){var V,Y,oe,te=F._v,ue=$(F);if(ue&&(V=m(function(){j?w.emit("unhandledRejection",te,F):(Y=u.onunhandledrejection)?Y({promise:F,reason:te}):(oe=u.console)&&oe.error&&oe.error("Unhandled promise rejection",te)}),F._h=j||$(F)?2:1),F._a=void 0,ue&&V.e)throw V.v})},$=function(F){return F._h!==1&&(F._a||F._c).length===0},W=function(F){f.call(u,function(){var V;j?w.emit("rejectionHandled",F):(V=u.onrejectionhandled)&&V({promise:F,reason:F._v})})},L=function(F){var V=this;V._d||(V._d=!0,V=V._w||V,V._v=F,V._s=2,V._a||(V._a=V._c.slice()),U(V,!0))},D=function N(F){var V,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===F)throw I("Promise can't be resolved itself");(V=Q(F))?T(function(){var oe={_w:Y,_d:!1};try{V.call(F,e(N,oe,1),e(L,oe,1))}catch(te){L.call(oe,te)}}):(Y._v=F,Y._s=1,U(Y,!1))}catch(oe){L.call({_w:Y,_d:!1},oe)}}};q||(M=function(F){c(this,M,"Promise","_h"),d(F),h.call(this);try{F(e(D,this,1),e(L,this,1))}catch(V){L.call(this,V)}},h=function(F){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},h.prototype=n("./_redefine-all")(M.prototype,{then:function(F,V){var Y=H(E(this,M));return Y.ok=typeof F!="function"||F,Y.fail=typeof V=="function"&&V,Y.domain=j?w.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&U(this,!1),Y.promise},catch:function(F){return this.then(void 0,F)}}),i=function(){var F=new h;this.promise=F,this.resolve=e(D,F,1),this.reject=e(L,F,1)},S.f=H=function(F){return F===M||F===s?new i(F):g(F)}),r(r.G+r.W+r.F*!q,{Promise:M}),n("./_set-to-string-tag")(M,"Promise"),n("./_set-species")("Promise"),s=n("./_core").Promise,r(r.S+r.F*!q,"Promise",{reject:function(F){var V=H(this);return(0,V.reject)(F),V.promise}}),r(r.S+r.F*(p||!q),"Promise",{resolve:function(F){return A(p&&this===s?M:this,F)}}),r(r.S+r.F*!(q&&n("./_iter-detect")(function(N){M.all(N).catch(X)})),"Promise",{all:function(F){var V=this,Y=H(V),oe=Y.resolve,te=Y.reject,ue=m(function(){var fe=[],Z=0,J=1;x(F,!1,function(ie){var G=Z++,z=!1;fe.push(void 0),J++,V.resolve(ie).then(function(re){z||(z=!0,fe[G]=re,--J||oe(fe))},te)}),--J||oe(fe)});return ue.e&&te(ue.v),Y.promise},race:function(F){var V=this,Y=H(V),oe=Y.reject,te=m(function(){x(F,!1,function(ue){V.resolve(ue).then(Y.resolve,oe)})});return te.e&&oe(te.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,O,b){var h=n("./_export"),g=n("./_to-absolute-index"),i=String.fromCharCode,s=String.fromCodePoint;h(h.S+h.F*(!!s&&s.length!=1),"String",{fromCodePoint:function(u){for(var e,o=[],r=arguments.length,l=0;r>l;){if(e=+arguments[l++],g(e,1114111)!==e)throw RangeError(e+" is not a valid code point");o.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return o.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,O,b){"use strict";var h=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,i=this._t,s=this._i;return s>=i.length?{value:void 0,done:!0}:(g=h(i,s),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,O,b){"use strict";var h=n("./_global"),g=n("./_has"),i=n("./_descriptors"),s=n("./_export"),p=n("./_redefine"),u=n("./_meta").KEY,e=n("./_fails"),o=n("./_shared"),r=n("./_set-to-string-tag"),l=n("./_uid"),d=n("./_wks"),c=n("./_wks-ext"),x=n("./_wks-define"),E=n("./_enum-keys"),f=n("./_is-array"),T=n("./_an-object"),S=n("./_is-object"),m=n("./_to-iobject"),_=n("./_to-primitive"),A=n("./_property-desc"),I=n("./_object-create"),w=n("./_object-gopn-ext"),R=n("./_object-gopd"),C=n("./_object-dp"),M=n("./_object-keys"),j=R.f,X=C.f,H=w.f,q=h.Symbol,Q=h.JSON,U=Q&&Q.stringify,ee=d("_hidden"),$=d("toPrimitive"),W={}.propertyIsEnumerable,L=o("symbol-registry"),D=o("symbols"),N=o("op-symbols"),F=Object.prototype,V=typeof q=="function",Y=h.QObject,oe=!Y||!Y.prototype||!Y.prototype.findChild,te=i&&e(function(){return I(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a!=7})?function(P,v,y){var B=j(F,v);B&&delete F[v],X(P,v,y),B&&P!==F&&X(F,v,B)}:X,ue=function(v){var y=D[v]=I(q.prototype);return y._k=v,y},fe=V&&typeof q.iterator=="symbol"?function(P){return typeof P=="symbol"}:function(P){return P instanceof q},Z=function P(v,y,B){return v===F&&P(N,y,B),T(v),y=_(y,!0),T(B),g(D,y)?(B.enumerable?(g(v,ee)&&v[ee][y]&&(v[ee][y]=!1),B=I(B,{enumerable:A(0,!1)})):(g(v,ee)||X(v,ee,A(1,{})),v[ee][y]=!0),te(v,y,B)):X(v,y,B)},J=function(v,y){T(v);for(var B,K=E(y=m(y)),pe=0,ce=K.length;ce>pe;)Z(v,B=K[pe++],y[B]);return v},ie=function(v,y){return y===void 0?I(v):J(I(v),y)},G=function(v){var y=W.call(this,v=_(v,!0));return!(this===F&&g(D,v)&&!g(N,v))&&(!(y||!g(this,v)||!g(D,v)||g(this,ee)&&this[ee][v])||y)},z=function(v,y){if(v=m(v),y=_(y,!0),v!==F||!g(D,y)||g(N,y)){var B=j(v,y);return!B||!g(D,y)||g(v,ee)&&v[ee][y]||(B.enumerable=!0),B}},re=function(v){for(var y,B=H(m(v)),K=[],pe=0;B.length>pe;)g(D,y=B[pe++])||y==ee||y==u||K.push(y);return K},ne=function(v){for(var y,B=v===F,K=H(B?N:m(v)),pe=[],ce=0;K.length>ce;)!g(D,y=K[ce++])||B&&!g(F,y)||pe.push(D[y]);return pe};V||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var v=l(arguments.length>0?arguments[0]:void 0),y=function B(K){this===F&&B.call(N,K),g(this,ee)&&g(this[ee],v)&&(this[ee][v]=!1),te(this,v,A(1,K))};return i&&oe&&te(F,v,{configurable:!0,set:y}),ue(v)},p(q.prototype,"toString",function(){return this._k}),R.f=z,C.f=Z,n("./_object-gopn").f=w.f=re,n("./_object-pie").f=G,n("./_object-gops").f=ne,i&&!n("./_library")&&p(F,"propertyIsEnumerable",G,!0),c.f=function(P){return ue(d(P))}),s(s.G+s.W+s.F*!V,{Symbol:q});for(var le="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),k=0;le.length>k;)d(le[k++]);for(var t=M(d.store),a=0;t.length>a;)x(t[a++]);s(s.S+s.F*!V,"Symbol",{for:function(v){return g(L,v+="")?L[v]:L[v]=q(v)},keyFor:function(v){if(!fe(v))throw TypeError(v+" is not a symbol!");for(var y in L)if(L[y]===v)return y},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),s(s.S+s.F*!V,"Object",{create:ie,defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:z,getOwnPropertyNames:re,getOwnPropertySymbols:ne}),Q&&s(s.S+s.F*(!V||e(function(){var P=q();return U([P])!="[null]"||U({a:P})!="{}"||U(Object(P))!="{}"})),"JSON",{stringify:function(v){for(var y,B,K=[v],pe=1;arguments.length>pe;)K.push(arguments[pe++]);if(B=y=K[1],(S(y)||v!==void 0)&&!fe(v))return f(y)||(y=function(he,me){if(typeof B=="function"&&(me=B.call(this,he,me)),!fe(me))return me}),K[1]=y,U.apply(Q,K)}}),q.prototype[$]||n("./_hide")(q.prototype,$,q.prototype.valueOf),r(q,"Symbol"),r(Math,"Math",!0),r(h.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,O,b){"use strict";var h=n("./_export"),g=n("./_core"),i=n("./_global"),s=n("./_species-constructor"),p=n("./_promise-resolve");h(h.P+h.R,"Promise",{finally:function(e){var o=s(this,g.Promise||i.Promise),r=typeof e=="function";return this.then(r?function(l){return p(o,e()).then(function(){return l})}:e,r?function(l){return p(o,e()).then(function(){throw l})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,O,b){"use strict";var h=n("./_export"),g=n("./_new-promise-capability"),i=n("./_perform");h(h.S,"Promise",{try:function(p){var u=g.f(this),e=i(p);return(e.e?u.reject:u.resolve)(e.v),u.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,O,b){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,O,b){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,O,b){n("./es6.array.iterator");for(var h=n("./_global"),g=n("./_hide"),i=n("./_iterators"),s=n("./_wks")("toStringTag"),p="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(","),u=0;u0?"-":"+")+s(100*Math.floor(Math.abs(j)/60)+Math.abs(j)%60,4),S:["th","st","nd","rd"][m%10>3?0:(m%100-m%10!=10)*m%10],W:X,N:H};return x.replace(r,function(Q){return Q in q?q[Q]:Q.slice(1,Q.length-1)})}}();o.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},o.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof de=="function"&&de.amd?de(function(){return o}):(b===void 0?"undefined":(0,g.default)(b))==="object"?O.exports=o:i.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,O,b){(function(h){function g(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+b.humanize(this.diff),o){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var l=0,d=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(l++,c==="%c"&&(d=l))}),e.splice(d,0,r)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(e){try{e==null?b.storage.removeItem("debug"):b.storage.debug=e}catch(o){}}function u(){var e;try{e=b.storage.debug}catch(o){}return!e&&h!==void 0&&"env"in h&&(e=h.env.DEBUG),e}b=O.exports=n("./debug"),b.log=s,b.formatArgs=i,b.save=p,b.load=u,b.useColors=g,b.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),b.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],b.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},b.enable(u())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,O,b){function h(o){var r,l=0;for(r in o)l=(l<<5)-l+o.charCodeAt(r),l|=0;return b.colors[Math.abs(l)%b.colors.length]}function g(o){function r(){if(r.enabled){var l=r,d=+new Date,c=d-(e||d);l.diff=c,l.prev=e,l.curr=d,e=d;for(var x=new Array(arguments.length),E=0;E]/;O.exports=h},{}],158:[function(n,O,b){function h(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function g(u){return typeof u=="function"}function i(u){return typeof u=="number"}function s(u){return typeof u=="object"&&u!==null}function p(u){return u===void 0}O.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0,h.defaultMaxListeners=10,h.prototype.setMaxListeners=function(u){if(!i(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},h.prototype.emit=function(u){var e,o,r,l,d,c;if(this._events||(this._events={}),u==="error"&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var x=new Error('Uncaught, unspecified "error" event. ('+e+")");throw x.context=e,x}if(o=this._events[u],p(o))return!1;if(g(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),o.apply(this,l)}else if(s(o))for(l=Array.prototype.slice.call(arguments,1),c=o.slice(),r=c.length,d=0;d0&&this._events[u].length>o&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace()),this},h.prototype.on=h.prototype.addListener,h.prototype.once=function(u,e){function o(){this.removeListener(u,o),r||(r=!0,e.apply(this,arguments))}if(!g(e))throw TypeError("listener must be a function");var r=!1;return o.listener=e,this.on(u,o),this},h.prototype.removeListener=function(u,e){var o,r,l,d;if(!g(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(o=this._events[u],l=o.length,r=-1,o===e||g(o.listener)&&o.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(s(o)){for(d=l;d-- >0;)if(o[d]===e||o[d].listener&&o[d].listener===e){r=d;break}if(r<0)return this;o.length===1?(o.length=0,delete this._events[u]):o.splice(r,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},h.prototype.removeAllListeners=function(u){var e,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[u],g(o))this.removeListener(u,o);else if(o)for(;o.length;)this.removeListener(u,o[o.length-1]);return delete this._events[u],this},h.prototype.listeners=function(u){return this._events&&this._events[u]?g(this._events[u])?[this._events[u]]:this._events[u].slice():[]},h.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(g(e))return 1;if(e)return e.length}return 0},h.listenerCount=function(u,e){return u.listenerCount(e)}},{}],159:[function(n,O,b){var h=n("http"),g=O.exports;for(var i in h)h.hasOwnProperty(i)&&(g[i]=h[i]);g.request=function(s,p){return s||(s={}),s.scheme="https",s.protocol="https:",h.request.call(this,s,p)}},{http:196}],160:[function(n,O,b){"use strict";var h=n("util"),g=n("ms");O.exports=function(i){if(typeof i=="number")return i;var s=g(i);if(s===void 0){var p=new Error(h.format("humanize-ms(%j) result undefined",i));console.warn(p.stack)}return s}},{ms:169,util:207}],161:[function(n,O,b){b.read=function(h,g,i,s,p){var u,e,o=8*p-s-1,r=(1<>1,d=-7,c=i?p-1:0,x=i?-1:1,E=h[g+c];for(c+=x,u=E&(1<<-d)-1,E>>=-d,d+=o;d>0;u=256*u+h[g+c],c+=x,d-=8);for(e=u&(1<<-d)-1,u>>=-d,d+=s;d>0;e=256*e+h[g+c],c+=x,d-=8);if(u===0)u=1-l;else{if(u===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,s),u-=l}return(E?-1:1)*e*Math.pow(2,u-s)},b.write=function(h,g,i,s,p,u){var e,o,r,l=8*u-p-1,d=(1<>1,x=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:u-1,f=s?1:-1,T=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(o=isNaN(g)?1:0,e=d):(e=Math.floor(Math.log(g)/Math.LN2),g*(r=Math.pow(2,-e))<1&&(e--,r*=2),g+=e+c>=1?x/r:x*Math.pow(2,1-c),g*r>=2&&(e++,r/=2),e+c>=d?(o=0,e=d):e+c>=1?(o=(g*r-1)*Math.pow(2,p),e+=c):(o=g*Math.pow(2,c-1)*Math.pow(2,p),e=0));p>=8;h[i+E]=255&o,E+=f,o/=256,p-=8);for(e=e<0;h[i+E]=255&e,E+=f,e/=256,l-=8);h[i+E-f]|=128*T}},{}],162:[function(n,O,b){typeof Object.create=="function"?O.exports=function(h,g){h.super_=g,h.prototype=Object.create(g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:O.exports=function(h,g){h.super_=g;var i=function(){};i.prototype=g.prototype,h.prototype=new i,h.prototype.constructor=h}},{}],163:[function(n,O,b){function h(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function g(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&h(i.slice(0,0))}O.exports=function(i){return i!=null&&(h(i)||g(i)||!!i._isBuffer)}},{}],164:[function(n,O,b){!function(h){function g(p){return s.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(s.call(p))||/^.*classCallCheck\(/.test(g(p)))}var s=Function.prototype.toString;b!==void 0?(O!==void 0&&O.exports&&(b=O.exports=i),b.isClass=i):typeof de=="function"&&de.amd?de([],function(){return i}):h.isClass=i}(this)},{}],165:[function(n,O,b){"use strict";function h(u){var e=u.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var g=n("core-util-is"),i=n("isstream"),s=n("is-class");Object.keys(g).map(function(u){b[h(u)]=g[u]}),b.stream=i,b.readableStream=i.isReadable,b.writableStream=i.isWritable,b.duplexStream=i.isDuplex,b.class=s,b.finite=function(u){return Number.isFinite(u)},b.NaN=function(u){return Number.isNaN(u)},b.generator=function(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"},b.generatorFunction=function(u){return u&&u.constructor&&u.constructor.name==="GeneratorFunction"},b.asyncFunction=function(u){return u&&u.constructor&&u.constructor.name==="AsyncFunction"},b.promise=function(u){return u&&typeof u.then=="function"};var p=Math.pow(2,31);b.int=function(u){return g.isNumber(u)&&u%1==0},b.int32=function(u){return b.int(u)&&u
=-p},b.long=function(u){return b.int(u)&&(u>=p||u<-p)},b.Long=function(u){return b.object(u)&&b.number(u.high)&&b.number(u.low)},b.double=function(u){return g.isNumber(u)&&!isNaN(u)&&u%1!=0},b.date=function(u){return u instanceof Date},b.regExp=function(u){return u instanceof RegExp},b.regexp=b.regExp,b.error=function(u){return u instanceof Error},b.array=function(u){return Array.isArray(u)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,O,b){var h={}.toString;O.exports=Array.isArray||function(g){return h.call(g)=="[object Array]"}},{}],167:[function(n,O,b){function h(u){return u instanceof p.Stream}function g(u){return h(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function i(u){return h(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function s(u){return g(u)&&i(u)}var p=n("stream");O.exports=h,O.exports.isReadable=g,O.exports.isWritable=i,O.exports.isDuplex=s},{stream:195}],168:[function(n,O,b){"use strict";function h(i,s,p){if(!i)throw new TypeError("argument dest is required");if(!s)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(s).forEach(function(u){if(p||!g.call(i,u)){var e=Object.getOwnPropertyDescriptor(s,u);Object.defineProperty(i,u,e)}}),i}O.exports=h;var g=Object.prototype.hasOwnProperty},{}],169:[function(n,O,b){function h(l){if(l=String(l),!(l.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(d){var c=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*u;case"seconds":case"second":case"secs":case"sec":case"s":return c*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function g(l){return l>=o?Math.round(l/o)+"d":l>=e?Math.round(l/e)+"h":l>=u?Math.round(l/u)+"m":l>=p?Math.round(l/p)+"s":l+"ms"}function i(l){return s(l,o,"day")||s(l,e,"hour")||s(l,u,"minute")||s(l,p,"second")||l+" ms"}function s(l,d,c){if(!(l0)return h(l);if(c==="number"&&isNaN(l)===!1)return d.long?i(l):g(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(n,O,b){(function(h){function g(u,e){for(var o=0,r=u.length-1;r>=0;r--){var l=u[r];l==="."?u.splice(r,1):l===".."?(u.splice(r,1),o++):o&&(u.splice(r,1),o--)}if(e)for(;o--;o)u.unshift("..");return u}function i(u){typeof u!="string"&&(u+="");var e,o=0,r=-1,l=!0;for(e=u.length-1;e>=0;--e)if(u.charCodeAt(e)===47){if(!l){o=e+1;break}}else r===-1&&(l=!1,r=e+1);return r===-1?"":u.slice(o,r)}function s(u,e){if(u.filter)return u.filter(e);for(var o=[],r=0;r=-1&&!e;o--){var r=o>=0?arguments[o]:h.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(u=r+"/"+u,e=r.charAt(0)==="/")}return u=g(s(u.split("/"),function(l){return!!l}),!e).join("/"),(e?"/":"")+u||"."},b.normalize=function(u){var e=b.isAbsolute(u),o=p(u,-1)==="/";return u=g(s(u.split("/"),function(r){return!!r}),!e).join("/"),u||e||(u="."),u&&o&&(u+="/"),(e?"/":"")+u},b.isAbsolute=function(u){return u.charAt(0)==="/"},b.join=function(){var u=Array.prototype.slice.call(arguments,0);return b.normalize(s(u,function(e,o){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},b.relative=function(u,e){function o(f){for(var T=0;T=0&&f[S]==="";S--);return T>S?[]:f.slice(T,S-T+1)}u=b.resolve(u).substr(1),e=b.resolve(e).substr(1);for(var r=o(u.split("/")),l=o(e.split("/")),d=Math.min(r.length,l.length),c=d,x=0;x=1;--d)if((e=u.charCodeAt(d))===47){if(!l){r=d;break}}else l=!1;return r===-1?o?"/":".":o&&r===1?"/":u.slice(0,r)},b.basename=function(u,e){var o=i(u);return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o},b.extname=function(u){typeof u!="string"&&(u+="");for(var e=-1,o=0,r=-1,l=!0,d=0,c=u.length-1;c>=0;--c){var x=u.charCodeAt(c);if(x!==47)r===-1&&(l=!1,r=c+1),x===46?e===-1?e=c:d!==1&&(d=1):e!==-1&&(d=-1);else if(!l){o=c+1;break}}return e===-1||r===-1||d===0||d===1&&e===r-1&&e===o+1?"":u.slice(e,r)};var p="ab".substr(-1)==="b"?function(u,e,o){return u.substr(e,o)}:function(u,e,o){return e<0&&(e=u.length+e),u.substr(e,o)}}).call(this,n("_process"))},{_process:173}],171:[function(n,O,b){(function(h){(function(){"use strict";function g(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function i(C,M,j){var X={"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 M&&j&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(X=X[/[\d.]+$/.exec(C)])&&(C="Windows "+X),C=String(C),M&&j&&(C=C.replace(RegExp(M,"i"),j)),C=p(C.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 s(C,M){var j=-1,X=C?C.length:0;if(typeof X=="number"&&X>-1&&X<=m)for(;++j3&&"WebKit"||/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(C)&&(t=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(re=[U]),ne=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(ne+=" Mobile",t="Windows Phone "+(/\+$/.test(U)?U:U+".x"),J.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(ne="IE Mobile",t="Windows Phone 8.x",J.unshift("desktop mode"),z||(z=(/\brv:([\d.]+)/.exec(C)||0)[1])):ne!="IE"&&re=="Trident"&&(U=/\brv:([\d.]+)/.exec(C))&&(ne&&J.push("identifying as "+ne+(z?" "+z:"")),ne="IE",z=U[1]),G){if(o(X,"global"))if(F&&(U=F.lang.System,Z=U.getProperty("os.arch"),t=t||U.getProperty("os.name")+" "+U.getProperty("os.version")),V){try{z=X.require("ringo/engine").version.join("."),ne="RingoJS"}catch(P){(U=X.system)&&U.global.system==X.system&&(ne="Narwhal",t||(t=U[0].os||null))}ne||(ne="Rhino")}else typeof X.process=="object"&&!X.process.browser&&(U=X.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(J.push("Node "+U.versions.node),ne="Electron",z=U.versions.electron):typeof U.versions.nw=="string"&&(J.push("Chromium "+z,"Node "+U.versions.node),ne="NW.js",z=U.versions.nw)),ne||(ne="Node.js",Z=U.arch,t=U.platform,z=/[\d.]+/.exec(U.version),z=z?z[0]:null));else e(U=X.runtime)==W?(ne="Adobe AIR",t=U.flash.system.Capabilities.os):e(U=X.phantom)==N?(ne="PhantomJS",z=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof te.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(C))?(z=[z,te.documentMode],(U=+U[1]+4)!=z[1]&&(J.push("IE "+z[1]+" mode"),re&&(re[1]=""),z[1]=U),z=ne=="IE"?String(z[1].toFixed(1)):z[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ne)&&(J.push("masking as "+ne+" "+z),ne="IE",z="11.0",re=["Trident"],t="Windows");t=t&&p(t)}if(z&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(z)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(G&&q.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ie=/b/i.test(U)?"beta":"alpha",z=z.replace(RegExp(U+"\\+?$"),"")+(ie=="beta"?oe:Y)+(/\d+\+?/.exec(U)||"")),ne=="Fennec"||ne=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ne="Firefox Mobile";else if(ne=="Maxthon"&&z)z=z.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(le))le=="Xbox 360"&&(t=null),le=="Xbox 360"&&/\bIEMobile\b/.test(C)&&J.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||le||/Browser|Mobi/.test(ne))||t!="Windows CE"&&!/Mobi/i.test(C))if(ne=="IE"&&G)try{X.external===null&&J.unshift("platform preview")}catch(P){J.unshift("embedded")}else(/\bBlackBerry\b/.test(le)||/\bBB10\b/.test(C))&&(U=(RegExp(le.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||z)?(U=[U,/BB10/.test(C)],t=(U[1]?(le=null,k="BlackBerry"):"Device Software")+" "+U[0],z=null):this!=u&&le!="Wii"&&(G&&ue||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(C)||ne=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ne=="IE"&&(t&&!/^Win/.test(t)&&z>5.5||/\bWindows XP\b/.test(t)&&z>8||z==8&&!/\bTrident\b/.test(C)))&&!_.test(U=c.call(u,C.replace(_,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),_.test(ne)?(/\bIE\b/.test(U)&&t=="Mac OS"&&(t=null),U="identify"+U):(U="mask"+U,ne=fe?p(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(t=null),G||(z=null)),re=["Presto"],J.push(U));else ne+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],ne=="Safari"&&U[1].slice(-1)=="+"?(ne="WebKit Nightly",ie="alpha",z=U[1].slice(0,-1)):z!=U[1]&&z!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1])||(z=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&re=="WebKit"&&(re=["Blink"]),G&&($||U[1])?(re&&(re[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:re!="Blink"?"27":"28")):(re&&(re[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),re&&(re[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),ne=="Safari"&&(!z||parseInt(z)>45)&&(z=U)),ne=="Opera"&&(U=/\bzbov|zvav$/.exec(t))?(ne+=" ",J.unshift("desktop mode"),U=="zvav"?(ne+="Mini",z=null):ne+="Mobile",t=t.replace(RegExp(" *"+U+"$"),"")):ne=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(J.unshift("desktop mode"),ne="Chrome Mobile",z=null,/\bOS X\b/.test(t)?(k="Apple",t="iOS 4.3+"):t=null),z&&z.indexOf(U=/[\d.]+$/.exec(t))==0&&C.indexOf("/"+U+"-")>-1&&(t=d(t.replace(U,""))),re&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||ne!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ne)&&re[1])&&(U=re[re.length-1])&&J.push(U),J.length&&(J=["("+J.join("; ")+")"]),k&&le&&le.indexOf(k)<0&&J.push("on "+k),le&&J.push((/^on /.test(J[J.length-1])?"":"on ")+le),t&&(U=/ ([\d.+]+)$/.exec(t),ee=U&&t.charAt(t.length-U[0].length-1)=="/",t={architecture:32,family:U&&!ee?t.replace(U[0],""):t,version:U?U[1]:null,toString:function(){var v=this.version;return this.family+(v&&!ee?" "+v:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Z))&&!/\bi686\b/i.test(Z)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+U),"")),ne&&(/\bWOW64\b/i.test(C)||G&&/\w(?:86|32)$/.test(q.cpuClass||q.platform)&&!/\bWin64; x64\b/i.test(C))&&J.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ne=="Chrome"&&parseFloat(z)>=39&&(t.architecture=64),C||(C=null);var a={};return a.description=C,a.layout=re&&re[0],a.manufacturer=k,a.name=ne,a.prerelease=ie,a.product=le,a.ua=C,a.version=ne&&z,a.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},a.parse=c,a.toString=j,a.version&&J.unshift(z),a.name&&J.unshift(ne),t&&ne&&(t!=String(t).split(" ")[0]||t!=ne.split(" ")[0]&&!le)&&J.push(le?"("+t+")":"on "+t),J.length&&(a.description=J.join(" ")),a}var x={function:!0,object:!0},E=x[typeof window]&&window||this,f=x[typeof b]&&b,T=x[typeof O]&&O&&!O.nodeType&&O,S=f&&T&&typeof h=="object"&&h;!S||S.global!==S&&S.window!==S&&S.self!==S||(E=S);var m=Math.pow(2,53)-1,_=/\bOpera/,A=Object.prototype,I=A.hasOwnProperty,w=A.toString,R=c();typeof de=="function"&&typeof de.amd=="object"&&de.amd?(E.platform=R,de(function(){return R})):f&&T?u(R,function(C,M){f[M]=C}):E.platform=R}).call(this)}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,O,b){(function(h){"use strict";function g(i,s,p,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var e,o,r=arguments.length;switch(r){case 0:case 1:return h.nextTick(i);case 2:return h.nextTick(function(){i.call(null,s)});case 3:return h.nextTick(function(){i.call(null,s,p)});case 4:return h.nextTick(function(){i.call(null,s,p,u)});default:for(e=new Array(r-1),o=0;o1)for(var m=1;m1&&(V=F[0]+"@",D=F[1]),D=D.replace(U,"."),V+s(D.split("."),N).join(".")}function u(D){for(var N,F,V=[],Y=0,oe=D.length;Y=55296&&N<=56319&&Y65535&&(N-=65536,F+=L(N>>>10&1023|55296),N=56320|1023&N),F+=L(N)}).join("")}function o(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:I}function r(D,N){return D+22+75*(D<26)-((N!=0)<<5)}function l(D,N,F){var V=0;for(D=F?W(D/M):D>>1,D+=W(D/N);D>$*R>>1;V+=I)D=W(D/$);return W(V+($+1)*D/(D+C))}function d(D){var N,F,V,Y,oe,te,ue,fe,Z,J,ie=[],G=D.length,z=0,re=X,ne=j;for(F=D.lastIndexOf(H),F<0&&(F=0),V=0;V=128&&i("not-basic"),ie.push(D.charCodeAt(V));for(Y=F>0?F+1:0;Y=G&&i("invalid-input"),fe=o(D.charCodeAt(Y++)),(fe>=I||fe>W((A-z)/te))&&i("overflow"),z+=fe*te,Z=ue<=ne?w:ue>=ne+R?R:ue-ne,!(feW(A/J)&&i("overflow"),te*=J;N=ie.length+1,ne=l(z-oe,N,oe==0),W(z/N)>A-re&&i("overflow"),re+=W(z/N),z%=N,ie.splice(z++,0,re)}return e(ie)}function c(D){var N,F,V,Y,oe,te,ue,fe,Z,J,ie,G,z,re,ne,le=[];for(D=u(D),G=D.length,N=X,F=0,oe=j,te=0;te=N&&ieW((A-F)/z)&&i("overflow"),F+=(ue-N)*z,N=ue,te=0;teA&&i("overflow"),ie==N){for(fe=F,Z=I;J=Z<=oe?w:Z>=oe+R?R:Z-oe,!(fe= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=I-w,W=Math.floor,L=String.fromCharCode;if(m={version:"1.4.1",ucs2:{decode:u,encode:e},decode:d,encode:c,toASCII:E,toUnicode:x},typeof de=="function"&&typeof de.amd=="object"&&de.amd)de("punycode",function(){return m});else if(f&&T)if(O.exports==f)T.exports=m;else for(_ in m)m.hasOwnProperty(_)&&(f[_]=m[_]);else g.punycode=m}(this)}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,O,b){"use strict";function h(i,s){return Object.prototype.hasOwnProperty.call(i,s)}O.exports=function(i,s,p,u){s=s||"&",p=p||"=";var e={};if(typeof i!="string"||i.length===0)return e;var o=/\+/g;i=i.split(s);var r=1e3;u&&typeof u.maxKeys=="number"&&(r=u.maxKeys);var l=i.length;r>0&&l>r&&(l=r);for(var d=0;d=0?(c=T.substr(0,S),x=T.substr(S+1)):(c=T,x=""),E=decodeURIComponent(c),f=decodeURIComponent(x),h(e,E)?g(e[E])?e[E].push(f):e[E]=[e[E],f]:e[E]=f}return e};var g=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,O,b){"use strict";function h(p,u){if(p.map)return p.map(u);for(var e=[],o=0;o0?(typeof z=="string"||k.objectMode||(0,ee.default)(z)===F.prototype||(z=i(z)),ne?k.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):r(G,k,z,!0):k.ended?G.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!re?(z=k.decoder.write(z),k.objectMode||z.length!==0?r(G,k,z,!1):S(G,k)):r(G,k,z,!1))):ne||(k.reading=!1)}return d(k)}function r(G,z,re,ne){z.flowing&&z.length===0&&!z.sync?(G.emit("data",re),G.read(0)):(z.length+=z.objectMode?1:re.length,ne?z.buffer.unshift(re):z.buffer.push(re),z.needReadable&&f(G)),S(G,z)}function l(G,z){var re;return s(z)||typeof z=="string"||z===void 0||G.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re}function d(G){return!G.ended&&(G.needReadable||G.length=ie?G=ie:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}function x(G,z){return G<=0||z.length===0&&z.ended?0:z.objectMode?1:G!==G?z.flowing&&z.length?z.buffer.head.data.length:z.length:(G>z.highWaterMark&&(z.highWaterMark=c(G)),G<=z.length?G:z.ended?z.length:(z.needReadable=!0,0))}function E(G,z){if(!z.ended){if(z.decoder){var re=z.decoder.end();re&&re.length&&(z.buffer.push(re),z.length+=z.objectMode?1:re.length)}z.ended=!0,f(G)}}function f(G){var z=G._readableState;z.needReadable=!1,z.emittedReadable||(te("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?$.nextTick(T,G):T(G))}function T(G){te("emit readable"),G.emit("readable"),R(G)}function S(G,z){z.readingMore||(z.readingMore=!0,$.nextTick(m,G,z))}function m(G,z){for(var re=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length=z.length?(re=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):re=M(G,z.buffer,z.decoder),re}function M(G,z,re){var ne;return Gk.length?k.length:G;if(t===k.length?le+=k:le+=k.slice(0,G),(G-=t)===0){t===k.length?(++ne,re.next?z.head=re.next:z.head=z.tail=null):(z.head=re,re.data=k.slice(t));break}++ne}return z.length-=ne,le}function X(G,z){var re=F.allocUnsafe(G),ne=z.head,le=1;for(ne.data.copy(re),G-=ne.data.length;ne=ne.next;){var k=ne.data,t=G>k.length?k.length:G;if(k.copy(re,re.length-G,0,t),(G-=t)===0){t===k.length?(++le,ne.next?z.head=ne.next:z.head=z.tail=null):(z.head=ne,ne.data=k.slice(t));break}++le}return z.length-=le,re}function H(G){var z=G._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,$.nextTick(q,z,G))}function q(G,z){G.endEmitted||G.length!==0||(G.endEmitted=!0,z.readable=!1,z.emit("end"))}function Q(G,z){for(var re=0,ne=G.length;re=z.highWaterMark||z.ended))return te("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?H(this):f(this),null;if((G=x(G,z))===0&&z.ended)return z.length===0&&H(this),null;var ne=z.needReadable;te("need readable",ne),(z.length===0||z.length-G0?C(G,z):null,le===null?(z.needReadable=!0,G=0):z.length-=G,z.length===0&&(z.ended||(z.needReadable=!0),re!==G&&z.ended&&H(this)),le!==null&&this.emit("data",le),le},e.prototype._read=function(G){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(G,z){function re(ye,ge){te("onunpipe"),ye===y&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,le())}function ne(){te("onend"),G.end()}function le(){te("cleanup"),G.removeListener("close",a),G.removeListener("finish",P),G.removeListener("drain",ce),G.removeListener("error",t),G.removeListener("unpipe",re),y.removeListener("end",ne),y.removeListener("end",v),y.removeListener("data",k),he=!0,!B.awaitDrain||G._writableState&&!G._writableState.needDrain||ce()}function k(ye){te("ondata"),me=!1,G.write(ye)!==!1||me||((B.pipesCount===1&&B.pipes===G||B.pipesCount>1&&Q(B.pipes,G)!==-1)&&!he&&(te("false write response, pause",y._readableState.awaitDrain),y._readableState.awaitDrain++,me=!0),y.pause())}function t(ye){te("onerror",ye),v(),G.removeListener("error",t),D(G,"error")===0&&G.emit("error",ye)}function a(){G.removeListener("finish",P),v()}function P(){te("onfinish"),G.removeListener("close",a),v()}function v(){te("unpipe"),y.unpipe(G)}var y=this,B=this._readableState;switch(B.pipesCount){case 0:B.pipes=G;break;case 1:B.pipes=[B.pipes,G];break;default:B.pipes.push(G)}B.pipesCount+=1,te("pipe count=%d opts=%j",B.pipesCount,z);var K=(!z||z.end!==!1)&&G!==h.stdout&&G!==h.stderr,pe=K?ne:v;B.endEmitted?$.nextTick(pe):y.once("end",pe),G.on("unpipe",re);var ce=_(y);G.on("drain",ce);var he=!1,me=!1;return y.on("data",k),p(G,"error",t),G.once("close",a),G.once("finish",P),G.emit("pipe",y),B.flowing||(te("pipe resume"),y.resume()),G},e.prototype.unpipe=function(G){var z=this._readableState,re={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return G&&G!==z.pipes?this:(G||(G=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,G&&G.emit("unpipe",this,re),this);if(!G){var ne=z.pipes,le=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var k=0;k-1?W.default:L.nextTick;r.WritableState=o;var F=n("core-util-is");F.inherits=n("inherits");var V={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),oe=n("safe-buffer").Buffer,te=g.Uint8Array||function(){},ue=n("./internal/streams/destroy");F.inherits(r,Y),o.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,J=[];Z;)J.push(Z),Z=Z.next;return J},function(){try{Object.defineProperty(o.prototype,"buffer",{get:V.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Z){}}();var fe;typeof ee.default=="function"&&Q.default&&typeof Function.prototype[Q.default]=="function"?(fe=Function.prototype[Q.default],(0,H.default)(r,Q.default,{value:function(J){return!!fe.call(this,J)||this===r&&J&&J._writableState instanceof o}})):fe=function(J){return J instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Z,J,ie){var G=this._writableState,z=!1,re=!G.objectMode&&u(Z);return re&&!oe.isBuffer(Z)&&(Z=p(Z)),typeof J=="function"&&(ie=J,J=null),re?J="buffer":J||(J=G.defaultEncoding),typeof ie!="function"&&(ie=e),G.ended?l(this,ie):(re||d(this,G,Z,ie))&&(G.pendingcb++,z=x(this,G,re,Z,J,ie)),z},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,Z.writing||Z.corked||Z.finished||Z.bufferProcessing||!Z.bufferedRequest||A(this,Z))},r.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Z,J,ie){ie(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Z,J,ie){var G=this._writableState;typeof Z=="function"?(ie=Z,Z=null,J=null):typeof J=="function"&&(ie=J,J=null),Z!=null&&this.write(Z,J),G.corked&&(G.corked=1,this.uncork()),G.ending||G.finished||M(this,G,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=ue.destroy,r.prototype._undestroy=ue.undestroy,r.prototype._destroy=function(Z,J){this.end(),J(Z)}}).call(this,n("_process"),typeof we!="undefined"?we: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,O,b){"use strict";function h(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function g(p,u,e){p.copy(u,e)}var i=n("safe-buffer").Buffer,s=n("util");O.exports=function(){function p(){h(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(u){var e={data:u,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},p.prototype.unshift=function(u){var e={data:u,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},p.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(u){if(this.length===0)return"";for(var e=this.head,o=""+e.data;e=e.next;)o+=u+e.data;return o},p.prototype.concat=function(u){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var e=i.allocUnsafe(u>>>0),o=this.head,r=0;o;)g(o.data,e,r),r+=o.data.length,o=o.next;return e},p}(),s&&s.inspect&&s.inspect.custom&&(O.exports.prototype[s.inspect.custom]=function(){var p=s.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(n,O,b){"use strict";function h(p,u){var e=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(u?u(p):!p||this._writableState&&this._writableState.errorEmitted||s.nextTick(i,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(l){!u&&l?(s.nextTick(i,e,l),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(l)}),this)}function g(){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(p,u){p.emit("error",u)}var s=n("process-nextick-args");O.exports={destroy:h,undestroy:g}},{"process-nextick-args":172}],186:[function(n,O,b){"use strict";O.exports=n("events").EventEmitter},{events:158}],187:[function(n,O,b){O.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,O,b){b=O.exports=n("./lib/_stream_readable.js"),b.Stream=b,b.Readable=b,b.Writable=n("./lib/_stream_writable.js"),b.Duplex=n("./lib/_stream_duplex.js"),b.Transform=n("./lib/_stream_transform.js"),b.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,O,b){O.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,O,b){O.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,O,b){var h=function(){return this}()||Function("return this")(),g=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,i=g&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,O.exports=n("./runtime"),g)h.regeneratorRuntime=i;else try{delete h.regeneratorRuntime}catch(s){h.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,O,b){!function(h){"use strict";function g(W,L,D,N){var F=L&&L.prototype instanceof s?L:s,V=Object.create(F.prototype),Y=new x(N||[]);return V._invoke=r(W,D,Y),V}function i(W,L,D){try{return{type:"normal",arg:W.call(L,D)}}catch(N){return{type:"throw",arg:N}}}function s(){}function p(){}function u(){}function e(W){["next","throw","return"].forEach(function(L){W[L]=function(D){return this._invoke(L,D)}})}function o(W){function L(F,V,Y,oe){var te=i(W[F],W,V);if(te.type!=="throw"){var ue=te.arg,fe=ue.value;return fe&&typeof fe=="object"&&m.call(fe,"__await")?Promise.resolve(fe.__await).then(function(Z){L("next",Z,Y,oe)},function(Z){L("throw",Z,Y,oe)}):Promise.resolve(fe).then(function(Z){ue.value=Z,Y(ue)},oe)}oe(te.arg)}function D(F,V){function Y(){return new Promise(function(oe,te){L(F,V,oe,te)})}return N=N?N.then(Y,Y):Y()}var N;this._invoke=D}function r(W,L,D){var N=M;return function(F,V){if(N===X)throw new Error("Generator is already running");if(N===H){if(F==="throw")throw V;return f()}for(D.method=F,D.arg=V;;){var Y=D.delegate;if(Y){var oe=l(Y,D);if(oe){if(oe===q)continue;return oe}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(N===M)throw N=H,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);N=X;var te=i(W,L,D);if(te.type==="normal"){if(N=D.done?H:j,te.arg===q)continue;return{value:te.arg,done:D.done}}te.type==="throw"&&(N=H,D.method="throw",D.arg=te.arg)}}}function l(W,L){var D=W.iterator[L.method];if(D===T){if(L.delegate=null,L.method==="throw"){if(W.iterator.return&&(L.method="return",L.arg=T,l(W,L),L.method==="throw"))return q;L.method="throw",L.arg=new TypeError("The iterator does not provide a 'throw' method")}return q}var N=i(D,W.iterator,L.arg);if(N.type==="throw")return L.method="throw",L.arg=N.arg,L.delegate=null,q;var F=N.arg;return F?F.done?(L[W.resultName]=F.value,L.next=W.nextLoc,L.method!=="return"&&(L.method="next",L.arg=T),L.delegate=null,q):F:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,q)}function d(W){var L={tryLoc:W[0]};1 in W&&(L.catchLoc=W[1]),2 in W&&(L.finallyLoc=W[2],L.afterLoc=W[3]),this.tryEntries.push(L)}function c(W){var L=W.completion||{};L.type="normal",delete L.arg,W.completion=L}function x(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(d,this),this.reset(!0)}function E(W){if(W){var L=W[A];if(L)return L.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var D=-1,N=function F(){for(;++D=0;--F){var V=this.tryEntries[F],Y=V.completion;if(V.tryLoc==="root")return D("end");if(V.tryLoc<=this.prev){var oe=m.call(V,"catchLoc"),te=m.call(V,"finallyLoc");if(oe&&te){if(this.prev=0;--N){var F=this.tryEntries[N];if(F.tryLoc<=this.prev&&m.call(F,"finallyLoc")&&this.prev=0;--D){var N=this.tryEntries[D];if(N.finallyLoc===L)return this.complete(N.completion,N.afterLoc),c(N),q}},catch:function(L){for(var D=this.tryEntries.length-1;D>=0;--D){var N=this.tryEntries[D];if(N.tryLoc===L){var F=N.completion;if(F.type==="throw"){var V=F.arg;c(N)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(L,D,N){return this.delegate={iterator:E(L),resultName:D,nextLoc:N},this.method==="next"&&(this.arg=T),q}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,O,b){function h(p,u){for(var e in p)u[e]=p[e]}function g(p,u,e){return s(p,u,e)}var i=n("buffer"),s=i.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?O.exports=i:(h(i,b),b.Buffer=g),h(s,g),g.from=function(p,u,e){if(typeof p=="number")throw new TypeError("Argument must not be a number");return s(p,u,e)},g.alloc=function(p,u,e){if(typeof p!="number")throw new TypeError("Argument must be a number");var o=s(p);return u!==void 0?typeof e=="string"?o.fill(u,e):o.fill(u):o.fill(0),o},g.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return s(p)},g.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(p)}},{buffer:38}],194:[function(n,O,b){(function(h){"use strict";function g(f){return f&&f.__esModule?f:{default:f}}var i=n("babel-runtime/core-js/string/from-code-point"),s=g(i),p=n("babel-runtime/core-js/json/stringify"),u=g(p),e=n("babel-runtime/helpers/typeof"),o=g(e),r=n("babel-runtime/core-js/object/define-property"),l=g(r),d=n("babel-runtime/core-js/object/keys"),c=g(d),x=n("babel-runtime/core-js/object/create"),E=g(x);!function(f){function T(v,y){if(!(this instanceof T))return new T(v,y);var B=this;m(B),B.q=B.c="",B.bufferCheckPosition=f.MAX_BUFFER_LENGTH,B.opt=y||{},B.opt.lowercase=B.opt.lowercase||B.opt.lowercasetags,B.looseCase=B.opt.lowercase?"toLowerCase":"toUpperCase",B.tags=[],B.closed=B.closedRoot=B.sawRoot=!1,B.tag=B.error=null,B.strict=!!v,B.noscript=!(!v&&!B.opt.noscript),B.state=a.BEGIN,B.strictEntities=B.opt.strictEntities,B.ENTITIES=B.strictEntities?(0,E.default)(f.XML_ENTITIES):(0,E.default)(f.ENTITIES),B.attribList=[],B.opt.xmlns&&(B.ns=(0,E.default)(re)),B.trackPosition=B.opt.position!==!1,B.trackPosition&&(B.position=B.line=B.column=0),X(B,"onready")}function S(v){for(var y=Math.max(f.MAX_BUFFER_LENGTH,10),B=0,K=0,pe=ue.length;Ky)switch(ue[K]){case"textNode":q(v);break;case"cdata":H(v,"oncdata",v.cdata),v.cdata="";break;case"script":H(v,"onscript",v.script),v.script="";break;default:U(v,"Max buffer length exceeded: "+ue[K])}B=Math.max(B,ce)}var he=f.MAX_BUFFER_LENGTH-B;v.bufferCheckPosition=he+v.position}function m(v){for(var y=0,B=ue.length;y"||w(v)}function M(v,y){return v.test(y)}function j(v,y){return!M(v,y)}function X(v,y,B){v[y]&&v[y](B)}function H(v,y,B){v.textNode&&q(v),X(v,y,B)}function q(v){v.textNode=Q(v.opt,v.textNode),v.textNode&&X(v,"ontext",v.textNode),v.textNode=""}function Q(v,y){return v.trim&&(y=y.trim()),v.normalize&&(y=y.replace(/\s+/g," ")),y}function U(v,y){return q(v),v.trackPosition&&(y+=`
Line: `+v.line+`
Column: `+v.column+`
Char: `+v.c),y=new Error(y),v.error=y,X(v,"onerror",y),v}function ee(v){return v.sawRoot&&!v.closedRoot&&$(v,"Unclosed root tag"),v.state!==a.BEGIN&&v.state!==a.BEGIN_WHITESPACE&&v.state!==a.TEXT&&U(v,"Unexpected end"),q(v),v.c="",v.closed=!0,X(v,"onend"),T.call(v,v.strict,v.opt),v}function $(v,y){if((v===void 0?"undefined":(0,o.default)(v))!=="object"||!(v instanceof T))throw new Error("bad call to strictFail");v.strict&&U(v,y)}function W(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var y=v.tags[v.tags.length-1]||v,B=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(B.ns=y.ns),v.attribList.length=0,H(v,"onopentagstart",B)}function L(v,y){var B=v.indexOf(":"),K=B<0?["",v]:v.split(":"),pe=K[0],ce=K[1];return y&&v==="xmlns"&&(pe="xmlns",ce=""),{prefix:pe,local:ce}}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 y=L(v.attribName,!0),B=y.prefix,K=y.local;if(B==="xmlns")if(K==="xml"&&v.attribValue!==G)$(v,"xml: prefix must be bound to "+G+`
Actual: `+v.attribValue);else if(K==="xmlns"&&v.attribValue!==z)$(v,"xmlns: prefix must be bound to "+z+`
Actual: `+v.attribValue);else{var pe=v.tag,ce=v.tags[v.tags.length-1]||v;pe.ns===ce.ns&&(pe.ns=(0,E.default)(ce.ns)),pe.ns[K]=v.attribValue}v.attribList.push([v.attribName,v.attribValue])}else v.tag.attributes[v.attribName]=v.attribValue,H(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function N(v,y){if(v.opt.xmlns){var B=v.tag,K=L(v.tagName);B.prefix=K.prefix,B.local=K.local,B.uri=B.ns[K.prefix]||"",B.prefix&&!B.uri&&($(v,"Unbound namespace prefix: "+(0,u.default)(v.tagName)),B.uri=K.prefix);var pe=v.tags[v.tags.length-1]||v;B.ns&&pe.ns!==B.ns&&(0,c.default)(B.ns).forEach(function(xe){H(v,"onopennamespace",{prefix:xe,uri:B.ns[xe]})});for(var ce=0,he=v.attribList.length;ce ",void(v.state=a.TEXT);if(v.script){if(v.tagName!=="script")return v.script+=""+v.tagName+">",v.tagName="",void(v.state=a.SCRIPT);H(v,"onscript",v.script),v.script=""}var y=v.tags.length,B=v.tagName;v.strict||(B=B[v.looseCase]());for(var K=B;y--&&!(v.tags[y].name===K);)$(v,"Unexpected close tag");if(y<0)return $(v,"Unmatched closing tag: "+v.tagName),v.textNode+=""+v.tagName+">",void(v.state=a.TEXT);v.tagName=B;for(var pe=v.tags.length;pe-- >y;){var ce=v.tag=v.tags.pop();v.tagName=v.tag.name,H(v,"onclosetag",v.tagName);var he={};for(var me in ce.ns)he[me]=ce.ns[me];var ye=v.tags[v.tags.length-1]||v;v.opt.xmlns&&ce.ns!==ye.ns&&(0,c.default)(ce.ns).forEach(function(ge){var ae=ce.ns[ge];H(v,"onclosenamespace",{prefix:ge,uri:ae})})}y===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=a.TEXT}function V(v){var y,B=v.entity,K=B.toLowerCase(),pe="";return v.ENTITIES[B]?v.ENTITIES[B]:v.ENTITIES[K]?v.ENTITIES[K]:(B=K,B.charAt(0)==="#"&&(B.charAt(1)==="x"?(B=B.slice(2),y=parseInt(B,16),pe=y.toString(16)):(B=B.slice(1),y=parseInt(B,10),pe=y.toString(10))),B=B.replace(/^0+/,""),isNaN(y)||pe.toLowerCase()!==B?($(v,"Invalid character entity"),"&"+v.entity+";"):(0,s.default)(y))}function Y(v,y){y==="<"?(v.state=a.OPEN_WAKA,v.startTagPosition=v.position):w(y)||($(v,"Non-whitespace before first tag."),v.textNode=y,v.state=a.TEXT)}function oe(v,y){var B="";return y"?(H(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=a.TEXT):(R(K)&&(y.state=a.SGML_DECL_QUOTED),y.sgmlDecl+=K);continue;case a.SGML_DECL_QUOTED:K===y.q&&(y.state=a.SGML_DECL,y.q=""),y.sgmlDecl+=K;continue;case a.DOCTYPE:K===">"?(y.state=a.TEXT,H(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=K,K==="["?y.state=a.DOCTYPE_DTD:R(K)&&(y.state=a.DOCTYPE_QUOTED,y.q=K));continue;case a.DOCTYPE_QUOTED:y.doctype+=K,K===y.q&&(y.q="",y.state=a.DOCTYPE);continue;case a.DOCTYPE_DTD:y.doctype+=K,K==="]"?y.state=a.DOCTYPE:R(K)&&(y.state=a.DOCTYPE_DTD_QUOTED,y.q=K);continue;case a.DOCTYPE_DTD_QUOTED:y.doctype+=K,K===y.q&&(y.state=a.DOCTYPE_DTD,y.q="");continue;case a.COMMENT:K==="-"?y.state=a.COMMENT_ENDING:y.comment+=K;continue;case a.COMMENT_ENDING:K==="-"?(y.state=a.COMMENT_ENDED,y.comment=Q(y.opt,y.comment),y.comment&&H(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+K,y.state=a.COMMENT);continue;case a.COMMENT_ENDED:K!==">"?($(y,"Malformed comment"),y.comment+="--"+K,y.state=a.COMMENT):y.state=a.TEXT;continue;case a.CDATA:K==="]"?y.state=a.CDATA_ENDING:y.cdata+=K;continue;case a.CDATA_ENDING:K==="]"?y.state=a.CDATA_ENDING_2:(y.cdata+="]"+K,y.state=a.CDATA);continue;case a.CDATA_ENDING_2:K===">"?(y.cdata&&H(y,"oncdata",y.cdata),H(y,"onclosecdata"),y.cdata="",y.state=a.TEXT):K==="]"?y.cdata+="]":(y.cdata+="]]"+K,y.state=a.CDATA);continue;case a.PROC_INST:K==="?"?y.state=a.PROC_INST_ENDING:w(K)?y.state=a.PROC_INST_BODY:y.procInstName+=K;continue;case a.PROC_INST_BODY:if(!y.procInstBody&&w(K))continue;K==="?"?y.state=a.PROC_INST_ENDING:y.procInstBody+=K;continue;case a.PROC_INST_ENDING:K===">"?(H(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=a.TEXT):(y.procInstBody+="?"+K,y.state=a.PROC_INST_BODY);continue;case a.OPEN_TAG:M(le,K)?y.tagName+=K:(W(y),K===">"?N(y):K==="/"?y.state=a.OPEN_TAG_SLASH:(w(K)||$(y,"Invalid character in tag name"),y.state=a.ATTRIB));continue;case a.OPEN_TAG_SLASH:K===">"?(N(y,!0),F(y)):($(y,"Forward-slash in opening tag not followed by >"),y.state=a.ATTRIB);continue;case a.ATTRIB:if(w(K))continue;K===">"?N(y):K==="/"?y.state=a.OPEN_TAG_SLASH:M(ne,K)?(y.attribName=K,y.attribValue="",y.state=a.ATTRIB_NAME):$(y,"Invalid attribute name");continue;case a.ATTRIB_NAME:K==="="?y.state=a.ATTRIB_VALUE:K===">"?($(y,"Attribute without value"),y.attribValue=y.attribName,D(y),N(y)):w(K)?y.state=a.ATTRIB_NAME_SAW_WHITE:M(le,K)?y.attribName+=K:$(y,"Invalid attribute name");continue;case a.ATTRIB_NAME_SAW_WHITE:if(K==="=")y.state=a.ATTRIB_VALUE;else{if(w(K))continue;$(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",H(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",K===">"?N(y):M(ne,K)?(y.attribName=K,y.state=a.ATTRIB_NAME):($(y,"Invalid attribute name"),y.state=a.ATTRIB)}continue;case a.ATTRIB_VALUE:if(w(K))continue;R(K)?(y.q=K,y.state=a.ATTRIB_VALUE_QUOTED):($(y,"Unquoted attribute value"),y.state=a.ATTRIB_VALUE_UNQUOTED,y.attribValue=K);continue;case a.ATTRIB_VALUE_QUOTED:if(K!==y.q){K==="&"?y.state=a.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=K;continue}D(y),y.q="",y.state=a.ATTRIB_VALUE_CLOSED;continue;case a.ATTRIB_VALUE_CLOSED:w(K)?y.state=a.ATTRIB:K===">"?N(y):K==="/"?y.state=a.OPEN_TAG_SLASH:M(ne,K)?($(y,"No whitespace between attributes"),y.attribName=K,y.attribValue="",y.state=a.ATTRIB_NAME):$(y,"Invalid attribute name");continue;case a.ATTRIB_VALUE_UNQUOTED:if(!C(K)){K==="&"?y.state=a.ATTRIB_VALUE_ENTITY_U:y.attribValue+=K;continue}D(y),K===">"?N(y):y.state=a.ATTRIB;continue;case a.CLOSE_TAG:if(y.tagName)K===">"?F(y):M(le,K)?y.tagName+=K:y.script?(y.script+=""+y.tagName,y.tagName="",y.state=a.SCRIPT):(w(K)||$(y,"Invalid tagname in closing tag"),y.state=a.CLOSE_TAG_SAW_WHITE);else{if(w(K))continue;j(ne,K)?y.script?(y.script+=""+K,y.state=a.SCRIPT):$(y,"Invalid tagname in closing tag."):y.tagName=K}continue;case a.CLOSE_TAG_SAW_WHITE:if(w(K))continue;K===">"?F(y):$(y,"Invalid characters in closing tag");continue;case a.TEXT_ENTITY:case a.ATTRIB_VALUE_ENTITY_Q:case a.ATTRIB_VALUE_ENTITY_U:var he,me;switch(y.state){case a.TEXT_ENTITY:he=a.TEXT,me="textNode";break;case a.ATTRIB_VALUE_ENTITY_Q:he=a.ATTRIB_VALUE_QUOTED,me="attribValue";break;case a.ATTRIB_VALUE_ENTITY_U:he=a.ATTRIB_VALUE_UNQUOTED,me="attribValue"}K===";"?(y[me]+=V(y),y.entity="",y.state=he):M(y.entity.length?t:k,K)?y.entity+=K:($(y,"Invalid character in entity name"),y[me]+="&"+y.entity+K,y.entity="",y.state=he);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&S(y),y}f.parser=function(v,y){return new T(v,y)},f.SAXParser=T,f.SAXStream=I,f.createStream=A,f.MAX_BUFFER_LENGTH=65536;var ue=["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 y(){}return y.prototype=v,new y}),c.default||(Object.keys=function(v){var y=[];for(var B in v)v.hasOwnProperty(B)&&y.push(B);return y}),T.prototype={end:function(){ee(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){_(this)}};var fe;try{fe=n("stream").Stream}catch(v){fe=function(){}}var Z=f.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});I.prototype=(0,E.default)(fe.prototype,{constructor:{value:I}}),I.prototype.write=function(v){if(typeof h=="function"&&typeof h.isBuffer=="function"&&h.isBuffer(v)){if(!this._decoder){var y=n("string_decoder").StringDecoder;this._decoder=new y("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},I.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},I.prototype.on=function(v,y){var B=this;return B._parser["on"+v]||Z.indexOf(v)===-1||(B._parser["on"+v]=function(){var K=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);K.splice(0,0,v),B.emit.apply(B,K)}),fe.prototype.on.call(B,v,y)};var J="[CDATA[",ie="DOCTYPE",G="http://www.w3.org/XML/1998/namespace",z="http://www.w3.org/2000/xmlns/",re={xml:G,xmlns:z},ne=/[:_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]/,le=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,k=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,t=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,a=0;f.STATE={BEGIN:a++,BEGIN_WHITESPACE:a++,TEXT:a++,TEXT_ENTITY:a++,OPEN_WAKA:a++,SGML_DECL:a++,SGML_DECL_QUOTED:a++,DOCTYPE:a++,DOCTYPE_QUOTED:a++,DOCTYPE_DTD:a++,DOCTYPE_DTD_QUOTED:a++,COMMENT_STARTING:a++,COMMENT:a++,COMMENT_ENDING:a++,COMMENT_ENDED:a++,CDATA:a++,CDATA_ENDING:a++,CDATA_ENDING_2:a++,PROC_INST:a++,PROC_INST_BODY:a++,PROC_INST_ENDING:a++,OPEN_TAG:a++,OPEN_TAG_SLASH:a++,ATTRIB:a++,ATTRIB_NAME:a++,ATTRIB_NAME_SAW_WHITE:a++,ATTRIB_VALUE:a++,ATTRIB_VALUE_QUOTED:a++,ATTRIB_VALUE_CLOSED:a++,ATTRIB_VALUE_UNQUOTED:a++,ATTRIB_VALUE_ENTITY_Q:a++,ATTRIB_VALUE_ENTITY_U:a++,CLOSE_TAG:a++,CLOSE_TAG_SAW_WHITE:a++,SCRIPT:a++,SCRIPT_ENDING:a++},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,c.default)(f.ENTITIES).forEach(function(v){var y=f.ENTITIES[v],B=typeof y=="number"?String.fromCharCode(y):y;f.ENTITIES[v]=B});for(var P in f.STATE)f.STATE[f.STATE[P]]=P;a=f.STATE,s.default||function(){var v=String.fromCharCode,y=Math.floor,B=function(){var pe,ce,he=[],me=-1,ye=arguments.length;if(!ye)return"";for(var ge="";++me1114111||y(ae)!==ae)throw RangeError("Invalid code point: "+ae);ae<=65535?he.push(ae):(ae-=65536,pe=55296+(ae>>10),ce=ae%1024+56320,he.push(pe,ce)),(me+1===ye||he.length>16384)&&(ge+=v.apply(null,he),he.length=0)}return ge};l.default?Object.defineProperty(String,"fromCodePoint",{value:B,configurable:!0,writable:!0}):String.fromCodePoint=B}()}(b===void 0?(void 0).sax={}:b)}).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,O,b){function h(){g.call(this)}O.exports=h;var g=n("events").EventEmitter;n("inherits")(h,g),h.Readable=n("readable-stream/readable.js"),h.Writable=n("readable-stream/writable.js"),h.Duplex=n("readable-stream/duplex.js"),h.Transform=n("readable-stream/transform.js"),h.PassThrough=n("readable-stream/passthrough.js"),h.Stream=h,h.prototype.pipe=function(i,s){function p(x){i.writable&&i.write(x)===!1&&d.pause&&d.pause()}function u(){d.readable&&d.resume&&d.resume()}function e(){c||(c=!0,i.end())}function o(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function r(x){if(l(),g.listenerCount(this,"error")===0)throw x}function l(){d.removeListener("data",p),i.removeListener("drain",u),d.removeListener("end",e),d.removeListener("close",o),d.removeListener("error",r),i.removeListener("error",r),d.removeListener("end",l),d.removeListener("close",l),i.removeListener("close",l)}var d=this;d.on("data",p),i.on("drain",u),i._isStdio||s&&s.end===!1||(d.on("end",e),d.on("close",o));var c=!1;return d.on("error",r),i.on("error",r),d.on("end",l),d.on("close",l),i.on("close",l),i.emit("pipe",d),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,O,b){(function(h){var g=n("./lib/request"),i=n("./lib/response"),s=n("xtend"),p=n("builtin-status-codes"),u=n("url"),e=b;e.request=function(o,r){o=typeof o=="string"?u.parse(o):s(o);var l=h.location.protocol.search(/^https?:$/)===-1?"http:":"",d=o.protocol||l,c=o.hostname||o.host,x=o.port,E=o.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),o.url=(c?d+"//"+c:"")+(x?":"+x:"")+E,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var f=new g(o);return r&&f.on("response",r),f},e.get=function(o,r){var l=e.request(o,r);return l.end(),l},e.ClientRequest=g,e.IncomingMessage=i.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=p,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 we!="undefined"?we: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,O,b){(function(h){"use strict";function g(){if(p!==void 0)return p;if(h.XMLHttpRequest){p=new h.XMLHttpRequest;try{p.open("GET",h.XDomainRequest?"/":"https://example.com")}catch(o){p=null}}else p=null;return p}function i(o){var r=g();if(!r)return!1;try{return r.responseType=o,r.responseType===o}catch(l){}return!1}function s(o){return typeof o=="function"}b.fetch=s(h.fetch)&&s(h.ReadableStream),b.writableStream=s(h.WritableStream),b.abortController=s(h.AbortController),b.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),b.blobConstructor=!0}catch(o){}var p,u=h.ArrayBuffer!==void 0,e=u&&s(h.ArrayBuffer.prototype.slice);b.arraybuffer=b.fetch||u&&i("arraybuffer"),b.msstream=!b.fetch&&e&&i("ms-stream"),b.mozchunkedarraybuffer=!b.fetch&&u&&i("moz-chunked-arraybuffer"),b.overrideMimeType=b.fetch||!!g()&&s(g().overrideMimeType),b.vbArray=s(h.VBArray),p=null}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,O,b){(function(h,g,i){"use strict";function s(S,m){return o.fetch&&m?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&S?"arraybuffer":o.vbArray&&S?"text:vbarray":"text"}function p(S){try{var m=S.status;return m!==null&&m!==0}catch(_){return!1}}var u=n("babel-runtime/core-js/object/keys"),e=function(S){return S&&S.__esModule?S:{default:S}}(u),o=n("./capability"),r=n("inherits"),l=n("./response"),d=n("readable-stream"),c=n("to-arraybuffer"),x=l.IncomingMessage,E=l.readyStates,f=O.exports=function(S){var m=this;d.Writable.call(m),m._opts=S,m._body=[],m._headers={},S.auth&&m.setHeader("Authorization","Basic "+new i(S.auth).toString("base64")),(0,e.default)(S.headers).forEach(function(I){m.setHeader(I,S.headers[I])});var _,A=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!o.abortController)A=!1,_=!0;else if(S.mode==="prefer-streaming")_=!1;else if(S.mode==="allow-wrong-content-type")_=!o.overrideMimeType;else{if(S.mode&&S.mode!=="default"&&S.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}m._mode=s(_,A),m._fetchTimer=null,m.on("finish",function(){m._onFinish()})};r(f,d.Writable),f.prototype.setHeader=function(S,m){var _=this,A=S.toLowerCase();T.indexOf(A)===-1&&(_._headers[A]={name:S,value:m})},f.prototype.getHeader=function(S){var m=this._headers[S.toLowerCase()];return m?m.value:null},f.prototype.removeHeader=function(S){delete this._headers[S.toLowerCase()]},f.prototype._onFinish=function(){var S=this;if(!S._destroyed){var m=S._opts,_=S._headers,A=null;m.method!=="GET"&&m.method!=="HEAD"&&(A=o.arraybuffer?c(i.concat(S._body)):o.blobConstructor?new g.Blob(S._body.map(function(M){return c(M)}),{type:(_["content-type"]||{}).value||""}):i.concat(S._body).toString());var I=[];if((0,e.default)(_).forEach(function(M){var j=_[M].name,X=_[M].value;Array.isArray(X)?X.forEach(function(H){I.push([j,H])}):I.push([j,X])}),S._mode==="fetch"){var w=null;if(o.abortController){var R=new AbortController;w=R.signal,S._fetchAbortController=R,"requestTimeout"in m&&m.requestTimeout!==0&&(S._fetchTimer=g.setTimeout(function(){S.emit("requestTimeout"),S._fetchAbortController&&S._fetchAbortController.abort()},m.requestTimeout))}g.fetch(S._opts.url,{method:S._opts.method,headers:I,body:A||void 0,mode:"cors",credentials:m.withCredentials?"include":"same-origin",signal:w}).then(function(M){S._fetchResponse=M,S._connect()},function(M){g.clearTimeout(S._fetchTimer),S._destroyed||S.emit("error",M)})}else{var C=S._xhr=new g.XMLHttpRequest;try{C.open(S._opts.method,S._opts.url,!0)}catch(M){return void h.nextTick(function(){S.emit("error",M)})}"responseType"in C&&(C.responseType=S._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!m.withCredentials),S._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in m&&(C.timeout=m.requestTimeout,C.ontimeout=function(){S.emit("requestTimeout")}),I.forEach(function(M){C.setRequestHeader(M[0],M[1])}),S._response=null,C.onreadystatechange=function(){switch(C.readyState){case E.LOADING:case E.DONE:S._onXHRProgress()}},S._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){S._onXHRProgress()}),C.onerror=function(){S._destroyed||S.emit("error",new Error("XHR error"))};try{C.send(A)}catch(M){return void h.nextTick(function(){S.emit("error",M)})}}}},f.prototype._onXHRProgress=function(){var S=this;p(S._xhr)&&!S._destroyed&&(S._response||S._connect(),S._response._onXHRProgress())},f.prototype._connect=function(){var S=this;S._destroyed||(S._response=new x(S._xhr,S._fetchResponse,S._mode,S._fetchTimer),S._response.on("error",function(m){S.emit("error",m)}),S.emit("response",S._response))},f.prototype._write=function(S,m,_){this._body.push(S),_()},f.prototype.abort=f.prototype.destroy=function(){var S=this;S._destroyed=!0,g.clearTimeout(S._fetchTimer),S._response&&(S._response._destroyed=!0),S._xhr?S._xhr.abort():S._fetchAbortController&&S._fetchAbortController.abort()},f.prototype.end=function(S,m,_){var A=this;typeof S=="function"&&(_=S,S=void 0),d.Writable.prototype.end.call(A,S,m,_)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var T=["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 we!="undefined"?we: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,O,b){(function(h,g,i){"use strict";var s=n("babel-runtime/core-js/promise"),p=function(d){return d&&d.__esModule?d:{default:d}}(s),u=n("./capability"),e=n("inherits"),o=n("readable-stream"),r=b.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=b.IncomingMessage=function(d,c,x,E){var f=this;if(o.Readable.call(f),f._mode=x,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){h.nextTick(function(){f.emit("close")})}),x==="fetch"){if(f._fetchResponse=c,f.url=c.url,f.statusCode=c.status,f.statusMessage=c.statusText,c.headers.forEach(function(A,I){f.headers[I.toLowerCase()]=A,f.rawHeaders.push(I,A)}),u.writableStream){var T=new WritableStream({write:function(I){return new p.default(function(w,R){f._destroyed?R():f.push(new i(I))?w():f._resumeFetch=w})},close:function(){g.clearTimeout(E),f._destroyed||f.push(null)},abort:function(I){f._destroyed||f.emit("error",I)}});try{return void c.body.pipeTo(T).catch(function(A){g.clearTimeout(E),f._destroyed||f.emit("error",A)})}catch(A){}}var S=c.body.getReader();!function A(){S.read().then(function(I){if(!f._destroyed){if(I.done)return g.clearTimeout(E),void f.push(null);f.push(new i(I.value)),A()}}).catch(function(I){g.clearTimeout(E),f._destroyed||f.emit("error",I)})}()}else if(f._xhr=d,f._pos=0,f.url=d.responseURL,f.statusCode=d.status,f.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var I=A.match(/^([^:]+):\s*(.*)/);if(I){var w=I[1].toLowerCase();w==="set-cookie"?(f.headers[w]===void 0&&(f.headers[w]=[]),f.headers[w].push(I[2])):f.headers[w]!==void 0?f.headers[w]+=", "+I[2]:f.headers[w]=I[2],f.rawHeaders.push(I[1],I[2])}}),f._charset="x-user-defined",!u.overrideMimeType){var m=f.rawHeaders["mime-type"];if(m){var _=m.match(/;\s*charset=([^;])(;|$)/);_&&(f._charset=_[1].toLowerCase())}f._charset||(f._charset="utf-8")}};e(l,o.Readable),l.prototype._read=function(){var d=this,c=d._resumeFetch;c&&(d._resumeFetch=null,c())},l.prototype._onXHRProgress=function(){var d=this,c=d._xhr,x=null;switch(d._mode){case"text:vbarray":if(c.readyState!==r.DONE)break;try{x=new g.VBArray(c.responseBody).toArray()}catch(m){}if(x!==null){d.push(new i(x));break}case"text":try{x=c.responseText}catch(m){d._mode="text:vbarray";break}if(x.length>d._pos){var E=x.substr(d._pos);if(d._charset==="x-user-defined"){for(var f=new i(E.length),T=0;Td._pos&&(d.push(new i(new Uint8Array(S.result.slice(d._pos)))),d._pos=S.result.byteLength)},S.onload=function(){d.push(null)},S.readAsArrayBuffer(x)}d._xhr.readyState===r.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,n("_process"),typeof we!="undefined"?we: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,O,b){"use strict";function h(m){if(!m)return"utf8";for(var _;;)switch(m){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 m;default:if(_)return;m=(""+m).toLowerCase(),_=!0}}function g(m){var _=h(m);if(typeof _!="string"&&(T.isEncoding===S||!S(m)))throw new Error("Unknown encoding: "+m);return _||m}function i(m){this.encoding=g(m);var _;switch(this.encoding){case"utf16le":this.text=l,this.end=d,_=4;break;case"utf8":this.fillLast=e,_=4;break;case"base64":this.text=c,this.end=x,_=3;break;default:return this.write=E,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(_)}function s(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function p(m,_,A){var I=_.length-1;if(I=0?(w>0&&(m.lastNeed=w-1),w):--I=0?(w>0&&(m.lastNeed=w-2),w):--I=0?(w>0&&(w===2?w=0:m.lastNeed=w-3),w):0)}function u(m,_,A){if((192&_[0])!=128)return m.lastNeed=0,"\u951F\uFFFD";if(m.lastNeed>1&&_.length>1){if((192&_[1])!=128)return m.lastNeed=1,"\u951F\uFFFD";if(m.lastNeed>2&&_.length>2&&(192&_[2])!=128)return m.lastNeed=2,"\u951F\uFFFD"}}function e(m){var _=this.lastTotal-this.lastNeed,A=u(this,m,_);return A!==void 0?A:this.lastNeed<=m.length?(m.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,_,0,m.length),void(this.lastNeed-=m.length))}function o(m,_){var A=p(this,m,_);if(!this.lastNeed)return m.toString("utf8",_);this.lastTotal=A;var I=m.length-(A-this.lastNeed);return m.copy(this.lastChar,0,I),m.toString("utf8",_,I)}function r(m){var _=m&&m.length?this.write(m):"";return this.lastNeed?_+"\u951F\uFFFD":_}function l(m,_){if((m.length-_)%2==0){var A=m.toString("utf16le",_);if(A){var I=A.charCodeAt(A.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",_,m.length-1)}function d(m){var _=m&&m.length?this.write(m):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,A)}return _}function c(m,_){var A=(m.length-_)%3;return A===0?m.toString("base64",_):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",_,m.length-A))}function x(m){var _=m&&m.length?this.write(m):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function E(m){return m.toString(this.encoding)}function f(m){return m&&m.length?this.write(m):""}var T=n("safe-buffer").Buffer,S=T.isEncoding||function(m){switch((m=""+m)&&m.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}};b.StringDecoder=i,i.prototype.write=function(m){if(m.length===0)return"";var _,A;if(this.lastNeed){if((_=this.fillLast(m))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},l))},b.setImmediate=typeof h=="function"?h:function(r){var l=o++,d=!(arguments.length<2)&&u.call(arguments,1);return e[l]=!0,s(function(){e[l]&&(d?r.apply(null,d):r.call(null),b.clearImmediate(l))}),l},b.clearImmediate=typeof g=="function"?g:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,O,b){var h=n("buffer").Buffer;O.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(h.isBuffer(g)){for(var i=new Uint8Array(g.length),s=g.length,p=0;p",'"',"`"," ","\r",`
`," "],c=["{","}","|","\\","^","`"].concat(d),x=["'"].concat(c),E=["%","/","?",";","#"].concat(x),f=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=n("querystring");h.prototype.parse=function(w,R,C){if(!e.isString(w))throw new TypeError("Parameter 'url' must be a string, not "+typeof w);var M=w.indexOf("?"),j=M!==-1&&M127?ue+="x":ue+=te[fe];if(!ue.match(T)){var J=Y.slice(0,L),ie=Y.slice(L+1),G=te.match(S);G&&(J.push(G[1]),ie.unshift(G[2])),ie.length&&(q="/"+ie.join(".")+q),this.hostname=J.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=u.toASCII(this.hostname));var z=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+z,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),q[0]!=="/"&&(q="/"+q))}if(!m[ee])for(var L=0,oe=x.length;L0)&&C.host.split("@");ue&&(C.auth=ue.shift(),C.host=C.hostname=ue.shift())}return C.search=w.search,C.query=w.query,e.isNull(C.pathname)&&e.isNull(C.search)||(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!Y.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var fe=Y.slice(-1)[0],Z=(C.host||w.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(!F&&!V)for(;J--;J)Y.unshift("..");!F||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Z&&Y.join("/").substr(-1)!=="/"&&Y.push("");var G=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(te){C.hostname=C.host=G?"":Y.length?Y.shift():"";var ue=!!(C.host&&C.host.indexOf("@")>0)&&C.host.split("@");ue&&(C.auth=ue.shift(),C.host=C.hostname=ue.shift())}return F=F||C.host&&Y.length,F&&!G&&Y.unshift(""),Y.length?C.pathname=Y.join("/"):(C.pathname=null,C.path=null),e.isNull(C.pathname)&&e.isNull(C.search)||(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=w.auth||C.auth,C.slashes=C.slashes||w.slashes,C.href=C.format(),C},h.prototype.parseHost=function(){var w=this.host,R=r.exec(w);R&&(R=R[0],R!==":"&&(this.port=R.substr(1)),w=w.substr(0,w.length-R.length)),w&&(this.hostname=w)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,O,b){"use strict";O.exports={isString:function(g){return typeof g=="string"},isObject:function(g){return typeof g=="object"&&g!==null},isNull:function(g){return g===null},isNullOrUndefined:function(g){return g==null}}},{}],205:[function(n,O,b){(function(h){function g(s,p){function u(){if(!e){if(i("throwDeprecation"))throw new Error(p);i("traceDeprecation")?console.trace(p):console.warn(p),e=!0}return s.apply(this,arguments)}if(i("noDeprecation"))return s;var e=!1;return u}function i(s){try{if(!h.localStorage)return!1}catch(u){return!1}var p=h.localStorage[s];return p!=null&&String(p).toLowerCase()==="true"}O.exports=g}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,O,b){O.exports=function(h){return h&&typeof h=="object"&&typeof h.copy=="function"&&typeof h.fill=="function"&&typeof h.readUInt8=="function"}},{}],207:[function(n,O,b){(function(h,g){function i(L,D){var N={seen:[],stylize:p};return arguments.length>=3&&(N.depth=arguments[2]),arguments.length>=4&&(N.colors=arguments[3]),E(D)?N.showHidden=D:D&&b._extend(N,D),A(N.showHidden)&&(N.showHidden=!1),A(N.depth)&&(N.depth=2),A(N.colors)&&(N.colors=!1),A(N.customInspect)&&(N.customInspect=!0),N.colors&&(N.stylize=s),e(N,L,N.depth)}function s(L,D){var N=i.styles[D];return N?"["+i.colors[N][0]+"m"+L+"["+i.colors[N][1]+"m":L}function p(L,D){return L}function u(L){var D={};return L.forEach(function(N,F){D[N]=!0}),D}function e(L,D,N){if(L.customInspect&&D&&M(D.inspect)&&D.inspect!==b.inspect&&(!D.constructor||D.constructor.prototype!==D)){var F=D.inspect(N,L);return m(F)||(F=e(L,F,N)),F}var V=o(L,D);if(V)return V;var Y=Object.keys(D),oe=u(Y);if(L.showHidden&&(Y=Object.getOwnPropertyNames(D)),C(D)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(D);if(Y.length===0){if(M(D)){var te=D.name?": "+D.name:"";return L.stylize("[Function"+te+"]","special")}if(I(D))return L.stylize(RegExp.prototype.toString.call(D),"regexp");if(R(D))return L.stylize(Date.prototype.toString.call(D),"date");if(C(D))return r(D)}var ue="",fe=!1,Z=["{","}"];if((x(D)&&(fe=!0,Z=["[","]"]),M(D))&&(ue=" [Function"+(D.name?": "+D.name:"")+"]"),I(D)&&(ue=" "+RegExp.prototype.toString.call(D)),R(D)&&(ue=" "+Date.prototype.toUTCString.call(D)),C(D)&&(ue=" "+r(D)),Y.length===0&&(!fe||D.length==0))return Z[0]+ue+Z[1];if(N<0)return I(D)?L.stylize(RegExp.prototype.toString.call(D),"regexp"):L.stylize("[Object]","special");L.seen.push(D);var J;return J=fe?l(L,D,N,oe,Y):Y.map(function(ie){return d(L,D,N,oe,ie,fe)}),L.seen.pop(),c(J,ue,Z)}function o(L,D){if(A(D))return L.stylize("undefined","undefined");if(m(D)){var N="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(N,"string")}return S(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 l(L,D,N,F,V){for(var Y=[],oe=0,te=D.length;oe-1&&(te=Y?te.split(`
`).map(function(fe){return" "+fe}).join(`
`).substr(2):`
`+te.split(`
`).map(function(fe){return" "+fe}).join(`
`))):te=L.stylize("[Circular]","special")),A(oe)){if(Y&&V.match(/^\d+$/))return te;oe=JSON.stringify(""+V),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=L.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=L.stylize(oe,"string"))}return oe+": "+te}function c(L,D,N){var F=0;return L.reduce(function(V,Y){return F++,Y.indexOf(`
`)>=0&&F++,V+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?N[0]+(D===""?"":D+`
`)+" "+L.join(`,
`)+" "+N[1]:N[0]+D+" "+L.join(", ")+" "+N[1]}function x(L){return Array.isArray(L)}function E(L){return typeof L=="boolean"}function f(L){return L===null}function T(L){return L==null}function S(L){return typeof L=="number"}function m(L){return typeof L=="string"}function _(L){return typeof L=="symbol"}function A(L){return L===void 0}function I(L){return w(L)&&X(L)==="[object RegExp]"}function w(L){return typeof L=="object"&&L!==null}function R(L){return w(L)&&X(L)==="[object Date]"}function C(L){return w(L)&&(X(L)==="[object Error]"||L instanceof Error)}function M(L){return typeof L=="function"}function j(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||L===void 0}function X(L){return Object.prototype.toString.call(L)}function H(L){return L<10?"0"+L.toString(10):L.toString(10)}function q(){var L=new Date,D=[H(L.getHours()),H(L.getMinutes()),H(L.getSeconds())].join(":");return[L.getDate(),W[L.getMonth()],D].join(" ")}function Q(L,D){return Object.prototype.hasOwnProperty.call(L,D)}var U=/%[sdj%]/g;b.format=function(L){if(!m(L)){for(var D=[],N=0;N=V)return ue;switch(ue){case"%s":return String(F[N++]);case"%d":return Number(F[N++]);case"%j":try{return JSON.stringify(F[N++])}catch(fe){return"[Circular]"}default:return ue}}),oe=F[N];N=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},l=function(x){return""},o=function(x){return x.replace("]]>","]]]]>")},b.Builder=function(){function c(x){var E,f,T;this.options={},f=e[.2];for(E in f)d.call(f,E)&&(T=f[E],this.options[E]=T);for(E in x)d.call(x,E)&&(T=x[E],this.options[E]=T)}return c.prototype.buildObject=function(x){var E,f,T,S,m;return E=this.options.attrkey,f=this.options.charkey,(0,p.default)(x).length===1&&this.options.rootName===e[.2].rootName?(m=(0,p.default)(x)[0],x=x[m]):m=this.options.rootName,T=function(_){return function(A,I){var w,R,C,M,j,X;if((I===void 0?"undefined":(0,i.default)(I))!=="object")_.options.cdata&&r(I)?A.raw(l(I)):A.txt(I);else if(Array.isArray(I)){for(M in I)if(d.call(I,M)){R=I[M];for(j in R)C=R[j],A=T(A.ele(j),C).up()}}else for(j in I)if(d.call(I,j))if(R=I[j],j===E){if((R===void 0?"undefined":(0,i.default)(R))==="object")for(w in R)X=R[w],A=A.att(w,X)}else if(j===f)A=_.options.cdata&&r(R)?A.raw(l(R)):A.txt(R);else if(Array.isArray(R))for(M in R)d.call(R,M)&&(C=R[M],A=typeof C=="string"?_.options.cdata&&r(C)?A.ele(j).raw(l(C)).up():A.ele(j,C).up():T(A.ele(j),C).up());else(R===void 0?"undefined":(0,i.default)(R))==="object"?A=T(A.ele(j),R).up():typeof R=="string"&&_.options.cdata&&r(R)?A=A.ele(j).raw(l(R)).up():(R==null&&(R=""),A=A.ele(j,R.toString()).up());return A}}(this),S=u.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(S,x).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,O,b){"use strict";(function(){b.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,O,b){"use strict";function h(o){return o&&o.__esModule?o:{default:o}}var g=n("babel-runtime/core-js/object/get-own-property-names"),i=h(g),s=n("babel-runtime/core-js/object/keys"),p=h(s),u=n("babel-runtime/helpers/typeof"),e=h(u);(function(){var o,r,l,d,c,x,E,f,T=function(A,I){return function(){return A.apply(I,arguments)}},S=function(A,I){function w(){this.constructor=A}for(var R in I)m.call(I,R)&&(A[R]=I[R]);return w.prototype=I.prototype,A.prototype=new w,A.__super__=I.prototype,A},m={}.hasOwnProperty;E=n("sax"),l=n("events"),o=n("./bom"),x=n("./processors"),f=n("timers").setImmediate,r=n("./defaults").defaults,d=function(A){return(A===void 0?"undefined":(0,e.default)(A))==="object"&&A!=null&&(0,p.default)(A).length===0},c=function(A,I,w){var R,C,M;for(R=0,C=A.length;R0&&(q[M.options.childkey]=U),U=q;return C.length>0?M.assignOrPush(W,Q,U):(M.options.explicitRoot&&($=U,U={},U[Q]=$),M.resultObject=U,M.saxParser.ended=!0,M.emit("end",M.resultObject))}}(this),R=function(M){return function(j){var X,H;if(H=C[C.length-1])return H[w]+=j,M.options.explicitChildren&&M.options.preserveChildrenOrder&&M.options.charsAsChildren&&(M.options.includeWhiteChars||j.replace(/\\n/g,"").trim()!=="")&&(H[M.options.childkey]=H[M.options.childkey]||[],X={"#name":"__text__"},X[w]=j,M.options.normalize&&(X[w]=X[w].replace(/\s{2,}/g," ").trim()),H[M.options.childkey].push(X)),H}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(M){return function(j){var X;if(X=R(j))return X.cdata=!0}}()},A.prototype.parseString=function(I,w){var R;w!=null&&typeof w=="function"&&(this.on("end",function(C){return this.reset(),w(null,C)}),this.on("error",function(C){return this.reset(),w(C)}));try{return I=I.toString(),I.trim()===""?(this.emit("end",null),!0):(I=o.stripBOM(I),this.options.async?(this.remaining=I,f(this.processAsync),this.saxParser):this.saxParser.write(I).close())}catch(C){if(R=C,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",R),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw R}},A}(l.EventEmitter),b.parseString=function(_,A,I){var w,R,C;return I!=null?(typeof I=="function"&&(w=I),(A===void 0?"undefined":(0,e.default)(A))==="object"&&(R=A)):(typeof A=="function"&&(w=A),R={}),C=new b.Parser(R),C.parseString(_,w)}}).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,O,b){"use strict";(function(){var h;h=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(g){return g.toLowerCase()},b.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},b.stripPrefix=function(g){return g.replace(h,"")},b.parseNumbers=function(g){return isNaN(g)||(g=g%1==0?parseInt(g,10):parseFloat(g)),g},b.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],213:[function(n,O,b){"use strict";(function(){var h,g,i,s,p=function(o,r){function l(){this.constructor=o}for(var d in r)u.call(r,d)&&(o[d]=r[d]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},u={}.hasOwnProperty;g=n("./defaults"),h=n("./builder"),i=n("./parser"),s=n("./processors"),b.defaults=g.defaults,b.processors=s,b.ValidationError=function(e){function o(r){this.message=r}return p(o,e),o}(Error),b.Builder=h.Builder,b.Parser=i.Parser,b.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,O,b){"use strict";function h(o){return o&&o.__esModule?o:{default:o}}var g=n("babel-runtime/core-js/object/get-prototype-of"),i=h(g),s=n("babel-runtime/helpers/typeof"),p=h(s),u=n("babel-runtime/core-js/object/assign"),e=h(u);(function(){var o,r,l,d,c,x,E=[].slice,f={}.hasOwnProperty;o=function(){var S,m,_,A,I,w;if(w=arguments[0],I=2<=arguments.length?E.call(arguments,1):[],d(e.default))e.default.apply(null,arguments);else for(S=0,_=I.length;S<_;S++)if((A=I[S])!=null)for(m in A)f.call(A,m)&&(w[m]=A[m]);return w},d=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},c=function(S){var m;return!!S&&((m=S===void 0?"undefined":(0,p.default)(S))==="function"||m==="object")},r=function(S){return d(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},l=function(S){var m;if(r(S))return!S.length;for(m in S)if(f.call(S,m))return!1;return!0},x=function(S){var m,_;return c(S)&&(_=(0,i.default)(S))&&(m=_.constructor)&&typeof m=="function"&&m instanceof m&&Function.prototype.toString.call(m)===Function.prototype.toString.call(Object)},O.exports.assign=o,O.exports.isFunction=d,O.exports.isObject=c,O.exports.isArray=r,O.exports.isEmpty=l,O.exports.isPlainObject=x}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(n,O,b){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){O.exports=function(){function i(s,p,u){if(this.options=s.options,this.stringify=s.stringify,p==null)throw new Error("Missing attribute name of element "+s.name);if(u==null)throw new Error("Missing attribute value for attribute "+p+" of element "+s.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(u)}return i.prototype.clone=function(){return(0,g.default)(this)},i.prototype.toString=function(s){return this.options.writer.set(s).attribute(this)},i}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,O,b){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)p.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},p={}.hasOwnProperty;i=n("./XMLNode"),O.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,O,b){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s=function(e,o){function r(){this.constructor=e}for(var l in o)p.call(o,l)&&(e[l]=o[l]);return r.prototype=o.prototype,e.prototype=new r,e.__super__=o.prototype,e},p={}.hasOwnProperty;i=n("./XMLNode"),O.exports=function(u){function e(o,r){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,O,b){"use strict";(function(){var h,g=function(p,u){function e(){this.constructor=p}for(var o in u)i.call(u,o)&&(p[o]=u[o]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},i={}.hasOwnProperty;h=n("./XMLNode"),O.exports=function(s){function p(u,e,o,r,l,d){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");if(o==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!l)throw new Error("Missing DTD attribute default");if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(d&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(o),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=l}return g(p,s),p.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},p}(h)}).call(void 0)},{"./XMLNode":227}],219:[function(n,O,b){"use strict";(function(){var h,g=function(p,u){function e(){this.constructor=p}for(var o in u)i.call(u,o)&&(p[o]=u[o]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},i={}.hasOwnProperty;h=n("./XMLNode"),O.exports=function(s){function p(u,e,o){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(o)}return g(p,s),p.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},p}(h)}).call(void 0)},{"./XMLNode":227}],220:[function(n,O,b){"use strict";(function(){var h,g,i=function(u,e){function o(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return o.prototype=e.prototype,u.prototype=new o,u.__super__=e.prototype,u},s={}.hasOwnProperty;g=n("./Utility").isObject,h=n("./XMLNode"),O.exports=function(p){function u(e,o,r,l){if(u.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(l==null)throw new Error("Missing entity value");if(this.pe=!!o,this.name=this.stringify.eleName(r),g(l)){if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity");if(l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(l)}return i(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,O,b){"use strict";(function(){var h,g=function(p,u){function e(){this.constructor=p}for(var o in u)i.call(u,o)&&(p[o]=u[o]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},i={}.hasOwnProperty;h=n("./XMLNode"),O.exports=function(s){function p(u,e,o){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing notation name");if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return g(p,s),p.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},p}(h)}).call(void 0)},{"./XMLNode":227}],222:[function(n,O,b){"use strict";(function(){var h,g,i=function(u,e){function o(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return o.prototype=e.prototype,u.prototype=new o,u.__super__=e.prototype,u},s={}.hasOwnProperty;g=n("./Utility").isObject,h=n("./XMLNode"),O.exports=function(p){function u(e,o,r,l){var d;u.__super__.constructor.call(this,e),g(o)&&(d=o,o=d.version,r=d.encoding,l=d.standalone),o||(o="1.0"),this.version=this.stringify.xmlVersion(o),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return i(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,O,b){"use strict";(function(){var h,g,i,s,p,u,e=function(l,d){function c(){this.constructor=l}for(var x in d)o.call(d,x)&&(l[x]=d[x]);return c.prototype=d.prototype,l.prototype=new c,l.__super__=d.prototype,l},o={}.hasOwnProperty;u=n("./Utility").isObject,p=n("./XMLNode"),h=n("./XMLDTDAttList"),i=n("./XMLDTDEntity"),g=n("./XMLDTDElement"),s=n("./XMLDTDNotation"),O.exports=function(r){function l(d,c,x){var E,f;l.__super__.constructor.call(this,d),this.documentObject=d,u(c)&&(E=c,c=E.pubID,x=E.sysID),x==null&&(f=[c,x],x=f[0],c=f[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),x!=null&&(this.sysID=this.stringify.dtdSysID(x))}return e(l,r),l.prototype.element=function(d,c){var x;return x=new g(this,d,c),this.children.push(x),this},l.prototype.attList=function(d,c,x,E,f){var T;return T=new h(this,d,c,x,E,f),this.children.push(T),this},l.prototype.entity=function(d,c){var x;return x=new i(this,!1,d,c),this.children.push(x),this},l.prototype.pEntity=function(d,c){var x;return x=new i(this,!0,d,c),this.children.push(x),this},l.prototype.notation=function(d,c){var x;return x=new s(this,d,c),this.children.push(x),this},l.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},l.prototype.ele=function(d,c){return this.element(d,c)},l.prototype.att=function(d,c,x,E,f){return this.attList(d,c,x,E,f)},l.prototype.ent=function(d,c){return this.entity(d,c)},l.prototype.pent=function(d,c){return this.pEntity(d,c)},l.prototype.not=function(d,c){return this.notation(d,c)},l.prototype.up=function(){return this.root()||this.documentObject},l}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,O,b){"use strict";(function(){var h,g,i,s,p=function(o,r){function l(){this.constructor=o}for(var d in r)u.call(r,d)&&(o[d]=r[d]);return l.prototype=r.prototype,o.prototype=new l,o.__super__=r.prototype,o},u={}.hasOwnProperty;s=n("./Utility").isPlainObject,h=n("./XMLNode"),i=n("./XMLStringifier"),g=n("./XMLStringWriter"),O.exports=function(e){function o(r){o.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new g),this.options=r,this.stringify=new i(r),this.isDocument=!0}return p(o,e),o.prototype.end=function(r){var l;return r?s(r)&&(l=r,r=this.options.writer.set(l)):r=this.options.writer,r.document(this)},o.prototype.toString=function(r){return this.options.writer.set(r).document(this)},o}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,O,b){"use strict";(function(){var h,g,i,s,p,u,e,o,r,l,d,c,x,E,f,T,S,m,_,A={}.hasOwnProperty;_=n("./Utility"),S=_.isObject,T=_.isFunction,m=_.isPlainObject,l=n("./XMLElement"),g=n("./XMLCData"),i=n("./XMLComment"),c=n("./XMLRaw"),f=n("./XMLText"),d=n("./XMLProcessingInstruction"),o=n("./XMLDeclaration"),r=n("./XMLDocType"),s=n("./XMLDTDAttList"),u=n("./XMLDTDEntity"),p=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),h=n("./XMLAttribute"),E=n("./XMLStringifier"),x=n("./XMLStringWriter"),O.exports=function(){function I(w,R,C){var M;w||(w={}),w.writer?m(w.writer)&&(M=w.writer,w.writer=new x(M)):w.writer=new x(w),this.options=w,this.writer=w.writer,this.stringify=new E(w),this.onDataCallback=R||function(){},this.onEndCallback=C||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return I.prototype.node=function(w,R,C){var M;if(w==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),w=w.valueOf(),R==null&&(R={}),R=R.valueOf(),S(R)||(M=[R,C],C=M[0],R=M[1]),this.currentNode=new l(this,w,R),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,C!=null&&this.text(C),this},I.prototype.element=function(w,R,C){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(w,R,C)},I.prototype.attribute=function(w,R){var C,M;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(w!=null&&(w=w.valueOf()),S(w))for(C in w)A.call(w,C)&&(M=w[C],this.attribute(C,M));else T(R)&&(R=R.apply()),this.options.skipNullAttributes&&R==null||(this.currentNode.attributes[w]=new h(this,w,R));return this},I.prototype.text=function(w){var R;return this.openCurrent(),R=new f(this,w),this.onData(this.writer.text(R,this.currentLevel+1)),this},I.prototype.cdata=function(w){var R;return this.openCurrent(),R=new g(this,w),this.onData(this.writer.cdata(R,this.currentLevel+1)),this},I.prototype.comment=function(w){var R;return this.openCurrent(),R=new i(this,w),this.onData(this.writer.comment(R,this.currentLevel+1)),this},I.prototype.raw=function(w){var R;return this.openCurrent(),R=new c(this,w),this.onData(this.writer.raw(R,this.currentLevel+1)),this},I.prototype.instruction=function(w,R){var C,M,j,X,H;if(this.openCurrent(),w!=null&&(w=w.valueOf()),R!=null&&(R=R.valueOf()),Array.isArray(w))for(C=0,X=w.length;C=0;)this.up();return this.onEnd()},I.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},I.prototype.openNode=function(w){if(!w.isOpen)return!this.root&&this.currentLevel===0&&w instanceof l&&(this.root=w),this.onData(this.writer.openNode(w,this.currentLevel)),w.isOpen=!0},I.prototype.closeNode=function(w){if(!w.isClosed)return this.onData(this.writer.closeNode(w,this.currentLevel)),w.isClosed=!0},I.prototype.onData=function(w){return this.documentStarted=!0,this.onDataCallback(w)},I.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},I.prototype.ele=function(){return this.element.apply(this,arguments)},I.prototype.nod=function(w,R,C){return this.node(w,R,C)},I.prototype.txt=function(w){return this.text(w)},I.prototype.dat=function(w){return this.cdata(w)},I.prototype.com=function(w){return this.comment(w)},I.prototype.ins=function(w,R){return this.instruction(w,R)},I.prototype.dec=function(w,R,C){return this.declaration(w,R,C)},I.prototype.dtd=function(w,R,C){return this.doctype(w,R,C)},I.prototype.e=function(w,R,C){return this.element(w,R,C)},I.prototype.n=function(w,R,C){return this.node(w,R,C)},I.prototype.t=function(w){return this.text(w)},I.prototype.d=function(w){return this.cdata(w)},I.prototype.c=function(w){return this.comment(w)},I.prototype.r=function(w){return this.raw(w)},I.prototype.i=function(w,R){return this.instruction(w,R)},I.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.ent=function(w,R){return this.entity(w,R)},I.prototype.pent=function(w,R){return this.pEntity(w,R)},I.prototype.not=function(w,R){return this.notation(w,R)},I}()}).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,O,b){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);(function(){var i,s,p,u,e,o=function(d,c){function x(){this.constructor=d}for(var E in c)r.call(c,E)&&(d[E]=c[E]);return x.prototype=c.prototype,d.prototype=new x,d.__super__=c.prototype,d},r={}.hasOwnProperty;e=n("./Utility"),u=e.isObject,p=e.isFunction,s=n("./XMLNode"),i=n("./XMLAttribute"),O.exports=function(l){function d(c,x,E){if(d.__super__.constructor.call(this,c),x==null)throw new Error("Missing element name");this.name=this.stringify.eleName(x),this.attributes={},E!=null&&this.attribute(E),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return o(d,l),d.prototype.clone=function(){var c,x,E,f;E=(0,g.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},f=this.attributes;for(x in f)r.call(f,x)&&(c=f[x],E.attributes[x]=c.clone());return E.children=[],this.children.forEach(function(T){var S;return S=T.clone(),S.parent=E,E.children.push(S)}),E},d.prototype.attribute=function(c,x){var E,f;if(c!=null&&(c=c.valueOf()),u(c))for(E in c)r.call(c,E)&&(f=c[E],this.attribute(E,f));else p(x)&&(x=x.apply()),this.options.skipNullAttributes&&x==null||(this.attributes[c]=new i(this,c,x));return this},d.prototype.removeAttribute=function(c){var x,E,f;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(E=0,f=c.length;E"+this.endline(m))},S.prototype.comment=function(m,_){return this.stream.write(this.space(_)+""+this.endline(m))},S.prototype.declaration=function(m,_){return this.stream.write(this.space(_)),this.stream.write('"),this.stream.write(this.endline(m))},S.prototype.docType=function(m,_){var A,I,w,R;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),R=m.children,I=0,w=R.length;I"),this.stream.write(this.endline(m))},S.prototype.element=function(m,_){var A,I,w,R,C,M,j,X;_||(_=0),X=this.space(_),this.stream.write(X+"<"+m.name),M=m.attributes;for(C in M)f.call(M,C)&&(A=M[C],this.attribute(A));if(m.children.length===0||m.children.every(function(H){return H.value===""}))this.allowEmpty?this.stream.write(">"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write(""+m.name+">");else{for(this.stream.write(">"+this.newline),j=m.children,w=0,R=j.length;w")}return this.stream.write(this.endline(m))},S.prototype.processingInstruction=function(m,_){return this.stream.write(this.space(_)+""+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},S.prototype.raw=function(m,_){return this.stream.write(this.space(_)+m.value+this.endline(m))},S.prototype.text=function(m,_){return this.stream.write(this.space(_)+m.value+this.endline(m))},S.prototype.dtdAttList=function(m,_){return this.stream.write(this.space(_)+""+this.endline(m))},S.prototype.dtdElement=function(m,_){return this.stream.write(this.space(_)+""+this.endline(m))},S.prototype.dtdEntity=function(m,_){return this.stream.write(this.space(_)+""+this.endline(m))},S.prototype.dtdNotation=function(m,_){return this.stream.write(this.space(_)+""+this.endline(m))},S.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},S}(x)}).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,O,b){"use strict";(function(){var h,g,i,s,p,u,e,o,r,l,d,c,x,E=function(S,m){function _(){this.constructor=S}for(var A in m)f.call(m,A)&&(S[A]=m[A]);return _.prototype=m.prototype,S.prototype=new _,S.__super__=m.prototype,S},f={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),h=n("./XMLCData"),g=n("./XMLComment"),r=n("./XMLElement"),d=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),u=n("./XMLDTDNotation"),x=n("./XMLWriterBase"),O.exports=function(T){function S(m){S.__super__.constructor.call(this,m)}return E(S,T),S.prototype.document=function(m){var _,A,I,w,R;for(this.textispresent=!1,w="",R=m.children,A=0,I=R.length;A"+this.newline},S.prototype.comment=function(m,_){return this.space(_)+""+this.newline},S.prototype.declaration=function(m,_){var A;return A=this.space(_),A+='",A+=this.newline},S.prototype.docType=function(m,_){var A,I,w,R,C;if(_||(_=0),R=this.space(_),R+="0){for(R+=" [",R+=this.newline,C=m.children,I=0,w=C.length;I",R+=this.newline},S.prototype.element=function(m,_){var A,I,w,R,C,M,j,X,H,q,Q,U,ee;_||(_=0),ee=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(_),X="",X+=U+"<"+m.name,H=m.attributes;for(j in H)f.call(H,j)&&(A=H[j],X+=this.attribute(A));if(m.children.length===0||m.children.every(function($){return $.value===""}))this.allowEmpty?X+=">"+m.name+">"+this.newline:X+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)X+=">",X+=m.children[0].value,X+=""+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(q=m.children,w=0,C=q.length;w"+this.newline,Q=m.children,R=0,M=Q.length;R"+this.newline}return X},S.prototype.processingInstruction=function(m,_){var A;return A=this.space(_)+""+m.target,m.value&&(A+=" "+m.value),A+=this.spacebeforeslash+"?>"+this.newline},S.prototype.raw=function(m,_){return this.space(_)+m.value+this.newline},S.prototype.text=function(m,_){return this.space(_)+m.value+this.newline},S.prototype.dtdAttList=function(m,_){var A;return A=this.space(_)+""+this.newline},S.prototype.dtdElement=function(m,_){return this.space(_)+""+this.newline},S.prototype.dtdEntity=function(m,_){var A;return A=this.space(_)+""+this.newline},S.prototype.dtdNotation=function(m,_){var A;return A=this.space(_)+""+this.newline},S.prototype.openNode=function(m,_){var A,I,w,R;if(_||(_=0),m instanceof r){w=this.space(_)+"<"+m.name,R=m.attributes;for(I in R)f.call(R,I)&&(A=R[I],w+=this.attribute(A));return w+=(m.children?">":"/>")+this.newline}return w=this.space(_)+"")+this.newline},S.prototype.closeNode=function(m,_){switch(_||(_=0),!1){case!(m instanceof r):return this.space(_)+""+m.name+">"+this.newline;case!(m instanceof o):return this.space(_)+"]>"+this.newline}},S}(x)}).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,O,b){"use strict";(function(){var h=function(s,p){return function(){return s.apply(p,arguments)}},g={}.hasOwnProperty;O.exports=function(){function i(s){this.assertLegalChar=h(this.assertLegalChar,this);var p,u,e;s||(s={}),this.noDoubleEncoding=s.noDoubleEncoding,u=s.stringify||{};for(p in u)g.call(u,p)&&(e=u[p],this[p]=e)}return i.prototype.eleName=function(s){return s=""+s||"",this.assertLegalChar(s)},i.prototype.eleText=function(s){return s=""+s||"",this.assertLegalChar(this.elEscape(s))},i.prototype.cdata=function(s){return s=""+s||"",s=s.replace("]]>","]]]]>"),this.assertLegalChar(s)},i.prototype.comment=function(s){if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)},i.prototype.raw=function(s){return""+s||""},i.prototype.attName=function(s){return s=""+s||""},i.prototype.attValue=function(s){return s=""+s||"",this.attEscape(s)},i.prototype.insTarget=function(s){return""+s||""},i.prototype.insValue=function(s){if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return s},i.prototype.xmlVersion=function(s){if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s},i.prototype.xmlEncoding=function(s){if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return s},i.prototype.xmlStandalone=function(s){return s?"yes":"no"},i.prototype.dtdPubID=function(s){return""+s||""},i.prototype.dtdSysID=function(s){return""+s||""},i.prototype.dtdElementValue=function(s){return""+s||""},i.prototype.dtdAttType=function(s){return""+s||""},i.prototype.dtdAttDefault=function(s){return s!=null?""+s||"":s},i.prototype.dtdEntityValue=function(s){return""+s||""},i.prototype.dtdNData=function(s){return""+s||""},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(s){var p;if(p=s.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+s+" at index "+p.index);return s},i.prototype.elEscape=function(s){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(p,"&").replace(/ /g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(s){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(p,"&").replace(/ 0?new Array(s).join(this.indent):""):""},g}()}).call(void 0)},{}],235:[function(n,O,b){"use strict";(function(){var h,g,i,s,p,u,e;e=n("./Utility"),p=e.assign,u=e.isFunction,h=n("./XMLDocument"),g=n("./XMLDocumentCB"),s=n("./XMLStringWriter"),i=n("./XMLStreamWriter"),O.exports.create=function(o,r,l,d){var c,x;if(o==null)throw new Error("Root element needs a name");return d=p({},r,l,d),c=new h(d),x=c.element(o),d.headless||(c.declaration(d),d.pubID==null&&d.sysID==null||c.doctype(d)),x},O.exports.begin=function(o,r,l){var d;return u(o)&&(d=[o,r],r=d[0],l=d[1],o={}),r?new g(o,r,l):new h(o)},O.exports.stringWriter=function(o){return new s(o)},O.exports.streamWriter=function(o,r){return new i(o,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,O,b){function h(){for(var i={},s=0;sr?c=d(c):c.length>5]|=128<>>9<<4)]=d;for(var c=1732584193,x=-271733879,E=-1732584194,f=271733878,T=0;T>16)+(d>>16)+(c>>16)<<16|65535&c}function o(l,d){return l<>>32-d}var r=n("./helpers");O.exports=function(l){return r.hash(l,h,16)}},{"./helpers":238}],240:[function(n,O,b){"use strict";function h(e,o){e[o>>5]|=128<<24-o%32,e[15+(o+64>>9<<4)]=o;for(var r=Array(80),l=1732584193,d=-271733879,c=-1732584194,x=271733878,E=-1009589776,f=0;f>16)+(o>>16)+(r>>16)<<16|65535&r}function p(e,o){return e<>>32-o}var u=n("./helpers");O.exports=function(e){return u.hash(e,h,20,!0)}},{"./helpers":238}],241:[function(n,O,b){"use strict";var h=n("./helpers"),g=function(x,E){var f=(65535&x)+(65535&E);return(x>>16)+(E>>16)+(f>>16)<<16|65535&f},i=function(x,E){return x>>>E|x<<32-E},s=function(x,E){return x>>>E},p=function(x,E,f){return x&E^~x&f},u=function(x,E,f){return x&E^x&f^E&f},e=function(x){return i(x,2)^i(x,13)^i(x,22)},o=function(x){return i(x,6)^i(x,11)^i(x,25)},r=function(x){return i(x,7)^i(x,18)^s(x,3)},l=function(x){return i(x,17)^i(x,19)^s(x,10)},d=function(x,E){var f,T,S,m,_,A,I,w,R,C,M,j,X=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),H=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),q=new Array(64);x[E>>5]|=128<<24-E%32,x[15+(E+64>>9<<4)]=E;for(var R=0;R=0)return f("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,I,xe),w.headers=w.headers||{},w.headers.Authorization=digestAuthHeader(te.method,te.path,xe,w.digestAuth),f("Request#%d %s: auth with digest header: %s",$,I,w.headers.Authorization),Ee.headers["set-cookie"]&&(w.headers.Cookie=Ee.headers["set-cookie"].join(";")),b.requestWithCallback(I,w,be)}var Oe=Date.now()-D;ce&&(ce.contentDownload=Oe),f("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Oe,v,y,te.method,te.host,te.path,P,ce);var Se={status:y,statusCode:y,headers:ve,size:v,aborted:B,rt:Oe,keepAliveSocket:P,data:_e,requestUrls:w.requestUrls,timing:ce,remoteAddress:K,remotePort:pe};if(ae){var ke="";Y&&typeof Y.getCurrentStatus=="function"&&(ke=", agent status: "+(0,o.default)(Y.getCurrentStatus())),ae.message+=", "+te.method+" "+I+" "+y+" (connected: "+a+", keepalive socket: "+P+ke+`)
headers: `+(0,o.default)(ve),ae.data=_e,ae.path=te.path,ae.status=y,ae.headers=ve,ae.res=Se}be(ae,_e,w.streaming?Ee:Se),w.emitter&&(W.url=I,W.socket=ge&&ge.connection,W.options=te,W.size=re,w.emitter.emit("response",{requestId:$,error:ae,ctx:w.ctx,req:W,res:Se}))}function X(ae){var _e=null;if(w.followRedirect&&statuses.redirect[ae.statusCode]){w._followRedirectCount=(w._followRedirectCount||0)+1;var Ee=ae.headers.location;if(Ee){if(!(w._followRedirectCount>w.maxRedirects)){var be=w.formatRedirectUrl?w.formatRedirectUrl(I,Ee):c.resolve(I,Ee);f("Request#%d %s: `redirected` from %s to %s",$,te.path,I,be),M(),w.headers&&w.headers.Host&&_.test(Ee)&&(w.headers.Host=null);var ve=R;return R=null,b.requestWithCallback(be,w,ve),{redirect:!0,error:null}}_e=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+I),_e.name="MaxRedirectError"}else _e=new Error("Got statusCode "+ae.statusCode+" but cannot resolve next location from headers"),_e.name="FollowRedirectError"}return{redirect:!1,error:_e}}function H(ae,_e,Ee){return Ee(null,_e,ae.headers["content-encoding"])}function q(ae){if(ce&&(ce.waiting=Date.now()-D),f("Request#%d %s `req response` event emit: status %d, headers: %j",$,I,ae.statusCode,ae.headers),w.streaming){var _e=X(ae);return _e.redirect?void ae.resume():_e.error?(ae.resume(),j(_e.error,null,ae)):j(null,null,ae)}if(ae.on("close",function(){f("Request#%d %s: `res close` event emit, total size %d",$,I,v)}),ae.on("error",function(){f("Request#%d %s: `res error` event emit, total size %d",$,I,v)}),ae.on("aborted",function(){B=!0,f("Request#%d %s: `res aborted` event emit, total size %d",$,I,v)}),he){var _e=X(ae);return _e.redirect?void ae.resume():_e.error?(ae.resume(),he.end(),j(_e.error,null,ae)):(w.consumeWriteStream===!1?ae.on("end",j.bind(null,null,null,ae)):isNode010||isNode012?first([[he,"close"],[ae,"aborted"]],function(ve,xe,Oe){f("Request#%d %s: writeStream or res %s event emitted",$,I,Oe),j(t||null,null,ae)}):he.on("close",function(){f("Request#%d %s: writeStream close event emitted",$,I),j(t||null,null,ae)}),ae.pipe(he))}var Ee=[];ae.on("data",function(be){f("Request#%d %s: `res data` event emit, size %d",$,I,be.length),v+=be.length,Ee.push(be)}),ae.on("end",function(){var be=g.concat(Ee,v);if(f("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,I,v,ae._dumped),t)return j(t,be,ae);var ve=X(ae);if(ve.error)return j(ve.error,be,ae);ve.redirect||H(ae,be,function(xe,Oe,Se){if(xe)return j(xe,be,ae);if(!Se&&A.indexOf(w.dataType)>=0){try{Oe=decodeBodyByCharset(Oe,ae)}catch(Ce){return f("decodeBodyByCharset error: %s",Ce),j(null,Oe,ae)}if(w.dataType==="json")if(v===0)Oe=null;else{var ke=parseJSON(Oe,oe);ke.error?xe=ke.error:Oe=ke.data}}B&&f("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,I),j(xe,Oe,ae)})})}function Q(){f("Response timer ticking, timeout: %d",ye),k=setTimeout(function(){k=null;var ae="Response timeout for "+ye+"ms";t=new Error(ae),t.name="ResponseTimeoutError",t.requestId=$,f("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,I,t.name,ae,a),U()},ye)}function U(){f("Request#%d %s abort, connected: %s",$,I,a),ge.socket||(t.noSocket=!0,j(t)),ge.abort()}if(!I||typeof I!="string"&&(I===void 0?"undefined":(0,l.default)(I))!=="object"){var ee=d.format("expect request url to be a string or a http request options, but got %j",I);throw new Error(ee)}arguments.length===2&&typeof w=="function"&&(R=w,w=null),w=w||{},S>=m&&(S=0);var $=++S;w.requestUrls=w.requestUrls||[];var W={requestId:$,url:I,args:w,ctx:w.ctx};w.emitter&&w.emitter.emit("request",W),w.timeout=w.timeout||b.TIMEOUTS,w.maxRedirects=w.maxRedirects||10,w.streaming=w.streaming||w.customResponse;var L,D=Date.now();typeof I=="string"?(_.test(I)||(I="http://"+I),L=c.parse(I)):L=I;var N=(w.type||w.method||L.method||"GET").toUpperCase(),F=L.port||80,V=x,Y=s(w.agent,b.agent),oe=w.fixJSONCtlChars;L.protocol==="https:"&&(V=E,Y=s(w.httpsAgent,b.httpsAgent),L.port||(F=443));var te={host:L.hostname||L.host||"localhost",path:L.path||"/",method:N,port:F,agent:Y,headers:w.headers||{},lookup:w.lookup};Array.isArray(w.timeout)?te.requestTimeout=w.timeout[w.timeout.length-1]:w.timeout!==void 0&&(te.requestTimeout=w.timeout);for(var ue=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],fe=0;fe>>2]>>>24-A%4*8&255;T[m+A>>>2]|=I<<24-(m+A)%4*8}else for(var A=0;A<_;A+=4)T[m+A>>>2]=S[A>>>2];return this.sigBytes+=_,this},clamp:function(){var f=this.words,T=this.sigBytes;f[T>>>2]&=4294967295<<32-T%4*8,f.length=h.ceil(T/4)},clone:function(){var f=u.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var T,S=[],m=0;m>16)&w,A=18e3*(65535&A)+(A>>16)&w;var R=(I<<16)+A&w;return R/=4294967296,(R+=.5)*(h.random()>.5?1:-1)}}(4294967296*(T||h.random()));T=987654071*_(),S.push(4294967296*_()|0)}return new e.init(S,f)}}),o=s.enc={},r=o.Hex={stringify:function(f){for(var T=f.words,S=f.sigBytes,m=[],_=0;_>>2]>>>24-_%4*8&255;m.push((A>>>4).toString(16)),m.push((15&A).toString(16))}return m.join("")},parse:function(f){for(var T=f.length,S=[],m=0;m>>3]|=parseInt(f.substr(m,2),16)<<24-m%8*4;return new e.init(S,T/2)}},l=o.Latin1={stringify:function(f){for(var T=f.words,S=f.sigBytes,m=[],_=0;_>>2]>>>24-_%4*8&255;m.push(String.fromCharCode(A))}return m.join("")},parse:function(f){for(var T=f.length,S=[],m=0;m>>2]|=(255&f.charCodeAt(m))<<24-m%4*8;return new e.init(S,T)}},d=o.Utf8={stringify:function(f){try{return decodeURIComponent(escape(l.stringify(f)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(f){return l.parse(unescape(encodeURIComponent(f)))}},c=p.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=d.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var T=this._data,S=T.words,m=T.sigBytes,_=this.blockSize,A=4*_,I=m/A;I=f?h.ceil(I):h.max((0|I)-this._minBufferSize,0);var w=I*_,R=h.min(4*w,m);if(w){for(var C=0;C",e[0];)p++;return p>4&&p}},{key:"extend",value:function(p,u){for(var e in u)Object.prototype.hasOwnProperty.call(u,e)&&u[e]&&(p[e]=u[e])}},{key:"isArray",value:function(p){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(p){return p=p.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(p)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(p)?"audio":/.bmp|.jpg|.jpeg|.png/.test(p)?"img":"other"}},{key:"isImage",value:function(p){return p=p.toLowerCase(),!!/.jpg|.jpeg|.png/.test(p)}},{key:"ISODateString",value:function(p){function u(e){return e<10?"0"+e:e}return p.getUTCFullYear()+"-"+u(p.getUTCMonth()+1)+"-"+u(p.getUTCDate())+"T"+u(p.getUTCHours())+":"+u(p.getUTCMinutes())+":"+u(p.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(p){return!!/^\d+$/.test(p)}}]),i}();n.default=g},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return function(h){function g(x,E,f,T,S,m,_){var A=x+(E&f|~E&T)+S+_;return(A<>>32-m)+E}function i(x,E,f,T,S,m,_){var A=x+(E&T|f&~T)+S+_;return(A<>>32-m)+E}function s(x,E,f,T,S,m,_){var A=x+(E^f^T)+S+_;return(A<>>32-m)+E}function p(x,E,f,T,S,m,_){var A=x+(f^(E|~T))+S+_;return(A<>>32-m)+E}var u=b,e=u.lib,o=e.WordArray,r=e.Hasher,l=u.algo,d=[];!function(){for(var x=0;x<64;x++)d[x]=4294967296*h.abs(h.sin(x+1))|0}();var c=l.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,f){for(var T=0;T<16;T++){var S=f+T,m=E[S];E[S]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}var _=this._hash.words,A=E[f+0],I=E[f+1],w=E[f+2],R=E[f+3],C=E[f+4],M=E[f+5],j=E[f+6],X=E[f+7],H=E[f+8],q=E[f+9],Q=E[f+10],U=E[f+11],ee=E[f+12],$=E[f+13],W=E[f+14],L=E[f+15],D=_[0],N=_[1],F=_[2],V=_[3];D=g(D,N,F,V,A,7,d[0]),V=g(V,D,N,F,I,12,d[1]),F=g(F,V,D,N,w,17,d[2]),N=g(N,F,V,D,R,22,d[3]),D=g(D,N,F,V,C,7,d[4]),V=g(V,D,N,F,M,12,d[5]),F=g(F,V,D,N,j,17,d[6]),N=g(N,F,V,D,X,22,d[7]),D=g(D,N,F,V,H,7,d[8]),V=g(V,D,N,F,q,12,d[9]),F=g(F,V,D,N,Q,17,d[10]),N=g(N,F,V,D,U,22,d[11]),D=g(D,N,F,V,ee,7,d[12]),V=g(V,D,N,F,$,12,d[13]),F=g(F,V,D,N,W,17,d[14]),N=g(N,F,V,D,L,22,d[15]),D=i(D,N,F,V,I,5,d[16]),V=i(V,D,N,F,j,9,d[17]),F=i(F,V,D,N,U,14,d[18]),N=i(N,F,V,D,A,20,d[19]),D=i(D,N,F,V,M,5,d[20]),V=i(V,D,N,F,Q,9,d[21]),F=i(F,V,D,N,L,14,d[22]),N=i(N,F,V,D,C,20,d[23]),D=i(D,N,F,V,q,5,d[24]),V=i(V,D,N,F,W,9,d[25]),F=i(F,V,D,N,R,14,d[26]),N=i(N,F,V,D,H,20,d[27]),D=i(D,N,F,V,$,5,d[28]),V=i(V,D,N,F,w,9,d[29]),F=i(F,V,D,N,X,14,d[30]),N=i(N,F,V,D,ee,20,d[31]),D=s(D,N,F,V,M,4,d[32]),V=s(V,D,N,F,H,11,d[33]),F=s(F,V,D,N,U,16,d[34]),N=s(N,F,V,D,W,23,d[35]),D=s(D,N,F,V,I,4,d[36]),V=s(V,D,N,F,C,11,d[37]),F=s(F,V,D,N,X,16,d[38]),N=s(N,F,V,D,Q,23,d[39]),D=s(D,N,F,V,$,4,d[40]),V=s(V,D,N,F,A,11,d[41]),F=s(F,V,D,N,R,16,d[42]),N=s(N,F,V,D,j,23,d[43]),D=s(D,N,F,V,q,4,d[44]),V=s(V,D,N,F,ee,11,d[45]),F=s(F,V,D,N,L,16,d[46]),N=s(N,F,V,D,w,23,d[47]),D=p(D,N,F,V,A,6,d[48]),V=p(V,D,N,F,X,10,d[49]),F=p(F,V,D,N,W,15,d[50]),N=p(N,F,V,D,M,21,d[51]),D=p(D,N,F,V,ee,6,d[52]),V=p(V,D,N,F,R,10,d[53]),F=p(F,V,D,N,Q,15,d[54]),N=p(N,F,V,D,I,21,d[55]),D=p(D,N,F,V,H,6,d[56]),V=p(V,D,N,F,L,10,d[57]),F=p(F,V,D,N,j,15,d[58]),N=p(N,F,V,D,$,21,d[59]),D=p(D,N,F,V,C,6,d[60]),V=p(V,D,N,F,U,10,d[61]),F=p(F,V,D,N,w,15,d[62]),N=p(N,F,V,D,q,21,d[63]),_[0]=_[0]+D|0,_[1]=_[1]+N|0,_[2]=_[2]+F|0,_[3]=_[3]+V|0},_doFinalize:function(){var E=this._data,f=E.words,T=8*this._nDataBytes,S=8*E.sigBytes;f[S>>>5]|=128<<24-S%32;var m=h.floor(T/4294967296),_=T;f[15+(S+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),f[14+(S+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),E.sigBytes=4*(f.length+1),this._process();for(var A=this._hash,I=A.words,w=0;w<4;w++){var R=I[w];I[w]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}return A},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});u.MD5=r._createHelper(c),u.HmacMD5=r._createHmacHelper(c)}(Math),b.MD5})},function(de,n,O){"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(de,n,O){"use strict";function b(c){return c&&c.__esModule?c:{default:c}}function h(c,x){if(!(c instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function c(x,E){for(var f=0;f-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var d=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(l="macOS"),navigator.platform=="X11"&&!d&&!c&&(l="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(l="Linux"),d?"windows":l},i=function(){var o=navigator.userAgent,r="";return(o.indexOf("Windows NT 5.0")>-1||o.indexOf("Windows 2000")>-1)&&(r="2000"),(o.indexOf("Windows NT 5.1")>-1||o.indexOf("Windows XP")>-1)&&(r="XP"),(o.indexOf("Windows NT 5.2")>-1||o.indexOf("Windows 2003")>-1)&&(r="2003"),(o.indexOf("Windows NT 6.0")>-1||o.indexOf("Windows Vista")>-1)&&(r="Vista"),(o.indexOf("Windows NT 6.1")>-1||o.indexOf("Windows 7")>-1)&&(r="7"),(o.indexOf("Windows NT 6.2")>-1||o.indexOf("Windows 8")>-1)&&(r="8"),(o.indexOf("Windows NT 6.3")>-1||o.indexOf("Windows 8.1")>-1)&&(r="8.1"),(o.indexOf("Windows NT 10")>-1||o.indexOf("Windows 10")>-1)&&(r="10"),r},s=function(o){var r=navigator.userAgent.toLowerCase();return o.chrome?"Chrome":o.firefox?"Firefox":o.safari?"Safari":o.webview?"webview":o.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var e={},o={},r=navigator.userAgent,l=navigator.platform,d=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=r.match(/(Android);?[\s\/]+([\d.]+)?/),x=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),f=r.match(/(iPod)(.*OS\s([\d_]+))?/),T=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),S=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),m=/Win\d{2}|Windows/.test(l),_=r.match(/Windows Phone ([\d.]+)/),A=S&&r.match(/TouchPad/),I=r.match(/Kindle\/([\d.]+)/),w=r.match(/Silk\/([\d._]+)/),R=r.match(/(BlackBerry).*Version\/([\d.]+)/),C=r.match(/(BB10).*Version\/([\d.]+)/),M=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),j=r.match(/PlayBook/),X=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),H=r.match(/Firefox\/([\d.]+)/),q=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Q=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!X&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ee=U||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!d)&&(o.version=d[1]),c&&(e.android=!0,e.version=c[2]),T&&!f&&(e.ios=e.iphone=!0,e.version=T[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),_&&(e.wp=!0,e.version=_[1]),S&&(e.webos=!0,e.version=S[2]),A&&(e.touchpad=!0),R&&(e.blackberry=!0,e.version=R[2]),C&&(e.bb10=!0,e.version=C[2]),M&&(e.rimtabletos=!0,e.version=M[2]),j&&(o.playbook=!0),I&&(e.kindle=!0,e.version=I[1]),w&&(o.silk=!0,o.version=w[1]),!w&&e.android&&r.match(/Kindle Fire/)&&(o.silk=!0),X&&(o.chrome=!0,o.version=X[1]),H&&(o.firefox=!0,o.version=H[1]),q&&(e.firefoxos=!0,e.version=q[1]),Q&&(o.ie=!0,o.version=Q[1]),ee&&(x||e.ios||m||c)&&(o.safari=!0,e.ios||(o.version=ee[1])),U&&(o.webview=!0),x){var $=r.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||j||c&&!r.match(/Mobile/)||H&&r.match(/Tablet/)||Q&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||T||S||R||C||X&&r.match(/Android/)||X&&r.match(/CriOS\/([\d.]+)/)||H&&r.match(/Mobile/)||Q&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,x?e.name="macOS":m?(e.name="windows",e.version=i()):e.name=g(e),o.name=s(o),{os:e,browser:o}}(),u=function(){function e(){b(this,e)}return h(e,null,[{key:"getHost",value:function(r){var l="";if(r===void 0||r==null||r=="")return"";var d=r.indexOf("//"),c=r;d>-1&&(c=r.substring(d+2));var l=c,x=c.split("/");return x&&x.length>0&&(l=x[0]),x=l.split(":"),x&&x.length>0&&(l=x[0]),l}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var r=p.browser;return r.name||(r.name=s()),r}}]),e}();n.default=u},function(de,n,O){"use strict";function b(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,p){for(var u=0;u0){W._invalidUserId=!0;var F=N.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(F)}}catch(V){console.log(V)}})})}Q&&($.videoInfo=Q?JSON.parse(Q).Vod:{},$.userData=o.default.encode(Q)),$.ri=T.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 X=this._uploadList[j];if(j==this._curIndex&&X.state==i.UPLOADSTATE.UPLOADING){X.state=i.UPLOADSTATE.CANCELED;var H=this._getCheckoutpoint(X);H&&H.checkpoint&&(H=H.checkpoint),H&&this._ossUpload.abort(X),this._removeCheckoutpoint(X),this.nextUpload()}else X.state!=i.UPLOADSTATE.SUCCESS&&(X.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",X),!0}},{key:"resumeFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var X=this._uploadList[j];return X.state==i.UPLOADSTATE.CANCELED&&(X.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 X=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(X),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 X=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(X)}else{this._state=i.VODSTATE.END;try{j.onUploadEnd&&j.onUploadEnd(X)}catch(H){console.log(H)}}}},{key:"clear",value:function(j){for(var X=this.options,H=0,q=0;qthis._curIndex&&(Q=this._uploadList[this._curIndex]),Q&&(this.init(j,X,H,q),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(Q,Q.retry),Q.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(j,X,H){if(this._curIndex==-1)return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var q=this._uploadList[this._curIndex];q.object?this._refreshSTSTokenUpload(q,j,X,H):this.setSTSToken(q,j,X,H)}}},{key:"setSTSTokenDirectlyUpload",value:function(j,X,H,q,Q){if(!(X&&H&&q&&Q))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var U=j;this.init(X,H,q,Q),U.endpoint=U._endpoint,U.bucket=U._bucket,U.object=U._object,this._ossUpload=null,this._uploadCore(U,j.retry),j.retry=!1}},{key:"setSTSToken",value:function(j,X,H,q){if(!X||!H||!q)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Q=j.videoInfo,U={accessKeyId:X,securityToken:q,accessKeySecret:H,fileName:j.file.name,title:Q.Title,requestId:j.ri,region:this.options.region};Q.ImageType&&(U.imageType=Q.ImageType),Q.ImageExt&&(U.imageExt=Q.ImageExt),Q.FileSize&&(U.fileSize=Q.FileSize),Q.Description&&(U.description=Q.Description),Q.CateId&&(U.cateId=Q.CateId),Q.Tags&&(U.tags=Q.Tags),Q.TemplateGroupId&&(U.templateGroupId=Q.TemplateGroupId),Q.StorageLocation&&(U.storageLocation=Q.StorageLocation),Q.CoverURL&&(U.coverUrl=Q.CoverURL),Q.TransCodeMode&&(U.transCodeMode=Q.TransCodeMode),Q.UserData&&(U.userData=Q.UserData);var ee=this,$="getUploadAuth";j.videoId?(U.videoId=j.videoId,$="refreshUploadAuth"):j.isImage&&($="getImageUploadAuth"),m.default[$](U,function(W){j.videoId=W.VideoId?W.VideoId:j.videoId,ee.setUploadAuthAndAddress(j,W.UploadAuth,W.UploadAddress),ee._state=i.VODSTATE.START},function(W){ee._error(j,{name:W.Code,code:W.Code,message:W.Message,requestId:W.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(j,X,H,q){if(!j||!X||!H)return!1;var Q=JSON.parse(o.default.decode(X));if(!(Q.AccessKeyId&&Q.AccessKeySecret&&Q.SecurityToken&&Q.Expiration))return console.error("uploadauth is invalid"),!1;var U={},ee=j;if(H){if(U=JSON.parse(o.default.decode(H)),!U.Endpoint||!U.Bucket||!U.FileName)return console.error("uploadAddress is invalid"),!1}else U.Endpoint=ee.endpoint,U.Bucket=ee.bucket,U.FileName=ee.object;this._ut="vod",this._uploadWay="vod",this.options.region=Q.Region||this.options.region,this.init(Q.AccessKeyId,Q.AccessKeySecret,Q.SecurityToken,Q.Expiration),ee.endpoint=ee._endpoint?ee._endpoint:U.Endpoint,ee.bucket=ee._bucket?ee._bucket:U.Bucket,ee.object=ee._object?ee._object:U.FileName,ee.region=this.options.region,q&&(ee.videoId=q),this._ossUpload=null,this._uploadCore(ee,j.retry),j.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(j,X,H,q){if(!X||!H||!q)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Q={accessKeyId:X,securityToken:q,accessKeySecret:H,videoId:j.object,requestId:j.ri,region:this.options.region},U=this,ee="refreshUploadAuth";j.isImage&&(ee="getImageUploadAuth"),m.default[ee](Q,function($){U.setUploadAuthAndAddress(j,$.UploadAuth,UploadAddress),U._state=i.VODSTATE.START},function($){U._error(j,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(j){var X=arguments.length>1&&arguments[1]!==void 0&&arguments[1],H=this.options;if(j.retry=X,H.onUploadstarted&&!X)try{var q=this._getCheckoutpoint(j);q&&q.state!=i.UPLOADSTATE.UPLOADING&&(j.checkpoint=q,j.videoId=q.videoId),H.onUploadstarted(j)}catch(Q){console.log(Q)}}},{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 X=this;this._ossUpload=new u.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){X._error.call(X,L,D)},oncomplete:function(L,D){X._complete.call(X,L,D)},onprogress:function(L,D,N){X._progress.call(X,L,D,N)}})}var H=E.default.getFileType(j.file.name),q=this._getCheckoutpoint(j),Q="",U="";q&&q.checkpoint&&(U=q.state,Q=q.videoId,q=q.checkpoint),q&&Q==j.videoId&&U!=i.UPLOADSTATE.UPLOADING&&(q.file=j.file,j.checkpoint=q,q.uploadId);var ee=this._adjustPartSize(j);this._reportLog("20002",j,{ft:H,fs:j.file.size,bu:j.bucket,ok:j.object,vid:j.videoId||"",fn:j.file.name,fw:null,fh:null,ps:ee});var $={headers:{"x-oss-notification":j.userData?j.userData:""},partSize:ee,parallel:this.options.parallel};this._ossUpload.upload(j,$)}},{key:"_findUploadIndex",value:function(){for(var j=-1,X=0;X0||X.name=="SignatureDoesNotMatchError"||X.code=="SecurityTokenExpired"||X.code=="InvalidSecurityToken.Expired"||X.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=i.VODSTATE.EXPIRE,j.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(j,X)}catch(q){console.log(q)}}return}if((X.name=="RequestTimeoutError"||X.name=="ConnectionTimeout"||X.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var H=this;return setTimeout(function(){H._uploadCore(j,!0)},1e3*H._retryDuration),void this._retryCount++}X.name=="NoSuchUploadError"&&this._removeCheckoutpoint(j),this._handleError(j,X)}}},{key:"_handleError",value:function(j,X){var H=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],q=i.UPLOADSTATE.FAIlURE;if(j.state!=i.UPLOADSTATE.CANCELED&&(j.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&X&&X.code&&X.message))try{this.options.onUploadFailed(j,X.code,X.message)}catch(U){console.log(U)}if(H&&this._changeState(j,q),this._reportLog("20006",j,{code:X.name,message:X.message,requestId:X.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),this._reportLog("20004",j,{requestId:X.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),j.ri=T.default.create(),this._findUploadIndex()!=-1){var Q=this;this._state=i.VODSTATE.START,setTimeout(function(){Q.nextUpload()},100)}}},{key:"_complete",value:function(j,X){if(j.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(j)}catch(Q){console.log(Q)}var H=0;X&&X.res&&X.res.headers&&(H=X.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(j);var q=this;setTimeout(function(){q.nextUpload()},100),this._retryCount=0,this._reportLog("20003",j,{requestId:H})}},{key:"_progress",value:function(j,X,H){if(this.options.onUploadProgress)try{j.loaded=X.loaded,this.options.onUploadProgress(j,X.total,X.loaded)}catch(L){console.log(L)}var q=X.checkpoint,Q=0;q&&(j.checkpoint=q,this._saveCheckoutpoint(j,q,i.UPLOADSTATE.UPLOADING),Q=q.uploadId),this._retryCount=0;var U=this._getPortNumber(q),ee=0;if(H&&H.headers&&(ee=H.headers["x-oss-request-id"]),X.loaded!=0&&this._reportLog("20007",j,{pn:U,requestId:ee}),X.loaded!=1&&this._reportLog("20005",j,{UploadId:Q,pn:U+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:X,userId:this.options.userId,videoId:j.videoId,region:this.options.region,fileHash:j.fileHash};try{var W=this;A.default.upload($,function(){},function(L){if((L=JSON.parse(L))&&L.Code=="InvalidParameter"&&L.Message.indexOf("UserId")>0){W._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 X=j.doneParts;if(X&&X.length>0)return X[X.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(j){var X=this._getCheckoutpointKey(j);l.default.remove(X)}},{key:"_getCheckoutpoint",value:function(j){var X=this._getCheckoutpointKey(j),H=l.default.get(X);if(H)try{return JSON.parse(H)}catch(q){}return""}},{key:"_saveCheckoutpoint",value:function(j,X,H){if(X){var q=this._getCheckoutpointKey(j),Q=j.file,U={fileName:Q.name,lastModified:Q.lastModified,size:Q.size,object:j.object,videoId:j.videoId,bucket:j.bucket,endpoint:j.endpoint,checkpoint:X,loaded:j.loaded,state:H};l.default.set(q,JSON.stringify(U))}}},{key:"_changeState",value:function(j,X){var H=this._getCheckoutpoint(j);H&&((this._onbeforeunload=!0)&&(X=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(j,H.checkpoint,X))}},{key:"_getCheckoutpointKey",value:function(j){return"upload_"+j.file.lastModified+"_"+j.file.name+"_"+j.file.size}},{key:"_getCheckoutpointFromCloud",value:function(j,X,H){var q={userId:this.options.userId,uploadInfoList:[{FileName:j.file.name,FileSize:j.file.size,FileCreateTime:j.file.lastModified,FileHash:j.fileHash}],region:this.options.region};A.default.get(q,function(Q){X(Q)},H)}},{key:"_reportLog",value:function(j,X,H){H||(H={}),H.ri=X.ri,this._ut&&(H.ut=this._ut),this._log.log(j,H)}},{key:"_initEvent",value:function(){var j=this;window&&(window.onbeforeunload=function(X){if(j._onbeforeunload=!0,j._curIndex!=-1&&j._uploadList.length>j._curIndex){var H=j._uploadList[j._curIndex];j._changeState(H,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var j=0;j1e4?j.file.size/9999:this.options.partSize}}]),C}());n.default=R},function(de,n,O){"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(de,n,O){"use strict";function b(e){return e&&e.__esModule?e:{default:e}}function h(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function e(o,r){for(var l=0;l=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|k}function x(k){return+k!=k&&(k=0),i.alloc(+k)}function E(k,t){if(i.isBuffer(k))return k.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var a=k.length;if(a===0)return 0;for(var P=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return te(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Z(k).length;default:if(P)return te(k).length;t=(""+t).toLowerCase(),P=!0}}function f(k,t,a){var P=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((a===void 0||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";for(k||(k="utf8");;)switch(k){case"hex":return Q(this,t,a);case"utf8":case"utf-8":return j(this,t,a);case"ascii":return H(this,t,a);case"latin1":case"binary":return q(this,t,a);case"base64":return M(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,a);default:if(P)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),P=!0}}function T(k,t,a){var P=k[t];k[t]=k[a],k[a]=P}function S(k,t,a,P,v){if(k.length===0)return-1;if(typeof a=="string"?(P=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=v?0:k.length-1),a<0&&(a=k.length+a),a>=k.length){if(v)return-1;a=k.length-1}else if(a<0){if(!v)return-1;a=0}if(typeof t=="string"&&(t=i.from(t,P)),i.isBuffer(t))return t.length===0?-1:m(k,t,a,P,v);if(typeof t=="number")return t&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(k,t,a):Uint8Array.prototype.lastIndexOf.call(k,t,a):m(k,[t],a,P,v);throw new TypeError("val must be string, number or Buffer")}function m(k,t,a,P,v){function y(ge,ae){return B===1?ge[ae]:ge.readUInt16BE(ae*B)}var B=1,K=k.length,pe=t.length;if(P!==void 0&&((P=String(P).toLowerCase())==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(k.length<2||t.length<2)return-1;B=2,K/=2,pe/=2,a/=2}var ce;if(v){var he=-1;for(ce=a;ceK&&(a=K-pe),ce=a;ce>=0;ce--){for(var me=!0,ye=0;yev&&(P=v):P=v;var y=t.length;if(y%2!=0)throw new TypeError("Invalid hex string");P>y/2&&(P=y/2);for(var B=0;B239?4:y>223?3:y>191?2:1;if(v+K<=a){var pe,ce,he,me;switch(K){case 1:y<128&&(B=y);break;case 2:pe=k[v+1],(192&pe)==128&&(me=(31&y)<<6|63&pe)>127&&(B=me);break;case 3:pe=k[v+1],ce=k[v+2],(192&pe)==128&&(192&ce)==128&&(me=(15&y)<<12|(63&pe)<<6|63&ce)>2047&&(me<55296||me>57343)&&(B=me);break;case 4:pe=k[v+1],ce=k[v+2],he=k[v+3],(192&pe)==128&&(192&ce)==128&&(192&he)==128&&(me=(15&y)<<18|(63&pe)<<12|(63&ce)<<6|63&he)>65535&&me<1114112&&(B=me)}}B===null?(B=65533,K=1):B>65535&&(B-=65536,P.push(B>>>10&1023|55296),B=56320|1023&B),P.push(B),v+=K}return X(P)}function X(k){var t=k.length;if(t<=ne)return String.fromCharCode.apply(String,k);for(var a="",P=0;PP)&&(a=P);for(var v="",y=t;ya)throw new RangeError("Trying to access beyond buffer length")}function $(k,t,a,P,v,y){if(!i.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>v||tk.length)throw new RangeError("Index out of range")}function W(k,t,a,P){t<0&&(t=65535+t+1);for(var v=0,y=Math.min(k.length-a,2);v>>8*(P?v:1-v)}function L(k,t,a,P){t<0&&(t=4294967295+t+1);for(var v=0,y=Math.min(k.length-a,4);v>>8*(P?v:3-v)&255}function D(k,t,a,P,v,y){if(a+P>k.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function N(k,t,a,P,v){return v||D(k,t,a,4,34028234663852886e22,-34028234663852886e22),z.write(k,t,a,P,23,4),a+4}function F(k,t,a,P,v){return v||D(k,t,a,8,17976931348623157e292,-17976931348623157e292),z.write(k,t,a,P,52,8),a+8}function V(k){if(k=Y(k).replace(le,""),k.length<2)return"";for(;k.length%4!=0;)k+="=";return k}function Y(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function oe(k){return k<16?"0"+k.toString(16):k.toString(16)}function te(k,t){t=t||1/0;for(var a,P=k.length,v=null,y=[],B=0;B55295&&a<57344){if(!v){if(a>56319){(t-=3)>-1&&y.push(239,191,189);continue}if(B+1===P){(t-=3)>-1&&y.push(239,191,189);continue}v=a;continue}if(a<56320){(t-=3)>-1&&y.push(239,191,189),v=a;continue}a=65536+(v-55296<<10|a-56320)}else v&&(t-=3)>-1&&y.push(239,191,189);if(v=null,a<128){if((t-=1)<0)break;y.push(a)}else if(a<2048){if((t-=2)<0)break;y.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;y.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;y.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return y}function ue(k){for(var t=[],a=0;a>8,v=a%256,y.push(v),y.push(P);return y}function Z(k){return G.toByteArray(V(k))}function J(k,t,a,P){for(var v=0;v=t.length||v>=k.length);++v)t[v+a]=k[v];return v}function ie(k){return k!==k}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh
* @license MIT
*/var G=O(21),z=O(22),re=O(23);n.Buffer=i,n.SlowBuffer=x,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=b.TYPED_ARRAY_SUPPORT!==void 0?b.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=h(),i.poolSize=8192,i._augment=function(k){return k.__proto__=i.prototype,k},i.from=function(k,t,a){return s(null,k,t,a)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(k,t,a){return u(null,k,t,a)},i.allocUnsafe=function(k){return e(null,k)},i.allocUnsafeSlow=function(k){return e(null,k)},i.isBuffer=function(k){return!(k==null||!k._isBuffer)},i.compare=function(k,t){if(!i.isBuffer(k)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(k===t)return 0;for(var a=k.length,P=t.length,v=0,y=Math.min(a,P);v0&&(k=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(k+=" ... ")),""},i.prototype.compare=function(k,t,a,P,v){if(!i.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),a===void 0&&(a=k?k.length:0),P===void 0&&(P=0),v===void 0&&(v=this.length),t<0||a>k.length||P<0||v>this.length)throw new RangeError("out of range index");if(P>=v&&t>=a)return 0;if(P>=v)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,P>>>=0,v>>>=0,this===k)return 0;for(var y=v-P,B=a-t,K=Math.min(y,B),pe=this.slice(P,v),ce=k.slice(t,a),he=0;hev)&&(a=v),k.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var y=!1;;)switch(P){case"hex":return _(this,k,t,a);case"utf8":case"utf-8":return A(this,k,t,a);case"ascii":return I(this,k,t,a);case"latin1":case"binary":return w(this,k,t,a);case"base64":return R(this,k,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,k,t,a);default:if(y)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),y=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ne=4096;i.prototype.slice=function(k,t){var a=this.length;k=~~k,t=t===void 0?a:~~t,k<0?(k+=a)<0&&(k=0):k>a&&(k=a),t<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(v*=256);)P+=this[k+--t]*v;return P},i.prototype.readUInt8=function(k,t){return t||ee(k,1,this.length),this[k]},i.prototype.readUInt16LE=function(k,t){return t||ee(k,2,this.length),this[k]|this[k+1]<<8},i.prototype.readUInt16BE=function(k,t){return t||ee(k,2,this.length),this[k]<<8|this[k+1]},i.prototype.readUInt32LE=function(k,t){return t||ee(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},i.prototype.readUInt32BE=function(k,t){return t||ee(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},i.prototype.readIntLE=function(k,t,a){k|=0,t|=0,a||ee(k,t,this.length);for(var P=this[k],v=1,y=0;++y=v&&(P-=Math.pow(2,8*t)),P},i.prototype.readIntBE=function(k,t,a){k|=0,t|=0,a||ee(k,t,this.length);for(var P=t,v=1,y=this[k+--P];P>0&&(v*=256);)y+=this[k+--P]*v;return v*=128,y>=v&&(y-=Math.pow(2,8*t)),y},i.prototype.readInt8=function(k,t){return t||ee(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},i.prototype.readInt16LE=function(k,t){t||ee(k,2,this.length);var a=this[k]|this[k+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(k,t){t||ee(k,2,this.length);var a=this[k+1]|this[k]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(k,t){return t||ee(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},i.prototype.readInt32BE=function(k,t){return t||ee(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},i.prototype.readFloatLE=function(k,t){return t||ee(k,4,this.length),z.read(this,k,!0,23,4)},i.prototype.readFloatBE=function(k,t){return t||ee(k,4,this.length),z.read(this,k,!1,23,4)},i.prototype.readDoubleLE=function(k,t){return t||ee(k,8,this.length),z.read(this,k,!0,52,8)},i.prototype.readDoubleBE=function(k,t){return t||ee(k,8,this.length),z.read(this,k,!1,52,8)},i.prototype.writeUIntLE=function(k,t,a,P){(k=+k,t|=0,a|=0,!P)&&$(this,k,t,a,Math.pow(2,8*a)-1,0);var v=1,y=0;for(this[t]=255&k;++y=0&&(y*=256);)this[t+v]=k/y&255;return t+a},i.prototype.writeUInt8=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[t]=255&k,t+1},i.prototype.writeUInt16LE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):W(this,k,t,!0),t+2},i.prototype.writeUInt16BE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):W(this,k,t,!1),t+2},i.prototype.writeUInt32LE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=k>>>24,this[t+2]=k>>>16,this[t+1]=k>>>8,this[t]=255&k):L(this,k,t,!0),t+4},i.prototype.writeUInt32BE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):L(this,k,t,!1),t+4},i.prototype.writeIntLE=function(k,t,a,P){if(k=+k,t|=0,!P){var v=Math.pow(2,8*a-1);$(this,k,t,a,v-1,-v)}var y=0,B=1,K=0;for(this[t]=255&k;++y>0)-K&255;return t+a},i.prototype.writeIntBE=function(k,t,a,P){if(k=+k,t|=0,!P){var v=Math.pow(2,8*a-1);$(this,k,t,a,v-1,-v)}var y=a-1,B=1,K=0;for(this[t+y]=255&k;--y>=0&&(B*=256);)k<0&&K===0&&this[t+y+1]!==0&&(K=1),this[t+y]=(k/B>>0)-K&255;return t+a},i.prototype.writeInt8=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[t]=255&k,t+1},i.prototype.writeInt16LE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):W(this,k,t,!0),t+2},i.prototype.writeInt16BE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):W(this,k,t,!1),t+2},i.prototype.writeInt32LE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8,this[t+2]=k>>>16,this[t+3]=k>>>24):L(this,k,t,!0),t+4},i.prototype.writeInt32BE=function(k,t,a){return k=+k,t|=0,a||$(this,k,t,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),i.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):L(this,k,t,!1),t+4},i.prototype.writeFloatLE=function(k,t,a){return N(this,k,t,!0,a)},i.prototype.writeFloatBE=function(k,t,a){return N(this,k,t,!1,a)},i.prototype.writeDoubleLE=function(k,t,a){return F(this,k,t,!0,a)},i.prototype.writeDoubleBE=function(k,t,a){return F(this,k,t,!1,a)},i.prototype.copy=function(k,t,a,P){if(a||(a=0),P||P===0||(P=this.length),t>=k.length&&(t=k.length),t||(t=0),P>0&&P=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),k.length-t=0;--v)k[v+t]=this[v+a];else if(y<1e3||!i.TYPED_ARRAY_SUPPORT)for(v=0;v>>=0,a=a===void 0?this.length:a>>>0,k||(k=0);var y;if(typeof k=="number")for(y=t;y0)throw new Error("Invalid string. Length must be a multiple of 4");return c[x-2]==="="?2:c[x-1]==="="?1:0}function h(c){return 3*c.length/4-b(c)}function g(c){var x,E,f,T,S,m=c.length;T=b(c),S=new o(3*m/4-T),E=T>0?m-4:m;var _=0;for(x=0;x>16&255,S[_++]=f>>8&255,S[_++]=255&f;return T===2?(f=e[c.charCodeAt(x)]<<2|e[c.charCodeAt(x+1)]>>4,S[_++]=255&f):T===1&&(f=e[c.charCodeAt(x)]<<10|e[c.charCodeAt(x+1)]<<4|e[c.charCodeAt(x+2)]>>2,S[_++]=f>>8&255,S[_++]=255&f),S}function i(c){return u[c>>18&63]+u[c>>12&63]+u[c>>6&63]+u[63&c]}function s(c,x,E){for(var f,T=[],S=x;S_?_:m+16383));return f===1?(x=c[E-1],T+=u[x>>2],T+=u[x<<4&63],T+="=="):f===2&&(x=(c[E-2]<<8)+c[E-1],T+=u[x>>10],T+=u[x>>4&63],T+=u[x<<2&63],T+="="),S.push(T),S.join("")}n.byteLength=h,n.toByteArray=g,n.fromByteArray=p;for(var u=[],e=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,d=r.length;l>1,r=-7,l=h?i-1:0,d=h?-1:1,c=O[b+l];for(l+=d,s=c&(1<<-r)-1,c>>=-r,r+=u;r>0;s=256*s+O[b+l],l+=d,r-=8);for(p=s&(1<<-r)-1,s>>=-r,r+=g;r>0;p=256*p+O[b+l],l+=d,r-=8);if(s===0)s=1-o;else{if(s===e)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,g),s-=o}return(c?-1:1)*p*Math.pow(2,s-g)},n.write=function(O,b,h,g,i,s){var p,u,e,o=8*s-i-1,r=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=g?0:s-1,x=g?1:-1,E=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(u=isNaN(b)?1:0,p=r):(p=Math.floor(Math.log(b)/Math.LN2),b*(e=Math.pow(2,-p))<1&&(p--,e*=2),b+=p+l>=1?d/e:d*Math.pow(2,1-l),b*e>=2&&(p++,e/=2),p+l>=r?(u=0,p=r):p+l>=1?(u=(b*e-1)*Math.pow(2,i),p+=l):(u=b*Math.pow(2,l-1)*Math.pow(2,i),p=0));i>=8;O[h+c]=255&u,c+=x,u/=256,i-=8);for(p=p<0;O[h+c]=255&p,c+=x,p/=256,o-=8);O[h+c-x]|=128*E}},function(de,n){var O={}.toString;de.exports=Array.isArray||function(b){return O.call(b)=="[object Array]"}},function(de,n,O){"use strict";function b(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function i(s,p){for(var u=0;u>>31}var _=(c<<5|c>>>27)+T+u[S];_+=S<20?1518500249+(x&E|~x&f):S<40?1859775393+(x^E^f):S<60?(x&E|x&f|E&f)-1894007588:(x^E^f)-899497514,T=f,f=E,E=x<<30|x>>>2,x=c,c=_}d[0]=d[0]+c|0,d[1]=d[1]+x|0,d[2]=d[2]+E|0,d[3]=d[3]+f|0,d[4]=d[4]+T|0},_doFinalize:function(){var r=this._data,l=r.words,d=8*this._nDataBytes,c=8*r.sigBytes;return l[c>>>5]|=128<<24-c%32,l[14+(c+64>>>9<<4)]=Math.floor(d/4294967296),l[15+(c+64>>>9<<4)]=d,r.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});h.SHA1=s._createHelper(e),h.HmacSHA1=s._createHmacHelper(e)}(),b.SHA1})},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){!function(){var h=b,g=h.lib,i=g.Base,s=h.enc,p=s.Utf8,u=h.algo;u.HMAC=i.extend({init:function(o,r){o=this._hasher=new o.init,typeof r=="string"&&(r=p.parse(r));var l=o.blockSize,d=4*l;r.sigBytes>d&&(r=o.finalize(r)),r.clamp();for(var c=this._oKey=r.clone(),x=this._iKey=r.clone(),E=c.words,f=x.words,T=0;T>>6-d%4*2;r[l>>>2]|=(c|x)<<24-l%4*8,l++}return s.create(r,l)}var g=b,i=g.lib,s=i.WordArray,p=g.enc;p.Base64={stringify:function(e){var o=e.words,r=e.sigBytes,l=this._map;e.clamp();for(var d=[],c=0;c>>2]>>>24-c%4*8&255,E=o[c+1>>>2]>>>24-(c+1)%4*8&255,f=o[c+2>>>2]>>>24-(c+2)%4*8&255,T=x<<16|E<<8|f,S=0;S<4&&c+.75*S>>6*(3-S)&63));var m=l.charAt(64);if(m)for(;d.length%4;)d.push(m);return d.join("")},parse:function(e){var o=e.length,r=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var d=0;d0&&($=ee.UploadProgress.UploadProgressList[0],W=$.ClientId),o.default.setClientId(W),w&&w($)},function(ee){ee&&(R(ee),console.log(ee))})}}]),_}();n.default=m},function(de,n,O){"use strict";function b(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function p(u,e){for(var o=0;oA*1024*1024){i.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(A,"M")),pe();return}if((Oe=te.videoList)===null||Oe===void 0?void 0:Oe.find(function(Ce){return Ce.name===Se.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}me(Se)},he=function(be,ve){h.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ve?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){pe(),ue({type:"removeVideo",payload:{name:be}})}})},me=function(be){var ve,xe='{"Vod":{}}';if(ie(!0),G.current){G.current.addFile(be,null,null,null,xe);return}Object(m.a)((ve=j.userInfo)===null||ve===void 0?void 0:ve.login,{create:!G,addFileSuccess:function(Se){ue({type:"addVideo",payload:{uploadInfo:Se}})},onUploadProgress:function(Se,ke,Ce){var Ue=Math.ceil(Ce*100);ue({type:"updateProgress",payload:{uploadInfo:Se,progressPercent:Ue}}),pe()},onUploadFailed:function(Se){i.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(Se){ie(!1)},onUploadSucceed:function(Se){ie(!1)},onUploadError:function(Se){ie(!1)},gotUploader:function(Se){Se.addFile(be,null,null,null,xe),G.current=Se}})},ye=function(){var Ee=Object(O.a)(n.a.mark(function be(){var ve,xe,Oe,Se;return n.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,V.validateFields();case 2:if(!(!a&&!((ve=te.videoList)===null||ve===void 0?void 0:ve.length)||a&&!ne)){Ce.next=5;break}return i.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Ce.abrupt("return");case 5:return K(!0),Oe=a?{link:ne}:{video_id:(xe=te.videoList)===null||xe===void 0?void 0:xe[0].videoId},Ce.next=9,L(Object(e.a)(Object(e.a)({},Oe),{name:V.getFieldValue("name"),description:V.getFieldValue("description")}));case 9:Se=Ce.sent,K(!1),Se.id&&ge();case 12:case"end":return Ce.stop()}},be)}));return function(){return Ee.apply(this,arguments)}}(),ge=function(){V.resetFields(),ue({type:"removeAll"}),le(null),P(null)},ae=function(){$(),ge()},_e=function(){var be,ve,xe,Oe,Se,ke,Ce,Ue,Re,Me,qe,Ve;return c.a.createElement(c.a.Fragment,null,!a&&!!((be=te.videoList)===null||be===void 0?void 0:be.length)&&c.a.createElement("div",{className:S.a.fileProgress},((ve=te.videoList)===null||ve===void 0||((xe=ve[0])===null||xe===void 0)?void 0:xe.loaded)==100?c.a.createElement("div",{className:"".concat(S.a.videoName," font14")},(Oe=te.videoList)===null||Oe===void 0||((Se=Oe[0])===null||Se===void 0)?void 0:Se.name):c.a.createElement(je.a,{style:{width:"80%"},percent:(ke=te.videoList)===null||ke===void 0||((Ce=ke[0])===null||Ce===void 0)?void 0:Ce.loaded,status:((Ue=te.videoList)===null||Ue===void 0||((Re=Ue[0])===null||Re===void 0)?void 0:Re.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:S.a.fileCancel,onClick:function(){var Te,Be,Ge,ze;return he((Te=te.videoList)===null||Te===void 0||((Be=Te[0])===null||Be===void 0)?void 0:Be.name,((Ge=te.videoList)===null||Ge===void 0||((ze=Ge[0])===null||ze===void 0)?void 0:ze.loaded)==100)}},((Me=te.videoList)===null||Me===void 0||((qe=Me[0])===null||qe===void 0)?void 0:qe.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ve=te.videoList)===null||Ve===void 0?void 0:Ve.length)&&c.a.createElement("div",{className:S.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:S.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(S.a.upload," ").concat(S.a.uploadLink),onClick:function(){return P(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),a&&c.a.createElement(l.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ne,onChange:function(Te){return le(Te.target.value)}}))};return c.a.createElement(h.a,{centered:!0,maskClosable:!1,title:U?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:S.a.modal,visible:Q,confirmLoading:B,onOk:ye,onCancel:ae},c.a.createElement(p.a,{form:V},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ce,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},c.a.createElement(l.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:S.a.contentItem},_e()),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},c.a.createElement(_,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),c.a.createElement("div",{className:"c-grey-999"},c.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),c.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",c.a.createElement(E.Link,{to:"/users/".concat((M=j.userInfo)===null||M===void 0?void 0:M.login,"/videos/protocol"),target:"_blank",className:S.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),c.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),c.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),c.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};Ie.a=Object(f.a)(function(R){var C=R.user,M=R.loading,j=R.globalSetting;return{user:C,globalSetting:j,loading:M}})(w)},sWEp:function(Le,Ie,se){Le.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(Le,Ie,se){Le.exports={contentWrap:"contentWrap___3Fc2r",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);