|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[191,11,14],{"96GE":function(Me,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],Le=Ce[1],Re=Object(O.useState)(!1),qe=Object(E.a)(Re,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(""),Le(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){Le(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)([]),Le=Object(E.a)(Ue,2),Re=Le[0],qe=Le[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:Re==null?void 0:Re.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],Le=Ce[1],Re=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.m)(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 Le(!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:Re},"\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 Le(!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(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!ae.current){Re.next=4;break}return console.log("videoRef lastUpdatedTime: ",ge.current.getLastUpdatedTime()),Re.next=4,xe();case 4:case"end":return Re.stop()}},Ue)})),Ee.current*1e3);var xe=function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Re=Le?{is_f:1}:{};return Object(X.n)(Object(de.a)(Object(de.a)({},Re),{id:me.videoId,point:ge.current.getLastUpdatedTime(),total:ge.current.getDuration()}))},Oe=function(Le){return console.log("handlLogWatchHistory: ",Le),Le.ed==="1"&&(ae.current=!1,xe(!0)),!ae.current&&!Le.ed&&(ae.current=!0,Ee.current=ge.current.getDuration()<=5?1:5,xe()),ce({type:"userDetail/logWatchHistory",payload:Le})},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(Re){return _e.current=Re},className:re.a.modalRating})),onOk:function(){var Le=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 Re(){return Le.apply(this,arguments)}return Re}()})};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.v)(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(Me,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=["<ul>"],p=new b.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){i.length=0,s=["<ul>"]}function o(q,Q,U,ee){if(Q>=q.length||q[Q].level<=U)return Q;var $=q[Q];ee.push("<li><a href='#"+$.anchor+"'>"+$.text+"</a>"),Q++;var W=[];return Q=o(q,Q,$.level,W),W.length>0&&(ee.push("<ul>"),W.forEach(function(L){ee.push(L)}),ee.push("</ul>")),ee.push("</li>"),Q=o(q,Q,U,ee),Q}function r(){return o(i,0,0,s),s.push("</ul>"),s.join("")}var l={heading:function(Q){var U=u.exec(Q);if(U)return{type:"heading",raw:U[0],depth:U[1].length,text:U[2]}},fences:function(Q){var U=this.rules.block.fences.exec(Q);if(U){var ee=U[0],$=g(ee,U[3]||""),W=U[2]?U[2].trim():U[2];if(["latex","katex","math"].indexOf(W)>=0){var L=x(),D=$;$=L,E[L]={type:"block",expression:D}}return{type:"code",raw:ee,lang:W,text:$}}}},d=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,x=function(){return"__special_katext_id_".concat(c++,"__")},E={};function f(){return E}function T(){c=0,E={}}function S(q){return q=q.replace(d,function(Q,U){var ee=x();return E[ee]={type:"inline",expression:U},ee}),q}var m=p.listitem;p.listitem=function(q){return m(S(q))};var _=p.paragraph;p.paragraph=function(q){return _(S(q))};var A=p.tablecell;p.tablecell=function(q,Q){return A(S(q),Q)},p.code=function(q,Q,U){var ee=(Q||"").match(/\S*/)[0];return ee?["latex","katex","math"].indexOf(ee)>=0?"<p class='editormd-tex'>".concat(q,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(Q,'">').concat(U?q:Object(h.escape)(q,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(U?q:Object(h.escape)(q,!0))+"</code></pre>"},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}),"<h"+Q+' id="'+ee+'">'+q+"</h"+Q+">"},b.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),b.a.use({tokenizer:l,renderer:p});var I=b.a,w=se("SJMd"),R=se("wMS7"),C=se.n(R),M=se("Oy/b"),j=/<pre[^>]*>/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("<p>[TOC]</p>",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(Me,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(Me,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(Me,Ie,se){Me.exports={bg:"bg___31owl"}},NLgs:function(Me,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.x)("/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:"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.x)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},eoI0:function(Me,Ie,se){Me.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(Me,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;u<s.length-1;u++){var e=Math.abs(s[u+1]-s[u]);e<21&&(p+=e)}return p}var i=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;Ie.a=Object(n.forwardRef)(function(s,p){var u,e=s.src,o=s.videoId,r=s.logWatchHistory,l=s.courseId,d=l===void 0?null:l,c=s.startTime,x=s.handlePause,E=x===void 0?function(){}:x,f=s.handlePlay,T=f===void 0?function(){}:f,S=e==null||((u=e.split("."))===null||u===void 0)?void 0:u.pop(),m=S==="flv",_=Object(n.useRef)(),A=navigator.userAgent.toLowerCase().match(i),I=A?A[0]:"pc",w=Object(n.useRef)(!1),R=0,C=0,M=0,j=null,X=!1,H=20,q=1,Q=!1,U=!1,ee=[];Object(n.useImperativeHandle)(p,function(){return{getLastUpdatedTime:function(){return _.current.currentTime},getDuration:function(){return _.current.duration}}});var $=Object(n.useCallback)(function(W){var L=arguments.length>1&&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(Me,Ie,se){Me.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(Me,Ie,se){Me.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(Me,Ie,se){(function(we){var je,je;!function(de){if(!0)window.OSS=de(),Me.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;s<h.length;s++)g(h[s]);return g}return n}()({1:[function(n,O,b){"use strict";var h=n("./browser/client");h.Buffer=n("buffer").Buffer,h.co=n("co"),h.urllib=n("../shims/xhr"),h.version=n("./browser/version").version,O.exports=h},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,O,b){(function(h,g){"use strict";function i(W){return W&&W.__esModule?W:{default:W}}function s(W,L){return W[L]||W[L.toLowerCase()]}function p(W,L){var D=w.parse(W);if(!D.protocol){var N=L?"https://":"http://";D=w.parse(N+W)}if(D.protocol!=="http:"&&D.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return D}function u(W,L,D){var N=D?"https://":"http://",F=L?"-internal.aliyuncs.com":".aliyuncs.com";return W.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(F=".aliyuncs.com"),w.parse(N+W+F)}function e(){return document&&document.location&&document.location.protocol==="https:"}function o(W,L){if(!(this instanceof o))return new o(W,L);W&&W.inited?this.options=W:this.options=o.initOptions(W),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||ee),this.ctx=L,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=n("babel-runtime/regenerator"),l=i(r),d=n("babel-runtime/core-js/object/keys"),c=i(d),x=n("debug")("ali-oss"),E=n("./../../shims/crypto/crypto.js"),f=n("path"),T=n("copy-to"),S=n("mime"),m=n("xml2js"),_=n("humanize-ms"),A=n("agentkeepalive"),I=n("merge-descriptors"),w=n("url"),R=n("is-type-of"),C=n("platform"),M=n("utility"),j=n("urllib"),X=n("./version"),H=n("dateformat"),q=n("bowser"),Q=n("../common/signUtils"),U=n("../common/utils"),ee=new A;O.exports=o,o.initOptions=function(W){if(!W||!W.accessKeyId||!W.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var L=e(),D={region:"oss-cn-hangzhou",internal:!1,secure:L,bucket:null,endpoint:null,cname:!1};if((0,c.default)(W).forEach(function(N){W[N]!==void 0&&(D[N]=W[N])}),D.accessKeyId=D.accessKeyId.trim(),D.accessKeySecret=D.accessKeySecret.trim(),D.timeout&&(D.timeout=_(D.timeout)),D.endpoint)D.endpoint=p(D.endpoint,D.secure);else{if(!D.region)throw new Error("require options.endpoint or options.region");D.endpoint=u(D.region,D.internal,D.secure)}return D.inited=!0,D};var $=o.prototype;I($,n("./object")),I($,n("./managed_upload")),I($,n("../common/multipart")),I($,n("../common/thunkpool.js")),o.Wrapper=n("./wrapper"),$.signature=function(W){return x("authorization stringToSign: %s",W),Q.computeSignature(this.options.accessKeySecret,W)},$.authorization=function(W,L,D,N){var F=Q.buildCanonicalString(W.toUpperCase(),L,{headers:N,parameters:D});return Q.authorization(this.options.accessKeyId,this.options.accessKeySecret,F)},$.createRequest=function(W){var L={"x-oss-date":H(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(L["x-oss-security-token"]=this.options.stsToken),T(W.headers).to(L),s(L,"Content-Type")||(W.mime===S.default_type&&(W.mime=""),W.mime&&W.mime.indexOf("/")>0?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)<A)){q.next=25;break}return w=this._createStream(m,0,I),_.contentLength=I,q.next=18,this.putStream(S,w,_);case 18:if(R=q.sent,!_||!_.progress){q.next=22;break}return q.next=22,_.progress(1);case 22:return C={res:R.res,bucket:this.options.bucket,name:S,etag:R.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(C.data=R.data),q.abrupt("return",C);case 25:if(!(_.partSize&&_.partSize<A)){q.next=27;break}throw new Error("partSize must not be smaller than "+A);case 27:return q.next=29,this.initMultipartUpload(S,_);case 29:if(M=q.sent,j=M.uploadId,X=this._getPartSize(I,_.partSize),H={file:m,name:S,fileSize:I,partSize:X,uploadId:j,doneParts:[]},!_||!_.progress){q.next=36;break}return q.next=36,_.progress(0,H,M.res);case 36:return q.next=38,this._resumeMultipart(H,_);case 38:return q.abrupt("return",q.sent);case 39:case"end":return q.stop()}},T,this)}),x._resumeMultipart=e.default.mark(function T(S,m){var _,A,I,w,R,C,M,j,X,H,q,Q,U,ee,$,W,L,D,N,F,V;return e.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!this.isCancel()){Y.next=2;break}throw this._makeCancelEvent();case 2:if(_=S.file,A=S.fileSize,I=S.partSize,w=S.uploadId,R=S.doneParts,C=S.name,M=[],R.length>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(!(L<ee.length)){Y.next=24;break}if(!this.isCancel()){Y.next=19;break}throw this._makeCancelEvent();case 19:return Y.next=21,q(this,ee[L]);case 21:L++,Y.next=16;break;case 24:Y.next=40;break;case 26:for(D=[],N=0;N<ee.length;N++)D.push(q(this,ee[N]));return Y.next=30,this._thunkPool(D,W);case 30:if(F=Y.sent,H=!0,!(F&&F.length>0)){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.start<this.fileBuffer.length;){var m=this.start,_=m+T;_=_>this.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<m;A++){var I=S*A,w=Math.min(I+S,T);_.push({start:I,end:w})}return _},x._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(n,O,b){"use strict";function h(S){return S&&S.__esModule?S:{default:S}}var g=n("babel-runtime/core-js/object/keys"),i=h(g),s=n("babel-runtime/regenerator"),p=h(s),u=n("debug")("ali-oss:object"),e=n("utility"),o=n("fs"),r=n("is-type-of"),l=n("url"),d=n("copy-to"),c=n("path"),x=n("mime"),E=n("../common/callback"),f=n("../common/signUtils"),T=b;T.append=p.default.mark(function S(m,_,A){var I;return p.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return A=A||{},A.position===void 0&&(A.position="0"),A.subres={append:"",position:A.position},A.method="POST",w.next=6,this.put(m,_,A);case 6:return I=w.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],w.abrupt("return",I);case 9:case"end":return w.stop()}},S,this)}),T.put=p.default.mark(function S(m,_,A){var I,w,R,C,M,j;return p.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(I=void 0,A=A||{},!r.buffer(_)){X.next=6;break}I=_,X.next=18;break;case 6:if(!r.blob(_)&&!r.file(_)){X.next=17;break}return A.mime||(r.file(_)?A.mime=x.getType(c.extname(_.name)):A.mime=_.type),w=this._createStream(_,0,_.size),X.next=11,this._getFileSize(_);case 11:return A.contentLength=X.sent,X.next=14,this.putStream(m,w,A);case 14:return X.abrupt("return",X.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),R=A.method||"PUT",C=this._objectRequestParams(R,m,A),E.encodeCallback(C,A),C.mime=A.mime,C.content=I,C.successStatuses=[200],X.next=28,this.request(C);case 28:return M=X.sent,j={name:m,url:this._objectUrl(m),res:M.res},C.headers&&C.headers["x-oss-callback"]&&(j.data=JSON.parse(M.data.toString())),X.abrupt("return",j);case 32:case"end":return X.stop()}},S,this)}),T.putStream=p.default.mark(function S(m,_,A){var I,w,R,C;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return A=A||{},A.headers=A.headers||{},A.contentLength?A.headers["Content-Length"]=A.contentLength:A.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(A.meta,A.headers),I=A.method||"PUT",w=this._objectRequestParams(I,m,A),E.encodeCallback(w,A),w.mime=A.mime,w.stream=_,w.successStatuses=[200],M.next=12,this.request(w);case 12:return R=M.sent,C={name:m,url:this._objectUrl(m),res:R.res},w.headers&&w.headers["x-oss-callback"]&&(C.data=JSON.parse(R.data.toString())),M.abrupt("return",C);case 16:case"end":return M.stop()}},S,this)}),T.head=p.default.mark(function S(m,_){var A,I,w;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return A=this._objectRequestParams("HEAD",m,_),A.successStatuses=[200,304],R.next=4,this.request(A);case 4:return I=R.sent,w={meta:null,res:I.res,status:I.status},I.status===200&&(0,i.default)(I.headers).forEach(function(C){C.indexOf("x-oss-meta-")===0&&(w.meta||(w.meta={}),w.meta[C.substring(11)]=I.headers[C])}),R.abrupt("return",w);case 8:case"end":return R.stop()}},S,this)}),T.get=p.default.mark(function S(m,_,A){var I,w,R,C;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return I=null,w=!1,r.writableStream(_)?I=_:r.string(_)?(I=o.createWriteStream(_),w=!0):A=_,A=A||{},A.process&&(A.subres=A.subres||{},A.subres["x-oss-process"]=A.process),R=void 0,M.prev=6,C=this._objectRequestParams("GET",m,A),C.writeStream=I,C.successStatuses=[200,206,304],M.next=12,this.request(C);case 12:R=M.sent,w&&I.destroy(),M.next=24;break;case 16:if(M.prev=16,M.t0=M.catch(6),!w){M.next=23;break}return I.destroy(),u("get error: %s, delete the exists file %s",M.t0,_),M.next=23,this._deleteFileSafe(_);case 23:throw M.t0;case 24:return M.abrupt("return",{res:R.res,content:R.data});case 25:case"end":return M.stop()}},S,this,[[6,16]])}),T.getStream=p.default.mark(function S(m,_){var A,I;return p.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return _=_||{},A=this._objectRequestParams("GET",m,_),A.customResponse=!0,A.successStatuses=[200,206,304],w.next=6,this.request(A);case 6:return I=w.sent,w.abrupt("return",{stream:I.res,res:{status:I.status,headers:I.headers}});case 8:case"end":return w.stop()}},S,this)}),T.delete=p.default.mark(function S(m,_){var A,I;return p.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return A=this._objectRequestParams("DELETE",m,_),A.successStatuses=[204],w.next=4,this.request(A);case 4:return I=w.sent,w.abrupt("return",{res:I.res});case 6:case"end":return w.stop()}},S,this)}),T.deleteMulti=p.default.mark(function S(m,_){var A,I,w,R,C,M;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:for(_=_||{},A=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,_.quiet?A+=` <Quiet>true</Quiet>
|
|
|
`:A+=` <Quiet>false</Quiet>
|
|
|
`,I=0;I<m.length;I++)A+=" <Object><Key>"+e.escape(this._objectName(m[I]))+`</Key></Object>
|
|
|
`;return A+="</Delete>",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=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,x=0;x<d.length;x++)E=d[x],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+E.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+E.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",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]<S[0]?-1:0},E=function(T){d+=c+T,l[T]&&(d+="="+l[T]),c="&"};(0,u.default)(l).sort(x).forEach(E)}return d},b.buildCanonicalString=function(r,l,d,c){d=d||{};var x=d.headers||{},E=[],f={},T=[r.toUpperCase(),x["Content-Md5"]||"",x["Content-Type"]||x["Content-Type".toLowerCase()],c||x["x-oss-date"]];return(0,u.default)(x).forEach(function(S){var m=S.toLowerCase();m.indexOf("x-oss-")===0&&(f[m]=String(x[S]).trim())}),(0,u.default)(f).sort().forEach(function(S){E.push(S+":"+f[S])}),T=T.concat(E),T.push(this.buildCanonicalizedResource(l,d.parameters)),T.join(`
|
|
|
`)},b.computeSignature=function(r,l){return e.createHmac("sha1",r).update(new h(l,"utf8")).digest("base64")},b.authorization=function(r,l,d){return"OSS "+r+":"+this.computeSignature(l,d)},b._signatureForURL=function(r,l,d,c){var x={},E={};if(l.process&&(E["x-oss-process"]=l.process),l.response&&(0,u.default)(l.response).forEach(function(m){var _="response-"+m.toLowerCase();E[_]=l.response[m]}),(0,u.default)(l).forEach(function(m){var _=m.toLowerCase(),A=l[m];_.indexOf("x-oss-")===0?x[_]=A:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?x[m]=A:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(E[_]=A)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(E["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var f={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(f.callbackHost=l.callback.host),l.callback.contentType&&(f.callbackBodyType=l.callback.contentType),E.callback=new h((0,s.default)(f)).toString("base64"),l.callback.customValue){var T={};(0,u.default)(l.callback.customValue).forEach(function(m){T["x:"+m]=l.callback.customValue[m]}),E["callback-var"]=new h((0,s.default)(T)).toString("base64")}}var S=this.buildCanonicalString(l.method,d,{headers:x,parameters:E},c.toString());return{Signature:this.computeSignature(r,S),subResource:E}}}).call(this,n("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(n,O,b){"use strict";var h=n("babel-runtime/regenerator"),g=function(e){return e&&e.__esModule?e:{default:e}}(h),i=n("co"),s=n("co-priority-queue"),p=n("any-promise"),u=b;u._thunkPool=function(e,o){function r(E,f){++c===E.length&&f(x)}function l(E,f){function T(){var w;return g.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:w=void 0;case 1:if(d.isCancel()){R.next=9;break}return R.next=4,_.next();case 4:return w=R.sent,R.next=7,w();case 7:R.next=1;break;case 9:A+=1,A===E&&(_.fns=[],_.buffer=[],f(x));case 11:case"end":return R.stop()}},m,this)}function S(w){console.error(w.stack)}for(var m=g.default.mark(T),_=new s,A=0,I=0;I<E;I++)i(T).catch(S);return function(w,R){return function(C){_.push(g.default.mark(function M(){return g.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.t0=C,j.next=4,w;case 4:j.t1=j.sent,(0,j.t0)(null,j.t1),j.next=11;break;case 8:j.prev=8,j.t2=j.catch(0),C(j.t2);case 11:case"end":return j.stop()}},M,this,[[0,8]])}),R)}}}var d=this,c=0,x=[];return new p(function(E){function f(A){return g.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,m(e[A]);case 2:r(e,E);case 3:case"end":return I.stop()}},S,this)}function T(A){x.push(A),r(e,E)}for(var S=g.default.mark(f),m=new l(o,E),_=0;_<e.length;_++)i(f(_)).catch(T)})},u.cancel=function(){this.options.cancelFlag=!0},u.isCancel=function(){return this.options.cancelFlag},u.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,O,b){"use strict";b._isIP=function(h){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,i=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return g.test(h)||i.test(h)}},{}],12:[function(n,O,b){function h(){}O.exports=h,O.exports.HttpsAgent=h},{}],13:[function(n,O,b){O.exports=n("./register")().Promise},{"./register":15}],14:[function(n,O,b){"use strict";var h=null;O.exports=function(g,i){return function(s,p){s=s||null,p=p||{};var u=p.global!==!1;if(h===null&&u&&(h=g["@@any-promise/REGISTRATION"]||null),h!==null&&s!==null&&h.implementation!==s)throw new Error('any-promise already defined as "'+h.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return h===null&&(h=s!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:s}:i(s),u&&(g["@@any-promise/REGISTRATION"]=h)),h}}},{}],15:[function(n,O,b){"use strict";function h(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}O.exports=n("./loader")(window,h)},{"./loader":14}],16:[function(n,O,b){O.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,O,b){O.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,O,b){O.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,O,b){O.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,O,b){O.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,O,b){O.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,O,b){O.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,O,b){O.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,O,b){O.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,O,b){"use strict";b.__esModule=!0,b.default=function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,O,b){"use strict";b.__esModule=!0;var h=n("../core-js/object/define-property"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);b.default=function(){function i(s,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,g.default)(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}()},{"../core-js/object/define-property":20}],32:[function(n,O,b){"use strict";function h(e){return e&&e.__esModule?e:{default:e}}b.__esModule=!0;var g=n("../core-js/symbol/iterator"),i=h(g),s=n("../core-js/symbol"),p=h(s),u=typeof p.default=="function"&&typeof i.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":typeof e};b.default=typeof p.default=="function"&&u(i.default)==="symbol"?function(e){return e===void 0?"undefined":u(e)}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":e===void 0?"undefined":u(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,O,b){O.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,O,b){"use strict";function h(E){var f=E.length;if(f%4>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<I;w+=4)f=r[E.charCodeAt(w)]<<18|r[E.charCodeAt(w+1)]<<12|r[E.charCodeAt(w+2)]<<6|r[E.charCodeAt(w+3)],_[A++]=f>>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;_<T;_+=3)S=(E[_]<<16&16711680)+(E[_+1]<<8&65280)+(255&E[_+2]),m.push(p(S));return m.join("")}function e(E){for(var f,T=E.length,S=T%3,m=[],_=0,A=T-S;_<A;_+=16383)m.push(u(E,_,_+16383>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;c<x;++c)o[c]=d[c],r[d.charCodeAt(c)]=c;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(n,O,b){!function(h,g,i){O!==void 0&&O.exports?O.exports=i():typeof de=="function"&&de.amd?de("bowser",i):h.bowser=i()}(this,0,function(){function h(r){function l(W){var L=r.match(W);return L&&L.length>1&&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<r.length;d++)c.push(l(r[d]));return c}function s(r){for(var l=Math.max(g(r[0]),g(r[1])),d=i(r,function(c){var x=l-g(c);return c+=new Array(x+1).join(".0"),i(c.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});--l>=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<r.length;++l){var d=r[l];if(typeof d=="string"&&d in o)return!0}return!1},o.isUnsupportedBrowser=p,o.compareVersions=s,o.check=u,o._detect=h,o.detect=h,o})},{}],36:[function(n,O,b){},{}],37:[function(n,O,b){function h(o){if(o&&!u(o))throw new Error("Unknown encoding: "+o)}function g(o){return o.toString(this.encoding)}function i(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function s(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}var p=n("buffer").Buffer,u=p.isEncoding||function(o){switch(o&&o.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},e=b.StringDecoder=function(o){switch(this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),h(o),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=g)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(o){for(var r="";this.charLength;){var l=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived<this.charLength)return"";o=o.slice(l,o.length),r=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=r.charCodeAt(r.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(o);var 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()<a)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(a),t.__proto__=s.prototype):(t===null&&(t=new s(a)),t.length=a),t}function s(t,a,P){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,a,P);if(typeof t=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,t)}return p(this,t,a,P)}function p(t,a,P,v){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&a instanceof ArrayBuffer?d(t,a,P,v):typeof a=="string"?r(t,a,P):c(t,a)}function u(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,a,P,v){return u(a),a<=0?i(t,a):P!==void 0?typeof v=="string"?i(t,a).fill(P,v):i(t,a).fill(P):i(t,a)}function o(t,a){if(u(a),t=i(t,a<0?0:0|x(a)),!s.TYPED_ARRAY_SUPPORT)for(var P=0;P<a;++P)t[P]=0;return t}function r(t,a,P){if(typeof P=="string"&&P!==""||(P="utf8"),!s.isEncoding(P))throw new TypeError('"encoding" must be a valid string encoding');var v=0|f(a,P);t=i(t,v);var y=t.write(a,P);return y!==v&&(t=t.slice(0,y)),t}function l(t,a){var P=a.length<0?0:0|x(a.length);t=i(t,P);for(var v=0;v<P;v+=1)t[v]=255&a[v];return t}function d(t,a,P,v){if(a.byteLength,P<0||a.byteLength<P)throw new RangeError("'offset' is out of bounds");if(a.byteLength<P+(v||0))throw new RangeError("'length' is out of bounds");return a=P===void 0&&v===void 0?new Uint8Array(a):v===void 0?new Uint8Array(a,P):new Uint8Array(a,P,v),s.TYPED_ARRAY_SUPPORT?(t=a,t.__proto__=s.prototype):t=l(t,a),t}function c(t,a){if(s.isBuffer(a)){var P=0|x(a.length);return t=i(t,P),t.length===0||a.copy(t,0,0,P),t}if(a){if(typeof ArrayBuffer!="undefined"&&a.buffer instanceof ArrayBuffer||"length"in a)return typeof a.length!="number"||G(a.length)?i(t,0):l(t,a);if(a.type==="Buffer"&&ne(a.data))return l(t,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(t){if(t>=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;he<pe;he++)if(B(t,he)===B(a,me===-1?0:he-me)){if(me===-1&&(me=he),he-me+1===ce)return me*K}else me!==-1&&(he-=he-me),me=-1}else for(P+ce>pe&&(P=pe-ce),he=P;he>=0;he--){for(var ye=!0,ge=0;ge<ce;ge++)if(B(t,he+ge)!==B(a,ge)){ye=!1;break}if(ye)return he}return-1}function A(t,a,P,v){P=Number(P)||0;var y=t.length-P;v?(v=Number(v))>y&&(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;K<v;++K){var pe=parseInt(a.substr(2*K,2),16);if(isNaN(pe))return K;t[P+K]=pe}return K}function I(t,a,P,v){return ie(ue(a,t.length-P),t,P,v)}function w(t,a,P,v){return ie(fe(a),t,P,v)}function R(t,a,P,v){return w(t,a,P,v)}function C(t,a,P,v){return ie(J(a),t,P,v)}function M(t,a,P,v){return ie(Z(a,t.length-P),t,P,v)}function j(t,a,P){return a===0&&P===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(a,P))}function X(t,a,P){P=Math.min(t.length,P);for(var v=[],y=a;y<P;){var B=t[y],K=null,pe=B>239?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;v<a;)P+=String.fromCharCode.apply(String,t.slice(v,v+=le));return P}function q(t,a,P){var v="";P=Math.min(t.length,P);for(var y=a;y<P;++y)v+=String.fromCharCode(127&t[y]);return v}function Q(t,a,P){var v="";P=Math.min(t.length,P);for(var y=a;y<P;++y)v+=String.fromCharCode(t[y]);return v}function U(t,a,P){var v=t.length;(!a||a<0)&&(a=0),(!P||P<0||P>v)&&(P=v);for(var y="",B=a;B<P;++B)y+=te(t[B]);return y}function ee(t,a,P){for(var v=t.slice(a,P),y="",B=0;B<v.length;B+=2)y+=String.fromCharCode(v[B]+256*v[B+1]);return y}function $(t,a,P){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+a>P)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||a<B)throw new RangeError('"value" argument is out of bounds');if(P+v>t.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<B;++y)t[P+y]=(a&255<<8*(v?y:1-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<B;++y)t[P+y]=a>>>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;K<v;++K){if((P=t.charCodeAt(K))>55295&&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<t.length;++P)a.push(255&t.charCodeAt(P));return a}function Z(t,a){for(var P,v,y,B=[],K=0;K<t.length&&!((a-=2)<0);++K)P=t.charCodeAt(K),v=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<v&&!(y+P>=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);y<B;++y)if(t[y]!==a[y]){P=t[y],v=a[y];break}return P<v?-1:v<P?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,a){if(!ne(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return s.alloc(0);var P;if(a===void 0)for(a=0,P=0;P<t.length;++P)a+=t[P].length;var v=s.allocUnsafe(a),y=0;for(P=0;P<t.length;++P){var B=t[P];if(!s.isBuffer(B))throw new TypeError('"list" argument must be an Array of Buffers');B.copy(v,y),y+=B.length}return v},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<t;a+=2)S(this,a,a+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<t;a+=4)S(this,a,a+3),S(this,a+1,a+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<t;a+=8)S(this,a,a+7),S(this,a+1,a+6),S(this,a+2,a+5),S(this,a+3,a+4);return this},s.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?X(this,0,t):T.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||s.compare(this,t)===0},s.prototype.inspect=function(){var t="",a=b.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(t+=" ... ")),"<Buffer "+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;me<pe;++me)if(ce[me]!==he[me]){B=ce[me],K=he[me];break}return B<K?-1:K<B?1:0},s.prototype.includes=function(t,a,P){return this.indexOf(t,a,P)!==-1},s.prototype.indexOf=function(t,a,P){return m(this,t,a,P,!0)},s.prototype.lastIndexOf=function(t,a,P){return m(this,t,a,P,!1)},s.prototype.write=function(t,a,P,v){if(a===void 0)v="utf8",P=this.length,a=0;else if(P===void 0&&typeof a=="string")v=a,P=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(P)?(P|=0,v===void 0&&(v="utf8")):(v=P,P=void 0)}var y=this.length-a;if((P===void 0||P>y)&&(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),a<t&&(a=t);var v;if(s.TYPED_ARRAY_SUPPORT)v=this.subarray(t,a),v.__proto__=s.prototype;else{var y=a-t;v=new s(y,void 0);for(var B=0;B<y;++B)v[B]=this[B+t]}return v},s.prototype.readUIntLE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var v=this[t],y=1,B=0;++B<a&&(y*=256);)v+=this[t+B]*y;return v},s.prototype.readUIntBE=function(t,a,P){t|=0,a|=0,P||$(t,a,this.length);for(var v=this[t+--a],y=1;a>0&&(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<a&&(y*=256);)v+=this[t+B]*y;return y*=128,v>=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<P&&(y*=256);)this[a+B]=t/y&255;return a+P},s.prototype.writeUIntBE=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=P-1,B=1;for(this[a+y]=255&t;--y>=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<P&&(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.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<P&&(v=P),v===P)return 0;if(t.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=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<v-P&&(v=t.length-a+P);var y,B=v-P;if(this===t&&P<a&&a<v)for(y=B-1;y>=0;--y)t[y+a]=this[y+P];else if(B<1e3||!s.TYPED_ARRAY_SUPPORT)for(y=0;y<B;++y)t[y+a]=this[y+P];else Uint8Array.prototype.set.call(t,this.subarray(P,P+B),a);return B},s.prototype.fill=function(t,a,P,v){if(typeof t=="string"){if(typeof a=="string"?(v=a,a=0,P=this.length):typeof P=="string"&&(v=P,P=this.length),t.length===1){var y=t.charCodeAt(0);y<256&&(t=y)}if(v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!s.isEncoding(v))throw new TypeError("Unknown encoding: "+v)}else typeof t=="number"&&(t&=255);if(a<0||this.length<a||this.length<P)throw new RangeError("Out of range index");if(P<=a)return this;a>>>=0,P=P===void 0?this.length:P>>>0,t||(t=0);var B;if(typeof t=="number")for(B=a;B<P;++B)this[B]=t;else{var K=s.isBuffer(t)?t:ue(new s(t,v).toString()),pe=K.length;for(B=0;B<P-a;++B)this[B+a]=K[B%pe]}return this};var k=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,O,b){O.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(n,O,b){"use strict";var h=function(){this.buffer=[],this.fns=[]};h.prototype.push=function(i,s){if(this.fns.length)return this.fns.shift()(null,i);var p={data:i,priority:s},u=g(this.buffer,p,function(e){return e.priority});this.buffer.splice(u,0,p)},h.prototype.next=function(){var i=this;return function(s){if(i.buffer.length)return s(null,i.buffer.pop().data);i.fns.push(s)}};var g=function(s,p,u){p=u(p);for(var e=0,o=s?s.length:e;e<o;){var r=e+o>>>1;u(s[r])<p?e=r+1:o=r}return e};O.exports=h},{}],41:[function(n,O,b){function h(d){var c=this,x=l.call(arguments,1);return new Promise(function(E,f){function T(_){var A;try{A=d.next(_)}catch(I){return f(I)}m(A)}function S(_){var A;try{A=d.throw(_)}catch(I){return f(I)}m(A)}function m(_){if(_.done)return E(_.value);var A=g.call(c,_.value);return A&&u(A)?A.then(T,S):S(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof d=="function"&&(d=d.apply(c,x)),!d||typeof d.next!="function")return E(d);T()})}function g(d){return d&&(u(d)?d:o(d)||e(d)?h.call(this,d):typeof d=="function"?i.call(this,d):Array.isArray(d)?s.call(this,d):r(d)?p.call(this,d):d)}function i(d){var c=this;return new Promise(function(x,E){d.call(c,function(f,T){if(f)return E(f);arguments.length>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;f<x.length;f++){var T=x[f],S=g.call(this,d[T]);S&&u(S)?function(m,_){c[_]=void 0,E.push(m.then(function(A){c[_]=A}))}(S,T):c[T]=d[T]}return Promise.all(E).then(function(){return c})}function u(d){return typeof d.then=="function"}function e(d){return typeof d.next=="function"&&typeof d.throw=="function"}function o(d){var c=d.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function r(d){return Object==d.constructor}var l=Array.prototype.slice;O.exports=h.default=h.co=h,h.wrap=function(d){function c(){return h.call(this,d.apply(this,arguments))}return c.__generatorFunction__=d,c}},{}],42:[function(n,O,b){O.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(n,O,b){"use strict";function h(s,p){if(!(this instanceof h))return new h(s,p);this.src=s,this._withAccess=p}function g(s,p){return s[p]===void 0&&s.__lookupGetter__(p)===void 0&&s.__lookupSetter__(p)===void 0}var i=Array.prototype.slice;O.exports=h,h.prototype.withAccess=function(s){return this._withAccess=s!==!1,this},h.prototype.pick=function(s){return Array.isArray(s)||(s=i.call(arguments)),s.length&&(this.keys=s),this},h.prototype.to=function(s){if(s=s||{},!this.src)return s;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<p.length;u++)e=p[u],s[e]===void 0&&(s[e]=this.src[e]);return s}for(var u=0;u<p.length;u++){var e=p[u];if(g(s,e)){var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&s.__defineGetter__(e,o),r&&s.__defineSetter__(e,r),o||r||(s[e]=this.src[e])}}return s},h.prototype.toCover=function(s){for(var p=this.keys||Object.keys(this.src),u=0;u<p.length;u++){var e=p[u];delete s[e];var o=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);o&&s.__defineGetter__(e,o),r&&s.__defineSetter__(e,r),o||r||(s[e]=this.src[e])}},h.prototype.override=h.prototype.toCover,h.prototype.and=function(s){var p={};return this.to(p),this.src=s,this.to(p),this.src=p,this}},{}],44:[function(n,O,b){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),O.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,O,b){var h=n("../../modules/_core"),g=h.JSON||(h.JSON={stringify:JSON.stringify});O.exports=function(i){return g.stringify.apply(g,arguments)}},{"../../modules/_core":65}],46:[function(n,O,b){n("../../modules/es6.object.assign"),O.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,O,b){n("../../modules/es6.object.create");var h=n("../../modules/_core").Object;O.exports=function(g,i){return h.create(g,i)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,O,b){n("../../modules/es6.object.define-property");var h=n("../../modules/_core").Object;O.exports=function(g,i,s){return h.defineProperty(g,i,s)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,O,b){n("../../modules/es6.object.get-own-property-names");var h=n("../../modules/_core").Object;O.exports=function(g){return h.getOwnPropertyNames(g)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,O,b){n("../../modules/es6.object.get-prototype-of"),O.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,O,b){n("../../modules/es6.object.keys"),O.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,O,b){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),O.exports=n("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(n,O,b){n("../modules/web.immediate"),O.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,O,b){n("../../modules/es6.string.from-code-point"),O.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,O,b){n("../../modules/es6.function.has-instance"),O.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,O,b){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),O.exports=n("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(n,O,b){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),O.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,O,b){O.exports=function(h){if(typeof h!="function")throw TypeError(h+" is not a function!");return h}},{}],59:[function(n,O,b){O.exports=function(){}},{}],60:[function(n,O,b){O.exports=function(h,g,i,s){if(!(h instanceof g)||s!==void 0&&s in h)throw TypeError(i+": incorrect invocation!");return h}},{}],61:[function(n,O,b){var h=n("./_is-object");O.exports=function(g){if(!h(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":85}],62:[function(n,O,b){var h=n("./_to-iobject"),g=n("./_to-length"),i=n("./_to-absolute-index");O.exports=function(s){return function(p,u,e){var o,r=h(p),l=g(r.length),d=i(e,l);if(s&&u!=u){for(;l>d;)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("<script>document.F=Object</script>"),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;u<p.length;u++){var e=p[u],o=h[e],r=o&&o.prototype;r&&!r[s]&&g(r,s,e),i[e]=i.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,O,b){var h=n("./_export"),g=n("./_task");h(h.G+h.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":73,"./_task":120}],153:[function(n,O,b){(function(h){"use strict";function g(_){return Array.isArray?Array.isArray(_):T(_)==="[object Array]"}function i(_){return typeof _=="boolean"}function s(_){return _===null}function p(_){return _==null}function u(_){return typeof _=="number"}function e(_){return typeof _=="string"}function o(_){return(_===void 0?"undefined":(0,m.default)(_))==="symbol"}function r(_){return _===void 0}function l(_){return T(_)==="[object RegExp]"}function d(_){return(_===void 0?"undefined":(0,m.default)(_))==="object"&&_!==null}function c(_){return T(_)==="[object Date]"}function x(_){return T(_)==="[object Error]"||_ instanceof Error}function E(_){return typeof _=="function"}function f(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,m.default)(_))==="symbol"||_===void 0}function T(_){return Object.prototype.toString.call(_)}var S=n("babel-runtime/helpers/typeof"),m=function(_){return _&&_.__esModule?_:{default:_}}(S);b.isArray=g,b.isBoolean=i,b.isNull=s,b.isNullOrUndefined=p,b.isNumber=u,b.isString=e,b.isSymbol=o,b.isUndefined=r,b.isRegExp=l,b.isObject=d,b.isDate=c,b.isError=x,b.isFunction=E,b.isPrimitive=f,b.isBuffer=h.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,O,b){"use strict";var h=n("babel-runtime/helpers/typeof"),g=function(i){return i&&i.__esModule?i:{default:i}}(h);!function(i){function s(r,l){for(r=String(r),l=l||2;r.length<l;)r="0"+r;return r}function p(r){var l=new Date(r.getFullYear(),r.getMonth(),r.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var d=new Date(l.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var c=l.getTimezoneOffset()-d.getTimezoneOffset();l.setHours(l.getHours()-c);var x=(l-d)/6048e5;return 1+Math.floor(x)}function u(r){var l=r.getDay();return l===0&&(l=7),l}function e(r){return r===null?"null":r===void 0?"undefined":(r===void 0?"undefined":(0,g.default)(r))!=="object"?r===void 0?"undefined":(0,g.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}var o=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(c,x,E,f){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(x=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");x=String(o.masks[x]||x||o.masks.default);var T=x.slice(0,4);T!=="UTC:"&&T!=="GMT:"||(x=x.slice(4),E=!0,T==="GMT:"&&(f=!0));var S=E?"getUTC":"get",m=c[S+"Date"](),_=c[S+"Day"](),A=c[S+"Month"](),I=c[S+"FullYear"](),w=c[S+"Hours"](),R=c[S+"Minutes"](),C=c[S+"Seconds"](),M=c[S+"Milliseconds"](),j=E?0:c.getTimezoneOffset(),X=p(c),H=u(c),q={d:m,dd:s(m),ddd:o.i18n.dayNames[_],dddd:o.i18n.dayNames[_+7],m:A+1,mm:s(A+1),mmm:o.i18n.monthNames[A],mmmm:o.i18n.monthNames[A+12],yy:String(I).slice(2),yyyy:I,h:w%12||12,hh:s(w%12||12),H:w,HH:s(w),M:R,MM:s(R),s:C,ss:s(C),l:s(M,3),L:s(Math.round(M/10)),t:w<12?"a":"p",tt:w<12?"am":"pm",T:w<12?"A":"P",TT:w<12?"AM":"PM",Z:f?"GMT":E?"UTC":(String(c).match(l)||[""]).pop().replace(d,""),o:(j>0?"-":"+")+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<x.length;E++)x[E]=arguments[E];x[0]=b.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");var f=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,function(T,S){if(T==="%%")return T;f++;var m=b.formatters[S];if(typeof m=="function"){var _=x[f];T=m.call(l,_),x.splice(f,1),f--}return T}),b.formatArgs.call(l,x),(r.log||b.log||console.log.bind(console)).apply(l,x)}}return r.namespace=o,r.enabled=b.enabled(o),r.useColors=b.useColors(),r.color=h(o),typeof b.init=="function"&&b.init(r),r}function i(o){b.save(o),b.names=[],b.skips=[];for(var r=(typeof o=="string"?o:"").split(/[\s,]+/),l=r.length,d=0;d<l;d++)r[d]&&(o=r[d].replace(/\*/g,".*?"),o[0]==="-"?b.skips.push(new RegExp("^"+o.substr(1)+"$")):b.names.push(new RegExp("^"+o+"$")))}function s(){b.enable("")}function p(o){var r,l;for(r=0,l=b.skips.length;r<l;r++)if(b.skips[r].test(o))return!1;for(r=0,l=b.names.length;r<l;r++)if(b.names[r].test(o))return!0;return!1}function u(o){return o instanceof Error?o.stack||o.message:o}b=O.exports=g.debug=g.default=g,b.coerce=u,b.disable=s,b.enable=i,b.enabled=p,b.humanize=n("ms"),b.names=[],b.skips=[],b.formatters={};var e},{ms:169}],157:[function(n,O,b){"use strict";function h(i){var s=""+i,p=g.exec(s);if(!p)return s;var u,e="",o=0,r=0;for(o=p.index;o<s.length;o++){switch(s.charCodeAt(o)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}r!==o&&(e+=s.substring(r,o)),r=o+1,e+=u}return r!==o?e+s.substring(r,o):e}var g=/["'&<>]/;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;d<r;d++)c[d].apply(this,l);return!0},h.prototype.addListener=function(u,e){var o;if(!g(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,g(e.listener)?e.listener:e),this._events[u]?s(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,s(this._events[u])&&!this._events[u].warned&&(o=p(this._maxListeners)?h.defaultMaxListeners:this._maxListeners)&&o>0&&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<<o)-1,l=r>>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<<l)-1,c=d>>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<<p|o,l+=p;l>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&&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(!(l<d))return l<1.5*d?Math.floor(l/d)+" "+c:Math.ceil(l/d)+" "+c+"s"}var p=1e3,u=60*p,e=60*u,o=24*e,r=365.25*o;O.exports=function(l,d){d=d||{};var c=typeof l;if(c==="string"&&l.length>0)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<u.length;r++)e(u[r],r,u)&&o.push(u[r]);return o}b.resolve=function(){for(var u="",e=!1,o=arguments.length-1;o>=-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<f.length&&f[T]==="";T++);for(var S=f.length-1;S>=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<d;x++)if(r[x]!==l[x]){c=x;break}for(var E=[],x=c;x<r.length;x++)E.push("..");return E=E.concat(l.slice(c)),E.join("/")},b.sep="/",b.delimiter=":",b.dirname=function(u){if(typeof u!="string"&&(u+=""),u.length===0)return".";for(var e=u.charCodeAt(0),o=e===47,r=-1,l=!0,d=u.length-1;d>=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(;++j<X;)M(C[j],j,C);else u(C,M)}function p(C){return C=d(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:g(C)}function u(C,M){for(var j in C)I.call(C,j)&&M(C[j],j,C)}function e(C){return C==null?g(C):w.call(C).slice(8,-1)}function o(C,M){var j=C!=null?typeof C[M]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(j)||j=="object"&&!C[M])}function r(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function l(C,M){var j=null;return s(C,function(X,H){j=M(j,X,H,C)}),j}function d(C){return String(C).replace(/^ +| +$/g,"")}function c(C){function M(P){return l(P,function(v,y){var B=y.pattern||r(y);return!v&&(v=RegExp("\\b"+B+" *\\d+[.\\w_]*","i").exec(C)||RegExp("\\b"+B+" *\\w+-[\\w]*","i").exec(C)||RegExp("\\b"+B+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(C))&&((v=String(y.label&&!RegExp(B,"i").test(y.label)?y.label:v).split("/"))[1]&&!/[\d.]+/.test(v[0])&&(v[0]+=" "+v[1]),y=y.label||y,v=p(v[0].replace(RegExp(B,"i"),y).replace(RegExp("; *(?:"+y+"[_-])?","i")," ").replace(RegExp("("+y+")[-_.]?(\\w)","i"),"$1 $2"))),v})}function j(){return this.description||""}var X=E,H=C&&typeof C=="object"&&e(C)!="String";H&&(X=C,C=null);var q=X.navigator||{},Q=q.userAgent||"";C||(C=Q);var U,ee,$=H?!!q.likeChrome:/\bChrome\b/.test(C)&&!/internal|\n/i.test(w.toString()),W=H?"Object":"ScriptBridgingProxyObject",L=H?"Object":"Environment",D=H&&X.java?"JavaPackage":e(X.java),N=H?"Object":"RuntimeObject",F=/\bJava/.test(D)&&X.java,V=F&&e(X.environment)==L,Y=F?"a":"\u4F2A",oe=F?"b":"\u5C3E",te=X.document||{},ue=X.operamini||X.opera,fe=_.test(fe=H&&ue?ue["[[Class]]"]:e(ue))?fe:ue=null,Z=C,J=[],ie=null,G=C==Q,z=G&&ue&&typeof ue.version=="function"&&ue.version(),re=function(P){return l(P,function(v,y){return v||RegExp("\\b"+(y.pattern||r(y))+"\\b","i").exec(C)&&(y.label||y)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ne=function(P){return l(P,function(v,y){return v||RegExp("\\b"+(y.pattern||r(y))+"\\b","i").exec(C)&&(y.label||y)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),le=M([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),k=function(P){return l(P,function(v,y,B){return v||(y[le]||y[/^[a-z]+(?: +[a-z]+\b)*/i.exec(le)]||RegExp("\\b"+r(B)+"(?:\\b|\\w*\\d)","i").exec(C))&&B})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),t=function(P){return l(P,function(v,y){var B=y.pattern||r(y);return!v&&(v=RegExp("\\b"+B+"(?:/[\\d.]+|[ \\w.]*)","i").exec(C))&&(v=i(v,B,y.label||y)),v})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(re&&(re=[re]),k&&!le&&(le=M([k])),(U=/\bGoogle TV\b/.exec(le))&&(le=U[0]),/\bSimulator\b/i.test(C)&&(le=(le?le+" ":"")+"Simulator"),ne=="Opera Mini"&&/\bOPiOS\b/.test(C)&&J.push("running in Turbo/Uncompressed mode"),ne=="IE"&&/\blike iPhone OS\b/.test(C)?(U=c(C.replace(/like iPhone OS/,"")),k=U.manufacturer,le=U.product):/^iP/.test(le)?(ne||(ne="Safari"),t="iOS"+((U=/ OS ([\d_]+)/i.exec(C))?" "+U[1].replace(/_/g,"."):"")):ne!="Konqueror"||/buntu/i.test(t)?k&&k!="Google"&&(/Chrome/.test(ne)&&!/\bMobile Safari\b/i.test(C)||/\bVita\b/.test(le))||/\bAndroid\b/.test(t)&&/^Chrome/.test(ne)&&/\bVersion\//i.test(C)?(ne="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):ne=="Silk"?(/\bMobi/i.test(C)||(t="Android",J.unshift("desktop mode")),/Accelerated *= *true/i.test(C)&&J.unshift("accelerated")):ne=="PaleMoon"&&(U=/\bFirefox\/([\d.]+)\b/.exec(C))?J.push("identifying as Firefox "+U[1]):ne=="Firefox"&&(U=/\b(Mobile|Tablet|TV)\b/i.exec(C))?(t||(t="Firefox OS"),le||(le=U[1])):!ne||(U=!/\bMinefield\b/i.test(C)&&/\b(?:Firefox|Safari)\b/.exec(ne))?(ne&&!le&&/[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(U+"/")+8))&&(ne=null),(U=le||k||t)&&(le||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(ne=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:U)+" Browser")):ne=="Electron"&&(U=(/\bChrome\/([\d.]+)\b/.exec(C)||0)[1])&&J.push("Chromium "+U):t="Kubuntu",z||(z=function(P){return l(P,function(v,y){return v||(RegExp(y+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(C)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(ne),"(?:Firefox|Minefield|NetFront)"])),(U=re=="iCab"&&parseFloat(z)>3&&"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;o<e.length;)e[o++]=arguments[o];return h.nextTick(function(){i.apply(null,e)})}}!h.version||h.version.indexOf("v0.")===0||h.version.indexOf("v1.")===0&&h.version.indexOf("v1.8.")!==0?O.exports={nextTick:g}:O.exports=h}).call(this,n("_process"))},{_process:173}],173:[function(n,O,b){function h(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function i(T){if(r===setTimeout)return setTimeout(T,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(T,0);try{return r(T,0)}catch(S){try{return r.call(null,T,0)}catch(m){return r.call(this,T,0)}}}function s(T){if(l===clearTimeout)return clearTimeout(T);if((l===g||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(T);try{return l(T)}catch(S){try{return l.call(null,T)}catch(m){return l.call(this,T)}}}function p(){E&&c&&(E=!1,c.length?x=c.concat(x):f=-1,x.length&&u())}function u(){if(!E){var T=i(p);E=!0;for(var S=x.length;S;){for(c=x,x=[];++f<S;)c&&c[f].run();f=-1,S=x.length}c=null,E=!1,s(T)}}function e(T,S){this.fun=T,this.array=S}function o(){}var r,l,d=O.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:h}catch(T){r=h}try{l=typeof clearTimeout=="function"?clearTimeout:g}catch(T){l=g}}();var c,x=[],E=!1,f=-1;d.nextTick=function(T){var S=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)S[m-1]=arguments[m];x.push(new e(T,S)),x.length!==1||E||i(u)},e.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=o,d.addListener=o,d.once=o,d.off=o,d.removeListener=o,d.removeAllListeners=o,d.emit=o,d.prependListener=o,d.prependOnceListener=o,d.listeners=function(T){return[]},d.binding=function(T){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(T){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(n,O,b){(function(h){!function(g){function i(D){throw new RangeError(ee[D])}function s(D,N){for(var F=D.length,V=[];F--;)V[F]=N(D[F]);return V}function p(D,N){var F=D.split("@"),V="";return F.length>1&&(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<oe;)N=D.charCodeAt(Y++),N>=55296&&N<=56319&&Y<oe?(F=D.charCodeAt(Y++),(64512&F)==56320?V.push(((1023&N)<<10)+(1023&F)+65536):(V.push(N),Y--)):V.push(N);return V}function e(D){return s(D,function(N){var F="";return N>65535&&(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<F;++V)D.charCodeAt(V)>=128&&i("not-basic"),ie.push(D.charCodeAt(V));for(Y=F>0?F+1:0;Y<G;){for(oe=z,te=1,ue=I;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,!(fe<Z);ue+=I)J=I-Z,te>W(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<G;++te)(ie=D[te])<128&&le.push(L(ie));for(V=Y=le.length,Y&&le.push(H);V<G;){for(ue=A,te=0;te<G;++te)(ie=D[te])>=N&&ie<ue&&(ue=ie);for(z=V+1,ue-N>W((A-F)/z)&&i("overflow"),F+=(ue-N)*z,N=ue,te=0;te<G;++te)if(ie=D[te],ie<N&&++F>A&&i("overflow"),ie==N){for(fe=F,Z=I;J=Z<=oe?w:Z>=oe+R?R:Z-oe,!(fe<J);Z+=I)ne=fe-J,re=I-J,le.push(L(r(J+ne%re,0))),fe=W(ne/re);le.push(L(r(fe,0))),oe=l(F,z,V==Y),F=0,++V}++F,++N}return le.join("")}function x(D){return p(D,function(N){return q.test(N)?d(N.slice(4).toLowerCase()):N})}function E(D){return p(D,function(N){return Q.test(N)?"xn--"+c(N):N})}var f=typeof b=="object"&&b&&!b.nodeType&&b,T=typeof O=="object"&&O&&!O.nodeType&&O,S=typeof h=="object"&&h;S.global!==S&&S.window!==S&&S.self!==S||(g=S);var m,_,A=2147483647,I=36,w=1,R=26,C=38,M=700,j=72,X=128,H="-",q=/^xn--/,Q=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,ee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 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<l;++d){var c,x,E,f,T=i[d].replace(o,"%20"),S=T.indexOf(p);S>=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;o<p.length;o++)e.push(u(p[o],o));return e}var g=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}};O.exports=function(p,u,e,o){return u=u||"&",e=e||"=",p===null&&(p=void 0),typeof p=="object"?h(s(p),function(r){var l=encodeURIComponent(g(r))+e;return i(p[r])?h(p[r],function(d){return l+encodeURIComponent(g(d))}).join(u):l+encodeURIComponent(g(p[r]))}).join(u):o?encodeURIComponent(g(o))+e+encodeURIComponent(g(p)):""};var i=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},s=Object.keys||function(p){var u=[];for(var e in p)Object.prototype.hasOwnProperty.call(p,e)&&u.push(e);return u}},{}],177:[function(n,O,b){"use strict";b.decode=b.parse=n("./decode"),b.encode=b.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,O,b){O.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,O,b){"use strict";function h(E){if(!(this instanceof h))return new h(E);r.call(this,E),l.call(this,E),E&&E.readable===!1&&(this.readable=!1),E&&E.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,E&&E.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||u.nextTick(i,this)}function i(E){E.end()}var s=n("babel-runtime/core-js/object/keys"),p=function(E){return E&&E.__esModule?E:{default:E}}(s),u=n("process-nextick-args"),e=p.default||function(E){var f=[];for(var T in E)f.push(T);return f};O.exports=h;var o=n("core-util-is");o.inherits=n("inherits");var r=n("./_stream_readable"),l=n("./_stream_writable");o.inherits(h,r);for(var d=e(l.prototype),c=0;c<d.length;c++){var x=d[c];h.prototype[x]||(h.prototype[x]=l.prototype[x])}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),h.prototype._destroy=function(E,f){this.push(null),this.end(),u.nextTick(f,E)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(n,O,b){"use strict";function h(s){if(!(this instanceof h))return new h(s);g.call(this,s)}O.exports=h;var g=n("./_stream_transform"),i=n("core-util-is");i.inherits=n("inherits"),i.inherits(h,g),h.prototype._transform=function(s,p,u){u(null,s)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,O,b){(function(h,g){"use strict";function i(G){return F.from(G)}function s(G){return F.isBuffer(G)||G instanceof V}function p(G,z,re){if(typeof G.prependListener=="function")return G.prependListener(z,re);G._events&&G._events[z]?L(G._events[z])?G._events[z].unshift(re):G._events[z]=[re,G._events[z]]:G.on(z,re)}function u(G,z){W=W||n("./_stream_duplex"),G=G||{};var re=z instanceof W;this.objectMode=!!G.objectMode,re&&(this.objectMode=this.objectMode||!!G.readableObjectMode);var ne=G.highWaterMark,le=G.readableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=ne||ne===0?ne:re&&(le||le===0)?le:k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new fe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=G.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,G.encoding&&(ue||(ue=n("string_decoder/").StringDecoder),this.decoder=new ue(G.encoding),this.encoding=G.encoding)}function e(G){if(W=W||n("./_stream_duplex"),!(this instanceof e))return new e(G);this._readableState=new u(G,this),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),N.call(this)}function o(G,z,re,ne,le){var k=G._readableState;if(z===null)k.reading=!1,E(G,k);else{var t;le||(t=l(k,z)),t?G.emit("error",t):k.objectMode||z&&z.length>0?(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<G.highWaterMark||G.length===0)}function c(G){return G>=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.highWaterMark&&(te("maybeReadMore read 0"),G.read(0),re!==z.length);)re=z.length;z.readingMore=!1}function _(G){return function(){var z=G._readableState;te("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&D(G,"data")&&(z.flowing=!0,R(G))}}function A(G){te("readable nexttick read 0"),G.read(0)}function I(G,z){z.resumeScheduled||(z.resumeScheduled=!0,$.nextTick(w,G,z))}function w(G,z){z.reading||(te("resume read 0"),G.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,G.emit("resume"),R(G),z.flowing&&!z.reading&&G.read(0)}function R(G){var z=G._readableState;for(te("flow",z.flowing);z.flowing&&G.read()!==null;);}function C(G,z){if(z.length===0)return null;var re;return z.objectMode?re=z.buffer.shift():!G||G>=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 G<z.head.data.length?(ne=z.head.data.slice(0,G),z.head.data=z.head.data.slice(G)):ne=G===z.head.data.length?z.shift():re?j(G,z):X(G,z),ne}function j(G,z){var re=z.head,ne=1,le=re.data;for(G-=le.length;re=re.next;){var k=re.data,t=G>k.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<ne;re++)if(G[re]===z)return re;return-1}var U=n("babel-runtime/core-js/object/get-prototype-of"),ee=function(G){return G&&G.__esModule?G:{default:G}}(U),$=n("process-nextick-args");O.exports=e;var W,L=n("isarray");e.ReadableState=u;var D=(n("events").EventEmitter,function(G,z){return G.listeners(z).length}),N=n("./internal/streams/stream"),F=n("safe-buffer").Buffer,V=g.Uint8Array||function(){},Y=n("core-util-is");Y.inherits=n("inherits");var oe=n("util"),te=void 0;te=oe&&oe.debuglog?oe.debuglog("stream"):function(){};var ue,fe=n("./internal/streams/BufferList"),Z=n("./internal/streams/destroy");Y.inherits(e,N);var J=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),e.prototype.destroy=Z.destroy,e.prototype._undestroy=Z.undestroy,e.prototype._destroy=function(G,z){this.push(null),z(G)},e.prototype.push=function(G,z){var re,ne=this._readableState;return ne.objectMode?re=!0:typeof G=="string"&&(z=z||ne.defaultEncoding,z!==ne.encoding&&(G=F.from(G,z),z=""),re=!0),o(this,G,z,!1,re)},e.prototype.unshift=function(G){return o(this,G,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(G){return ue||(ue=n("string_decoder/").StringDecoder),this._readableState.decoder=new ue(G),this._readableState.encoding=G,this};var ie=8388608;e.prototype.read=function(G){te("read",G),G=parseInt(G,10);var z=this._readableState,re=G;if(G!==0&&(z.emittedReadable=!1),G===0&&z.needReadable&&(z.length>=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-G<z.highWaterMark)&&(ne=!0,te("length less than watermark",ne)),z.ended||z.reading?(ne=!1,te("reading or ended",ne)):ne&&(te("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(G=x(re,z)));var le;return le=G>0?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<le;k++)ne[k].emit("unpipe",this,re);return this}var t=Q(z.pipes,G);return t===-1?this:(z.pipes.splice(t,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),G.emit("unpipe",this,re),this)},e.prototype.on=function(G,z){var re=N.prototype.on.call(this,G,z);if(G==="data")this._readableState.flowing!==!1&&this.resume();else if(G==="readable"){var ne=this._readableState;ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&f(this):$.nextTick(A,this))}return re},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var G=this._readableState;return G.flowing||(te("resume"),G.flowing=!0,I(this,G)),this},e.prototype.pause=function(){return te("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(te("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(G){var z=this,re=this._readableState,ne=!1;G.on("end",function(){if(te("wrapped end"),re.decoder&&!re.ended){var t=re.decoder.end();t&&t.length&&z.push(t)}z.push(null)}),G.on("data",function(t){(te("wrapped data"),re.decoder&&(t=re.decoder.write(t)),(!re.objectMode||t!=null)&&(re.objectMode||t&&t.length))&&(z.push(t)||(ne=!0,G.pause()))});for(var le in G)this[le]===void 0&&typeof G[le]=="function"&&(this[le]=function(t){return function(){return G[t].apply(G,arguments)}}(le));for(var k=0;k<J.length;k++)G.on(J[k],this.emit.bind(this,J[k]));return this._read=function(t){te("wrapped _read",t),ne&&(ne=!1,G.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=C}).call(this,n("_process"),typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(n,O,b){"use strict";function h(e,o){var r=this._transformState;r.transforming=!1;var l=r.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,o!=null&&this.push(o),l(e);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function g(e){if(!(this instanceof g))return new g(e);p.call(this,e),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this;typeof this._flush=="function"?this._flush(function(o,r){s(e,o,r)}):s(this,null,null)}function s(e,o,r){if(o)return e.emit("error",o);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}O.exports=g;var p=n("./_stream_duplex"),u=n("core-util-is");u.inherits=n("inherits"),u.inherits(g,p),g.prototype.push=function(e,o){return this._transformState.needTransform=!1,p.prototype.push.call(this,e,o)},g.prototype._transform=function(e,o,r){throw new Error("_transform() is not implemented")},g.prototype._write=function(e,o,r){var l=this._transformState;if(l.writecb=r,l.writechunk=e,l.writeencoding=o,!l.transforming){var d=this._readableState;(l.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},g.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},g.prototype._destroy=function(e,o){var r=this;p.prototype._destroy.call(this,e,function(l){o(l),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,O,b){(function(h,g){"use strict";function i(Z){return Z&&Z.__esModule?Z:{default:Z}}function s(Z){var J=this;this.next=null,this.entry=null,this.finish=function(){j(J,Z)}}function p(Z){return oe.from(Z)}function u(Z){return oe.isBuffer(Z)||Z instanceof te}function e(){}function o(Z,J){D=D||n("./_stream_duplex"),Z=Z||{};var ie=J instanceof D;this.objectMode=!!Z.objectMode,ie&&(this.objectMode=this.objectMode||!!Z.writableObjectMode);var G=Z.highWaterMark,z=Z.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=G||G===0?G:ie&&(z||z===0)?z:re,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ne=Z.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){S(J,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function r(Z){if(D=D||n("./_stream_duplex"),!(fe.call(r,this)||this instanceof D))return new r(Z);this._writableState=new o(Z,this),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev),typeof Z.destroy=="function"&&(this._destroy=Z.destroy),typeof Z.final=="function"&&(this._final=Z.final)),Y.call(this)}function l(Z,J){var ie=new Error("write after end");Z.emit("error",ie),L.nextTick(J,ie)}function d(Z,J,ie,G){var z=!0,re=!1;return ie===null?re=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||J.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re&&(Z.emit("error",re),L.nextTick(G,re),z=!1),z}function c(Z,J,ie){return Z.objectMode||Z.decodeStrings===!1||typeof J!="string"||(J=oe.from(J,ie)),J}function x(Z,J,ie,G,z,re){if(!ie){var ne=c(J,G,z);G!==ne&&(ie=!0,z="buffer",G=ne)}var le=J.objectMode?1:G.length;J.length+=le;var k=J.length<J.highWaterMark;if(k||(J.needDrain=!0),J.writing||J.corked){var t=J.lastBufferedRequest;J.lastBufferedRequest={chunk:G,encoding:z,isBuf:ie,callback:re,next:null},t?t.next=J.lastBufferedRequest:J.bufferedRequest=J.lastBufferedRequest,J.bufferedRequestCount+=1}else E(Z,J,!1,le,G,z,re);return k}function E(Z,J,ie,G,z,re,ne){J.writelen=G,J.writecb=ne,J.writing=!0,J.sync=!0,ie?Z._writev(z,J.onwrite):Z._write(z,re,J.onwrite),J.sync=!1}function f(Z,J,ie,G,z){--J.pendingcb,ie?(L.nextTick(z,G),L.nextTick(C,Z,J),Z._writableState.errorEmitted=!0,Z.emit("error",G)):(z(G),Z._writableState.errorEmitted=!0,Z.emit("error",G),C(Z,J))}function T(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}function S(Z,J){var ie=Z._writableState,G=ie.sync,z=ie.writecb;if(T(ie),J)f(Z,ie,G,J,z);else{var re=I(ie);re||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||A(Z,ie),G?N(m,Z,ie,re,z):m(Z,ie,re,z)}}function m(Z,J,ie,G){ie||_(Z,J),J.pendingcb--,G(),C(Z,J)}function _(Z,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Z.emit("drain"))}function A(Z,J){J.bufferProcessing=!0;var ie=J.bufferedRequest;if(Z._writev&&ie&&ie.next){var G=J.bufferedRequestCount,z=new Array(G),re=J.corkedRequestsFree;re.entry=ie;for(var ne=0,le=!0;ie;)z[ne]=ie,ie.isBuf||(le=!1),ie=ie.next,ne+=1;z.allBuffers=le,E(Z,J,!0,J.length,z,"",re.finish),J.pendingcb++,J.lastBufferedRequest=null,re.next?(J.corkedRequestsFree=re.next,re.next=null):J.corkedRequestsFree=new s(J),J.bufferedRequestCount=0}else{for(;ie;){var k=ie.chunk,t=ie.encoding,a=ie.callback;if(E(Z,J,!1,J.objectMode?1:k.length,k,t,a),ie=ie.next,J.bufferedRequestCount--,J.writing)break}ie===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=ie,J.bufferProcessing=!1}function I(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function w(Z,J){Z._final(function(ie){J.pendingcb--,ie&&Z.emit("error",ie),J.prefinished=!0,Z.emit("prefinish"),C(Z,J)})}function R(Z,J){J.prefinished||J.finalCalled||(typeof Z._final=="function"?(J.pendingcb++,J.finalCalled=!0,L.nextTick(w,Z,J)):(J.prefinished=!0,Z.emit("prefinish")))}function C(Z,J){var ie=I(J);return ie&&(R(Z,J),J.pendingcb===0&&(J.finished=!0,Z.emit("finish"))),ie}function M(Z,J,ie){J.ending=!0,C(Z,J),ie&&(J.finished?L.nextTick(ie):Z.once("finish",ie)),J.ended=!0,Z.writable=!1}function j(Z,J,ie){var G=Z.entry;for(Z.entry=null;G;){var z=G.callback;J.pendingcb--,z(ie),G=G.next}J.corkedRequestsFree?J.corkedRequestsFree.next=Z:J.corkedRequestsFree=Z}var X=n("babel-runtime/core-js/object/define-property"),H=i(X),q=n("babel-runtime/core-js/symbol/has-instance"),Q=i(q),U=n("babel-runtime/core-js/symbol"),ee=i(U),$=n("babel-runtime/core-js/set-immediate"),W=i($),L=n("process-nextick-args");O.exports=r;var D,N=!h.browser&&["v0.10","v0.9."].indexOf(h.version.slice(0,5))>-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<W.length;)if(m.call(W,D))return F.value=W[D],F.done=!1,F;return F.value=T,F.done=!0,F};return N.next=N}}return{next:f}}function f(){return{value:T,done:!0}}var T,S=Object.prototype,m=S.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},A=_.iterator||"@@iterator",I=_.asyncIterator||"@@asyncIterator",w=_.toStringTag||"@@toStringTag",R=typeof O=="object",C=h.regeneratorRuntime;if(C)return void(R&&(O.exports=C));C=h.regeneratorRuntime=R?O.exports:{},C.wrap=g;var M="suspendedStart",j="suspendedYield",X="executing",H="completed",q={},Q={};Q[A]=function(){return this};var U=Object.getPrototypeOf,ee=U&&U(U(E([])));ee&&ee!==S&&m.call(ee,A)&&(Q=ee);var $=u.prototype=s.prototype=Object.create(Q);p.prototype=$.constructor=u,u.constructor=p,u[w]=p.displayName="GeneratorFunction",C.isGeneratorFunction=function(W){var L=typeof W=="function"&&W.constructor;return!!L&&(L===p||(L.displayName||L.name)==="GeneratorFunction")},C.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,u):(W.__proto__=u,w in W||(W[w]="GeneratorFunction")),W.prototype=Object.create($),W},C.awrap=function(W){return{__await:W}},e(o.prototype),o.prototype[I]=function(){return this},C.AsyncIterator=o,C.async=function(W,L,D,N){var F=new o(g(W,L,D,N));return C.isGeneratorFunction(L)?F:F.next().then(function(V){return V.done?V.value:F.next()})},e($),$[w]="Generator",$[A]=function(){return this},$.toString=function(){return"[object Generator]"},C.keys=function(W){var L=[];for(var D in W)L.push(D);return L.reverse(),function N(){for(;L.length;){var F=L.pop();if(F in W)return N.value=F,N.done=!1,N}return N.done=!0,N}},C.values=E,x.prototype={constructor:x,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=T,this.done=!1,this.delegate=null,this.method="next",this.arg=T,this.tryEntries.forEach(c),!L)for(var D in this)D.charAt(0)==="t"&&m.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=T)},stop:function(){this.done=!0;var L=this.tryEntries[0],D=L.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(L){function D(ue,fe){return Y.type="throw",Y.arg=L,N.next=ue,fe&&(N.method="next",N.arg=T),!!fe}if(this.done)throw L;for(var N=this,F=this.tryEntries.length-1;F>=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<V.catchLoc)return D(V.catchLoc,!0);if(this.prev<V.finallyLoc)return D(V.finallyLoc)}else if(oe){if(this.prev<V.catchLoc)return D(V.catchLoc,!0)}else{if(!te)throw new Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return D(V.finallyLoc)}}}},abrupt:function(L,D){for(var N=this.tryEntries.length-1;N>=0;--N){var F=this.tryEntries[N];if(F.tryLoc<=this.prev&&m.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var V=F;break}}V&&(L==="break"||L==="continue")&&V.tryLoc<=D&&D<=V.finallyLoc&&(V=null);var Y=V?V.completion:{};return Y.type=L,Y.arg=D,V?(this.method="next",this.next=V.finallyLoc,q):this.complete(Y)},complete:function(L,D){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&D&&(this.next=D),q},finish:function(L){for(var D=this.tryEntries.length-1;D>=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;K<pe;K++){var ce=v[ue[K]].length;if(ce>y)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<B;y++)v[ue[y]]=""}function _(v){q(v),v.cdata!==""&&(H(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(H(v,"onscript",v.script),v.script="")}function A(v,y){return new I(v,y)}function I(v,y){if(!(this instanceof I))return new I(v,y);fe.apply(this),this._parser=new T(v,y),this.writable=!0,this.readable=!0;var B=this;this._parser.onend=function(){B.emit("end")},this._parser.onerror=function(K){B.emit("error",K),B._parser.error=null},this._decoder=null,Z.forEach(function(K){(0,l.default)(B,"on"+K,{get:function(){return B._parser["on"+K]},set:function(ce){if(!ce)return B.removeAllListeners(K),B._parser["on"+K]=ce,ce;B.on(K,ce)},enumerable:!0,configurable:!1})})}function w(v){return v===" "||v===`
|
|
|
`||v==="\r"||v===" "}function R(v){return v==='"'||v==="'"}function C(v){return v===">"||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<he;ce++){var me=v.attribList[ce],ye=me[0],ge=me[1],ae=L(ye,!0),_e=ae.prefix,Ee=ae.local,be=_e===""?"":B.ns[_e]||"",ve={name:ye,value:ge,prefix:_e,local:Ee,uri:be};_e&&_e!=="xmlns"&&!be&&($(v,"Unbound namespace prefix: "+(0,u.default)(_e)),ve.uri=_e),v.tag.attributes[ye]=ve,H(v,"onattribute",ve)}v.attribList.length=0}v.tag.isSelfClosing=!!y,v.sawRoot=!0,v.tags.push(v.tag),H(v,"onopentag",v.tag),y||(v.noscript||v.tagName.toLowerCase()!=="script"?v.state=a.TEXT:v.state=a.SCRIPT,v.tag=null,v.tagName=""),v.attribName=v.attribValue="",v.attribList.length=0}function F(v){if(!v.tagName)return $(v,"Weird empty close tag."),v.textNode+="</>",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<v.length&&(B=v.charAt(y)),B}function te(v){var y=this;if(this.error)throw this.error;if(y.closed)return U(y,"Cannot write after close. Assign an onready handler.");if(v===null)return ee(y);(v===void 0?"undefined":(0,o.default)(v))==="object"&&(v=v.toString());for(var B=0,K="";!(K=oe(v,B++),y.c=K,!K);)switch(y.trackPosition&&(y.position++,K===`
|
|
|
`?(y.line++,y.column=0):y.column++),y.state){case a.BEGIN:if(y.state=a.BEGIN_WHITESPACE,K==="\uFEFF")continue;Y(y,K);continue;case a.BEGIN_WHITESPACE:Y(y,K);continue;case a.TEXT:if(y.sawRoot&&!y.closedRoot){for(var pe=B-1;K&&K!=="<"&&K!=="&";)(K=oe(v,B++))&&y.trackPosition&&(y.position++,K===`
|
|
|
`?(y.line++,y.column=0):y.column++);y.textNode+=v.substring(pe,B-1)}K!=="<"||y.sawRoot&&y.closedRoot&&!y.strict?(w(K)||y.sawRoot&&!y.closedRoot||$(y,"Text data outside of root node."),K==="&"?y.state=a.TEXT_ENTITY:y.textNode+=K):(y.state=a.OPEN_WAKA,y.startTagPosition=y.position);continue;case a.SCRIPT:K==="<"?y.state=a.SCRIPT_ENDING:y.script+=K;continue;case a.SCRIPT_ENDING:K==="/"?y.state=a.CLOSE_TAG:(y.script+="<"+K,y.state=a.SCRIPT);continue;case a.OPEN_WAKA:if(K==="!")y.state=a.SGML_DECL,y.sgmlDecl="";else if(!w(K))if(M(ne,K))y.state=a.OPEN_TAG,y.tagName=K;else if(K==="/")y.state=a.CLOSE_TAG,y.tagName="";else if(K==="?")y.state=a.PROC_INST,y.procInstName=y.procInstBody="";else{if($(y,"Unencoded <"),y.startTagPosition+1<y.position){var ce=y.position-y.startTagPosition;K=new Array(ce).join(" ")+K}y.textNode+="<"+K,y.state=a.TEXT}continue;case a.SGML_DECL:(y.sgmlDecl+K).toUpperCase()===J?(H(y,"onopencdata"),y.state=a.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+K==="--"?(y.state=a.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+K).toUpperCase()===ie?(y.state=a.DOCTYPE,(y.doctype||y.sawRoot)&&$(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):K===">"?(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="";++me<ye;){var ae=Number(arguments[me]);if(!isFinite(ae)||ae<0||ae>1114111||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;T<E.length;T++)f[T]=255&E.charCodeAt(T);d.push(f)}else d.push(E,d._charset);d._pos=x.length}break;case"arraybuffer":if(c.readyState!==r.DONE||!c.response)break;x=c.response,d.push(new i(new Uint8Array(x)));break;case"moz-chunked-arraybuffer":if(x=c.response,c.readyState!==r.LOADING||!x)break;d.push(new i(new Uint8Array(x)));break;case"ms-stream":if(x=c.response,c.readyState!==r.LOADING)break;var S=new g.MSStreamReader;S.onprogress=function(){S.result.byteLength>d._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<A)return 0;var w=s(_[I]);return w>=0?(w>0&&(m.lastNeed=w-1),w):--I<A||w===-2?0:(w=s(_[I]))>=0?(w>0&&(m.lastNeed=w-2),w):--I<A||w===-2?0:(w=s(_[I]),w>=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<m.length?_?_+this.text(m,A):this.text(m,A):_||""},i.prototype.end=r,i.prototype.text=o,i.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":193}],201:[function(n,O,b){(function(h,g){function i(r,l){this._id=r,this._clearFn=l}var s=n("process/browser.js").nextTick,p=Function.prototype.apply,u=Array.prototype.slice,e={},o=0;b.setTimeout=function(){return new i(p.call(setTimeout,window,arguments),clearTimeout)},b.setInterval=function(){return new i(p.call(setInterval,window,arguments),clearInterval)},b.clearTimeout=b.clearInterval=function(r){r.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},b.enroll=function(r,l){clearTimeout(r._idleTimeoutId),r._idleTimeout=l},b.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},b._unrefActive=b.active=function(r){clearTimeout(r._idleTimeoutId);var l=r._idleTimeout;l>=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<s;p++)i[p]=g[p];return i.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,O,b){"use strict";function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function g(w,R,C){if(w&&e.isObject(w)&&w instanceof h)return w;var M=new h;return M.parse(w,R,C),M}function i(w){return e.isString(w)&&(w=g(w)),w instanceof h?w.format():h.prototype.format.call(w)}function s(w,R){return g(w,!1,!0).resolve(R)}function p(w,R){return w?g(w,!1,!0).resolveObject(R):R}var u=n("punycode"),e=n("./util");b.parse=g,b.resolve=s,b.resolveObject=p,b.format=i,b.Url=h;var o=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\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&&M<w.indexOf("#")?"?":"#",X=w.split(j),H=/\\/g;X[0]=X[0].replace(H,"/"),w=X.join(j);var q=w;if(q=q.trim(),!C&&w.split("#").length===1){var Q=l.exec(q);if(Q)return this.path=q,this.href=q,this.pathname=Q[1],Q[2]?(this.search=Q[2],this.query=R?I.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var U=o.exec(q);if(U){U=U[0];var ee=U.toLowerCase();this.protocol=ee,q=q.substr(U.length)}if(C||U||q.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=q.substr(0,2)==="//";!$||U&&_[U]||(q=q.substr(2),this.slashes=!0)}if(!_[U]&&($||U&&!A[U])){for(var W=-1,L=0;L<f.length;L++){var D=q.indexOf(f[L]);D!==-1&&(W===-1||D<W)&&(W=D)}var N,F;F=W===-1?q.lastIndexOf("@"):q.lastIndexOf("@",W),F!==-1&&(N=q.slice(0,F),q=q.slice(F+1),this.auth=decodeURIComponent(N)),W=-1;for(var L=0;L<E.length;L++){var D=q.indexOf(E[L]);D!==-1&&(W===-1||D<W)&&(W=D)}W===-1&&(W=q.length),this.host=q.slice(0,W),q=q.slice(W),this.parseHost(),this.hostname=this.hostname||"";var V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V)for(var Y=this.hostname.split(/\./),L=0,oe=Y.length;L<oe;L++){var te=Y[L];if(te&&!te.match(T)){for(var ue="",fe=0,Z=te.length;fe<Z;fe++)te.charCodeAt(fe)>127?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;L<oe;L++){var ne=x[L];if(q.indexOf(ne)!==-1){var le=encodeURIComponent(ne);le===ne&&(le=escape(ne)),q=q.split(ne).join(le)}}var k=q.indexOf("#");k!==-1&&(this.hash=q.substr(k),q=q.slice(0,k));var t=q.indexOf("?");if(t!==-1?(this.search=q.substr(t),this.query=q.substr(t+1),R&&(this.query=I.parse(this.query)),q=q.slice(0,t)):R&&(this.search="",this.query={}),q&&(this.pathname=q),A[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",a=this.search||"";this.path=z+a}return this.href=this.format(),this},h.prototype.format=function(){var w=this.auth||"";w&&(w=encodeURIComponent(w),w=w.replace(/%3A/i,":"),w+="@");var R=this.protocol||"",C=this.pathname||"",M=this.hash||"",j=!1,X="";this.host?j=w+this.host:this.hostname&&(j=w+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(X=I.stringify(this.query));var H=this.search||X&&"?"+X||"";return R&&R.substr(-1)!==":"&&(R+=":"),this.slashes||(!R||A[R])&&j!==!1?(j="//"+(j||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):j||(j=""),M&&M.charAt(0)!=="#"&&(M="#"+M),H&&H.charAt(0)!=="?"&&(H="?"+H),C=C.replace(/[?#]/g,function(q){return encodeURIComponent(q)}),H=H.replace("#","%23"),R+j+C+H+M},h.prototype.resolve=function(w){return this.resolveObject(g(w,!1,!0)).format()},h.prototype.resolveObject=function(w){if(e.isString(w)){var R=new h;R.parse(w,!1,!0),w=R}for(var C=new h,M=Object.keys(this),j=0;j<M.length;j++){var X=M[j];C[X]=this[X]}if(C.hash=w.hash,w.href==="")return C.href=C.format(),C;if(w.slashes&&!w.protocol){for(var H=Object.keys(w),q=0;q<H.length;q++){var Q=H[q];Q!=="protocol"&&(C[Q]=w[Q])}return A[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(w.protocol&&w.protocol!==C.protocol){if(!A[w.protocol]){for(var U=Object.keys(w),ee=0;ee<U.length;ee++){var $=U[ee];C[$]=w[$]}return C.href=C.format(),C}if(C.protocol=w.protocol,w.host||_[w.protocol])C.pathname=w.pathname;else{for(var oe=(w.pathname||"").split("/");oe.length&&!(w.host=oe.shift()););w.host||(w.host=""),w.hostname||(w.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),C.pathname=oe.join("/")}if(C.search=w.search,C.query=w.query,C.host=w.host||"",C.auth=w.auth,C.hostname=w.hostname||w.host,C.port=w.port,C.pathname||C.search){var W=C.pathname||"",L=C.search||"";C.path=W+L}return C.slashes=C.slashes||w.slashes,C.href=C.format(),C}var D=C.pathname&&C.pathname.charAt(0)==="/",N=w.host||w.pathname&&w.pathname.charAt(0)==="/",F=N||D||C.host&&w.pathname,V=F,Y=C.pathname&&C.pathname.split("/")||[],oe=w.pathname&&w.pathname.split("/")||[],te=C.protocol&&!A[C.protocol];if(te&&(C.hostname="",C.port=null,C.host&&(Y[0]===""?Y[0]=C.host:Y.unshift(C.host)),C.host="",w.protocol&&(w.hostname=null,w.port=null,w.host&&(oe[0]===""?oe[0]=w.host:oe.unshift(w.host)),w.host=null),F=F&&(oe[0]===""||Y[0]==="")),N)C.host=w.host||w.host===""?w.host:C.host,C.hostname=w.hostname||w.hostname===""?w.hostname:C.hostname,C.search=w.search,C.query=w.query,Y=oe;else if(oe.length)Y||(Y=[]),Y.pop(),Y=Y.concat(oe),C.search=w.search,C.query=w.query;else if(!e.isNullOrUndefined(w.search)){if(te){C.hostname=C.host=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 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<te;++oe)Q(D,String(oe))?Y.push(d(L,D,N,F,String(oe),!0)):Y.push("");return V.forEach(function(ue){ue.match(/^\d+$/)||Y.push(d(L,D,N,F,ue,!0))}),Y}function d(L,D,N,F,V,Y){var oe,te,ue;if(ue=Object.getOwnPropertyDescriptor(D,V)||{value:D[V]},ue.get?te=ue.set?L.stylize("[Getter/Setter]","special"):L.stylize("[Getter]","special"):ue.set&&(te=L.stylize("[Setter]","special")),Q(F,V)||(oe="["+V+"]"),te||(L.seen.indexOf(ue.value)<0?(te=f(N)?e(L,ue.value,null):e(L,ue.value,N-1),te.indexOf(`
|
|
|
`)>-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<arguments.length;N++)D.push(i(arguments[N]));return D.join(" ")}for(var N=1,F=arguments,V=F.length,Y=String(L).replace(U,function(ue){if(ue==="%%")return"%";if(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<V;oe=F[++N])f(oe)||!w(oe)?Y+=" "+oe:Y+=" "+i(oe);return Y},b.deprecate=function(L,D){function N(){if(!F){if(h.throwDeprecation)throw new Error(D);h.traceDeprecation?console.trace(D):console.error(D),F=!0}return L.apply(this,arguments)}if(A(g.process))return function(){return b.deprecate(L,D).apply(this,arguments)};if(h.noDeprecation===!0)return L;var F=!1;return N};var ee,$={};b.debuglog=function(L){if(A(ee)&&(ee=h.env.NODE_DEBUG||""),L=L.toUpperCase(),!$[L])if(new RegExp("\\b"+L+"\\b","i").test(ee)){var D=h.pid;$[L]=function(){var N=b.format.apply(b,arguments);console.error("%s %d: %s",L,D,N)}}else $[L]=function(){};return $[L]},b.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},b.isArray=x,b.isBoolean=E,b.isNull=f,b.isNullOrUndefined=T,b.isNumber=S,b.isString=m,b.isSymbol=_,b.isUndefined=A,b.isRegExp=I,b.isObject=w,b.isDate=R,b.isError=C,b.isFunction=M,b.isPrimitive=j,b.isBuffer=n("./support/isBuffer");var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];b.log=function(){console.log("%s - %s",q(),b.format.apply(b,arguments))},b.inherits=n("inherits"),b._extend=function(L,D){if(!D||!w(D))return L;for(var N=Object.keys(D),F=N.length;F--;)L[N[F]]=D[N[F]];return L}}).call(this,n("_process"),typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,O,b){"use strict";(function(){b.stripBOM=function(h){return h[0]==="\uFEFF"?h.substring(1):h}}).call(void 0)},{}],209:[function(n,O,b){"use strict";function h(u){return u&&u.__esModule?u:{default:u}}var g=n("babel-runtime/helpers/typeof"),i=h(g),s=n("babel-runtime/core-js/object/keys"),p=h(s);(function(){var u,e,o,r,l,d={}.hasOwnProperty;u=n("xmlbuilder"),e=n("./defaults").defaults,r=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},l=function(x){return"<![CDATA["+o(x)+"]]>"},o=function(x){return x.replace("]]>","]]]]><![CDATA[>")},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;R<C;R++)M=A[R],I=M(I,w);return I},b.Parser=function(_){function A(I){this.parseString=T(this.parseString,this),this.reset=T(this.reset,this),this.assignOrPush=T(this.assignOrPush,this),this.processAsync=T(this.processAsync,this);var w,R,C;if(!(this instanceof b.Parser))return new b.Parser(I);this.options={},R=r[.2];for(w in R)m.call(R,w)&&(C=R[w],this.options[w]=C);for(w in I)m.call(I,w)&&(C=I[w],this.options[w]=C);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return S(A,_),A.prototype.processAsync=function(){var I,w;try{return this.remaining.length<=this.options.chunkSize?(I=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(I),this.saxParser.close()):(I=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(I),f(this.processAsync))}catch(R){if(w=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(w)}},A.prototype.assignOrPush=function(I,w,R){return w in I?(I[w]instanceof Array||(I[w]=[I[w]]),I[w].push(R)):this.options.explicitArray?I[w]=[R]:I[w]=R},A.prototype.reset=function(){var I,w,R,C;return this.removeAllListeners(),this.saxParser=E.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(M){return function(j){if(M.saxParser.resume(),!M.saxParser.errThrown)return M.saxParser.errThrown=!0,M.emit("error",j)}}(this),this.saxParser.onend=function(M){return function(){if(!M.saxParser.ended)return M.saxParser.ended=!0,M.emit("end",M.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],I=this.options.attrkey,w=this.options.charkey,this.saxParser.onopentag=function(M){return function(j){var X,H,q,Q,U;if(q={},q[w]="",!M.options.ignoreAttrs){U=j.attributes;for(X in U)m.call(U,X)&&(I in q||M.options.mergeAttrs||(q[I]={}),H=M.options.attrValueProcessors?c(M.options.attrValueProcessors,j.attributes[X],X):j.attributes[X],Q=M.options.attrNameProcessors?c(M.options.attrNameProcessors,X):X,M.options.mergeAttrs?M.assignOrPush(q,Q,H):q[I][Q]=H)}return q["#name"]=M.options.tagNameProcessors?c(M.options.tagNameProcessors,j.name):j.name,M.options.xmlns&&(q[M.options.xmlnskey]={uri:j.uri,local:j.local}),C.push(q)}}(this),this.saxParser.onclosetag=function(M){return function(){var j,X,H,q,Q,U,ee,$,W,L;if(U=C.pop(),Q=U["#name"],M.options.explicitChildren&&M.options.preserveChildrenOrder||delete U["#name"],U.cdata===!0&&(j=U.cdata,delete U.cdata),W=C[C.length-1],U[w].match(/^\s*$/)&&!j?(X=U[w],delete U[w]):(M.options.trim&&(U[w]=U[w].trim()),M.options.normalize&&(U[w]=U[w].replace(/\s{2,}/g," ").trim()),U[w]=M.options.valueProcessors?c(M.options.valueProcessors,U[w],Q):U[w],(0,p.default)(U).length===1&&w in U&&!M.EXPLICIT_CHARKEY&&(U=U[w])),d(U)&&(U=M.options.emptyTag!==""?M.options.emptyTag:X),M.options.validator!=null&&(L="/"+function(){var D,N,F;for(F=[],D=0,N=C.length;D<N;D++)q=C[D],F.push(q["#name"]);return F}().concat(Q).join("/"),function(){var D;try{U=M.options.validator(L,W&&W[Q],U)}catch(N){return D=N,M.emit("error",D)}}()),M.options.explicitChildren&&!M.options.mergeAttrs&&(U===void 0?"undefined":(0,e.default)(U))==="object")if(M.options.preserveChildrenOrder){if(W){W[M.options.childkey]=W[M.options.childkey]||[],ee={};for(H in U)m.call(U,H)&&(ee[H]=U[H]);W[M.options.childkey].push(ee),delete U["#name"],(0,p.default)(U).length===1&&w in U&&!M.EXPLICIT_CHARKEY&&(U=U[w])}}else q={},M.options.attrkey in U&&(q[M.options.attrkey]=U[M.options.attrkey],delete U[M.options.attrkey]),!M.options.charsAsChildren&&M.options.charkey in U&&(q[M.options.charkey]=U[M.options.charkey],delete U[M.options.charkey]),(0,i.default)(U).length>0&&(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<X;C++)M=w[C],this.instruction(M);else if(S(w))for(M in w)A.call(w,M)&&(j=w[M],this.instruction(M,j));else T(R)&&(R=R.apply()),H=new d(this,w,R),this.onData(this.writer.processingInstruction(H,this.currentLevel+1));return this},I.prototype.declaration=function(w,R,C){var M;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return M=new o(this,w,R,C),this.onData(this.writer.declaration(M,this.currentLevel+1)),this},I.prototype.doctype=function(w,R,C){if(this.openCurrent(),w==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new r(this,R,C),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},I.prototype.dtdElement=function(w,R){var C;return this.openCurrent(),C=new p(this,w,R),this.onData(this.writer.dtdElement(C,this.currentLevel+1)),this},I.prototype.attList=function(w,R,C,M,j){var X;return this.openCurrent(),X=new s(this,w,R,C,M,j),this.onData(this.writer.dtdAttList(X,this.currentLevel+1)),this},I.prototype.entity=function(w,R){var C;return this.openCurrent(),C=new u(this,!1,w,R),this.onData(this.writer.dtdEntity(C,this.currentLevel+1)),this},I.prototype.pEntity=function(w,R){var C;return this.openCurrent(),C=new u(this,!0,w,R),this.onData(this.writer.dtdEntity(C,this.currentLevel+1)),this},I.prototype.notation=function(w,R){var C;return this.openCurrent(),C=new e(this,w,R),this.onData(this.writer.dtdNotation(C,this.currentLevel+1)),this},I.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},I.prototype.end=function(){for(;this.currentLevel>=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<f;E++)x=c[E],delete this.attributes[x];else delete this.attributes[c];return this},d.prototype.toString=function(c){return this.options.writer.set(c).element(this)},d.prototype.att=function(c,x){return this.attribute(c,x)},d.prototype.a=function(c,x){return this.attribute(c,x)},d}(s)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,O,b){"use strict";(function(){var h,g,i,s,p,u,e,o,r,l,d,c,x={}.hasOwnProperty;c=n("./Utility"),d=c.isObject,l=c.isFunction,r=c.isEmpty,p=null,h=null,g=null,i=null,s=null,e=null,o=null,u=null,O.exports=function(){function E(f){this.parent=f,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=n("./XMLElement"),h=n("./XMLCData"),g=n("./XMLComment"),i=n("./XMLDeclaration"),s=n("./XMLDocType"),e=n("./XMLRaw"),o=n("./XMLText"),u=n("./XMLProcessingInstruction"))}return E.prototype.element=function(f,T,S){var m,_,A,I,w,R,C,M,j,X;if(R=null,T==null&&(T={}),T=T.valueOf(),d(T)||(j=[T,S],S=j[0],T=j[1]),f!=null&&(f=f.valueOf()),Array.isArray(f))for(A=0,C=f.length;A<C;A++)_=f[A],R=this.element(_);else if(l(f))R=this.element(f.apply());else if(d(f)){for(w in f)if(x.call(f,w))if(X=f[w],l(X)&&(X=X.apply()),d(X)&&r(X)&&(X=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&w.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(w.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X))for(I=0,M=X.length;I<M;I++)_=X[I],m={},m[w]=_,R=this.element(m);else d(X)?(R=this.element(w),R.element(X)):R=this.element(w,X)}else R=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&f.indexOf(this.stringify.convertTextKey)===0?this.text(S):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&f.indexOf(this.stringify.convertCDataKey)===0?this.cdata(S):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&f.indexOf(this.stringify.convertCommentKey)===0?this.comment(S):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&f.indexOf(this.stringify.convertRawKey)===0?this.raw(S):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&f.indexOf(this.stringify.convertPIKey)===0?this.instruction(f.substr(this.stringify.convertPIKey.length),S):this.node(f,T,S);if(R==null)throw new Error("Could not create any elements with: "+f);return R},E.prototype.insertBefore=function(f,T,S){var m,_,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_),m=this.parent.element(f,T,S),Array.prototype.push.apply(this.parent.children,A),m},E.prototype.insertAfter=function(f,T,S){var m,_,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_+1),m=this.parent.element(f,T,S),Array.prototype.push.apply(this.parent.children,A),m},E.prototype.remove=function(){var f;if(this.isRoot)throw new Error("Cannot remove the root element");return f=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[f,f-f+1].concat([])),this.parent},E.prototype.node=function(f,T,S){var m,_;return f!=null&&(f=f.valueOf()),T||(T={}),T=T.valueOf(),d(T)||(_=[T,S],S=_[0],T=_[1]),m=new p(this,f,T),S!=null&&m.text(S),this.children.push(m),m},E.prototype.text=function(f){var T;return T=new o(this,f),this.children.push(T),this},E.prototype.cdata=function(f){var T;return T=new h(this,f),this.children.push(T),this},E.prototype.comment=function(f){var T;return T=new g(this,f),this.children.push(T),this},E.prototype.commentBefore=function(f){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.commentAfter=function(f){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.raw=function(f){var T;return T=new e(this,f),this.children.push(T),this},E.prototype.instruction=function(f,T){var S,m,_,A,I;if(f!=null&&(f=f.valueOf()),T!=null&&(T=T.valueOf()),Array.isArray(f))for(A=0,I=f.length;A<I;A++)S=f[A],this.instruction(S);else if(d(f))for(S in f)x.call(f,S)&&(m=f[S],this.instruction(S,m));else l(T)&&(T=T.apply()),_=new u(this,f,T),this.children.push(_);return this},E.prototype.instructionBefore=function(f,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S),this.parent.instruction(f,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.instructionAfter=function(f,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S+1),this.parent.instruction(f,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.declaration=function(f,T,S){var m,_;return m=this.document(),_=new i(m,f,T,S),m.children[0]instanceof i?m.children[0]=_:m.children.unshift(_),m.root()||m},E.prototype.doctype=function(f,T){var S,m,_,A,I,w,R,C,M,j;for(m=this.document(),_=new s(m,f,T),M=m.children,A=I=0,R=M.length;I<R;A=++I)if((S=M[A])instanceof s)return m.children[A]=_,_;for(j=m.children,A=w=0,C=j.length;w<C;A=++w)if(S=j[A],S.isRoot)return m.children.splice(A,0,_),_;return m.children.push(_),_},E.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},E.prototype.root=function(){var f;for(f=this;f;){if(f.isDocument)return f.rootObject;if(f.isRoot)return f;f=f.parent}},E.prototype.document=function(){var f;for(f=this;f;){if(f.isDocument)return f;f=f.parent}},E.prototype.end=function(f){return this.document().end(f)},E.prototype.prev=function(){var f;if((f=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[f-1]},E.prototype.next=function(){var f;if((f=this.parent.children.indexOf(this))===-1||f===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[f+1]},E.prototype.importDocument=function(f){var T;return T=f.root().clone(),T.parent=this,T.isRoot=!1,this.children.push(T),this},E.prototype.ele=function(f,T,S){return this.element(f,T,S)},E.prototype.nod=function(f,T,S){return this.node(f,T,S)},E.prototype.txt=function(f){return this.text(f)},E.prototype.dat=function(f){return this.cdata(f)},E.prototype.com=function(f){return this.comment(f)},E.prototype.ins=function(f,T){return this.instruction(f,T)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(f,T,S){return this.declaration(f,T,S)},E.prototype.dtd=function(f,T){return this.doctype(f,T)},E.prototype.e=function(f,T,S){return this.element(f,T,S)},E.prototype.n=function(f,T,S){return this.node(f,T,S)},E.prototype.t=function(f){return this.text(f)},E.prototype.d=function(f){return this.cdata(f)},E.prototype.c=function(f){return this.comment(f)},E.prototype.r=function(f){return this.raw(f)},E.prototype.i=function(f,T){return this.instruction(f,T)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(f){return this.importDocument(f)},E}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,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,l){if(e.__super__.constructor.call(this,o),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),l&&(this.value=this.stringify.insValue(l))}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,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 raw text");this.value=this.stringify.raw(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).raw(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[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,_),this.stream=m}return E(S,T),S.prototype.document=function(m){var _,A,I,w,R,C,M,j;for(C=m.children,A=0,w=C.length;A<w;A++)_=C[A],_.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,M=m.children,j=[],I=0,R=M.length;I<R;I++)switch(_=M[I],!1){case!(_ instanceof e):j.push(this.declaration(_));break;case!(_ instanceof o):j.push(this.docType(_));break;case!(_ instanceof g):j.push(this.comment(_));break;case!(_ instanceof l):j.push(this.processingInstruction(_));break;default:j.push(this.element(_))}return j},S.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},S.prototype.cdata=function(m,_){return this.stream.write(this.space(_)+"<![CDATA["+m.text+"]]>"+this.endline(m))},S.prototype.comment=function(m,_){return this.stream.write(this.space(_)+"<!-- "+m.text+" -->"+this.endline(m))},S.prototype.declaration=function(m,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),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("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),R=m.children,I=0,w=R.length;I<w;I++)switch(A=R[I],!1){case!(A instanceof i):this.dtdAttList(A,_+1);break;case!(A instanceof s):this.dtdElement(A,_+1);break;case!(A instanceof p):this.dtdEntity(A,_+1);break;case!(A instanceof u):this.dtdNotation(A,_+1);break;case!(A instanceof h):this.cdata(A,_+1);break;case!(A instanceof g):this.comment(A,_+1);break;case!(A instanceof l):this.processingInstruction(A,_+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(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<R;w++)switch(I=j[w],!1){case!(I instanceof h):this.cdata(I,_+1);break;case!(I instanceof g):this.comment(I,_+1);break;case!(I instanceof r):this.element(I,_+1);break;case!(I instanceof d):this.raw(I,_+1);break;case!(I instanceof c):this.text(I,_+1);break;case!(I instanceof l):this.processingInstruction(I,_+1);break;default:throw new Error("Unknown XML node type: "+I.constructor.name)}this.stream.write(X+"</"+m.name+">")}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(_)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdElement=function(m,_){return this.stream.write(this.space(_)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdEntity=function(m,_){return this.stream.write(this.space(_)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdNotation=function(m,_){return this.stream.write(this.space(_)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+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<I;A++)_=R[A],w+=function(){switch(!1){case!(_ instanceof e):return this.declaration(_);case!(_ instanceof o):return this.docType(_);case!(_ instanceof g):return this.comment(_);case!(_ instanceof l):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&w.slice(-this.newline.length)===this.newline&&(w=w.slice(0,-this.newline.length)),w},S.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},S.prototype.cdata=function(m,_){return this.space(_)+"<![CDATA["+m.text+"]]>"+this.newline},S.prototype.comment=function(m,_){return this.space(_)+"<!-- "+m.text+" -->"+this.newline},S.prototype.declaration=function(m,_){var A;return A=this.space(_),A+='<?xml version="'+m.version+'"',m.encoding!=null&&(A+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(A+=' standalone="'+m.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline},S.prototype.docType=function(m,_){var A,I,w,R,C;if(_||(_=0),R=this.space(_),R+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?R+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(R+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(R+=" [",R+=this.newline,C=m.children,I=0,w=C.length;I<w;I++)A=C[I],R+=function(){switch(!1){case!(A instanceof i):return this.dtdAttList(A,_+1);case!(A instanceof s):return this.dtdElement(A,_+1);case!(A instanceof p):return this.dtdEntity(A,_+1);case!(A instanceof u):return this.dtdNotation(A,_+1);case!(A instanceof h):return this.cdata(A,_+1);case!(A instanceof g):return this.comment(A,_+1);case!(A instanceof l):return this.processingInstruction(A,_+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}.call(this);R+="]"}return R+=this.spacebeforeslash+">",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<C;w++)if(I=q[w],I.value!=null){this.textispresent++,ee=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(_)),X+=">"+this.newline,Q=m.children,R=0,M=Q.length;R<M;R++)I=Q[R],X+=function(){switch(!1){case!(I instanceof h):return this.cdata(I,_+1);case!(I instanceof g):return this.comment(I,_+1);case!(I instanceof r):return this.element(I,_+1);case!(I instanceof d):return this.raw(I,_+1);case!(I instanceof c):return this.text(I,_+1);case!(I instanceof l):return this.processingInstruction(I,_+1);default:throw new Error("Unknown XML node type: "+I.constructor.name)}}.call(this);ee&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),X+=U+"</"+m.name+">"+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(_)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(A+=" "+m.defaultValueType),m.defaultValue&&(A+=' "'+m.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdElement=function(m,_){return this.space(_)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},S.prototype.dtdEntity=function(m,_){var A;return A=this.space(_)+"<!ENTITY",m.pe&&(A+=" %"),A+=" "+m.name,m.value?A+=' "'+m.value+'"':(m.pubID&&m.sysID?A+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(A+=' SYSTEM "'+m.sysID+'"'),m.nData&&(A+=" NDATA "+m.nData)),A+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdNotation=function(m,_){var A;return A=this.space(_)+"<!NOTATION "+m.name,m.pubID&&m.sysID?A+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?A+=' PUBLIC "'+m.pubID+'"':m.sysID&&(A+=' SYSTEM "'+m.sysID+'"'),A+=this.spacebeforeslash+">"+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(_)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?w+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(w+=' SYSTEM "'+m.sysID+'"'),w+=(m.children?" [":">")+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("]]>","]]]]><![CDATA[>"),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(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(s){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(void 0)},{}],233:[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 element text");this.value=this.stringify.eleText(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).text(this)},e}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,O,b){"use strict";(function(){var h={}.hasOwnProperty;O.exports=function(){function g(i){var s,p,u,e,o,r,l,d,c;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(p=i.allowEmpty)!=null&&p,this.pretty?(this.indent=(u=i.indent)!=null?u:" ",this.newline=(e=i.newline)!=null?e:`
|
|
|
`,this.offset=(o=i.offset)!=null?o:0,this.dontprettytextnodes=(r=i.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(l=i.spacebeforeslash)!=null?l:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=i.writer||{};for(s in d)h.call(d,s)&&(c=d[s],this[s]=c)}return g.prototype.set=function(i){var s,p,u;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
|
|
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=i.writer||{};for(s in p)h.call(p,s)&&(u=p[s],this[s]=u);return this},g.prototype.space=function(i){var s;return this.pretty?(s=(i||0)+this.offset+1,s>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;s<arguments.length;s++){var p=arguments[s];for(var u in p)g.call(p,u)&&(i[u]=p[u])}return i}O.exports=h;var g=Object.prototype.hasOwnProperty},{}],237:[function(n,O,b){"use strict";function h(d,c,x){s.isBuffer(c)||(c=new s(c)),s.isBuffer(x)||(x=new s(x)),c.length>r?c=d(c):c.length<r&&(c=s.concat([c,l],r));for(var E=new s(r),f=new s(r),T=0;T<r;T++)E[T]=54^c[T],f[T]=92^c[T];var S=d(s.concat([E,x]));return d(s.concat([f,S]))}function g(d,c){d=d||"sha1";var x=o[d],E=[],f=0;return x||i("algorithm:",d,"is not yet supported"),{update:function(S){return s.isBuffer(S)||(S=new s(S)),E.push(S),f+=S.length,this},digest:function(S){var m=s.concat(E),_=c?h(x,c,m):x(m);return E=null,S?_.toString(S):_}}}function i(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var s=n("buffer").Buffer,p=n("./sha"),u=n("./sha256"),e=n("./md5"),o={sha1:p,sha256:u,md5:e},r=64,l=new s(r);l.fill(0),b.createHash=function(d){return g(d)},b.createHmac=function(d,c){return g(d,c)},function(d,c){for(var x in d)c(d[x],x)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(d){b[d]=function(){i("sorry,",d,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,O,b){"use strict";function h(o,r){if(o.length%p!=0){var l=o.length+(p-o.length%p);o=s.concat([o,u],l)}for(var d=[],c=r?o.readInt32BE:o.readInt32LE,x=0;x<o.length;x+=p)d.push(c.call(o,x));return d}function g(o,r,l){for(var d=new s(r),c=l?d.writeInt32BE:d.writeInt32LE,x=0;x<o.length;x++)c.call(d,o[x],4*x,!0);return d}function i(o,r,l,d){return s.isBuffer(o)||(o=new s(o)),g(r(h(o,d),o.length*e),l,d)}var s=n("buffer").Buffer,p=4,u=new s(p);u.fill(0);var e=8;O.exports={hash:i}},{buffer:38}],239:[function(n,O,b){"use strict";function h(l,d){l[d>>5]|=128<<d%32,l[14+(d+64>>>9<<4)]=d;for(var c=1732584193,x=-271733879,E=-1732584194,f=271733878,T=0;T<l.length;T+=16){var S=c,m=x,_=E,A=f;c=i(c,x,E,f,l[T+0],7,-680876936),f=i(f,c,x,E,l[T+1],12,-389564586),E=i(E,f,c,x,l[T+2],17,606105819),x=i(x,E,f,c,l[T+3],22,-1044525330),c=i(c,x,E,f,l[T+4],7,-176418897),f=i(f,c,x,E,l[T+5],12,1200080426),E=i(E,f,c,x,l[T+6],17,-1473231341),x=i(x,E,f,c,l[T+7],22,-45705983),c=i(c,x,E,f,l[T+8],7,1770035416),f=i(f,c,x,E,l[T+9],12,-1958414417),E=i(E,f,c,x,l[T+10],17,-42063),x=i(x,E,f,c,l[T+11],22,-1990404162),c=i(c,x,E,f,l[T+12],7,1804603682),f=i(f,c,x,E,l[T+13],12,-40341101),E=i(E,f,c,x,l[T+14],17,-1502002290),x=i(x,E,f,c,l[T+15],22,1236535329),c=s(c,x,E,f,l[T+1],5,-165796510),f=s(f,c,x,E,l[T+6],9,-1069501632),E=s(E,f,c,x,l[T+11],14,643717713),x=s(x,E,f,c,l[T+0],20,-373897302),c=s(c,x,E,f,l[T+5],5,-701558691),f=s(f,c,x,E,l[T+10],9,38016083),E=s(E,f,c,x,l[T+15],14,-660478335),x=s(x,E,f,c,l[T+4],20,-405537848),c=s(c,x,E,f,l[T+9],5,568446438),f=s(f,c,x,E,l[T+14],9,-1019803690),E=s(E,f,c,x,l[T+3],14,-187363961),x=s(x,E,f,c,l[T+8],20,1163531501),c=s(c,x,E,f,l[T+13],5,-1444681467),f=s(f,c,x,E,l[T+2],9,-51403784),E=s(E,f,c,x,l[T+7],14,1735328473),x=s(x,E,f,c,l[T+12],20,-1926607734),c=p(c,x,E,f,l[T+5],4,-378558),f=p(f,c,x,E,l[T+8],11,-2022574463),E=p(E,f,c,x,l[T+11],16,1839030562),x=p(x,E,f,c,l[T+14],23,-35309556),c=p(c,x,E,f,l[T+1],4,-1530992060),f=p(f,c,x,E,l[T+4],11,1272893353),E=p(E,f,c,x,l[T+7],16,-155497632),x=p(x,E,f,c,l[T+10],23,-1094730640),c=p(c,x,E,f,l[T+13],4,681279174),f=p(f,c,x,E,l[T+0],11,-358537222),E=p(E,f,c,x,l[T+3],16,-722521979),x=p(x,E,f,c,l[T+6],23,76029189),c=p(c,x,E,f,l[T+9],4,-640364487),f=p(f,c,x,E,l[T+12],11,-421815835),E=p(E,f,c,x,l[T+15],16,530742520),x=p(x,E,f,c,l[T+2],23,-995338651),c=u(c,x,E,f,l[T+0],6,-198630844),f=u(f,c,x,E,l[T+7],10,1126891415),E=u(E,f,c,x,l[T+14],15,-1416354905),x=u(x,E,f,c,l[T+5],21,-57434055),c=u(c,x,E,f,l[T+12],6,1700485571),f=u(f,c,x,E,l[T+3],10,-1894986606),E=u(E,f,c,x,l[T+10],15,-1051523),x=u(x,E,f,c,l[T+1],21,-2054922799),c=u(c,x,E,f,l[T+8],6,1873313359),f=u(f,c,x,E,l[T+15],10,-30611744),E=u(E,f,c,x,l[T+6],15,-1560198380),x=u(x,E,f,c,l[T+13],21,1309151649),c=u(c,x,E,f,l[T+4],6,-145523070),f=u(f,c,x,E,l[T+11],10,-1120210379),E=u(E,f,c,x,l[T+2],15,718787259),x=u(x,E,f,c,l[T+9],21,-343485551),c=e(c,S),x=e(x,m),E=e(E,_),f=e(f,A)}return Array(c,x,E,f)}function g(l,d,c,x,E,f){return e(o(e(e(d,l),e(x,f)),E),c)}function i(l,d,c,x,E,f,T){return g(d&c|~d&x,l,d,E,f,T)}function s(l,d,c,x,E,f,T){return g(d&x|c&~x,l,d,E,f,T)}function p(l,d,c,x,E,f,T){return g(d^c^x,l,d,E,f,T)}function u(l,d,c,x,E,f,T){return g(c^(d|~x),l,d,E,f,T)}function e(l,d){var c=(65535&l)+(65535&d);return(l>>16)+(d>>16)+(c>>16)<<16|65535&c}function o(l,d){return l<<d|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<e.length;f+=16){for(var T=l,S=d,m=c,_=x,A=E,I=0;I<80;I++){r[I]=I<16?e[f+I]:p(r[I-3]^r[I-8]^r[I-14]^r[I-16],1);var w=s(s(p(l,5),g(I,d,c,x)),s(s(E,r[I]),i(I)));E=x,x=c,c=p(d,30),d=l,l=w}l=s(l,T),d=s(d,S),c=s(c,m),x=s(x,_),E=s(E,A)}return Array(l,d,c,x,E)}function g(e,o,r,l){return e<20?o&r|~o&l:e<40?o^r^l:e<60?o&r|o&l|r&l:o^r^l}function i(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function s(e,o){var r=(65535&e)+(65535&o);return(e>>16)+(o>>16)+(r>>16)<<16|65535&r}function p(e,o){return e<<o|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<x.length;R+=16){f=H[0],T=H[1],S=H[2],m=H[3],_=H[4],A=H[5],I=H[6],w=H[7];for(var C=0;C<64;C++)q[C]=C<16?x[C+R]:g(g(g(l(q[C-2]),q[C-7]),r(q[C-15])),q[C-16]),M=g(g(g(g(w,o(_)),p(_,A,I)),X[C]),q[C]),j=g(e(f),u(f,T,S)),w=I,I=A,A=_,_=g(m,M),m=S,S=T,T=f,f=g(M,j);H[0]=g(f,H[0]),H[1]=g(T,H[1]),H[2]=g(S,H[2]),H[3]=g(m,H[3]),H[4]=g(_,H[4]),H[5]=g(A,H[5]),H[6]=g(I,H[6]),H[7]=g(w,H[7])}return H};O.exports=function(c){return h.hash(c,d,32,!0)}},{"./helpers":238}],242:[function(n,O,b){(function(h){"use strict";function g(d){return d&&d.__esModule?d:{default:d}}var i=n("babel-runtime/core-js/object/create"),s=g(i),p=n("babel-runtime/helpers/classCallCheck"),u=g(p),e=n("babel-runtime/helpers/createClass"),o=g(e),r=n("babel-runtime/helpers/typeof"),l=g(r);!function(d){if((b===void 0?"undefined":(0,l.default)(b))==="object"&&O!==void 0)O.exports=d();else if(typeof de=="function"&&de.amd)de([],d);else{var c;c=typeof window!="undefined"?window:h!==void 0?h:typeof self!="undefined"?self:this,c.mime=d()}}(function(){return function d(c,x,E){function f(m,_){if(!x[m]){if(!c[m]){var A=typeof n=="function"&&n;if(!_&&A)return A(m,!0);if(T)return T(m,!0);var I=new Error("Cannot find module '"+m+"'");throw I.code="MODULE_NOT_FOUND",I}var w=x[m]={exports:{}};c[m][0].call(w.exports,function(R){var C=c[m][1][R];return f(C||R)},w,w.exports,d,c,x,E)}return x[m].exports}for(var T=typeof n=="function"&&n,S=0;S<E.length;S++)f(E[S]);return f}({1:[function(d,c,x){var E=function(){function f(){(0,u.default)(this,f),this._types=(0,s.default)(null),this._extensions=(0,s.default)(null);for(var T=0;T<arguments.length;T++)this.define(arguments[T])}return(0,o.default)(f,[{key:"define",value:function(S,m){for(var _ in S){for(var A=S[_],I=0;I<A.length;I++){var w=A[I];if(!m&&w in this._types)throw new Error('Attempt to change mapping for "'+w+'" extension from "'+this._types[w]+'" to "'+_+'". Pass `force=true` to allow this, otherwise remove "'+w+'" from the list of extensions for "'+_+'".');this._types[w]=_}!m&&this._extensions[_]||(this._extensions[_]=A[0])}}},{key:"getType",value:function(S){S=String(S);var m=S.replace(/^.*[\/\\]/,"").toLowerCase(),_=m.replace(/^.*\./,"").toLowerCase(),A=m.length<S.length;return(_.length<m.length-1||!A)&&this._types[_]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),f}();c.exports=E},{}],2:[function(d,c,x){var E=d("./Mime");c.exports=new E(d("./types/standard"),d("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(d,c,x){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(d,c,x){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(n,O,b){"use strict";b.encodeURIComponent=function(h){try{return encodeURIComponent(h)}catch(g){return h}},b.escape=n("escape-html"),b.timestamp=function(h){if(h){var g=h;return typeof g=="string"&&(g=Number(g)),String(h).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,O,b){(function(h,g){"use strict";function i(I){return I&&I.__esModule?I:{default:I}}function s(I,w){return I===void 0?w:I}function p(I,w){return function(R,C,M){if(R)return w(R);I({data:C,status:M.statusCode,headers:M.headers,res:M})}}var u,e=n("babel-runtime/core-js/json/stringify"),o=i(e),r=n("babel-runtime/helpers/typeof"),l=i(r),d=n("util"),c=n("url"),x=n("http"),E=n("https"),f=n("debug")("urllib"),T=n("humanize-ms"),S=0,m=Math.pow(2,31)-10,_=/^https?:\/\//i;b.TIMEOUTS=[T("300s"),T("300s")];var A=["json","text"];b.request=function(I,w,R){return arguments.length===2&&typeof w=="function"&&(R=w,w=null),typeof R=="function"?b.requestWithCallback(I,w,R):(u||(u=n("any-promise")),new u(function(C,M){b.requestWithCallback(I,w,p(C,M))}))},b.requestWithCallback=function(I,w,R){function C(){le&&(clearTimeout(le),le=null)}function M(){k&&(clearTimeout(k),k=null)}function j(ae,_e,Ee){if(M(),!R)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),$,h.pid,te.method,I),void(ae&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),$,h.pid,ae.name,ae.message,ae.stack));var be=R;R=null;var ve={};if(Ee&&(y=Ee.statusCode,ve=Ee.headers),y===401&&ve["www-authenticate"]&&(!w.headers||!w.headers.Authorization)&&w.digestAuth){var xe=ve["www-authenticate"];if(xe.indexOf("Digest ")>=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<ue.length;fe++){var Z=ue[fe];w.hasOwnProperty(Z)&&(te[Z]=w[Z])}te.rejectUnauthorized!==!1||te.hasOwnProperty("secureOptions")||(te.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var J=w.auth||L.auth;J&&(te.auth=J);var ie=w.content||w.data,G=N==="GET"||N==="HEAD"||w.dataAsQueryString;if(!w.content&&ie&&typeof ie!="string"&&!g.isBuffer(ie))if(G)ie=w.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var z=te.headers["Content-Type"]||te.headers["content-type"];z||(z=w.contentType==="json"?"application/json":"application/x-www-form-urlencoded",te.headers["Content-Type"]=z),ie=parseContentType(z).type==="application/json"?(0,o.default)(ie):w.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}G&&ie&&(te.path+=(L.query?"&":"?")+ie,ie=null);var re=0;if(ie){var ne=ie.length;g.isBuffer(ie)||(ne=g.byteLength(ie)),re=te.headers["Content-Length"]=ne}w.dataType==="json"&&(te.headers.Accept="application/json"),typeof w.beforeRequest=="function"&&w.beforeRequest(te);var le=null,k=null,t=null,a=!1,P=!1,v=0,y=-1,B=!1,K="",pe="",ce=null;w.timing&&(ce={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),te.headers["User-Agent"]||te.headers["user-agent"]||(te.headers["User-Agent"]=navigator.userAgent),w.gzip&&(te.headers["Accept-Encoding"]||te.headers["accept-encoding"]||(te.headers["Accept-Encoding"]="gzip"));var he=w.writeStream;f("Request#%d %s %s with headers %j, options.path: %s",$,N,I,te.headers,te.path),w.requestUrls.push(I);var me,ye;Array.isArray(w.timeout)?(me=T(w.timeout[0]),ye=T(w.timeout[1])):me=ye=T(w.timeout),f("ConnectTimeout: %d, ResponseTimeout: %d",me,ye);var ge;try{ge=V.request(te,q)}catch(ae){return j(ae)}return typeof window=="undefined"?function(){f("Connect timer ticking, timeout: %d",me),le=setTimeout(function(){le=null,y===-1&&(y=-2);var ae="Connect timeout for "+me+"ms",_e="ConnectionTimeoutError";ge.socket||(_e="SocketAssignTimeoutError",ae+=", working sockets is full"),t=new Error(ae),t.name=_e,t.requestId=$,f("ConnectTimeout: Request#%d %s %s: %s, connected: %s",$,I,t.name,ae,a),U()},me)}():ge.on("requestTimeout",function(){y===-1&&(y=-2);var ae="Connect timeout for "+me+"ms";t=new Error(ae),t.name="ConnectionTimeoutError",t.requestId=$,U()}),ce&&ge.on("finish",function(){ce.requestSent=Date.now()-D}),ge.once("socket",function(ae){ce&&(ce.queuing=Date.now()-D),isNode010&&ae.socket&&(ae=ae.socket);var _e=ae.readyState;if(_e==="opening")return ae.once("lookup",function(Ee,be,ve){f("Request#%d %s lookup: %s, %s, %s",$,I,Ee,be,ve),ce&&(ce.dnslookup=Date.now()-D),be&&(K=be)}),void ae.once("connect",function(){ce&&(ce.connected=Date.now()-D),C(),Q(),f("Request#%d %s new socket connected",$,I),a=!0,K||(K=ae.remoteAddress),pe=ae.remotePort});f("Request#%d %s reuse socket connected, readyState: %s",$,I,_e),a=!0,P=!0,K||(K=ae.remoteAddress),pe=ae.remotePort,C(),Q()}),ge.on("error",function(ae){ae.name!=="Error"&&ae.name!=="TypeError"||(ae.name=a?"ResponseError":"RequestError"),ae.message+=' (req "error")',f("Request#%d %s `req error` event emit, %s: %s",$,I,ae.name,ae.message),j(t||ae)}),he&&he.once("error",function(ae){ae.message+=' (writeStream "error")',t=ae,f("Request#%d %s `writeStream error` event emit, %s: %s",$,I,ae.name,ae.message),U()}),w.stream?(w.stream.pipe(ge),w.stream.once("error",function(ae){ae.message+=' (stream "error")',t=ae,f("Request#%d %s `readStream error` event emit, %s: %s",$,I,ae.name,ae.message),U()})):ge.end(ie),ge.requestId=$,ge}}).call(this,n("_process"),n("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),!function(de){function n(b){if(O[b])return O[b].exports;var h=O[b]={i:b,l:!1,exports:{}};return de[b].call(h.exports,h,h.exports,n),h.l=!0,h.exports}var O={};n.m=de,n.c=O,n.d=function(b,h,g){n.o(b,h)||Object.defineProperty(b,h,{configurable:!1,enumerable:!0,get:g})},n.n=function(b){var h=b&&b.__esModule?function(){return b.default}:function(){return b};return n.d(h,"a",h),h},n.o=function(b,h){return Object.prototype.hasOwnProperty.call(b,h)},n.p="",n(n.s=12)}([function(de,n,O){!function(b,h){de.exports=n=h()}(0,function(){var b=b||function(h,g){var i=Object.create||function(){function E(){}return function(f){var T;return E.prototype=f,T=new E,E.prototype=null,T}}(),s={},p=s.lib={},u=p.Base=function(){return{extend:function(f){var T=i(this);return f&&T.mixIn(f),T.hasOwnProperty("init")&&this.init!==T.init||(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var f=this.extend();return f.init.apply(f,arguments),f},init:function(){},mixIn:function(f){for(var T in f)f.hasOwnProperty(T)&&(this[T]=f[T]);f.hasOwnProperty("toString")&&(this.toString=f.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=p.WordArray=u.extend({init:function(f,T){f=this.words=f||[],this.sigBytes=T!=null?T:4*f.length},toString:function(f){return(f||r).stringify(this)},concat:function(f){var T=this.words,S=f.words,m=this.sigBytes,_=f.sigBytes;if(this.clamp(),m%4)for(var A=0;A<_;A++){var I=S[A>>>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<f;m+=4){var _=function(A){var A=A,I=987654321,w=4294967295;return function(){I=36969*(65535&I)+(I>>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;_<S;_++){var A=T[_>>>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<T;m+=2)S[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;_<S;_++){var A=T[_>>>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<T;m++)S[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<w;C+=_)this._doProcessBlock(S,C);var M=S.splice(0,w);T.sigBytes-=R}return new e.init(M,R)},clone:function(){var f=u.clone.call(this);return f._data=this._data.clone(),f},_minBufferSize:0}),x=(p.Hasher=c.extend({cfg:u.extend(),init:function(f){this.cfg=this.cfg.extend(f),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(f){return this._append(f),this._process(),this},finalize:function(f){return f&&this._append(f),this._doFinalize()},blockSize:16,_createHelper:function(f){return function(T,S){return new f.init(S).finalize(T)}},_createHmacHelper:function(f){return function(T,S){return new x.HMAC.init(f,S).finalize(T)}}}),s.algo={});return s}(Math);return b})},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<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"detectIEVersion",value:function(){for(var p=4,u=document.createElement("div"),e=u.getElementsByTagName("i");u.innerHTML="<!--[if gt IE "+p+"]><i></i><![endif]-->",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<<m|A>>>32-m)+E}function i(x,E,f,T,S,m,_){var A=x+(E&T|f&~T)+S+_;return(A<<m|A>>>32-m)+E}function s(x,E,f,T,S,m,_){var A=x+(E^f^T)+S+_;return(A<<m|A>>>32-m)+E}function p(x,E,f,T,S,m,_){var A=x+(f^(E|~T))+S+_;return(A<<m|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<E.length;f++){var T=E[f];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,E,f){return E&&c(x.prototype,E),f&&c(x,f),x}}(),i=O(5),s=b(i),p=O(25),u=b(p),e=O(6),o=b(e),r=O(7),l=b(r),d=function(){function c(x){h(this,c);var E=l.default.os.name,f=l.default.os.version||"",T=l.default.browser.name,S=l.default.browser.version||"",m=window.location.href,_="";m&&(_=l.default.getHost(m));var A="pc";l.default.os.ipad?A="pad":(l.default.os.iphone||l.default.os.android)&&(A="phone"),this._ri=s.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:o.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:E,ov:f,et:T,ev:S,uat:navigator.userAgent,app_n:_,tt:A,dm:"h5",ut:""}}return g(c,[{key:"log",value:function(E,f){f&&f.ri?(this._ri=f.ri,delete f.ri):this._ri=s.default.create(),f&&f.ut&&(this.initParam.ut=f.ut,delete f.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=E=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=E;var T=[];if(f)for(var S in f)T.push(S+"="+f[S]);var m=T.join("&");this.initParam.args=encodeURIComponent(m==""?"0":m);var _=[];for(var S in this.initParam)_.push(S+"="+this.initParam[S]);var A=_.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(A):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+A}}],[{key:"getUuid",value:function(){var E=u.default.get("p_h5_upload_u");return E||(E=s.default.create(),u.default.set("p_h5_upload_u",E,730)),E}},{key:"getClientId",value:function(){return u.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(E){return E||(E=s.default.create()),u.default.set("p_h5_upload_clientId",E,730),E}}]),c}();n.default=d},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<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"create",value:function(p,u){var e,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(u=u||o.length,p)for(e=0;e<p;e++)r[e]=o[0|Math.random()*u];else{var l;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(l=0|16*Math.random(),r[e]=o[e==19?3&l|8:l])}return r.join("")}}]),i}();n.default=g},function(de,n,O){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var b={version:"1.5.0"};n.default=b},function(de,n,O){"use strict";function b(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function e(o,r){for(var l=0;l<r.length;l++){var d=r[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),g=function(o){var r=navigator.userAgent,l="other";if(o.ios)return"iOS";if(o.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var 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;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"get",value:function(p,u,e,o,r){var l;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(d){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(d){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw new Error("This browser does not support XMLHttpRequest.")}),l=new XMLHttpRequest,l.onreadystatechange=function(){l.readyState===4&&(l.status===200?u(l.responseText):e(l.responseText))};try{o===void 0&&(o=!0),l.open("GET",p,o),r&&(l.withCredentials=!0)}catch(d){return void e(d)}try{l.send()}catch(d){e(d)}}}]),i}();n.default=g},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;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,o){return e&&p(u.prototype,e),o&&p(u,o),u}}(),g=O(27),i=O(30),s=(O(10),function(){function p(){b(this,p)}return h(p,null,[{key:"randomUUID",value:function(){for(var e=[],o="0123456789abcdef",r=0;r<36;r++)e[r]=o.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=o.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var o=encodeURIComponent(e);return o=o.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,o,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var l=[];for(var d in e)l.push(d);for(var c=l.sort(),x="",E=c.length,d=0;d<E;d++){var f=p.aliyunEncodeURI(c[d]),T=p.aliyunEncodeURI(e[c[d]]);x==""?x=f+o+T:x+=r+f+o+T}return x}},{key:"makeChangeSiga",value:function(e,o){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return i.stringify(g("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(e,"=","&")),o+"&"))}}]),p}());n.default=s},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return b.enc.Utf8})},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return b.enc.Hex})},function(de,n,O){de.exports=O(13)},function(de,n,O){"use strict";var b,h,g=(typeof Symbol=="function"&&Symbol.iterator,O(14)),i=function(p){return p&&p.__esModule?p:{default:p}}(g),s={Vod:i.default};b=[],(h=function(){return s}.apply(n,b))!==void 0&&(de.exports=h),window.AliyunUpload=s,Me.exports=AliyunUpload},function(de,n,O){"use strict";function b(C){return C&&C.__esModule?C:{default:C}}function h(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function C(M,j){for(var X=0;X<j.length;X++){var H=j[X];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(M,H.key,H)}}return function(M,j,X){return j&&C(M.prototype,j),X&&C(M,X),M}}(),i=O(15),s=O(3),p=O(16),u=b(p),e=O(18),o=b(e),r=O(24),l=b(r),d=O(4),c=b(d),x=O(1),E=b(x),f=O(5),T=b(f),S=O(26),m=b(S),_=O(31),A=b(_),I=O(32),w=b(I),R=(O(2),function(){function C(M){h(this,C),this.options=M,this.options.partSize=this.options.partSize||s.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||s.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=i.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=i.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return g(C,[{key:"init",value:function(j,X,H,q){return this._retryCount=0,!(H&&!q||!H&&q)&&!(j&&!X||!j&&X)&&(this._ossCreditor.accessKeyId=j,this._ossCreditor.accessKeySecret=X,this._ossCreditor.securityToken=H,this._ossCreditor.expireTime=q,!0)}},{key:"addFile",value:function(j,X,H,q,Q,U){if(!j)return!1;if(j.size==0)try{this.options.onUploadFailed({file:j},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(L){console.log(L)}for(var ee=(this.options,0);ee<this._uploadList.length;ee++)if(this._uploadList[ee].file==j)return!1;var $=new Object;if($.file=j,$._endpoint=X,$._bucket=H,$._object=q,$.state=i.UPLOADSTATE.INIT,$.isImage=E.default.isImage(j.name),!$.isImage&&this.options.enableUploadProgress){var W=this;w.default.getMd5(j,function(L){$.fileHash=L;var D=W._getCheckoutpoint($);W.options.localCheckpoint||D||W._getCheckoutpointFromCloud($,function(N){if(N.UploadPoint){var F=JSON.parse(N.UploadPoint);F.loaded!=1&&($.checkpoint=F.checkpoint,$.loaded=F.loaded,$.videoId=N.VideoId,W._saveCheckoutpoint($,F.checkpoint))}},function(N){try{if((N=JSON.parse(N))&&N.Code=="InvalidParameter"&&N.Message.indexOf("UserId")>0){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;q<this._uploadList.length;q++)X.uploadList[q].state==i.UPLOADSTATE.SUCCESS&&H++,this._uploadList[q].state==j&&(X.uploadList.splice(q,1),q--);X.onClear&&X.onClear(X.uploadList.length,H)}},{key:"stopUpload",value:function(){if((this._state==i.VODSTATE.START||this._state==i.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var j=this._uploadList[this._curIndex];this._state=i.VODSTATE.STOP,j.state=i.UPLOADSTATE.STOPED,this._changeState(j,i.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(j){var X=this;if(!j)return!1;var H=JSON.parse(o.default.decode(j));return!!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration)&&X.resumeUploadWithToken(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration)}},{key:"resumeUploadWithToken",value:function(j,X,H,q){if(this.options,!(j&&X&&H&&q))return!1;if(this._state!=i.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var Q="";return this._uploadList.length>this._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;X<this._uploadList.length;X++)if(this._uploadList[X].state==i.UPLOADSTATE.INIT){j=X;break}return j}},{key:"_error",value:function(j,X){if(X.name=="cancel")try{this.options.onUploadCanceled(j,X)}catch(q){console.log(q)}else{if(X.message.indexOf("InvalidAccessKeyIdError")>0||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;j<this._uploadList.length;j++){var X=this._uploadList[j];X.state!=i.UPLOADSTATE.FAIlURE&&X.state!=i.UPLOADSTATE.STOPED||(X.state=i.UPLOADSTATE.INIT)}this._state=i.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(j){return j.file.size/this.options.partSize>1e4?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<r.length;l++){var d=r[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,r,l){return r&&e(o.prototype,r),l&&e(o,l),o}}(),i=O(3),s=O(17),p=(b(s),O(1)),u=(b(p),function(){function e(o,r){if(h(this,e),o){this._config=o,this.create(this._config),this._uploadInfo=null,this._callback={};var l=function(){};this._callback.onerror=r.onerror||l,this._callback.oncomplete=r.oncomplete||l,this._callback.onprogress=r.onprogress||l}}return g(e,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var l={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(l.timeout=r.timeout),this.oss=new OSS.Wrapper(l)}},{key:"abort",value:function(r){if(r.checkpoint){var l=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,l)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,l){this._uploadInfo=r;var d=this,c=function(f,T,S){return function(m){d._progress(f,T,S),m()}},x={parallel:l.parallel||this._config.parallel||i.UPLOADDEFAULT.PARALLEL,partSize:l.partSize||this._config.partSize||i.UPLOADDEFAULT.PARTSIZE,progress:c};l.headers&&(x.headers=l.headers),r.checkpoint&&(x.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,x).then(function(E,f){d._complete(E)}).catch(function(E){d.oss.cancel&&(d.oss&&d.oss.isCancel()?console.log("oss is cancel as error"):d.oss.cancel()),d._error(E)})}},{key:"header",value:function(r,l,d){this.oss.get(r.object).then(function(c){l(c)}).catch(function(c){d(c)})}},{key:"_progress",value:function(r,l,d){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:l},d)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());n.default=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;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"format",value:function(p){if(arguments.length<2)return null;for(var u=arguments[1],e=1;e<arguments.length;e++){var o=new RegExp("\\{"+(e-1)+"\\}","gm");u=u.replace(o,arguments[e+1])}return{code:p,message:u}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),i}();n.default=g},function(de,n,O){"use strict";(function(b){function h(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function s(p,u){for(var e=0;e<u.length;e++){var o=u[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(p,o.key,o)}}return function(p,u,e){return u&&s(p.prototype,u),e&&s(p,e),p}}(),i=function(){function s(){h(this,s)}return g(s,null,[{key:"encode",value:function(u){return new b(u).toString("base64")}},{key:"decode",value:function(u){return new b(u,"base64").toString()}}]),s}();n.default=i}).call(n,O(19).Buffer)},function(de,n,O){"use strict";(function(b){function h(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(k,t){if(h()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(t),k.__proto__=i.prototype):(k===null&&(k=new i(t)),k.length=t),k}function i(k,t,a){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(k,t,a);if(typeof k=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,k)}return s(this,k,t,a)}function s(k,t,a,P){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?l(k,t,a,P):typeof t=="string"?o(k,t,a):d(k,t)}function p(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function u(k,t,a,P){return p(t),t<=0?g(k,t):a!==void 0?typeof P=="string"?g(k,t).fill(a,P):g(k,t).fill(a):g(k,t)}function e(k,t){if(p(t),k=g(k,t<0?0:0|c(t)),!i.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)k[a]=0;return k}function o(k,t,a){if(typeof a=="string"&&a!==""||(a="utf8"),!i.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var P=0|E(t,a);k=g(k,P);var v=k.write(t,a);return v!==P&&(k=k.slice(0,v)),k}function r(k,t){var a=t.length<0?0:0|c(t.length);k=g(k,a);for(var P=0;P<a;P+=1)k[P]=255&t[P];return k}function l(k,t,a,P){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(P||0))throw new RangeError("'length' is out of bounds");return t=a===void 0&&P===void 0?new Uint8Array(t):P===void 0?new Uint8Array(t,a):new Uint8Array(t,a,P),i.TYPED_ARRAY_SUPPORT?(k=t,k.__proto__=i.prototype):k=r(k,t),k}function d(k,t){if(i.isBuffer(t)){var a=0|c(t.length);return k=g(k,a),k.length===0||t.copy(k,0,0,a),k}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ie(t.length)?g(k,0):r(k,t);if(t.type==="Buffer"&&re(t.data))return r(k,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(k){if(k>=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;ce<K;ce++)if(y(k,ce)===y(t,he===-1?0:ce-he)){if(he===-1&&(he=ce),ce-he+1===pe)return he*B}else he!==-1&&(ce-=ce-he),he=-1}else for(a+pe>K&&(a=K-pe),ce=a;ce>=0;ce--){for(var me=!0,ye=0;ye<pe;ye++)if(y(k,ce+ye)!==y(t,ye)){me=!1;break}if(me)return ce}return-1}function _(k,t,a,P){a=Number(a)||0;var v=k.length-a;P?(P=Number(P))>v&&(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;B<P;++B){var K=parseInt(t.substr(2*B,2),16);if(isNaN(K))return B;k[a+B]=K}return B}function A(k,t,a,P){return J(te(t,k.length-a),k,a,P)}function I(k,t,a,P){return J(ue(t),k,a,P)}function w(k,t,a,P){return I(k,t,a,P)}function R(k,t,a,P){return J(Z(t),k,a,P)}function C(k,t,a,P){return J(fe(t,k.length-a),k,a,P)}function M(k,t,a){return t===0&&a===k.length?G.fromByteArray(k):G.fromByteArray(k.slice(t,a))}function j(k,t,a){a=Math.min(k.length,a);for(var P=[],v=t;v<a;){var y=k[v],B=null,K=y>239?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;P<t;)a+=String.fromCharCode.apply(String,k.slice(P,P+=ne));return a}function H(k,t,a){var P="";a=Math.min(k.length,a);for(var v=t;v<a;++v)P+=String.fromCharCode(127&k[v]);return P}function q(k,t,a){var P="";a=Math.min(k.length,a);for(var v=t;v<a;++v)P+=String.fromCharCode(k[v]);return P}function Q(k,t,a){var P=k.length;(!t||t<0)&&(t=0),(!a||a<0||a>P)&&(a=P);for(var v="",y=t;y<a;++y)v+=oe(k[y]);return v}function U(k,t,a){for(var P=k.slice(t,a),v="",y=0;y<P.length;y+=2)v+=String.fromCharCode(P[y]+256*P[y+1]);return v}function ee(k,t,a){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+t>a)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||t<y)throw new RangeError('"value" argument is out of bounds');if(a+P>k.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<y;++v)k[a+v]=(t&255<<8*(P?v:1-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<y;++v)k[a+v]=t>>>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;B<P;++B){if((a=k.charCodeAt(B))>55295&&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<k.length;++a)t.push(255&k.charCodeAt(a));return t}function fe(k,t){for(var a,P,v,y=[],B=0;B<k.length&&!((t-=2)<0);++B)a=k.charCodeAt(B),P=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<P&&!(v+a>=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 <feross@feross.org> <http://feross.org>
|
|
|
* @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);v<y;++v)if(k[v]!==t[v]){a=k[v],P=t[v];break}return a<P?-1:P<a?1:0},i.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(k,t){if(!re(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return i.alloc(0);var a;if(t===void 0)for(t=0,a=0;a<k.length;++a)t+=k[a].length;var P=i.allocUnsafe(t),v=0;for(a=0;a<k.length;++a){var y=k[a];if(!i.isBuffer(y))throw new TypeError('"list" argument must be an Array of Buffers');y.copy(P,v),v+=y.length}return P},i.byteLength=E,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<k;t+=2)T(this,t,t+1);return this},i.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<k;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},i.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<k;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},i.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?j(this,0,k):f.apply(this,arguments)},i.prototype.equals=function(k){if(!i.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||i.compare(this,k)===0},i.prototype.inspect=function(){var k="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(k+=" ... ")),"<Buffer "+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;he<K;++he)if(pe[he]!==ce[he]){y=pe[he],B=ce[he];break}return y<B?-1:B<y?1:0},i.prototype.includes=function(k,t,a){return this.indexOf(k,t,a)!==-1},i.prototype.indexOf=function(k,t,a){return S(this,k,t,a,!0)},i.prototype.lastIndexOf=function(k,t,a){return S(this,k,t,a,!1)},i.prototype.write=function(k,t,a,P){if(t===void 0)P="utf8",a=this.length,t=0;else if(a===void 0&&typeof t=="string")P=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(a)?(a|=0,P===void 0&&(P="utf8")):(P=a,a=void 0)}var v=this.length-t;if((a===void 0||a>v)&&(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),t<k&&(t=k);var P;if(i.TYPED_ARRAY_SUPPORT)P=this.subarray(k,t),P.__proto__=i.prototype;else{var v=t-k;P=new i(v,void 0);for(var y=0;y<v;++y)P[y]=this[y+k]}return P},i.prototype.readUIntLE=function(k,t,a){k|=0,t|=0,a||ee(k,t,this.length);for(var P=this[k],v=1,y=0;++y<t&&(v*=256);)P+=this[k+y]*v;return P},i.prototype.readUIntBE=function(k,t,a){k|=0,t|=0,a||ee(k,t,this.length);for(var P=this[k+--t],v=1;t>0&&(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<t&&(v*=256);)P+=this[k+y]*v;return v*=128,P>=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<a&&(v*=256);)this[t+y]=k/v&255;return t+a},i.prototype.writeUIntBE=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=a-1,y=1;for(this[t+v]=255&k;--v>=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<a&&(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.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<a&&(P=a),P===a)return 0;if(k.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),k.length-t<P-a&&(P=k.length-t+a);var v,y=P-a;if(this===k&&a<t&&t<P)for(v=y-1;v>=0;--v)k[v+t]=this[v+a];else if(y<1e3||!i.TYPED_ARRAY_SUPPORT)for(v=0;v<y;++v)k[v+t]=this[v+a];else Uint8Array.prototype.set.call(k,this.subarray(a,a+y),t);return y},i.prototype.fill=function(k,t,a,P){if(typeof k=="string"){if(typeof t=="string"?(P=t,t=0,a=this.length):typeof a=="string"&&(P=a,a=this.length),k.length===1){var v=k.charCodeAt(0);v<256&&(k=v)}if(P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!i.isEncoding(P))throw new TypeError("Unknown encoding: "+P)}else typeof k=="number"&&(k&=255);if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;t>>>=0,a=a===void 0?this.length:a>>>0,k||(k=0);var y;if(typeof k=="number")for(y=t;y<a;++y)this[y]=k;else{var B=i.isBuffer(k)?k:te(new i(k,P).toString()),K=B.length;for(y=0;y<a-t;++y)this[y+t]=B[y%K]}return this};var le=/[^+\/0-9A-Za-z-_]/g}).call(n,O(20))},function(de,n){var O;O=function(){return this}();try{O=O||Function("return this")()||(0,eval)("this")}catch(b){typeof window=="object"&&(O=window)}de.exports=O},function(de,n,O){"use strict";function b(c){var x=c.length;if(x%4>0)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<E;x+=4)f=e[c.charCodeAt(x)]<<18|e[c.charCodeAt(x+1)]<<12|e[c.charCodeAt(x+2)]<<6|e[c.charCodeAt(x+3)],S[_++]=f>>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<E;S+=3)f=(c[S]<<16)+(c[S+1]<<8)+c[S+2],T.push(i(f));return T.join("")}function p(c){for(var x,E=c.length,f=E%3,T="",S=[],m=0,_=E-f;m<_;m+=16383)S.push(s(c,m,m+16383>_?_: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<d;++l)u[l]=r[l],e[r.charCodeAt(l)]=l;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(de,n){n.read=function(O,b,h,g,i){var s,p,u=8*i-g-1,e=(1<<u)-1,o=e>>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<<o)-1,l=r>>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<<i|u,o+=i;o>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<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"set",value:function(p,u){try{window.localStorage&&localStorage.setItem(p,u)}catch(e){window[p+"_localStorage"]=u}}},{key:"get",value:function(p){try{if(window.localStorage)return localStorage.getItem(p)}catch(u){return window[p+"_localStorage"]}return""}},{key:"remove",value:function(p){try{window.localStorage&&localStorage.removeItem(p)}catch(u){delete window[p+"_localStorage"]}}}]),i}();n.default=g},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<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,p,u){return p&&i(s.prototype,p),u&&i(s,u),s}}(),g=function(){function i(){b(this,i)}return h(i,null,[{key:"get",value:function(p){for(var u=p+"",e=document.cookie.split(";"),o=0;o<e.length;o++){var r=e[o].trim();if(r.indexOf(u)==0)return unescape(r.substring(u.length+1,r.length))}return""}},{key:"set",value:function(p,u,e){var o=new Date;o.setTime(o.getTime()+24*e*60*60*1e3);var r="expires="+o.toGMTString();document.cookie=p+"="+escape(u)+"; "+r}}]),i}();n.default=g},function(de,n,O){"use strict";function b(o){return o&&o.__esModule?o:{default:o}}function h(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function o(r,l){for(var d=0;d<l.length;d++){var c=l[d];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,l,d){return l&&o(r.prototype,l),d&&o(r,d),r}}(),i=O(8),s=b(i),p=O(9),u=b(p),e=function(){function o(){h(this,o)}return g(o,null,[{key:"refreshUploadAuth",value:function(l,d,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"RefreshUploadVideo",VideoId:l.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId},f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){var S=JSON.parse(S);d&&d(S)},function(S){if(c){var m=JSON.parse(S);c(m)}})}},{key:"getUploadAuth",value:function(l,d,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadVideo",Title:l.title,FileName:l.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId};l.fileSize&&(E.FileSize=l.fileSize),l.description&&(E.Description=l.description),l.cateId&&(E.CateId=l.cateId),l.tags&&(E.Tags=l.tags),l.templateGroupId&&(E.TemplateGroupId=l.templateGroupId),l.storageLocation&&(E.StorageLocation=l.storageLocation),l.coverUrl&&(E.CoverURL=l.coverUrl),l.transCodeMode&&(E.TransCodeMode=l.transCodeMode),l.userData&&(E.UserData=JSON.stringify(l.userData));var f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){try{S=JSON.parse(S)}catch(m){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}d&&d(S)},function(S){if(c){var m={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{m=JSON.parse(S)}catch(_){}c(m)}})}},{key:"getImageUploadAuth",value:function(l,d,c){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadImage",ImageType:l.imageType?l.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:l.requestId};l.title&&(E.Title=l.title),l.imageExt&&(E.ImageExt=l.imageExt),l.tags&&(E.Tags=l.tags),l.storageLocation&&(E.StorageLocation=l.storageLocation);var f=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+f;s.default.get(T,function(S){S=JSON.parse(S),d&&d(S)},function(S){if(c){var m=JSON.parse(S);c(m)}})}}]),o}();n.default=e},function(de,n,O){!function(b,h,g){de.exports=n=h(O(0),O(28),O(29))}(0,function(b){return b.HmacSHA1})},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return function(){var h=b,g=h.lib,i=g.WordArray,s=g.Hasher,p=h.algo,u=[],e=p.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,l){for(var d=this._hash.words,c=d[0],x=d[1],E=d[2],f=d[3],T=d[4],S=0;S<80;S++){if(S<16)u[S]=0|r[l+S];else{var m=u[S-3]^u[S-8]^u[S-14]^u[S-16];u[S]=m<<1|m>>>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<l;T++)E[T]^=1549556828,f[T]^=909522486;c.sigBytes=x.sigBytes=d,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var r=this._hasher,l=r.finalize(o);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}()})},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return function(){function h(u,e,o){for(var r=[],l=0,d=0;d<e;d++)if(d%4){var c=o[u.charCodeAt(d-1)]<<d%4*2,x=o[u.charCodeAt(d)]>>>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<r;c+=3)for(var x=o[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<r;S++)d.push(l.charAt(T>>>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;d<r.length;d++)l[r.charCodeAt(d)]=d}var c=r.charAt(64);if(c){var x=e.indexOf(c);x!==-1&&(o=x)}return h(e,o,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),b.enc.Base64})},function(de,n,O){"use strict";function b(_){return _&&_.__esModule?_:{default:_}}function h(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function _(A,I){for(var w=0;w<I.length;w++){var R=I[w];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,R.key,R)}}return function(A,I,w){return I&&_(A.prototype,I),w&&_(A,w),A}}(),i=O(8),s=b(i),p=O(7),u=b(p),e=O(4),o=b(e),r=O(6),l=b(r),d=O(1),c=b(d),x=O(9),E=b(x),f=O(2),T=O(11),S=O(10),m=function(){function _(){h(this,_)}return g(_,null,[{key:"getAuthInfo",value:function(I,w,R){var C=I+"|f#Ylm&^1TppeRhLg|"+R;return w&&(C=I+"|"+w+"|f#Ylm&^1TppeRhLg|"+R),f(S.parse(C)).toString(T)}},{key:"upload",value:function(I,w,R){var C=c.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),j=o.default.getClientId();j=o.default.setClientId(j);var X=_.getAuthInfo(I.userId,j,M),H=E.default.randomUUID(),q={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:M,Timestamp:C,AuthInfo:X,FileName:I.file.name,FileSize:I.file.size,FileCreateTime:I.file.lastModified,FileHash:I.fileHash,UploadId:I.checkpoint.checkpoint.uploadId,PartSize:I.checkpoint.checkpoint.partSize,DonePartsCount:I.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(I.checkpoint),UploadRatio:I.checkpoint.loaded,UserId:I.userId,VideoId:I.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};j&&(q.ClientId=j);var Q=E.default.makeUTF8sort(q,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(q,I.accessKeySecret)),U="https://vod."+I.region+".aliyuncs.com/?"+Q;s.default.get(U,function(ee){w&&w()},function(ee){ee&&(R(ee),console.log(ee))})}},{key:"get",value:function(I,w,R){var C=c.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),j=o.default.getClientId(),X=_.getAuthInfo(I.userId,j,M),H=E.default.randomUUID(),q={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:M,Timestamp:C,AuthInfo:X,UserId:I.userId,UploadInfoList:JSON.stringify(I.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};j&&(q.ClientId=j);var Q=E.default.makeUTF8sort(q,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(q,I.accessKeySecret)),U="https://vod."+I.region+".aliyuncs.com/?"+Q;s.default.get(U,function(ee){var $={},W=j;ee=ee?JSON.parse(ee):{},ee.UploadProgress&&ee.UploadProgress.UploadProgressList&&ee.UploadProgress.UploadProgressList.length>0&&($=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;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,o){return e&&p(u.prototype,e),o&&p(u,o),u}}(),g=O(2),i=O(33),s=(O(11),function(){function p(){b(this,p)}return h(p,null,[{key:"getMd5",value:function(e,o,r){var l=new FileReader;l.onload=function(x){try{if(x&&x.target){var E=g(i.parse(x.target.result)),f=E.toString();o(f)}}catch(T){console.log(T)}},l.onerror=function(x){console.log(x),errorCallback(x)};var d=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=d.call(e,0,1024);l.readAsBinaryString(c)}}]),p}());n.default=s},function(de,n,O){!function(b,h){de.exports=n=h(O(0))}(0,function(b){return b.enc.Latin1})}])}).call(this,se("yLpj"))},sBCT:function(Me,Ie,se){"use strict";var we=se("MXD1"),je=se("CFYs"),de=se("WmNS"),n=se.n(de),O=se("9og8"),b=se("2qtc"),h=se("kLXV"),g=se("miYZ"),i=se("tsqr"),s=se("y8nQ"),p=se("Vl3Y"),u=se("tJVT"),e=se("k1fw"),o=se("oBTY"),r=se("5NDa"),l=se("5rEg"),d=se("q1tI"),c=se.n(d),x=se("Ty5D"),E=se("55Ip"),f=se("9kvl"),T=se("kwm0"),S=se.n(T),m=se("Aky1"),_=l.a.TextArea,A=500,I=function(C,M){var j,X=M.payload||{},H=X.uploadInfo,q=H===void 0?{}:H;switch(M.type){case"addVideo":return{videoList:[].concat(Object(o.a)(C.videoList),[{name:q.file.name,size:q.file.size,type:q.file.type,fileHash:q.fileHash,state:q.state,videoId:q.videoId,loaded:q.loaded||0,title:""}])};case"removeVideo":return{videoList:C.videoList.filter(function(Q){return Q.name!==M.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:C.videoList.map(function(Q){return Q.name===M.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},Q),{loaded:M.payload.progressPercent,videoId:q.videoId,fileHash:q.fileHash}):Q})};case"updateTitle":return{videoList:(j=C.videoList)===null||j===void 0?void 0:j.map(function(Q){return Q.name===M.payload.item.name?Object(e.a)(Object(e.a)({},Q),{title:M.payload.title}):Q})};default:return{videoList:[]}}},w=function(C){var M,j=C.user,X=C.globalSetting,H=C.loading,q=C.dispatch,Q=C.visible,U=C.editData,ee=C.onCancel,$=ee===void 0?function(){}:ee,W=C.onOk,L=W===void 0?function(){}:W,D=Object(x.m)(),N=p.a.useForm(),F=Object(u.a)(N,1),V=F[0],Y=Object(d.useReducer)(I,{videoList:[]}),oe=Object(u.a)(Y,2),te=oe[0],ue=oe[1],fe=Object(d.useState)(!1),Z=Object(u.a)(fe,2),J=Z[0],ie=Z[1],G=Object(d.useRef)(),z=Object(d.useState)(),re=Object(u.a)(z,2),ne=re[0],le=re[1],k=Object(d.useState)(!1),t=Object(u.a)(k,2),a=t[0],P=t[1],v=Object(d.useState)(!1),y=Object(u.a)(v,2),B=y[0],K=y[1];Object(d.useEffect)(function(){if(!U)return;P(U.is_link),le(U.link),!U.is_link&&ue({type:"addVideo",payload:{uploadInfo:{file:{name:U.file_name},videoId:U.video_id,loaded:100}}}),V.setFieldsValue({name:U.name,description:U.description})},[U]);var pe=function(){var be=document.getElementById("fileUpload");be.value=""},ce=function(be){var ve,xe,Oe;P(!1);var Se=be.target.files[0];if(!Se){pe();return}var ke=Se.name.toLowerCase();if(ke&&ke.indexOf(".avi")==-1&&ke.indexOf(".flv")==-1&&ke.indexOf(".f4v")==-1&&ke.indexOf(".m4v")==-1&&ke.indexOf(".mov")==-1&&ke.indexOf(".mp4")==-1&&ke.indexOf(".rmvb")==-1&&ke.indexOf(".swf")==-1&&ke.indexOf(".webm")==-1&&ke.indexOf(".wmv")==-1){i.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),pe();return}if(!(((ve=j.userInfo)===null||ve===void 0?void 0:ve.admin)||((xe=j.userInfo)===null||xe===void 0?void 0:xe.business))&&Se.size>A*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,Le,Re,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||((Le=Ue[0])===null||Le===void 0)?void 0:Le.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)}},((Re=te.videoList)===null||Re===void 0||((qe=Re[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(Me,Ie,se){Me.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(Me,Ie,se){Me.exports={contentWrap:"contentWrap___3Fc2r",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);
|