|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[137,5,6,7,9,10,14],{"1vsH":function(pt,ye,J){"use strict";J.d(ye,"i",function(){return x}),J.d(ye,"l",function(){return _}),J.d(ye,"e",function(){return C}),J.d(ye,"h",function(){return D}),J.d(ye,"c",function(){return y}),J.d(ye,"f",function(){return I}),J.d(ye,"g",function(){return R}),J.d(ye,"a",function(){return k}),J.d(ye,"E",function(){return W}),J.d(ye,"D",function(){return K}),J.d(ye,"F",function(){return H}),J.d(ye,"G",function(){return re}),J.d(ye,"t",function(){return X}),J.d(ye,"s",function(){return ie}),J.d(ye,"q",function(){return ee}),J.d(ye,"p",function(){return Y}),J.d(ye,"B",function(){return F}),J.d(ye,"k",function(){return q}),J.d(ye,"A",function(){return Z}),J.d(ye,"v",function(){return de}),J.d(ye,"m",function(){return _e}),J.d(ye,"y",function(){return ne}),J.d(ye,"o",function(){return te}),J.d(ye,"d",function(){return se}),J.d(ye,"b",function(){return N}),J.d(ye,"u",function(){return ae}),J.d(ye,"z",function(){return me}),J.d(ye,"x",function(){return P}),J.d(ye,"n",function(){return n}),J.d(ye,"w",function(){return s}),J.d(ye,"r",function(){return b}),J.d(ye,"j",function(){return E}),J.d(ye,"C",function(){return G});var je=J("sRBo"),ce=J("kaz8"),fe=J("WmNS"),t=J.n(fe),i=J("14J3"),S=J("BMrR"),m=J("jCWc"),g=J("kPKH"),o=J("2qtc"),l=J("kLXV"),p=J("9og8"),u=J("jrin"),e=J("q1tI"),a=J.n(e),r=J("xKgJ"),d=J("Pv/L"),f=J("dfu6"),c=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return new Promise(function(Q,ue){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return ue("WebRTC not supported by browser");var pe=new RTCPeerConnection,ve=[];pe.createDataChannel(""),pe.createOffer().then(function(we){return pe.setLocalDescription(we)}).catch(function(we){return ue(we)}),pe.onicecandidate=function(we){if(console.log("event:",we),!we||!we.candidate){if(console.log("ips",ve),ve.length==0||!Object(f.a)(ve[0])){var le=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u63D0\u793A"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return le.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:a.a.createElement(S.a,null,a.a.createElement(g.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",a.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),a.a.createElement("br",null),a.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))});return ue("WebRTC disabled or restricted by browser")}return Q(ve.join(""))}var Ae=we.candidate.candidate.split(" "),Be=Object(d.a)(Ae),Re=Be[0],ze=Be[1],ot=Be[2],Ze=Be[3],et=Be[4],dt=Be[5],Et=Be[7],nn=Be.slice(8),En=["rtp","rtpc"];if(console.log("event:",we),ve.some(function(Qt){return Qt==et})||ve.push(et),!L)return;if(console.log(" candidate: "+Re.split(":")[1]),console.log(" component: "+En[ze-1]),console.log(" protocol: "+ot),console.log(" priority: "+Ze),console.log(" ip: "+et),console.log(" port: "+dt),console.log(" type: "+Et),nn.length){console.log("attributes: ");for(var bn=0;bn<nn.length;bn+=2)console.log("> "+nn[bn]+": "+nn[bn+1])}}})},A=J("V0Rq"),w=J("bntm"),h=J("aCH8"),T=J.n(h),x=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],v=function(L){var Q={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return L.data&&L.data.map(function(ue,pe){return a.a.createElement("span",{key:pe,className:Q[ue]&&Q[ue].class},ue)})},_=function(L){var Q,ue=(Q={},Object(u.a)(Q,-1,"\u91CD\u505A\u4E2D"),Object(u.a)(Q,0,"\u672A\u5F00\u542F"),Object(u.a)(Q,1,"\u672A\u901A\u5173"),Object(u.a)(Q,2,"\u6309\u65F6\u901A\u5173"),Q);return ue[L]||"\u8FDF\u4EA4\u901A\u5173"},C=function(L){var Q,ue,pe,ve=(Q={},Object(u.a)(Q,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(u.a)(Q,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(u.a)(Q,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(u.a)(Q,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(u.a)(Q,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Q);return a.a.createElement("span",{className:ve==null||((ue=ve[L.status])===null||ue===void 0)?void 0:ue.class},ve==null||((pe=ve[L.status])===null||pe===void 0)?void 0:pe.name)},D=function(L){var Q=L.status,ue={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return a.a.createElement("span",{className:ue[Q].class},ue[Q].name)}catch(pe){console.log("utils.StatusGraduationProjectTags",L.status)}},y={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},I={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},R=function(L){var Q={\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},ue=[];L.is_random&&ue.push(a.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{L.status&&L.status.map(function(pe,ve){ue.push(a.a.createElement("span",{key:ve,className:Q[pe]&&Q[pe].class},pe))})}catch(pe){console.log("utils.status.tag:",pe,L.status)}return ue},B=function(L){var Q,ue,pe,ve=(Q={},Object(u.a)(Q,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(u.a)(Q,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(u.a)(Q,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(u.a)(Q,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(u.a)(Q,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Q);return a.a.createElement("span",{className:(ue=ve[L.status])===null||ue===void 0?void 0:ue.class},(pe=ve[L.status])===null||pe===void 0?void 0:pe.name)},k=function(L){var Q,ue,pe={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return a.a.createElement("span",{className:(Q=pe[L.status])===null||Q===void 0?void 0:Q.class},(ue=pe[L.status])===null||ue===void 0?void 0:ue.name)},W=function(L){L=new Date(L).getTime();var Q=1e3*60,ue=Q*60,pe=ue*24,ve="",we=new Date().getTime(),le=we-L;if(le<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),ve="\u521A\u521A";var Ae=parseInt(le/pe,10),Be=parseInt(le/ue,10),Re=parseInt(le/Q,10);return Ae>30?ve=""+K(L,"yyyy-MM-dd"):Ae>1?ve=""+Ae+"\u5929\u524D":Ae==1?ve="\u6628\u5929":Be>=1?ve=""+Be+"\u5C0F\u65F6\u524D":Re>=5?ve=""+Re+"\u5206\u949F\u524D":ve="\u521A\u521A",ve},K=function(L,Q){typeof L=="string"&&(L.indexOf("T")>=0&&(L=L.replace("T"," ")),L=new Date(Date.parse(L.replace(/-/g,"/")))),L=new Date(L);var ue={"M+":L.getMonth()+1,"d+":L.getDate(),"h+":L.getHours(),"m+":L.getMinutes(),"s+":L.getSeconds(),"q+":Math.floor((L.getMonth()+3)/3),S:L.getMilliseconds()},pe=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(Q)&&(Q=Q.replace(RegExp.$1,(L.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(Q)&&(Q=Q.replace(RegExp.$1,pe[RegExp.$1.length-1][L.getDay()]));for(var ve in ue)new RegExp("("+ve+")").test(Q)&&(Q=Q.replace(RegExp.$1,RegExp.$1.length==1?ue[ve]:("00"+ue[ve]).substr((""+ue[ve]).length)));return Q},H=function(L){if(!L||L<0)return"0\u79D2";console.log("time:",L);var Q=60,ue=Q*60,pe=ue*24,ve=L/pe,we=L/ue,le=L/Q,Ae=L%60;return ve>=1?parseInt(ve.toString())+"\u5929"+Math.floor(we%24)+"\u65F6"+Math.floor(le%60)+"\u5206"+Math.floor(L%60)+"\u79D2":we>1?parseInt(we.toString())+"\u65F6"+Math.floor(le%60)+"\u5206"+Math.floor(L%60)+"\u79D2":le>=1?parseInt(le.toString())+"\u5206"+Math.floor(L%60)+"\u79D2":Math.ceil(L)+"\u79D2"},re=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,ue=0;if(L){ue=L.length;for(var pe=0;pe<ue;pe++){var ve=L.charCodeAt(pe);ve>=55296&&ve<=56319&&(ue--,pe++)}}return ue<=Q},X=function(L,Q,ue){if(Q){var pe=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,ve=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,we=ve.test(Q),le=pe.test(Q);(we===!0||le===!0||(Q.length<2||Q.length>=21))&&ue("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}ue()},ie=function(L,Q,ue){if(Q){var pe=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,ve=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,we=ve.test(Q),le=pe.test(Q);(we===!0||le===!0||(Q.length<2||Q.length>=11))&&ue("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}ue()},ee=function(L){if(!L)return"";for(var Q=L.length-1,ue="",pe=0;pe<Q;pe++)ue+="*";var ve=L.substr(0,1)+ue;return ve},Y=function(L,Q){var ue=new FileReader;ue.addEventListener("load",function(){return Q(ue.result)}),ue.readAsDataURL(L)};function F(V){var L="79e33abd4b6588941ab7622aed1e67e8";return T()(L+V)}var U=function(L){var Q,ue=RegExp("(^| )"+L+"=([^;]+)(;|$)");return(Q=document.cookie.match(ue))?decodeURIComponent(Q[2]):null};function M(V,L,Q){var ue=new Date;ue.setTime(ue.getTime()+Q*24*60*60*1e3);var pe="expires="+ue.toUTCString();document.cookie=V+"="+L+"; "+pe}var z=function(L){document.cookie=L+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function q(V,L){return new Promise(function(Q,ue){var pe=L,ve=document.createElement("iframe"),we;console.log("downloadFileUrl",pe),document.body.appendChild(ve),ve.src=pe,ve.style.display="none",we=setInterval(function(){U("fileDownload")&&(z("fileDownload"),clearInterval(we),Q())},1e3)})}var Z=function(L){var Q=L.url,ue=L.query;return Q?(ue&&function(){var pe=[],ve=function(Ae){ue.hasOwnProperty(Ae)&&!s(ue[Ae])&&(typeof ue[Ae]=="object"?ue[Ae].map(function(Be){pe.push("".concat(Ae,"[]=").concat(Be))}):pe.push("".concat(Ae,"=").concat(ue[Ae])))};for(var we in ue)ve(we);Q.indexOf("?")!==-1?Q="".concat(Q,"&").concat(pe.join("&")):Q="".concat(Q,"?").concat(pe.join("&")),console.log("url1111",Q)}(),Q):""};function de(){for(var V=navigator.userAgent,L=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],Q=!0,ue=0;ue<L.length;ue++)if(V.indexOf(L[ue])>0){Q=!1;break}return Q}function oe(){var V=navigator.userAgent,L=["Chrome"];return L.some(function(Q){return V.indexOf(Q)>-1})}function he(){var V=navigator.userAgent,L=["Chrome","Firefox"];return L.some(function(Q){return V.indexOf(Q)>-1})}var _e=function(){var L,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Q==null||((L=Q.toString())===null||L===void 0)?void 0:L.replace(/\B(?=(\d{3})+(?!\d))/g,",")},ne=function(L){var Q=document.createElement("a");Q.target="_blank",document.body.appendChild(Q),Q.href=L;var ue=document.createEvent("MouseEvents");ue.initEvent("click",!1,!1),Q.dispatchEvent(ue),document.body.removeChild(Q)},te=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return L.length<=6?L:"".concat(L.substring(0,3),"...").concat(L.substring(L.length-3,L.length))},se=function(){var L=new Date().getHours(),Q=new Date().getMinutes();return Q>=30?(L++,Q="00"):Q="30",L+":"+Q},N=function(){var L=new Date().getHours(),Q=new Date().getMinutes();return Q>=30?(L++,Q="00"):Q="30",new Date().toLocaleDateString().replace(/\//g,"-")+" "+L+":"+Q},j;(function(V){V.Number="Number",V.String="String",V.Boolean="Boolean",V.Object="Object",V.Array="Array",V.Function="Function"})(j||(j={}));var $=function(L){var Q=Object.prototype.toString.call(L);return Q.substring(8,Q.length-1)},ae=function(L){return $(L)===j.Array?L.length===0:$(L)===j.Object?Object.keys(L).length===0:!L},me=function(L,Q){for(var ue=[],pe=L;pe<Q;pe++)ue.push(pe);return ue},P=function(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,ue=Q/2-2,pe=Q/2+3;return L.length>Q?L.substr(0,ue)+"..."+L.substr(pe,Q):L},n=function(L){return L>4.5?5:L>4&&L<=4.5?4.5:L>3.5&&L<=4?4:L>3&&L<=3.5?3.5:L>2.5&&L<=3?3:L>2&&L<=2.5?2.5:L>1.5&&L<=2?2:L>1&&L<=1.5?1.5:L>.5&&L<=1?1:L>0&&L<=.5?.5:0},s=function(L){return L==null};function O(V,L){var Q=new RegExp("(^|&)".concat(V,"=([^&]*)(&|$)"),"i"),ue=L.substr(1).match(Q);return ue!=null?decodeURIComponent(ue[2]):null}var b=function(L){switch(L.container_type){case"ApplyUserAuthentication":if(L.tiding_type==="Apply"){if(L.auth_type===1)return window.open("/admins/identity_authentications");if(L.auth_type===2)return window.open("/admins/professional_authentications")}return L.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return L.tiding_type==="Apply"?window.open("/admins/department_applies"):L.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return L.tiding_type==="Apply"?window.open("/admins/unit_applies"):L.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(L.parent_container_type){case"ApplyShixun":if(L.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(L.tiding_type==="System")return window.open("/shixuns/".concat(L.identifier,"/challenges"));case"ApplySubject":if(L.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(L.tiding_type==="System")return window.open("/paths/".concat(L.parent_container_id));case"TrialAuthorization":if(L.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(L.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(L.belong_container_id,"/teachers"));case"StudentJoinCourse":if(L.tiding_type==="Apply")return window.open("/classrooms/".concat(L.belong_container_id,"/teachers"));if(L.tiding_type==="System")return window.open("/classrooms/".concat(L.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/"));case"Course":return L.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(L.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(L.container_id));case"JournalsForMessage":switch(L.parent_container_type){case"Principal":return"";case"HomeworkCommon":return L.homework_type==="normal"?window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/question")):L.homework_type==="group"?window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/question")):L.homework_type==="practice"?window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_topics/").concat(L.parent_container_id,"/detail"));case"StudentWorksScore":return L.homework_type==="normal"?window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/question")):L.homework_type==="group"?window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/question")):L.homework_type==="practice"?window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(L.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(L.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(L.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(L.container_id));case"DealProject":return window.open("/projects/".concat(L.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(L.container_id));case"Poll":switch(L.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(L.belong_container_id,"/poll/").concat(L.container_id,"/detail"));default:return window.open(" /classrooms/".concat(L.belong_container_id,"/poll/").concat(L.container_id,"/detail"))}case"Exercise":switch(L.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(L.belong_container_id,"/exercise/").concat(L.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(L.belong_container_id,"/exercise/").concat(L.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(L.belong_container_id,"/exercise/").concat(L.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_topics/").concat(L.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_topics/").concat(L.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_tasks/").concat(L.container_id));case"GraduationWork":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_tasks/").concat(L.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(L.belong_container_id,"/graduation_tasks/").concat(L.parent_container_id));case"HomeworkCommon":switch(L.parent_container_type){case"AnonymousCommentFail":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="practice")return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="practice")return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="practice")return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=0"));default:if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/detail"));if(L.homework_type==="practice")return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/review/").concat(L.container_id));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/review/").concat(L.container_id));if(L.homework_type==="practice")return window.open("/classrooms/".concat(L.belong_container_id,"/shixun_homework/").concat(L.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.trigger_user.id,"/review/").concat(L.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.trigger_user.id,"/review/").concat(L.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(L.parent_container_id));case"Issue":return window.open("/issues/".concat(L.container_id));case"PullRequest":return window.open("/projects/".concat(L.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if(L.tiding_type==="Apply")return window.open("/admins/library_applies");if(L.tiding_type==="System")return window.open("/moop_cases/".concat(L.container_id));case"ProjectPackage":return L.tiding_type==="Destroyed"||L.tiding_type==="Destroyed_end"?void 0:L.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(L.container_id));case"Discuss":return L.parent_container_type==="Hack"&&L.extra?window.open("/myproblems/".concat(L.extra,"/comment")):window.open("/shixuns/".concat(L.identifier,"/shixun_discuss"));case"Video":if(L.tiding_type==="Apply")return window.open("/admins/video_applies");if(L.tiding_type==="System"){var Q;return window.open("/users/".concat((Q=Object(r.t)())===null||Q===void 0?void 0:Q.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(L.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(L.container_id));case"ResubmitStudentWork":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id,"/").concat(L.container_id,"/appraise"));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id,"/").concat(L.container_id,"/appraise"));case"AdjustScore":if(L.homework_type==="normal")return window.open("/classrooms/".concat(L.belong_container_id,"/common_homework/").concat(L.parent_container_id));if(L.homework_type==="group")return window.open("/classrooms/".concat(L.belong_container_id,"/group_homework/").concat(L.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(L.belong_container_id,"/course_videos?open=live"));case"Hack":if(L.extra&&L.parent_container_type!=="HackDelete")return window.open("/problems/".concat(L.extra,"/edit"));default:return}},E=function(L){var Q,ue;return new Promise(function(){var pe=Object(p.a)(t.a.mark(function ve(we,le){var Ae;return t.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,c();case 2:return Q=Re.sent,Re.next=5,Object(A.e)({id:L.exerciseId,ip:Q});case 5:if(Ae=Re.sent,Ae.status===0?we():le(),!(Ae.status===-1)){Re.next=12;break}return ue=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u63D0\u793A"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ue.destroy()}}))),icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),Re.abrupt("return",!1);case 12:if(!(Ae.status===-2)){Re.next=15;break}return ue=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u63D0\u793A"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ue.destroy()}}))),icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",a.a.createElement("span",{className:"c-red"},Ae.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),Re.abrupt("return",!1);case 15:case"end":return Re.stop()}},ve)}));return function(ve,we){return pe.apply(this,arguments)}}())},G=function(){var V=Object(p.a)(t.a.mark(function L(Q){var ue;return t.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(!(Q.ip_limit!=="no")){ve.next=4;break}return ve.next=3,E(Q);case 3:oe()||l.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:a.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",a.a.createElement("br",null),"\u8BF7\u4F7F\u7528",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});case 4:if(!(Q.open_camera||Q.screen_open)){ve.next=12;break}if(he()){ve.next=9;break}return l.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:a.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",a.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",a.a.createElement("br",null),"\u8BF7\u4F7F\u7528",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",a.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),ve.abrupt("return",!1);case 9:ue=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ue.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},Q.open_camera&&a.a.createElement(S.a,{align:"middle",justify:"start",className:"mt20"},a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),a.a.createElement(g.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",a.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Q.screen_open&&a.a.createElement(S.a,{justify:"start",className:"mt20"},a.a.createElement(g.a,{flex:"24px",className:"mr20"},a.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),a.a.createElement(g.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",Q.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",a.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),a.a.createElement("p",{className:"ml40 mt40"},a.a.createElement(ce.a,{onChange:function(le){return ue.update({okButtonProps:{disabled:!le.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){var le;Object(w.d)(document.body),Q.history.push("/classrooms/".concat(Q.coursesId,"/exercise/").concat(Q.exerciseId,"/users/").concat((le=Object(r.t)())===null||le===void 0?void 0:le.login))},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),ve.next=13;break;case 12:Q.history.push("/classrooms/".concat(Q.coursesId,"/exercise/").concat(Q.exerciseId,"/users/").concat(Q.login));case 13:case"end":return ve.stop()}},L)}));return function(Q){return V.apply(this,arguments)}}()},"8Bcu":function(pt,ye,J){pt.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK"}},"9Bee":function(pt,ye,J){"use strict";var je=J("q1tI"),ce=J.n(je),fe=J("vg9a"),t=J("tJVT"),i=J("DlQD"),S=J.n(i),m=J("rUJ1");function g(H,re){var X=H.match(/^(\s+)(?:```)/);if(X===null)return re;var ie=X[1];return re.split(`
|
|
|
`).map(function(ee){var Y=ee.match(/^\s+/);if(Y===null)return ee;var F=Object(t.a)(Y,1),U=F[0];return U.length>=ie.length?ee.slice(ie.length):ee}).join(`
|
|
|
`)}var o=[],l=["<ul>"],p=new S.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){o.length=0,l=["<ul>"]}function a(H,re,X,ie){if(re>=H.length||H[re].level<=X)return re;var ee=H[re];ie.push("<li><a href='#"+ee.anchor+"'>"+ee.text+"</a>"),re++;var Y=[];return re=a(H,re,ee.level,Y),Y.length>0&&(ie.push("<ul>"),Y.forEach(function(F){ie.push(F)}),ie.push("</ul>")),ie.push("</li>"),re=a(H,re,X,ie),re}function r(){return a(o,0,0,l),l.push("</ul>"),l.join("")}var d={heading:function(re){var X=u.exec(re);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},fences:function(re){var X=this.rules.block.fences.exec(re);if(X){var ie=X[0],ee=g(ie,X[3]||""),Y=X[2]?X[2].trim():X[2];if(["latex","katex","math"].indexOf(Y)>=0){var F=A(),U=ee;ee=F,w[F]={type:"block",expression:U}}return{type:"code",raw:ie,lang:Y,text:ee}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,A=function(){return"__special_katext_id_".concat(c++,"__")},w={};function h(){return w}function T(){c=0,w={}}function x(H){return H=H.replace(f,function(re,X){var ie=A();return w[ie]={type:"inline",expression:X},ie}),H}var v=p.listitem;p.listitem=function(H){return v(x(H))};var _=p.paragraph;p.paragraph=function(H){return _(x(H))};var C=p.tablecell;p.tablecell=function(H,re){return C(x(H),re)},p.code=function(H,re,X){var ie=(re||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"<p class='editormd-tex'>".concat(H,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(re,'">').concat(X?H:Object(m.escape)(H,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(X?H:Object(m.escape)(H,!0))+"</code></pre>"},p.heading=function(H,re,X){var ie=this.options.headerPrefix+X.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:ie,level:re,text:H}),"<h"+re+' id="'+ie+'">'+H+"</h"+re+">"},S.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),S.a.use({tokenizer:d,renderer:p});var D=S.a,y=J("SJMd"),I=J("wMS7"),R=J.n(I),B=J("Oy/b"),k=/<pre[^>]*>/g;function W(H){var re=document.createElement("div");return re.innerHTML=H,re.childNodes.length===0?"":re.childNodes[0].nodeValue}var K=ye.a=function(H){var re=H.value,X=re===void 0?"":re,ie=H.className,ee=H.style,Y=ee===void 0?{}:ee,F=String(X),U=Object(je.useMemo)(function(){var q=D(F),Z=h();return F.match(/\[TOC\]/)&&(q=q.replace("<p>[TOC]</p>",r()),e()),q=q.replace(/(__special_katext_id_\d+__)/g,function(de,oe){var he=Z[oe],_e=he.type,ne=he.expression;return Object(B.renderToString)(W(ne)||"",{displayMode:_e==="block",throwOnError:!1,output:"html"})}),q=q.replace(/▁/g,"\u2581\u2581\u2581"),T(),R.a.sanitize(q)},[F]),M=Object(je.useRef)();function z(q){var Z=q.target;if(Z.tagName.toUpperCase()==="A"){var de=Z.getAttribute("href");if(de.startsWith("#")){q.preventDefault();var oe=document.getElementById(de.replace("#",""));oe&&oe.scrollIntoView(!0)}}}return Object(je.useEffect)(function(){if(M.current&&U&&(U.match(k)&&window.PR.prettyPrint()),M.current)return M.current.addEventListener("click",z),function(){M.current.removeEventListener("click",z),T(),e()}},[U,M.current,z]),ce.a.createElement("div",{ref:M,style:Y,className:"".concat(ie||""," markdown-body"),dangerouslySetInnerHTML:{__html:U}})}},AZ8Y:function(pt,ye,J){"use strict";J.r(ye);var je=J("T2oS"),ce=J("W9HT"),fe=J("PpiC"),t=J("q1tI"),i=J.n(t),S=J("Ty5D"),m=J("9kvl"),g=J("qVdP"),o=J("jsC+"),l=J("lUTK"),p=J("BvKs"),u=J("5Dmo"),e=J("3S7+"),a=J("+L6B"),r=J("2/Rp"),d=J("+BJd"),f=J("mr32"),c=J("pC0b"),A=J("GzdX"),w=J("7Kak"),h=J("9yH6"),T=J("2qtc"),x=J("kLXV"),v=J("WmNS"),_=J.n(v),C=J("miYZ"),D=J("tsqr"),y=J("9og8"),I=J("tJVT"),R=J("0NbB"),B=J("JTSX"),k=J.n(B),W=J("xKgJ"),K=J("Mgx3"),H=J("ozfa"),re=J("MJZm"),X=J("sRBo"),ie=J("kaz8"),ee=J("14J3"),Y=J("BMrR"),F=J("jCWc"),U=J("kPKH"),M=J("k1fw"),z=J("OaEy"),q=J("2fM7"),Z=J("wd/R"),de=J.n(Z),oe=J("kNP/"),he=J.n(oe),_e=q.a.Option,ne=function(Oe){var Ge=Oe.pathsDetail,We=Oe.globalSetting,rt=Oe.loading,wt=Oe.dispatch,Nt=Object(fe.a)(Oe,["pathsDetail","globalSetting","loading","dispatch"]),mt=Object(S.m)(),kt=Object(t.useState)(),ft=Object(I.a)(kt,2),Xt=ft[0],Jt=ft[1],Gt=Object(t.useState)([]),De=Object(I.a)(Gt,2),xt=De[0],gt=De[1],Ht=Object(t.useState)([]),Ue=Object(I.a)(Ht,2),Ke=Ue[0],Ut=Ue[1],Kt=Object(t.useState)([]),zt=Object(I.a)(Kt,2),ut=zt[0],It=zt[1],Lt=Object(t.useState)(),Le=Object(I.a)(Lt,2),Fe=Le[0],At=Le[1],St=Object(t.useState)(),yt=Object(I.a)(St,2),Pt=yt[0],Ct=yt[1],bt=Object(t.useState)(!0),Ot=Object(I.a)(bt,2),Ft=Ot[0],Dt=Ot[1];Object(t.useEffect)(function(){Ge.actionTabs.key==="PathsDetail-SendToClass"&&Mt()},[Ge.actionTabs.key]);var Mt=function(){var ht=Object(y.a)(_.a.mark(function lt(){var ct,Xe,be;return _.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(K.v)({id:mt.pathId});case 2:ct=Te.sent,ct&&(gt((ct==null?void 0:ct.courses)||[]),be=(Xe=ct.stages)===null||Xe===void 0?void 0:Xe.map(function(Pe,Me){var Qe;return{title:Pe.state_name||"",key:Me,children:(Qe=Pe.shixuns)===null||Qe===void 0?void 0:Qe.map(function(st,on){return Object(M.a)(Object(M.a)({},st),{},{title:st.item_type==="Shixun"?st.name:i.a.createElement("span",null,i.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),st.name),key:"".concat(Me,"-").concat(on)})})}}),Ut(be||[]));case 4:case"end":return Te.stop()}},lt)}));return function(){return ht.apply(this,arguments)}}(),rn=function(lt,ct){It(lt)},an=function(lt){var ct=lt.target.checked,Xe=[];Ke==null||Ke.map(function(be,Ee){var Te;Xe.push(Ee),be==null||((Te=be.children)===null||Te===void 0)||Te.map(function(Pe,Me){Xe.push("".concat(Ee,"-").concat(Me))})}),It(ct?Xe:[])},Yt=function(){var lt=ut.filter(function(Ee){return typeof Ee=="string"}),ct=[],Xe=[],be=[];return Ke==null||Ke.map(function(Ee,Te){var Pe;Ee==null||((Pe=Ee.children)===null||Pe===void 0)||Pe.map(function(Me,Qe){lt.includes("".concat(Te,"-").concat(Qe))&&(be.push(Me.stage_item_id),Me.item_type==="Shixun"?ct.push(Me.id):Xe.push(Me.id))})}),{shixunIds:ct,videoItemIds:Xe,stageItemIds:be}},Zt=function(){var ht=Object(y.a)(_.a.mark(function lt(){var ct,Xe,be;return _.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(ct=Yt(),Xe=ct.stageItemIds,Xt){Te.next=4;break}return D.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Te.abrupt("return");case 4:if(!(!Wt.length&&!tn.length)){Te.next=7;break}return D.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Te.abrupt("return");case 7:return Ct(!0),Te.next=10,Object(K.E)({id:mt.pathId,course_id:Xt,stage_item_id:Xe,sync_catelog:Ft?1:0}).catch(function(Pe){return Ct(!1)});case 10:be=Te.sent,Ct(!1),cn(),(be==null?void 0:be.status)===1&&x.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},be.message),onOk:function(){var Me,Qe=be==null||((Me=be.url.split("/"))===null||Me===void 0)?void 0:Me[2];m.c.push("/classrooms/".concat(Qe,"/shixun_homework"))}});case 14:case"end":return Te.stop()}},lt)}));return function(){return ht.apply(this,arguments)}}(),cn=function(){wt({type:"pathsDetail/setActionTabs",payload:{}}),Jt(null),It([]),At(null)},en=Yt(),qt=en.shixunIds,Wt=qt===void 0?[]:qt,dn=en.videoItemIds,tn=dn===void 0?[]:dn;return i.a.createElement(x.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ge.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Pt,width:600,onOk:Zt,onCancel:cn},i.a.createElement("div",{className:he.a.wrap},i.a.createElement("div",{className:"mb10"},i.a.createElement(q.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:Xt,style:{width:"100%"},onSelect:function(lt){return Jt(lt)},optionLabelProp:"lable"},xt==null?void 0:xt.map(function(ht,lt){return i.a.createElement(_e,{key:ht.course_id,value:ht.course_id,lable:ht.course_name},i.a.createElement(Y.a,{justify:"space-between"},i.a.createElement(U.a,null,ht.course_name),i.a.createElement(U.a,null,de()(ht.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),i.a.createElement("div",{className:he.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),i.a.createElement("div",{className:he.a.radioWrap},i.a.createElement("div",null,i.a.createElement(ie.a,{value:Fe,onChange:an,className:"font14 ml20"},"\u5168\u9009")),!!(Ke==null?void 0:Ke.length)&&i.a.createElement(re.a,{className:he.a.tree,checkable:!0,defaultExpandAll:!0,treeData:Ke,checkedKeys:ut,onCheck:function(lt,ct){return rn(lt,ct)}})),i.a.createElement("div",{className:he.a.createMkdir},i.a.createElement(ie.a,{checked:Ft,onChange:function(lt){return Dt(lt.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(Wt.length+tn.length)&&i.a.createElement("span",null,i.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!Wt.length&&i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"c-light-primary"},Wt.length," "),i.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!tn.length&&i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"c-purple-8C1 ml5"},tn.length," "),i.a.createElement("span",null,"\u4E2A\u89C6\u9891"))))))},te=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.loading,We=tt.globalSetting;return{pathsDetail:Oe,globalSetting:We,loading:Ge.effects}})(ne),se=J("1vsH"),N=J("NLgs"),j=function(Oe){var Ge,We,rt,wt,Nt,mt,kt,ft,Xt,Jt,Gt,De,xt,gt,Ht,Ue,Ke,Ut,Kt,zt,ut,It,Lt,Le,Fe,At,St,yt,Pt,Ct,bt,Ot,Ft,Dt,Mt,rn,an,Yt,Zt,cn,en,qt,Wt,dn,tn,ht,lt,ct,Xe,be,Ee,Te,Pe,Me,Qe,st,on,sn,ln,xn,An,pn,Sn,Cn,In,Ye,ge,Se,Ie,ke,Ve,He,Ne,$t,Tt,fn,hn,jt,Bt,Vt,mn,vn,_n,Tn,Bn,Vn,xe=Oe.pathsDetail,qn=Oe.user,Or=Oe.globalSetting,Dr=Oe.loading,On=Oe.dispatch,Rr=Object(fe.a)(Oe,["pathsDetail","user","globalSetting","loading","dispatch"]),un=Object(S.m)(),vr=Object(t.useState)({}),$n=Object(I.a)(vr,2),Ce=$n[0],Qn=$n[1],Jn=Object(t.useRef)(1),_r=Object(t.useState)(),Zn=Object(I.a)(_r,2),Xn=Zn[0],gr=Zn[1];Object(t.useEffect)(function(){var at,nt,vt,qe,Je=(at=xe.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.length;if(!Je)return;var _t;if((vt=xe.detail)===null||vt===void 0?void 0:vt.has_start){var Rt,$e,gn=(Rt=xe.detail)===null||Rt===void 0||(($e=Rt.courses)===null||$e===void 0)?void 0:$e.findIndex(function(Nn){var yn;return((yn=Nn.course_status)===null||yn===void 0?void 0:yn.status)===1});_t=gn>-1?gn:0}else{var it,Gn,Hn,Kn,Yn,jn=(it=xe.detail)===null||it===void 0||((Gn=it.courses)===null||Gn===void 0||((Hn=Gn.map(function(Nn){var yn;return(yn=Nn.course_status)===null||yn===void 0?void 0:yn.status}))===null||Hn===void 0))?void 0:Hn.lastIndexOf(2);_t=jn>-1?jn:0,jn=(Kn=xe.detail)===null||Kn===void 0||((Yn=Kn.courses)===null||Yn===void 0)?void 0:Yn.findIndex(function(Nn){var yn;return((yn=Nn.course_status)===null||yn===void 0?void 0:yn.status)===0}),_t=jn>-1?jn:_t}Qn(((qe=xe.detail)===null||qe===void 0?void 0:qe.courses[_t])||{})},[xe.detail]);var yr=function(nt){var vt,qe,Je=(vt=xe.detail)===null||vt===void 0||((qe=vt.courses)===null||qe===void 0)?void 0:qe.find(function(_t){return _t.course_id===nt});Qn(Je||{})},br=function(){var at=Object(y.a)(_.a.mark(function nt(){var vt;return _.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(K.g)({container_id:un.pathId,container_type:"Subject"});case 2:vt=Je.sent,vt.status===0&&(Dn(),D.b.success(vt.message));case 4:case"end":return Je.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),Er=function(){var at=Object(y.a)(_.a.mark(function nt(){var vt;return _.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(K.j)({container_id:un.pathId,container_type:"Subject"});case 2:vt=Je.sent,vt.status===0&&(Dn(),D.b.success(vt.message));case 4:case"end":return Je.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),wr=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u8DEF\u5F84?"),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){var $e;return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(K.l)({id:un.pathId});case 2:$e=it.sent,$e.status===1&&m.c.push("/paths");case 4:case"end":return it.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),xr=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:i.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){var $e;return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(K.e)({id:un.pathId});case 2:$e=it.sent,($e==null?void 0:$e.status)===0&&(Dn(),D.b.success($e.message));case 4:case"end":return it.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),Ar=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){var $e;return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(K.i)({id:un.pathId});case 2:$e=it.sent,($e==null?void 0:$e.status)===1&&(Dn(),D.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"));case 4:case"end":return it.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),Sr=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:i.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",i.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",i.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",i.a.createElement("br",null)),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){var $e;return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(K.d)({id:un.pathId});case 2:$e=it.sent,(($e==null?void 0:$e.status)===0||($e==null?void 0:$e.status)===1)&&(Dn(),D.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 4:case"end":return it.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),er=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){var $e;return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(K.h)({id:un.pathId});case 2:$e=it.sent,($e==null?void 0:$e.status)===0&&(Dn(),D.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return it.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),Tr=function(){var at=Object(y.a)(_.a.mark(function nt(){return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"ml20"},i.a.createElement(h.a.Group,{defaultValue:1,onChange:function(_t){return Jn.current=_t.target.value}},i.a.createElement(h.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",i.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),i.a.createElement(h.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",i.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var Je=Object(y.a)(_.a.mark(function Rt(){return _.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:Object(se.y)("/classrooms/news/".concat(un.pathId,"/newgold/").concat(Jn.current));case 1:case"end":return gn.stop()}},Rt)}));function _t(){return Je.apply(this,arguments)}return _t}()});case 1:case"end":return qe.stop()}},nt)}));return function(){return at.apply(this,arguments)}}(),tr=function(){x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var nt=Object(y.a)(_.a.mark(function qe(){var Je;return _.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(K.f)({id:un.pathId});case 2:Je=Rt.sent,Je.status===0&&(gr(!0),D.b.success(Je.message));case 4:case"end":return Rt.stop()}},qe)}));function vt(){return nt.apply(this,arguments)}return vt}()})},nr=function(){if(!Object(N.c)(On))return;x.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var nt=Object(y.a)(_.a.mark(function qe(){var Je,_t;return _.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(K.z)({id:Ce==null?void 0:Ce.course_id});case 2:Je=$e.sent,Je.status===0&&(D.b.success(Je.message),On({type:"pathsDetail/getPathsDetail",payload:{id:un.pathId}}),((_t=Ce.course_status)===null||_t===void 0?void 0:_t.status)===1&&Object(se.y)("/classrooms/".concat(Ce==null?void 0:Ce.course_id,"/")));case 4:case"end":return $e.stop()}},qe)}));function vt(){return nt.apply(this,arguments)}return vt}()})},Pr=function(){if(!Object(N.c)(On))return;On({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},Dn=function(){On({type:"pathsDetail/getPathsDetail",payload:{id:un.pathId}}),On({type:"pathsDetail/getRightData",payload:{id:un.pathId}})},zn=!!((Ge=xe.detail)===null||Ge===void 0?void 0:Ge.participant_count)&&!((We=xe.detail)===null||We===void 0?void 0:We.allow_statistics),rr=((rt=xe.detail)===null||rt===void 0||((wt=rt.courses)===null||wt===void 0)?void 0:wt.findIndex(function(at){return(at==null?void 0:at.course_id)===(Ce==null?void 0:Ce.course_id)}))+1,Wn=rr===((Nt=xe.detail)===null||Nt===void 0||((mt=Nt.courses)===null||mt===void 0)?void 0:mt.length);return i.a.createElement("section",null,i.a.createElement("aside",{className:k.a.banner,style:{marginBottom:((kt=xe.detail)===null||kt===void 0||((ft=kt.courses)===null||ft===void 0)?void 0:ft.length)?70:30}},i.a.createElement("aside",{className:k.a.wrp},((Xt=xe.detail)===null||Xt===void 0?void 0:Xt.subject_score)>=0&&i.a.createElement("span",{className:"".concat(k.a.ratingWrap," font14 c-white")},i.a.createElement("span",null,"\u8BC4\u5206\uFF1A"),i.a.createElement(A.a,{allowHalf:!0,value:Object(se.n)((Jt=xe.detail)===null||Jt===void 0?void 0:Jt.averge_star),disabled:!0,className:k.a.rating})),i.a.createElement("p",{className:k.a.titleWrap},i.a.createElement("span",{className:k.a.title},(Gt=xe.detail)===null||Gt===void 0?void 0:Gt.name),((De=xe.detail)===null||De===void 0?void 0:De.excellent)&&i.a.createElement(f.a,{className:"".concat(k.a.openCourseTag," font14")},"\u5F00\u653E\u8BFE\u7A0B")),i.a.createElement("div",{className:k.a.contentWrap},i.a.createElement("div",{className:k.a.contentLeftWrap},!!((xt=xe.detail)===null||xt===void 0?void 0:xt.stages_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u7AE0\u8282"),i.a.createElement("p",{className:"mt3"},(gt=xe.detail)===null||gt===void 0?void 0:gt.stages_count)),!!((Ht=xe.detail)===null||Ht===void 0?void 0:Ht.shixuns_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B9E\u8BAD"),i.a.createElement("p",{className:"mt3"},(Ue=xe.detail)===null||Ue===void 0?void 0:Ue.shixuns_count)),!!((Ke=xe.detail)===null||Ke===void 0?void 0:Ke.challenge_choose_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u9009\u62E9\u9898\u4EFB\u52A1"),i.a.createElement("p",{className:"mt3"},(Ut=xe.detail)===null||Ut===void 0?void 0:Ut.challenge_choose_count)),!!((Kt=xe.detail)===null||Kt===void 0?void 0:Kt.challenges_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B9E\u8DF5\u4EFB\u52A1"),i.a.createElement("p",{className:"mt3"},(zt=xe.detail)===null||zt===void 0?void 0:zt.challenges_count)),!!((ut=xe.detail)===null||ut===void 0?void 0:ut.videos_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u89C6\u9891"),i.a.createElement("p",{className:"mt3"},(It=xe.detail)===null||It===void 0?void 0:It.videos_count)),((Lt=xe.detail)===null||Lt===void 0?void 0:Lt.publish_status)!==0&&!!((Le=xe.detail)===null||Le===void 0?void 0:Le.subject_score)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),i.a.createElement("p",{className:"mt3"},(Fe=xe.detail)===null||Fe===void 0?void 0:Fe.subject_score)),((At=xe.detail)===null||At===void 0?void 0:At.publish_status)!==0&&!!((St=xe.detail)===null||St===void 0?void 0:St.member_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),i.a.createElement("p",{className:"mt3"},(yt=xe.detail)===null||yt===void 0?void 0:yt.member_count))),i.a.createElement("div",{className:k.a.operationWrap},((Pt=qn.userInfo)===null||Pt===void 0?void 0:Pt.login)&&((Ct=xe.detail)===null||Ct===void 0?void 0:Ct.is_collect)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:br},"\u53D6\u6D88\u6536\u85CF"),((bt=qn.userInfo)===null||bt===void 0?void 0:bt.login)&&!((Ot=xe.detail)===null||Ot===void 0?void 0:Ot.is_collect)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Er},"\u6536\u85CF"),((Ft=xe.detail)===null||Ft===void 0?void 0:Ft.allow_statistics)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:function(){return m.c.push("/paths/".concat(un.pathId,"/edit"))}},"\u7F16\u8F91"),((Dt=xe.detail)===null||Dt===void 0?void 0:Dt.allow_delete)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:wr},"\u5220\u9664"),((Mt=xe.detail)===null||Mt===void 0?void 0:Mt.allow_add_member)&&((rn=xe.detail)===null||rn===void 0?void 0:rn.publish_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:xr},"\u7533\u8BF7\u53D1\u5E03"),((an=xe.detail)===null||an===void 0?void 0:an.allow_statistics)&&((Yt=xe.detail)===null||Yt===void 0?void 0:Yt.publish_status)===2&&((Zt=xe.detail)===null||Zt===void 0?void 0:Zt.public_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Ar},"\u64A4\u9500\u53D1\u5E03"),((cn=xe.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&((en=xe.detail)===null||en===void 0?void 0:en.publish_status)===2&&((qt=xe.detail)===null||qt===void 0?void 0:qt.public_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Sr},"\u7533\u8BF7\u516C\u5F00"),((Wt=xe.detail)===null||Wt===void 0?void 0:Wt.allow_statistics)&&((dn=xe.detail)===null||dn===void 0?void 0:dn.public_status)===1&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:er},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(W.c)()&&((tn=xe.detail)===null||tn===void 0?void 0:tn.allow_statistics)&&((ht=xe.detail)===null||ht===void 0?void 0:ht.public_status)===2&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:er},"\u64A4\u9500\u516C\u5F00"),((lt=xe.detail)===null||lt===void 0?void 0:lt.courses)&&((ct=xe.detail)===null||ct===void 0?void 0:ct.is_creator)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Tr},"\u5F00\u8BFE"),((Xe=xe.detail)===null||Xe===void 0?void 0:Xe.publish_status)!==0&&(((be=xe.detail)===null||be===void 0?void 0:be.allow_add_member)||!Object(W.k)())&&i.a.createElement(e.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Pr},"\u53D1\u9001\u81F3")),((Ee=xe.detail)===null||Ee===void 0?void 0:Ee.allow_statistics)&&((Te=xe.detail)===null||Te===void 0?void 0:Te.public_status)===2&&i.a.createElement(r.a,{className:"".concat(k.a.buttonLearnStatistics," mr15"),onClick:function(){return m.c.push("/paths/".concat(un.pathId,"/statistics"))}},"\u5B66\u4E60\u7EDF\u8BA1"))),!!((Pe=xe.detail)===null||Pe===void 0||((Me=Pe.courses)===null||Me===void 0)?void 0:Me.length)&&i.a.createElement("aside",{className:k.a.nav},i.a.createElement("div",{className:k.a.navLeft},Ce.course_identity<4&&i.a.createElement(e.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},i.a.createElement("a",{href:"/classrooms/".concat(Ce==null?void 0:Ce.course_id,"/newgolds/settings"),target:"_blank"},i.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(k.a.navLeftIcon)}))),i.a.createElement(o.a,{overlay:i.a.createElement(p.a,null,(Qe=xe.detail)===null||Qe===void 0||((st=Qe.courses)===null||st===void 0)?void 0:st.map(function(at,nt){return i.a.createElement(p.a.Item,{key:at.course_id},i.a.createElement("span",{className:"font14",onClick:function(){return yr(at.course_id)}},"\u7B2C",nt+1,"\u6B21\u5F00\u8BFE"))}))},i.a.createElement("div",null,i.a.createElement("span",{className:"font14 current"},"\u7B2C",i.a.createElement("span",{className:k.a.colorOrange},rr),"\u6B21\u5F00\u8BFE "),i.a.createElement(R.a,null))),i.a.createElement("div",{className:k.a.navContent},i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Ce==null?void 0:Ce.start_date)),i.a.createElement("div",{className:k.a.verticalLine}),i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Ce==null?void 0:Ce.end_date)),i.a.createElement("div",{className:k.a.verticalLine}),i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u62A5\u540D\u4EBA\u6570\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Ce==null?void 0:Ce.student_count," \u4EBA")))),i.a.createElement("div",{className:k.a.navRight},i.a.createElement("div",{className:k.a.flexRow},(Ce==null||((on=Ce.course_status)===null||on===void 0)?void 0:on.status)===1&&i.a.createElement("div",{className:"mr20 c-red-ee4"},Ce==null||((sn=Ce.course_status)===null||sn===void 0)?void 0:sn.time),(Ce==null||((ln=Ce.course_status)===null||ln===void 0)?void 0:ln.status)===2&&Ce.course_identity<6&&i.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((xn=Ce.course_status)===null||xn===void 0?void 0:xn.status)===2&&(Ce.course_identity<6?i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Ce==null||((An=Ce.first_category_url)===null||An===void 0||((pn=An.split("/"))===null||pn===void 0))?void 0:pn[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):i.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((Sn=Ce.course_status)===null||Sn===void 0?void 0:Sn.status)===1&&Ce.course_identity>5&&i.a.createElement("div",{className:k.a.classButton,onClick:nr},"\u7ACB\u5373\u52A0\u5165"),((Cn=Ce.course_status)===null||Cn===void 0?void 0:Cn.status)===1&&Ce.course_identity===5&&i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Ce==null||((In=Ce.first_category_url)===null||In===void 0||((Ye=In.split("/"))===null||Ye===void 0))?void 0:Ye[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((ge=Ce.course_status)===null||ge===void 0?void 0:ge.status)===0&&Ce.course_identity>5&&i.a.createElement("div",{className:k.a.classButton,onClick:nr},"\u7ACB\u5373\u62A5\u540D"),((Se=Ce.course_status)===null||Se===void 0?void 0:Se.status)===0&&Ce.course_identity===5&&i.a.createElement("div",{className:k.a.classButton},"\u62A5\u540D\u6210\u529F"),((Ce==null||((Ie=Ce.course_status)===null||Ie===void 0)?void 0:Ie.status)===0||(Ce==null||((ke=Ce.course_status)===null||ke===void 0)?void 0:ke.status)===1)&&Ce.course_identity<5&&i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Ce==null||((Ve=Ce.first_category_url)===null||Ve===void 0||((He=Ve.split("/"))===null||He===void 0))?void 0:He[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),zn&&Wn&&((Ne=xe.detail)===null||Ne===void 0?void 0:Ne.has_participate)&&i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),zn&&Wn&&!(($t=xe.detail)===null||$t===void 0?void 0:$t.has_participate)&&(Xn?i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bg28e),onClick:tr},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),i.a.createElement("div",{className:k.a.flexRow},zn&&!!((Tt=xe.detail)===null||Tt===void 0||((fn=Tt.courses)===null||fn===void 0)?void 0:fn.length)&&Wn&&i.a.createElement("span",{className:"mt20"},i.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(hn=xe.detail)===null||hn===void 0?void 0:hn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),i.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",i.a.createElement("span",{className:"mr5 c-red-ee4"},Xn===!0?((jt=xe.detail)===null||jt===void 0?void 0:jt.participant_count)+1:(Bt=xe.detail)===null||Bt===void 0?void 0:Bt.participant_count),"\u4EBA")),zn&&!((Vt=xe.detail)===null||Vt===void 0||((mn=Vt.courses)===null||mn===void 0)?void 0:mn.length)&&Wn&&i.a.createElement("span",null,!((vn=xe.detail)===null||vn===void 0?void 0:vn.has_participate)&&(Xn===!0?i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):i.a.createElement("a",{className:"".concat(k.a.classButton," ").concat(k.a.bg28e),onClick:tr},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((_n=xe.detail)===null||_n===void 0?void 0:_n.has_participate)&&i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),i.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Tn=xe.detail)===null||Tn===void 0?void 0:Tn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),i.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",i.a.createElement("span",{className:"mr5 c-red-ee4"},Xn===!0?((Bn=xe.detail)===null||Bn===void 0?void 0:Bn.participant_count)+1:(Vn=xe.detail)===null||Vn===void 0?void 0:Vn.participant_count),"\u4EBA"))))))),i.a.createElement(te,null))},$=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.user,We=tt.loading,rt=tt.globalSetting;return{pathsDetail:Oe,user:Ge,globalSetting:rt,loading:We.models.index}})(j),ae=J("9Bee"),me=J("MXD1"),P=J("CFYs"),n=J("Q9mQ"),s=J("diRs"),O=J("5NDa"),b=J("5rEg"),E=J("m3rI"),G=J("8Bcu"),V=J.n(G),L=J("g9YV"),Q=J("wCAj"),ue=J("O3gP"),pe=J("lrIw"),ve=J("oBTY"),we=J("y8nQ"),le=J("Vl3Y"),Ae=J("RotF"),Be=J.n(Ae),Re=J("oUNq"),ze=J("55Ip"),ot=function(Oe){var Ge=Oe.pathsDetail,We=Oe.loading,rt=Oe.dispatch,wt=Oe.onReloadData,Nt=wt===void 0?function(){}:wt,mt=Object(S.m)(),kt=Object(t.useState)([]),ft=Object(I.a)(kt,2),Xt=ft[0],Jt=ft[1],Gt=Object(t.useState)(!0),De=Object(I.a)(Gt,2),xt=De[0],gt=De[1],Ht=Object(t.useState)(!1),Ue=Object(I.a)(Ht,2),Ke=Ue[0],Ut=Ue[1],Kt=le.a.useForm(),zt=Object(I.a)(Kt,1),ut=zt[0],It=Object(t.useState)([]),Lt=Object(I.a)(It,2),Le=Lt[0],Fe=Lt[1],At=Object(t.useState)(1),St=Object(I.a)(At,2),yt=St[0],Pt=St[1],Ct=Object(t.useState)([]),bt=Object(I.a)(Ct,2),Ot=bt[0],Ft=bt[1],Dt=Object(t.useState)(!0),Mt=Object(I.a)(Dt,2),rn=Mt[0],an=Mt[1],Yt=Object(t.useState)(!1),Zt=Object(I.a)(Yt,2),cn=Zt[0],en=Zt[1];Object(t.useEffect)(function(){Ge.actionTabs.key==="Collaborators-AddCollaborator"&&(an(!0),gt(!0),qt())},[Ge.actionTabs.key]);var qt=function(){var Xe=Object(y.a)(_.a.mark(function be(){var Ee;return _.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,rt({type:"classroomList/getSchoolList",payload:{}});case 2:Ee=Pe.sent,Jt(Ee.map(function(Me){return{value:Me}}));case 4:case"end":return Pe.stop()}},be)}));return function(){return Xe.apply(this,arguments)}}(),Wt=function(){var be,Ee;if(!((be=ut.getFieldValue())===null||be===void 0||((Ee=be.keyword)===null||Ee===void 0)?void 0:Ee.trim())){D.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),Fe([]);return}an(!1),gt(!0),Ut(!1),Pt(1),Ft([]),tn(!0)},dn=function(be){be=String(be);var Ee=Ot.indexOf(be);Ee<0?Ot.push(be):Ot.splice(Ee,1),Ft(Object(ve.a)(Ot))},tn=function(){var Xe=Object(y.a)(_.a.mark(function be(){var Ee,Te,Pe,Me,Qe,st=arguments;return _.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:if(Ee=st.length>0&&st[0]!==void 0?st[0]:!1,!(xt&&!Ke||Ee)){sn.next=11;break}return Me=ut.getFieldValue(),Ut(!0),Pt(Ee?1:yt+1),sn.next=7,Object(Re.pb)({page:Ee?1:yt+1,container_id:mt.pathId,container_type:3,school_name:(Me==null?void 0:Me.school_name)||null,keyword:(Me==null||((Te=Me.keyword)===null||Te===void 0)?void 0:Te.trim())||null});case 7:Qe=sn.sent,Fe(Ee?Object(ve.a)(Qe.users):[].concat(Object(ve.a)(Le),Object(ve.a)(Qe.users))),Ut(!1),((Pe=Qe.users)===null||Pe===void 0?void 0:Pe.length)<10&>(!1);case 11:case"end":return sn.stop()}},be)}));return function(){return Xe.apply(this,arguments)}}(),ht=function(){var Xe=Object(y.a)(_.a.mark(function be(){var Ee;return _.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Ot==null?void 0:Ot.length){Pe.next=4;break}D.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),Pe.next=10;break;case 4:return en(!0),Pe.next=7,Object(K.b)({id:mt.pathId,user_ids:Ot});case 7:Ee=Pe.sent,en(!1),Ee&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),lt(),Nt&&Nt());case 10:case"end":return Pe.stop()}},be)}));return function(){return Xe.apply(this,arguments)}}(),lt=function(){ut.setFieldsValue({keyword:""}),rt({type:"pathsDetail/setActionTabs",payload:{}})},ct=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(be,Ee){return i.a.createElement(ie.a,{value:Ee.numid,checked:Ot.includes(String(Ee.numid)),disabled:!!be})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(be,Ee){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement(ze.Link,{className:"bold c-black",to:"/users/".concat(Ee.login),target:"_blank"},be||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement("span",null,be||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement("span",null,be||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement("span",null,be||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement("span",null,be||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be},i.a.createElement("span",null,be||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(be){return be?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(be){return i.a.createElement(e.a,{placement:"bottom",title:be&&de()(be).format("YYYY-MM-DD HH:mm")},i.a.createElement("span",null,be&&de()(be).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(be){if(be===1)return i.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return i.a.createElement(x.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Ge.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:cn,onOk:ht,onCancel:lt},i.a.createElement(le.a,{layout:"inline",form:ut,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Wt},i.a.createElement(le.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},i.a.createElement(b.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),i.a.createElement(le.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},i.a.createElement(pe.a,{allowClear:!0,defaultOpen:!1,options:Xt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(be,Ee){return Ee.value.toUpperCase().indexOf(be.toUpperCase())!==-1}})),i.a.createElement(le.a.Item,null,i.a.createElement(r.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),rn&&i.a.createElement("div",{className:"tc font16 c-light-black mt40"},i.a.createElement("img",{src:J("E7E6"),width:"100",alt:""}),i.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!rn&&i.a.createElement("section",null,i.a.createElement("div",{className:"flexd-table-header mt20"},i.a.createElement(Q.a,{pagination:!1,dataSource:[],columns:ct})),i.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},i.a.createElement(Be.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(be){tn()},hasMore:xt,useWindow:!1},i.a.createElement(Q.a,{loading:Ke,showHeader:!1,pagination:!1,dataSource:Le,columns:ct,onRow:function(be){return{onClick:function(Te){Te.currentTarget.querySelector("input").disabled||dn(Te.currentTarget.querySelector("input").value)}}}})))))},Ze=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.loading;return{pathsDetail:Oe,loading:Ge}})(ot),et=function(Oe){var Ge,We,rt,wt,Nt,mt,kt,ft,Xt,Jt,Gt,De,xt,gt,Ht,Ue,Ke,Ut,Kt,zt,ut,It,Lt,Le,Fe=Oe.pathsDetail,At=Oe.user,St=Oe.globalSetting,yt=Oe.loading,Pt=Oe.dispatch,Ct=Object(fe.a)(Oe,["pathsDetail","user","globalSetting","loading","dispatch"]),bt=Object(S.m)(),Ot=Object(t.useState)(!0),Ft=Object(I.a)(Ot,2),Dt=Ft[0],Mt=Ft[1],rn=Object(t.useState)(),an=Object(I.a)(rn,2),Yt=an[0],Zt=an[1],cn=Object(t.useState)(),en=Object(I.a)(cn,2),qt=en[0],Wt=en[1],dn=function(){var Ee=Object(y.a)(_.a.mark(function Te(){var Pe;return _.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(qt==null?void 0:qt.trim()){Qe.next=3;break}return D.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Qe.abrupt("return");case 3:return Qe.next=5,Object(K.I)({id:bt.pathId,team_title:qt.trim()});case 5:Pe=Qe.sent,Zt(!Yt),(Pe==null?void 0:Pe.status)===0&&(Wt(null),D.b.success(Pe.message),Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}}));case 8:case"end":return Qe.stop()}},Te)}));return function(){return Ee.apply(this,arguments)}}(),tn=function(){var Ee=Object(y.a)(_.a.mark(function Te(Pe){return _.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:x.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var st=Object(y.a)(_.a.mark(function sn(){var ln,xn;return _.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.next=2,Object(K.k)({id:bt.pathId,user_id:Pe});case 2:ln=pn.sent,(ln==null?void 0:ln.status)===1&&(((xn=At.userInfo)===null||xn===void 0?void 0:xn.user_id)===Pe&&m.c.push("/paths"),D.b.info(ln==null?void 0:ln.message),Xe());case 4:case"end":return pn.stop()}},sn)}));function on(){return st.apply(this,arguments)}return on}()});case 1:case"end":return Qe.stop()}},Te)}));return function(Pe){return Ee.apply(this,arguments)}}(),ht=function(){var Ee=Object(y.a)(_.a.mark(function Te(Pe){var Me;return _.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Object(K.B)({id:bt.pathId,user_id:Pe});case 2:Me=st.sent,Me&&Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}});case 4:case"end":return st.stop()}},Te)}));return function(Pe){return Ee.apply(this,arguments)}}(),lt=function(){var Ee=Object(y.a)(_.a.mark(function Te(Pe){var Me;return _.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Object(K.A)({id:bt.pathId,user_id:Pe});case 2:Me=st.sent,Me&&Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}});case 4:case"end":return st.stop()}},Te)}));return function(Pe){return Ee.apply(this,arguments)}}(),ct=function(){Pt({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},Xe=function(){Pt({type:"pathsDetail/getPathsDetail",payload:{id:bt.pathId}}),Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}})},be=function(){var Te;return Yt?i.a.createElement("div",{className:V.a.flexRow},i.a.createElement(b.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:qt,onChange:function(Me){return Wt(Me.target.value)}}),i.a.createElement(r.a,{className:"ml5",onClick:function(){return Zt(!Yt)}},"\u53D6\u6D88"),i.a.createElement(r.a,{className:"ml5",type:"primary",onClick:dn},"\u786E\u5B9A")):i.a.createElement("div",{className:V.a.flexRowAbout},i.a.createElement("p",{className:"font16 current",onDoubleClick:function(){var Me;((Me=Fe.detail)===null||Me===void 0?void 0:Me.allow_add_member)&&Zt(!Yt)}},(Te=Fe.rightData)===null||Te===void 0?void 0:Te.team_title),i.a.createElement(s.a,{placement:"right",content:i.a.createElement("div",{className:"current"},i.a.createElement("div",{onClick:function(){return Zt(!Yt)}},"\u91CD\u547D\u540D")),trigger:"hover"},i.a.createElement("i",{className:"iconfont icon-sandian c-light-black font18 current"})))};return i.a.createElement("section",{className:V.a.rightWrap},((Ge=Fe.rightData)===null||Ge===void 0?void 0:Ge.qrcode_img)&&i.a.createElement("div",{className:V.a.qrCode},i.a.createElement("img",{src:(We=Fe.rightData)===null||We===void 0?void 0:We.qrcode_img})),i.a.createElement("div",{className:V.a.card},i.a.createElement("p",{className:"mb30"},i.a.createElement("span",{className:"font16"},"\u8BFE\u7A0B\u987B\u77E5")),i.a.createElement(ae.a,{className:"fon16",value:(rt=Fe.detail)===null||rt===void 0?void 0:rt.learning_notes})),((wt=Fe.rightData)===null||wt===void 0?void 0:wt.progress)&&i.a.createElement("div",{className:V.a.card},i.a.createElement("p",{className:"mb20"},i.a.createElement("span",{className:"font16 mr5"},"\u5B66\u4E60\u8FDB\u5EA6"),i.a.createElement(e.a,{placement:"bottom",title:"\u5DF2\u901A\u5173\u6570/\u5173\u5361\u603B\u6570"},i.a.createElement("span",{className:"c-light-green"},(Nt=Fe.rightData)===null||Nt===void 0?void 0:Nt.progress.my_score," / ",(mt=Fe.rightData)===null||mt===void 0?void 0:mt.progress.all_score))),i.a.createElement("p",{className:"mb10 ".concat(V.a.flexRowAbout)},i.a.createElement("span",{className:"c-light-green font14"},"\u5DF2\u5B66",(kt=Fe.rightData)===null||kt===void 0?void 0:kt.progress.learned,"%"),i.a.createElement("span",{className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(se.F)((ft=Fe.rightData)===null||ft===void 0?void 0:ft.progress.time)," ")),i.a.createElement(P.a,{percent:(Xt=Fe.rightData)===null||Xt===void 0?void 0:Xt.progress.learned,showInfo:!1,status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}}),i.a.createElement("span",{className:"font14 c-grey-888 mt5"},"\u6CE8: \u201C\u6211\u7684\u8FDB\u5C55\u201D\u4EE5\u5DF2\u53D1\u5E03\u7684\u5B9E\u8BAD\u8BE6\u60C5\u5173\u5361\u6570\u4E3A\u51C6\u3002")),!!((Jt=Fe.rightData)===null||Jt===void 0||((Gt=Jt.tags)===null||Gt===void 0)?void 0:Gt.length)&&i.a.createElement("div",{className:V.a.skillWrap},i.a.createElement("p",{className:"".concat(V.a.skillTopWrap," font16 mb20")},i.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",i.a.createElement("span",{className:"ml5 c-grey-c"},(De=Fe.rightData)===null||De===void 0||((xt=De.tags)===null||xt===void 0)?void 0:xt.length))),i.a.createElement("div",{className:"".concat(V.a.skillContentWrap," ").concat(Dt?V.a.skillContentWrapMin:V.a.skillContentWrapMax)},(gt=Fe.rightData)===null||gt===void 0||((Ht=gt.tags)===null||Ht===void 0)?void 0:Ht.map(function(Ee,Te){return i.a.createElement(i.a.Fragment,{key:Te},Ee.tag_name&&i.a.createElement("span",{className:Ee.status?V.a.skillContentIcon:V.a.skillContentIconNoStatus},Ee.tag_name))})),((Ue=Fe.rightData)===null||Ue===void 0||((Ke=Ue.tags)===null||Ke===void 0)?void 0:Ke.length)>15&&i.a.createElement(i.a.Fragment,null,Dt?i.a.createElement("div",{className:V.a.skillExpandAllWrap,onClick:function(){return Mt(!Dt)}},i.a.createElement("span",{className:"mr8 current"},i.a.createElement("div",null,i.a.createElement("p",{className:"".concat(V.a.skillExpandAllContent," font12")},"\u5C55\u5F00\u5168\u90E8"),i.a.createElement("p",{className:"".concat(V.a.skillExpandAllContent," font12")},i.a.createElement("i",{className:"iconfont icon-jiantou9"}))))):i.a.createElement("div",{className:V.a.skillExpandAllWrap,onClick:function(){return Mt(!Dt)}},i.a.createElement("span",{className:"mr8 current"},i.a.createElement("div",null,i.a.createElement("p",{className:"".concat(V.a.skillExpandAllContent," font12")},i.a.createElement("i",{className:"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu-"})),i.a.createElement("p",{className:"".concat(V.a.skillExpandAllContent," font12")},"\u6536\u8D77\u5168\u90E8")))))),!!((Ut=Fe.rightData)===null||Ut===void 0||((Kt=Ut.members)===null||Kt===void 0)?void 0:Kt.length)&&i.a.createElement("div",{className:"".concat(V.a.card," pb0")},((zt=Fe.detail)===null||zt===void 0?void 0:zt.allow_add_member)?be():i.a.createElement("p",{className:"font16"},(ut=Fe.rightData)===null||ut===void 0?void 0:ut.team_title),(It=Fe.rightData)===null||It===void 0||((Lt=It.members)===null||Lt===void 0)?void 0:Lt.map(function(Ee,Te){var Pe,Me,Qe,st;return i.a.createElement("div",{key:Ee.id,className:"".concat(V.a.memberItem," ").concat(V.a.flexRowAbout)},i.a.createElement("a",{href:Ee.user_url,target:"_blank"},i.a.createElement("img",{height:"80",width:"80",className:V.a.radius,src:"".concat(E.a.IMG_SERVER,"/images/").concat(Ee.image_url)})),i.a.createElement("div",{className:V.a.memberItemContent},i.a.createElement("span",{className:"".concat(V.a.flexRowAbout," mb10 mt5")},i.a.createElement("span",{className:"multi_ellipsis1"},Ee.name),((Pe=Fe.detail)===null||Pe===void 0?void 0:Pe.allow_add_member)&&Ee.role===2&&i.a.createElement("a",{onClick:function(){return tn(Ee.id)}},i.a.createElement("i",{className:"iconfont icon-shanchu c-grey-c font14"}))),i.a.createElement("span",{className:"".concat(V.a.flexRowAbout," mb10 mt20")},i.a.createElement("span",{className:"multi_ellipsis1"},Ee.school),((Me=Fe.detail)===null||Me===void 0?void 0:Me.allow_add_member)&&i.a.createElement("span",null,Te<((Qe=Fe.rightData)===null||Qe===void 0||((st=Qe.members)===null||st===void 0)?void 0:st.length)-1&&i.a.createElement("a",{onClick:function(){return lt(Ee.id)}},i.a.createElement(e.a,{placement:"top",title:"\u4E0B\u79FB"},i.a.createElement("i",{className:"iconfont icon-xiangxiayi c-light-green font18"}))),Te!==0&&i.a.createElement("a",{className:"ml5",onClick:function(){return ht(Ee.id)}},i.a.createElement(e.a,{placement:"top",title:"\u4E0A\u79FB"},i.a.createElement("i",{className:"iconfont icon-xiangshangyi c-light-green font18"})))))))}),((Le=Fe.detail)===null||Le===void 0?void 0:Le.allow_add_member)&&i.a.createElement(Y.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},i.a.createElement(U.a,{className:"c-blue current",onClick:ct},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),i.a.createElement(Ze,{onReloadData:Xe}))},dt=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.user,We=tt.loading,rt=tt.globalSetting;return{pathsDetail:Oe,user:Ge,globalSetting:rt,loading:We.models.index}})(et),Et=J("0Owb"),nn=J("ngQI"),En=J("HBuW"),bn=J("VlDO"),Qt=J.n(bn),Ln=J("bbsP"),Fn=J("/wGt"),Pn=J("DjyN"),Rn=J("NUBc"),Mn=J("/zsF"),kn=J("PArb"),ar=J("cCSd"),wn=J.n(ar),ir=b.a.Search,or=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],sr=function(Oe){var Ge,We=Oe.classroomList,rt=Oe.loading,wt=Oe.dispatch,Nt=Oe.cb,mt=Oe.shixunIds,kt=mt===void 0?[]:mt,ft=Object(S.m)(),Xt=Object(S.l)(),Jt=We.actionTabs,Gt=le.a.useForm(),De=Object(I.a)(Gt,1),xt=De[0],gt=We.shixunLists,Ht=Object(t.useState)([]),Ue=Object(I.a)(Ht,2),Ke=Ue[0],Ut=Ue[1],Kt=Object(t.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),zt=Object(I.a)(Kt,2),ut=zt[0],It=zt[1];Object(t.useEffect)(function(){We.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"&&(ut.page=1,wt({type:"classroomList/getShixunLists",payload:Object(M.a)({},ut)}))},[We.actionTabs.key]);var Lt=function(){wt({type:"classroomList/setActionTabs",payload:{}}),It({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return We.actionTabs.key!=="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"?null:i.a.createElement(Fn.a,{placement:"bottom",height:"100%",closable:!1,visible:We.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",key:"bottom",className:wn.a.drawer,footer:i.a.createElement("div",{className:"tc"},i.a.createElement(r.a,{size:"large",onClick:function(){Lt(),Ut([])},style:{marginRight:8}},"\u53D6\u6D88"),i.a.createElement(r.a,{size:"large",onClick:Object(y.a)(_.a.mark(function Le(){var Fe,At,St,yt;return _.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:Fe=function(Ot){var Ft=Ke[Ot];if(kt.includes(Ft)){var Dt,Mt;return D.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(gt==null||((Dt=gt.shixun_list)===null||Dt===void 0||((Mt=Dt.find(function(rn){return rn.id===Ft}))===null||Mt===void 0))?void 0:Mt.title)),{v:void 0}}},At=0;case 2:if(!(At<(Ke==null?void 0:Ke.length))){Ct.next=9;break}if(St=Fe(At),!(typeof St=="object")){Ct.next=6;break}return Ct.abrupt("return",St.v);case 6:At++,Ct.next=2;break;case 9:return Ct.next=11,Object(K.D)({id:We.actionTabs.id,subject_id:We.actionTabs.subject_id,shixun_ids:Object(ve.a)(Ke)});case 11:yt=Ct.sent,Ut([]),(yt==null?void 0:yt.shixuns_list)&&(Lt(),Nt(yt.shixuns_list));case 14:case"end":return Ct.stop()}},Le)})),type:"primary"},"\u786E\u5B9A"))},i.a.createElement("section",{className:"tc"},i.a.createElement(ir,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:wn.a.search,onSearch:function(Fe){ut.keyword=Fe,ut.page=1,wt({type:"classroomList/getShixunLists",payload:Object(M.a)({},ut)})}})),i.a.createElement("section",{className:"edu-container"},or.map(function(Le,Fe){var At;return i.a.createElement("ul",{className:wn.a.menu,key:Fe},i.a.createElement("li",null,Le.name),Le==null||((At=Le.children)===null||At===void 0)?void 0:At.map(function(St,yt){return i.a.createElement("li",{className:ut[Le.id]==St.id?wn.a.actived:"",onClick:function(){ut[Le.id]=St.id,It(Object(M.a)({},ut)),wt({type:"classroomList/getShixunLists",payload:Object(M.a)({},ut)})}},i.a.createElement("strong",null,St.name))}))}),gt==null||((Ge=gt.shixun_list)===null||Ge===void 0)?void 0:Ge.map(function(Le,Fe){return i.a.createElement("div",{className:wn.a.listItem,key:Fe},i.a.createElement(ie.a,{checked:Ke.includes(Le.id),value:Le.id,onChange:function(St){var yt=Ke.indexOf(Le.id);Ke.indexOf(Le.id)>-1?Ut(Ke.filter(function(Pt){return Pt!==Le.id})):Ut(Ke.concat(Le.id))}}),i.a.createElement("div",{className:wn.a.info},i.a.createElement("div",{className:wn.a.title},i.a.createElement("div",{className:wn.a.titleLeft},i.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Le==null?void 0:Le.identifier,"/challenges"),target:"_blank"},i.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Le.title}})))),i.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},i.a.createElement("span",{className:wn.a.description,dangerouslySetInnerHTML:{__html:Le.description}})),i.a.createElement("div",{className:" mt15"},Le.challenge_names.map(function(At,St){return i.a.createElement("span",{key:St,className:"mr30 font12"},"\u7B2C",St+1,"\u5173 ",At," ")})),i.a.createElement(kn.a,{dashed:!0}),i.a.createElement("div",{className:"c-light-black mt20 font12"},i.a.createElement("span",null,Le.author_name),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,Le.author_school_name),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Le.level),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),i.a.createElement("span",null,Le.study_count))))}),i.a.createElement("p",null)),i.a.createElement("div",{className:"tc"},i.a.createElement(Rn.a,{current:ut.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:gt==null?void 0:gt.shixuns_count,onChange:function(Fe){ut.page=Fe,wt({type:"classroomList/getShixunLists",payload:Object(M.a)({},ut)})}})))},ur=Object(m.a)(function(tt){var Oe=tt.classroomList,Ge=tt.loading;return{classroomList:Oe,loading:Ge}})(sr),lr=J("V0Rq"),cr=J("sBCT"),dr=J("qdXH"),pr=function(Oe){var Ge,We=Oe.pathsDetail,rt=Oe.user,wt=Oe.globalSetting,Nt=Oe.loading,mt=Oe.dispatch,kt=Object(fe.a)(Oe,["pathsDetail","user","globalSetting","loading","dispatch"]),ft=Object(S.m)(),Xt=We.stageData,Jt=Object(t.useState)([]),Gt=Object(I.a)(Jt,2),De=Gt[0],xt=Gt[1],gt=Object(t.useState)(-1),Ht=Object(I.a)(gt,2),Ue=Ht[0],Ke=Ht[1],Ut=Object(t.useState)(!1),Kt=Object(I.a)(Ut,2),zt=Kt[0],ut=Kt[1],It=Object(t.useState)({name:"",is_jupyter:!1}),Lt=Object(I.a)(It,2),Le=Lt[0],Fe=Lt[1],At=le.a.useForm(),St=Object(I.a)(At,1),yt=St[0],Pt=le.a.useForm(),Ct=Object(I.a)(Pt,1),bt=Ct[0],Ot=Object(t.useState)(),Ft=Object(I.a)(Ot,2),Dt=Ft[0],Mt=Ft[1],rn=Object(t.useState)([]),an=Object(I.a)(rn,2),Yt=an[0],Zt=an[1],cn=Object(t.useState)(),en=Object(I.a)(cn,2),qt=en[0],Wt=en[1];Object(t.useEffect)(function(){xt(Object(ve.a)(Xt))},[Xt]);var dn=function(){var Ye=Object(y.a)(_.a.mark(function ge(Se,Ie){var ke;return _.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(mt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Ie){He.next=7;break}return He.next=4,Object(En.v)({id:Se});case 4:He.t0=He.sent,He.next=10;break;case 7:return He.next=9,Object(En.w)({id:Se});case 9:He.t0=He.sent;case 10:if(ke=He.t0,mt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((ke==null?void 0:ke.game_identifier)||(ke==null?void 0:ke.identifier))){He.next=15;break}return Object(se.y)(Ie?"/tasks/".concat(ke==null?void 0:ke.identifier,"/jupyter"):"/tasks/".concat(ke.game_identifier)),He.abrupt("return");case 15:(ke==null?void 0:ke.status)===2?tn(ke==null?void 0:ke.message):(ke==null?void 0:ke.status)===3&&ht(ke==null?void 0:ke.message);case 16:case"end":return He.stop()}},ge)}));return function(Se,Ie){return Ye.apply(this,arguments)}}(),tn=function Ye(ge){var Se;ge=((Se=ge)===null||Se===void 0?void 0:Se.includes(".json"))?ge:"".concat(ge,".json"),x.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Ie=Object(y.a)(_.a.mark(function Ve(){var He,Ne;return _.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,Object(lr.I)({url:ge});case 2:if(He=Tt.sent,He){Tt.next=5;break}return Tt.abrupt("return");case 5:return D.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Tt.next=8,Object(En.w)({id:He.shixun_identifier});case 8:if(Ne=Tt.sent,!(Ne==null?void 0:Ne.game_identifier)){Tt.next=12;break}return Object(se.y)("/tasks/".concat(Ne.game_identifier)),Tt.abrupt("return");case 12:(Ne==null?void 0:Ne.status)===2?Ye(Ne==null?void 0:Ne.message):(Ne==null?void 0:Ne.status)===3&&ht(Ne==null?void 0:Ne.message);case 13:case"end":return Tt.stop()}},Ve)}));function ke(){return Ie.apply(this,arguments)}return ke}()})},ht=function(ge){x.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ge,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},lt=function(){var ge={shixuns_list:[]};Xe(De.length,ge),xt([].concat(Object(ve.a)(De),[ge])),Mt(!0)},ct=function(){Ue===De.length-1&&Dt&&(Sn(),xt(De.filter(function(ge,Se){return Se!==De.length-1}))),Te(),Ke(-1)},Xe=function(ge,Se){if(!An())return;Ke(ge),yt.setFieldsValue({name:Se.stage_name,description:Se.stage_description})},be=function(ge){De[Ue].shixuns_list=De[Ue].shixuns_list.concat(ge),xt(Object(ve.a)(De))},Ee=function(){var Ye=Object(y.a)(_.a.mark(function ge(Se){var Ie,ke;return _.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(K.c)(Object(M.a)({id:De[Ue].stage_id,subject_id:ft.pathId},Se));case 2:return Ie=He.sent,Ie.id&&(Wt(!1),ke=[Object(M.a)({},Ie)],De[Ue].shixuns_list=De[Ue].shixuns_list.concat(ke),xt(Object(ve.a)(De))),He.abrupt("return",Ie);case 5:case"end":return He.stop()}},ge)}));return function(Se){return Ye.apply(this,arguments)}}(),Te=function(){mt({type:"pathsDetail/getStageData",payload:{subject_id:ft.pathId}}),mt({type:"pathsDetail/getPathsDetail",payload:{id:ft.pathId}}),mt({type:"pathsDetail/getRightData",payload:{id:ft.pathId}}),Sn(),Ke(-1)},Pe=function(){var Ye=Object(y.a)(_.a.mark(function ge(Se){var Ie,ke,Ve;return _.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Se==null?void 0:Se.name){Ne.next=2;break}return Ne.abrupt("return",D.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(Sn(),Ie=[],De[Ue].shixuns_list.map(function($t){$t.item_type==="Shixun"?Ie.push({type:"Shixun",id:$t.id}):Ie.push({type:"VideoItem",id:$t.id})}),!Dt){Ne.next=12;break}return Ne.next=8,Object(K.a)(Object(M.a)(Object(M.a)({},Se),{},{pathId:ft.pathId,list:Ie}));case 8:ke=Ne.sent,(ke==null?void 0:ke.subject_id)&&(De[Ue]=Object(M.a)(Object(M.a)({},De[Ue]),ke)),Ne.next=16;break;case 12:return Ne.next=14,Object(K.H)(Object(M.a)(Object(M.a)({},Se),{},{id:De[Ue].stage_id,list:Ie}));case 14:Ve=Ne.sent,(Ve==null?void 0:Ve.subject_id)&&(De[Ue]=Object(M.a)(Object(M.a)({},De[Ue]),Ve));case 16:case"end":return Ne.stop()}},ge)}));return function(Se){return Ye.apply(this,arguments)}}(),Me=function(ge,Se,Ie){var ke=Array.from(ge),Ve=ke.splice(Se,1),He=Object(I.a)(Ve,1),Ne=He[0];return ke.splice(Ie,0,Ne),ke},Qe=function(ge){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){De[Ue].shixuns_list.splice(ge,1),D.b.success("\u5220\u9664\u6210\u529F"),xt(Object(ve.a)(De)),Pe(yt.getFieldsValue())}})},st=function(ge){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Se=Object(y.a)(_.a.mark(function ke(){var Ve;return _.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(K.m)({id:ge});case 2:Ve=Ne.sent,Ve.status===1&&(Ke(-1),D.b.success("\u5220\u9664\u6210\u529F"),Te());case 4:case"end":return Ne.stop()}},ke)}));function Ie(){return Se.apply(this,arguments)}return Ie}()})},on=function(){Fe({name:"",is_jupyter:!1}),bt.setFieldsValue({name:"",is_jupyter:!1}),ut(!1)},sn=function(ge){var Se;if(!ge.destination)return;var Ie=Me((Se=De[Ue])===null||Se===void 0?void 0:Se.shixuns_list,ge.source.index,ge.destination.index);De[Ue].shixuns_list=Ie,xt(Object(ve.a)(De)),Pe(yt.getFieldsValue())},ln=function(){var Ye=Object(y.a)(_.a.mark(function ge(Se){var Ie;return _.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(An()){Ve.next=2;break}return Ve.abrupt("return");case 2:return Ve.next=4,Object(K.G)({id:Se});case 4:Ie=Ve.sent,Ie.status===1&&Te();case 6:case"end":return Ve.stop()}},ge)}));return function(Se){return Ye.apply(this,arguments)}}(),xn=function(){var Ye=Object(y.a)(_.a.mark(function ge(Se){var Ie;return _.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(An()){Ve.next=2;break}return Ve.abrupt("return");case 2:return Ve.next=4,Object(K.n)({id:Se});case 4:Ie=Ve.sent,Ie.status===1&&Te();case 6:case"end":return Ve.stop()}},ge)}));return function(Se){return Ye.apply(this,arguments)}}(),An=function(){return Ue!==-1?(x.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var Se="Edit_".concat(Ue),Ie=document.getElementById(Se);Ie&&setTimeout(function(){return Ie.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},pn=function(){Pe(yt.getFieldsValue())},Sn=function(){Mt(!1)},Cn=function(ge,Se,Ie){var ke,Ve,He,Ne,$t,Tt,fn,hn,jt,Bt,Vt;return i.a.createElement(Y.a,{className:"list-item-row",align:"middle",key:Se,gutter:[5,10]},i.a.createElement(U.a,null,ge.item_type==="Shixun"?i.a.createElement("i",{className:"iconfont icon-shixun2 c-light-primary font20"}):i.a.createElement("i",{className:"iconfont icon-shipin c-purple-8C1 font20"})),i.a.createElement(U.a,{flex:1,className:!ge.allow_visit&&!ge.to_be_built&&(ge.shixun_status==="\u6682\u672A\u516C\u5F00"||ge.shixun_status==="\u5DF2\u5220\u9664")?Qt.a.color204:""},Ie+1,"-",Se+1,"\xA0\xA0",ge.name,Ue===-1&&ge.complete_status===1&&i.a.createElement("span",{className:Qt.a.completed},i.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),i.a.createElement(U.a,null,Ue===Ie&&i.a.createElement("div",null,i.a.createElement(e.a,{title:"\u5220\u9664"},i.a.createElement("span",{onClick:function(){Qe(Se)},className:"iconfont icon-shanchu c-grey-c"}))),(((ke=rt.userInfo)===null||ke===void 0?void 0:ke.admin)||((Ve=rt.userInfo)===null||Ve===void 0?void 0:Ve.business)||!(!((He=We.detail)===null||He===void 0?void 0:He.allow_statistics)&&((Ne=rt.userInfo)===null||Ne===void 0?void 0:Ne.user_identity)==="\u5B66\u751F"&&(($t=We.detail)===null||$t===void 0?void 0:$t.allow_visit)&&((Tt=We.detail)===null||Tt===void 0?void 0:Tt.courses)))&&Ue!==Ie&&ge.item_type==="VideoItem"&&i.a.createElement("aside",null,i.a.createElement(r.a,{type:"primary",onClick:function(){var vn,_n;if(!((vn=rt.userInfo)===null||vn===void 0?void 0:vn.admin)&&!((_n=rt.userInfo)===null||_n===void 0?void 0:_n.business)&&!ge.can_view)return x.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:i.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});ge.link&&Object(dr.n)({is_f:1,id:ge.id,point:0,total:0}),Object(se.y)(ge.link||"/video/".concat(ge.id,"?subject_id=").concat(ft.pathId))}},ge.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((fn=rt.userInfo)===null||fn===void 0?void 0:fn.admin)||(ge.allow_visit||ge.to_be_built||ge.shixun_status!=="\u6682\u672A\u516C\u5F00"&&ge.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((hn=We.detail)===null||hn===void 0?void 0:hn.allow_statistics)&&((jt=rt.userInfo)===null||jt===void 0?void 0:jt.user_identity)==="\u5B66\u751F"&&((Bt=We.detail)===null||Bt===void 0?void 0:Bt.allow_visit)&&((Vt=We.detail)===null||Vt===void 0?void 0:Vt.courses)))&&Ue!==Ie&&ge.item_type==="Shixun"&&i.a.createElement("aside",null,i.a.createElement(ze.Link,{to:"/shixuns/".concat(ge.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),ge.shixun_status!=="\u6682\u672A\u516C\u5F00"&&i.a.createElement(r.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(N.c)(mt))return;dn(ge.identifier,ge.is_jupyter)}},"\u5F00\u59CB\u5B9E\u6218")),Ue===-1&&!ge.allow_visit&&!ge.to_be_built&&ge.shixun_status==="\u6682\u672A\u516C\u5F00"&&i.a.createElement("span",{className:Qt.a.color204},"\u6682\u672A\u516C\u5F00"),Ue===-1&&!ge.allow_visit&&!ge.to_be_built&&ge.shixun_status==="\u5DF2\u5220\u9664"&&i.a.createElement("span",{className:Qt.a.color204},"\u5DF2\u5220\u9664"),Ue===-1&&ge.item_type==="Shixun"&&i.a.createElement("span",{className:"experiment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",ge.challenges_count)))},In=function(ge,Se){var Ie,ke,Ve,He,Ne,$t,Tt,fn,hn;return i.a.createElement("section",{key:Se,className:"bg-white mt20 pt30"},i.a.createElement("aside",{className:"pl20 pr20"},i.a.createElement(Y.a,{gutter:[5,20],align:"middle"},i.a.createElement(U.a,{flex:"22px"},i.a.createElement("i",{className:"iconfont icon-zhangjie mr5 c-light-primary font18"})),i.a.createElement(U.a,{flex:1,className:"tl font18 bold c-grey-333"},ge.stage_name||"\u7B2C".concat(De==null?void 0:De.length,"\u90E8\u5206")),i.a.createElement(U.a,null,(((Ie=rt.userInfo)===null||Ie===void 0?void 0:Ie.admin)||((ke=rt.userInfo)===null||ke===void 0?void 0:ke.business)||((Ve=We.detail)===null||Ve===void 0?void 0:Ve.allow_statistics))&&Ue===Se&&!Dt&&i.a.createElement(e.a,{title:"\u5220\u9664"},i.a.createElement("span",{onClick:function(){st(ge.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),(((He=rt.userInfo)===null||He===void 0?void 0:He.admin)||((Ne=rt.userInfo)===null||Ne===void 0?void 0:Ne.business)||(($t=We.detail)===null||$t===void 0?void 0:$t.allow_statistics))&&Ue!==Se&&i.a.createElement("div",null,Se>0&&i.a.createElement(e.a,{title:"\u5411\u4E0A\u79FB\u52A8"},i.a.createElement("span",{onClick:function(){return ln(ge.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),Se<De.length-1&&i.a.createElement(e.a,{title:"\u5411\u4E0B\u79FB\u52A8"},i.a.createElement("span",{onClick:function(){return xn(ge.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),!Dt&&i.a.createElement(e.a,{title:"\u7F16\u8F91"},i.a.createElement("span",{onClick:function(){return Xe(Se,ge)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),i.a.createElement(Y.a,{gutter:[5,20]},i.a.createElement(U.a,{span:24},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:(Tt=ge.stage_description)===null||Tt===void 0?void 0:Tt.replace(/[\r|\n]/gi,"<br/>")}})))),Ue===Se&&i.a.createElement("div",{className:"pl20 pr20"},i.a.createElement("aside",null,i.a.createElement(le.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(b.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(De==null?void 0:De.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:pn})),i.a.createElement(le.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},i.a.createElement(b.a.TextArea,{rows:5,maxLength:300,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(De==null?void 0:De.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:pn}))),i.a.createElement("aside",null,i.a.createElement(r.a,{size:"large",className:"mt20",ghost:!0,type:"primary",onClick:function(){if(!De[Ue].stage_id)return D.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(N.c)(mt))return;if(!Object(N.a)())return;ut(!0),bt.setFieldsValue({name:"",is_jupyter:!1})}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE"),i.a.createElement("br",null),i.a.createElement(r.a,{size:"large",className:"mt10",ghost:!0,type:"primary",onClick:function(){var Bt;if(!De[Ue].stage_id)return D.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");mt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",id:De[Ue].stage_id,subject_id:ft.pathId}}),Zt(ge==null||((Bt=ge.shixuns_list)===null||Bt===void 0)?void 0:Bt.map(function(Vt){return Vt.id}))}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"),i.a.createElement("br",null),!(wt==null||((fn=wt.setting)===null||fn===void 0)?void 0:fn.is_local)&&i.a.createElement(r.a,{size:"large",className:"mt10",ghost:!0,type:"primary",onClick:function(){var Bt,Vt;if(!De[Ue].stage_id)return D.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Bt=rt.userInfo)===null||Bt===void 0?void 0:Bt.admin)||((Vt=rt.userInfo)===null||Vt===void 0?void 0:Vt.is_teacher)&&Object(N.b)())&&Wt(!0)}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),i.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(Se)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),i.a.createElement("aside",{className:Qt.a.shixuns},Ue>-1?i.a.createElement(nn.a,{onDragEnd:sn},i.a.createElement(nn.c,{droppableId:"droppable-id"},function(jt,Bt){var Vt;return i.a.createElement("div",Object(Et.a)({className:"mt20",ref:jt.innerRef},jt.droppableProps,{onScroll:function(){}}),(Vt=ge.shixuns_list)===null||Vt===void 0?void 0:Vt.map(function(mn,vn){var _n;return i.a.createElement(nn.b,{draggableId:"".concat((_n=mn.id)===null||_n===void 0?void 0:_n.toString(),"-").concat(Se,"-").concat(vn),index:vn,key:mn.id},function(Tn,Bn){return i.a.createElement("div",Object(Et.a)({ref:Tn.innerRef},Tn.draggableProps,Tn.dragHandleProps),Cn(mn,vn,Se))})}))})):i.a.createElement("div",{className:"mt20"},(hn=ge.shixuns_list)===null||hn===void 0?void 0:hn.map(function(jt,Bt){return i.a.createElement("div",null,Cn(jt,Bt,Se))}))),Ue===Se&&i.a.createElement("aside",{className:Qt.a.buttons},i.a.createElement(r.a,{onClick:ct,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),i.a.createElement(r.a,{onClick:ct,size:"large",type:"primary"},"\u4FDD\u5B58")))};return i.a.createElement("section",null,i.a.createElement(le.a,{form:yt,onFinish:Pe},De==null?void 0:De.map(function(Ye,ge){return i.a.createElement("div",{key:ge},In(Ye,ge))})),((Ge=We.detail)===null||Ge===void 0?void 0:Ge.allow_statistics)&&!Dt&&Ue===-1&&i.a.createElement("div",{className:Qt.a.addStage,onClick:lt},i.a.createElement("span",{className:Qt.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"),i.a.createElement(x.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE",visible:zt,onOk:Object(y.a)(_.a.mark(function Ye(){var ge;return _.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,bt.validateFields();case 2:return Ie.next=4,Object(K.C)(Object(M.a)({id:De[Ue].stage_id,subject_id:ft.pathId},Le));case 4:ge=Ie.sent,on(),ge.id&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),be([ge]));case 7:case"end":return Ie.stop()}},Ye)})),onCancel:on},i.a.createElement(le.a,{form:bt,onValuesChange:function(ge){Fe(Object(M.a)(Object(M.a)({},Le),ge))}},i.a.createElement(le.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},i.a.createElement(h.a.Group,null,i.a.createElement(h.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),i.a.createElement(h.a,{value:!0},"jupyter\u5B9E\u8BAD"))),i.a.createElement(le.a.Item,{label:"\u5B9E\u8BAD\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},i.a.createElement(b.a,{suffix:i.a.createElement("span",null,Le.name.length,"/60")})))),i.a.createElement(ur,{shixunIds:Yt,cb:be}),i.a.createElement(cr.a,{visible:qt,onCancel:function(){return Wt(!1)},onOk:Ee}))},fr=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.user,We=tt.loading,rt=tt.globalSetting;return{pathsDetail:Oe,user:Ge,globalSetting:rt,loading:We.models.index}})(pr),hr=J("XzQ7"),Un=J.n(hr),mr=function(Oe){var Ge,We=Oe.pathsDetail,rt=Oe.globalSetting,wt=Oe.loading,Nt=Oe.dispatch,mt=Object(fe.a)(Oe,["pathsDetail","globalSetting","loading","dispatch"]),kt=Object(S.m)();return Object(t.useEffect)(function(){if(!kt.pathId)return;Nt({type:"pathsDetail/getPathsDetail",payload:{id:kt.pathId}}),Nt({type:"pathsDetail/getRightData",payload:{id:kt.pathId}}),Nt({type:"pathsDetail/getStageData",payload:{subject_id:kt.pathId}})},[kt.pathId]),Object(t.useEffect)(function(){var ft;document.title=((ft=We.detail)===null||ft===void 0?void 0:ft.name)||"EduCoder"},[We]),i.a.createElement(ce.a,{spinning:!1},i.a.createElement("section",{className:Un.a.bg},i.a.createElement($,null),i.a.createElement("section",{className:"edu-container mb80 ".concat(Un.a.wrap)},i.a.createElement("aside",{className:Un.a.content},i.a.createElement("div",{className:Un.a.intro},i.a.createElement("div",{className:Un.a.introTitle},i.a.createElement("span",{className:"font16"},"\u7B80\u4ECB")),i.a.createElement(ae.a,{value:(Ge=We.detail)===null||Ge===void 0?void 0:Ge.description})),i.a.createElement(fr,null)),i.a.createElement(dt,null))))},Cr=ye.default=Object(m.a)(function(tt){var Oe=tt.pathsDetail,Ge=tt.loading,We=tt.globalSetting;return{pathsDetail:Oe,globalSetting:We,loading:Ge}})(mr)},Aky1:function(pt,ye,J){"use strict";J.d(ye,"a",function(){return g});var je=J("ErOA"),ce=J("qGJc"),fe=J.n(ce),t="",i;function S(o){m(o)}function m(o){debugger;i=new fe.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),o.addFileSuccess&&o.addFileSuccess(p),i.startUpload()},onUploadstarted:function(p){var u=p.file.name;if(p.videoId){var r="/api/users/".concat(t,"/video_auths.json");Object(je.a)(r,{method:"put",body:{video_id:p.videoId,title:u,file_name:u}}).then(function(d){if(d.status==-1){o.onUploadError&&o.onUploadError(p);return}var f=d.data,c=f.UploadAuth,A=f.UploadAddress,w=f.VideoId;i.setUploadAuthAndAddress(p,c,A)}).catch(function(d){i.deleteFile(i._curIndex),i.nextUpload(),console.log(d)})}else{var e="/api/users/".concat(t,"/video_auths.json"),a="";Object(je.a)(e,{method:"Post",body:{title:a+u,file_name:a+u}}).then(function(d){if(d){var f=d.data,c=f.UploadAuth,A=f.UploadAddress,w=f.VideoId;i.setUploadAuthAndAddress(p,c,A,w)}}).catch(function(d){i.deleteFile(i._curIndex),i.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(p){o.onUploadSucceed&&o.onUploadSucceed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(p,u,e){o.onUploadFailed&&o.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){o.onUploadProgress&&o.onUploadProgress(p,u,e);var a=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(t,"/video_auths.json");Object(je.a)(u,{method:"put",body:{video_id:p.videoId}}).then(function(e){var a=e.data,r=a.UploadAuth;i.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(p){o.onUploadEnd&&o.onUploadEnd(p),console.log("onUploadEnd: uploaded all the files")}}),o.gotUploader&&o.gotUploader(i)}function g(o,l){o&&(t=o),S(l);debugger}},E7E6:function(pt,ye){pt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},JTSX:function(pt,ye,J){pt.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},NLgs:function(pt,ye,J){"use strict";J.d(ye,"c",function(){return o}),J.d(ye,"d",function(){return l}),J.d(ye,"b",function(){return u}),J.d(ye,"a",function(){return e});var je=J("2qtc"),ce=J("kLXV"),fe=J("q1tI"),t=J.n(fe),i=J("9kvl"),S=J("xKgJ"),m=J("1vsH"),g=J("m3rI"),o=function(r){return!!(l(r)&&p())},l=function(r){return Object(S.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},p=function(){var r,d=Object(i.b)()._store.getState(),f=d.user;return((r=f.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(ce.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:t.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(){i.c.push("/account/profile/edit")}}),!1)},u=function(){var r,d=Object(i.b)()._store.getState(),f=d.user;return((r=f.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(ce.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(m.y)("/account/certification")}}),!1)},e=function(){return Object(S.a)()?!0:(ce.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"},t.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"),t.a.createElement("img",{src:"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),t.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(m.y)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},VlDO:function(pt,ye,J){pt.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj"}},XzQ7:function(pt,ye,J){pt.exports={flex_box_center:"flex_box_center___N67ls",flex_space_between:"flex_space_between___2XYCO",flex_box_vertical_center:"flex_box_vertical_center___1LsqB",flex_box_center_end:"flex_box_center_end___3WDUW",flex_box_column:"flex_box_column___MIvMP",bg:"bg___1FRP8",wrap:"wrap___3ESp_",content:"content___2BtE3",intro:"intro___3Wt0Q",introTitle:"introTitle___3vQWN"}},bntm:function(pt,ye,J){"use strict";J.d(ye,"d",function(){return je}),J.d(ye,"b",function(){return ce}),J.d(ye,"c",function(){return fe}),J.d(ye,"a",function(){return t});function je(i){try{i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()}catch(S){console.log(S,":e")}}function ce(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}var fe=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function t(){var i=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,S=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(i==null)}},cCSd:function(pt,ye,J){pt.exports={flex_box_center:"flex_box_center___3Q6yG",flex_space_between:"flex_space_between___S_CUk",flex_box_vertical_center:"flex_box_vertical_center___2Gdbl",flex_box_center_end:"flex_box_center_end___1xrL5",flex_box_column:"flex_box_column___16e2L",wrp:"wrp___3ZwBI",drawer:"drawer___1PTh9",menu:"menu___DFNiI",actived:"actived___1sNU9",actived2:"actived2___2BWt2",listItem:"listItem___1ylrh",info:"info___F7JZE",title:"title___2kNmP",titleLeft:"titleLeft___1h-DH",titleRight:"titleRight___hT8FM",search:"search___1KEgc",description:"description___31f06",menuCourse:"menuCourse___3RVET"}},dfu6:function(pt,ye,J){"use strict";J.d(ye,"a",function(){return je});var je=function(t){var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return i.test(t)},ce=function(t){var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return i.test(t)}},"kNP/":function(pt,ye,J){pt.exports={wrap:"wrap___2juS_",title:"title___2CLX2",radioWrap:"radioWrap___1FMiJ",checkboxWrap:"checkboxWrap___dPm6N",radio:"radio___2vIMS",colorFF0000:"colorFF0000___2Bu8m",pagination:"pagination___2bx8C",createMkdir:"createMkdir___2Zwt9",tree:"tree___2NdBt"}},kwm0:function(pt,ye,J){pt.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj"}},qGJc:function(pt,ye,J){(function(je){var ce,ce;!function(fe){if(!0)window.OSS=fe(),pt.exports=fe();else var t}(function(){var fe;return function(){function t(i,S,m){function g(p,u){if(!S[p]){if(!i[p]){var e=typeof ce=="function"&&ce;if(!u&&e)return ce(p,!0);if(o)return o(p,!0);var a=new Error("Cannot find module '"+p+"'");throw a.code="MODULE_NOT_FOUND",a}var r=S[p]={exports:{}};i[p][0].call(r.exports,function(d){return g(i[p][1][d]||d)},r,r.exports,t,i,S,m)}return S[p].exports}for(var o=typeof ce=="function"&&ce,l=0;l<m.length;l++)g(m[l]);return g}return t}()({1:[function(t,i,S){"use strict";var m=t("./browser/client");m.Buffer=t("buffer").Buffer,m.co=t("co"),m.urllib=t("../shims/xhr"),m.version=t("./browser/version").version,i.exports=m},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(t,i,S){(function(m,g){"use strict";function o(Y){return Y&&Y.__esModule?Y:{default:Y}}function l(Y,F){return Y[F]||Y[F.toLowerCase()]}function p(Y,F){var U=y.parse(Y);if(!U.protocol){var M=F?"https://":"http://";U=y.parse(M+Y)}if(U.protocol!=="http:"&&U.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return U}function u(Y,F,U){var M=U?"https://":"http://",z=F?"-internal.aliyuncs.com":".aliyuncs.com";return Y.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(z=".aliyuncs.com"),y.parse(M+Y+z)}function e(){return document&&document.location&&document.location.protocol==="https:"}function a(Y,F){if(!(this instanceof a))return new a(Y,F);Y&&Y.inited?this.options=Y:this.options=a.initOptions(Y),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=k,this.agent=this.options.agent||ie),this.ctx=F,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=t("babel-runtime/regenerator"),d=o(r),f=t("babel-runtime/core-js/object/keys"),c=o(f),A=t("debug")("ali-oss"),w=t("./../../shims/crypto/crypto.js"),h=t("path"),T=t("copy-to"),x=t("mime"),v=t("xml2js"),_=t("humanize-ms"),C=t("agentkeepalive"),D=t("merge-descriptors"),y=t("url"),I=t("is-type-of"),R=t("platform"),B=t("utility"),k=t("urllib"),W=t("./version"),K=t("dateformat"),H=t("bowser"),re=t("../common/signUtils"),X=t("../common/utils"),ie=new C;i.exports=a,a.initOptions=function(Y){if(!Y||!Y.accessKeyId||!Y.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var F=e(),U={region:"oss-cn-hangzhou",internal:!1,secure:F,bucket:null,endpoint:null,cname:!1};if((0,c.default)(Y).forEach(function(M){Y[M]!==void 0&&(U[M]=Y[M])}),U.accessKeyId=U.accessKeyId.trim(),U.accessKeySecret=U.accessKeySecret.trim(),U.timeout&&(U.timeout=_(U.timeout)),U.endpoint)U.endpoint=p(U.endpoint,U.secure);else{if(!U.region)throw new Error("require options.endpoint or options.region");U.endpoint=u(U.region,U.internal,U.secure)}return U.inited=!0,U};var ee=a.prototype;D(ee,t("./object")),D(ee,t("./managed_upload")),D(ee,t("../common/multipart")),D(ee,t("../common/thunkpool.js")),a.Wrapper=t("./wrapper"),ee.signature=function(Y){return A("authorization stringToSign: %s",Y),re.computeSignature(this.options.accessKeySecret,Y)},ee.authorization=function(Y,F,U,M){var z=re.buildCanonicalString(Y.toUpperCase(),F,{headers:M,parameters:U});return re.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},ee.createRequest=function(Y){var F={"x-oss-date":K(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(F["x-oss-security-token"]=this.options.stsToken),T(Y.headers).to(F),l(F,"Content-Type")||(Y.mime===x.default_type&&(Y.mime=""),Y.mime&&Y.mime.indexOf("/")>0?F["Content-Type"]=Y.mime:F["Content-Type"]=x.getType(Y.mime||h.extname(Y.object||""))||"application/octet-stream"),Y.content&&(F["Content-Md5"]=w.createHash("md5").update(new g(Y.content,"utf8")).digest("base64"),F["Content-Length"]||(F["Content-Length"]=Y.content.length));var U=this._getResource(Y);F.authorization=this.authorization(Y.method,U,Y.subres,F);var M=this._getReqUrl(Y);A("request %s %s, with headers %j, !!stream: %s",Y.method,M,F,!!Y.stream);var z=Y.timeout||this.options.timeout;return{url:M,params:{agent:this.agent,method:Y.method,content:Y.content,stream:Y.stream,headers:F,timeout:z,writeStream:Y.writeStream,customResponse:Y.customResponse,ctx:Y.ctx||this.ctx}}},ee.request=d.default.mark(function Y(F){var U,M,z,q;return d.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return U=this.createRequest(F),M=void 0,z=void 0,Z.prev=3,Z.next=6,this.urllib.request(U.url,U.params);case 6:M=Z.sent,A("response %s %s, got %s, headers: %j",F.method,U.url,M.status,M.headers),Z.next=13;break;case 10:Z.prev=10,Z.t0=Z.catch(3),z=Z.t0;case 13:if(q=void 0,!M||!F.successStatuses||F.successStatuses.indexOf(M.status)!==-1){Z.next=26;break}return Z.next=17,this.requestError(M);case 17:if(q=Z.sent,q.code!=="RequestTimeTooSkewed"){Z.next=23;break}return this.options.amendTimeSkewed=+new Date(q.serverTime)-new Date,Z.next=22,this.request(F);case 22:return Z.abrupt("return",Z.sent);case 23:q.params=F,Z.next=30;break;case 26:if(!z){Z.next=30;break}return Z.next=29,this.requestError(z);case 29:q=Z.sent;case 30:if(!q){Z.next=32;break}throw q;case 32:if(!F.xmlResponse){Z.next=36;break}return Z.next=35,this.parseXML(M.data);case 35:M.data=Z.sent;case 36:return Z.abrupt("return",M);case 37:case"end":return Z.stop()}},Y,this,[[3,10]])}),ee._getResource=function(Y){var F="/";return Y.bucket&&(F+=Y.bucket+"/"),Y.object&&(F+=Y.object),F},ee._isIP=function(Y){return X._isIP(Y)},ee._escape=function(Y){return B.encodeURIComponent(Y).replace(/%2F/g,"/")},ee._getReqUrl=function(Y){var F={};T(this.options.endpoint).to(F);var U=this._isIP(F.hostname),M=this.options.cname;!Y.bucket||M||U||(F.host=Y.bucket+"."+F.host);var z="/";Y.bucket&&U&&(z+=Y.bucket+"/"),Y.object&&(z+=this._escape(Y.object).replace(/\+/g,"%2B")),F.pathname=z;var q={};if(Y.query&&D(q,Y.query),Y.subres){var Z={};I.string(Y.subres)?Z[Y.subres]="":I.array(Y.subres)?Y.subres.forEach(function(de){Z[de]=""}):Z=Y.subres,D(q,Z)}return F.query=q,y.format(F)},ee._getUserAgent=function(){var Y=m&&m.browser?"js":"nodejs",F="aliyun-sdk-"+Y+"/"+W.version,U=R.description;return!U&&m&&(U="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(F+" "+U)},ee._checkUserAgent=function(Y){return Y.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},ee.checkBrowserAndVersion=function(Y,F){return H.name===Y&&H.version.split(".")[0]===F},ee.parseXML=function(Y){return function(F){g.isBuffer(Y)&&(Y=Y.toString()),v.parseString(Y,{explicitRoot:!1,explicitArray:!1},F)}},ee.requestError=d.default.mark(function Y(F){var U,M,z,q;return d.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(U=null,F.data&&F.data.length){Z.next=5;break}F.status===-1||F.status===-2?(U=new Error(F.message),U.name=F.name,U.status=F.status,U.code=F.name):(F.status===404?(U=new Error("Object not exists"),U.name="NoSuchKeyError",U.status=404,U.code="NoSuchKey"):F.status===412?(U=new Error("Pre condition failed"),U.name="PreconditionFailedError",U.status=412,U.code="PreconditionFailed"):(U=new Error("Unknow error, status: "+F.status),U.name="UnknowError",U.status=F.status),U.requestId=F.headers["x-oss-request-id"],U.host=""),Z.next=30;break;case 5:return M=String(F.data),A("request response error data: %s",M),z=void 0,Z.prev=8,Z.next=11,this.parseXML(M)||{};case 11:z=Z.sent,Z.next=21;break;case 14:return Z.prev=14,Z.t0=Z.catch(8),A(M),Z.t0.message+=`
|
|
|
raw xml: `+M,Z.t0.status=F.status,Z.t0.requestId=F.headers["x-oss-request-id"],Z.abrupt("return",Z.t0);case 21:q=z.Message||"unknow request error, status: "+F.status,z.Condition&&(q+=" (condition: "+z.Condition+")"),U=new Error(q),U.name=z.Code?z.Code+"Error":"UnknowError",U.status=F.status,U.code=z.Code,U.requestId=z.RequestId,U.hostId=z.HostId,U.serverTime=z.ServerTime;case 30:return A("generate error %j",U),Z.abrupt("return",U);case 32:case"end":return Z.stop()}},Y,this,[[8,14]])})}).call(this,t("_process"),t("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(t,i,S){(function(m){"use strict";function g(T){return T&&T.__esModule?T:{default:T}}function o(T,x){if(!(this instanceof o))return new o(T,x);h.call(this,x),this.file=T,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var l=t("babel-runtime/core-js/array/from"),p=g(l),u=t("babel-runtime/regenerator"),e=g(u),a=t("is-type-of"),r=t("util"),d=t("path"),f=t("mime"),c=t("copy-to"),A=S;A.multipartUpload=e.default.mark(function T(x,v,_){var C,D,y,I,R,B,k,W,K;return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){H.next=6;break}return H.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return H.abrupt("return",H.sent);case 6:return C=102400,_.mime||(a.file(v)?_.mime=f.getType(d.extname(v.name)):a.blob(v)?_.mime=v.type:_.mime=f.getType(d.extname(v))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),H.next=12,this._getFileSize(v);case 12:if(!((D=H.sent)<C)){H.next=25;break}return y=this._createStream(v,0,D),_.contentLength=D,H.next=18,this.putStream(x,y,_);case 18:if(I=H.sent,!_||!_.progress){H.next=22;break}return H.next=22,_.progress(1);case 22:return R={res:I.res,bucket:this.options.bucket,name:x,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(R.data=I.data),H.abrupt("return",R);case 25:if(!(_.partSize&&_.partSize<C)){H.next=27;break}throw new Error("partSize must not be smaller than "+C);case 27:return H.next=29,this.initMultipartUpload(x,_);case 29:if(B=H.sent,k=B.uploadId,W=this._getPartSize(D,_.partSize),K={file:v,name:x,fileSize:D,partSize:W,uploadId:k,doneParts:[]},!_||!_.progress){H.next=36;break}return H.next=36,_.progress(0,K,B.res);case 36:return H.next=38,this._resumeMultipart(K,_);case 38:return H.abrupt("return",H.sent);case 39:case"end":return H.stop()}},T,this)}),A._resumeMultipart=e.default.mark(function T(x,v){var _,C,D,y,I,R,B,k,W,K,H,re,X,ie,ee,Y,F,U,M,z,q;return e.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!this.isCancel()){Z.next=2;break}throw this._makeCancelEvent();case 2:if(_=x.file,C=x.fileSize,D=x.partSize,y=x.uploadId,I=x.doneParts,R=x.name,B=[],I.length>0&&c(I).to(B),k=this._divideParts(C,D),W=k.length,K=!1,H=e.default.mark(function de(oe,he){var _e,ne,te;return e.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(oe.isCancel()){se.next=21;break}return se.prev=1,_e=k[he-1],ne={stream:oe._createStream(_,_e.start,_e.end),size:_e.end-_e.start},se.next=6,oe._uploadPart(R,y,he,ne);case 6:if(te=se.sent,oe.isCancel()||K){se.next=13;break}if(x.doneParts.push({number:he,etag:te.res.headers.etag}),B.push({number:he,etag:te.res.headers.etag}),!v||!v.progress){se.next=13;break}return se.next=13,v.progress(I.length/W,x,te.res);case 13:se.next=21;break;case 15:if(se.prev=15,se.t0=se.catch(1),oe.isCancel()){se.next=21;break}throw oe.cancel(),se.t0.partNum=he,se.t0;case 21:case"end":return se.stop()}},de,this,[[1,15]])}),re=(0,p.default)(new Array(W),function(de,oe){return oe+1}),X=B.map(function(de){return de.number}),ie=re.filter(function(de){return X.indexOf(de)<0}),ee=5,Y=v.parallel||ee,!this.checkBrowserAndVersion("Internet Explorer","10")&&Y!==1){Z.next=26;break}F=0;case 16:if(!(F<ie.length)){Z.next=24;break}if(!this.isCancel()){Z.next=19;break}throw this._makeCancelEvent();case 19:return Z.next=21,H(this,ie[F]);case 21:F++,Z.next=16;break;case 24:Z.next=40;break;case 26:for(U=[],M=0;M<ie.length;M++)U.push(H(this,ie[M]));return Z.next=30,this._thunkPool(U,Y);case 30:if(z=Z.sent,K=!0,!(z&&z.length>0)){Z.next=37;break}throw this.resetCancelFlag(),q=z[0],q.message="Failed to upload some parts with error: "+q.toString()+" part_num: "+q.partNum,q;case 37:if(!this.isCancel()){Z.next=40;break}throw U=null,this._makeCancelEvent();case 40:return Z.next=42,this.completeMultipartUpload(R,y,B,v);case 42:return Z.abrupt("return",Z.sent);case 43:case"end":return Z.stop()}},T,this)}),a.file=function(T){return typeof File!="undefined"&&T instanceof File},a.blob=function(T){return typeof Blob!="undefined"&&T instanceof Blob},A._getFileSize=e.default.mark(function T(x){var v;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!a.buffer(x)){_.next=4;break}return _.abrupt("return",x.length);case 4:if(!a.blob(x)&&!a.file(x)){_.next=6;break}return _.abrupt("return",x.size);case 6:if(!a.string(x)){_.next=11;break}return _.next=9,this._statFile(x);case 9:return v=_.sent,_.abrupt("return",v.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return _.stop()}},T,this)});var w=t("stream"),h=w.Readable;r.inherits(o,h),o.prototype.readFileAndPush=function(T){if(this.fileBuffer)for(var x=!0;x&&this.fileBuffer&&this.start<this.fileBuffer.length;){var v=this.start,_=v+T;_=_>this.fileBuffer.length?this.fileBuffer.length:_,this.start=_,x=this.push(this.fileBuffer.slice(v,_))}},o.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 x=this;this.reader.onload=function(v){x.fileBuffer=new m(new Uint8Array(v.target.result)),x.file=null,x.readFileAndPush(T)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(T)},A._createStream=function(T,x,v){if(a.blob(T)||a.file(T))return new o(T.slice(x,v));throw new Error("_createStream requires File/String.")},A._getPartSize=function(T,x){return x?Math.max(Math.ceil(T/1e4),x):1048576},A._divideParts=function(T,x){for(var v=Math.ceil(T/x),_=[],C=0;C<v;C++){var D=x*C,y=Math.min(D+x,T);_.push({start:D,end:y})}return _},A._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,t("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(t,i,S){"use strict";function m(x){return x&&x.__esModule?x:{default:x}}var g=t("babel-runtime/core-js/object/keys"),o=m(g),l=t("babel-runtime/regenerator"),p=m(l),u=t("debug")("ali-oss:object"),e=t("utility"),a=t("fs"),r=t("is-type-of"),d=t("url"),f=t("copy-to"),c=t("path"),A=t("mime"),w=t("../common/callback"),h=t("../common/signUtils"),T=S;T.append=p.default.mark(function x(v,_,C){var D;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return C=C||{},C.position===void 0&&(C.position="0"),C.subres={append:"",position:C.position},C.method="POST",y.next=6,this.put(v,_,C);case 6:return D=y.sent,D.nextAppendPosition=D.res.headers["x-oss-next-append-position"],y.abrupt("return",D);case 9:case"end":return y.stop()}},x,this)}),T.put=p.default.mark(function x(v,_,C){var D,y,I,R,B,k;return p.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(D=void 0,C=C||{},!r.buffer(_)){W.next=6;break}D=_,W.next=18;break;case 6:if(!r.blob(_)&&!r.file(_)){W.next=17;break}return C.mime||(r.file(_)?C.mime=A.getType(c.extname(_.name)):C.mime=_.type),y=this._createStream(_,0,_.size),W.next=11,this._getFileSize(_);case 11:return C.contentLength=W.sent,W.next=14,this.putStream(v,y,C);case 14:return W.abrupt("return",W.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),I=C.method||"PUT",R=this._objectRequestParams(I,v,C),w.encodeCallback(R,C),R.mime=C.mime,R.content=D,R.successStatuses=[200],W.next=28,this.request(R);case 28:return B=W.sent,k={name:v,url:this._objectUrl(v),res:B.res},R.headers&&R.headers["x-oss-callback"]&&(k.data=JSON.parse(B.data.toString())),W.abrupt("return",k);case 32:case"end":return W.stop()}},x,this)}),T.putStream=p.default.mark(function x(v,_,C){var D,y,I,R;return p.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return C=C||{},C.headers=C.headers||{},C.contentLength?C.headers["Content-Length"]=C.contentLength:C.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(C.meta,C.headers),D=C.method||"PUT",y=this._objectRequestParams(D,v,C),w.encodeCallback(y,C),y.mime=C.mime,y.stream=_,y.successStatuses=[200],B.next=12,this.request(y);case 12:return I=B.sent,R={name:v,url:this._objectUrl(v),res:I.res},y.headers&&y.headers["x-oss-callback"]&&(R.data=JSON.parse(I.data.toString())),B.abrupt("return",R);case 16:case"end":return B.stop()}},x,this)}),T.head=p.default.mark(function x(v,_){var C,D,y;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return C=this._objectRequestParams("HEAD",v,_),C.successStatuses=[200,304],I.next=4,this.request(C);case 4:return D=I.sent,y={meta:null,res:D.res,status:D.status},D.status===200&&(0,o.default)(D.headers).forEach(function(R){R.indexOf("x-oss-meta-")===0&&(y.meta||(y.meta={}),y.meta[R.substring(11)]=D.headers[R])}),I.abrupt("return",y);case 8:case"end":return I.stop()}},x,this)}),T.get=p.default.mark(function x(v,_,C){var D,y,I,R;return p.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return D=null,y=!1,r.writableStream(_)?D=_:r.string(_)?(D=a.createWriteStream(_),y=!0):C=_,C=C||{},C.process&&(C.subres=C.subres||{},C.subres["x-oss-process"]=C.process),I=void 0,B.prev=6,R=this._objectRequestParams("GET",v,C),R.writeStream=D,R.successStatuses=[200,206,304],B.next=12,this.request(R);case 12:I=B.sent,y&&D.destroy(),B.next=24;break;case 16:if(B.prev=16,B.t0=B.catch(6),!y){B.next=23;break}return D.destroy(),u("get error: %s, delete the exists file %s",B.t0,_),B.next=23,this._deleteFileSafe(_);case 23:throw B.t0;case 24:return B.abrupt("return",{res:I.res,content:I.data});case 25:case"end":return B.stop()}},x,this,[[6,16]])}),T.getStream=p.default.mark(function x(v,_){var C,D;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},C=this._objectRequestParams("GET",v,_),C.customResponse=!0,C.successStatuses=[200,206,304],y.next=6,this.request(C);case 6:return D=y.sent,y.abrupt("return",{stream:D.res,res:{status:D.status,headers:D.headers}});case 8:case"end":return y.stop()}},x,this)}),T.delete=p.default.mark(function x(v,_){var C,D;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return C=this._objectRequestParams("DELETE",v,_),C.successStatuses=[204],y.next=4,this.request(C);case 4:return D=y.sent,y.abrupt("return",{res:D.res});case 6:case"end":return y.stop()}},x,this)}),T.deleteMulti=p.default.mark(function x(v,_){var C,D,y,I,R,B;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:for(_=_||{},C=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,_.quiet?C+=` <Quiet>true</Quiet>
|
|
|
`:C+=` <Quiet>false</Quiet>
|
|
|
`,D=0;D<v.length;D++)C+=" <Object><Key>"+e.escape(this._objectName(v[D]))+`</Key></Object>
|
|
|
`;return C+="</Delete>",u("delete multi objects: %s",C),_.subres="delete",y=this._objectRequestParams("POST","",_),y.mime="xml",y.content=C,y.xmlResponse=!0,y.successStatuses=[200],k.next=14,this.request(y);case 14:return I=k.sent,R=I.data,B=R&&R.Deleted||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(W){return W.Key})),k.abrupt("return",{res:I.res,deleted:B});case 19:case"end":return k.stop()}},x,this)}),T.copy=p.default.mark(function x(v,_,C){var D,y,I;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return C=C||{},C.headers=C.headers||{},(0,o.default)(C.headers).forEach(function(B){C.headers["x-oss-copy-source-"+B.toLowerCase()]=C.headers[B]}),C.meta&&(C.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(C.meta,C.headers),_=_[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(_):"/"+encodeURIComponent(_.slice(1)),C.headers["x-oss-copy-source"]=_,D=this._objectRequestParams("PUT",v,C),D.xmlResponse=!0,D.successStatuses=[200,304],R.next=12,this.request(D);case 12:return y=R.sent,I=y.data,I&&(I={etag:I.ETag,lastModified:I.LastModified}),R.abrupt("return",{data:I,res:y.res});case 16:case"end":return R.stop()}},x,this)}),T.putMeta=p.default.mark(function x(v,_,C){return p.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,this.copy(v,v,{meta:_||{},timeout:C&&C.timeout,ctx:C&&C.ctx});case 2:return D.abrupt("return",D.sent);case 3:case"end":return D.stop()}},x,this)}),T.list=p.default.mark(function x(v,_){var C,D,y,I,R;return p.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return C=this._objectRequestParams("GET","",_),C.query=v,C.xmlResponse=!0,C.successStatuses=[200],B.next=6,this.request(C);case 6:return D=B.sent,y=D.data.Contents,I=this,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(k){return{name:k.Key,url:I._objectUrl(k.Key),lastModified:k.LastModified,etag:k.ETag,type:k.Type,size:Number(k.Size),storageClass:k.StorageClass,owner:{id:k.Owner.ID,displayName:k.Owner.DisplayName}}})),R=D.data.CommonPrefixes||null,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(k){return k.Prefix})),B.abrupt("return",{res:D.res,objects:y,prefixes:R,nextMarker:D.data.NextMarker||null,isTruncated:D.data.IsTruncated==="true"});case 13:case"end":return B.stop()}},x,this)}),T.putACL=p.default.mark(function x(v,_,C){var D,y;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return C=C||{},C.subres="acl",C.headers=C.headers||{},C.headers["x-oss-object-acl"]=_,v=this._objectName(v),D=this._objectRequestParams("PUT",v,C),D.successStatuses=[200],I.next=9,this.request(D);case 9:return y=I.sent,I.abrupt("return",{res:y.res});case 11:case"end":return I.stop()}},x,this)}),T.getACL=p.default.mark(function x(v,_){var C,D;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},_.subres="acl",v=this._objectName(v),C=this._objectRequestParams("GET",v,_),C.successStatuses=[200],C.xmlResponse=!0,y.next=8,this.request(C);case 8:return D=y.sent,y.abrupt("return",{acl:D.data.AccessControlList.Grant,owner:{id:D.data.Owner.ID,displayName:D.data.Owner.DisplayName},res:D.res});case 10:case"end":return y.stop()}},x,this)}),T.restore=p.default.mark(function x(v,_){var C,D;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},_.subres="restore",C=this._objectRequestParams("POST",v,_),C.successStatuses=[202],y.next=6,this.request(C);case 6:return D=y.sent,y.abrupt("return",{res:D.res});case 8:case"end":return y.stop()}},x,this)}),T.signatureUrl=function(x,v){v=v||{},x=this._objectName(x),v.method=v.method||"GET";var _=e.timestamp()+(v.expires||1800),C={bucket:this.options.bucket,object:x},D=this._getResource(C);this.options.stsToken&&(v["security-token"]=this.options.stsToken);var y=h._signatureForURL(this.options.accessKeySecret,v,D,_),I=d.parse(this._getReqUrl(C));return I.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:y.Signature},f(y.subResource).to(I.query),I.format()},T.getObjectUrl=function(x,v){return v?v[v.length-1]!=="/"&&(v+="/"):v=this.options.endpoint.format(),v+this._escape(this._objectName(x))},T._objectUrl=function(x){return this._getReqUrl({bucket:this.options.bucket,object:x})},T.generateObjectUrl=function(x,v){if(v)v[v.length-1]!=="/"&&(v+="/");else{v=this.options.endpoint.format();var _=d.parse(v),C=this.options.bucket;_.hostname=C+"."+_.hostname,_.host=C+"."+_.host,v=_.format()}return v+this._escape(this._objectName(x))},T._objectRequestParams=function(x,v,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},v=this._objectName(v);var C={object:v,bucket:this.options.bucket,method:x,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(C.headers={},f(_.headers).to(C.headers)),C},T._objectName=function(x){return x.replace(/^\/+/,"")},T._statFile=function(x){return function(v){a.stat(x,v)}},T._convertMetaToHeaders=function(x,v){x&&(0,o.default)(x).forEach(function(_){v["x-oss-meta-"+_]=x[_]})},T._deleteFileSafe=function(x){return function(v){a.exists(x,function(_){_?a.unlink(x,function(C){C&&u("unlink %j error: %s",x,C),v()}):v()})}}},{"../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(t,i,S){"use strict";S.version="5.3.1"},{}],6:[function(t,i,S){"use strict";function m(c){return c&&c.__esModule?c:{default:c}}function g(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function o(c){if(!c)return!1;var A=c.constructor;return!!A&&(A.name==="GeneratorFunction"||A.displayName==="GeneratorFunction"||g(A.prototype)||g(c.prototype))}function l(c,A){var w=new c(A),h=(0,r.default)(w),T=(0,r.default)((0,e.default)(w));h.concat(T).forEach(function(x){o(w[x])?this[x]=d.wrap(w[x]).bind(w):this[x]=w[x]},this)}function p(c){if(!(this instanceof p))return new p(c);l.call(this,f,c)}var u=t("babel-runtime/core-js/object/get-prototype-of"),e=m(u),a=t("babel-runtime/core-js/object/keys"),r=m(a),d=t("co"),f=t("./client");i.exports=p,p.STS=function c(A){if(!(this instanceof c))return new c(A);l.call(this,f.STS,A)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,i,S){(function(m){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}var o=t("babel-runtime/core-js/object/keys"),l=g(o),p=t("babel-runtime/core-js/json/stringify"),u=g(p);S.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var d=new m((0,u.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=d,a.callback.customValue){var f={};(0,l.default)(a.callback.customValue).forEach(function(c){f["x:"+c]=a.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new m((0,u.default)(f)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,i,S){"use strict";var m=t("babel-runtime/regenerator"),g=function(u){return u&&u.__esModule?u:{default:u}}(m),o=t("copy-to"),l=t("./callback"),p=S;p.listUploads=g.default.mark(function u(e,a){var r,d,f,c;return g.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return a=a||{},r={},o(a).to(r),r.subres="uploads",d=this._objectRequestParams("GET","",r),d.query=e,d.xmlResponse=!0,d.successStatuses=[200],A.next=10,this.request(d);case 10:return f=A.sent,c=f.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(w){return{name:w.Key,uploadId:w.UploadId,initiated:w.Initiated}}),A.abrupt("return",{res:f.res,uploads:c,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return A.stop()}},u,this)}),p.listParts=g.default.mark(function u(e,a,r,d){var f,c,A;return g.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return d=d||{},f={},o(d).to(f),f.subres={uploadId:a},c=this._objectRequestParams("GET",e,f),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],w.next=10,this.request(c);case 10:return A=w.sent,w.abrupt("return",{res:A.res,uploadId:A.data.UploadId,bucket:A.data.Bucket,name:A.data.Key,partNumberMarker:A.data.PartNumberMarker,nextPartNumberMarker:A.data.NextPartNumberMarker,maxParts:A.data.MaxParts,isTruncated:A.data.IsTruncated,parts:A.data.Part||[]});case 12:case"end":return w.stop()}},u,this)}),p.abortMultipartUpload=g.default.mark(function u(e,a,r){var d,f,c;return g.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return this.cancel(),r=r||{},d={},o(r).to(d),d.subres={uploadId:a},f=this._objectRequestParams("DELETE",e,d),f.successStatuses=[204],A.next=9,this.request(f);case 9:return c=A.sent,A.abrupt("return",{res:c.res});case 11:case"end":return A.stop()}},u,this)}),p.initMultipartUpload=g.default.mark(function u(e,a){var r,d,f;return g.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=a||{},r={},o(a).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(a.meta,r.headers),r.subres="uploads",d=this._objectRequestParams("POST",e,r),d.mime=a.mime,d.xmlResponse=!0,d.successStatuses=[200],c.next=12,this.request(d);case 12:return f=c.sent,c.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return c.stop()}},u,this)}),p.uploadPart=g.default.mark(function u(e,a,r,d,f,c,A){var w;return g.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return w={stream:this._createStream(d,f,c),size:c-f},h.next=3,this._uploadPart(e,a,r,w,A);case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},u,this)}),p.completeMultipartUpload=g.default.mark(function u(e,a,r,d){var f,c,A,w,h,T,x,v;return g.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(f=r.concat().sort(function(C,D){return C.number-D.number}).filter(function(C,D,y){return!D||C.number!==y[D-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,A=0;A<f.length;A++)w=f[A],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+w.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+w.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",d=d||{},h={},o(d).to(h),h.subres={uploadId:a},T=this._objectRequestParams("POST",e,h),l.encodeCallback(T,h),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 x=_.sent,v={res:x.res,bucket:T.bucket,name:e,etag:x.res.headers.etag},T.headers&&T.headers["x-oss-callback"]&&(v.data=JSON.parse(x.data.toString())),_.abrupt("return",v);case 20:case"end":return _.stop()}},u,this)}),p._uploadPart=g.default.mark(function u(e,a,r,d,f){var c,A,w;return g.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return f=f||{},c={},o(f).to(c),c.headers={"Content-Length":d.size},c.subres={partNumber:r,uploadId:a},A=this._objectRequestParams("PUT",e,c),A.mime=c.mime,A.stream=d.stream,A.successStatuses=[200],h.next=11,this.request(A);case 11:return w=h.sent,d.stream=null,A.stream=null,h.abrupt("return",{name:e,etag:w.res.headers.etag,res:w.res});case 15:case"end":return h.stop()}},u,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,i,S){(function(m){"use strict";function g(r){return r&&r.__esModule?r:{default:r}}var o=t("babel-runtime/core-js/json/stringify"),l=g(o),p=t("babel-runtime/core-js/object/keys"),u=g(p),e=t("./../../shims/crypto/crypto.js"),a=t("is-type-of");S.buildCanonicalizedResource=function(r,d){var f=""+r,c="?";if(a.string(d)&&d.trim()!=="")f+=c+d;else if(a.array(d))d.sort(),f+=c+d.join("&");else if(d){var A=function(T,x){return T[0]>x[0]?1:T[0]<x[0]?-1:0},w=function(T){f+=c+T,d[T]&&(f+="="+d[T]),c="&"};(0,u.default)(d).sort(A).forEach(w)}return f},S.buildCanonicalString=function(r,d,f,c){f=f||{};var A=f.headers||{},w=[],h={},T=[r.toUpperCase(),A["Content-Md5"]||"",A["Content-Type"]||A["Content-Type".toLowerCase()],c||A["x-oss-date"]];return(0,u.default)(A).forEach(function(x){var v=x.toLowerCase();v.indexOf("x-oss-")===0&&(h[v]=String(A[x]).trim())}),(0,u.default)(h).sort().forEach(function(x){w.push(x+":"+h[x])}),T=T.concat(w),T.push(this.buildCanonicalizedResource(d,f.parameters)),T.join(`
|
|
|
`)},S.computeSignature=function(r,d){return e.createHmac("sha1",r).update(new m(d,"utf8")).digest("base64")},S.authorization=function(r,d,f){return"OSS "+r+":"+this.computeSignature(d,f)},S._signatureForURL=function(r,d,f,c){var A={},w={};if(d.process&&(w["x-oss-process"]=d.process),d.response&&(0,u.default)(d.response).forEach(function(v){var _="response-"+v.toLowerCase();w[_]=d.response[v]}),(0,u.default)(d).forEach(function(v){var _=v.toLowerCase(),C=d[v];_.indexOf("x-oss-")===0?A[_]=C:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?A[v]=C:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(w[_]=C)}),Object.prototype.hasOwnProperty.call(d,"security-token")&&(w["security-token"]=d["security-token"]),Object.prototype.hasOwnProperty.call(d,"callback")){var h={callbackUrl:encodeURI(d.callback.url),callbackBody:d.callback.body};if(d.callback.host&&(h.callbackHost=d.callback.host),d.callback.contentType&&(h.callbackBodyType=d.callback.contentType),w.callback=new m((0,l.default)(h)).toString("base64"),d.callback.customValue){var T={};(0,u.default)(d.callback.customValue).forEach(function(v){T["x:"+v]=d.callback.customValue[v]}),w["callback-var"]=new m((0,l.default)(T)).toString("base64")}}var x=this.buildCanonicalString(d.method,f,{headers:A,parameters:w},c.toString());return{Signature:this.computeSignature(r,x),subResource:w}}}).call(this,t("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(t,i,S){"use strict";var m=t("babel-runtime/regenerator"),g=function(e){return e&&e.__esModule?e:{default:e}}(m),o=t("co"),l=t("co-priority-queue"),p=t("any-promise"),u=S;u._thunkPool=function(e,a){function r(w,h){++c===w.length&&h(A)}function d(w,h){function T(){var y;return g.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:y=void 0;case 1:if(f.isCancel()){I.next=9;break}return I.next=4,_.next();case 4:return y=I.sent,I.next=7,y();case 7:I.next=1;break;case 9:C+=1,C===w&&(_.fns=[],_.buffer=[],h(A));case 11:case"end":return I.stop()}},v,this)}function x(y){console.error(y.stack)}for(var v=g.default.mark(T),_=new l,C=0,D=0;D<w;D++)o(T).catch(x);return function(y,I){return function(R){_.push(g.default.mark(function B(){return g.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.prev=0,k.t0=R,k.next=4,y;case 4:k.t1=k.sent,(0,k.t0)(null,k.t1),k.next=11;break;case 8:k.prev=8,k.t2=k.catch(0),R(k.t2);case 11:case"end":return k.stop()}},B,this,[[0,8]])}),I)}}}var f=this,c=0,A=[];return new p(function(w){function h(C){return g.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,v(e[C]);case 2:r(e,w);case 3:case"end":return D.stop()}},x,this)}function T(C){A.push(C),r(e,w)}for(var x=g.default.mark(h),v=new d(a,w),_=0;_<e.length;_++)o(h(_)).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(t,i,S){"use strict";S._isIP=function(m){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}$/,o=/^\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(m)||o.test(m)}},{}],12:[function(t,i,S){function m(){}i.exports=m,i.exports.HttpsAgent=m},{}],13:[function(t,i,S){i.exports=t("./register")().Promise},{"./register":15}],14:[function(t,i,S){"use strict";var m=null;i.exports=function(g,o){return function(l,p){l=l||null,p=p||{};var u=p.global!==!1;if(m===null&&u&&(m=g["@@any-promise/REGISTRATION"]||null),m!==null&&l!==null&&m.implementation!==l)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(m=l!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:l}:o(l),u&&(g["@@any-promise/REGISTRATION"]=m)),m}}},{}],15:[function(t,i,S){"use strict";function m(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}i.exports=t("./loader")(window,m)},{"./loader":14}],16:[function(t,i,S){i.exports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(t,i,S){i.exports={default:t("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(t,i,S){i.exports={default:t("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(t,i,S){i.exports={default:t("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(t,i,S){i.exports={default:t("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(t,i,S){"use strict";S.__esModule=!0,S.default=function(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(t,i,S){"use strict";S.__esModule=!0;var m=t("../core-js/object/define-property"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);S.default=function(){function o(l,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)(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}()},{"../core-js/object/define-property":20}],32:[function(t,i,S){"use strict";function m(e){return e&&e.__esModule?e:{default:e}}S.__esModule=!0;var g=t("../core-js/symbol/iterator"),o=m(g),l=t("../core-js/symbol"),p=m(l),u=typeof p.default=="function"&&typeof o.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};S.default=typeof p.default=="function"&&u(o.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(t,i,S){i.exports=t("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(t,i,S){"use strict";function m(w){var h=w.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=w.indexOf("=");return T===-1&&(T=h),[T,T===h?0:4-T%4]}function g(w){var h=m(w),T=h[0],x=h[1];return 3*(T+x)/4-x}function o(w,h,T){return 3*(h+T)/4-T}function l(w){for(var h,T=m(w),x=T[0],v=T[1],_=new d(o(w,x,v)),C=0,D=v>0?x-4:x,y=0;y<D;y+=4)h=r[w.charCodeAt(y)]<<18|r[w.charCodeAt(y+1)]<<12|r[w.charCodeAt(y+2)]<<6|r[w.charCodeAt(y+3)],_[C++]=h>>16&255,_[C++]=h>>8&255,_[C++]=255&h;return v===2&&(h=r[w.charCodeAt(y)]<<2|r[w.charCodeAt(y+1)]>>4,_[C++]=255&h),v===1&&(h=r[w.charCodeAt(y)]<<10|r[w.charCodeAt(y+1)]<<4|r[w.charCodeAt(y+2)]>>2,_[C++]=h>>8&255,_[C++]=255&h),_}function p(w){return a[w>>18&63]+a[w>>12&63]+a[w>>6&63]+a[63&w]}function u(w,h,T){for(var x,v=[],_=h;_<T;_+=3)x=(w[_]<<16&16711680)+(w[_+1]<<8&65280)+(255&w[_+2]),v.push(p(x));return v.join("")}function e(w){for(var h,T=w.length,x=T%3,v=[],_=0,C=T-x;_<C;_+=16383)v.push(u(w,_,_+16383>C?C:_+16383));return x===1?(h=w[T-1],v.push(a[h>>2]+a[h<<4&63]+"==")):x===2&&(h=(w[T-2]<<8)+w[T-1],v.push(a[h>>10]+a[h>>4&63]+a[h<<2&63]+"=")),v.join("")}S.byteLength=g,S.toByteArray=l,S.fromByteArray=e;for(var a=[],r=[],d=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,A=f.length;c<A;++c)a[c]=f[c],r[f.charCodeAt(c)]=c;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(t,i,S){!function(m,g,o){i!==void 0&&i.exports?i.exports=o():typeof fe=="function"&&fe.amd?fe("bowser",o):m.bowser=o()}(this,0,function(){function m(r){function d(Y){var F=r.match(Y);return F&&F.length>1&&F[1]||""}function f(Y){var F=r.match(Y);return F&&F.length>1&&F[2]||""}var c,A=d(/(ipod|iphone|ipad)/i).toLowerCase(),w=/like android/i.test(r),h=!w&&/android/i.test(r),T=/nexus\s*[0-6]\s*/i.test(r),x=!T&&/nexus\s*[0-9]+/i.test(r),v=/CrOS/.test(r),_=/silk/i.test(r),C=/sailfish/i.test(r),D=/tizen/i.test(r),y=/(web|hpw)os/i.test(r),I=/windows phone/i.test(r),R=(/SamsungBrowser/i.test(r),!I&&/windows/i.test(r)),B=!A&&!_&&/macintosh/i.test(r),k=!h&&!C&&!D&&!y&&/linux/i.test(r),W=f(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),K=d(/version\/(\d+(\.\d+)?)/i),H=/tablet/i.test(r)&&!/tablet pc/i.test(r),re=!H&&/[^-]mobi/i.test(r),X=/xbox/i.test(r);/opera/i.test(r)?c={name:"Opera",opera:e,version:K||d(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?c={name:"Opera",opera:e,version:d(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||K}:/SamsungBrowser/i.test(r)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:K||d(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?c={name:"Opera Coast",coast:e,version:K||d(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?c={name:"Yandex Browser",yandexbrowser:e,version:K||d(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?c={name:"UC Browser",ucbrowser:e,version:d(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?c={name:"Maxthon",maxthon:e,version:d(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?c={name:"Epiphany",epiphany:e,version:d(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?c={name:"Puffin",puffin:e,version:d(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?c={name:"Sleipnir",sleipnir:e,version:d(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?c={name:"K-Meleon",kMeleon:e,version:d(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:I?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},W?(c.msedge=e,c.version=W):(c.msie=e,c.version=d(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?c={name:"Internet Explorer",msie:e,version:d(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:v?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?c={name:"Microsoft Edge",msedge:e,version:W}:/vivaldi/i.test(r)?c={name:"Vivaldi",vivaldi:e,version:d(/vivaldi\/(\d+(\.\d+)?)/i)||K}:C?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:d(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?c={name:"SeaMonkey",seamonkey:e,version:d(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(c={name:"Firefox",firefox:e,version:d(/(?: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:d(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?c={name:"PhantomJS",phantom:e,version:d(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?c={name:"SlimerJS",slimer:e,version:d(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:K||d(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:y?(c={name:"WebOS",osname:"WebOS",webos:e,version:K||d(/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:d(/dolfin\/(\d+(\.\d+)?)/i)}:D?c={name:"Tizen",osname:"Tizen",tizen:e,version:d(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||K}:/qupzilla/i.test(r)?c={name:"QupZilla",qupzilla:e,version:d(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||K}:/chromium/i.test(r)?c={name:"Chromium",chromium:e,version:d(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||K}:/chrome|crios|crmo/i.test(r)?c={name:"Chrome",chrome:e,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:h?c={name:"Android",version:K}:/safari|applewebkit/i.test(r)?(c={name:"Safari",safari:e},K&&(c.version=K)):A?(c={name:A=="iphone"?"iPhone":A=="ipad"?"iPad":"iPod"},K&&(c.version=K)):c=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:d(/googlebot\/(\d+(\.\d+))/i)||K}:{name:d(/^(.*)\/(.*) /),version:f(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&K&&(c.version=K)):!c.opera&&/gecko\//i.test(r)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||d(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!h&&!c.silk?!c.windowsphone&&A?(c[A]=e,c.ios=e,c.osname="iOS"):B?(c.mac=e,c.osname="macOS"):X?(c.xbox=e,c.osname="Xbox"):R?(c.windows=e,c.osname="Windows"):k&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ie="";c.windows?ie=function(Y){switch(Y){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}}(d(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ie=d(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ie=d(/Mac OS X (\d+([_\.\s]\d+)*)/i),ie=ie.replace(/[_\s]/g,".")):A?(ie=d(/os (\d+([_\s]\d+)*) like mac os x/i),ie=ie.replace(/[_\s]/g,".")):h?ie=d(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ie=d(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ie=d(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ie=d(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ie=d(/tizen[\/\s](\d+(\.\d+)*)/i)),ie&&(c.osversion=ie);var ee=!c.windows&&ie.split(".")[0];return H||x||A=="ipad"||h&&(ee==3||ee>=4&&!re)||c.silk?c.tablet=e:(re||A=="iphone"||A=="ipod"||h||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 o(r,d){var f,c=[];if(Array.prototype.map)return Array.prototype.map.call(r,d);for(f=0;f<r.length;f++)c.push(d(r[f]));return c}function l(r){for(var d=Math.max(g(r[0]),g(r[1])),f=o(r,function(c){var A=d-g(c);return c+=new Array(A+1).join(".0"),o(c.split("."),function(w){return new Array(20-w.length).join("0")+w}).reverse()});--d>=0;){if(f[0][d]>f[1][d])return 1;if(f[0][d]!==f[1][d])return-1;if(d===0)return 0}}function p(r,d,f){var c=a;typeof d=="string"&&(f=d,d=void 0),d===void 0&&(d=!1),f&&(c=m(f));var A=""+c.version;for(var w in r)if(r.hasOwnProperty(w)&&c[w]){if(typeof r[w]!="string")throw new Error("Browser version in the minVersion map should be a string: "+w+": "+String(r));return l([A,r[w]])<0}return d}function u(r,d,f){return!p(r,d,f)}var e=!0,a=m(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(r){for(var d=0;d<r.length;++d){var f=r[d];if(typeof f=="string"&&f in a)return!0}return!1},a.isUnsupportedBrowser=p,a.compareVersions=l,a.check=u,a._detect=m,a.detect=m,a})},{}],36:[function(t,i,S){},{}],37:[function(t,i,S){function m(a){if(a&&!u(a))throw new Error("Unknown encoding: "+a)}function g(a){return a.toString(this.encoding)}function o(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function l(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var p=t("buffer").Buffer,u=p.isEncoding||function(a){switch(a&&a.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=S.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),m(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=l;break;default:return void(this.write=g)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(a){for(var r="";this.charLength;){var d=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,d),this.charReceived+=d,this.charReceived<this.charLength)return"";a=a.slice(d,a.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,a.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(a);var f=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,f),f-=this.charReceived),r+=a.toString(this.encoding,0,f);var f=r.length-1,c=r.charCodeAt(f);if(c>=55296&&c<=56319){var A=this.surrogateSize;return this.charLength+=A,this.charReceived+=A,this.charBuffer.copy(this.charBuffer,A,0,A),a.copy(this.charBuffer,0,0,A),r.substring(0,f)}return r},e.prototype.detectIncompleteChar=function(a){for(var r=a.length>=3?3:a.length;r>0;r--){var d=a[a.length-r];if(r==1&&d>>5==6){this.charLength=2;break}if(r<=2&&d>>4==14){this.charLength=3;break}if(r<=3&&d>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(a){var r="";if(a&&a.length&&(r=this.write(a)),this.charReceived){var d=this.charReceived,f=this.charBuffer,c=this.encoding;r+=f.slice(0,d).toString(c)}return r}},{buffer:38}],38:[function(t,i,S){(function(m){"use strict";function g(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(n,s){if(g()<s)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(s),n.__proto__=l.prototype):(n===null&&(n=new l(s)),n.length=s),n}function l(n,s,O){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(n,s,O);if(typeof n=="number"){if(typeof s=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,n)}return p(this,n,s,O)}function p(n,s,O,b){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&s instanceof ArrayBuffer?f(n,s,O,b):typeof s=="string"?r(n,s,O):c(n,s)}function u(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function e(n,s,O,b){return u(s),s<=0?o(n,s):O!==void 0?typeof b=="string"?o(n,s).fill(O,b):o(n,s).fill(O):o(n,s)}function a(n,s){if(u(s),n=o(n,s<0?0:0|A(s)),!l.TYPED_ARRAY_SUPPORT)for(var O=0;O<s;++O)n[O]=0;return n}function r(n,s,O){if(typeof O=="string"&&O!==""||(O="utf8"),!l.isEncoding(O))throw new TypeError('"encoding" must be a valid string encoding');var b=0|h(s,O);n=o(n,b);var E=n.write(s,O);return E!==b&&(n=n.slice(0,E)),n}function d(n,s){var O=s.length<0?0:0|A(s.length);n=o(n,O);for(var b=0;b<O;b+=1)n[b]=255&s[b];return n}function f(n,s,O,b){if(s.byteLength,O<0||s.byteLength<O)throw new RangeError("'offset' is out of bounds");if(s.byteLength<O+(b||0))throw new RangeError("'length' is out of bounds");return s=O===void 0&&b===void 0?new Uint8Array(s):b===void 0?new Uint8Array(s,O):new Uint8Array(s,O,b),l.TYPED_ARRAY_SUPPORT?(n=s,n.__proto__=l.prototype):n=d(n,s),n}function c(n,s){if(l.isBuffer(s)){var O=0|A(s.length);return n=o(n,O),n.length===0||s.copy(n,0,0,O),n}if(s){if(typeof ArrayBuffer!="undefined"&&s.buffer instanceof ArrayBuffer||"length"in s)return typeof s.length!="number"||N(s.length)?o(n,0):d(n,s);if(s.type==="Buffer"&&ae(s.data))return d(n,s.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function A(n){if(n>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return 0|n}function w(n){return+n!=n&&(n=0),l.alloc(+n)}function h(n,s){if(l.isBuffer(n))return n.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var O=n.length;if(O===0)return 0;for(var b=!1;;)switch(s){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":case void 0:return he(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*O;case"hex":return O>>>1;case"base64":return te(n).length;default:if(b)return he(n).length;s=(""+s).toLowerCase(),b=!0}}function T(n,s,O){var b=!1;if((s===void 0||s<0)&&(s=0),s>this.length)return"";if((O===void 0||O>this.length)&&(O=this.length),O<=0)return"";if(O>>>=0,s>>>=0,O<=s)return"";for(n||(n="utf8");;)switch(n){case"hex":return X(this,s,O);case"utf8":case"utf-8":return W(this,s,O);case"ascii":return H(this,s,O);case"latin1":case"binary":return re(this,s,O);case"base64":return k(this,s,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,s,O);default:if(b)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),b=!0}}function x(n,s,O){var b=n[s];n[s]=n[O],n[O]=b}function v(n,s,O,b,E){if(n.length===0)return-1;if(typeof O=="string"?(b=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,isNaN(O)&&(O=E?0:n.length-1),O<0&&(O=n.length+O),O>=n.length){if(E)return-1;O=n.length-1}else if(O<0){if(!E)return-1;O=0}if(typeof s=="string"&&(s=l.from(s,b)),l.isBuffer(s))return s.length===0?-1:_(n,s,O,b,E);if(typeof s=="number")return s&=255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?E?Uint8Array.prototype.indexOf.call(n,s,O):Uint8Array.prototype.lastIndexOf.call(n,s,O):_(n,[s],O,b,E);throw new TypeError("val must be string, number or Buffer")}function _(n,s,O,b,E){function G(le,Ae){return V===1?le[Ae]:le.readUInt16BE(Ae*V)}var V=1,L=n.length,Q=s.length;if(b!==void 0&&((b=String(b).toLowerCase())==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(n.length<2||s.length<2)return-1;V=2,L/=2,Q/=2,O/=2}var ue;if(E){var pe=-1;for(ue=O;ue<L;ue++)if(G(n,ue)===G(s,pe===-1?0:ue-pe)){if(pe===-1&&(pe=ue),ue-pe+1===Q)return pe*V}else pe!==-1&&(ue-=ue-pe),pe=-1}else for(O+Q>L&&(O=L-Q),ue=O;ue>=0;ue--){for(var ve=!0,we=0;we<Q;we++)if(G(n,ue+we)!==G(s,we)){ve=!1;break}if(ve)return ue}return-1}function C(n,s,O,b){O=Number(O)||0;var E=n.length-O;b?(b=Number(b))>E&&(b=E):b=E;var G=s.length;if(G%2!=0)throw new TypeError("Invalid hex string");b>G/2&&(b=G/2);for(var V=0;V<b;++V){var L=parseInt(s.substr(2*V,2),16);if(isNaN(L))return V;n[O+V]=L}return V}function D(n,s,O,b){return se(he(s,n.length-O),n,O,b)}function y(n,s,O,b){return se(_e(s),n,O,b)}function I(n,s,O,b){return y(n,s,O,b)}function R(n,s,O,b){return se(te(s),n,O,b)}function B(n,s,O,b){return se(ne(s,n.length-O),n,O,b)}function k(n,s,O){return s===0&&O===n.length?j.fromByteArray(n):j.fromByteArray(n.slice(s,O))}function W(n,s,O){O=Math.min(n.length,O);for(var b=[],E=s;E<O;){var G=n[E],V=null,L=G>239?4:G>223?3:G>191?2:1;if(E+L<=O){var Q,ue,pe,ve;switch(L){case 1:G<128&&(V=G);break;case 2:Q=n[E+1],(192&Q)==128&&(ve=(31&G)<<6|63&Q)>127&&(V=ve);break;case 3:Q=n[E+1],ue=n[E+2],(192&Q)==128&&(192&ue)==128&&(ve=(15&G)<<12|(63&Q)<<6|63&ue)>2047&&(ve<55296||ve>57343)&&(V=ve);break;case 4:Q=n[E+1],ue=n[E+2],pe=n[E+3],(192&Q)==128&&(192&ue)==128&&(192&pe)==128&&(ve=(15&G)<<18|(63&Q)<<12|(63&ue)<<6|63&pe)>65535&&ve<1114112&&(V=ve)}}V===null?(V=65533,L=1):V>65535&&(V-=65536,b.push(V>>>10&1023|55296),V=56320|1023&V),b.push(V),E+=L}return K(b)}function K(n){var s=n.length;if(s<=me)return String.fromCharCode.apply(String,n);for(var O="",b=0;b<s;)O+=String.fromCharCode.apply(String,n.slice(b,b+=me));return O}function H(n,s,O){var b="";O=Math.min(n.length,O);for(var E=s;E<O;++E)b+=String.fromCharCode(127&n[E]);return b}function re(n,s,O){var b="";O=Math.min(n.length,O);for(var E=s;E<O;++E)b+=String.fromCharCode(n[E]);return b}function X(n,s,O){var b=n.length;(!s||s<0)&&(s=0),(!O||O<0||O>b)&&(O=b);for(var E="",G=s;G<O;++G)E+=oe(n[G]);return E}function ie(n,s,O){for(var b=n.slice(s,O),E="",G=0;G<b.length;G+=2)E+=String.fromCharCode(b[G]+256*b[G+1]);return E}function ee(n,s,O){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+s>O)throw new RangeError("Trying to access beyond buffer length")}function Y(n,s,O,b,E,G){if(!l.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>E||s<G)throw new RangeError('"value" argument is out of bounds');if(O+b>n.length)throw new RangeError("Index out of range")}function F(n,s,O,b){s<0&&(s=65535+s+1);for(var E=0,G=Math.min(n.length-O,2);E<G;++E)n[O+E]=(s&255<<8*(b?E:1-E))>>>8*(b?E:1-E)}function U(n,s,O,b){s<0&&(s=4294967295+s+1);for(var E=0,G=Math.min(n.length-O,4);E<G;++E)n[O+E]=s>>>8*(b?E:3-E)&255}function M(n,s,O,b,E,G){if(O+b>n.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function z(n,s,O,b,E){return E||M(n,s,O,4,34028234663852886e22,-34028234663852886e22),$.write(n,s,O,b,23,4),O+4}function q(n,s,O,b,E){return E||M(n,s,O,8,17976931348623157e292,-17976931348623157e292),$.write(n,s,O,b,52,8),O+8}function Z(n){if(n=de(n).replace(P,""),n.length<2)return"";for(;n.length%4!=0;)n+="=";return n}function de(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function oe(n){return n<16?"0"+n.toString(16):n.toString(16)}function he(n,s){s=s||1/0;for(var O,b=n.length,E=null,G=[],V=0;V<b;++V){if((O=n.charCodeAt(V))>55295&&O<57344){if(!E){if(O>56319){(s-=3)>-1&&G.push(239,191,189);continue}if(V+1===b){(s-=3)>-1&&G.push(239,191,189);continue}E=O;continue}if(O<56320){(s-=3)>-1&&G.push(239,191,189),E=O;continue}O=65536+(E-55296<<10|O-56320)}else E&&(s-=3)>-1&&G.push(239,191,189);if(E=null,O<128){if((s-=1)<0)break;G.push(O)}else if(O<2048){if((s-=2)<0)break;G.push(O>>6|192,63&O|128)}else if(O<65536){if((s-=3)<0)break;G.push(O>>12|224,O>>6&63|128,63&O|128)}else{if(!(O<1114112))throw new Error("Invalid code point");if((s-=4)<0)break;G.push(O>>18|240,O>>12&63|128,O>>6&63|128,63&O|128)}}return G}function _e(n){for(var s=[],O=0;O<n.length;++O)s.push(255&n.charCodeAt(O));return s}function ne(n,s){for(var O,b,E,G=[],V=0;V<n.length&&!((s-=2)<0);++V)O=n.charCodeAt(V),b=O>>8,E=O%256,G.push(E),G.push(b);return G}function te(n){return j.toByteArray(Z(n))}function se(n,s,O,b){for(var E=0;E<b&&!(E+O>=s.length||E>=n.length);++E)s[E+O]=n[E];return E}function N(n){return n!==n}var j=t("base64-js"),$=t("ieee754"),ae=t("isarray");S.Buffer=l,S.SlowBuffer=w,S.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:function(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},n.foo()===42&&typeof n.subarray=="function"&&n.subarray(1,1).byteLength===0}catch(s){return!1}}(),S.kMaxLength=g(),l.poolSize=8192,l._augment=function(n){return n.__proto__=l.prototype,n},l.from=function(n,s,O){return p(null,n,s,O)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(n,s,O){return e(null,n,s,O)},l.allocUnsafe=function(n){return a(null,n)},l.allocUnsafeSlow=function(n){return a(null,n)},l.isBuffer=function(n){return!(n==null||!n._isBuffer)},l.compare=function(n,s){if(!l.isBuffer(n)||!l.isBuffer(s))throw new TypeError("Arguments must be Buffers");if(n===s)return 0;for(var O=n.length,b=s.length,E=0,G=Math.min(O,b);E<G;++E)if(n[E]!==s[E]){O=n[E],b=s[E];break}return O<b?-1:b<O?1:0},l.isEncoding=function(n){switch(String(n).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}},l.concat=function(n,s){if(!ae(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return l.alloc(0);var O;if(s===void 0)for(s=0,O=0;O<n.length;++O)s+=n[O].length;var b=l.allocUnsafe(s),E=0;for(O=0;O<n.length;++O){var G=n[O];if(!l.isBuffer(G))throw new TypeError('"list" argument must be an Array of Buffers');G.copy(b,E),E+=G.length}return b},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<n;s+=2)x(this,s,s+1);return this},l.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<n;s+=4)x(this,s,s+3),x(this,s+1,s+2);return this},l.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<n;s+=8)x(this,s,s+7),x(this,s+1,s+6),x(this,s+2,s+5),x(this,s+3,s+4);return this},l.prototype.toString=function(){var n=0|this.length;return n===0?"":arguments.length===0?W(this,0,n):T.apply(this,arguments)},l.prototype.equals=function(n){if(!l.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||l.compare(this,n)===0},l.prototype.inspect=function(){var n="",s=S.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(n+=" ... ")),"<Buffer "+n+">"},l.prototype.compare=function(n,s,O,b,E){if(!l.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(s===void 0&&(s=0),O===void 0&&(O=n?n.length:0),b===void 0&&(b=0),E===void 0&&(E=this.length),s<0||O>n.length||b<0||E>this.length)throw new RangeError("out of range index");if(b>=E&&s>=O)return 0;if(b>=E)return-1;if(s>=O)return 1;if(s>>>=0,O>>>=0,b>>>=0,E>>>=0,this===n)return 0;for(var G=E-b,V=O-s,L=Math.min(G,V),Q=this.slice(b,E),ue=n.slice(s,O),pe=0;pe<L;++pe)if(Q[pe]!==ue[pe]){G=Q[pe],V=ue[pe];break}return G<V?-1:V<G?1:0},l.prototype.includes=function(n,s,O){return this.indexOf(n,s,O)!==-1},l.prototype.indexOf=function(n,s,O){return v(this,n,s,O,!0)},l.prototype.lastIndexOf=function(n,s,O){return v(this,n,s,O,!1)},l.prototype.write=function(n,s,O,b){if(s===void 0)b="utf8",O=this.length,s=0;else if(O===void 0&&typeof s=="string")b=s,O=this.length,s=0;else{if(!isFinite(s))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");s|=0,isFinite(O)?(O|=0,b===void 0&&(b="utf8")):(b=O,O=void 0)}var E=this.length-s;if((O===void 0||O>E)&&(O=E),n.length>0&&(O<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var G=!1;;)switch(b){case"hex":return C(this,n,s,O);case"utf8":case"utf-8":return D(this,n,s,O);case"ascii":return y(this,n,s,O);case"latin1":case"binary":return I(this,n,s,O);case"base64":return R(this,n,s,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,n,s,O);default:if(G)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),G=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var me=4096;l.prototype.slice=function(n,s){var O=this.length;n=~~n,s=s===void 0?O:~~s,n<0?(n+=O)<0&&(n=0):n>O&&(n=O),s<0?(s+=O)<0&&(s=0):s>O&&(s=O),s<n&&(s=n);var b;if(l.TYPED_ARRAY_SUPPORT)b=this.subarray(n,s),b.__proto__=l.prototype;else{var E=s-n;b=new l(E,void 0);for(var G=0;G<E;++G)b[G]=this[G+n]}return b},l.prototype.readUIntLE=function(n,s,O){n|=0,s|=0,O||ee(n,s,this.length);for(var b=this[n],E=1,G=0;++G<s&&(E*=256);)b+=this[n+G]*E;return b},l.prototype.readUIntBE=function(n,s,O){n|=0,s|=0,O||ee(n,s,this.length);for(var b=this[n+--s],E=1;s>0&&(E*=256);)b+=this[n+--s]*E;return b},l.prototype.readUInt8=function(n,s){return s||ee(n,1,this.length),this[n]},l.prototype.readUInt16LE=function(n,s){return s||ee(n,2,this.length),this[n]|this[n+1]<<8},l.prototype.readUInt16BE=function(n,s){return s||ee(n,2,this.length),this[n]<<8|this[n+1]},l.prototype.readUInt32LE=function(n,s){return s||ee(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},l.prototype.readUInt32BE=function(n,s){return s||ee(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},l.prototype.readIntLE=function(n,s,O){n|=0,s|=0,O||ee(n,s,this.length);for(var b=this[n],E=1,G=0;++G<s&&(E*=256);)b+=this[n+G]*E;return E*=128,b>=E&&(b-=Math.pow(2,8*s)),b},l.prototype.readIntBE=function(n,s,O){n|=0,s|=0,O||ee(n,s,this.length);for(var b=s,E=1,G=this[n+--b];b>0&&(E*=256);)G+=this[n+--b]*E;return E*=128,G>=E&&(G-=Math.pow(2,8*s)),G},l.prototype.readInt8=function(n,s){return s||ee(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},l.prototype.readInt16LE=function(n,s){s||ee(n,2,this.length);var O=this[n]|this[n+1]<<8;return 32768&O?4294901760|O:O},l.prototype.readInt16BE=function(n,s){s||ee(n,2,this.length);var O=this[n+1]|this[n]<<8;return 32768&O?4294901760|O:O},l.prototype.readInt32LE=function(n,s){return s||ee(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},l.prototype.readInt32BE=function(n,s){return s||ee(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},l.prototype.readFloatLE=function(n,s){return s||ee(n,4,this.length),$.read(this,n,!0,23,4)},l.prototype.readFloatBE=function(n,s){return s||ee(n,4,this.length),$.read(this,n,!1,23,4)},l.prototype.readDoubleLE=function(n,s){return s||ee(n,8,this.length),$.read(this,n,!0,52,8)},l.prototype.readDoubleBE=function(n,s){return s||ee(n,8,this.length),$.read(this,n,!1,52,8)},l.prototype.writeUIntLE=function(n,s,O,b){(n=+n,s|=0,O|=0,!b)&&Y(this,n,s,O,Math.pow(2,8*O)-1,0);var E=1,G=0;for(this[s]=255&n;++G<O&&(E*=256);)this[s+G]=n/E&255;return s+O},l.prototype.writeUIntBE=function(n,s,O,b){(n=+n,s|=0,O|=0,!b)&&Y(this,n,s,O,Math.pow(2,8*O)-1,0);var E=O-1,G=1;for(this[s+E]=255&n;--E>=0&&(G*=256);)this[s+E]=n/G&255;return s+O},l.prototype.writeUInt8=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,1,255,0),l.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[s]=255&n,s+1},l.prototype.writeUInt16LE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8):F(this,n,s,!0),s+2},l.prototype.writeUInt16BE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>8,this[s+1]=255&n):F(this,n,s,!1),s+2},l.prototype.writeUInt32LE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=255&n):U(this,n,s,!0),s+4},l.prototype.writeUInt32BE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=255&n):U(this,n,s,!1),s+4},l.prototype.writeIntLE=function(n,s,O,b){if(n=+n,s|=0,!b){var E=Math.pow(2,8*O-1);Y(this,n,s,O,E-1,-E)}var G=0,V=1,L=0;for(this[s]=255&n;++G<O&&(V*=256);)n<0&&L===0&&this[s+G-1]!==0&&(L=1),this[s+G]=(n/V>>0)-L&255;return s+O},l.prototype.writeIntBE=function(n,s,O,b){if(n=+n,s|=0,!b){var E=Math.pow(2,8*O-1);Y(this,n,s,O,E-1,-E)}var G=O-1,V=1,L=0;for(this[s+G]=255&n;--G>=0&&(V*=256);)n<0&&L===0&&this[s+G+1]!==0&&(L=1),this[s+G]=(n/V>>0)-L&255;return s+O},l.prototype.writeInt8=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,1,127,-128),l.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[s]=255&n,s+1},l.prototype.writeInt16LE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8):F(this,n,s,!0),s+2},l.prototype.writeInt16BE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>8,this[s+1]=255&n):F(this,n,s,!1),s+2},l.prototype.writeInt32LE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24):U(this,n,s,!0),s+4},l.prototype.writeInt32BE=function(n,s,O){return n=+n,s|=0,O||Y(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=255&n):U(this,n,s,!1),s+4},l.prototype.writeFloatLE=function(n,s,O){return z(this,n,s,!0,O)},l.prototype.writeFloatBE=function(n,s,O){return z(this,n,s,!1,O)},l.prototype.writeDoubleLE=function(n,s,O){return q(this,n,s,!0,O)},l.prototype.writeDoubleBE=function(n,s,O){return q(this,n,s,!1,O)},l.prototype.copy=function(n,s,O,b){if(O||(O=0),b||b===0||(b=this.length),s>=n.length&&(s=n.length),s||(s=0),b>0&&b<O&&(b=O),b===O)return 0;if(n.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("sourceStart out of bounds");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),n.length-s<b-O&&(b=n.length-s+O);var E,G=b-O;if(this===n&&O<s&&s<b)for(E=G-1;E>=0;--E)n[E+s]=this[E+O];else if(G<1e3||!l.TYPED_ARRAY_SUPPORT)for(E=0;E<G;++E)n[E+s]=this[E+O];else Uint8Array.prototype.set.call(n,this.subarray(O,O+G),s);return G},l.prototype.fill=function(n,s,O,b){if(typeof n=="string"){if(typeof s=="string"?(b=s,s=0,O=this.length):typeof O=="string"&&(b=O,O=this.length),n.length===1){var E=n.charCodeAt(0);E<256&&(n=E)}if(b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!l.isEncoding(b))throw new TypeError("Unknown encoding: "+b)}else typeof n=="number"&&(n&=255);if(s<0||this.length<s||this.length<O)throw new RangeError("Out of range index");if(O<=s)return this;s>>>=0,O=O===void 0?this.length:O>>>0,n||(n=0);var G;if(typeof n=="number")for(G=s;G<O;++G)this[G]=n;else{var V=l.isBuffer(n)?n:he(new l(n,b).toString()),L=V.length;for(G=0;G<O-s;++G)this[G+s]=V[G%L]}return this};var P=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(t,i,S){i.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(t,i,S){"use strict";var m=function(){this.buffer=[],this.fns=[]};m.prototype.push=function(o,l){if(this.fns.length)return this.fns.shift()(null,o);var p={data:o,priority:l},u=g(this.buffer,p,function(e){return e.priority});this.buffer.splice(u,0,p)},m.prototype.next=function(){var o=this;return function(l){if(o.buffer.length)return l(null,o.buffer.pop().data);o.fns.push(l)}};var g=function(l,p,u){p=u(p);for(var e=0,a=l?l.length:e;e<a;){var r=e+a>>>1;u(l[r])<p?e=r+1:a=r}return e};i.exports=m},{}],41:[function(t,i,S){function m(f){var c=this,A=d.call(arguments,1);return new Promise(function(w,h){function T(_){var C;try{C=f.next(_)}catch(D){return h(D)}v(C)}function x(_){var C;try{C=f.throw(_)}catch(D){return h(D)}v(C)}function v(_){if(_.done)return w(_.value);var C=g.call(c,_.value);return C&&u(C)?C.then(T,x):x(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof f=="function"&&(f=f.apply(c,A)),!f||typeof f.next!="function")return w(f);T()})}function g(f){return f&&(u(f)?f:a(f)||e(f)?m.call(this,f):typeof f=="function"?o.call(this,f):Array.isArray(f)?l.call(this,f):r(f)?p.call(this,f):f)}function o(f){var c=this;return new Promise(function(A,w){f.call(c,function(h,T){if(h)return w(h);arguments.length>2&&(T=d.call(arguments,1)),A(T)})})}function l(f){return Promise.all(f.map(g,this))}function p(f){for(var c=new f.constructor,A=Object.keys(f),w=[],h=0;h<A.length;h++){var T=A[h],x=g.call(this,f[T]);x&&u(x)?function(v,_){c[_]=void 0,w.push(v.then(function(C){c[_]=C}))}(x,T):c[T]=f[T]}return Promise.all(w).then(function(){return c})}function u(f){return typeof f.then=="function"}function e(f){return typeof f.next=="function"&&typeof f.throw=="function"}function a(f){var c=f.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function r(f){return Object==f.constructor}var d=Array.prototype.slice;i.exports=m.default=m.co=m,m.wrap=function(f){function c(){return m.call(this,f.apply(this,arguments))}return c.__generatorFunction__=f,c}},{}],42:[function(t,i,S){i.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(t,i,S){"use strict";function m(l,p){if(!(this instanceof m))return new m(l,p);this.src=l,this._withAccess=p}function g(l,p){return l[p]===void 0&&l.__lookupGetter__(p)===void 0&&l.__lookupSetter__(p)===void 0}var o=Array.prototype.slice;i.exports=m,m.prototype.withAccess=function(l){return this._withAccess=l!==!1,this},m.prototype.pick=function(l){return Array.isArray(l)||(l=o.call(arguments)),l.length&&(this.keys=l),this},m.prototype.to=function(l){if(l=l||{},!this.src)return l;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<p.length;u++)e=p[u],l[e]===void 0&&(l[e]=this.src[e]);return l}for(var u=0;u<p.length;u++){var e=p[u];if(g(l,e)){var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&l.__defineGetter__(e,a),r&&l.__defineSetter__(e,r),a||r||(l[e]=this.src[e])}}return l},m.prototype.toCover=function(l){for(var p=this.keys||Object.keys(this.src),u=0;u<p.length;u++){var e=p[u];delete l[e];var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&l.__defineGetter__(e,a),r&&l.__defineSetter__(e,r),a||r||(l[e]=this.src[e])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(l){var p={};return this.to(p),this.src=l,this.to(p),this.src=p,this}},{}],44:[function(t,i,S){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),i.exports=t("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(t,i,S){var m=t("../../modules/_core"),g=m.JSON||(m.JSON={stringify:JSON.stringify});i.exports=function(o){return g.stringify.apply(g,arguments)}},{"../../modules/_core":65}],46:[function(t,i,S){t("../../modules/es6.object.assign"),i.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(t,i,S){t("../../modules/es6.object.create");var m=t("../../modules/_core").Object;i.exports=function(g,o){return m.create(g,o)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(t,i,S){t("../../modules/es6.object.define-property");var m=t("../../modules/_core").Object;i.exports=function(g,o,l){return m.defineProperty(g,o,l)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(t,i,S){t("../../modules/es6.object.get-own-property-names");var m=t("../../modules/_core").Object;i.exports=function(g){return m.getOwnPropertyNames(g)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(t,i,S){t("../../modules/es6.object.get-prototype-of"),i.exports=t("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(t,i,S){t("../../modules/es6.object.keys"),i.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(t,i,S){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),t("../modules/es7.promise.finally"),t("../modules/es7.promise.try"),i.exports=t("../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(t,i,S){t("../modules/web.immediate"),i.exports=t("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(t,i,S){t("../../modules/es6.string.from-code-point"),i.exports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(t,i,S){t("../../modules/es6.function.has-instance"),i.exports=t("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(t,i,S){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),i.exports=t("../../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(t,i,S){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),i.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(t,i,S){i.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],59:[function(t,i,S){i.exports=function(){}},{}],60:[function(t,i,S){i.exports=function(m,g,o,l){if(!(m instanceof g)||l!==void 0&&l in m)throw TypeError(o+": incorrect invocation!");return m}},{}],61:[function(t,i,S){var m=t("./_is-object");i.exports=function(g){if(!m(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":85}],62:[function(t,i,S){var m=t("./_to-iobject"),g=t("./_to-length"),o=t("./_to-absolute-index");i.exports=function(l){return function(p,u,e){var a,r=m(p),d=g(r.length),f=o(e,d);if(l&&u!=u){for(;d>f;)if((a=r[f++])!=a)return!0}else for(;d>f;f++)if((l||f in r)&&r[f]===u)return l||f||0;return!l&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,i,S){var m=t("./_cof"),g=t("./_wks")("toStringTag"),o=m(function(){return arguments}())=="Arguments",l=function(u,e){try{return u[e]}catch(a){}};i.exports=function(p){var u,e,a;return p===void 0?"Undefined":p===null?"Null":typeof(e=l(u=Object(p),g))=="string"?e:o?m(u):(a=m(u))=="Object"&&typeof u.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(t,i,S){var m={}.toString;i.exports=function(g){return m.call(g).slice(8,-1)}},{}],65:[function(t,i,S){var m=i.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(t,i,S){"use strict";var m=t("./_object-dp"),g=t("./_property-desc");i.exports=function(o,l,p){l in o?m.f(o,l,g(0,p)):o[l]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,i,S){var m=t("./_a-function");i.exports=function(g,o,l){if(m(g),o===void 0)return g;switch(l){case 1:return function(p){return g.call(o,p)};case 2:return function(p,u){return g.call(o,p,u)};case 3:return function(p,u,e){return g.call(o,p,u,e)}}return function(){return g.apply(o,arguments)}}},{"./_a-function":58}],68:[function(t,i,S){i.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(t,i,S){i.exports=!t("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(t,i,S){var m=t("./_is-object"),g=t("./_global").document,o=m(g)&&m(g.createElement);i.exports=function(l){return o?g.createElement(l):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,i,S){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,i,S){var m=t("./_object-keys"),g=t("./_object-gops"),o=t("./_object-pie");i.exports=function(l){var p=m(l),u=g.f;if(u)for(var e,a=u(l),r=o.f,d=0;a.length>d;)r.call(l,e=a[d++])&&p.push(e);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,i,S){var m=t("./_global"),g=t("./_core"),o=t("./_ctx"),l=t("./_hide"),p=t("./_has"),u=function e(a,r,d){var f,c,A,w=a&e.F,h=a&e.G,T=a&e.S,x=a&e.P,v=a&e.B,_=a&e.W,C=h?g:g[r]||(g[r]={}),D=C.prototype,y=h?m:T?m[r]:(m[r]||{}).prototype;h&&(d=r);for(f in d)(c=!w&&y&&y[f]!==void 0)&&p(C,f)||(A=c?y[f]:d[f],C[f]=h&&typeof y[f]!="function"?d[f]:v&&c?o(A,m):_&&y[f]==A?function(I){var R=function(k,W,K){if(this instanceof I){switch(arguments.length){case 0:return new I;case 1:return new I(k);case 2:return new I(k,W)}return new I(k,W,K)}return I.apply(this,arguments)};return R.prototype=I.prototype,R}(A):x&&typeof A=="function"?o(Function.call,A):A,x&&((C.virtual||(C.virtual={}))[f]=A,a&e.R&&D&&!D[f]&&l(D,f,A)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,i.exports=u},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,i,S){i.exports=function(m){try{return!!m()}catch(g){return!0}}},{}],75:[function(t,i,S){var m=t("./_ctx"),g=t("./_iter-call"),o=t("./_is-array-iter"),l=t("./_an-object"),p=t("./_to-length"),u=t("./core.get-iterator-method"),e={},a={},S=i.exports=function(r,d,f,c,A){var w,h,T,x,v=A?function(){return r}:u(r),_=m(f,c,d?2:1),C=0;if(typeof v!="function")throw TypeError(r+" is not iterable!");if(o(v)){for(w=p(r.length);w>C;C++)if((x=d?_(l(h=r[C])[0],h[1]):_(r[C]))===e||x===a)return x}else for(T=v.call(r);!(h=T.next()).done;)if((x=g(T,_,h.value,d))===e||x===a)return x};S.BREAK=e,S.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,i,S){var m=i.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=m)},{}],77:[function(t,i,S){var m={}.hasOwnProperty;i.exports=function(g,o){return m.call(g,o)}},{}],78:[function(t,i,S){var m=t("./_object-dp"),g=t("./_property-desc");i.exports=t("./_descriptors")?function(o,l,p){return m.f(o,l,g(1,p))}:function(o,l,p){return o[l]=p,o}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,i,S){var m=t("./_global").document;i.exports=m&&m.documentElement},{"./_global":76}],80:[function(t,i,S){i.exports=!t("./_descriptors")&&!t("./_fails")(function(){return Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,i,S){i.exports=function(m,g,o){var l=o===void 0;switch(g.length){case 0:return l?m():m.call(o);case 1:return l?m(g[0]):m.call(o,g[0]);case 2:return l?m(g[0],g[1]):m.call(o,g[0],g[1]);case 3:return l?m(g[0],g[1],g[2]):m.call(o,g[0],g[1],g[2]);case 4:return l?m(g[0],g[1],g[2],g[3]):m.call(o,g[0],g[1],g[2],g[3])}return m.apply(o,g)}},{}],82:[function(t,i,S){var m=t("./_cof");i.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return m(g)=="String"?g.split(""):Object(g)}},{"./_cof":64}],83:[function(t,i,S){var m=t("./_iterators"),g=t("./_wks")("iterator"),o=Array.prototype;i.exports=function(l){return l!==void 0&&(m.Array===l||o[g]===l)}},{"./_iterators":91,"./_wks":131}],84:[function(t,i,S){var m=t("./_cof");i.exports=Array.isArray||function(g){return m(g)=="Array"}},{"./_cof":64}],85:[function(t,i,S){i.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(t,i,S){var m=t("./_an-object");i.exports=function(g,o,l,p){try{return p?o(m(l)[0],l[1]):o(l)}catch(e){var u=g.return;throw u!==void 0&&m(u.call(g)),e}}},{"./_an-object":61}],87:[function(t,i,S){"use strict";var m=t("./_object-create"),g=t("./_property-desc"),o=t("./_set-to-string-tag"),l={};t("./_hide")(l,t("./_wks")("iterator"),function(){return this}),i.exports=function(p,u,e){p.prototype=m(l,{next:g(1,e)}),o(p,u+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,i,S){"use strict";var m=t("./_library"),g=t("./_export"),o=t("./_redefine"),l=t("./_hide"),p=t("./_iterators"),u=t("./_iter-create"),e=t("./_set-to-string-tag"),a=t("./_object-gpo"),r=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};i.exports=function(c,A,w,h,T,x,v){u(w,A,h);var _,C,D,y=function(ie){if(!d&&ie in k)return k[ie];switch(ie){case"keys":case"values":return function(){return new w(this,ie)}}return function(){return new w(this,ie)}},I=A+" Iterator",R=T=="values",B=!1,k=c.prototype,W=k[r]||k["@@iterator"]||T&&k[T],K=W||y(T),H=T?R?y("entries"):K:void 0,re=A=="Array"&&k.entries||W;if(re&&(D=a(re.call(new c)))!==Object.prototype&&D.next&&(e(D,I,!0),m||typeof D[r]=="function"||l(D,r,f)),R&&W&&W.name!=="values"&&(B=!0,K=function(){return W.call(this)}),m&&!v||!d&&!B&&k[r]||l(k,r,K),p[A]=K,p[I]=f,T)if(_={values:R?K:y("values"),keys:x?K:y("keys"),entries:H},v)for(C in _)C in k||o(k,C,_[C]);else g(g.P+g.F*(d||B),A,_);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(t,i,S){var m=t("./_wks")("iterator"),g=!1;try{var o=[7][m]();o.return=function(){g=!0},Array.from(o,function(){throw 2})}catch(l){}i.exports=function(l,p){if(!p&&!g)return!1;var u=!1;try{var e=[7],a=e[m]();a.next=function(){return{done:u=!0}},e[m]=function(){return a},l(e)}catch(r){}return u}},{"./_wks":131}],90:[function(t,i,S){i.exports=function(m,g){return{value:g,done:!!m}}},{}],91:[function(t,i,S){i.exports={}},{}],92:[function(t,i,S){i.exports=!0},{}],93:[function(t,i,S){var m=t("./_uid")("meta"),g=t("./_is-object"),o=t("./_has"),l=t("./_object-dp").f,p=0,u=Object.isExtensible||function(){return!0},e=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),a=function(w){l(w,m,{value:{i:"O"+ ++p,w:{}}})},r=function(w,h){if(!g(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!o(w,m)){if(!u(w))return"F";if(!h)return"E";a(w)}return w[m].i},d=function(w,h){if(!o(w,m)){if(!u(w))return!0;if(!h)return!1;a(w)}return w[m].w},f=function(w){return e&&c.NEED&&u(w)&&!o(w,m)&&a(w),w},c=i.exports={KEY:m,NEED:!1,fastKey:r,getWeak:d,onFreeze:f}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,i,S){var m=t("./_global"),g=t("./_task").set,o=m.MutationObserver||m.WebKitMutationObserver,l=m.process,p=m.Promise,u=t("./_cof")(l)=="process";i.exports=function(){var e,a,r,d=function(){var h,T;for(u&&(h=l.domain)&&h.exit();e;){T=e.fn,e=e.next;try{T()}catch(x){throw e?r():a=void 0,x}}a=void 0,h&&h.enter()};if(u)r=function(){l.nextTick(d)};else if(!o||m.navigator&&m.navigator.standalone)if(p&&p.resolve){var f=p.resolve(void 0);r=function(){f.then(d)}}else r=function(){g.call(m,d)};else{var c=!0,A=document.createTextNode("");new o(d).observe(A,{characterData:!0}),r=function(){A.data=c=!c}}return function(w){var h={fn:w,next:void 0};a&&(a.next=h),e||(e=h,r()),a=h}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,i,S){"use strict";function m(o){var l,p;this.promise=new o(function(u,e){if(l!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");l=u,p=e}),this.resolve=g(l),this.reject=g(p)}var g=t("./_a-function");i.exports.f=function(o){return new m(o)}},{"./_a-function":58}],96:[function(t,i,S){"use strict";var m=t("./_object-keys"),g=t("./_object-gops"),o=t("./_object-pie"),l=t("./_to-object"),p=t("./_iobject"),u=Object.assign;i.exports=!u||t("./_fails")(function(){var e={},a={},r=Symbol(),d="abcdefghijklmnopqrst";return e[r]=7,d.split("").forEach(function(f){a[f]=f}),u({},e)[r]!=7||Object.keys(u({},a)).join("")!=d})?function(e,a){for(var r=l(e),d=arguments.length,f=1,c=g.f,A=o.f;d>f;)for(var w,h=p(arguments[f++]),T=c?m(h).concat(c(h)):m(h),x=T.length,v=0;x>v;)A.call(h,w=T[v++])&&(r[w]=h[w]);return r}:u},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,i,S){var m=t("./_an-object"),g=t("./_object-dps"),o=t("./_enum-bug-keys"),l=t("./_shared-key")("IE_PROTO"),p=function(){},u=function(){var a,r=t("./_dom-create")("iframe"),d=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",a=r.contentWindow.document,a.open(),a.write("<script>document.F=Object</script>"),a.close(),u=a.F;d--;)delete u.prototype[o[d]];return u()};i.exports=Object.create||function(e,a){var r;return e!==null?(p.prototype=m(e),r=new p,p.prototype=null,r[l]=e):r=u(),a===void 0?r:g(r,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(t,i,S){var m=t("./_an-object"),g=t("./_ie8-dom-define"),o=t("./_to-primitive"),l=Object.defineProperty;S.f=t("./_descriptors")?Object.defineProperty:function(p,u,e){if(m(p),u=o(u,!0),m(e),g)try{return l(p,u,e)}catch(a){}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(t,i,S){var m=t("./_object-dp"),g=t("./_an-object"),o=t("./_object-keys");i.exports=t("./_descriptors")?Object.defineProperties:function(l,p){g(l);for(var u,e=o(p),a=e.length,r=0;a>r;)m.f(l,u=e[r++],p[u]);return l}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(t,i,S){var m=t("./_object-pie"),g=t("./_property-desc"),o=t("./_to-iobject"),l=t("./_to-primitive"),p=t("./_has"),u=t("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;S.f=t("./_descriptors")?e:function(a,r){if(a=o(a),r=l(r,!0),u)try{return e(a,r)}catch(d){}if(p(a,r))return g(!m.f.call(a,r),a[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(t,i,S){var m=t("./_to-iobject"),g=t("./_object-gopn").f,o={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(e){try{return g(e)}catch(a){return l.slice()}};i.exports.f=function(u){return l&&o.call(u)=="[object Window]"?p(u):g(m(u))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(t,i,S){var m=t("./_object-keys-internal"),g=t("./_enum-bug-keys").concat("length","prototype");S.f=Object.getOwnPropertyNames||function(o){return m(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(t,i,S){S.f=Object.getOwnPropertySymbols},{}],104:[function(t,i,S){var m=t("./_has"),g=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),l=Object.prototype;i.exports=Object.getPrototypeOf||function(p){return p=g(p),m(p,o)?p[o]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?l:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(t,i,S){var m=t("./_has"),g=t("./_to-iobject"),o=t("./_array-includes")(!1),l=t("./_shared-key")("IE_PROTO");i.exports=function(p,u){var e,a=g(p),r=0,d=[];for(e in a)e!=l&&m(a,e)&&d.push(e);for(;u.length>r;)m(a,e=u[r++])&&(~o(d,e)||d.push(e));return d}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(t,i,S){var m=t("./_object-keys-internal"),g=t("./_enum-bug-keys");i.exports=Object.keys||function(o){return m(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(t,i,S){S.f={}.propertyIsEnumerable},{}],108:[function(t,i,S){var m=t("./_export"),g=t("./_core"),o=t("./_fails");i.exports=function(l,p){var u=(g.Object||{})[l]||Object[l],e={};e[l]=p(u),m(m.S+m.F*o(function(){u(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(t,i,S){i.exports=function(m){try{return{e:!1,v:m()}}catch(g){return{e:!0,v:g}}}},{}],110:[function(t,i,S){var m=t("./_an-object"),g=t("./_is-object"),o=t("./_new-promise-capability");i.exports=function(l,p){if(m(l),g(p)&&p.constructor===l)return p;var u=o.f(l);return(0,u.resolve)(p),u.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(t,i,S){i.exports=function(m,g){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:g}}},{}],112:[function(t,i,S){var m=t("./_hide");i.exports=function(g,o,l){for(var p in o)l&&g[p]?g[p]=o[p]:m(g,p,o[p]);return g}},{"./_hide":78}],113:[function(t,i,S){i.exports=t("./_hide")},{"./_hide":78}],114:[function(t,i,S){"use strict";var m=t("./_global"),g=t("./_core"),o=t("./_object-dp"),l=t("./_descriptors"),p=t("./_wks")("species");i.exports=function(u){var e=typeof g[u]=="function"?g[u]:m[u];l&&e&&!e[p]&&o.f(e,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(t,i,S){var m=t("./_object-dp").f,g=t("./_has"),o=t("./_wks")("toStringTag");i.exports=function(l,p,u){l&&!g(l=u?l:l.prototype,o)&&m(l,o,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(t,i,S){var m=t("./_shared")("keys"),g=t("./_uid");i.exports=function(o){return m[o]||(m[o]=g(o))}},{"./_shared":117,"./_uid":127}],117:[function(t,i,S){var m=t("./_core"),g=t("./_global"),o=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(i.exports=function(l,p){return o[l]||(o[l]=p!==void 0?p:{})})("versions",[]).push({version:m.version,mode:t("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(t,i,S){var m=t("./_an-object"),g=t("./_a-function"),o=t("./_wks")("species");i.exports=function(l,p){var u,e=m(l).constructor;return e===void 0||(u=m(e)[o])==null?p:g(u)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(t,i,S){var m=t("./_to-integer"),g=t("./_defined");i.exports=function(o){return function(l,p){var u,e,a=String(g(l)),r=m(p),d=a.length;return r<0||r>=d?o?"":void 0:(u=a.charCodeAt(r),u<55296||u>56319||r+1===d||(e=a.charCodeAt(r+1))<56320||e>57343?o?a.charAt(r):u:o?a.slice(r,r+2):e-56320+(u-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(t,i,S){var m,g,o,l=t("./_ctx"),p=t("./_invoke"),u=t("./_html"),e=t("./_dom-create"),a=t("./_global"),r=a.process,d=a.setImmediate,f=a.clearImmediate,c=a.MessageChannel,A=a.Dispatch,w=0,h={},T=function(){var _=+this;if(h.hasOwnProperty(_)){var C=h[_];delete h[_],C()}},x=function(_){T.call(_.data)};d&&f||(d=function(_){for(var C=[],D=1;arguments.length>D;)C.push(arguments[D++]);return h[++w]=function(){p(typeof _=="function"?_:Function(_),C)},m(w),w},f=function(_){delete h[_]},t("./_cof")(r)=="process"?m=function(_){r.nextTick(l(T,_,1))}:A&&A.now?m=function(_){A.now(l(T,_,1))}:c?(g=new c,o=g.port2,g.port1.onmessage=x,m=l(o.postMessage,o,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(_){a.postMessage(_+"","*")},a.addEventListener("message",x,!1)):m="onreadystatechange"in e("script")?function(v){u.appendChild(e("script")).onreadystatechange=function(){u.removeChild(this),T.call(v)}}:function(v){setTimeout(l(T,v,1),0)}),i.exports={set:d,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(t,i,S){var m=t("./_to-integer"),g=Math.max,o=Math.min;i.exports=function(l,p){return l=m(l),l<0?g(l+p,0):o(l,p)}},{"./_to-integer":122}],122:[function(t,i,S){var m=Math.ceil,g=Math.floor;i.exports=function(o){return isNaN(o=+o)?0:(o>0?g:m)(o)}},{}],123:[function(t,i,S){var m=t("./_iobject"),g=t("./_defined");i.exports=function(o){return m(g(o))}},{"./_defined":68,"./_iobject":82}],124:[function(t,i,S){var m=t("./_to-integer"),g=Math.min;i.exports=function(o){return o>0?g(m(o),9007199254740991):0}},{"./_to-integer":122}],125:[function(t,i,S){var m=t("./_defined");i.exports=function(g){return Object(m(g))}},{"./_defined":68}],126:[function(t,i,S){var m=t("./_is-object");i.exports=function(g,o){if(!m(g))return g;var l,p;if(o&&typeof(l=g.toString)=="function"&&!m(p=l.call(g)))return p;if(typeof(l=g.valueOf)=="function"&&!m(p=l.call(g)))return p;if(!o&&typeof(l=g.toString)=="function"&&!m(p=l.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(t,i,S){var m=0,g=Math.random();i.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++m+g).toString(36))}},{}],128:[function(t,i,S){var m=t("./_global"),g=m.navigator;i.exports=g&&g.userAgent||""},{"./_global":76}],129:[function(t,i,S){var m=t("./_global"),g=t("./_core"),o=t("./_library"),l=t("./_wks-ext"),p=t("./_object-dp").f;i.exports=function(u){var e=g.Symbol||(g.Symbol=o?{}:m.Symbol||{});u.charAt(0)=="_"||u in e||p(e,u,{value:l.f(u)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(t,i,S){S.f=t("./_wks")},{"./_wks":131}],131:[function(t,i,S){var m=t("./_shared")("wks"),g=t("./_uid"),o=t("./_global").Symbol,l=typeof o=="function";(i.exports=function(p){return m[p]||(m[p]=l&&o[p]||(l?o:g)("Symbol."+p))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(t,i,S){var m=t("./_classof"),g=t("./_wks")("iterator"),o=t("./_iterators");i.exports=t("./_core").getIteratorMethod=function(l){if(l!=null)return l[g]||l["@@iterator"]||o[m(l)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(t,i,S){"use strict";var m=t("./_ctx"),g=t("./_export"),o=t("./_to-object"),l=t("./_iter-call"),p=t("./_is-array-iter"),u=t("./_to-length"),e=t("./_create-property"),a=t("./core.get-iterator-method");g(g.S+g.F*!t("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(d){var f,c,A,w,h=o(d),T=typeof this=="function"?this:Array,x=arguments.length,v=x>1?arguments[1]:void 0,_=v!==void 0,C=0,D=a(h);if(_&&(v=m(v,x>2?arguments[2]:void 0,2)),D==null||T==Array&&p(D))for(f=u(h.length),c=new T(f);f>C;C++)e(c,C,_?v(h[C],C):h[C]);else for(w=D.call(h),c=new T;!(A=w.next()).done;C++)e(c,C,_?l(w,v,[A.value,C],!0):A.value);return c.length=C,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(t,i,S){"use strict";var m=t("./_add-to-unscopables"),g=t("./_iter-step"),o=t("./_iterators"),l=t("./_to-iobject");i.exports=t("./_iter-define")(Array,"Array",function(p,u){this._t=l(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"),o.Arguments=o.Array,m("keys"),m("values"),m("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(t,i,S){"use strict";var m=t("./_is-object"),g=t("./_object-gpo"),o=t("./_wks")("hasInstance"),l=Function.prototype;o in l||t("./_object-dp").f(l,o,{value:function(u){if(typeof this!="function"||!m(u))return!1;if(!m(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(t,i,S){var m=t("./_export");m(m.S+m.F,"Object",{assign:t("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(t,i,S){var m=t("./_export");m(m.S,"Object",{create:t("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(t,i,S){var m=t("./_export");m(m.S+m.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(t,i,S){t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(t,i,S){var m=t("./_to-object"),g=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(o){return g(m(o))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(t,i,S){var m=t("./_to-object"),g=t("./_object-keys");t("./_object-sap")("keys",function(){return function(o){return g(m(o))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(t,i,S){arguments[4][36][0].apply(S,arguments)},{dup:36}],143:[function(t,i,S){"use strict";var m,g,o,l,p=t("./_library"),u=t("./_global"),e=t("./_ctx"),a=t("./_classof"),r=t("./_export"),d=t("./_is-object"),f=t("./_a-function"),c=t("./_an-instance"),A=t("./_for-of"),w=t("./_species-constructor"),h=t("./_task").set,T=t("./_microtask")(),x=t("./_new-promise-capability"),v=t("./_perform"),_=t("./_user-agent"),C=t("./_promise-resolve"),D=u.TypeError,y=u.process,I=y&&y.versions,R=I&&I.v8||"",B=u.Promise,k=a(y)=="process",W=function(){},K=g=x.f,H=!!function(){try{var M=B.resolve(1),z=(M.constructor={})[t("./_wks")("species")]=function(q){q(W,W)};return(k||typeof PromiseRejectionEvent=="function")&&M.then(W)instanceof z&&R.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(q){}}(),re=function(z){var q;return!(!d(z)||typeof(q=z.then)!="function")&&q},X=function(z,q){if(!z._n){z._n=!0;var Z=z._c;T(function(){for(var de=z._v,oe=z._s==1,he=0;Z.length>he;)!function(_e){var ne,te,se,N=oe?_e.ok:_e.fail,j=_e.resolve,$=_e.reject,ae=_e.domain;try{N?(oe||(z._h==2&&Y(z),z._h=1),N===!0?ne=de:(ae&&ae.enter(),ne=N(de),ae&&(ae.exit(),se=!0)),ne===_e.promise?$(D("Promise-chain cycle")):(te=re(ne))?te.call(ne,j,$):j(ne)):$(de)}catch(me){ae&&!se&&ae.exit(),$(me)}}(Z[he++]);z._c=[],z._n=!1,q&&!z._h&&ie(z)})}},ie=function(z){h.call(u,function(){var q,Z,de,oe=z._v,he=ee(z);if(he&&(q=v(function(){k?y.emit("unhandledRejection",oe,z):(Z=u.onunhandledrejection)?Z({promise:z,reason:oe}):(de=u.console)&&de.error&&de.error("Unhandled promise rejection",oe)}),z._h=k||ee(z)?2:1),z._a=void 0,he&&q.e)throw q.v})},ee=function(z){return z._h!==1&&(z._a||z._c).length===0},Y=function(z){h.call(u,function(){var q;k?y.emit("rejectionHandled",z):(q=u.onrejectionhandled)&&q({promise:z,reason:z._v})})},F=function(z){var q=this;q._d||(q._d=!0,q=q._w||q,q._v=z,q._s=2,q._a||(q._a=q._c.slice()),X(q,!0))},U=function M(z){var q,Z=this;if(!Z._d){Z._d=!0,Z=Z._w||Z;try{if(Z===z)throw D("Promise can't be resolved itself");(q=re(z))?T(function(){var de={_w:Z,_d:!1};try{q.call(z,e(M,de,1),e(F,de,1))}catch(oe){F.call(de,oe)}}):(Z._v=z,Z._s=1,X(Z,!1))}catch(de){F.call({_w:Z,_d:!1},de)}}};H||(B=function(z){c(this,B,"Promise","_h"),f(z),m.call(this);try{z(e(U,this,1),e(F,this,1))}catch(q){F.call(this,q)}},m=function(z){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=t("./_redefine-all")(B.prototype,{then:function(z,q){var Z=K(w(this,B));return Z.ok=typeof z!="function"||z,Z.fail=typeof q=="function"&&q,Z.domain=k?y.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&X(this,!1),Z.promise},catch:function(z){return this.then(void 0,z)}}),o=function(){var z=new m;this.promise=z,this.resolve=e(U,z,1),this.reject=e(F,z,1)},x.f=K=function(z){return z===B||z===l?new o(z):g(z)}),r(r.G+r.W+r.F*!H,{Promise:B}),t("./_set-to-string-tag")(B,"Promise"),t("./_set-species")("Promise"),l=t("./_core").Promise,r(r.S+r.F*!H,"Promise",{reject:function(z){var q=K(this);return(0,q.reject)(z),q.promise}}),r(r.S+r.F*(p||!H),"Promise",{resolve:function(z){return C(p&&this===l?B:this,z)}}),r(r.S+r.F*!(H&&t("./_iter-detect")(function(M){B.all(M).catch(W)})),"Promise",{all:function(z){var q=this,Z=K(q),de=Z.resolve,oe=Z.reject,he=v(function(){var _e=[],ne=0,te=1;A(z,!1,function(se){var N=ne++,j=!1;_e.push(void 0),te++,q.resolve(se).then(function($){j||(j=!0,_e[N]=$,--te||de(_e))},oe)}),--te||de(_e)});return he.e&&oe(he.v),Z.promise},race:function(z){var q=this,Z=K(q),de=Z.reject,oe=v(function(){A(z,!1,function(he){q.resolve(he).then(Z.resolve,de)})});return oe.e&&de(oe.v),Z.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(t,i,S){var m=t("./_export"),g=t("./_to-absolute-index"),o=String.fromCharCode,l=String.fromCodePoint;m(m.S+m.F*(!!l&&l.length!=1),"String",{fromCodePoint:function(u){for(var e,a=[],r=arguments.length,d=0;r>d;){if(e=+arguments[d++],g(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(t,i,S){"use strict";var m=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,o=this._t,l=this._i;return l>=o.length?{value:void 0,done:!0}:(g=m(o,l),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(t,i,S){"use strict";var m=t("./_global"),g=t("./_has"),o=t("./_descriptors"),l=t("./_export"),p=t("./_redefine"),u=t("./_meta").KEY,e=t("./_fails"),a=t("./_shared"),r=t("./_set-to-string-tag"),d=t("./_uid"),f=t("./_wks"),c=t("./_wks-ext"),A=t("./_wks-define"),w=t("./_enum-keys"),h=t("./_is-array"),T=t("./_an-object"),x=t("./_is-object"),v=t("./_to-iobject"),_=t("./_to-primitive"),C=t("./_property-desc"),D=t("./_object-create"),y=t("./_object-gopn-ext"),I=t("./_object-gopd"),R=t("./_object-dp"),B=t("./_object-keys"),k=I.f,W=R.f,K=y.f,H=m.Symbol,re=m.JSON,X=re&&re.stringify,ie=f("_hidden"),ee=f("toPrimitive"),Y={}.propertyIsEnumerable,F=a("symbol-registry"),U=a("symbols"),M=a("op-symbols"),z=Object.prototype,q=typeof H=="function",Z=m.QObject,de=!Z||!Z.prototype||!Z.prototype.findChild,oe=o&&e(function(){return D(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a!=7})?function(O,b,E){var G=k(z,b);G&&delete z[b],W(O,b,E),G&&O!==z&&W(z,b,G)}:W,he=function(b){var E=U[b]=D(H.prototype);return E._k=b,E},_e=q&&typeof H.iterator=="symbol"?function(O){return typeof O=="symbol"}:function(O){return O instanceof H},ne=function O(b,E,G){return b===z&&O(M,E,G),T(b),E=_(E,!0),T(G),g(U,E)?(G.enumerable?(g(b,ie)&&b[ie][E]&&(b[ie][E]=!1),G=D(G,{enumerable:C(0,!1)})):(g(b,ie)||W(b,ie,C(1,{})),b[ie][E]=!0),oe(b,E,G)):W(b,E,G)},te=function(b,E){T(b);for(var G,V=w(E=v(E)),L=0,Q=V.length;Q>L;)ne(b,G=V[L++],E[G]);return b},se=function(b,E){return E===void 0?D(b):te(D(b),E)},N=function(b){var E=Y.call(this,b=_(b,!0));return!(this===z&&g(U,b)&&!g(M,b))&&(!(E||!g(this,b)||!g(U,b)||g(this,ie)&&this[ie][b])||E)},j=function(b,E){if(b=v(b),E=_(E,!0),b!==z||!g(U,E)||g(M,E)){var G=k(b,E);return!G||!g(U,E)||g(b,ie)&&b[ie][E]||(G.enumerable=!0),G}},$=function(b){for(var E,G=K(v(b)),V=[],L=0;G.length>L;)g(U,E=G[L++])||E==ie||E==u||V.push(E);return V},ae=function(b){for(var E,G=b===z,V=K(G?M:v(b)),L=[],Q=0;V.length>Q;)!g(U,E=V[Q++])||G&&!g(z,E)||L.push(U[E]);return L};q||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var b=d(arguments.length>0?arguments[0]:void 0),E=function G(V){this===z&&G.call(M,V),g(this,ie)&&g(this[ie],b)&&(this[ie][b]=!1),oe(this,b,C(1,V))};return o&&de&&oe(z,b,{configurable:!0,set:E}),he(b)},p(H.prototype,"toString",function(){return this._k}),I.f=j,R.f=ne,t("./_object-gopn").f=y.f=$,t("./_object-pie").f=N,t("./_object-gops").f=ae,o&&!t("./_library")&&p(z,"propertyIsEnumerable",N,!0),c.f=function(O){return he(f(O))}),l(l.G+l.W+l.F*!q,{Symbol:H});for(var me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),P=0;me.length>P;)f(me[P++]);for(var n=B(f.store),s=0;n.length>s;)A(n[s++]);l(l.S+l.F*!q,"Symbol",{for:function(b){return g(F,b+="")?F[b]:F[b]=H(b)},keyFor:function(b){if(!_e(b))throw TypeError(b+" is not a symbol!");for(var E in F)if(F[E]===b)return E},useSetter:function(){de=!0},useSimple:function(){de=!1}}),l(l.S+l.F*!q,"Object",{create:se,defineProperty:ne,defineProperties:te,getOwnPropertyDescriptor:j,getOwnPropertyNames:$,getOwnPropertySymbols:ae}),re&&l(l.S+l.F*(!q||e(function(){var O=H();return X([O])!="[null]"||X({a:O})!="{}"||X(Object(O))!="{}"})),"JSON",{stringify:function(b){for(var E,G,V=[b],L=1;arguments.length>L;)V.push(arguments[L++]);if(G=E=V[1],(x(E)||b!==void 0)&&!_e(b))return h(E)||(E=function(ue,pe){if(typeof G=="function"&&(pe=G.call(this,ue,pe)),!_e(pe))return pe}),V[1]=E,X.apply(re,V)}}),H.prototype[ee]||t("./_hide")(H.prototype,ee,H.prototype.valueOf),r(H,"Symbol"),r(Math,"Math",!0),r(m.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(t,i,S){"use strict";var m=t("./_export"),g=t("./_core"),o=t("./_global"),l=t("./_species-constructor"),p=t("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(e){var a=l(this,g.Promise||o.Promise),r=typeof e=="function";return this.then(r?function(d){return p(a,e()).then(function(){return d})}:e,r?function(d){return p(a,e()).then(function(){throw d})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(t,i,S){"use strict";var m=t("./_export"),g=t("./_new-promise-capability"),o=t("./_perform");m(m.S,"Promise",{try:function(p){var u=g.f(this),e=o(p);return(e.e?u.reject:u.resolve)(e.v),u.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(t,i,S){t("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(t,i,S){t("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(t,i,S){t("./es6.array.iterator");for(var m=t("./_global"),g=t("./_hide"),o=t("./_iterators"),l=t("./_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],a=m[e],r=a&&a.prototype;r&&!r[l]&&g(r,l,e),o[e]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(t,i,S){var m=t("./_export"),g=t("./_task");m(m.G+m.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":73,"./_task":120}],153:[function(t,i,S){(function(m){"use strict";function g(_){return Array.isArray?Array.isArray(_):T(_)==="[object Array]"}function o(_){return typeof _=="boolean"}function l(_){return _===null}function p(_){return _==null}function u(_){return typeof _=="number"}function e(_){return typeof _=="string"}function a(_){return(_===void 0?"undefined":(0,v.default)(_))==="symbol"}function r(_){return _===void 0}function d(_){return T(_)==="[object RegExp]"}function f(_){return(_===void 0?"undefined":(0,v.default)(_))==="object"&&_!==null}function c(_){return T(_)==="[object Date]"}function A(_){return T(_)==="[object Error]"||_ instanceof Error}function w(_){return typeof _=="function"}function h(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,v.default)(_))==="symbol"||_===void 0}function T(_){return Object.prototype.toString.call(_)}var x=t("babel-runtime/helpers/typeof"),v=function(_){return _&&_.__esModule?_:{default:_}}(x);S.isArray=g,S.isBoolean=o,S.isNull=l,S.isNullOrUndefined=p,S.isNumber=u,S.isString=e,S.isSymbol=a,S.isUndefined=r,S.isRegExp=d,S.isObject=f,S.isDate=c,S.isError=A,S.isFunction=w,S.isPrimitive=h,S.isBuffer=m.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(t,i,S){"use strict";var m=t("babel-runtime/helpers/typeof"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);!function(o){function l(r,d){for(r=String(r),d=d||2;r.length<d;)r="0"+r;return r}function p(r){var d=new Date(r.getFullYear(),r.getMonth(),r.getDate());d.setDate(d.getDate()-(d.getDay()+6)%7+3);var f=new Date(d.getFullYear(),0,4);f.setDate(f.getDate()-(f.getDay()+6)%7+3);var c=d.getTimezoneOffset()-f.getTimezoneOffset();d.setHours(d.getHours()-c);var A=(d-f)/6048e5;return 1+Math.floor(A)}function u(r){var d=r.getDay();return d===0&&(d=7),d}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 a=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,d=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g;return function(c,A,w,h){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(A=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");A=String(a.masks[A]||A||a.masks.default);var T=A.slice(0,4);T!=="UTC:"&&T!=="GMT:"||(A=A.slice(4),w=!0,T==="GMT:"&&(h=!0));var x=w?"getUTC":"get",v=c[x+"Date"](),_=c[x+"Day"](),C=c[x+"Month"](),D=c[x+"FullYear"](),y=c[x+"Hours"](),I=c[x+"Minutes"](),R=c[x+"Seconds"](),B=c[x+"Milliseconds"](),k=w?0:c.getTimezoneOffset(),W=p(c),K=u(c),H={d:v,dd:l(v),ddd:a.i18n.dayNames[_],dddd:a.i18n.dayNames[_+7],m:C+1,mm:l(C+1),mmm:a.i18n.monthNames[C],mmmm:a.i18n.monthNames[C+12],yy:String(D).slice(2),yyyy:D,h:y%12||12,hh:l(y%12||12),H:y,HH:l(y),M:I,MM:l(I),s:R,ss:l(R),l:l(B,3),L:l(Math.round(B/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:h?"GMT":w?"UTC":(String(c).match(d)||[""]).pop().replace(f,""),o:(k>0?"-":"+")+l(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][v%10>3?0:(v%100-v%10!=10)*v%10],W,N:K};return A.replace(r,function(re){return re in H?H[re]:re.slice(1,re.length-1)})}}();a.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},a.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof fe=="function"&&fe.amd?fe(function(){return a}):(S===void 0?"undefined":(0,g.default)(S))==="object"?i.exports=a:o.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(t,i,S){(function(m){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 o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+S.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var d=0,f=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(d++,c==="%c"&&(f=d))}),e.splice(f,0,r)}}function l(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(e){try{e==null?S.storage.removeItem("debug"):S.storage.debug=e}catch(a){}}function u(){var e;try{e=S.storage.debug}catch(a){}return!e&&m!==void 0&&"env"in m&&(e=m.env.DEBUG),e}S=i.exports=t("./debug"),S.log=l,S.formatArgs=o,S.save=p,S.load=u,S.useColors=g,S.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),S.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],S.formatters.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},S.enable(u())}).call(this,t("_process"))},{"./debug":156,_process:173}],156:[function(t,i,S){function m(a){var r,d=0;for(r in a)d=(d<<5)-d+a.charCodeAt(r),d|=0;return S.colors[Math.abs(d)%S.colors.length]}function g(a){function r(){if(r.enabled){var d=r,f=+new Date,c=f-(e||f);d.diff=c,d.prev=e,d.curr=f,e=f;for(var A=new Array(arguments.length),w=0;w<A.length;w++)A[w]=arguments[w];A[0]=S.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");var h=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,function(T,x){if(T==="%%")return T;h++;var v=S.formatters[x];if(typeof v=="function"){var _=A[h];T=v.call(d,_),A.splice(h,1),h--}return T}),S.formatArgs.call(d,A),(r.log||S.log||console.log.bind(console)).apply(d,A)}}return r.namespace=a,r.enabled=S.enabled(a),r.useColors=S.useColors(),r.color=m(a),typeof S.init=="function"&&S.init(r),r}function o(a){S.save(a),S.names=[],S.skips=[];for(var r=(typeof a=="string"?a:"").split(/[\s,]+/),d=r.length,f=0;f<d;f++)r[f]&&(a=r[f].replace(/\*/g,".*?"),a[0]==="-"?S.skips.push(new RegExp("^"+a.substr(1)+"$")):S.names.push(new RegExp("^"+a+"$")))}function l(){S.enable("")}function p(a){var r,d;for(r=0,d=S.skips.length;r<d;r++)if(S.skips[r].test(a))return!1;for(r=0,d=S.names.length;r<d;r++)if(S.names[r].test(a))return!0;return!1}function u(a){return a instanceof Error?a.stack||a.message:a}S=i.exports=g.debug=g.default=g,S.coerce=u,S.disable=l,S.enable=o,S.enabled=p,S.humanize=t("ms"),S.names=[],S.skips=[],S.formatters={};var e},{ms:169}],157:[function(t,i,S){"use strict";function m(o){var l=""+o,p=g.exec(l);if(!p)return l;var u,e="",a=0,r=0;for(a=p.index;a<l.length;a++){switch(l.charCodeAt(a)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}r!==a&&(e+=l.substring(r,a)),r=a+1,e+=u}return r!==a?e+l.substring(r,a):e}var g=/["'&<>]/;i.exports=m},{}],158:[function(t,i,S){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function g(u){return typeof u=="function"}function o(u){return typeof u=="number"}function l(u){return typeof u=="object"&&u!==null}function p(u){return u===void 0}i.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(u){if(!o(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},m.prototype.emit=function(u){var e,a,r,d,f,c;if(this._events||(this._events={}),u==="error"&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var A=new Error('Uncaught, unspecified "error" event. ('+e+")");throw A.context=e,A}if(a=this._events[u],p(a))return!1;if(g(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),a.apply(this,d)}else if(l(a))for(d=Array.prototype.slice.call(arguments,1),c=a.slice(),r=c.length,f=0;f<r;f++)c[f].apply(this,d);return!0},m.prototype.addListener=function(u,e){var a;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]?l(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,l(this._events[u])&&!this._events[u].warned&&(a=p(this._maxListeners)?m.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[u].length>a&&(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},m.prototype.on=m.prototype.addListener,m.prototype.once=function(u,e){function a(){this.removeListener(u,a),r||(r=!0,e.apply(this,arguments))}if(!g(e))throw TypeError("listener must be a function");var r=!1;return a.listener=e,this.on(u,a),this},m.prototype.removeListener=function(u,e){var a,r,d,f;if(!g(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(a=this._events[u],d=a.length,r=-1,a===e||g(a.listener)&&a.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(l(a)){for(f=d;f-- >0;)if(a[f]===e||a[f].listener&&a[f].listener===e){r=f;break}if(r<0)return this;a.length===1?(a.length=0,delete this._events[u]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},m.prototype.removeAllListeners=function(u){var e,a;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(a=this._events[u],g(a))this.removeListener(u,a);else if(a)for(;a.length;)this.removeListener(u,a[a.length-1]);return delete this._events[u],this},m.prototype.listeners=function(u){return this._events&&this._events[u]?g(this._events[u])?[this._events[u]]:this._events[u].slice():[]},m.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(g(e))return 1;if(e)return e.length}return 0},m.listenerCount=function(u,e){return u.listenerCount(e)}},{}],159:[function(t,i,S){var m=t("http"),g=i.exports;for(var o in m)m.hasOwnProperty(o)&&(g[o]=m[o]);g.request=function(l,p){return l||(l={}),l.scheme="https",l.protocol="https:",m.request.call(this,l,p)}},{http:196}],160:[function(t,i,S){"use strict";var m=t("util"),g=t("ms");i.exports=function(o){if(typeof o=="number")return o;var l=g(o);if(l===void 0){var p=new Error(m.format("humanize-ms(%j) result undefined",o));console.warn(p.stack)}return l}},{ms:169,util:207}],161:[function(t,i,S){S.read=function(m,g,o,l,p){var u,e,a=8*p-l-1,r=(1<<a)-1,d=r>>1,f=-7,c=o?p-1:0,A=o?-1:1,w=m[g+c];for(c+=A,u=w&(1<<-f)-1,w>>=-f,f+=a;f>0;u=256*u+m[g+c],c+=A,f-=8);for(e=u&(1<<-f)-1,u>>=-f,f+=l;f>0;e=256*e+m[g+c],c+=A,f-=8);if(u===0)u=1-d;else{if(u===r)return e?NaN:1/0*(w?-1:1);e+=Math.pow(2,l),u-=d}return(w?-1:1)*e*Math.pow(2,u-l)},S.write=function(m,g,o,l,p,u){var e,a,r,d=8*u-p-1,f=(1<<d)-1,c=f>>1,A=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=l?0:u-1,h=l?1:-1,T=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(a=isNaN(g)?1:0,e=f):(e=Math.floor(Math.log(g)/Math.LN2),g*(r=Math.pow(2,-e))<1&&(e--,r*=2),g+=e+c>=1?A/r:A*Math.pow(2,1-c),g*r>=2&&(e++,r/=2),e+c>=f?(a=0,e=f):e+c>=1?(a=(g*r-1)*Math.pow(2,p),e+=c):(a=g*Math.pow(2,c-1)*Math.pow(2,p),e=0));p>=8;m[o+w]=255&a,w+=h,a/=256,p-=8);for(e=e<<p|a,d+=p;d>0;m[o+w]=255&e,w+=h,e/=256,d-=8);m[o+w-h]|=128*T}},{}],162:[function(t,i,S){typeof Object.create=="function"?i.exports=function(m,g){m.super_=g,m.prototype=Object.create(g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(m,g){m.super_=g;var o=function(){};o.prototype=g.prototype,m.prototype=new o,m.prototype.constructor=m}},{}],163:[function(t,i,S){function m(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function g(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&m(o.slice(0,0))}i.exports=function(o){return o!=null&&(m(o)||g(o)||!!o._isBuffer)}},{}],164:[function(t,i,S){!function(m){function g(p){return l.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(l.call(p))||/^.*classCallCheck\(/.test(g(p)))}var l=Function.prototype.toString;S!==void 0?(i!==void 0&&i.exports&&(S=i.exports=o),S.isClass=o):typeof fe=="function"&&fe.amd?fe([],function(){return o}):m.isClass=o}(this)},{}],165:[function(t,i,S){"use strict";function m(u){var e=u.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var g=t("core-util-is"),o=t("isstream"),l=t("is-class");Object.keys(g).map(function(u){S[m(u)]=g[u]}),S.stream=o,S.readableStream=o.isReadable,S.writableStream=o.isWritable,S.duplexStream=o.isDuplex,S.class=l,S.finite=function(u){return Number.isFinite(u)},S.NaN=function(u){return Number.isNaN(u)},S.generator=function(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"},S.generatorFunction=function(u){return u&&u.constructor&&u.constructor.name==="GeneratorFunction"},S.asyncFunction=function(u){return u&&u.constructor&&u.constructor.name==="AsyncFunction"},S.promise=function(u){return u&&typeof u.then=="function"};var p=Math.pow(2,31);S.int=function(u){return g.isNumber(u)&&u%1==0},S.int32=function(u){return S.int(u)&&u<p&&u>=-p},S.long=function(u){return S.int(u)&&(u>=p||u<-p)},S.Long=function(u){return S.object(u)&&S.number(u.high)&&S.number(u.low)},S.double=function(u){return g.isNumber(u)&&!isNaN(u)&&u%1!=0},S.date=function(u){return u instanceof Date},S.regExp=function(u){return u instanceof RegExp},S.regexp=S.regExp,S.error=function(u){return u instanceof Error},S.array=function(u){return Array.isArray(u)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(t,i,S){var m={}.toString;i.exports=Array.isArray||function(g){return m.call(g)=="[object Array]"}},{}],167:[function(t,i,S){function m(u){return u instanceof p.Stream}function g(u){return m(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function o(u){return m(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function l(u){return g(u)&&o(u)}var p=t("stream");i.exports=m,i.exports.isReadable=g,i.exports.isWritable=o,i.exports.isDuplex=l},{stream:195}],168:[function(t,i,S){"use strict";function m(o,l,p){if(!o)throw new TypeError("argument dest is required");if(!l)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(l).forEach(function(u){if(p||!g.call(o,u)){var e=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,e)}}),o}i.exports=m;var g=Object.prototype.hasOwnProperty},{}],169:[function(t,i,S){function m(d){if(d=String(d),!(d.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(d);if(f){var c=parseFloat(f[1]);switch((f[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"days":case"day":case"d":return c*a;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(d){return d>=a?Math.round(d/a)+"d":d>=e?Math.round(d/e)+"h":d>=u?Math.round(d/u)+"m":d>=p?Math.round(d/p)+"s":d+"ms"}function o(d){return l(d,a,"day")||l(d,e,"hour")||l(d,u,"minute")||l(d,p,"second")||d+" ms"}function l(d,f,c){if(!(d<f))return d<1.5*f?Math.floor(d/f)+" "+c:Math.ceil(d/f)+" "+c+"s"}var p=1e3,u=60*p,e=60*u,a=24*e,r=365.25*a;i.exports=function(d,f){f=f||{};var c=typeof d;if(c==="string"&&d.length>0)return m(d);if(c==="number"&&isNaN(d)===!1)return f.long?o(d):g(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},{}],170:[function(t,i,S){(function(m){function g(u,e){for(var a=0,r=u.length-1;r>=0;r--){var d=u[r];d==="."?u.splice(r,1):d===".."?(u.splice(r,1),a++):a&&(u.splice(r,1),a--)}if(e)for(;a--;a)u.unshift("..");return u}function o(u){typeof u!="string"&&(u+="");var e,a=0,r=-1,d=!0;for(e=u.length-1;e>=0;--e)if(u.charCodeAt(e)===47){if(!d){a=e+1;break}}else r===-1&&(d=!1,r=e+1);return r===-1?"":u.slice(a,r)}function l(u,e){if(u.filter)return u.filter(e);for(var a=[],r=0;r<u.length;r++)e(u[r],r,u)&&a.push(u[r]);return a}S.resolve=function(){for(var u="",e=!1,a=arguments.length-1;a>=-1&&!e;a--){var r=a>=0?arguments[a]:m.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(u=r+"/"+u,e=r.charAt(0)==="/")}return u=g(l(u.split("/"),function(d){return!!d}),!e).join("/"),(e?"/":"")+u||"."},S.normalize=function(u){var e=S.isAbsolute(u),a=p(u,-1)==="/";return u=g(l(u.split("/"),function(r){return!!r}),!e).join("/"),u||e||(u="."),u&&a&&(u+="/"),(e?"/":"")+u},S.isAbsolute=function(u){return u.charAt(0)==="/"},S.join=function(){var u=Array.prototype.slice.call(arguments,0);return S.normalize(l(u,function(e,a){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},S.relative=function(u,e){function a(h){for(var T=0;T<h.length&&h[T]==="";T++);for(var x=h.length-1;x>=0&&h[x]==="";x--);return T>x?[]:h.slice(T,x-T+1)}u=S.resolve(u).substr(1),e=S.resolve(e).substr(1);for(var r=a(u.split("/")),d=a(e.split("/")),f=Math.min(r.length,d.length),c=f,A=0;A<f;A++)if(r[A]!==d[A]){c=A;break}for(var w=[],A=c;A<r.length;A++)w.push("..");return w=w.concat(d.slice(c)),w.join("/")},S.sep="/",S.delimiter=":",S.dirname=function(u){if(typeof u!="string"&&(u+=""),u.length===0)return".";for(var e=u.charCodeAt(0),a=e===47,r=-1,d=!0,f=u.length-1;f>=1;--f)if((e=u.charCodeAt(f))===47){if(!d){r=f;break}}else d=!1;return r===-1?a?"/":".":a&&r===1?"/":u.slice(0,r)},S.basename=function(u,e){var a=o(u);return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},S.extname=function(u){typeof u!="string"&&(u+="");for(var e=-1,a=0,r=-1,d=!0,f=0,c=u.length-1;c>=0;--c){var A=u.charCodeAt(c);if(A!==47)r===-1&&(d=!1,r=c+1),A===46?e===-1?e=c:f!==1&&(f=1):e!==-1&&(f=-1);else if(!d){a=c+1;break}}return e===-1||r===-1||f===0||f===1&&e===r-1&&e===a+1?"":u.slice(e,r)};var p="ab".substr(-1)==="b"?function(u,e,a){return u.substr(e,a)}:function(u,e,a){return e<0&&(e=u.length+e),u.substr(e,a)}}).call(this,t("_process"))},{_process:173}],171:[function(t,i,S){(function(m){(function(){"use strict";function g(R){return R=String(R),R.charAt(0).toUpperCase()+R.slice(1)}function o(R,B,k){var W={"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 B&&k&&/^Win/i.test(R)&&!/^Windows Phone /i.test(R)&&(W=W[/[\d.]+$/.exec(R)])&&(R="Windows "+W),R=String(R),B&&k&&(R=R.replace(RegExp(B,"i"),k)),R=p(R.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 l(R,B){var k=-1,W=R?R.length:0;if(typeof W=="number"&&W>-1&&W<=v)for(;++k<W;)B(R[k],k,R);else u(R,B)}function p(R){return R=f(R),/^(?:webOS|i(?:OS|P))/.test(R)?R:g(R)}function u(R,B){for(var k in R)D.call(R,k)&&B(R[k],k,R)}function e(R){return R==null?g(R):y.call(R).slice(8,-1)}function a(R,B){var k=R!=null?typeof R[B]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(k)||k=="object"&&!R[B])}function r(R){return String(R).replace(/([ -])(?!$)/g,"$1?")}function d(R,B){var k=null;return l(R,function(W,K){k=B(k,W,K,R)}),k}function f(R){return String(R).replace(/^ +| +$/g,"")}function c(R){function B(O){return d(O,function(b,E){var G=E.pattern||r(E);return!b&&(b=RegExp("\\b"+G+" *\\d+[.\\w_]*","i").exec(R)||RegExp("\\b"+G+" *\\w+-[\\w]*","i").exec(R)||RegExp("\\b"+G+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(R))&&((b=String(E.label&&!RegExp(G,"i").test(E.label)?E.label:b).split("/"))[1]&&!/[\d.]+/.test(b[0])&&(b[0]+=" "+b[1]),E=E.label||E,b=p(b[0].replace(RegExp(G,"i"),E).replace(RegExp("; *(?:"+E+"[_-])?","i")," ").replace(RegExp("("+E+")[-_.]?(\\w)","i"),"$1 $2"))),b})}function k(){return this.description||""}var W=w,K=R&&typeof R=="object"&&e(R)!="String";K&&(W=R,R=null);var H=W.navigator||{},re=H.userAgent||"";R||(R=re);var X,ie,ee=K?!!H.likeChrome:/\bChrome\b/.test(R)&&!/internal|\n/i.test(y.toString()),Y=K?"Object":"ScriptBridgingProxyObject",F=K?"Object":"Environment",U=K&&W.java?"JavaPackage":e(W.java),M=K?"Object":"RuntimeObject",z=/\bJava/.test(U)&&W.java,q=z&&e(W.environment)==F,Z=z?"a":"\u4F2A",de=z?"b":"\u5C3E",oe=W.document||{},he=W.operamini||W.opera,_e=_.test(_e=K&&he?he["[[Class]]"]:e(he))?_e:he=null,ne=R,te=[],se=null,N=R==re,j=N&&he&&typeof he.version=="function"&&he.version(),$=function(O){return d(O,function(b,E){return b||RegExp("\\b"+(E.pattern||r(E))+"\\b","i").exec(R)&&(E.label||E)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=function(O){return d(O,function(b,E){return b||RegExp("\\b"+(E.pattern||r(E))+"\\b","i").exec(R)&&(E.label||E)})}(["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"]),me=B([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),P=function(O){return d(O,function(b,E,G){return b||(E[me]||E[/^[a-z]+(?: +[a-z]+\b)*/i.exec(me)]||RegExp("\\b"+r(G)+"(?:\\b|\\w*\\d)","i").exec(R))&&G})}({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}}),n=function(O){return d(O,function(b,E){var G=E.pattern||r(E);return!b&&(b=RegExp("\\b"+G+"(?:/[\\d.]+|[ \\w.]*)","i").exec(R))&&(b=o(b,G,E.label||E)),b})}(["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($&&($=[$]),P&&!me&&(me=B([P])),(X=/\bGoogle TV\b/.exec(me))&&(me=X[0]),/\bSimulator\b/i.test(R)&&(me=(me?me+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(R)&&te.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(R)?(X=c(R.replace(/like iPhone OS/,"")),P=X.manufacturer,me=X.product):/^iP/.test(me)?(ae||(ae="Safari"),n="iOS"+((X=/ OS ([\d_]+)/i.exec(R))?" "+X[1].replace(/_/g,"."):"")):ae!="Konqueror"||/buntu/i.test(n)?P&&P!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(R)||/\bVita\b/.test(me))||/\bAndroid\b/.test(n)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(R)?(ae="Android Browser",n=/\bAndroid\b/.test(n)?n:"Android"):ae=="Silk"?(/\bMobi/i.test(R)||(n="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(R)&&te.unshift("accelerated")):ae=="PaleMoon"&&(X=/\bFirefox\/([\d.]+)\b/.exec(R))?te.push("identifying as Firefox "+X[1]):ae=="Firefox"&&(X=/\b(Mobile|Tablet|TV)\b/i.exec(R))?(n||(n="Firefox OS"),me||(me=X[1])):!ae||(X=!/\bMinefield\b/i.test(R)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!me&&/[\/,]|^[^(]+?\)/.test(R.slice(R.indexOf(X+"/")+8))&&(ae=null),(X=me||P||n)&&(me||P||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(n))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(n)?n:X)+" Browser")):ae=="Electron"&&(X=(/\bChrome\/([\d.]+)\b/.exec(R)||0)[1])&&te.push("Chromium "+X):n="Kubuntu",j||(j=function(O){return d(O,function(b,E){return b||(RegExp(E+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(R)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(ae),"(?:Firefox|Minefield|NetFront)"])),(X=$=="iCab"&&parseFloat(j)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(R)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(R)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(R)&&(n=="Mac OS"?"Tasman":"Trident")||$=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&($=[X]),ae=="IE"&&(X=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(R)||0)[1])?(ae+=" Mobile",n="Windows Phone "+(/\+$/.test(X)?X:X+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(R)?(ae="IE Mobile",n="Windows Phone 8.x",te.unshift("desktop mode"),j||(j=(/\brv:([\d.]+)/.exec(R)||0)[1])):ae!="IE"&&$=="Trident"&&(X=/\brv:([\d.]+)/.exec(R))&&(ae&&te.push("identifying as "+ae+(j?" "+j:"")),ae="IE",j=X[1]),N){if(a(W,"global"))if(z&&(X=z.lang.System,ne=X.getProperty("os.arch"),n=n||X.getProperty("os.name")+" "+X.getProperty("os.version")),q){try{j=W.require("ringo/engine").version.join("."),ae="RingoJS"}catch(O){(X=W.system)&&X.global.system==W.system&&(ae="Narwhal",n||(n=X[0].os||null))}ae||(ae="Rhino")}else typeof W.process=="object"&&!W.process.browser&&(X=W.process)&&(typeof X.versions=="object"&&(typeof X.versions.electron=="string"?(te.push("Node "+X.versions.node),ae="Electron",j=X.versions.electron):typeof X.versions.nw=="string"&&(te.push("Chromium "+j,"Node "+X.versions.node),ae="NW.js",j=X.versions.nw)),ae||(ae="Node.js",ne=X.arch,n=X.platform,j=/[\d.]+/.exec(X.version),j=j?j[0]:null));else e(X=W.runtime)==Y?(ae="Adobe AIR",n=X.flash.system.Capabilities.os):e(X=W.phantom)==M?(ae="PhantomJS",j=(X=X.version||null)&&X.major+"."+X.minor+"."+X.patch):typeof oe.documentMode=="number"&&(X=/\bTrident\/(\d+)/i.exec(R))?(j=[j,oe.documentMode],(X=+X[1]+4)!=j[1]&&(te.push("IE "+j[1]+" mode"),$&&($[1]=""),j[1]=X),j=ae=="IE"?String(j[1].toFixed(1)):j[0]):typeof oe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(te.push("masking as "+ae+" "+j),ae="IE",j="11.0",$=["Trident"],n="Windows");n=n&&p(n)}if(j&&(X=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(R+";"+(N&&H.appMinorVersion))||/\bMinefield\b/i.test(R)&&"a")&&(se=/b/i.test(X)?"beta":"alpha",j=j.replace(RegExp(X+"\\+?$"),"")+(se=="beta"?de:Z)+(/\d+\+?/.exec(X)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(n))ae="Firefox Mobile";else if(ae=="Maxthon"&&j)j=j.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(me))me=="Xbox 360"&&(n=null),me=="Xbox 360"&&/\bIEMobile\b/.test(R)&&te.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ae)&&(!ae||me||/Browser|Mobi/.test(ae))||n!="Windows CE"&&!/Mobi/i.test(R))if(ae=="IE"&&N)try{W.external===null&&te.unshift("platform preview")}catch(O){te.unshift("embedded")}else(/\bBlackBerry\b/.test(me)||/\bBB10\b/.test(R))&&(X=(RegExp(me.replace(/ +/g," *")+"/([.\\d]+)","i").exec(R)||0)[1]||j)?(X=[X,/BB10/.test(R)],n=(X[1]?(me=null,P="BlackBerry"):"Device Software")+" "+X[0],j=null):this!=u&&me!="Wii"&&(N&&he||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(R)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(n)||ae=="IE"&&(n&&!/^Win/.test(n)&&j>5.5||/\bWindows XP\b/.test(n)&&j>8||j==8&&!/\bTrident\b/.test(R)))&&!_.test(X=c.call(u,R.replace(_,"")+";"))&&X.name&&(X="ing as "+X.name+((X=X.version)?" "+X:""),_.test(ae)?(/\bIE\b/.test(X)&&n=="Mac OS"&&(n=null),X="identify"+X):(X="mask"+X,ae=_e?p(_e.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(X)&&(n=null),N||(j=null)),$=["Presto"],te.push(X));else ae+=" Mobile";(X=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(R)||0)[1])&&(X=[parseFloat(X.replace(/\.(\d)$/,".0$1")),X],ae=="Safari"&&X[1].slice(-1)=="+"?(ae="WebKit Nightly",se="alpha",j=X[1].slice(0,-1)):j!=X[1]&&j!=(X[2]=(/\bSafari\/([\d.]+\+?)/i.exec(R)||0)[1])||(j=null),X[1]=(/\bChrome\/([\d.]+)/i.exec(R)||0)[1],X[0]==537.36&&X[2]==537.36&&parseFloat(X[1])>=28&&$=="WebKit"&&($=["Blink"]),N&&(ee||X[1])?($&&($[1]="like Chrome"),X=X[1]||(X=X[0],X<530?1:X<532?2:X<532.05?3:X<533?4:X<534.03?5:X<534.07?6:X<534.1?7:X<534.13?8:X<534.16?9:X<534.24?10:X<534.3?11:X<535.01?12:X<535.02?"13+":X<535.07?15:X<535.11?16:X<535.19?17:X<536.05?18:X<536.1?19:X<537.01?20:X<537.11?"21+":X<537.13?23:X<537.18?24:X<537.24?25:X<537.36?26:$!="Blink"?"27":"28")):($&&($[1]="like Safari"),X=X[0],X=X<400?1:X<500?2:X<526?3:X<533?4:X<534?"4+":X<535?5:X<537?6:X<538?7:X<601?8:"8"),$&&($[1]+=" "+(X+=typeof X=="number"?".x":/[.+]/.test(X)?"":"+")),ae=="Safari"&&(!j||parseInt(j)>45)&&(j=X)),ae=="Opera"&&(X=/\bzbov|zvav$/.exec(n))?(ae+=" ",te.unshift("desktop mode"),X=="zvav"?(ae+="Mini",j=null):ae+="Mobile",n=n.replace(RegExp(" *"+X+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec($&&$[1])&&(te.unshift("desktop mode"),ae="Chrome Mobile",j=null,/\bOS X\b/.test(n)?(P="Apple",n="iOS 4.3+"):n=null),j&&j.indexOf(X=/[\d.]+$/.exec(n))==0&&R.indexOf("/"+X+"-")>-1&&(n=f(n.replace(X,""))),$&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(n)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&$[1])&&(X=$[$.length-1])&&te.push(X),te.length&&(te=["("+te.join("; ")+")"]),P&&me&&me.indexOf(P)<0&&te.push("on "+P),me&&te.push((/^on /.test(te[te.length-1])?"":"on ")+me),n&&(X=/ ([\d.+]+)$/.exec(n),ie=X&&n.charAt(n.length-X[0].length-1)=="/",n={architecture:32,family:X&&!ie?n.replace(X[0],""):n,version:X?X[1]:null,toString:function(){var b=this.version;return this.family+(b&&!ie?" "+b:"")+(this.architecture==64?" 64-bit":"")}}),(X=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ne))&&!/\bi686\b/i.test(ne)?(n&&(n.architecture=64,n.family=n.family.replace(RegExp(" *"+X),"")),ae&&(/\bWOW64\b/i.test(R)||N&&/\w(?:86|32)$/.test(H.cpuClass||H.platform)&&!/\bWin64; x64\b/i.test(R))&&te.unshift("32-bit")):n&&/^OS X/.test(n.family)&&ae=="Chrome"&&parseFloat(j)>=39&&(n.architecture=64),R||(R=null);var s={};return s.description=R,s.layout=$&&$[0],s.manufacturer=P,s.name=ae,s.prerelease=se,s.product=me,s.ua=R,s.version=ae&&j,s.os=n||{architecture:null,family:null,version:null,toString:function(){return"null"}},s.parse=c,s.toString=k,s.version&&te.unshift(j),s.name&&te.unshift(ae),n&&ae&&(n!=String(n).split(" ")[0]||n!=ae.split(" ")[0]&&!me)&&te.push(me?"("+n+")":"on "+n),te.length&&(s.description=te.join(" ")),s}var A={function:!0,object:!0},w=A[typeof window]&&window||this,h=A[typeof S]&&S,T=A[typeof i]&&i&&!i.nodeType&&i,x=h&&T&&typeof m=="object"&&m;!x||x.global!==x&&x.window!==x&&x.self!==x||(w=x);var v=Math.pow(2,53)-1,_=/\bOpera/,C=Object.prototype,D=C.hasOwnProperty,y=C.toString,I=c();typeof fe=="function"&&typeof fe.amd=="object"&&fe.amd?(w.platform=I,fe(function(){return I})):h&&T?u(I,function(R,B){h[B]=R}):w.platform=I}).call(this)}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(t,i,S){(function(m){"use strict";function g(o,l,p,u){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var e,a,r=arguments.length;switch(r){case 0:case 1:return m.nextTick(o);case 2:return m.nextTick(function(){o.call(null,l)});case 3:return m.nextTick(function(){o.call(null,l,p)});case 4:return m.nextTick(function(){o.call(null,l,p,u)});default:for(e=new Array(r-1),a=0;a<e.length;)e[a++]=arguments[a];return m.nextTick(function(){o.apply(null,e)})}}!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?i.exports={nextTick:g}:i.exports=m}).call(this,t("_process"))},{_process:173}],173:[function(t,i,S){function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function o(T){if(r===setTimeout)return setTimeout(T,0);if((r===m||!r)&&setTimeout)return r=setTimeout,setTimeout(T,0);try{return r(T,0)}catch(x){try{return r.call(null,T,0)}catch(v){return r.call(this,T,0)}}}function l(T){if(d===clearTimeout)return clearTimeout(T);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(T);try{return d(T)}catch(x){try{return d.call(null,T)}catch(v){return d.call(this,T)}}}function p(){w&&c&&(w=!1,c.length?A=c.concat(A):h=-1,A.length&&u())}function u(){if(!w){var T=o(p);w=!0;for(var x=A.length;x;){for(c=A,A=[];++h<x;)c&&c[h].run();h=-1,x=A.length}c=null,w=!1,l(T)}}function e(T,x){this.fun=T,this.array=x}function a(){}var r,d,f=i.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:m}catch(T){r=m}try{d=typeof clearTimeout=="function"?clearTimeout:g}catch(T){d=g}}();var c,A=[],w=!1,h=-1;f.nextTick=function(T){var x=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)x[v-1]=arguments[v];A.push(new e(T,x)),A.length!==1||w||o(u)},e.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=a,f.addListener=a,f.once=a,f.off=a,f.removeListener=a,f.removeAllListeners=a,f.emit=a,f.prependListener=a,f.prependOnceListener=a,f.listeners=function(T){return[]},f.binding=function(T){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(T){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],174:[function(t,i,S){(function(m){!function(g){function o(U){throw new RangeError(ie[U])}function l(U,M){for(var z=U.length,q=[];z--;)q[z]=M(U[z]);return q}function p(U,M){var z=U.split("@"),q="";return z.length>1&&(q=z[0]+"@",U=z[1]),U=U.replace(X,"."),q+l(U.split("."),M).join(".")}function u(U){for(var M,z,q=[],Z=0,de=U.length;Z<de;)M=U.charCodeAt(Z++),M>=55296&&M<=56319&&Z<de?(z=U.charCodeAt(Z++),(64512&z)==56320?q.push(((1023&M)<<10)+(1023&z)+65536):(q.push(M),Z--)):q.push(M);return q}function e(U){return l(U,function(M){var z="";return M>65535&&(M-=65536,z+=F(M>>>10&1023|55296),M=56320|1023&M),z+=F(M)}).join("")}function a(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:D}function r(U,M){return U+22+75*(U<26)-((M!=0)<<5)}function d(U,M,z){var q=0;for(U=z?Y(U/B):U>>1,U+=Y(U/M);U>ee*I>>1;q+=D)U=Y(U/ee);return Y(q+(ee+1)*U/(U+R))}function f(U){var M,z,q,Z,de,oe,he,_e,ne,te,se=[],N=U.length,j=0,$=W,ae=k;for(z=U.lastIndexOf(K),z<0&&(z=0),q=0;q<z;++q)U.charCodeAt(q)>=128&&o("not-basic"),se.push(U.charCodeAt(q));for(Z=z>0?z+1:0;Z<N;){for(de=j,oe=1,he=D;Z>=N&&o("invalid-input"),_e=a(U.charCodeAt(Z++)),(_e>=D||_e>Y((C-j)/oe))&&o("overflow"),j+=_e*oe,ne=he<=ae?y:he>=ae+I?I:he-ae,!(_e<ne);he+=D)te=D-ne,oe>Y(C/te)&&o("overflow"),oe*=te;M=se.length+1,ae=d(j-de,M,de==0),Y(j/M)>C-$&&o("overflow"),$+=Y(j/M),j%=M,se.splice(j++,0,$)}return e(se)}function c(U){var M,z,q,Z,de,oe,he,_e,ne,te,se,N,j,$,ae,me=[];for(U=u(U),N=U.length,M=W,z=0,de=k,oe=0;oe<N;++oe)(se=U[oe])<128&&me.push(F(se));for(q=Z=me.length,Z&&me.push(K);q<N;){for(he=C,oe=0;oe<N;++oe)(se=U[oe])>=M&&se<he&&(he=se);for(j=q+1,he-M>Y((C-z)/j)&&o("overflow"),z+=(he-M)*j,M=he,oe=0;oe<N;++oe)if(se=U[oe],se<M&&++z>C&&o("overflow"),se==M){for(_e=z,ne=D;te=ne<=de?y:ne>=de+I?I:ne-de,!(_e<te);ne+=D)ae=_e-te,$=D-te,me.push(F(r(te+ae%$,0))),_e=Y(ae/$);me.push(F(r(_e,0))),de=d(z,j,q==Z),z=0,++q}++z,++M}return me.join("")}function A(U){return p(U,function(M){return H.test(M)?f(M.slice(4).toLowerCase()):M})}function w(U){return p(U,function(M){return re.test(M)?"xn--"+c(M):M})}var h=typeof S=="object"&&S&&!S.nodeType&&S,T=typeof i=="object"&&i&&!i.nodeType&&i,x=typeof m=="object"&&m;x.global!==x&&x.window!==x&&x.self!==x||(g=x);var v,_,C=2147483647,D=36,y=1,I=26,R=38,B=700,k=72,W=128,K="-",H=/^xn--/,re=/[^\x20-\x7E]/,X=/[\x2E\u3002\uFF0E\uFF61]/g,ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ee=D-y,Y=Math.floor,F=String.fromCharCode;if(v={version:"1.4.1",ucs2:{decode:u,encode:e},decode:f,encode:c,toASCII:w,toUnicode:A},typeof fe=="function"&&typeof fe.amd=="object"&&fe.amd)fe("punycode",function(){return v});else if(h&&T)if(i.exports==h)T.exports=v;else for(_ in v)v.hasOwnProperty(_)&&(h[_]=v[_]);else g.punycode=v}(this)}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(t,i,S){"use strict";function m(o,l){return Object.prototype.hasOwnProperty.call(o,l)}i.exports=function(o,l,p,u){l=l||"&",p=p||"=";var e={};if(typeof o!="string"||o.length===0)return e;var a=/\+/g;o=o.split(l);var r=1e3;u&&typeof u.maxKeys=="number"&&(r=u.maxKeys);var d=o.length;r>0&&d>r&&(d=r);for(var f=0;f<d;++f){var c,A,w,h,T=o[f].replace(a,"%20"),x=T.indexOf(p);x>=0?(c=T.substr(0,x),A=T.substr(x+1)):(c=T,A=""),w=decodeURIComponent(c),h=decodeURIComponent(A),m(e,w)?g(e[w])?e[w].push(h):e[w]=[e[w],h]:e[w]=h}return e};var g=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"}},{}],176:[function(t,i,S){"use strict";function m(p,u){if(p.map)return p.map(u);for(var e=[],a=0;a<p.length;a++)e.push(u(p[a],a));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""}};i.exports=function(p,u,e,a){return u=u||"&",e=e||"=",p===null&&(p=void 0),typeof p=="object"?m(l(p),function(r){var d=encodeURIComponent(g(r))+e;return o(p[r])?m(p[r],function(f){return d+encodeURIComponent(g(f))}).join(u):d+encodeURIComponent(g(p[r]))}).join(u):a?encodeURIComponent(g(a))+e+encodeURIComponent(g(p)):""};var o=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},l=Object.keys||function(p){var u=[];for(var e in p)Object.prototype.hasOwnProperty.call(p,e)&&u.push(e);return u}},{}],177:[function(t,i,S){"use strict";S.decode=S.parse=t("./decode"),S.encode=S.stringify=t("./encode")},{"./decode":175,"./encode":176}],178:[function(t,i,S){i.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(t,i,S){"use strict";function m(w){if(!(this instanceof m))return new m(w);r.call(this,w),d.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||u.nextTick(o,this)}function o(w){w.end()}var l=t("babel-runtime/core-js/object/keys"),p=function(w){return w&&w.__esModule?w:{default:w}}(l),u=t("process-nextick-args"),e=p.default||function(w){var h=[];for(var T in w)h.push(T);return h};i.exports=m;var a=t("core-util-is");a.inherits=t("inherits");var r=t("./_stream_readable"),d=t("./_stream_writable");a.inherits(m,r);for(var f=e(d.prototype),c=0;c<f.length;c++){var A=f[c];m.prototype[A]||(m.prototype[A]=d.prototype[A])}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),m.prototype._destroy=function(w,h){this.push(null),this.end(),u.nextTick(h,w)}},{"./_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(t,i,S){"use strict";function m(l){if(!(this instanceof m))return new m(l);g.call(this,l)}i.exports=m;var g=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(m,g),m.prototype._transform=function(l,p,u){u(null,l)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(t,i,S){(function(m,g){"use strict";function o(N){return z.from(N)}function l(N){return z.isBuffer(N)||N instanceof q}function p(N,j,$){if(typeof N.prependListener=="function")return N.prependListener(j,$);N._events&&N._events[j]?F(N._events[j])?N._events[j].unshift($):N._events[j]=[$,N._events[j]]:N.on(j,$)}function u(N,j){Y=Y||t("./_stream_duplex"),N=N||{};var $=j instanceof Y;this.objectMode=!!N.objectMode,$&&(this.objectMode=this.objectMode||!!N.readableObjectMode);var ae=N.highWaterMark,me=N.readableHighWaterMark,P=this.objectMode?16:16384;this.highWaterMark=ae||ae===0?ae:$&&(me||me===0)?me:P,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _e,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=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(he||(he=t("string_decoder/").StringDecoder),this.decoder=new he(N.encoding),this.encoding=N.encoding)}function e(N){if(Y=Y||t("./_stream_duplex"),!(this instanceof e))return new e(N);this._readableState=new u(N,this),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),M.call(this)}function a(N,j,$,ae,me){var P=N._readableState;if(j===null)P.reading=!1,w(N,P);else{var n;me||(n=d(P,j)),n?N.emit("error",n):P.objectMode||j&&j.length>0?(typeof j=="string"||P.objectMode||(0,ie.default)(j)===z.prototype||(j=o(j)),ae?P.endEmitted?N.emit("error",new Error("stream.unshift() after end event")):r(N,P,j,!0):P.ended?N.emit("error",new Error("stream.push() after EOF")):(P.reading=!1,P.decoder&&!$?(j=P.decoder.write(j),P.objectMode||j.length!==0?r(N,P,j,!1):x(N,P)):r(N,P,j,!1))):ae||(P.reading=!1)}return f(P)}function r(N,j,$,ae){j.flowing&&j.length===0&&!j.sync?(N.emit("data",$),N.read(0)):(j.length+=j.objectMode?1:$.length,ae?j.buffer.unshift($):j.buffer.push($),j.needReadable&&h(N)),x(N,j)}function d(N,j){var $;return l(j)||typeof j=="string"||j===void 0||N.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$}function f(N){return!N.ended&&(N.needReadable||N.length<N.highWaterMark||N.length===0)}function c(N){return N>=se?N=se:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function A(N,j){return N<=0||j.length===0&&j.ended?0:j.objectMode?1:N!==N?j.flowing&&j.length?j.buffer.head.data.length:j.length:(N>j.highWaterMark&&(j.highWaterMark=c(N)),N<=j.length?N:j.ended?j.length:(j.needReadable=!0,0))}function w(N,j){if(!j.ended){if(j.decoder){var $=j.decoder.end();$&&$.length&&(j.buffer.push($),j.length+=j.objectMode?1:$.length)}j.ended=!0,h(N)}}function h(N){var j=N._readableState;j.needReadable=!1,j.emittedReadable||(oe("emitReadable",j.flowing),j.emittedReadable=!0,j.sync?ee.nextTick(T,N):T(N))}function T(N){oe("emit readable"),N.emit("readable"),I(N)}function x(N,j){j.readingMore||(j.readingMore=!0,ee.nextTick(v,N,j))}function v(N,j){for(var $=j.length;!j.reading&&!j.flowing&&!j.ended&&j.length<j.highWaterMark&&(oe("maybeReadMore read 0"),N.read(0),$!==j.length);)$=j.length;j.readingMore=!1}function _(N){return function(){var j=N._readableState;oe("pipeOnDrain",j.awaitDrain),j.awaitDrain&&j.awaitDrain--,j.awaitDrain===0&&U(N,"data")&&(j.flowing=!0,I(N))}}function C(N){oe("readable nexttick read 0"),N.read(0)}function D(N,j){j.resumeScheduled||(j.resumeScheduled=!0,ee.nextTick(y,N,j))}function y(N,j){j.reading||(oe("resume read 0"),N.read(0)),j.resumeScheduled=!1,j.awaitDrain=0,N.emit("resume"),I(N),j.flowing&&!j.reading&&N.read(0)}function I(N){var j=N._readableState;for(oe("flow",j.flowing);j.flowing&&N.read()!==null;);}function R(N,j){if(j.length===0)return null;var $;return j.objectMode?$=j.buffer.shift():!N||N>=j.length?($=j.decoder?j.buffer.join(""):j.buffer.length===1?j.buffer.head.data:j.buffer.concat(j.length),j.buffer.clear()):$=B(N,j.buffer,j.decoder),$}function B(N,j,$){var ae;return N<j.head.data.length?(ae=j.head.data.slice(0,N),j.head.data=j.head.data.slice(N)):ae=N===j.head.data.length?j.shift():$?k(N,j):W(N,j),ae}function k(N,j){var $=j.head,ae=1,me=$.data;for(N-=me.length;$=$.next;){var P=$.data,n=N>P.length?P.length:N;if(n===P.length?me+=P:me+=P.slice(0,N),(N-=n)===0){n===P.length?(++ae,$.next?j.head=$.next:j.head=j.tail=null):(j.head=$,$.data=P.slice(n));break}++ae}return j.length-=ae,me}function W(N,j){var $=z.allocUnsafe(N),ae=j.head,me=1;for(ae.data.copy($),N-=ae.data.length;ae=ae.next;){var P=ae.data,n=N>P.length?P.length:N;if(P.copy($,$.length-N,0,n),(N-=n)===0){n===P.length?(++me,ae.next?j.head=ae.next:j.head=j.tail=null):(j.head=ae,ae.data=P.slice(n));break}++me}return j.length-=me,$}function K(N){var j=N._readableState;if(j.length>0)throw new Error('"endReadable()" called on non-empty stream');j.endEmitted||(j.ended=!0,ee.nextTick(H,j,N))}function H(N,j){N.endEmitted||N.length!==0||(N.endEmitted=!0,j.readable=!1,j.emit("end"))}function re(N,j){for(var $=0,ae=N.length;$<ae;$++)if(N[$]===j)return $;return-1}var X=t("babel-runtime/core-js/object/get-prototype-of"),ie=function(N){return N&&N.__esModule?N:{default:N}}(X),ee=t("process-nextick-args");i.exports=e;var Y,F=t("isarray");e.ReadableState=u;var U=(t("events").EventEmitter,function(N,j){return N.listeners(j).length}),M=t("./internal/streams/stream"),z=t("safe-buffer").Buffer,q=g.Uint8Array||function(){},Z=t("core-util-is");Z.inherits=t("inherits");var de=t("util"),oe=void 0;oe=de&&de.debuglog?de.debuglog("stream"):function(){};var he,_e=t("./internal/streams/BufferList"),ne=t("./internal/streams/destroy");Z.inherits(e,M);var te=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),e.prototype.destroy=ne.destroy,e.prototype._undestroy=ne.undestroy,e.prototype._destroy=function(N,j){this.push(null),j(N)},e.prototype.push=function(N,j){var $,ae=this._readableState;return ae.objectMode?$=!0:typeof N=="string"&&(j=j||ae.defaultEncoding,j!==ae.encoding&&(N=z.from(N,j),j=""),$=!0),a(this,N,j,!1,$)},e.prototype.unshift=function(N){return a(this,N,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(N){return he||(he=t("string_decoder/").StringDecoder),this._readableState.decoder=new he(N),this._readableState.encoding=N,this};var se=8388608;e.prototype.read=function(N){oe("read",N),N=parseInt(N,10);var j=this._readableState,$=N;if(N!==0&&(j.emittedReadable=!1),N===0&&j.needReadable&&(j.length>=j.highWaterMark||j.ended))return oe("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?K(this):h(this),null;if((N=A(N,j))===0&&j.ended)return j.length===0&&K(this),null;var ae=j.needReadable;oe("need readable",ae),(j.length===0||j.length-N<j.highWaterMark)&&(ae=!0,oe("length less than watermark",ae)),j.ended||j.reading?(ae=!1,oe("reading or ended",ae)):ae&&(oe("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(N=A($,j)));var me;return me=N>0?R(N,j):null,me===null?(j.needReadable=!0,N=0):j.length-=N,j.length===0&&(j.ended||(j.needReadable=!0),$!==N&&j.ended&&K(this)),me!==null&&this.emit("data",me),me},e.prototype._read=function(N){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(N,j){function $(ve,we){oe("onunpipe"),ve===E&&we&&we.hasUnpiped===!1&&(we.hasUnpiped=!0,me())}function ae(){oe("onend"),N.end()}function me(){oe("cleanup"),N.removeListener("close",s),N.removeListener("finish",O),N.removeListener("drain",Q),N.removeListener("error",n),N.removeListener("unpipe",$),E.removeListener("end",ae),E.removeListener("end",b),E.removeListener("data",P),ue=!0,!G.awaitDrain||N._writableState&&!N._writableState.needDrain||Q()}function P(ve){oe("ondata"),pe=!1,N.write(ve)!==!1||pe||((G.pipesCount===1&&G.pipes===N||G.pipesCount>1&&re(G.pipes,N)!==-1)&&!ue&&(oe("false write response, pause",E._readableState.awaitDrain),E._readableState.awaitDrain++,pe=!0),E.pause())}function n(ve){oe("onerror",ve),b(),N.removeListener("error",n),U(N,"error")===0&&N.emit("error",ve)}function s(){N.removeListener("finish",O),b()}function O(){oe("onfinish"),N.removeListener("close",s),b()}function b(){oe("unpipe"),E.unpipe(N)}var E=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=N;break;case 1:G.pipes=[G.pipes,N];break;default:G.pipes.push(N)}G.pipesCount+=1,oe("pipe count=%d opts=%j",G.pipesCount,j);var V=(!j||j.end!==!1)&&N!==m.stdout&&N!==m.stderr,L=V?ae:b;G.endEmitted?ee.nextTick(L):E.once("end",L),N.on("unpipe",$);var Q=_(E);N.on("drain",Q);var ue=!1,pe=!1;return E.on("data",P),p(N,"error",n),N.once("close",s),N.once("finish",O),N.emit("pipe",E),G.flowing||(oe("pipe resume"),E.resume()),N},e.prototype.unpipe=function(N){var j=this._readableState,$={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return N&&N!==j.pipes?this:(N||(N=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,N&&N.emit("unpipe",this,$),this);if(!N){var ae=j.pipes,me=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var P=0;P<me;P++)ae[P].emit("unpipe",this,$);return this}var n=re(j.pipes,N);return n===-1?this:(j.pipes.splice(n,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),N.emit("unpipe",this,$),this)},e.prototype.on=function(N,j){var $=M.prototype.on.call(this,N,j);if(N==="data")this._readableState.flowing!==!1&&this.resume();else if(N==="readable"){var ae=this._readableState;ae.endEmitted||ae.readableListening||(ae.readableListening=ae.needReadable=!0,ae.emittedReadable=!1,ae.reading?ae.length&&h(this):ee.nextTick(C,this))}return $},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var N=this._readableState;return N.flowing||(oe("resume"),N.flowing=!0,D(this,N)),this},e.prototype.pause=function(){return oe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(oe("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(N){var j=this,$=this._readableState,ae=!1;N.on("end",function(){if(oe("wrapped end"),$.decoder&&!$.ended){var n=$.decoder.end();n&&n.length&&j.push(n)}j.push(null)}),N.on("data",function(n){(oe("wrapped data"),$.decoder&&(n=$.decoder.write(n)),(!$.objectMode||n!=null)&&($.objectMode||n&&n.length))&&(j.push(n)||(ae=!0,N.pause()))});for(var me in N)this[me]===void 0&&typeof N[me]=="function"&&(this[me]=function(n){return function(){return N[n].apply(N,arguments)}}(me));for(var P=0;P<te.length;P++)N.on(te[P],this.emit.bind(this,te[P]));return this._read=function(n){oe("wrapped _read",n),ae&&(ae=!1,N.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=R}).call(this,t("_process"),typeof je!="undefined"?je: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(t,i,S){"use strict";function m(e,a){var r=this._transformState;r.transforming=!1;var d=r.writecb;if(!d)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,a!=null&&this.push(a),d(e);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function g(e){if(!(this instanceof g))return new g(e);p.call(this,e),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;typeof this._flush=="function"?this._flush(function(a,r){l(e,a,r)}):l(this,null,null)}function l(e,a,r){if(a)return e.emit("error",a);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)}i.exports=g;var p=t("./_stream_duplex"),u=t("core-util-is");u.inherits=t("inherits"),u.inherits(g,p),g.prototype.push=function(e,a){return this._transformState.needTransform=!1,p.prototype.push.call(this,e,a)},g.prototype._transform=function(e,a,r){throw new Error("_transform() is not implemented")},g.prototype._write=function(e,a,r){var d=this._transformState;if(d.writecb=r,d.writechunk=e,d.writeencoding=a,!d.transforming){var f=this._readableState;(d.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},g.prototype._read=function(e){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},g.prototype._destroy=function(e,a){var r=this;p.prototype._destroy.call(this,e,function(d){a(d),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(t,i,S){(function(m,g){"use strict";function o(ne){return ne&&ne.__esModule?ne:{default:ne}}function l(ne){var te=this;this.next=null,this.entry=null,this.finish=function(){k(te,ne)}}function p(ne){return de.from(ne)}function u(ne){return de.isBuffer(ne)||ne instanceof oe}function e(){}function a(ne,te){U=U||t("./_stream_duplex"),ne=ne||{};var se=te instanceof U;this.objectMode=!!ne.objectMode,se&&(this.objectMode=this.objectMode||!!ne.writableObjectMode);var N=ne.highWaterMark,j=ne.writableHighWaterMark,$=this.objectMode?16:16384;this.highWaterMark=N||N===0?N:se&&(j||j===0)?j:$,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 ae=ne.decodeStrings===!1;this.decodeStrings=!ae,this.defaultEncoding=ne.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){x(te,me)},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 l(this)}function r(ne){if(U=U||t("./_stream_duplex"),!(_e.call(r,this)||this instanceof U))return new r(ne);this._writableState=new a(ne,this),this.writable=!0,ne&&(typeof ne.write=="function"&&(this._write=ne.write),typeof ne.writev=="function"&&(this._writev=ne.writev),typeof ne.destroy=="function"&&(this._destroy=ne.destroy),typeof ne.final=="function"&&(this._final=ne.final)),Z.call(this)}function d(ne,te){var se=new Error("write after end");ne.emit("error",se),F.nextTick(te,se)}function f(ne,te,se,N){var j=!0,$=!1;return se===null?$=new TypeError("May not write null values to stream"):typeof se=="string"||se===void 0||te.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$&&(ne.emit("error",$),F.nextTick(N,$),j=!1),j}function c(ne,te,se){return ne.objectMode||ne.decodeStrings===!1||typeof te!="string"||(te=de.from(te,se)),te}function A(ne,te,se,N,j,$){if(!se){var ae=c(te,N,j);N!==ae&&(se=!0,j="buffer",N=ae)}var me=te.objectMode?1:N.length;te.length+=me;var P=te.length<te.highWaterMark;if(P||(te.needDrain=!0),te.writing||te.corked){var n=te.lastBufferedRequest;te.lastBufferedRequest={chunk:N,encoding:j,isBuf:se,callback:$,next:null},n?n.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else w(ne,te,!1,me,N,j,$);return P}function w(ne,te,se,N,j,$,ae){te.writelen=N,te.writecb=ae,te.writing=!0,te.sync=!0,se?ne._writev(j,te.onwrite):ne._write(j,$,te.onwrite),te.sync=!1}function h(ne,te,se,N,j){--te.pendingcb,se?(F.nextTick(j,N),F.nextTick(R,ne,te),ne._writableState.errorEmitted=!0,ne.emit("error",N)):(j(N),ne._writableState.errorEmitted=!0,ne.emit("error",N),R(ne,te))}function T(ne){ne.writing=!1,ne.writecb=null,ne.length-=ne.writelen,ne.writelen=0}function x(ne,te){var se=ne._writableState,N=se.sync,j=se.writecb;if(T(se),te)h(ne,se,N,te,j);else{var $=D(se);$||se.corked||se.bufferProcessing||!se.bufferedRequest||C(ne,se),N?M(v,ne,se,$,j):v(ne,se,$,j)}}function v(ne,te,se,N){se||_(ne,te),te.pendingcb--,N(),R(ne,te)}function _(ne,te){te.length===0&&te.needDrain&&(te.needDrain=!1,ne.emit("drain"))}function C(ne,te){te.bufferProcessing=!0;var se=te.bufferedRequest;if(ne._writev&&se&&se.next){var N=te.bufferedRequestCount,j=new Array(N),$=te.corkedRequestsFree;$.entry=se;for(var ae=0,me=!0;se;)j[ae]=se,se.isBuf||(me=!1),se=se.next,ae+=1;j.allBuffers=me,w(ne,te,!0,te.length,j,"",$.finish),te.pendingcb++,te.lastBufferedRequest=null,$.next?(te.corkedRequestsFree=$.next,$.next=null):te.corkedRequestsFree=new l(te),te.bufferedRequestCount=0}else{for(;se;){var P=se.chunk,n=se.encoding,s=se.callback;if(w(ne,te,!1,te.objectMode?1:P.length,P,n,s),se=se.next,te.bufferedRequestCount--,te.writing)break}se===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=se,te.bufferProcessing=!1}function D(ne){return ne.ending&&ne.length===0&&ne.bufferedRequest===null&&!ne.finished&&!ne.writing}function y(ne,te){ne._final(function(se){te.pendingcb--,se&&ne.emit("error",se),te.prefinished=!0,ne.emit("prefinish"),R(ne,te)})}function I(ne,te){te.prefinished||te.finalCalled||(typeof ne._final=="function"?(te.pendingcb++,te.finalCalled=!0,F.nextTick(y,ne,te)):(te.prefinished=!0,ne.emit("prefinish")))}function R(ne,te){var se=D(te);return se&&(I(ne,te),te.pendingcb===0&&(te.finished=!0,ne.emit("finish"))),se}function B(ne,te,se){te.ending=!0,R(ne,te),se&&(te.finished?F.nextTick(se):ne.once("finish",se)),te.ended=!0,ne.writable=!1}function k(ne,te,se){var N=ne.entry;for(ne.entry=null;N;){var j=N.callback;te.pendingcb--,j(se),N=N.next}te.corkedRequestsFree?te.corkedRequestsFree.next=ne:te.corkedRequestsFree=ne}var W=t("babel-runtime/core-js/object/define-property"),K=o(W),H=t("babel-runtime/core-js/symbol/has-instance"),re=o(H),X=t("babel-runtime/core-js/symbol"),ie=o(X),ee=t("babel-runtime/core-js/set-immediate"),Y=o(ee),F=t("process-nextick-args");i.exports=r;var U,M=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?Y.default:F.nextTick;r.WritableState=a;var z=t("core-util-is");z.inherits=t("inherits");var q={deprecate:t("util-deprecate")},Z=t("./internal/streams/stream"),de=t("safe-buffer").Buffer,oe=g.Uint8Array||function(){},he=t("./internal/streams/destroy");z.inherits(r,Z),a.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,te=[];ne;)te.push(ne),ne=ne.next;return te},function(){try{Object.defineProperty(a.prototype,"buffer",{get:q.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ne){}}();var _e;typeof ie.default=="function"&&re.default&&typeof Function.prototype[re.default]=="function"?(_e=Function.prototype[re.default],(0,K.default)(r,re.default,{value:function(te){return!!_e.call(this,te)||this===r&&te&&te._writableState instanceof a}})):_e=function(te){return te instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(ne,te,se){var N=this._writableState,j=!1,$=!N.objectMode&&u(ne);return $&&!de.isBuffer(ne)&&(ne=p(ne)),typeof te=="function"&&(se=te,te=null),$?te="buffer":te||(te=N.defaultEncoding),typeof se!="function"&&(se=e),N.ended?d(this,se):($||f(this,N,ne,se))&&(N.pendingcb++,j=A(this,N,$,ne,te,se)),j},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var ne=this._writableState;ne.corked&&(ne.corked--,ne.writing||ne.corked||ne.finished||ne.bufferProcessing||!ne.bufferedRequest||C(this,ne))},r.prototype.setDefaultEncoding=function(ne){if(typeof ne=="string"&&(ne=ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ne+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ne);return this._writableState.defaultEncoding=ne,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(ne,te,se){se(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(ne,te,se){var N=this._writableState;typeof ne=="function"?(se=ne,ne=null,te=null):typeof te=="function"&&(se=te,te=null),ne!=null&&this.write(ne,te),N.corked&&(N.corked=1,this.uncork()),N.ending||N.finished||B(this,N,se)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),r.prototype.destroy=he.destroy,r.prototype._undestroy=he.undestroy,r.prototype._destroy=function(ne,te){this.end(),te(ne)}}).call(this,t("_process"),typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(t,i,S){"use strict";function m(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 o=t("safe-buffer").Buffer,l=t("util");i.exports=function(){function p(){m(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,a=""+e.data;e=e.next;)a+=u+e.data;return a},p.prototype.concat=function(u){if(this.length===0)return o.alloc(0);if(this.length===1)return this.head.data;for(var e=o.allocUnsafe(u>>>0),a=this.head,r=0;a;)g(a.data,e,r),r+=a.data.length,a=a.next;return e},p}(),l&&l.inspect&&l.inspect.custom&&(i.exports.prototype[l.inspect.custom]=function(){var p=l.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(t,i,S){"use strict";function m(p,u){var e=this,a=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return a||r?(u?u(p):!p||this._writableState&&this._writableState.errorEmitted||l.nextTick(o,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(d){!u&&d?(l.nextTick(o,e,d),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(d)}),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 o(p,u){p.emit("error",u)}var l=t("process-nextick-args");i.exports={destroy:m,undestroy:g}},{"process-nextick-args":172}],186:[function(t,i,S){"use strict";i.exports=t("events").EventEmitter},{events:158}],187:[function(t,i,S){i.exports=t("./readable").PassThrough},{"./readable":188}],188:[function(t,i,S){S=i.exports=t("./lib/_stream_readable.js"),S.Stream=S,S.Readable=S,S.Writable=t("./lib/_stream_writable.js"),S.Duplex=t("./lib/_stream_duplex.js"),S.Transform=t("./lib/_stream_transform.js"),S.PassThrough=t("./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(t,i,S){i.exports=t("./readable").Transform},{"./readable":188}],190:[function(t,i,S){i.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(t,i,S){var m=function(){return this}()||Function("return this")(),g=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,o=g&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,i.exports=t("./runtime"),g)m.regeneratorRuntime=o;else try{delete m.regeneratorRuntime}catch(l){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(t,i,S){!function(m){"use strict";function g(Y,F,U,M){var z=F&&F.prototype instanceof l?F:l,q=Object.create(z.prototype),Z=new A(M||[]);return q._invoke=r(Y,U,Z),q}function o(Y,F,U){try{return{type:"normal",arg:Y.call(F,U)}}catch(M){return{type:"throw",arg:M}}}function l(){}function p(){}function u(){}function e(Y){["next","throw","return"].forEach(function(F){Y[F]=function(U){return this._invoke(F,U)}})}function a(Y){function F(z,q,Z,de){var oe=o(Y[z],Y,q);if(oe.type!=="throw"){var he=oe.arg,_e=he.value;return _e&&typeof _e=="object"&&v.call(_e,"__await")?Promise.resolve(_e.__await).then(function(ne){F("next",ne,Z,de)},function(ne){F("throw",ne,Z,de)}):Promise.resolve(_e).then(function(ne){he.value=ne,Z(he)},de)}de(oe.arg)}function U(z,q){function Z(){return new Promise(function(de,oe){F(z,q,de,oe)})}return M=M?M.then(Z,Z):Z()}var M;this._invoke=U}function r(Y,F,U){var M=B;return function(z,q){if(M===W)throw new Error("Generator is already running");if(M===K){if(z==="throw")throw q;return h()}for(U.method=z,U.arg=q;;){var Z=U.delegate;if(Z){var de=d(Z,U);if(de){if(de===H)continue;return de}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(M===B)throw M=K,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);M=W;var oe=o(Y,F,U);if(oe.type==="normal"){if(M=U.done?K:k,oe.arg===H)continue;return{value:oe.arg,done:U.done}}oe.type==="throw"&&(M=K,U.method="throw",U.arg=oe.arg)}}}function d(Y,F){var U=Y.iterator[F.method];if(U===T){if(F.delegate=null,F.method==="throw"){if(Y.iterator.return&&(F.method="return",F.arg=T,d(Y,F),F.method==="throw"))return H;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var M=o(U,Y.iterator,F.arg);if(M.type==="throw")return F.method="throw",F.arg=M.arg,F.delegate=null,H;var z=M.arg;return z?z.done?(F[Y.resultName]=z.value,F.next=Y.nextLoc,F.method!=="return"&&(F.method="next",F.arg=T),F.delegate=null,H):z:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,H)}function f(Y){var F={tryLoc:Y[0]};1 in Y&&(F.catchLoc=Y[1]),2 in Y&&(F.finallyLoc=Y[2],F.afterLoc=Y[3]),this.tryEntries.push(F)}function c(Y){var F=Y.completion||{};F.type="normal",delete F.arg,Y.completion=F}function A(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(f,this),this.reset(!0)}function w(Y){if(Y){var F=Y[C];if(F)return F.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var U=-1,M=function z(){for(;++U<Y.length;)if(v.call(Y,U))return z.value=Y[U],z.done=!1,z;return z.value=T,z.done=!0,z};return M.next=M}}return{next:h}}function h(){return{value:T,done:!0}}var T,x=Object.prototype,v=x.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},C=_.iterator||"@@iterator",D=_.asyncIterator||"@@asyncIterator",y=_.toStringTag||"@@toStringTag",I=typeof i=="object",R=m.regeneratorRuntime;if(R)return void(I&&(i.exports=R));R=m.regeneratorRuntime=I?i.exports:{},R.wrap=g;var B="suspendedStart",k="suspendedYield",W="executing",K="completed",H={},re={};re[C]=function(){return this};var X=Object.getPrototypeOf,ie=X&&X(X(w([])));ie&&ie!==x&&v.call(ie,C)&&(re=ie);var ee=u.prototype=l.prototype=Object.create(re);p.prototype=ee.constructor=u,u.constructor=p,u[y]=p.displayName="GeneratorFunction",R.isGeneratorFunction=function(Y){var F=typeof Y=="function"&&Y.constructor;return!!F&&(F===p||(F.displayName||F.name)==="GeneratorFunction")},R.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,u):(Y.__proto__=u,y in Y||(Y[y]="GeneratorFunction")),Y.prototype=Object.create(ee),Y},R.awrap=function(Y){return{__await:Y}},e(a.prototype),a.prototype[D]=function(){return this},R.AsyncIterator=a,R.async=function(Y,F,U,M){var z=new a(g(Y,F,U,M));return R.isGeneratorFunction(F)?z:z.next().then(function(q){return q.done?q.value:z.next()})},e(ee),ee[y]="Generator",ee[C]=function(){return this},ee.toString=function(){return"[object Generator]"},R.keys=function(Y){var F=[];for(var U in Y)F.push(U);return F.reverse(),function M(){for(;F.length;){var z=F.pop();if(z in Y)return M.value=z,M.done=!1,M}return M.done=!0,M}},R.values=w,A.prototype={constructor:A,reset:function(F){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),!F)for(var U in this)U.charAt(0)==="t"&&v.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=T)},stop:function(){this.done=!0;var F=this.tryEntries[0],U=F.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(F){function U(he,_e){return Z.type="throw",Z.arg=F,M.next=he,_e&&(M.method="next",M.arg=T),!!_e}if(this.done)throw F;for(var M=this,z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z],Z=q.completion;if(q.tryLoc==="root")return U("end");if(q.tryLoc<=this.prev){var de=v.call(q,"catchLoc"),oe=v.call(q,"finallyLoc");if(de&&oe){if(this.prev<q.catchLoc)return U(q.catchLoc,!0);if(this.prev<q.finallyLoc)return U(q.finallyLoc)}else if(de){if(this.prev<q.catchLoc)return U(q.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return U(q.finallyLoc)}}}},abrupt:function(F,U){for(var M=this.tryEntries.length-1;M>=0;--M){var z=this.tryEntries[M];if(z.tryLoc<=this.prev&&v.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var q=z;break}}q&&(F==="break"||F==="continue")&&q.tryLoc<=U&&U<=q.finallyLoc&&(q=null);var Z=q?q.completion:{};return Z.type=F,Z.arg=U,q?(this.method="next",this.next=q.finallyLoc,H):this.complete(Z)},complete:function(F,U){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&U&&(this.next=U),H},finish:function(F){for(var U=this.tryEntries.length-1;U>=0;--U){var M=this.tryEntries[U];if(M.finallyLoc===F)return this.complete(M.completion,M.afterLoc),c(M),H}},catch:function(F){for(var U=this.tryEntries.length-1;U>=0;--U){var M=this.tryEntries[U];if(M.tryLoc===F){var z=M.completion;if(z.type==="throw"){var q=z.arg;c(M)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(F,U,M){return this.delegate={iterator:w(F),resultName:U,nextLoc:M},this.method==="next"&&(this.arg=T),H}}}(function(){return this}()||Function("return this")())},{}],193:[function(t,i,S){function m(p,u){for(var e in p)u[e]=p[e]}function g(p,u,e){return l(p,u,e)}var o=t("buffer"),l=o.Buffer;l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?i.exports=o:(m(o,S),S.Buffer=g),m(l,g),g.from=function(p,u,e){if(typeof p=="number")throw new TypeError("Argument must not be a number");return l(p,u,e)},g.alloc=function(p,u,e){if(typeof p!="number")throw new TypeError("Argument must be a number");var a=l(p);return u!==void 0?typeof e=="string"?a.fill(u,e):a.fill(u):a.fill(0),a},g.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return l(p)},g.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(p)}},{buffer:38}],194:[function(t,i,S){(function(m){"use strict";function g(h){return h&&h.__esModule?h:{default:h}}var o=t("babel-runtime/core-js/string/from-code-point"),l=g(o),p=t("babel-runtime/core-js/json/stringify"),u=g(p),e=t("babel-runtime/helpers/typeof"),a=g(e),r=t("babel-runtime/core-js/object/define-property"),d=g(r),f=t("babel-runtime/core-js/object/keys"),c=g(f),A=t("babel-runtime/core-js/object/create"),w=g(A);!function(h){function T(b,E){if(!(this instanceof T))return new T(b,E);var G=this;v(G),G.q=G.c="",G.bufferCheckPosition=h.MAX_BUFFER_LENGTH,G.opt=E||{},G.opt.lowercase=G.opt.lowercase||G.opt.lowercasetags,G.looseCase=G.opt.lowercase?"toLowerCase":"toUpperCase",G.tags=[],G.closed=G.closedRoot=G.sawRoot=!1,G.tag=G.error=null,G.strict=!!b,G.noscript=!(!b&&!G.opt.noscript),G.state=s.BEGIN,G.strictEntities=G.opt.strictEntities,G.ENTITIES=G.strictEntities?(0,w.default)(h.XML_ENTITIES):(0,w.default)(h.ENTITIES),G.attribList=[],G.opt.xmlns&&(G.ns=(0,w.default)($)),G.trackPosition=G.opt.position!==!1,G.trackPosition&&(G.position=G.line=G.column=0),W(G,"onready")}function x(b){for(var E=Math.max(h.MAX_BUFFER_LENGTH,10),G=0,V=0,L=he.length;V<L;V++){var Q=b[he[V]].length;if(Q>E)switch(he[V]){case"textNode":H(b);break;case"cdata":K(b,"oncdata",b.cdata),b.cdata="";break;case"script":K(b,"onscript",b.script),b.script="";break;default:X(b,"Max buffer length exceeded: "+he[V])}G=Math.max(G,Q)}var ue=h.MAX_BUFFER_LENGTH-G;b.bufferCheckPosition=ue+b.position}function v(b){for(var E=0,G=he.length;E<G;E++)b[he[E]]=""}function _(b){H(b),b.cdata!==""&&(K(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(K(b,"onscript",b.script),b.script="")}function C(b,E){return new D(b,E)}function D(b,E){if(!(this instanceof D))return new D(b,E);_e.apply(this),this._parser=new T(b,E),this.writable=!0,this.readable=!0;var G=this;this._parser.onend=function(){G.emit("end")},this._parser.onerror=function(V){G.emit("error",V),G._parser.error=null},this._decoder=null,ne.forEach(function(V){(0,d.default)(G,"on"+V,{get:function(){return G._parser["on"+V]},set:function(Q){if(!Q)return G.removeAllListeners(V),G._parser["on"+V]=Q,Q;G.on(V,Q)},enumerable:!0,configurable:!1})})}function y(b){return b===" "||b===`
|
|
|
`||b==="\r"||b===" "}function I(b){return b==='"'||b==="'"}function R(b){return b===">"||y(b)}function B(b,E){return b.test(E)}function k(b,E){return!B(b,E)}function W(b,E,G){b[E]&&b[E](G)}function K(b,E,G){b.textNode&&H(b),W(b,E,G)}function H(b){b.textNode=re(b.opt,b.textNode),b.textNode&&W(b,"ontext",b.textNode),b.textNode=""}function re(b,E){return b.trim&&(E=E.trim()),b.normalize&&(E=E.replace(/\s+/g," ")),E}function X(b,E){return H(b),b.trackPosition&&(E+=`
|
|
|
Line: `+b.line+`
|
|
|
Column: `+b.column+`
|
|
|
Char: `+b.c),E=new Error(E),b.error=E,W(b,"onerror",E),b}function ie(b){return b.sawRoot&&!b.closedRoot&&ee(b,"Unclosed root tag"),b.state!==s.BEGIN&&b.state!==s.BEGIN_WHITESPACE&&b.state!==s.TEXT&&X(b,"Unexpected end"),H(b),b.c="",b.closed=!0,W(b,"onend"),T.call(b,b.strict,b.opt),b}function ee(b,E){if((b===void 0?"undefined":(0,a.default)(b))!=="object"||!(b instanceof T))throw new Error("bad call to strictFail");b.strict&&X(b,E)}function Y(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var E=b.tags[b.tags.length-1]||b,G=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(G.ns=E.ns),b.attribList.length=0,K(b,"onopentagstart",G)}function F(b,E){var G=b.indexOf(":"),V=G<0?["",b]:b.split(":"),L=V[0],Q=V[1];return E&&b==="xmlns"&&(L="xmlns",Q=""),{prefix:L,local:Q}}function U(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName))return void(b.attribName=b.attribValue="");if(b.opt.xmlns){var E=F(b.attribName,!0),G=E.prefix,V=E.local;if(G==="xmlns")if(V==="xml"&&b.attribValue!==N)ee(b,"xml: prefix must be bound to "+N+`
|
|
|
Actual: `+b.attribValue);else if(V==="xmlns"&&b.attribValue!==j)ee(b,"xmlns: prefix must be bound to "+j+`
|
|
|
Actual: `+b.attribValue);else{var L=b.tag,Q=b.tags[b.tags.length-1]||b;L.ns===Q.ns&&(L.ns=(0,w.default)(Q.ns)),L.ns[V]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,K(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function M(b,E){if(b.opt.xmlns){var G=b.tag,V=F(b.tagName);G.prefix=V.prefix,G.local=V.local,G.uri=G.ns[V.prefix]||"",G.prefix&&!G.uri&&(ee(b,"Unbound namespace prefix: "+(0,u.default)(b.tagName)),G.uri=V.prefix);var L=b.tags[b.tags.length-1]||b;G.ns&&L.ns!==G.ns&&(0,c.default)(G.ns).forEach(function(ot){K(b,"onopennamespace",{prefix:ot,uri:G.ns[ot]})});for(var Q=0,ue=b.attribList.length;Q<ue;Q++){var pe=b.attribList[Q],ve=pe[0],we=pe[1],le=F(ve,!0),Ae=le.prefix,Be=le.local,Re=Ae===""?"":G.ns[Ae]||"",ze={name:ve,value:we,prefix:Ae,local:Be,uri:Re};Ae&&Ae!=="xmlns"&&!Re&&(ee(b,"Unbound namespace prefix: "+(0,u.default)(Ae)),ze.uri=Ae),b.tag.attributes[ve]=ze,K(b,"onattribute",ze)}b.attribList.length=0}b.tag.isSelfClosing=!!E,b.sawRoot=!0,b.tags.push(b.tag),K(b,"onopentag",b.tag),E||(b.noscript||b.tagName.toLowerCase()!=="script"?b.state=s.TEXT:b.state=s.SCRIPT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function z(b){if(!b.tagName)return ee(b,"Weird empty close tag."),b.textNode+="</>",void(b.state=s.TEXT);if(b.script){if(b.tagName!=="script")return b.script+="</"+b.tagName+">",b.tagName="",void(b.state=s.SCRIPT);K(b,"onscript",b.script),b.script=""}var E=b.tags.length,G=b.tagName;b.strict||(G=G[b.looseCase]());for(var V=G;E--&&!(b.tags[E].name===V);)ee(b,"Unexpected close tag");if(E<0)return ee(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",void(b.state=s.TEXT);b.tagName=G;for(var L=b.tags.length;L-- >E;){var Q=b.tag=b.tags.pop();b.tagName=b.tag.name,K(b,"onclosetag",b.tagName);var ue={};for(var pe in Q.ns)ue[pe]=Q.ns[pe];var ve=b.tags[b.tags.length-1]||b;b.opt.xmlns&&Q.ns!==ve.ns&&(0,c.default)(Q.ns).forEach(function(we){var le=Q.ns[we];K(b,"onclosenamespace",{prefix:we,uri:le})})}E===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=s.TEXT}function q(b){var E,G=b.entity,V=G.toLowerCase(),L="";return b.ENTITIES[G]?b.ENTITIES[G]:b.ENTITIES[V]?b.ENTITIES[V]:(G=V,G.charAt(0)==="#"&&(G.charAt(1)==="x"?(G=G.slice(2),E=parseInt(G,16),L=E.toString(16)):(G=G.slice(1),E=parseInt(G,10),L=E.toString(10))),G=G.replace(/^0+/,""),isNaN(E)||L.toLowerCase()!==G?(ee(b,"Invalid character entity"),"&"+b.entity+";"):(0,l.default)(E))}function Z(b,E){E==="<"?(b.state=s.OPEN_WAKA,b.startTagPosition=b.position):y(E)||(ee(b,"Non-whitespace before first tag."),b.textNode=E,b.state=s.TEXT)}function de(b,E){var G="";return E<b.length&&(G=b.charAt(E)),G}function oe(b){var E=this;if(this.error)throw this.error;if(E.closed)return X(E,"Cannot write after close. Assign an onready handler.");if(b===null)return ie(E);(b===void 0?"undefined":(0,a.default)(b))==="object"&&(b=b.toString());for(var G=0,V="";!(V=de(b,G++),E.c=V,!V);)switch(E.trackPosition&&(E.position++,V===`
|
|
|
`?(E.line++,E.column=0):E.column++),E.state){case s.BEGIN:if(E.state=s.BEGIN_WHITESPACE,V==="\uFEFF")continue;Z(E,V);continue;case s.BEGIN_WHITESPACE:Z(E,V);continue;case s.TEXT:if(E.sawRoot&&!E.closedRoot){for(var L=G-1;V&&V!=="<"&&V!=="&";)(V=de(b,G++))&&E.trackPosition&&(E.position++,V===`
|
|
|
`?(E.line++,E.column=0):E.column++);E.textNode+=b.substring(L,G-1)}V!=="<"||E.sawRoot&&E.closedRoot&&!E.strict?(y(V)||E.sawRoot&&!E.closedRoot||ee(E,"Text data outside of root node."),V==="&"?E.state=s.TEXT_ENTITY:E.textNode+=V):(E.state=s.OPEN_WAKA,E.startTagPosition=E.position);continue;case s.SCRIPT:V==="<"?E.state=s.SCRIPT_ENDING:E.script+=V;continue;case s.SCRIPT_ENDING:V==="/"?E.state=s.CLOSE_TAG:(E.script+="<"+V,E.state=s.SCRIPT);continue;case s.OPEN_WAKA:if(V==="!")E.state=s.SGML_DECL,E.sgmlDecl="";else if(!y(V))if(B(ae,V))E.state=s.OPEN_TAG,E.tagName=V;else if(V==="/")E.state=s.CLOSE_TAG,E.tagName="";else if(V==="?")E.state=s.PROC_INST,E.procInstName=E.procInstBody="";else{if(ee(E,"Unencoded <"),E.startTagPosition+1<E.position){var Q=E.position-E.startTagPosition;V=new Array(Q).join(" ")+V}E.textNode+="<"+V,E.state=s.TEXT}continue;case s.SGML_DECL:(E.sgmlDecl+V).toUpperCase()===te?(K(E,"onopencdata"),E.state=s.CDATA,E.sgmlDecl="",E.cdata=""):E.sgmlDecl+V==="--"?(E.state=s.COMMENT,E.comment="",E.sgmlDecl=""):(E.sgmlDecl+V).toUpperCase()===se?(E.state=s.DOCTYPE,(E.doctype||E.sawRoot)&&ee(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):V===">"?(K(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=s.TEXT):(I(V)&&(E.state=s.SGML_DECL_QUOTED),E.sgmlDecl+=V);continue;case s.SGML_DECL_QUOTED:V===E.q&&(E.state=s.SGML_DECL,E.q=""),E.sgmlDecl+=V;continue;case s.DOCTYPE:V===">"?(E.state=s.TEXT,K(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=V,V==="["?E.state=s.DOCTYPE_DTD:I(V)&&(E.state=s.DOCTYPE_QUOTED,E.q=V));continue;case s.DOCTYPE_QUOTED:E.doctype+=V,V===E.q&&(E.q="",E.state=s.DOCTYPE);continue;case s.DOCTYPE_DTD:E.doctype+=V,V==="]"?E.state=s.DOCTYPE:I(V)&&(E.state=s.DOCTYPE_DTD_QUOTED,E.q=V);continue;case s.DOCTYPE_DTD_QUOTED:E.doctype+=V,V===E.q&&(E.state=s.DOCTYPE_DTD,E.q="");continue;case s.COMMENT:V==="-"?E.state=s.COMMENT_ENDING:E.comment+=V;continue;case s.COMMENT_ENDING:V==="-"?(E.state=s.COMMENT_ENDED,E.comment=re(E.opt,E.comment),E.comment&&K(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+V,E.state=s.COMMENT);continue;case s.COMMENT_ENDED:V!==">"?(ee(E,"Malformed comment"),E.comment+="--"+V,E.state=s.COMMENT):E.state=s.TEXT;continue;case s.CDATA:V==="]"?E.state=s.CDATA_ENDING:E.cdata+=V;continue;case s.CDATA_ENDING:V==="]"?E.state=s.CDATA_ENDING_2:(E.cdata+="]"+V,E.state=s.CDATA);continue;case s.CDATA_ENDING_2:V===">"?(E.cdata&&K(E,"oncdata",E.cdata),K(E,"onclosecdata"),E.cdata="",E.state=s.TEXT):V==="]"?E.cdata+="]":(E.cdata+="]]"+V,E.state=s.CDATA);continue;case s.PROC_INST:V==="?"?E.state=s.PROC_INST_ENDING:y(V)?E.state=s.PROC_INST_BODY:E.procInstName+=V;continue;case s.PROC_INST_BODY:if(!E.procInstBody&&y(V))continue;V==="?"?E.state=s.PROC_INST_ENDING:E.procInstBody+=V;continue;case s.PROC_INST_ENDING:V===">"?(K(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=s.TEXT):(E.procInstBody+="?"+V,E.state=s.PROC_INST_BODY);continue;case s.OPEN_TAG:B(me,V)?E.tagName+=V:(Y(E),V===">"?M(E):V==="/"?E.state=s.OPEN_TAG_SLASH:(y(V)||ee(E,"Invalid character in tag name"),E.state=s.ATTRIB));continue;case s.OPEN_TAG_SLASH:V===">"?(M(E,!0),z(E)):(ee(E,"Forward-slash in opening tag not followed by >"),E.state=s.ATTRIB);continue;case s.ATTRIB:if(y(V))continue;V===">"?M(E):V==="/"?E.state=s.OPEN_TAG_SLASH:B(ae,V)?(E.attribName=V,E.attribValue="",E.state=s.ATTRIB_NAME):ee(E,"Invalid attribute name");continue;case s.ATTRIB_NAME:V==="="?E.state=s.ATTRIB_VALUE:V===">"?(ee(E,"Attribute without value"),E.attribValue=E.attribName,U(E),M(E)):y(V)?E.state=s.ATTRIB_NAME_SAW_WHITE:B(me,V)?E.attribName+=V:ee(E,"Invalid attribute name");continue;case s.ATTRIB_NAME_SAW_WHITE:if(V==="=")E.state=s.ATTRIB_VALUE;else{if(y(V))continue;ee(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",K(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",V===">"?M(E):B(ae,V)?(E.attribName=V,E.state=s.ATTRIB_NAME):(ee(E,"Invalid attribute name"),E.state=s.ATTRIB)}continue;case s.ATTRIB_VALUE:if(y(V))continue;I(V)?(E.q=V,E.state=s.ATTRIB_VALUE_QUOTED):(ee(E,"Unquoted attribute value"),E.state=s.ATTRIB_VALUE_UNQUOTED,E.attribValue=V);continue;case s.ATTRIB_VALUE_QUOTED:if(V!==E.q){V==="&"?E.state=s.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=V;continue}U(E),E.q="",E.state=s.ATTRIB_VALUE_CLOSED;continue;case s.ATTRIB_VALUE_CLOSED:y(V)?E.state=s.ATTRIB:V===">"?M(E):V==="/"?E.state=s.OPEN_TAG_SLASH:B(ae,V)?(ee(E,"No whitespace between attributes"),E.attribName=V,E.attribValue="",E.state=s.ATTRIB_NAME):ee(E,"Invalid attribute name");continue;case s.ATTRIB_VALUE_UNQUOTED:if(!R(V)){V==="&"?E.state=s.ATTRIB_VALUE_ENTITY_U:E.attribValue+=V;continue}U(E),V===">"?M(E):E.state=s.ATTRIB;continue;case s.CLOSE_TAG:if(E.tagName)V===">"?z(E):B(me,V)?E.tagName+=V:E.script?(E.script+="</"+E.tagName,E.tagName="",E.state=s.SCRIPT):(y(V)||ee(E,"Invalid tagname in closing tag"),E.state=s.CLOSE_TAG_SAW_WHITE);else{if(y(V))continue;k(ae,V)?E.script?(E.script+="</"+V,E.state=s.SCRIPT):ee(E,"Invalid tagname in closing tag."):E.tagName=V}continue;case s.CLOSE_TAG_SAW_WHITE:if(y(V))continue;V===">"?z(E):ee(E,"Invalid characters in closing tag");continue;case s.TEXT_ENTITY:case s.ATTRIB_VALUE_ENTITY_Q:case s.ATTRIB_VALUE_ENTITY_U:var ue,pe;switch(E.state){case s.TEXT_ENTITY:ue=s.TEXT,pe="textNode";break;case s.ATTRIB_VALUE_ENTITY_Q:ue=s.ATTRIB_VALUE_QUOTED,pe="attribValue";break;case s.ATTRIB_VALUE_ENTITY_U:ue=s.ATTRIB_VALUE_UNQUOTED,pe="attribValue"}V===";"?(E[pe]+=q(E),E.entity="",E.state=ue):B(E.entity.length?n:P,V)?E.entity+=V:(ee(E,"Invalid character in entity name"),E[pe]+="&"+E.entity+V,E.entity="",E.state=ue);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&x(E),E}h.parser=function(b,E){return new T(b,E)},h.SAXParser=T,h.SAXStream=D,h.createStream=C,h.MAX_BUFFER_LENGTH=65536;var he=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];h.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],w.default||(Object.create=function(b){function E(){}return E.prototype=b,new E}),c.default||(Object.keys=function(b){var E=[];for(var G in b)b.hasOwnProperty(G)&&E.push(G);return E}),T.prototype={end:function(){ie(this)},write:oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){_(this)}};var _e;try{_e=t("stream").Stream}catch(b){_e=function(){}}var ne=h.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});D.prototype=(0,w.default)(_e.prototype,{constructor:{value:D}}),D.prototype.write=function(b){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(b)){if(!this._decoder){var E=t("string_decoder").StringDecoder;this._decoder=new E("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},D.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},D.prototype.on=function(b,E){var G=this;return G._parser["on"+b]||ne.indexOf(b)===-1||(G._parser["on"+b]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,b),G.emit.apply(G,V)}),_e.prototype.on.call(G,b,E)};var te="[CDATA[",se="DOCTYPE",N="http://www.w3.org/XML/1998/namespace",j="http://www.w3.org/2000/xmlns/",$={xml:N,xmlns:j},ae=/[:_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]/,me=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,P=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=/[#:_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-]/,s=0;h.STATE={BEGIN:s++,BEGIN_WHITESPACE:s++,TEXT:s++,TEXT_ENTITY:s++,OPEN_WAKA:s++,SGML_DECL:s++,SGML_DECL_QUOTED:s++,DOCTYPE:s++,DOCTYPE_QUOTED:s++,DOCTYPE_DTD:s++,DOCTYPE_DTD_QUOTED:s++,COMMENT_STARTING:s++,COMMENT:s++,COMMENT_ENDING:s++,COMMENT_ENDED:s++,CDATA:s++,CDATA_ENDING:s++,CDATA_ENDING_2:s++,PROC_INST:s++,PROC_INST_BODY:s++,PROC_INST_ENDING:s++,OPEN_TAG:s++,OPEN_TAG_SLASH:s++,ATTRIB:s++,ATTRIB_NAME:s++,ATTRIB_NAME_SAW_WHITE:s++,ATTRIB_VALUE:s++,ATTRIB_VALUE_QUOTED:s++,ATTRIB_VALUE_CLOSED:s++,ATTRIB_VALUE_UNQUOTED:s++,ATTRIB_VALUE_ENTITY_Q:s++,ATTRIB_VALUE_ENTITY_U:s++,CLOSE_TAG:s++,CLOSE_TAG_SAW_WHITE:s++,SCRIPT:s++,SCRIPT_ENDING:s++},h.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},h.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,c.default)(h.ENTITIES).forEach(function(b){var E=h.ENTITIES[b],G=typeof E=="number"?String.fromCharCode(E):E;h.ENTITIES[b]=G});for(var O in h.STATE)h.STATE[h.STATE[O]]=O;s=h.STATE,l.default||function(){var b=String.fromCharCode,E=Math.floor,G=function(){var L,Q,ue=[],pe=-1,ve=arguments.length;if(!ve)return"";for(var we="";++pe<ve;){var le=Number(arguments[pe]);if(!isFinite(le)||le<0||le>1114111||E(le)!==le)throw RangeError("Invalid code point: "+le);le<=65535?ue.push(le):(le-=65536,L=55296+(le>>10),Q=le%1024+56320,ue.push(L,Q)),(pe+1===ve||ue.length>16384)&&(we+=b.apply(null,ue),ue.length=0)}return we};d.default?Object.defineProperty(String,"fromCodePoint",{value:G,configurable:!0,writable:!0}):String.fromCodePoint=G}()}(S===void 0?(void 0).sax={}:S)}).call(this,t("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(t,i,S){function m(){g.call(this)}i.exports=m;var g=t("events").EventEmitter;t("inherits")(m,g),m.Readable=t("readable-stream/readable.js"),m.Writable=t("readable-stream/writable.js"),m.Duplex=t("readable-stream/duplex.js"),m.Transform=t("readable-stream/transform.js"),m.PassThrough=t("readable-stream/passthrough.js"),m.Stream=m,m.prototype.pipe=function(o,l){function p(A){o.writable&&o.write(A)===!1&&f.pause&&f.pause()}function u(){f.readable&&f.resume&&f.resume()}function e(){c||(c=!0,o.end())}function a(){c||(c=!0,typeof o.destroy=="function"&&o.destroy())}function r(A){if(d(),g.listenerCount(this,"error")===0)throw A}function d(){f.removeListener("data",p),o.removeListener("drain",u),f.removeListener("end",e),f.removeListener("close",a),f.removeListener("error",r),o.removeListener("error",r),f.removeListener("end",d),f.removeListener("close",d),o.removeListener("close",d)}var f=this;f.on("data",p),o.on("drain",u),o._isStdio||l&&l.end===!1||(f.on("end",e),f.on("close",a));var c=!1;return f.on("error",r),o.on("error",r),f.on("end",d),f.on("close",d),o.on("close",d),o.emit("pipe",f),o}},{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(t,i,S){(function(m){var g=t("./lib/request"),o=t("./lib/response"),l=t("xtend"),p=t("builtin-status-codes"),u=t("url"),e=S;e.request=function(a,r){a=typeof a=="string"?u.parse(a):l(a);var d=m.location.protocol.search(/^https?:$/)===-1?"http:":"",f=a.protocol||d,c=a.hostname||a.host,A=a.port,w=a.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),a.url=(c?f+"//"+c:"")+(A?":"+A:"")+w,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var h=new g(a);return r&&h.on("response",r),h},e.get=function(a,r){var d=e.request(a,r);return d.end(),d},e.ClientRequest=g,e.IncomingMessage=o.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 je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(t,i,S){(function(m){"use strict";function g(){if(p!==void 0)return p;if(m.XMLHttpRequest){p=new m.XMLHttpRequest;try{p.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(a){p=null}}else p=null;return p}function o(a){var r=g();if(!r)return!1;try{return r.responseType=a,r.responseType===a}catch(d){}return!1}function l(a){return typeof a=="function"}S.fetch=l(m.fetch)&&l(m.ReadableStream),S.writableStream=l(m.WritableStream),S.abortController=l(m.AbortController),S.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),S.blobConstructor=!0}catch(a){}var p,u=m.ArrayBuffer!==void 0,e=u&&l(m.ArrayBuffer.prototype.slice);S.arraybuffer=S.fetch||u&&o("arraybuffer"),S.msstream=!S.fetch&&e&&o("ms-stream"),S.mozchunkedarraybuffer=!S.fetch&&u&&o("moz-chunked-arraybuffer"),S.overrideMimeType=S.fetch||!!g()&&l(g().overrideMimeType),S.vbArray=l(m.VBArray),p=null}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(t,i,S){(function(m,g,o){"use strict";function l(x,v){return a.fetch&&v?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&x?"arraybuffer":a.vbArray&&x?"text:vbarray":"text"}function p(x){try{var v=x.status;return v!==null&&v!==0}catch(_){return!1}}var u=t("babel-runtime/core-js/object/keys"),e=function(x){return x&&x.__esModule?x:{default:x}}(u),a=t("./capability"),r=t("inherits"),d=t("./response"),f=t("readable-stream"),c=t("to-arraybuffer"),A=d.IncomingMessage,w=d.readyStates,h=i.exports=function(x){var v=this;f.Writable.call(v),v._opts=x,v._body=[],v._headers={},x.auth&&v.setHeader("Authorization","Basic "+new o(x.auth).toString("base64")),(0,e.default)(x.headers).forEach(function(D){v.setHeader(D,x.headers[D])});var _,C=!0;if(x.mode==="disable-fetch"||"requestTimeout"in x&&!a.abortController)C=!1,_=!0;else if(x.mode==="prefer-streaming")_=!1;else if(x.mode==="allow-wrong-content-type")_=!a.overrideMimeType;else{if(x.mode&&x.mode!=="default"&&x.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}v._mode=l(_,C),v._fetchTimer=null,v.on("finish",function(){v._onFinish()})};r(h,f.Writable),h.prototype.setHeader=function(x,v){var _=this,C=x.toLowerCase();T.indexOf(C)===-1&&(_._headers[C]={name:x,value:v})},h.prototype.getHeader=function(x){var v=this._headers[x.toLowerCase()];return v?v.value:null},h.prototype.removeHeader=function(x){delete this._headers[x.toLowerCase()]},h.prototype._onFinish=function(){var x=this;if(!x._destroyed){var v=x._opts,_=x._headers,C=null;v.method!=="GET"&&v.method!=="HEAD"&&(C=a.arraybuffer?c(o.concat(x._body)):a.blobConstructor?new g.Blob(x._body.map(function(B){return c(B)}),{type:(_["content-type"]||{}).value||""}):o.concat(x._body).toString());var D=[];if((0,e.default)(_).forEach(function(B){var k=_[B].name,W=_[B].value;Array.isArray(W)?W.forEach(function(K){D.push([k,K])}):D.push([k,W])}),x._mode==="fetch"){var y=null;if(a.abortController){var I=new AbortController;y=I.signal,x._fetchAbortController=I,"requestTimeout"in v&&v.requestTimeout!==0&&(x._fetchTimer=g.setTimeout(function(){x.emit("requestTimeout"),x._fetchAbortController&&x._fetchAbortController.abort()},v.requestTimeout))}g.fetch(x._opts.url,{method:x._opts.method,headers:D,body:C||void 0,mode:"cors",credentials:v.withCredentials?"include":"same-origin",signal:y}).then(function(B){x._fetchResponse=B,x._connect()},function(B){g.clearTimeout(x._fetchTimer),x._destroyed||x.emit("error",B)})}else{var R=x._xhr=new g.XMLHttpRequest;try{R.open(x._opts.method,x._opts.url,!0)}catch(B){return void m.nextTick(function(){x.emit("error",B)})}"responseType"in R&&(R.responseType=x._mode.split(":")[0]),"withCredentials"in R&&(R.withCredentials=!!v.withCredentials),x._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in v&&(R.timeout=v.requestTimeout,R.ontimeout=function(){x.emit("requestTimeout")}),D.forEach(function(B){R.setRequestHeader(B[0],B[1])}),x._response=null,R.onreadystatechange=function(){switch(R.readyState){case w.LOADING:case w.DONE:x._onXHRProgress()}},x._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){x._onXHRProgress()}),R.onerror=function(){x._destroyed||x.emit("error",new Error("XHR error"))};try{R.send(C)}catch(B){return void m.nextTick(function(){x.emit("error",B)})}}}},h.prototype._onXHRProgress=function(){var x=this;p(x._xhr)&&!x._destroyed&&(x._response||x._connect(),x._response._onXHRProgress())},h.prototype._connect=function(){var x=this;x._destroyed||(x._response=new A(x._xhr,x._fetchResponse,x._mode,x._fetchTimer),x._response.on("error",function(v){x.emit("error",v)}),x.emit("response",x._response))},h.prototype._write=function(x,v,_){this._body.push(x),_()},h.prototype.abort=h.prototype.destroy=function(){var x=this;x._destroyed=!0,g.clearTimeout(x._fetchTimer),x._response&&(x._response._destroyed=!0),x._xhr?x._xhr.abort():x._fetchAbortController&&x._fetchAbortController.abort()},h.prototype.end=function(x,v,_){var C=this;typeof x=="function"&&(_=x,x=void 0),f.Writable.prototype.end.call(C,x,v,_)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.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,t("_process"),typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("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(t,i,S){(function(m,g,o){"use strict";var l=t("babel-runtime/core-js/promise"),p=function(f){return f&&f.__esModule?f:{default:f}}(l),u=t("./capability"),e=t("inherits"),a=t("readable-stream"),r=S.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=S.IncomingMessage=function(f,c,A,w){var h=this;if(a.Readable.call(h),h._mode=A,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){m.nextTick(function(){h.emit("close")})}),A==="fetch"){if(h._fetchResponse=c,h.url=c.url,h.statusCode=c.status,h.statusMessage=c.statusText,c.headers.forEach(function(C,D){h.headers[D.toLowerCase()]=C,h.rawHeaders.push(D,C)}),u.writableStream){var T=new WritableStream({write:function(D){return new p.default(function(y,I){h._destroyed?I():h.push(new o(D))?y():h._resumeFetch=y})},close:function(){g.clearTimeout(w),h._destroyed||h.push(null)},abort:function(D){h._destroyed||h.emit("error",D)}});try{return void c.body.pipeTo(T).catch(function(C){g.clearTimeout(w),h._destroyed||h.emit("error",C)})}catch(C){}}var x=c.body.getReader();!function C(){x.read().then(function(D){if(!h._destroyed){if(D.done)return g.clearTimeout(w),void h.push(null);h.push(new o(D.value)),C()}}).catch(function(D){g.clearTimeout(w),h._destroyed||h.emit("error",D)})}()}else if(h._xhr=f,h._pos=0,h.url=f.responseURL,h.statusCode=f.status,h.statusMessage=f.statusText,f.getAllResponseHeaders().split(/\r?\n/).forEach(function(C){var D=C.match(/^([^:]+):\s*(.*)/);if(D){var y=D[1].toLowerCase();y==="set-cookie"?(h.headers[y]===void 0&&(h.headers[y]=[]),h.headers[y].push(D[2])):h.headers[y]!==void 0?h.headers[y]+=", "+D[2]:h.headers[y]=D[2],h.rawHeaders.push(D[1],D[2])}}),h._charset="x-user-defined",!u.overrideMimeType){var v=h.rawHeaders["mime-type"];if(v){var _=v.match(/;\s*charset=([^;])(;|$)/);_&&(h._charset=_[1].toLowerCase())}h._charset||(h._charset="utf-8")}};e(d,a.Readable),d.prototype._read=function(){var f=this,c=f._resumeFetch;c&&(f._resumeFetch=null,c())},d.prototype._onXHRProgress=function(){var f=this,c=f._xhr,A=null;switch(f._mode){case"text:vbarray":if(c.readyState!==r.DONE)break;try{A=new g.VBArray(c.responseBody).toArray()}catch(v){}if(A!==null){f.push(new o(A));break}case"text":try{A=c.responseText}catch(v){f._mode="text:vbarray";break}if(A.length>f._pos){var w=A.substr(f._pos);if(f._charset==="x-user-defined"){for(var h=new o(w.length),T=0;T<w.length;T++)h[T]=255&w.charCodeAt(T);f.push(h)}else f.push(w,f._charset);f._pos=A.length}break;case"arraybuffer":if(c.readyState!==r.DONE||!c.response)break;A=c.response,f.push(new o(new Uint8Array(A)));break;case"moz-chunked-arraybuffer":if(A=c.response,c.readyState!==r.LOADING||!A)break;f.push(new o(new Uint8Array(A)));break;case"ms-stream":if(A=c.response,c.readyState!==r.LOADING)break;var x=new g.MSStreamReader;x.onprogress=function(){x.result.byteLength>f._pos&&(f.push(new o(new Uint8Array(x.result.slice(f._pos)))),f._pos=x.result.byteLength)},x.onload=function(){f.push(null)},x.readAsArrayBuffer(A)}f._xhr.readyState===r.DONE&&f._mode!=="ms-stream"&&f.push(null)}}).call(this,t("_process"),typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(t,i,S){"use strict";function m(v){if(!v)return"utf8";for(var _;;)switch(v){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 v;default:if(_)return;v=(""+v).toLowerCase(),_=!0}}function g(v){var _=m(v);if(typeof _!="string"&&(T.isEncoding===x||!x(v)))throw new Error("Unknown encoding: "+v);return _||v}function o(v){this.encoding=g(v);var _;switch(this.encoding){case"utf16le":this.text=d,this.end=f,_=4;break;case"utf8":this.fillLast=e,_=4;break;case"base64":this.text=c,this.end=A,_=3;break;default:return this.write=w,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(_)}function l(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function p(v,_,C){var D=_.length-1;if(D<C)return 0;var y=l(_[D]);return y>=0?(y>0&&(v.lastNeed=y-1),y):--D<C||y===-2?0:(y=l(_[D]))>=0?(y>0&&(v.lastNeed=y-2),y):--D<C||y===-2?0:(y=l(_[D]),y>=0?(y>0&&(y===2?y=0:v.lastNeed=y-3),y):0)}function u(v,_,C){if((192&_[0])!=128)return v.lastNeed=0,"\u951F\uFFFD";if(v.lastNeed>1&&_.length>1){if((192&_[1])!=128)return v.lastNeed=1,"\u951F\uFFFD";if(v.lastNeed>2&&_.length>2&&(192&_[2])!=128)return v.lastNeed=2,"\u951F\uFFFD"}}function e(v){var _=this.lastTotal-this.lastNeed,C=u(this,v,_);return C!==void 0?C:this.lastNeed<=v.length?(v.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,_,0,v.length),void(this.lastNeed-=v.length))}function a(v,_){var C=p(this,v,_);if(!this.lastNeed)return v.toString("utf8",_);this.lastTotal=C;var D=v.length-(C-this.lastNeed);return v.copy(this.lastChar,0,D),v.toString("utf8",_,D)}function r(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+"\u951F\uFFFD":_}function d(v,_){if((v.length-_)%2==0){var C=v.toString("utf16le",_);if(C){var D=C.charCodeAt(C.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",_,v.length-1)}function f(v){var _=v&&v.length?this.write(v):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,C)}return _}function c(v,_){var C=(v.length-_)%3;return C===0?v.toString("base64",_):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",_,v.length-C))}function A(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function w(v){return v.toString(this.encoding)}function h(v){return v&&v.length?this.write(v):""}var T=t("safe-buffer").Buffer,x=T.isEncoding||function(v){switch((v=""+v)&&v.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}};S.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var _,C;if(this.lastNeed){if((_=this.fillLast(v))===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<v.length?_?_+this.text(v,C):this.text(v,C):_||""},o.prototype.end=r,o.prototype.text=a,o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},{"safe-buffer":193}],201:[function(t,i,S){(function(m,g){function o(r,d){this._id=r,this._clearFn=d}var l=t("process/browser.js").nextTick,p=Function.prototype.apply,u=Array.prototype.slice,e={},a=0;S.setTimeout=function(){return new o(p.call(setTimeout,window,arguments),clearTimeout)},S.setInterval=function(){return new o(p.call(setInterval,window,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(r){r.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},S.enroll=function(r,d){clearTimeout(r._idleTimeoutId),r._idleTimeout=d},S.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},S._unrefActive=S.active=function(r){clearTimeout(r._idleTimeoutId);var d=r._idleTimeout;d>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},d))},S.setImmediate=typeof m=="function"?m:function(r){var d=a++,f=!(arguments.length<2)&&u.call(arguments,1);return e[d]=!0,l(function(){e[d]&&(f?r.apply(null,f):r.call(null),S.clearImmediate(d))}),d},S.clearImmediate=typeof g=="function"?g:function(r){delete e[r]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(t,i,S){var m=t("buffer").Buffer;i.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(m.isBuffer(g)){for(var o=new Uint8Array(g.length),l=g.length,p=0;p<l;p++)o[p]=g[p];return o.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(t,i,S){"use strict";function m(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function g(y,I,R){if(y&&e.isObject(y)&&y instanceof m)return y;var B=new m;return B.parse(y,I,R),B}function o(y){return e.isString(y)&&(y=g(y)),y instanceof m?y.format():m.prototype.format.call(y)}function l(y,I){return g(y,!1,!0).resolve(I)}function p(y,I){return y?g(y,!1,!0).resolveObject(I):I}var u=t("punycode"),e=t("./util");S.parse=g,S.resolve=l,S.resolveObject=p,S.format=o,S.Url=m;var a=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(f),A=["'"].concat(c),w=["%","/","?",";","#"].concat(A),h=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},D=t("querystring");m.prototype.parse=function(y,I,R){if(!e.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var B=y.indexOf("?"),k=B!==-1&&B<y.indexOf("#")?"?":"#",W=y.split(k),K=/\\/g;W[0]=W[0].replace(K,"/"),y=W.join(k);var H=y;if(H=H.trim(),!R&&y.split("#").length===1){var re=d.exec(H);if(re)return this.path=H,this.href=H,this.pathname=re[1],re[2]?(this.search=re[2],this.query=I?D.parse(this.search.substr(1)):this.search.substr(1)):I&&(this.search="",this.query={}),this}var X=a.exec(H);if(X){X=X[0];var ie=X.toLowerCase();this.protocol=ie,H=H.substr(X.length)}if(R||X||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var ee=H.substr(0,2)==="//";!ee||X&&_[X]||(H=H.substr(2),this.slashes=!0)}if(!_[X]&&(ee||X&&!C[X])){for(var Y=-1,F=0;F<h.length;F++){var U=H.indexOf(h[F]);U!==-1&&(Y===-1||U<Y)&&(Y=U)}var M,z;z=Y===-1?H.lastIndexOf("@"):H.lastIndexOf("@",Y),z!==-1&&(M=H.slice(0,z),H=H.slice(z+1),this.auth=decodeURIComponent(M)),Y=-1;for(var F=0;F<w.length;F++){var U=H.indexOf(w[F]);U!==-1&&(Y===-1||U<Y)&&(Y=U)}Y===-1&&(Y=H.length),this.host=H.slice(0,Y),H=H.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var Z=this.hostname.split(/\./),F=0,de=Z.length;F<de;F++){var oe=Z[F];if(oe&&!oe.match(T)){for(var he="",_e=0,ne=oe.length;_e<ne;_e++)oe.charCodeAt(_e)>127?he+="x":he+=oe[_e];if(!he.match(T)){var te=Z.slice(0,F),se=Z.slice(F+1),N=oe.match(x);N&&(te.push(N[1]),se.unshift(N[2])),se.length&&(H="/"+se.join(".")+H),this.hostname=te.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=u.toASCII(this.hostname));var j=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+j,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!v[ie])for(var F=0,de=A.length;F<de;F++){var ae=A[F];if(H.indexOf(ae)!==-1){var me=encodeURIComponent(ae);me===ae&&(me=escape(ae)),H=H.split(ae).join(me)}}var P=H.indexOf("#");P!==-1&&(this.hash=H.substr(P),H=H.slice(0,P));var n=H.indexOf("?");if(n!==-1?(this.search=H.substr(n),this.query=H.substr(n+1),I&&(this.query=D.parse(this.query)),H=H.slice(0,n)):I&&(this.search="",this.query={}),H&&(this.pathname=H),C[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var j=this.pathname||"",s=this.search||"";this.path=j+s}return this.href=this.format(),this},m.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var I=this.protocol||"",R=this.pathname||"",B=this.hash||"",k=!1,W="";this.host?k=y+this.host:this.hostname&&(k=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(k+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(W=D.stringify(this.query));var K=this.search||W&&"?"+W||"";return I&&I.substr(-1)!==":"&&(I+=":"),this.slashes||(!I||C[I])&&k!==!1?(k="//"+(k||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):k||(k=""),B&&B.charAt(0)!=="#"&&(B="#"+B),K&&K.charAt(0)!=="?"&&(K="?"+K),R=R.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),K=K.replace("#","%23"),I+k+R+K+B},m.prototype.resolve=function(y){return this.resolveObject(g(y,!1,!0)).format()},m.prototype.resolveObject=function(y){if(e.isString(y)){var I=new m;I.parse(y,!1,!0),y=I}for(var R=new m,B=Object.keys(this),k=0;k<B.length;k++){var W=B[k];R[W]=this[W]}if(R.hash=y.hash,y.href==="")return R.href=R.format(),R;if(y.slashes&&!y.protocol){for(var K=Object.keys(y),H=0;H<K.length;H++){var re=K[H];re!=="protocol"&&(R[re]=y[re])}return C[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(y.protocol&&y.protocol!==R.protocol){if(!C[y.protocol]){for(var X=Object.keys(y),ie=0;ie<X.length;ie++){var ee=X[ie];R[ee]=y[ee]}return R.href=R.format(),R}if(R.protocol=y.protocol,y.host||_[y.protocol])R.pathname=y.pathname;else{for(var de=(y.pathname||"").split("/");de.length&&!(y.host=de.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),R.pathname=de.join("/")}if(R.search=y.search,R.query=y.query,R.host=y.host||"",R.auth=y.auth,R.hostname=y.hostname||y.host,R.port=y.port,R.pathname||R.search){var Y=R.pathname||"",F=R.search||"";R.path=Y+F}return R.slashes=R.slashes||y.slashes,R.href=R.format(),R}var U=R.pathname&&R.pathname.charAt(0)==="/",M=y.host||y.pathname&&y.pathname.charAt(0)==="/",z=M||U||R.host&&y.pathname,q=z,Z=R.pathname&&R.pathname.split("/")||[],de=y.pathname&&y.pathname.split("/")||[],oe=R.protocol&&!C[R.protocol];if(oe&&(R.hostname="",R.port=null,R.host&&(Z[0]===""?Z[0]=R.host:Z.unshift(R.host)),R.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(de[0]===""?de[0]=y.host:de.unshift(y.host)),y.host=null),z=z&&(de[0]===""||Z[0]==="")),M)R.host=y.host||y.host===""?y.host:R.host,R.hostname=y.hostname||y.hostname===""?y.hostname:R.hostname,R.search=y.search,R.query=y.query,Z=de;else if(de.length)Z||(Z=[]),Z.pop(),Z=Z.concat(de),R.search=y.search,R.query=y.query;else if(!e.isNullOrUndefined(y.search)){if(oe){R.hostname=R.host=Z.shift();var he=!!(R.host&&R.host.indexOf("@")>0)&&R.host.split("@");he&&(R.auth=he.shift(),R.host=R.hostname=he.shift())}return R.search=y.search,R.query=y.query,e.isNull(R.pathname)&&e.isNull(R.search)||(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!Z.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var _e=Z.slice(-1)[0],ne=(R.host||y.host||Z.length>1)&&(_e==="."||_e==="..")||_e==="",te=0,se=Z.length;se>=0;se--)_e=Z[se],_e==="."?Z.splice(se,1):_e===".."?(Z.splice(se,1),te++):te&&(Z.splice(se,1),te--);if(!z&&!q)for(;te--;te)Z.unshift("..");!z||Z[0]===""||Z[0]&&Z[0].charAt(0)==="/"||Z.unshift(""),ne&&Z.join("/").substr(-1)!=="/"&&Z.push("");var N=Z[0]===""||Z[0]&&Z[0].charAt(0)==="/";if(oe){R.hostname=R.host=N?"":Z.length?Z.shift():"";var he=!!(R.host&&R.host.indexOf("@")>0)&&R.host.split("@");he&&(R.auth=he.shift(),R.host=R.hostname=he.shift())}return z=z||R.host&&Z.length,z&&!N&&Z.unshift(""),Z.length?R.pathname=Z.join("/"):(R.pathname=null,R.path=null),e.isNull(R.pathname)&&e.isNull(R.search)||(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=y.auth||R.auth,R.slashes=R.slashes||y.slashes,R.href=R.format(),R},m.prototype.parseHost=function(){var y=this.host,I=r.exec(y);I&&(I=I[0],I!==":"&&(this.port=I.substr(1)),y=y.substr(0,y.length-I.length)),y&&(this.hostname=y)}},{"./util":204,punycode:174,querystring:177}],204:[function(t,i,S){"use strict";i.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(t,i,S){(function(m){function g(l,p){function u(){if(!e){if(o("throwDeprecation"))throw new Error(p);o("traceDeprecation")?console.trace(p):console.warn(p),e=!0}return l.apply(this,arguments)}if(o("noDeprecation"))return l;var e=!1;return u}function o(l){try{if(!m.localStorage)return!1}catch(u){return!1}var p=m.localStorage[l];return p!=null&&String(p).toLowerCase()==="true"}i.exports=g}).call(this,typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(t,i,S){i.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(t,i,S){(function(m,g){function o(F,U){var M={seen:[],stylize:p};return arguments.length>=3&&(M.depth=arguments[2]),arguments.length>=4&&(M.colors=arguments[3]),w(U)?M.showHidden=U:U&&S._extend(M,U),C(M.showHidden)&&(M.showHidden=!1),C(M.depth)&&(M.depth=2),C(M.colors)&&(M.colors=!1),C(M.customInspect)&&(M.customInspect=!0),M.colors&&(M.stylize=l),e(M,F,M.depth)}function l(F,U){var M=o.styles[U];return M?"["+o.colors[M][0]+"m"+F+"["+o.colors[M][1]+"m":F}function p(F,U){return F}function u(F){var U={};return F.forEach(function(M,z){U[M]=!0}),U}function e(F,U,M){if(F.customInspect&&U&&B(U.inspect)&&U.inspect!==S.inspect&&(!U.constructor||U.constructor.prototype!==U)){var z=U.inspect(M,F);return v(z)||(z=e(F,z,M)),z}var q=a(F,U);if(q)return q;var Z=Object.keys(U),de=u(Z);if(F.showHidden&&(Z=Object.getOwnPropertyNames(U)),R(U)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return r(U);if(Z.length===0){if(B(U)){var oe=U.name?": "+U.name:"";return F.stylize("[Function"+oe+"]","special")}if(D(U))return F.stylize(RegExp.prototype.toString.call(U),"regexp");if(I(U))return F.stylize(Date.prototype.toString.call(U),"date");if(R(U))return r(U)}var he="",_e=!1,ne=["{","}"];if((A(U)&&(_e=!0,ne=["[","]"]),B(U))&&(he=" [Function"+(U.name?": "+U.name:"")+"]"),D(U)&&(he=" "+RegExp.prototype.toString.call(U)),I(U)&&(he=" "+Date.prototype.toUTCString.call(U)),R(U)&&(he=" "+r(U)),Z.length===0&&(!_e||U.length==0))return ne[0]+he+ne[1];if(M<0)return D(U)?F.stylize(RegExp.prototype.toString.call(U),"regexp"):F.stylize("[Object]","special");F.seen.push(U);var te;return te=_e?d(F,U,M,de,Z):Z.map(function(se){return f(F,U,M,de,se,_e)}),F.seen.pop(),c(te,he,ne)}function a(F,U){if(C(U))return F.stylize("undefined","undefined");if(v(U)){var M="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(M,"string")}return x(U)?F.stylize(""+U,"number"):w(U)?F.stylize(""+U,"boolean"):h(U)?F.stylize("null","null"):void 0}function r(F){return"["+Error.prototype.toString.call(F)+"]"}function d(F,U,M,z,q){for(var Z=[],de=0,oe=U.length;de<oe;++de)re(U,String(de))?Z.push(f(F,U,M,z,String(de),!0)):Z.push("");return q.forEach(function(he){he.match(/^\d+$/)||Z.push(f(F,U,M,z,he,!0))}),Z}function f(F,U,M,z,q,Z){var de,oe,he;if(he=Object.getOwnPropertyDescriptor(U,q)||{value:U[q]},he.get?oe=he.set?F.stylize("[Getter/Setter]","special"):F.stylize("[Getter]","special"):he.set&&(oe=F.stylize("[Setter]","special")),re(z,q)||(de="["+q+"]"),oe||(F.seen.indexOf(he.value)<0?(oe=h(M)?e(F,he.value,null):e(F,he.value,M-1),oe.indexOf(`
|
|
|
`)>-1&&(oe=Z?oe.split(`
|
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
|
`).substr(2):`
|
|
|
`+oe.split(`
|
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
|
`))):oe=F.stylize("[Circular]","special")),C(de)){if(Z&&q.match(/^\d+$/))return oe;de=JSON.stringify(""+q),de.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(de=de.substr(1,de.length-2),de=F.stylize(de,"name")):(de=de.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),de=F.stylize(de,"string"))}return de+": "+oe}function c(F,U,M){var z=0;return F.reduce(function(q,Z){return z++,Z.indexOf(`
|
|
|
`)>=0&&z++,q+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?M[0]+(U===""?"":U+`
|
|
|
`)+" "+F.join(`,
|
|
|
`)+" "+M[1]:M[0]+U+" "+F.join(", ")+" "+M[1]}function A(F){return Array.isArray(F)}function w(F){return typeof F=="boolean"}function h(F){return F===null}function T(F){return F==null}function x(F){return typeof F=="number"}function v(F){return typeof F=="string"}function _(F){return typeof F=="symbol"}function C(F){return F===void 0}function D(F){return y(F)&&W(F)==="[object RegExp]"}function y(F){return typeof F=="object"&&F!==null}function I(F){return y(F)&&W(F)==="[object Date]"}function R(F){return y(F)&&(W(F)==="[object Error]"||F instanceof Error)}function B(F){return typeof F=="function"}function k(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||F===void 0}function W(F){return Object.prototype.toString.call(F)}function K(F){return F<10?"0"+F.toString(10):F.toString(10)}function H(){var F=new Date,U=[K(F.getHours()),K(F.getMinutes()),K(F.getSeconds())].join(":");return[F.getDate(),Y[F.getMonth()],U].join(" ")}function re(F,U){return Object.prototype.hasOwnProperty.call(F,U)}var X=/%[sdj%]/g;S.format=function(F){if(!v(F)){for(var U=[],M=0;M<arguments.length;M++)U.push(o(arguments[M]));return U.join(" ")}for(var M=1,z=arguments,q=z.length,Z=String(F).replace(X,function(he){if(he==="%%")return"%";if(M>=q)return he;switch(he){case"%s":return String(z[M++]);case"%d":return Number(z[M++]);case"%j":try{return JSON.stringify(z[M++])}catch(_e){return"[Circular]"}default:return he}}),de=z[M];M<q;de=z[++M])h(de)||!y(de)?Z+=" "+de:Z+=" "+o(de);return Z},S.deprecate=function(F,U){function M(){if(!z){if(m.throwDeprecation)throw new Error(U);m.traceDeprecation?console.trace(U):console.error(U),z=!0}return F.apply(this,arguments)}if(C(g.process))return function(){return S.deprecate(F,U).apply(this,arguments)};if(m.noDeprecation===!0)return F;var z=!1;return M};var ie,ee={};S.debuglog=function(F){if(C(ie)&&(ie=m.env.NODE_DEBUG||""),F=F.toUpperCase(),!ee[F])if(new RegExp("\\b"+F+"\\b","i").test(ie)){var U=m.pid;ee[F]=function(){var M=S.format.apply(S,arguments);console.error("%s %d: %s",F,U,M)}}else ee[F]=function(){};return ee[F]},S.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=A,S.isBoolean=w,S.isNull=h,S.isNullOrUndefined=T,S.isNumber=x,S.isString=v,S.isSymbol=_,S.isUndefined=C,S.isRegExp=D,S.isObject=y,S.isDate=I,S.isError=R,S.isFunction=B,S.isPrimitive=k,S.isBuffer=t("./support/isBuffer");var Y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];S.log=function(){console.log("%s - %s",H(),S.format.apply(S,arguments))},S.inherits=t("inherits"),S._extend=function(F,U){if(!U||!y(U))return F;for(var M=Object.keys(U),z=M.length;z--;)F[M[z]]=U[M[z]];return F}}).call(this,t("_process"),typeof je!="undefined"?je:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(t,i,S){"use strict";(function(){S.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],209:[function(t,i,S){"use strict";function m(u){return u&&u.__esModule?u:{default:u}}var g=t("babel-runtime/helpers/typeof"),o=m(g),l=t("babel-runtime/core-js/object/keys"),p=m(l);(function(){var u,e,a,r,d,f={}.hasOwnProperty;u=t("xmlbuilder"),e=t("./defaults").defaults,r=function(A){return typeof A=="string"&&(A.indexOf("&")>=0||A.indexOf(">")>=0||A.indexOf("<")>=0)},d=function(A){return"<![CDATA["+a(A)+"]]>"},a=function(A){return A.replace("]]>","]]]]><![CDATA[>")},S.Builder=function(){function c(A){var w,h,T;this.options={},h=e[.2];for(w in h)f.call(h,w)&&(T=h[w],this.options[w]=T);for(w in A)f.call(A,w)&&(T=A[w],this.options[w]=T)}return c.prototype.buildObject=function(A){var w,h,T,x,v;return w=this.options.attrkey,h=this.options.charkey,(0,p.default)(A).length===1&&this.options.rootName===e[.2].rootName?(v=(0,p.default)(A)[0],A=A[v]):v=this.options.rootName,T=function(_){return function(C,D){var y,I,R,B,k,W;if((D===void 0?"undefined":(0,o.default)(D))!=="object")_.options.cdata&&r(D)?C.raw(d(D)):C.txt(D);else if(Array.isArray(D)){for(B in D)if(f.call(D,B)){I=D[B];for(k in I)R=I[k],C=T(C.ele(k),R).up()}}else for(k in D)if(f.call(D,k))if(I=D[k],k===w){if((I===void 0?"undefined":(0,o.default)(I))==="object")for(y in I)W=I[y],C=C.att(y,W)}else if(k===h)C=_.options.cdata&&r(I)?C.raw(d(I)):C.txt(I);else if(Array.isArray(I))for(B in I)f.call(I,B)&&(R=I[B],C=typeof R=="string"?_.options.cdata&&r(R)?C.ele(k).raw(d(R)).up():C.ele(k,R).up():T(C.ele(k),R).up());else(I===void 0?"undefined":(0,o.default)(I))==="object"?C=T(C.ele(k),I).up():typeof I=="string"&&_.options.cdata&&r(I)?C=C.ele(k).raw(d(I)).up():(I==null&&(I=""),C=C.ele(k,I.toString()).up());return C}}(this),x=u.create(v,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(x,A).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(t,i,S){"use strict";(function(){S.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(t,i,S){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var g=t("babel-runtime/core-js/object/get-own-property-names"),o=m(g),l=t("babel-runtime/core-js/object/keys"),p=m(l),u=t("babel-runtime/helpers/typeof"),e=m(u);(function(){var a,r,d,f,c,A,w,h,T=function(C,D){return function(){return C.apply(D,arguments)}},x=function(C,D){function y(){this.constructor=C}for(var I in D)v.call(D,I)&&(C[I]=D[I]);return y.prototype=D.prototype,C.prototype=new y,C.__super__=D.prototype,C},v={}.hasOwnProperty;w=t("sax"),d=t("events"),a=t("./bom"),A=t("./processors"),h=t("timers").setImmediate,r=t("./defaults").defaults,f=function(C){return(C===void 0?"undefined":(0,e.default)(C))==="object"&&C!=null&&(0,p.default)(C).length===0},c=function(C,D,y){var I,R,B;for(I=0,R=C.length;I<R;I++)B=C[I],D=B(D,y);return D},S.Parser=function(_){function C(D){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 y,I,R;if(!(this instanceof S.Parser))return new S.Parser(D);this.options={},I=r[.2];for(y in I)v.call(I,y)&&(R=I[y],this.options[y]=R);for(y in D)v.call(D,y)&&(R=D[y],this.options[y]=R);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(A.normalize)),this.reset()}return x(C,_),C.prototype.processAsync=function(){var D,y;try{return this.remaining.length<=this.options.chunkSize?(D=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(D),this.saxParser.close()):(D=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(D),h(this.processAsync))}catch(I){if(y=I,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(y)}},C.prototype.assignOrPush=function(D,y,I){return y in D?(D[y]instanceof Array||(D[y]=[D[y]]),D[y].push(I)):this.options.explicitArray?D[y]=[I]:D[y]=I},C.prototype.reset=function(){var D,y,I,R;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(B){return function(k){if(B.saxParser.resume(),!B.saxParser.errThrown)return B.saxParser.errThrown=!0,B.emit("error",k)}}(this),this.saxParser.onend=function(B){return function(){if(!B.saxParser.ended)return B.saxParser.ended=!0,B.emit("end",B.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,R=[],D=this.options.attrkey,y=this.options.charkey,this.saxParser.onopentag=function(B){return function(k){var W,K,H,re,X;if(H={},H[y]="",!B.options.ignoreAttrs){X=k.attributes;for(W in X)v.call(X,W)&&(D in H||B.options.mergeAttrs||(H[D]={}),K=B.options.attrValueProcessors?c(B.options.attrValueProcessors,k.attributes[W],W):k.attributes[W],re=B.options.attrNameProcessors?c(B.options.attrNameProcessors,W):W,B.options.mergeAttrs?B.assignOrPush(H,re,K):H[D][re]=K)}return H["#name"]=B.options.tagNameProcessors?c(B.options.tagNameProcessors,k.name):k.name,B.options.xmlns&&(H[B.options.xmlnskey]={uri:k.uri,local:k.local}),R.push(H)}}(this),this.saxParser.onclosetag=function(B){return function(){var k,W,K,H,re,X,ie,ee,Y,F;if(X=R.pop(),re=X["#name"],B.options.explicitChildren&&B.options.preserveChildrenOrder||delete X["#name"],X.cdata===!0&&(k=X.cdata,delete X.cdata),Y=R[R.length-1],X[y].match(/^\s*$/)&&!k?(W=X[y],delete X[y]):(B.options.trim&&(X[y]=X[y].trim()),B.options.normalize&&(X[y]=X[y].replace(/\s{2,}/g," ").trim()),X[y]=B.options.valueProcessors?c(B.options.valueProcessors,X[y],re):X[y],(0,p.default)(X).length===1&&y in X&&!B.EXPLICIT_CHARKEY&&(X=X[y])),f(X)&&(X=B.options.emptyTag!==""?B.options.emptyTag:W),B.options.validator!=null&&(F="/"+function(){var U,M,z;for(z=[],U=0,M=R.length;U<M;U++)H=R[U],z.push(H["#name"]);return z}().concat(re).join("/"),function(){var U;try{X=B.options.validator(F,Y&&Y[re],X)}catch(M){return U=M,B.emit("error",U)}}()),B.options.explicitChildren&&!B.options.mergeAttrs&&(X===void 0?"undefined":(0,e.default)(X))==="object")if(B.options.preserveChildrenOrder){if(Y){Y[B.options.childkey]=Y[B.options.childkey]||[],ie={};for(K in X)v.call(X,K)&&(ie[K]=X[K]);Y[B.options.childkey].push(ie),delete X["#name"],(0,p.default)(X).length===1&&y in X&&!B.EXPLICIT_CHARKEY&&(X=X[y])}}else H={},B.options.attrkey in X&&(H[B.options.attrkey]=X[B.options.attrkey],delete X[B.options.attrkey]),!B.options.charsAsChildren&&B.options.charkey in X&&(H[B.options.charkey]=X[B.options.charkey],delete X[B.options.charkey]),(0,o.default)(X).length>0&&(H[B.options.childkey]=X),X=H;return R.length>0?B.assignOrPush(Y,re,X):(B.options.explicitRoot&&(ee=X,X={},X[re]=ee),B.resultObject=X,B.saxParser.ended=!0,B.emit("end",B.resultObject))}}(this),I=function(B){return function(k){var W,K;if(K=R[R.length-1])return K[y]+=k,B.options.explicitChildren&&B.options.preserveChildrenOrder&&B.options.charsAsChildren&&(B.options.includeWhiteChars||k.replace(/\\n/g,"").trim()!=="")&&(K[B.options.childkey]=K[B.options.childkey]||[],W={"#name":"__text__"},W[y]=k,B.options.normalize&&(W[y]=W[y].replace(/\s{2,}/g," ").trim()),K[B.options.childkey].push(W)),K}}(this),this.saxParser.ontext=I,this.saxParser.oncdata=function(B){return function(k){var W;if(W=I(k))return W.cdata=!0}}()},C.prototype.parseString=function(D,y){var I;y!=null&&typeof y=="function"&&(this.on("end",function(R){return this.reset(),y(null,R)}),this.on("error",function(R){return this.reset(),y(R)}));try{return D=D.toString(),D.trim()===""?(this.emit("end",null),!0):(D=a.stripBOM(D),this.options.async?(this.remaining=D,h(this.processAsync),this.saxParser):this.saxParser.write(D).close())}catch(R){if(I=R,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",I),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw I}},C}(d.EventEmitter),S.parseString=function(_,C,D){var y,I,R;return D!=null?(typeof D=="function"&&(y=D),(C===void 0?"undefined":(0,e.default)(C))==="object"&&(I=C)):(typeof C=="function"&&(y=C),I={}),R=new S.Parser(I),R.parseString(_,y)}}).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(t,i,S){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),S.normalize=function(g){return g.toLowerCase()},S.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},S.stripPrefix=function(g){return g.replace(m,"")},S.parseNumbers=function(g){return isNaN(g)||(g=g%1==0?parseInt(g,10):parseFloat(g)),g},S.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],213:[function(t,i,S){"use strict";(function(){var m,g,o,l,p=function(a,r){function d(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return d.prototype=r.prototype,a.prototype=new d,a.__super__=r.prototype,a},u={}.hasOwnProperty;g=t("./defaults"),m=t("./builder"),o=t("./parser"),l=t("./processors"),S.defaults=g.defaults,S.processors=l,S.ValidationError=function(e){function a(r){this.message=r}return p(a,e),a}(Error),S.Builder=m.Builder,S.Parser=o.Parser,S.parseString=o.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(t,i,S){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var g=t("babel-runtime/core-js/object/get-prototype-of"),o=m(g),l=t("babel-runtime/helpers/typeof"),p=m(l),u=t("babel-runtime/core-js/object/assign"),e=m(u);(function(){var a,r,d,f,c,A,w=[].slice,h={}.hasOwnProperty;a=function(){var x,v,_,C,D,y;if(y=arguments[0],D=2<=arguments.length?w.call(arguments,1):[],f(e.default))e.default.apply(null,arguments);else for(x=0,_=D.length;x<_;x++)if((C=D[x])!=null)for(v in C)h.call(C,v)&&(y[v]=C[v]);return y},f=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},c=function(x){var v;return!!x&&((v=x===void 0?"undefined":(0,p.default)(x))==="function"||v==="object")},r=function(x){return f(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},d=function(x){var v;if(r(x))return!x.length;for(v in x)if(h.call(x,v))return!1;return!0},A=function(x){var v,_;return c(x)&&(_=(0,o.default)(x))&&(v=_.constructor)&&typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)},i.exports.assign=a,i.exports.isFunction=f,i.exports.isObject=c,i.exports.isArray=r,i.exports.isEmpty=d,i.exports.isPlainObject=A}).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(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){i.exports=function(){function o(l,p,u){if(this.options=l.options,this.stringify=l.stringify,p==null)throw new Error("Missing attribute name of element "+l.name);if(u==null)throw new Error("Missing attribute value for attribute "+p+" of element "+l.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(u)}return o.prototype.clone=function(){return(0,g.default)(this)},o.prototype.toString=function(l){return this.options.writer.set(l).attribute(this)},o}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a,r,d,f){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");if(a==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!d)throw new Error("Missing DTD attribute default");if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(f&&!d.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(a),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=d}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],219:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(a)}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],220:[function(t,i,S){"use strict";(function(){var m,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)l.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},l={}.hasOwnProperty;g=t("./Utility").isObject,m=t("./XMLNode"),i.exports=function(p){function u(e,a,r,d){if(u.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(d==null)throw new Error("Missing entity value");if(this.pe=!!a,this.name=this.stringify.eleName(r),g(d)){if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity");if(d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(d)}return o(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},u}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing notation name");if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],222:[function(t,i,S){"use strict";(function(){var m,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)l.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},l={}.hasOwnProperty;g=t("./Utility").isObject,m=t("./XMLNode"),i.exports=function(p){function u(e,a,r,d){var f;u.__super__.constructor.call(this,e),g(a)&&(f=a,a=f.version,r=f.encoding,d=f.standalone),a||(a="1.0"),this.version=this.stringify.xmlVersion(a),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return o(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},u}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e=function(d,f){function c(){this.constructor=d}for(var A in f)a.call(f,A)&&(d[A]=f[A]);return c.prototype=f.prototype,d.prototype=new c,d.__super__=f.prototype,d},a={}.hasOwnProperty;u=t("./Utility").isObject,p=t("./XMLNode"),m=t("./XMLDTDAttList"),o=t("./XMLDTDEntity"),g=t("./XMLDTDElement"),l=t("./XMLDTDNotation"),i.exports=function(r){function d(f,c,A){var w,h;d.__super__.constructor.call(this,f),this.documentObject=f,u(c)&&(w=c,c=w.pubID,A=w.sysID),A==null&&(h=[c,A],A=h[0],c=h[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),A!=null&&(this.sysID=this.stringify.dtdSysID(A))}return e(d,r),d.prototype.element=function(f,c){var A;return A=new g(this,f,c),this.children.push(A),this},d.prototype.attList=function(f,c,A,w,h){var T;return T=new m(this,f,c,A,w,h),this.children.push(T),this},d.prototype.entity=function(f,c){var A;return A=new o(this,!1,f,c),this.children.push(A),this},d.prototype.pEntity=function(f,c){var A;return A=new o(this,!0,f,c),this.children.push(A),this},d.prototype.notation=function(f,c){var A;return A=new l(this,f,c),this.children.push(A),this},d.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},d.prototype.ele=function(f,c){return this.element(f,c)},d.prototype.att=function(f,c,A,w,h){return this.attList(f,c,A,w,h)},d.prototype.ent=function(f,c){return this.entity(f,c)},d.prototype.pent=function(f,c){return this.pEntity(f,c)},d.prototype.not=function(f,c){return this.notation(f,c)},d.prototype.up=function(){return this.root()||this.documentObject},d}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(t,i,S){"use strict";(function(){var m,g,o,l,p=function(a,r){function d(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return d.prototype=r.prototype,a.prototype=new d,a.__super__=r.prototype,a},u={}.hasOwnProperty;l=t("./Utility").isPlainObject,m=t("./XMLNode"),o=t("./XMLStringifier"),g=t("./XMLStringWriter"),i.exports=function(e){function a(r){a.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new g),this.options=r,this.stringify=new o(r),this.isDocument=!0}return p(a,e),a.prototype.end=function(r){var d;return r?l(r)&&(d=r,r=this.options.writer.set(d)):r=this.options.writer,r.document(this)},a.prototype.toString=function(r){return this.options.writer.set(r).document(this)},a}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w,h,T,x,v,_,C={}.hasOwnProperty;_=t("./Utility"),x=_.isObject,T=_.isFunction,v=_.isPlainObject,d=t("./XMLElement"),g=t("./XMLCData"),o=t("./XMLComment"),c=t("./XMLRaw"),h=t("./XMLText"),f=t("./XMLProcessingInstruction"),a=t("./XMLDeclaration"),r=t("./XMLDocType"),l=t("./XMLDTDAttList"),u=t("./XMLDTDEntity"),p=t("./XMLDTDElement"),e=t("./XMLDTDNotation"),m=t("./XMLAttribute"),w=t("./XMLStringifier"),A=t("./XMLStringWriter"),i.exports=function(){function D(y,I,R){var B;y||(y={}),y.writer?v(y.writer)&&(B=y.writer,y.writer=new A(B)):y.writer=new A(y),this.options=y,this.writer=y.writer,this.stringify=new w(y),this.onDataCallback=I||function(){},this.onEndCallback=R||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return D.prototype.node=function(y,I,R){var B;if(y==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(),y=y.valueOf(),I==null&&(I={}),I=I.valueOf(),x(I)||(B=[I,R],R=B[0],I=B[1]),this.currentNode=new d(this,y,I),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,R!=null&&this.text(R),this},D.prototype.element=function(y,I,R){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(y,I,R)},D.prototype.attribute=function(y,I){var R,B;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(y!=null&&(y=y.valueOf()),x(y))for(R in y)C.call(y,R)&&(B=y[R],this.attribute(R,B));else T(I)&&(I=I.apply()),this.options.skipNullAttributes&&I==null||(this.currentNode.attributes[y]=new m(this,y,I));return this},D.prototype.text=function(y){var I;return this.openCurrent(),I=new h(this,y),this.onData(this.writer.text(I,this.currentLevel+1)),this},D.prototype.cdata=function(y){var I;return this.openCurrent(),I=new g(this,y),this.onData(this.writer.cdata(I,this.currentLevel+1)),this},D.prototype.comment=function(y){var I;return this.openCurrent(),I=new o(this,y),this.onData(this.writer.comment(I,this.currentLevel+1)),this},D.prototype.raw=function(y){var I;return this.openCurrent(),I=new c(this,y),this.onData(this.writer.raw(I,this.currentLevel+1)),this},D.prototype.instruction=function(y,I){var R,B,k,W,K;if(this.openCurrent(),y!=null&&(y=y.valueOf()),I!=null&&(I=I.valueOf()),Array.isArray(y))for(R=0,W=y.length;R<W;R++)B=y[R],this.instruction(B);else if(x(y))for(B in y)C.call(y,B)&&(k=y[B],this.instruction(B,k));else T(I)&&(I=I.apply()),K=new f(this,y,I),this.onData(this.writer.processingInstruction(K,this.currentLevel+1));return this},D.prototype.declaration=function(y,I,R){var B;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return B=new a(this,y,I,R),this.onData(this.writer.declaration(B,this.currentLevel+1)),this},D.prototype.doctype=function(y,I,R){if(this.openCurrent(),y==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,I,R),this.currentNode.rootNodeName=y,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},D.prototype.dtdElement=function(y,I){var R;return this.openCurrent(),R=new p(this,y,I),this.onData(this.writer.dtdElement(R,this.currentLevel+1)),this},D.prototype.attList=function(y,I,R,B,k){var W;return this.openCurrent(),W=new l(this,y,I,R,B,k),this.onData(this.writer.dtdAttList(W,this.currentLevel+1)),this},D.prototype.entity=function(y,I){var R;return this.openCurrent(),R=new u(this,!1,y,I),this.onData(this.writer.dtdEntity(R,this.currentLevel+1)),this},D.prototype.pEntity=function(y,I){var R;return this.openCurrent(),R=new u(this,!0,y,I),this.onData(this.writer.dtdEntity(R,this.currentLevel+1)),this},D.prototype.notation=function(y,I){var R;return this.openCurrent(),R=new e(this,y,I),this.onData(this.writer.dtdNotation(R,this.currentLevel+1)),this},D.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},D.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},D.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},D.prototype.openNode=function(y){if(!y.isOpen)return!this.root&&this.currentLevel===0&&y instanceof d&&(this.root=y),this.onData(this.writer.openNode(y,this.currentLevel)),y.isOpen=!0},D.prototype.closeNode=function(y){if(!y.isClosed)return this.onData(this.writer.closeNode(y,this.currentLevel)),y.isClosed=!0},D.prototype.onData=function(y){return this.documentStarted=!0,this.onDataCallback(y)},D.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},D.prototype.ele=function(){return this.element.apply(this,arguments)},D.prototype.nod=function(y,I,R){return this.node(y,I,R)},D.prototype.txt=function(y){return this.text(y)},D.prototype.dat=function(y){return this.cdata(y)},D.prototype.com=function(y){return this.comment(y)},D.prototype.ins=function(y,I){return this.instruction(y,I)},D.prototype.dec=function(y,I,R){return this.declaration(y,I,R)},D.prototype.dtd=function(y,I,R){return this.doctype(y,I,R)},D.prototype.e=function(y,I,R){return this.element(y,I,R)},D.prototype.n=function(y,I,R){return this.node(y,I,R)},D.prototype.t=function(y){return this.text(y)},D.prototype.d=function(y){return this.cdata(y)},D.prototype.c=function(y){return this.comment(y)},D.prototype.r=function(y){return this.raw(y)},D.prototype.i=function(y,I){return this.instruction(y,I)},D.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.ent=function(y,I){return this.entity(y,I)},D.prototype.pent=function(y,I){return this.pEntity(y,I)},D.prototype.not=function(y,I){return this.notation(y,I)},D}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l,p,u,e,a=function(f,c){function A(){this.constructor=f}for(var w in c)r.call(c,w)&&(f[w]=c[w]);return A.prototype=c.prototype,f.prototype=new A,f.__super__=c.prototype,f},r={}.hasOwnProperty;e=t("./Utility"),u=e.isObject,p=e.isFunction,l=t("./XMLNode"),o=t("./XMLAttribute"),i.exports=function(d){function f(c,A,w){if(f.__super__.constructor.call(this,c),A==null)throw new Error("Missing element name");this.name=this.stringify.eleName(A),this.attributes={},w!=null&&this.attribute(w),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return a(f,d),f.prototype.clone=function(){var c,A,w,h;w=(0,g.default)(this),w.isRoot&&(w.documentObject=null),w.attributes={},h=this.attributes;for(A in h)r.call(h,A)&&(c=h[A],w.attributes[A]=c.clone());return w.children=[],this.children.forEach(function(T){var x;return x=T.clone(),x.parent=w,w.children.push(x)}),w},f.prototype.attribute=function(c,A){var w,h;if(c!=null&&(c=c.valueOf()),u(c))for(w in c)r.call(c,w)&&(h=c[w],this.attribute(w,h));else p(A)&&(A=A.apply()),this.options.skipNullAttributes&&A==null||(this.attributes[c]=new o(this,c,A));return this},f.prototype.removeAttribute=function(c){var A,w,h;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(w=0,h=c.length;w<h;w++)A=c[w],delete this.attributes[A];else delete this.attributes[c];return this},f.prototype.toString=function(c){return this.options.writer.set(c).element(this)},f.prototype.att=function(c,A){return this.attribute(c,A)},f.prototype.a=function(c,A){return this.attribute(c,A)},f}(l)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A={}.hasOwnProperty;c=t("./Utility"),f=c.isObject,d=c.isFunction,r=c.isEmpty,p=null,m=null,g=null,o=null,l=null,e=null,a=null,u=null,i.exports=function(){function w(h){this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=t("./XMLElement"),m=t("./XMLCData"),g=t("./XMLComment"),o=t("./XMLDeclaration"),l=t("./XMLDocType"),e=t("./XMLRaw"),a=t("./XMLText"),u=t("./XMLProcessingInstruction"))}return w.prototype.element=function(h,T,x){var v,_,C,D,y,I,R,B,k,W;if(I=null,T==null&&(T={}),T=T.valueOf(),f(T)||(k=[T,x],x=k[0],T=k[1]),h!=null&&(h=h.valueOf()),Array.isArray(h))for(C=0,R=h.length;C<R;C++)_=h[C],I=this.element(_);else if(d(h))I=this.element(h.apply());else if(f(h)){for(y in h)if(A.call(h,y))if(W=h[y],d(W)&&(W=W.apply()),f(W)&&r(W)&&(W=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&y.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(y.substr(this.stringify.convertAttKey.length),W);else if(!this.options.separateArrayItems&&Array.isArray(W))for(D=0,B=W.length;D<B;D++)_=W[D],v={},v[y]=_,I=this.element(v);else f(W)?(I=this.element(y),I.element(W)):I=this.element(y,W)}else I=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&h.indexOf(this.stringify.convertTextKey)===0?this.text(x):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&h.indexOf(this.stringify.convertCDataKey)===0?this.cdata(x):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&h.indexOf(this.stringify.convertCommentKey)===0?this.comment(x):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&h.indexOf(this.stringify.convertRawKey)===0?this.raw(x):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&h.indexOf(this.stringify.convertPIKey)===0?this.instruction(h.substr(this.stringify.convertPIKey.length),x):this.node(h,T,x);if(I==null)throw new Error("Could not create any elements with: "+h);return I},w.prototype.insertBefore=function(h,T,x){var v,_,C;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_),v=this.parent.element(h,T,x),Array.prototype.push.apply(this.parent.children,C),v},w.prototype.insertAfter=function(h,T,x){var v,_,C;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_+1),v=this.parent.element(h,T,x),Array.prototype.push.apply(this.parent.children,C),v},w.prototype.remove=function(){var h;if(this.isRoot)throw new Error("Cannot remove the root element");return h=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[h,h-h+1].concat([])),this.parent},w.prototype.node=function(h,T,x){var v,_;return h!=null&&(h=h.valueOf()),T||(T={}),T=T.valueOf(),f(T)||(_=[T,x],x=_[0],T=_[1]),v=new p(this,h,T),x!=null&&v.text(x),this.children.push(v),v},w.prototype.text=function(h){var T;return T=new a(this,h),this.children.push(T),this},w.prototype.cdata=function(h){var T;return T=new m(this,h),this.children.push(T),this},w.prototype.comment=function(h){var T;return T=new g(this,h),this.children.push(T),this},w.prototype.commentBefore=function(h){var T,x;return T=this.parent.children.indexOf(this),x=this.parent.children.splice(T),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.commentAfter=function(h){var T,x;return T=this.parent.children.indexOf(this),x=this.parent.children.splice(T+1),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,x),this},w.prototype.raw=function(h){var T;return T=new e(this,h),this.children.push(T),this},w.prototype.instruction=function(h,T){var x,v,_,C,D;if(h!=null&&(h=h.valueOf()),T!=null&&(T=T.valueOf()),Array.isArray(h))for(C=0,D=h.length;C<D;C++)x=h[C],this.instruction(x);else if(f(h))for(x in h)A.call(h,x)&&(v=h[x],this.instruction(x,v));else d(T)&&(T=T.apply()),_=new u(this,h,T),this.children.push(_);return this},w.prototype.instructionBefore=function(h,T){var x,v;return x=this.parent.children.indexOf(this),v=this.parent.children.splice(x),this.parent.instruction(h,T),Array.prototype.push.apply(this.parent.children,v),this},w.prototype.instructionAfter=function(h,T){var x,v;return x=this.parent.children.indexOf(this),v=this.parent.children.splice(x+1),this.parent.instruction(h,T),Array.prototype.push.apply(this.parent.children,v),this},w.prototype.declaration=function(h,T,x){var v,_;return v=this.document(),_=new o(v,h,T,x),v.children[0]instanceof o?v.children[0]=_:v.children.unshift(_),v.root()||v},w.prototype.doctype=function(h,T){var x,v,_,C,D,y,I,R,B,k;for(v=this.document(),_=new l(v,h,T),B=v.children,C=D=0,I=B.length;D<I;C=++D)if((x=B[C])instanceof l)return v.children[C]=_,_;for(k=v.children,C=y=0,R=k.length;y<R;C=++y)if(x=k[C],x.isRoot)return v.children.splice(C,0,_),_;return v.children.push(_),_},w.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},w.prototype.root=function(){var h;for(h=this;h;){if(h.isDocument)return h.rootObject;if(h.isRoot)return h;h=h.parent}},w.prototype.document=function(){var h;for(h=this;h;){if(h.isDocument)return h;h=h.parent}},w.prototype.end=function(h){return this.document().end(h)},w.prototype.prev=function(){var h;if((h=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[h-1]},w.prototype.next=function(){var h;if((h=this.parent.children.indexOf(this))===-1||h===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[h+1]},w.prototype.importDocument=function(h){var T;return T=h.root().clone(),T.parent=this,T.isRoot=!1,this.children.push(T),this},w.prototype.ele=function(h,T,x){return this.element(h,T,x)},w.prototype.nod=function(h,T,x){return this.node(h,T,x)},w.prototype.txt=function(h){return this.text(h)},w.prototype.dat=function(h){return this.cdata(h)},w.prototype.com=function(h){return this.comment(h)},w.prototype.ins=function(h,T){return this.instruction(h,T)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(h,T,x){return this.declaration(h,T,x)},w.prototype.dtd=function(h,T){return this.doctype(h,T)},w.prototype.e=function(h,T,x){return this.element(h,T,x)},w.prototype.n=function(h,T,x){return this.node(h,T,x)},w.prototype.t=function(h){return this.text(h)},w.prototype.d=function(h){return this.cdata(h)},w.prototype.c=function(h){return this.comment(h)},w.prototype.r=function(h){return this.raw(h)},w.prototype.i=function(h,T){return this.instruction(h,T)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(h){return this.importDocument(h)},w}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r,d){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),d&&(this.value=this.stringify.insValue(d))}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w=function(x,v){function _(){this.constructor=x}for(var C in v)h.call(v,C)&&(x[C]=v[C]);return _.prototype=v.prototype,x.prototype=new _,x.__super__=v.prototype,x},h={}.hasOwnProperty;e=t("./XMLDeclaration"),a=t("./XMLDocType"),m=t("./XMLCData"),g=t("./XMLComment"),r=t("./XMLElement"),f=t("./XMLRaw"),c=t("./XMLText"),d=t("./XMLProcessingInstruction"),o=t("./XMLDTDAttList"),l=t("./XMLDTDElement"),p=t("./XMLDTDEntity"),u=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),i.exports=function(T){function x(v,_){x.__super__.constructor.call(this,_),this.stream=v}return w(x,T),x.prototype.document=function(v){var _,C,D,y,I,R,B,k;for(R=v.children,C=0,y=R.length;C<y;C++)_=R[C],_.isLastRootNode=!1;for(v.children[v.children.length-1].isLastRootNode=!0,B=v.children,k=[],D=0,I=B.length;D<I;D++)switch(_=B[D],!1){case!(_ instanceof e):k.push(this.declaration(_));break;case!(_ instanceof a):k.push(this.docType(_));break;case!(_ instanceof g):k.push(this.comment(_));break;case!(_ instanceof d):k.push(this.processingInstruction(_));break;default:k.push(this.element(_))}return k},x.prototype.attribute=function(v){return this.stream.write(" "+v.name+'="'+v.value+'"')},x.prototype.cdata=function(v,_){return this.stream.write(this.space(_)+"<![CDATA["+v.text+"]]>"+this.endline(v))},x.prototype.comment=function(v,_){return this.stream.write(this.space(_)+"<!-- "+v.text+" -->"+this.endline(v))},x.prototype.declaration=function(v,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+v.version+'"'),v.encoding!=null&&this.stream.write(' encoding="'+v.encoding+'"'),v.standalone!=null&&this.stream.write(' standalone="'+v.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(v))},x.prototype.docType=function(v,_){var C,D,y,I;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("<!DOCTYPE "+v.root().name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(v)),I=v.children,D=0,y=I.length;D<y;D++)switch(C=I[D],!1){case!(C instanceof o):this.dtdAttList(C,_+1);break;case!(C instanceof l):this.dtdElement(C,_+1);break;case!(C instanceof p):this.dtdEntity(C,_+1);break;case!(C instanceof u):this.dtdNotation(C,_+1);break;case!(C instanceof m):this.cdata(C,_+1);break;case!(C instanceof g):this.comment(C,_+1);break;case!(C instanceof d):this.processingInstruction(C,_+1);break;default:throw new Error("Unknown DTD node type: "+C.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(v))},x.prototype.element=function(v,_){var C,D,y,I,R,B,k,W;_||(_=0),W=this.space(_),this.stream.write(W+"<"+v.name),B=v.attributes;for(R in B)h.call(B,R)&&(C=B[R],this.attribute(C));if(v.children.length===0||v.children.every(function(K){return K.value===""}))this.allowEmpty?this.stream.write("></"+v.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)this.stream.write(">"),this.stream.write(v.children[0].value),this.stream.write("</"+v.name+">");else{for(this.stream.write(">"+this.newline),k=v.children,y=0,I=k.length;y<I;y++)switch(D=k[y],!1){case!(D instanceof m):this.cdata(D,_+1);break;case!(D instanceof g):this.comment(D,_+1);break;case!(D instanceof r):this.element(D,_+1);break;case!(D instanceof f):this.raw(D,_+1);break;case!(D instanceof c):this.text(D,_+1);break;case!(D instanceof d):this.processingInstruction(D,_+1);break;default:throw new Error("Unknown XML node type: "+D.constructor.name)}this.stream.write(W+"</"+v.name+">")}return this.stream.write(this.endline(v))},x.prototype.processingInstruction=function(v,_){return this.stream.write(this.space(_)+"<?"+v.target),v.value&&this.stream.write(" "+v.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(v))},x.prototype.raw=function(v,_){return this.stream.write(this.space(_)+v.value+this.endline(v))},x.prototype.text=function(v,_){return this.stream.write(this.space(_)+v.value+this.endline(v))},x.prototype.dtdAttList=function(v,_){return this.stream.write(this.space(_)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType),v.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+v.defaultValueType),v.defaultValue&&this.stream.write(' "'+v.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},x.prototype.dtdElement=function(v,_){return this.stream.write(this.space(_)+"<!ELEMENT "+v.name+" "+v.value),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},x.prototype.dtdEntity=function(v,_){return this.stream.write(this.space(_)+"<!ENTITY"),v.pe&&this.stream.write(" %"),this.stream.write(" "+v.name),v.value?this.stream.write(' "'+v.value+'"'):(v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.nData&&this.stream.write(" NDATA "+v.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},x.prototype.dtdNotation=function(v,_){return this.stream.write(this.space(_)+"<!NOTATION "+v.name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.pubID?this.stream.write(' PUBLIC "'+v.pubID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},x.prototype.endline=function(v){return v.isLastRootNode?"":this.newline},x}(A)}).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(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w=function(x,v){function _(){this.constructor=x}for(var C in v)h.call(v,C)&&(x[C]=v[C]);return _.prototype=v.prototype,x.prototype=new _,x.__super__=v.prototype,x},h={}.hasOwnProperty;e=t("./XMLDeclaration"),a=t("./XMLDocType"),m=t("./XMLCData"),g=t("./XMLComment"),r=t("./XMLElement"),f=t("./XMLRaw"),c=t("./XMLText"),d=t("./XMLProcessingInstruction"),o=t("./XMLDTDAttList"),l=t("./XMLDTDElement"),p=t("./XMLDTDEntity"),u=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),i.exports=function(T){function x(v){x.__super__.constructor.call(this,v)}return w(x,T),x.prototype.document=function(v){var _,C,D,y,I;for(this.textispresent=!1,y="",I=v.children,C=0,D=I.length;C<D;C++)_=I[C],y+=function(){switch(!1){case!(_ instanceof e):return this.declaration(_);case!(_ instanceof a):return this.docType(_);case!(_ instanceof g):return this.comment(_);case!(_ instanceof d):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&y.slice(-this.newline.length)===this.newline&&(y=y.slice(0,-this.newline.length)),y},x.prototype.attribute=function(v){return" "+v.name+'="'+v.value+'"'},x.prototype.cdata=function(v,_){return this.space(_)+"<![CDATA["+v.text+"]]>"+this.newline},x.prototype.comment=function(v,_){return this.space(_)+"<!-- "+v.text+" -->"+this.newline},x.prototype.declaration=function(v,_){var C;return C=this.space(_),C+='<?xml version="'+v.version+'"',v.encoding!=null&&(C+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(C+=' standalone="'+v.standalone+'"'),C+=this.spacebeforeslash+"?>",C+=this.newline},x.prototype.docType=function(v,_){var C,D,y,I,R;if(_||(_=0),I=this.space(_),I+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?I+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(I+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(I+=" [",I+=this.newline,R=v.children,D=0,y=R.length;D<y;D++)C=R[D],I+=function(){switch(!1){case!(C instanceof o):return this.dtdAttList(C,_+1);case!(C instanceof l):return this.dtdElement(C,_+1);case!(C instanceof p):return this.dtdEntity(C,_+1);case!(C instanceof u):return this.dtdNotation(C,_+1);case!(C instanceof m):return this.cdata(C,_+1);case!(C instanceof g):return this.comment(C,_+1);case!(C instanceof d):return this.processingInstruction(C,_+1);default:throw new Error("Unknown DTD node type: "+C.constructor.name)}}.call(this);I+="]"}return I+=this.spacebeforeslash+">",I+=this.newline},x.prototype.element=function(v,_){var C,D,y,I,R,B,k,W,K,H,re,X,ie;_||(_=0),ie=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),X=this.space(_),W="",W+=X+"<"+v.name,K=v.attributes;for(k in K)h.call(K,k)&&(C=K[k],W+=this.attribute(C));if(v.children.length===0||v.children.every(function(ee){return ee.value===""}))this.allowEmpty?W+="></"+v.name+">"+this.newline:W+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)W+=">",W+=v.children[0].value,W+="</"+v.name+">"+this.newline;else{if(this.dontprettytextnodes){for(H=v.children,y=0,R=H.length;y<R;y++)if(D=H[y],D.value!=null){this.textispresent++,ie=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,X=this.space(_)),W+=">"+this.newline,re=v.children,I=0,B=re.length;I<B;I++)D=re[I],W+=function(){switch(!1){case!(D instanceof m):return this.cdata(D,_+1);case!(D instanceof g):return this.comment(D,_+1);case!(D instanceof r):return this.element(D,_+1);case!(D instanceof f):return this.raw(D,_+1);case!(D instanceof c):return this.text(D,_+1);case!(D instanceof d):return this.processingInstruction(D,_+1);default:throw new Error("Unknown XML node type: "+D.constructor.name)}}.call(this);ie&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),W+=X+"</"+v.name+">"+this.newline}return W},x.prototype.processingInstruction=function(v,_){var C;return C=this.space(_)+"<?"+v.target,v.value&&(C+=" "+v.value),C+=this.spacebeforeslash+"?>"+this.newline},x.prototype.raw=function(v,_){return this.space(_)+v.value+this.newline},x.prototype.text=function(v,_){return this.space(_)+v.value+this.newline},x.prototype.dtdAttList=function(v,_){var C;return C=this.space(_)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(C+=" "+v.defaultValueType),v.defaultValue&&(C+=' "'+v.defaultValue+'"'),C+=this.spacebeforeslash+">"+this.newline},x.prototype.dtdElement=function(v,_){return this.space(_)+"<!ELEMENT "+v.name+" "+v.value+this.spacebeforeslash+">"+this.newline},x.prototype.dtdEntity=function(v,_){var C;return C=this.space(_)+"<!ENTITY",v.pe&&(C+=" %"),C+=" "+v.name,v.value?C+=' "'+v.value+'"':(v.pubID&&v.sysID?C+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(C+=' SYSTEM "'+v.sysID+'"'),v.nData&&(C+=" NDATA "+v.nData)),C+=this.spacebeforeslash+">"+this.newline},x.prototype.dtdNotation=function(v,_){var C;return C=this.space(_)+"<!NOTATION "+v.name,v.pubID&&v.sysID?C+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?C+=' PUBLIC "'+v.pubID+'"':v.sysID&&(C+=' SYSTEM "'+v.sysID+'"'),C+=this.spacebeforeslash+">"+this.newline},x.prototype.openNode=function(v,_){var C,D,y,I;if(_||(_=0),v instanceof r){y=this.space(_)+"<"+v.name,I=v.attributes;for(D in I)h.call(I,D)&&(C=I[D],y+=this.attribute(C));return y+=(v.children?">":"/>")+this.newline}return y=this.space(_)+"<!DOCTYPE "+v.rootNodeName,v.pubID&&v.sysID?y+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(y+=' SYSTEM "'+v.sysID+'"'),y+=(v.children?" [":">")+this.newline},x.prototype.closeNode=function(v,_){switch(_||(_=0),!1){case!(v instanceof r):return this.space(_)+"</"+v.name+">"+this.newline;case!(v instanceof a):return this.space(_)+"]>"+this.newline}},x}(A)}).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(t,i,S){"use strict";(function(){var m=function(l,p){return function(){return l.apply(p,arguments)}},g={}.hasOwnProperty;i.exports=function(){function o(l){this.assertLegalChar=m(this.assertLegalChar,this);var p,u,e;l||(l={}),this.noDoubleEncoding=l.noDoubleEncoding,u=l.stringify||{};for(p in u)g.call(u,p)&&(e=u[p],this[p]=e)}return o.prototype.eleName=function(l){return l=""+l||"",this.assertLegalChar(l)},o.prototype.eleText=function(l){return l=""+l||"",this.assertLegalChar(this.elEscape(l))},o.prototype.cdata=function(l){return l=""+l||"",l=l.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(l)},o.prototype.comment=function(l){if(l=""+l||"",l.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+l);return this.assertLegalChar(l)},o.prototype.raw=function(l){return""+l||""},o.prototype.attName=function(l){return l=""+l||""},o.prototype.attValue=function(l){return l=""+l||"",this.attEscape(l)},o.prototype.insTarget=function(l){return""+l||""},o.prototype.insValue=function(l){if(l=""+l||"",l.match(/\?>/))throw new Error("Invalid processing instruction value: "+l);return l},o.prototype.xmlVersion=function(l){if(l=""+l||"",!l.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+l);return l},o.prototype.xmlEncoding=function(l){if(l=""+l||"",!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+l);return l},o.prototype.xmlStandalone=function(l){return l?"yes":"no"},o.prototype.dtdPubID=function(l){return""+l||""},o.prototype.dtdSysID=function(l){return""+l||""},o.prototype.dtdElementValue=function(l){return""+l||""},o.prototype.dtdAttType=function(l){return""+l||""},o.prototype.dtdAttDefault=function(l){return l!=null?""+l||"":l},o.prototype.dtdEntityValue=function(l){return""+l||""},o.prototype.dtdNData=function(l){return""+l||""},o.prototype.convertAttKey="@",o.prototype.convertPIKey="?",o.prototype.convertTextKey="#text",o.prototype.convertCDataKey="#cdata",o.prototype.convertCommentKey="#comment",o.prototype.convertRawKey="#raw",o.prototype.assertLegalChar=function(l){var p;if(p=l.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+l+" at index "+p.index);return l},o.prototype.elEscape=function(l){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},o.prototype.attEscape=function(l){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},o}()}).call(void 0)},{}],233:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).text(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(t,i,S){"use strict";(function(){var m={}.hasOwnProperty;i.exports=function(){function g(o){var l,p,u,e,a,r,d,f,c;o||(o={}),this.pretty=o.pretty||!1,this.allowEmpty=(p=o.allowEmpty)!=null&&p,this.pretty?(this.indent=(u=o.indent)!=null?u:" ",this.newline=(e=o.newline)!=null?e:`
|
|
|
`,this.offset=(a=o.offset)!=null?a:0,this.dontprettytextnodes=(r=o.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(d=o.spacebeforeslash)!=null?d:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=o.writer||{};for(l in f)m.call(f,l)&&(c=f[l],this[l]=c)}return g.prototype.set=function(o){var l,p,u;o||(o={}),"pretty"in o&&(this.pretty=o.pretty),"allowEmpty"in o&&(this.allowEmpty=o.allowEmpty),this.pretty?(this.indent="indent"in o?o.indent:" ",this.newline="newline"in o?o.newline:`
|
|
|
`,this.offset="offset"in o?o.offset:0,this.dontprettytextnodes="dontprettytextnodes"in o?o.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in o?o.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=o.writer||{};for(l in p)m.call(p,l)&&(u=p[l],this[l]=u);return this},g.prototype.space=function(o){var l;return this.pretty?(l=(o||0)+this.offset+1,l>0?new Array(l).join(this.indent):""):""},g}()}).call(void 0)},{}],235:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e;e=t("./Utility"),p=e.assign,u=e.isFunction,m=t("./XMLDocument"),g=t("./XMLDocumentCB"),l=t("./XMLStringWriter"),o=t("./XMLStreamWriter"),i.exports.create=function(a,r,d,f){var c,A;if(a==null)throw new Error("Root element needs a name");return f=p({},r,d,f),c=new m(f),A=c.element(a),f.headless||(c.declaration(f),f.pubID==null&&f.sysID==null||c.doctype(f)),A},i.exports.begin=function(a,r,d){var f;return u(a)&&(f=[a,r],r=f[0],d=f[1],a={}),r?new g(a,r,d):new m(a)},i.exports.stringWriter=function(a){return new l(a)},i.exports.streamWriter=function(a,r){return new o(a,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(t,i,S){function m(){for(var o={},l=0;l<arguments.length;l++){var p=arguments[l];for(var u in p)g.call(p,u)&&(o[u]=p[u])}return o}i.exports=m;var g=Object.prototype.hasOwnProperty},{}],237:[function(t,i,S){"use strict";function m(f,c,A){l.isBuffer(c)||(c=new l(c)),l.isBuffer(A)||(A=new l(A)),c.length>r?c=f(c):c.length<r&&(c=l.concat([c,d],r));for(var w=new l(r),h=new l(r),T=0;T<r;T++)w[T]=54^c[T],h[T]=92^c[T];var x=f(l.concat([w,A]));return f(l.concat([h,x]))}function g(f,c){f=f||"sha1";var A=a[f],w=[],h=0;return A||o("algorithm:",f,"is not yet supported"),{update:function(x){return l.isBuffer(x)||(x=new l(x)),w.push(x),h+=x.length,this},digest:function(x){var v=l.concat(w),_=c?m(A,c,v):A(v);return w=null,x?_.toString(x):_}}}function o(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var l=t("buffer").Buffer,p=t("./sha"),u=t("./sha256"),e=t("./md5"),a={sha1:p,sha256:u,md5:e},r=64,d=new l(r);d.fill(0),S.createHash=function(f){return g(f)},S.createHmac=function(f,c){return g(f,c)},function(f,c){for(var A in f)c(f[A],A)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(f){S[f]=function(){o("sorry,",f,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(t,i,S){"use strict";function m(a,r){if(a.length%p!=0){var d=a.length+(p-a.length%p);a=l.concat([a,u],d)}for(var f=[],c=r?a.readInt32BE:a.readInt32LE,A=0;A<a.length;A+=p)f.push(c.call(a,A));return f}function g(a,r,d){for(var f=new l(r),c=d?f.writeInt32BE:f.writeInt32LE,A=0;A<a.length;A++)c.call(f,a[A],4*A,!0);return f}function o(a,r,d,f){return l.isBuffer(a)||(a=new l(a)),g(r(m(a,f),a.length*e),d,f)}var l=t("buffer").Buffer,p=4,u=new l(p);u.fill(0);var e=8;i.exports={hash:o}},{buffer:38}],239:[function(t,i,S){"use strict";function m(d,f){d[f>>5]|=128<<f%32,d[14+(f+64>>>9<<4)]=f;for(var c=1732584193,A=-271733879,w=-1732584194,h=271733878,T=0;T<d.length;T+=16){var x=c,v=A,_=w,C=h;c=o(c,A,w,h,d[T+0],7,-680876936),h=o(h,c,A,w,d[T+1],12,-389564586),w=o(w,h,c,A,d[T+2],17,606105819),A=o(A,w,h,c,d[T+3],22,-1044525330),c=o(c,A,w,h,d[T+4],7,-176418897),h=o(h,c,A,w,d[T+5],12,1200080426),w=o(w,h,c,A,d[T+6],17,-1473231341),A=o(A,w,h,c,d[T+7],22,-45705983),c=o(c,A,w,h,d[T+8],7,1770035416),h=o(h,c,A,w,d[T+9],12,-1958414417),w=o(w,h,c,A,d[T+10],17,-42063),A=o(A,w,h,c,d[T+11],22,-1990404162),c=o(c,A,w,h,d[T+12],7,1804603682),h=o(h,c,A,w,d[T+13],12,-40341101),w=o(w,h,c,A,d[T+14],17,-1502002290),A=o(A,w,h,c,d[T+15],22,1236535329),c=l(c,A,w,h,d[T+1],5,-165796510),h=l(h,c,A,w,d[T+6],9,-1069501632),w=l(w,h,c,A,d[T+11],14,643717713),A=l(A,w,h,c,d[T+0],20,-373897302),c=l(c,A,w,h,d[T+5],5,-701558691),h=l(h,c,A,w,d[T+10],9,38016083),w=l(w,h,c,A,d[T+15],14,-660478335),A=l(A,w,h,c,d[T+4],20,-405537848),c=l(c,A,w,h,d[T+9],5,568446438),h=l(h,c,A,w,d[T+14],9,-1019803690),w=l(w,h,c,A,d[T+3],14,-187363961),A=l(A,w,h,c,d[T+8],20,1163531501),c=l(c,A,w,h,d[T+13],5,-1444681467),h=l(h,c,A,w,d[T+2],9,-51403784),w=l(w,h,c,A,d[T+7],14,1735328473),A=l(A,w,h,c,d[T+12],20,-1926607734),c=p(c,A,w,h,d[T+5],4,-378558),h=p(h,c,A,w,d[T+8],11,-2022574463),w=p(w,h,c,A,d[T+11],16,1839030562),A=p(A,w,h,c,d[T+14],23,-35309556),c=p(c,A,w,h,d[T+1],4,-1530992060),h=p(h,c,A,w,d[T+4],11,1272893353),w=p(w,h,c,A,d[T+7],16,-155497632),A=p(A,w,h,c,d[T+10],23,-1094730640),c=p(c,A,w,h,d[T+13],4,681279174),h=p(h,c,A,w,d[T+0],11,-358537222),w=p(w,h,c,A,d[T+3],16,-722521979),A=p(A,w,h,c,d[T+6],23,76029189),c=p(c,A,w,h,d[T+9],4,-640364487),h=p(h,c,A,w,d[T+12],11,-421815835),w=p(w,h,c,A,d[T+15],16,530742520),A=p(A,w,h,c,d[T+2],23,-995338651),c=u(c,A,w,h,d[T+0],6,-198630844),h=u(h,c,A,w,d[T+7],10,1126891415),w=u(w,h,c,A,d[T+14],15,-1416354905),A=u(A,w,h,c,d[T+5],21,-57434055),c=u(c,A,w,h,d[T+12],6,1700485571),h=u(h,c,A,w,d[T+3],10,-1894986606),w=u(w,h,c,A,d[T+10],15,-1051523),A=u(A,w,h,c,d[T+1],21,-2054922799),c=u(c,A,w,h,d[T+8],6,1873313359),h=u(h,c,A,w,d[T+15],10,-30611744),w=u(w,h,c,A,d[T+6],15,-1560198380),A=u(A,w,h,c,d[T+13],21,1309151649),c=u(c,A,w,h,d[T+4],6,-145523070),h=u(h,c,A,w,d[T+11],10,-1120210379),w=u(w,h,c,A,d[T+2],15,718787259),A=u(A,w,h,c,d[T+9],21,-343485551),c=e(c,x),A=e(A,v),w=e(w,_),h=e(h,C)}return Array(c,A,w,h)}function g(d,f,c,A,w,h){return e(a(e(e(f,d),e(A,h)),w),c)}function o(d,f,c,A,w,h,T){return g(f&c|~f&A,d,f,w,h,T)}function l(d,f,c,A,w,h,T){return g(f&A|c&~A,d,f,w,h,T)}function p(d,f,c,A,w,h,T){return g(f^c^A,d,f,w,h,T)}function u(d,f,c,A,w,h,T){return g(c^(f|~A),d,f,w,h,T)}function e(d,f){var c=(65535&d)+(65535&f);return(d>>16)+(f>>16)+(c>>16)<<16|65535&c}function a(d,f){return d<<f|d>>>32-f}var r=t("./helpers");i.exports=function(d){return r.hash(d,m,16)}},{"./helpers":238}],240:[function(t,i,S){"use strict";function m(e,a){e[a>>5]|=128<<24-a%32,e[15+(a+64>>9<<4)]=a;for(var r=Array(80),d=1732584193,f=-271733879,c=-1732584194,A=271733878,w=-1009589776,h=0;h<e.length;h+=16){for(var T=d,x=f,v=c,_=A,C=w,D=0;D<80;D++){r[D]=D<16?e[h+D]:p(r[D-3]^r[D-8]^r[D-14]^r[D-16],1);var y=l(l(p(d,5),g(D,f,c,A)),l(l(w,r[D]),o(D)));w=A,A=c,c=p(f,30),f=d,d=y}d=l(d,T),f=l(f,x),c=l(c,v),A=l(A,_),w=l(w,C)}return Array(d,f,c,A,w)}function g(e,a,r,d){return e<20?a&r|~a&d:e<40?a^r^d:e<60?a&r|a&d|r&d:a^r^d}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function l(e,a){var r=(65535&e)+(65535&a);return(e>>16)+(a>>16)+(r>>16)<<16|65535&r}function p(e,a){return e<<a|e>>>32-a}var u=t("./helpers");i.exports=function(e){return u.hash(e,m,20,!0)}},{"./helpers":238}],241:[function(t,i,S){"use strict";var m=t("./helpers"),g=function(A,w){var h=(65535&A)+(65535&w);return(A>>16)+(w>>16)+(h>>16)<<16|65535&h},o=function(A,w){return A>>>w|A<<32-w},l=function(A,w){return A>>>w},p=function(A,w,h){return A&w^~A&h},u=function(A,w,h){return A&w^A&h^w&h},e=function(A){return o(A,2)^o(A,13)^o(A,22)},a=function(A){return o(A,6)^o(A,11)^o(A,25)},r=function(A){return o(A,7)^o(A,18)^l(A,3)},d=function(A){return o(A,17)^o(A,19)^l(A,10)},f=function(A,w){var h,T,x,v,_,C,D,y,I,R,B,k,W=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),K=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),H=new Array(64);A[w>>5]|=128<<24-w%32,A[15+(w+64>>9<<4)]=w;for(var I=0;I<A.length;I+=16){h=K[0],T=K[1],x=K[2],v=K[3],_=K[4],C=K[5],D=K[6],y=K[7];for(var R=0;R<64;R++)H[R]=R<16?A[R+I]:g(g(g(d(H[R-2]),H[R-7]),r(H[R-15])),H[R-16]),B=g(g(g(g(y,a(_)),p(_,C,D)),W[R]),H[R]),k=g(e(h),u(h,T,x)),y=D,D=C,C=_,_=g(v,B),v=x,x=T,T=h,h=g(B,k);K[0]=g(h,K[0]),K[1]=g(T,K[1]),K[2]=g(x,K[2]),K[3]=g(v,K[3]),K[4]=g(_,K[4]),K[5]=g(C,K[5]),K[6]=g(D,K[6]),K[7]=g(y,K[7])}return K};i.exports=function(c){return m.hash(c,f,32,!0)}},{"./helpers":238}],242:[function(t,i,S){(function(m){"use strict";function g(f){return f&&f.__esModule?f:{default:f}}var o=t("babel-runtime/core-js/object/create"),l=g(o),p=t("babel-runtime/helpers/classCallCheck"),u=g(p),e=t("babel-runtime/helpers/createClass"),a=g(e),r=t("babel-runtime/helpers/typeof"),d=g(r);!function(f){if((S===void 0?"undefined":(0,d.default)(S))==="object"&&i!==void 0)i.exports=f();else if(typeof fe=="function"&&fe.amd)fe([],f);else{var c;c=typeof window!="undefined"?window:m!==void 0?m:typeof self!="undefined"?self:this,c.mime=f()}}(function(){return function f(c,A,w){function h(v,_){if(!A[v]){if(!c[v]){var C=typeof t=="function"&&t;if(!_&&C)return C(v,!0);if(T)return T(v,!0);var D=new Error("Cannot find module '"+v+"'");throw D.code="MODULE_NOT_FOUND",D}var y=A[v]={exports:{}};c[v][0].call(y.exports,function(I){var R=c[v][1][I];return h(R||I)},y,y.exports,f,c,A,w)}return A[v].exports}for(var T=typeof t=="function"&&t,x=0;x<w.length;x++)h(w[x]);return h}({1:[function(f,c,A){var w=function(){function h(){(0,u.default)(this,h),this._types=(0,l.default)(null),this._extensions=(0,l.default)(null);for(var T=0;T<arguments.length;T++)this.define(arguments[T])}return(0,a.default)(h,[{key:"define",value:function(x,v){for(var _ in x){for(var C=x[_],D=0;D<C.length;D++){var y=C[D];if(!v&&y in this._types)throw new Error('Attempt to change mapping for "'+y+'" extension from "'+this._types[y]+'" to "'+_+'". Pass `force=true` to allow this, otherwise remove "'+y+'" from the list of extensions for "'+_+'".');this._types[y]=_}!v&&this._extensions[_]||(this._extensions[_]=C[0])}}},{key:"getType",value:function(x){x=String(x);var v=x.replace(/^.*[\/\\]/,"").toLowerCase(),_=v.replace(/^.*\./,"").toLowerCase(),C=v.length<x.length;return(_.length<v.length-1||!C)&&this._types[_]||null}},{key:"getExtension",value:function(x){return(x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1)&&this._extensions[x.toLowerCase()]||null}}]),h}();c.exports=w},{}],2:[function(f,c,A){var w=f("./Mime");c.exports=new w(f("./types/standard"),f("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(f,c,A){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(f,c,A){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 je!="undefined"?je: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(t,i,S){"use strict";S.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(g){return m}},S.escape=t("escape-html"),S.timestamp=function(m){if(m){var g=m;return typeof g=="string"&&(g=Number(g)),String(m).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(t,i,S){(function(m,g){"use strict";function o(D){return D&&D.__esModule?D:{default:D}}function l(D,y){return D===void 0?y:D}function p(D,y){return function(I,R,B){if(I)return y(I);D({data:R,status:B.statusCode,headers:B.headers,res:B})}}var u,e=t("babel-runtime/core-js/json/stringify"),a=o(e),r=t("babel-runtime/helpers/typeof"),d=o(r),f=t("util"),c=t("url"),A=t("http"),w=t("https"),h=t("debug")("urllib"),T=t("humanize-ms"),x=0,v=Math.pow(2,31)-10,_=/^https?:\/\//i;S.TIMEOUTS=[T("300s"),T("300s")];var C=["json","text"];S.request=function(D,y,I){return arguments.length===2&&typeof y=="function"&&(I=y,y=null),typeof I=="function"?S.requestWithCallback(D,y,I):(u||(u=t("any-promise")),new u(function(R,B){S.requestWithCallback(D,y,p(R,B))}))},S.requestWithCallback=function(D,y,I){function R(){me&&(clearTimeout(me),me=null)}function B(){P&&(clearTimeout(P),P=null)}function k(le,Ae,Be){if(B(),!I)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),ee,m.pid,oe.method,D),void(le&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),ee,m.pid,le.name,le.message,le.stack));var Re=I;I=null;var ze={};if(Be&&(E=Be.statusCode,ze=Be.headers),E===401&&ze["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var ot=ze["www-authenticate"];if(ot.indexOf("Digest ")>=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",ee,D,ot),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(oe.method,oe.path,ot,y.digestAuth),h("Request#%d %s: auth with digest header: %s",ee,D,y.headers.Authorization),Be.headers["set-cookie"]&&(y.headers.Cookie=Be.headers["set-cookie"].join(";")),S.requestWithCallback(D,y,Re)}var Ze=Date.now()-U;Q&&(Q.contentDownload=Ze),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ze,b,E,oe.method,oe.host,oe.path,O,Q);var et={status:E,statusCode:E,headers:ze,size:b,aborted:G,rt:Ze,keepAliveSocket:O,data:Ae,requestUrls:y.requestUrls,timing:Q,remoteAddress:V,remotePort:L};if(le){var dt="";Z&&typeof Z.getCurrentStatus=="function"&&(dt=", agent status: "+(0,a.default)(Z.getCurrentStatus())),le.message+=", "+oe.method+" "+D+" "+E+" (connected: "+s+", keepalive socket: "+O+dt+`)
|
|
|
headers: `+(0,a.default)(ze),le.data=Ae,le.path=oe.path,le.status=E,le.headers=ze,le.res=et}Re(le,Ae,y.streaming?Be:et),y.emitter&&(Y.url=D,Y.socket=we&&we.connection,Y.options=oe,Y.size=$,y.emitter.emit("response",{requestId:ee,error:le,ctx:y.ctx,req:Y,res:et}))}function W(le){var Ae=null;if(y.followRedirect&&statuses.redirect[le.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var Be=le.headers.location;if(Be){if(!(y._followRedirectCount>y.maxRedirects)){var Re=y.formatRedirectUrl?y.formatRedirectUrl(D,Be):c.resolve(D,Be);h("Request#%d %s: `redirected` from %s to %s",ee,oe.path,D,Re),B(),y.headers&&y.headers.Host&&_.test(Be)&&(y.headers.Host=null);var ze=I;return I=null,S.requestWithCallback(Re,y,ze),{redirect:!0,error:null}}Ae=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+D),Ae.name="MaxRedirectError"}else Ae=new Error("Got statusCode "+le.statusCode+" but cannot resolve next location from headers"),Ae.name="FollowRedirectError"}return{redirect:!1,error:Ae}}function K(le,Ae,Be){return Be(null,Ae,le.headers["content-encoding"])}function H(le){if(Q&&(Q.waiting=Date.now()-U),h("Request#%d %s `req response` event emit: status %d, headers: %j",ee,D,le.statusCode,le.headers),y.streaming){var Ae=W(le);return Ae.redirect?void le.resume():Ae.error?(le.resume(),k(Ae.error,null,le)):k(null,null,le)}if(le.on("close",function(){h("Request#%d %s: `res close` event emit, total size %d",ee,D,b)}),le.on("error",function(){h("Request#%d %s: `res error` event emit, total size %d",ee,D,b)}),le.on("aborted",function(){G=!0,h("Request#%d %s: `res aborted` event emit, total size %d",ee,D,b)}),ue){var Ae=W(le);return Ae.redirect?void le.resume():Ae.error?(le.resume(),ue.end(),k(Ae.error,null,le)):(y.consumeWriteStream===!1?le.on("end",k.bind(null,null,null,le)):isNode010||isNode012?first([[ue,"close"],[le,"aborted"]],function(ze,ot,Ze){h("Request#%d %s: writeStream or res %s event emitted",ee,D,Ze),k(n||null,null,le)}):ue.on("close",function(){h("Request#%d %s: writeStream close event emitted",ee,D),k(n||null,null,le)}),le.pipe(ue))}var Be=[];le.on("data",function(Re){h("Request#%d %s: `res data` event emit, size %d",ee,D,Re.length),b+=Re.length,Be.push(Re)}),le.on("end",function(){var Re=g.concat(Be,b);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",ee,D,b,le._dumped),n)return k(n,Re,le);var ze=W(le);if(ze.error)return k(ze.error,Re,le);ze.redirect||K(le,Re,function(ot,Ze,et){if(ot)return k(ot,Re,le);if(!et&&C.indexOf(y.dataType)>=0){try{Ze=decodeBodyByCharset(Ze,le)}catch(Et){return h("decodeBodyByCharset error: %s",Et),k(null,Ze,le)}if(y.dataType==="json")if(b===0)Ze=null;else{var dt=parseJSON(Ze,de);dt.error?ot=dt.error:Ze=dt.data}}G&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",ee,D),k(ot,Ze,le)})})}function re(){h("Response timer ticking, timeout: %d",ve),P=setTimeout(function(){P=null;var le="Response timeout for "+ve+"ms";n=new Error(le),n.name="ResponseTimeoutError",n.requestId=ee,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",ee,D,n.name,le,s),X()},ve)}function X(){h("Request#%d %s abort, connected: %s",ee,D,s),we.socket||(n.noSocket=!0,k(n)),we.abort()}if(!D||typeof D!="string"&&(D===void 0?"undefined":(0,d.default)(D))!=="object"){var ie=f.format("expect request url to be a string or a http request options, but got %j",D);throw new Error(ie)}arguments.length===2&&typeof y=="function"&&(I=y,y=null),y=y||{},x>=v&&(x=0);var ee=++x;y.requestUrls=y.requestUrls||[];var Y={requestId:ee,url:D,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",Y),y.timeout=y.timeout||S.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var F,U=Date.now();typeof D=="string"?(_.test(D)||(D="http://"+D),F=c.parse(D)):F=D;var M=(y.type||y.method||F.method||"GET").toUpperCase(),z=F.port||80,q=A,Z=l(y.agent,S.agent),de=y.fixJSONCtlChars;F.protocol==="https:"&&(q=w,Z=l(y.httpsAgent,S.httpsAgent),F.port||(z=443));var oe={host:F.hostname||F.host||"localhost",path:F.path||"/",method:M,port:z,agent:Z,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?oe.requestTimeout=y.timeout[y.timeout.length-1]:y.timeout!==void 0&&(oe.requestTimeout=y.timeout);for(var he=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],_e=0;_e<he.length;_e++){var ne=he[_e];y.hasOwnProperty(ne)&&(oe[ne]=y[ne])}oe.rejectUnauthorized!==!1||oe.hasOwnProperty("secureOptions")||(oe.secureOptions=t("constants").SSL_OP_NO_TLSv1_2);var te=y.auth||F.auth;te&&(oe.auth=te);var se=y.content||y.data,N=M==="GET"||M==="HEAD"||y.dataAsQueryString;if(!y.content&&se&&typeof se!="string"&&!g.isBuffer(se))if(N)se=y.nestedQuerystring?qs.stringify(se):querystring.stringify(se);else{var j=oe.headers["Content-Type"]||oe.headers["content-type"];j||(j=y.contentType==="json"?"application/json":"application/x-www-form-urlencoded",oe.headers["Content-Type"]=j),se=parseContentType(j).type==="application/json"?(0,a.default)(se):y.nestedQuerystring?qs.stringify(se):querystring.stringify(se)}N&&se&&(oe.path+=(F.query?"&":"?")+se,se=null);var $=0;if(se){var ae=se.length;g.isBuffer(se)||(ae=g.byteLength(se)),$=oe.headers["Content-Length"]=ae}y.dataType==="json"&&(oe.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(oe);var me=null,P=null,n=null,s=!1,O=!1,b=0,E=-1,G=!1,V="",L="",Q=null;y.timing&&(Q={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),oe.headers["User-Agent"]||oe.headers["user-agent"]||(oe.headers["User-Agent"]=navigator.userAgent),y.gzip&&(oe.headers["Accept-Encoding"]||oe.headers["accept-encoding"]||(oe.headers["Accept-Encoding"]="gzip"));var ue=y.writeStream;h("Request#%d %s %s with headers %j, options.path: %s",ee,M,D,oe.headers,oe.path),y.requestUrls.push(D);var pe,ve;Array.isArray(y.timeout)?(pe=T(y.timeout[0]),ve=T(y.timeout[1])):pe=ve=T(y.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",pe,ve);var we;try{we=q.request(oe,H)}catch(le){return k(le)}return typeof window=="undefined"?function(){h("Connect timer ticking, timeout: %d",pe),me=setTimeout(function(){me=null,E===-1&&(E=-2);var le="Connect timeout for "+pe+"ms",Ae="ConnectionTimeoutError";we.socket||(Ae="SocketAssignTimeoutError",le+=", working sockets is full"),n=new Error(le),n.name=Ae,n.requestId=ee,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",ee,D,n.name,le,s),X()},pe)}():we.on("requestTimeout",function(){E===-1&&(E=-2);var le="Connect timeout for "+pe+"ms";n=new Error(le),n.name="ConnectionTimeoutError",n.requestId=ee,X()}),Q&&we.on("finish",function(){Q.requestSent=Date.now()-U}),we.once("socket",function(le){Q&&(Q.queuing=Date.now()-U),isNode010&&le.socket&&(le=le.socket);var Ae=le.readyState;if(Ae==="opening")return le.once("lookup",function(Be,Re,ze){h("Request#%d %s lookup: %s, %s, %s",ee,D,Be,Re,ze),Q&&(Q.dnslookup=Date.now()-U),Re&&(V=Re)}),void le.once("connect",function(){Q&&(Q.connected=Date.now()-U),R(),re(),h("Request#%d %s new socket connected",ee,D),s=!0,V||(V=le.remoteAddress),L=le.remotePort});h("Request#%d %s reuse socket connected, readyState: %s",ee,D,Ae),s=!0,O=!0,V||(V=le.remoteAddress),L=le.remotePort,R(),re()}),we.on("error",function(le){le.name!=="Error"&&le.name!=="TypeError"||(le.name=s?"ResponseError":"RequestError"),le.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",ee,D,le.name,le.message),k(n||le)}),ue&&ue.once("error",function(le){le.message+=' (writeStream "error")',n=le,h("Request#%d %s `writeStream error` event emit, %s: %s",ee,D,le.name,le.message),X()}),y.stream?(y.stream.pipe(we),y.stream.once("error",function(le){le.message+=' (stream "error")',n=le,h("Request#%d %s `readStream error` event emit, %s: %s",ee,D,le.name,le.message),X()})):we.end(se),we.requestId=ee,we}}).call(this,t("_process"),t("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(fe){function t(S){if(i[S])return i[S].exports;var m=i[S]={i:S,l:!1,exports:{}};return fe[S].call(m.exports,m,m.exports,t),m.l=!0,m.exports}var i={};t.m=fe,t.c=i,t.d=function(S,m,g){t.o(S,m)||Object.defineProperty(S,m,{configurable:!1,enumerable:!0,get:g})},t.n=function(S){var m=S&&S.__esModule?function(){return S.default}:function(){return S};return t.d(m,"a",m),m},t.o=function(S,m){return Object.prototype.hasOwnProperty.call(S,m)},t.p="",t(t.s=12)}([function(fe,t,i){!function(S,m){fe.exports=t=m()}(0,function(){var S=S||function(m,g){var o=Object.create||function(){function w(){}return function(h){var T;return w.prototype=h,T=new w,w.prototype=null,T}}(),l={},p=l.lib={},u=p.Base=function(){return{extend:function(h){var T=o(this);return h&&T.mixIn(h),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 h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var T in h)h.hasOwnProperty(T)&&(this[T]=h[T]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=p.WordArray=u.extend({init:function(h,T){h=this.words=h||[],this.sigBytes=T!=null?T:4*h.length},toString:function(h){return(h||r).stringify(this)},concat:function(h){var T=this.words,x=h.words,v=this.sigBytes,_=h.sigBytes;if(this.clamp(),v%4)for(var C=0;C<_;C++){var D=x[C>>>2]>>>24-C%4*8&255;T[v+C>>>2]|=D<<24-(v+C)%4*8}else for(var C=0;C<_;C+=4)T[v+C>>>2]=x[C>>>2];return this.sigBytes+=_,this},clamp:function(){var h=this.words,T=this.sigBytes;h[T>>>2]&=4294967295<<32-T%4*8,h.length=m.ceil(T/4)},clone:function(){var h=u.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var T,x=[],v=0;v<h;v+=4){var _=function(C){var C=C,D=987654321,y=4294967295;return function(){D=36969*(65535&D)+(D>>16)&y,C=18e3*(65535&C)+(C>>16)&y;var I=(D<<16)+C&y;return I/=4294967296,(I+=.5)*(m.random()>.5?1:-1)}}(4294967296*(T||m.random()));T=987654071*_(),x.push(4294967296*_()|0)}return new e.init(x,h)}}),a=l.enc={},r=a.Hex={stringify:function(h){for(var T=h.words,x=h.sigBytes,v=[],_=0;_<x;_++){var C=T[_>>>2]>>>24-_%4*8&255;v.push((C>>>4).toString(16)),v.push((15&C).toString(16))}return v.join("")},parse:function(h){for(var T=h.length,x=[],v=0;v<T;v+=2)x[v>>>3]|=parseInt(h.substr(v,2),16)<<24-v%8*4;return new e.init(x,T/2)}},d=a.Latin1={stringify:function(h){for(var T=h.words,x=h.sigBytes,v=[],_=0;_<x;_++){var C=T[_>>>2]>>>24-_%4*8&255;v.push(String.fromCharCode(C))}return v.join("")},parse:function(h){for(var T=h.length,x=[],v=0;v<T;v++)x[v>>>2]|=(255&h.charCodeAt(v))<<24-v%4*8;return new e.init(x,T)}},f=a.Utf8={stringify:function(h){try{return decodeURIComponent(escape(d.stringify(h)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(h){return d.parse(unescape(encodeURIComponent(h)))}},c=p.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=f.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var T=this._data,x=T.words,v=T.sigBytes,_=this.blockSize,C=4*_,D=v/C;D=h?m.ceil(D):m.max((0|D)-this._minBufferSize,0);var y=D*_,I=m.min(4*y,v);if(y){for(var R=0;R<y;R+=_)this._doProcessBlock(x,R);var B=x.splice(0,y);T.sigBytes-=I}return new e.init(B,I)},clone:function(){var h=u.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),A=(p.Hasher=c.extend({cfg:u.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){return h&&this._append(h),this._doFinalize()},blockSize:16,_createHelper:function(h){return function(T,x){return new h.init(x).finalize(T)}},_createHmacHelper:function(h){return function(T,x){return new A.HMAC.init(h,x).finalize(T)}}}),l.algo={});return l}(Math);return S})},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,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)}}]),o}();t.default=g},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return function(m){function g(A,w,h,T,x,v,_){var C=A+(w&h|~w&T)+x+_;return(C<<v|C>>>32-v)+w}function o(A,w,h,T,x,v,_){var C=A+(w&T|h&~T)+x+_;return(C<<v|C>>>32-v)+w}function l(A,w,h,T,x,v,_){var C=A+(w^h^T)+x+_;return(C<<v|C>>>32-v)+w}function p(A,w,h,T,x,v,_){var C=A+(h^(w|~T))+x+_;return(C<<v|C>>>32-v)+w}var u=S,e=u.lib,a=e.WordArray,r=e.Hasher,d=u.algo,f=[];!function(){for(var A=0;A<64;A++)f[A]=4294967296*m.abs(m.sin(A+1))|0}();var c=d.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,h){for(var T=0;T<16;T++){var x=h+T,v=w[x];w[x]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var _=this._hash.words,C=w[h+0],D=w[h+1],y=w[h+2],I=w[h+3],R=w[h+4],B=w[h+5],k=w[h+6],W=w[h+7],K=w[h+8],H=w[h+9],re=w[h+10],X=w[h+11],ie=w[h+12],ee=w[h+13],Y=w[h+14],F=w[h+15],U=_[0],M=_[1],z=_[2],q=_[3];U=g(U,M,z,q,C,7,f[0]),q=g(q,U,M,z,D,12,f[1]),z=g(z,q,U,M,y,17,f[2]),M=g(M,z,q,U,I,22,f[3]),U=g(U,M,z,q,R,7,f[4]),q=g(q,U,M,z,B,12,f[5]),z=g(z,q,U,M,k,17,f[6]),M=g(M,z,q,U,W,22,f[7]),U=g(U,M,z,q,K,7,f[8]),q=g(q,U,M,z,H,12,f[9]),z=g(z,q,U,M,re,17,f[10]),M=g(M,z,q,U,X,22,f[11]),U=g(U,M,z,q,ie,7,f[12]),q=g(q,U,M,z,ee,12,f[13]),z=g(z,q,U,M,Y,17,f[14]),M=g(M,z,q,U,F,22,f[15]),U=o(U,M,z,q,D,5,f[16]),q=o(q,U,M,z,k,9,f[17]),z=o(z,q,U,M,X,14,f[18]),M=o(M,z,q,U,C,20,f[19]),U=o(U,M,z,q,B,5,f[20]),q=o(q,U,M,z,re,9,f[21]),z=o(z,q,U,M,F,14,f[22]),M=o(M,z,q,U,R,20,f[23]),U=o(U,M,z,q,H,5,f[24]),q=o(q,U,M,z,Y,9,f[25]),z=o(z,q,U,M,I,14,f[26]),M=o(M,z,q,U,K,20,f[27]),U=o(U,M,z,q,ee,5,f[28]),q=o(q,U,M,z,y,9,f[29]),z=o(z,q,U,M,W,14,f[30]),M=o(M,z,q,U,ie,20,f[31]),U=l(U,M,z,q,B,4,f[32]),q=l(q,U,M,z,K,11,f[33]),z=l(z,q,U,M,X,16,f[34]),M=l(M,z,q,U,Y,23,f[35]),U=l(U,M,z,q,D,4,f[36]),q=l(q,U,M,z,R,11,f[37]),z=l(z,q,U,M,W,16,f[38]),M=l(M,z,q,U,re,23,f[39]),U=l(U,M,z,q,ee,4,f[40]),q=l(q,U,M,z,C,11,f[41]),z=l(z,q,U,M,I,16,f[42]),M=l(M,z,q,U,k,23,f[43]),U=l(U,M,z,q,H,4,f[44]),q=l(q,U,M,z,ie,11,f[45]),z=l(z,q,U,M,F,16,f[46]),M=l(M,z,q,U,y,23,f[47]),U=p(U,M,z,q,C,6,f[48]),q=p(q,U,M,z,W,10,f[49]),z=p(z,q,U,M,Y,15,f[50]),M=p(M,z,q,U,B,21,f[51]),U=p(U,M,z,q,ie,6,f[52]),q=p(q,U,M,z,I,10,f[53]),z=p(z,q,U,M,re,15,f[54]),M=p(M,z,q,U,D,21,f[55]),U=p(U,M,z,q,K,6,f[56]),q=p(q,U,M,z,F,10,f[57]),z=p(z,q,U,M,k,15,f[58]),M=p(M,z,q,U,ee,21,f[59]),U=p(U,M,z,q,R,6,f[60]),q=p(q,U,M,z,X,10,f[61]),z=p(z,q,U,M,y,15,f[62]),M=p(M,z,q,U,H,21,f[63]),_[0]=_[0]+U|0,_[1]=_[1]+M|0,_[2]=_[2]+z|0,_[3]=_[3]+q|0},_doFinalize:function(){var w=this._data,h=w.words,T=8*this._nDataBytes,x=8*w.sigBytes;h[x>>>5]|=128<<24-x%32;var v=m.floor(T/4294967296),_=T;h[15+(x+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),h[14+(x+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),w.sigBytes=4*(h.length+1),this._process();for(var C=this._hash,D=C.words,y=0;y<4;y++){var I=D[y];D[y]=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8)}return C},clone:function(){var w=r.clone.call(this);return w._hash=this._hash.clone(),w}});u.MD5=r._createHelper(c),u.HmacMD5=r._createHmacHelper(c)}(Math),S.MD5})},function(fe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},t.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},t.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(fe,t,i){"use strict";function S(c){return c&&c.__esModule?c:{default:c}}function m(c,A){if(!(c instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function c(A,w){for(var h=0;h<w.length;h++){var T=w[h];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(A,T.key,T)}}return function(A,w,h){return w&&c(A.prototype,w),h&&c(A,h),A}}(),o=i(5),l=S(o),p=i(25),u=S(p),e=i(6),a=S(e),r=i(7),d=S(r),f=function(){function c(A){m(this,c);var w=d.default.os.name,h=d.default.os.version||"",T=d.default.browser.name,x=d.default.browser.version||"",v=window.location.href,_="";v&&(_=d.default.getHost(v));var C="pc";d.default.os.ipad?C="pad":(d.default.os.iphone||d.default.os.android)&&(C="phone"),this._ri=l.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:a.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:w,ov:h,et:T,ev:x,uat:navigator.userAgent,app_n:_,tt:C,dm:"h5",ut:""}}return g(c,[{key:"log",value:function(w,h){h&&h.ri?(this._ri=h.ri,delete h.ri):this._ri=l.default.create(),h&&h.ut&&(this.initParam.ut=h.ut,delete h.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var T=[];if(h)for(var x in h)T.push(x+"="+h[x]);var v=T.join("&");this.initParam.args=encodeURIComponent(v==""?"0":v);var _=[];for(var x in this.initParam)_.push(x+"="+this.initParam[x]);var C=_.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(C):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+C}}],[{key:"getUuid",value:function(){var w=u.default.get("p_h5_upload_u");return w||(w=l.default.create(),u.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return u.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=l.default.create()),u.default.set("p_h5_upload_clientId",w,730),w}}]),c}();t.default=f},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"create",value:function(p,u){var e,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(u=u||a.length,p)for(e=0;e<p;e++)r[e]=a[0|Math.random()*u];else{var d;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(d=0|16*Math.random(),r[e]=a[e==19?3&d|8:d])}return r.join("")}}]),o}();t.default=g},function(fe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S={version:"1.5.0"};t.default=S},function(fe,t,i){"use strict";function S(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function e(a,r){for(var d=0;d<r.length;d++){var f=r[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,d){return r&&e(a.prototype,r),d&&e(a,d),a}}(),g=function(a){var r=navigator.userAgent,d="other";if(a.ios)return"iOS";if(a.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(d="macOS"),navigator.platform=="X11"&&!f&&!c&&(d="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(d="Linux"),f?"windows":d},o=function(){var a=navigator.userAgent,r="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(r="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(r="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(r="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(r="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(r="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(r="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(r="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(r="10"),r},l=function(a){var r=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var e={},a={},r=navigator.userAgent,d=navigator.platform,f=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=r.match(/(Android);?[\s\/]+([\d.]+)?/),A=!!r.match(/\(Macintosh\; Intel /),w=r.match(/(iPad).*OS\s([\d_]+)/),h=r.match(/(iPod)(.*OS\s([\d_]+))?/),T=!w&&r.match(/(iPhone\sOS)\s([\d_]+)/),x=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),v=/Win\d{2}|Windows/.test(d),_=r.match(/Windows Phone ([\d.]+)/),C=x&&r.match(/TouchPad/),D=r.match(/Kindle\/([\d.]+)/),y=r.match(/Silk\/([\d._]+)/),I=r.match(/(BlackBerry).*Version\/([\d.]+)/),R=r.match(/(BB10).*Version\/([\d.]+)/),B=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),k=r.match(/PlayBook/),W=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),K=r.match(/Firefox\/([\d.]+)/),H=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),re=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),X=!W&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ie=X||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!f)&&(a.version=f[1]),c&&(e.android=!0,e.version=c[2]),T&&!h&&(e.ios=e.iphone=!0,e.version=T[2].replace(/_/g,".")),w&&(e.ios=e.ipad=!0,e.version=w[2].replace(/_/g,".")),h&&(e.ios=e.ipod=!0,e.version=h[3]?h[3].replace(/_/g,"."):null),_&&(e.wp=!0,e.version=_[1]),x&&(e.webos=!0,e.version=x[2]),C&&(e.touchpad=!0),I&&(e.blackberry=!0,e.version=I[2]),R&&(e.bb10=!0,e.version=R[2]),B&&(e.rimtabletos=!0,e.version=B[2]),k&&(a.playbook=!0),D&&(e.kindle=!0,e.version=D[1]),y&&(a.silk=!0,a.version=y[1]),!y&&e.android&&r.match(/Kindle Fire/)&&(a.silk=!0),W&&(a.chrome=!0,a.version=W[1]),K&&(a.firefox=!0,a.version=K[1]),H&&(e.firefoxos=!0,e.version=H[1]),re&&(a.ie=!0,a.version=re[1]),ie&&(A||e.ios||v||c)&&(a.safari=!0,e.ios||(a.version=ie[1])),X&&(a.webview=!0),A){var ee=r.match(/[\d]*_[\d]*_[\d]*/);ee&&ee.length>0&&ee[0]&&(e.version=ee[0].replace(/_/g,"."))}return e.tablet=!!(w||k||c&&!r.match(/Mobile/)||K&&r.match(/Tablet/)||re&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||T||x||I||R||W&&r.match(/Android/)||W&&r.match(/CriOS\/([\d.]+)/)||K&&r.match(/Mobile/)||re&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,A?e.name="macOS":v?(e.name="windows",e.version=o()):e.name=g(e),a.name=l(a),{os:e,browser:a}}(),u=function(){function e(){S(this,e)}return m(e,null,[{key:"getHost",value:function(r){var d="";if(r===void 0||r==null||r=="")return"";var f=r.indexOf("//"),c=r;f>-1&&(c=r.substring(f+2));var d=c,A=c.split("/");return A&&A.length>0&&(d=A[0]),A=d.split(":"),A&&A.length>0&&(d=A[0]),d}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var r=p.browser;return r.name||(r.name=l()),r}}]),e}();t.default=u},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"get",value:function(p,u,e,a,r){var d;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),d=new XMLHttpRequest,d.onreadystatechange=function(){d.readyState===4&&(d.status===200?u(d.responseText):e(d.responseText))};try{a===void 0&&(a=!0),d.open("GET",p,a),r&&(d.withCredentials=!0)}catch(f){return void e(f)}try{d.send()}catch(f){e(f)}}}]),o}();t.default=g},function(fe,t,i){"use strict";function S(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function p(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&p(u.prototype,e),a&&p(u,a),u}}(),g=i(27),o=i(30),l=(i(10),function(){function p(){S(this,p)}return m(p,null,[{key:"randomUUID",value:function(){for(var e=[],a="0123456789abcdef",r=0;r<36;r++)e[r]=a.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=a.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var a=encodeURIComponent(e);return a=a.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,a,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var d=[];for(var f in e)d.push(f);for(var c=d.sort(),A="",w=c.length,f=0;f<w;f++){var h=p.aliyunEncodeURI(c[f]),T=p.aliyunEncodeURI(e[c[f]]);A==""?A=h+a+T:A+=r+h+a+T}return A}},{key:"makeChangeSiga",value:function(e,a){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return o.stringify(g("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(e,"=","&")),a+"&"))}}]),p}());t.default=l},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return S.enc.Utf8})},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return S.enc.Hex})},function(fe,t,i){fe.exports=i(13)},function(fe,t,i){"use strict";var S,m,g=(typeof Symbol=="function"&&Symbol.iterator,i(14)),o=function(p){return p&&p.__esModule?p:{default:p}}(g),l={Vod:o.default};S=[],(m=function(){return l}.apply(t,S))!==void 0&&(fe.exports=m),window.AliyunUpload=l,pt.exports=AliyunUpload},function(fe,t,i){"use strict";function S(R){return R&&R.__esModule?R:{default:R}}function m(R,B){if(!(R instanceof B))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function R(B,k){for(var W=0;W<k.length;W++){var K=k[W];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(B,K.key,K)}}return function(B,k,W){return k&&R(B.prototype,k),W&&R(B,W),B}}(),o=i(15),l=i(3),p=i(16),u=S(p),e=i(18),a=S(e),r=i(24),d=S(r),f=i(4),c=S(f),A=i(1),w=S(A),h=i(5),T=S(h),x=i(26),v=S(x),_=i(31),C=S(_),D=i(32),y=S(D),I=(i(2),function(){function R(B){m(this,R),this.options=B,this.options.partSize=this.options.partSize||l.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||l.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=o.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=o.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return g(R,[{key:"init",value:function(k,W,K,H){return this._retryCount=0,!(K&&!H||!K&&H)&&!(k&&!W||!k&&W)&&(this._ossCreditor.accessKeyId=k,this._ossCreditor.accessKeySecret=W,this._ossCreditor.securityToken=K,this._ossCreditor.expireTime=H,!0)}},{key:"addFile",value:function(k,W,K,H,re,X){if(!k)return!1;if(k.size==0)try{this.options.onUploadFailed({file:k},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(F){console.log(F)}for(var ie=(this.options,0);ie<this._uploadList.length;ie++)if(this._uploadList[ie].file==k)return!1;var ee=new Object;if(ee.file=k,ee._endpoint=W,ee._bucket=K,ee._object=H,ee.state=o.UPLOADSTATE.INIT,ee.isImage=w.default.isImage(k.name),!ee.isImage&&this.options.enableUploadProgress){var Y=this;y.default.getMd5(k,function(F){ee.fileHash=F;var U=Y._getCheckoutpoint(ee);Y.options.localCheckpoint||U||Y._getCheckoutpointFromCloud(ee,function(M){if(M.UploadPoint){var z=JSON.parse(M.UploadPoint);z.loaded!=1&&(ee.checkpoint=z.checkpoint,ee.loaded=z.loaded,ee.videoId=M.VideoId,Y._saveCheckoutpoint(ee,z.checkpoint))}},function(M){try{if((M=JSON.parse(M))&&M.Code=="InvalidParameter"&&M.Message.indexOf("UserId")>0){Y._invalidUserId=!0;var z=M.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(z)}}catch(q){console.log(q)}})})}re&&(ee.videoInfo=re?JSON.parse(re).Vod:{},ee.userData=a.default.encode(re)),ee.ri=T.default.create(),this._uploadList.push(ee),this._reportLog("20001",ee,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(ee)}catch(F){console.log(F)}return!0}},{key:"deleteFile",value:function(k){return!!this.cancelFile(k)&&(this._uploadList.splice(k,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var W=this._uploadList[k];if(k==this._curIndex&&W.state==o.UPLOADSTATE.UPLOADING){W.state=o.UPLOADSTATE.CANCELED;var K=this._getCheckoutpoint(W);K&&K.checkpoint&&(K=K.checkpoint),K&&this._ossUpload.abort(W),this._removeCheckoutpoint(W),this.nextUpload()}else W.state!=o.UPLOADSTATE.SUCCESS&&(W.state=o.UPLOADSTATE.CANCELED);return this._reportLog("20008",W),!0}},{key:"resumeFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var W=this._uploadList[k];return W.state==o.UPLOADSTATE.CANCELED&&(W.state=o.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(k){return this._getCheckoutpoint({file:k})}},{key:"startUpload",value:function(k){if(this._retryCount=0,this.options,this._state==o.VODSTATE.START||this._state==o.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=o.VODSTATE.END);var W=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(W),this._state=o.VODSTATE.START}},{key:"nextUpload",value:function(){var k=this.options;if(this._state==o.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var W=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(W)}else{this._state=o.VODSTATE.END;try{k.onUploadEnd&&k.onUploadEnd(W)}catch(K){console.log(K)}}}},{key:"clear",value:function(k){for(var W=this.options,K=0,H=0;H<this._uploadList.length;H++)W.uploadList[H].state==o.UPLOADSTATE.SUCCESS&&K++,this._uploadList[H].state==k&&(W.uploadList.splice(H,1),H--);W.onClear&&W.onClear(W.uploadList.length,K)}},{key:"stopUpload",value:function(){if((this._state==o.VODSTATE.START||this._state==o.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var k=this._uploadList[this._curIndex];this._state=o.VODSTATE.STOP,k.state=o.UPLOADSTATE.STOPED,this._changeState(k,o.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(k){var W=this;if(!k)return!1;var K=JSON.parse(a.default.decode(k));return!!(K.AccessKeyId&&K.AccessKeySecret&&K.SecurityToken&&K.Expiration)&&W.resumeUploadWithToken(K.AccessKeyId,K.AccessKeySecret,K.SecurityToken,K.Expiration)}},{key:"resumeUploadWithToken",value:function(k,W,K,H){if(this.options,!(k&&W&&K&&H))return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var re="";return this._uploadList.length>this._curIndex&&(re=this._uploadList[this._curIndex]),re&&(this.init(k,W,K,H),this._state=o.VODSTATE.START,this._ossUpload=null,this._uploadCore(re,re.retry),re.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(k,W,K){if(this._curIndex==-1)return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var H=this._uploadList[this._curIndex];H.object?this._refreshSTSTokenUpload(H,k,W,K):this.setSTSToken(H,k,W,K)}}},{key:"setSTSTokenDirectlyUpload",value:function(k,W,K,H,re){if(!(W&&K&&H&&re))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var X=k;this.init(W,K,H,re),X.endpoint=X._endpoint,X.bucket=X._bucket,X.object=X._object,this._ossUpload=null,this._uploadCore(X,k.retry),k.retry=!1}},{key:"setSTSToken",value:function(k,W,K,H){if(!W||!K||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var re=k.videoInfo,X={accessKeyId:W,securityToken:H,accessKeySecret:K,fileName:k.file.name,title:re.Title,requestId:k.ri,region:this.options.region};re.ImageType&&(X.imageType=re.ImageType),re.ImageExt&&(X.imageExt=re.ImageExt),re.FileSize&&(X.fileSize=re.FileSize),re.Description&&(X.description=re.Description),re.CateId&&(X.cateId=re.CateId),re.Tags&&(X.tags=re.Tags),re.TemplateGroupId&&(X.templateGroupId=re.TemplateGroupId),re.StorageLocation&&(X.storageLocation=re.StorageLocation),re.CoverURL&&(X.coverUrl=re.CoverURL),re.TransCodeMode&&(X.transCodeMode=re.TransCodeMode),re.UserData&&(X.userData=re.UserData);var ie=this,ee="getUploadAuth";k.videoId?(X.videoId=k.videoId,ee="refreshUploadAuth"):k.isImage&&(ee="getImageUploadAuth"),v.default[ee](X,function(Y){k.videoId=Y.VideoId?Y.VideoId:k.videoId,ie.setUploadAuthAndAddress(k,Y.UploadAuth,Y.UploadAddress),ie._state=o.VODSTATE.START},function(Y){ie._error(k,{name:Y.Code,code:Y.Code,message:Y.Message,requestId:Y.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(k,W,K,H){if(!k||!W||!K)return!1;var re=JSON.parse(a.default.decode(W));if(!(re.AccessKeyId&&re.AccessKeySecret&&re.SecurityToken&&re.Expiration))return console.error("uploadauth is invalid"),!1;var X={},ie=k;if(K){if(X=JSON.parse(a.default.decode(K)),!X.Endpoint||!X.Bucket||!X.FileName)return console.error("uploadAddress is invalid"),!1}else X.Endpoint=ie.endpoint,X.Bucket=ie.bucket,X.FileName=ie.object;this._ut="vod",this._uploadWay="vod",this.options.region=re.Region||this.options.region,this.init(re.AccessKeyId,re.AccessKeySecret,re.SecurityToken,re.Expiration),ie.endpoint=ie._endpoint?ie._endpoint:X.Endpoint,ie.bucket=ie._bucket?ie._bucket:X.Bucket,ie.object=ie._object?ie._object:X.FileName,ie.region=this.options.region,H&&(ie.videoId=H),this._ossUpload=null,this._uploadCore(ie,k.retry),k.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(k,W,K,H){if(!W||!K||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var re={accessKeyId:W,securityToken:H,accessKeySecret:K,videoId:k.object,requestId:k.ri,region:this.options.region},X=this,ie="refreshUploadAuth";k.isImage&&(ie="getImageUploadAuth"),v.default[ie](re,function(ee){X.setUploadAuthAndAddress(k,ee.UploadAuth,UploadAddress),X._state=o.VODSTATE.START},function(ee){X._error(k,{name:ee.Code,code:ee.Code,message:ee.Message,requestId:ee.RequestId})})}},{key:"_upload",value:function(k){var W=arguments.length>1&&arguments[1]!==void 0&&arguments[1],K=this.options;if(k.retry=W,K.onUploadstarted&&!W)try{var H=this._getCheckoutpoint(k);H&&H.state!=o.UPLOADSTATE.UPLOADING&&(k.checkpoint=H,k.videoId=H.videoId),K.onUploadstarted(k)}catch(re){console.log(re)}}},{key:"_uploadCore",value:function(k){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(k.state=o.UPLOADSTATE.UPLOADING,!this._ossUpload){k.endpoint=k.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var W=this;this._ossUpload=new u.default({bucket:k.bucket,endpoint:k.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(F,U){W._error.call(W,F,U)},oncomplete:function(F,U){W._complete.call(W,F,U)},onprogress:function(F,U,M){W._progress.call(W,F,U,M)}})}var K=w.default.getFileType(k.file.name),H=this._getCheckoutpoint(k),re="",X="";H&&H.checkpoint&&(X=H.state,re=H.videoId,H=H.checkpoint),H&&re==k.videoId&&X!=o.UPLOADSTATE.UPLOADING&&(H.file=k.file,k.checkpoint=H,H.uploadId);var ie=this._adjustPartSize(k);this._reportLog("20002",k,{ft:K,fs:k.file.size,bu:k.bucket,ok:k.object,vid:k.videoId||"",fn:k.file.name,fw:null,fh:null,ps:ie});var ee={headers:{"x-oss-notification":k.userData?k.userData:""},partSize:ie,parallel:this.options.parallel};this._ossUpload.upload(k,ee)}},{key:"_findUploadIndex",value:function(){for(var k=-1,W=0;W<this._uploadList.length;W++)if(this._uploadList[W].state==o.UPLOADSTATE.INIT){k=W;break}return k}},{key:"_error",value:function(k,W){if(W.name=="cancel")try{this.options.onUploadCanceled(k,W)}catch(H){console.log(H)}else{if(W.message.indexOf("InvalidAccessKeyIdError")>0||W.name=="SignatureDoesNotMatchError"||W.code=="SecurityTokenExpired"||W.code=="InvalidSecurityToken.Expired"||W.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=o.VODSTATE.EXPIRE,k.state=o.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(k,W)}catch(H){console.log(H)}}return}if((W.name=="RequestTimeoutError"||W.name=="ConnectionTimeout"||W.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var K=this;return setTimeout(function(){K._uploadCore(k,!0)},1e3*K._retryDuration),void this._retryCount++}W.name=="NoSuchUploadError"&&this._removeCheckoutpoint(k),this._handleError(k,W)}}},{key:"_handleError",value:function(k,W){var K=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],H=o.UPLOADSTATE.FAIlURE;if(k.state!=o.UPLOADSTATE.CANCELED&&(k.state=o.UPLOADSTATE.FAIlURE,this._state=o.VODSTATE.FAILURE,this.options.onUploadFailed&&W&&W.code&&W.message))try{this.options.onUploadFailed(k,W.code,W.message)}catch(X){console.log(X)}if(K&&this._changeState(k,H),this._reportLog("20006",k,{code:W.name,message:W.message,requestId:W.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),this._reportLog("20004",k,{requestId:W.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),k.ri=T.default.create(),this._findUploadIndex()!=-1){var re=this;this._state=o.VODSTATE.START,setTimeout(function(){re.nextUpload()},100)}}},{key:"_complete",value:function(k,W){if(k.state=o.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(k)}catch(re){console.log(re)}var K=0;W&&W.res&&W.res.headers&&(K=W.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(k);var H=this;setTimeout(function(){H.nextUpload()},100),this._retryCount=0,this._reportLog("20003",k,{requestId:K})}},{key:"_progress",value:function(k,W,K){if(this.options.onUploadProgress)try{k.loaded=W.loaded,this.options.onUploadProgress(k,W.total,W.loaded)}catch(F){console.log(F)}var H=W.checkpoint,re=0;H&&(k.checkpoint=H,this._saveCheckoutpoint(k,H,o.UPLOADSTATE.UPLOADING),re=H.uploadId),this._retryCount=0;var X=this._getPortNumber(H),ie=0;if(K&&K.headers&&(ie=K.headers["x-oss-request-id"]),W.loaded!=0&&this._reportLog("20007",k,{pn:X,requestId:ie}),W.loaded!=1&&this._reportLog("20005",k,{UploadId:re,pn:X+1,pr:k.retry?1:0,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),!this._invalidUserId&&!k.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var ee={file:k.file,checkpoint:W,userId:this.options.userId,videoId:k.videoId,region:this.options.region,fileHash:k.fileHash};try{var Y=this;C.default.upload(ee,function(){},function(F){if((F=JSON.parse(F))&&F.Code=="InvalidParameter"&&F.Message.indexOf("UserId")>0){Y._invalidUserId=!0;var U=F.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(U)}})}catch(F){console.log(F)}}}},{key:"_getPortNumber",value:function(k){if(k){var W=k.doneParts;if(W&&W.length>0)return W[W.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(k){var W=this._getCheckoutpointKey(k);d.default.remove(W)}},{key:"_getCheckoutpoint",value:function(k){var W=this._getCheckoutpointKey(k),K=d.default.get(W);if(K)try{return JSON.parse(K)}catch(H){}return""}},{key:"_saveCheckoutpoint",value:function(k,W,K){if(W){var H=this._getCheckoutpointKey(k),re=k.file,X={fileName:re.name,lastModified:re.lastModified,size:re.size,object:k.object,videoId:k.videoId,bucket:k.bucket,endpoint:k.endpoint,checkpoint:W,loaded:k.loaded,state:K};d.default.set(H,JSON.stringify(X))}}},{key:"_changeState",value:function(k,W){var K=this._getCheckoutpoint(k);K&&((this._onbeforeunload=!0)&&(W=o.UPLOADSTATE.STOPED),this._saveCheckoutpoint(k,K.checkpoint,W))}},{key:"_getCheckoutpointKey",value:function(k){return"upload_"+k.file.lastModified+"_"+k.file.name+"_"+k.file.size}},{key:"_getCheckoutpointFromCloud",value:function(k,W,K){var H={userId:this.options.userId,uploadInfoList:[{FileName:k.file.name,FileSize:k.file.size,FileCreateTime:k.file.lastModified,FileHash:k.fileHash}],region:this.options.region};C.default.get(H,function(re){W(re)},K)}},{key:"_reportLog",value:function(k,W,K){K||(K={}),K.ri=W.ri,this._ut&&(K.ut=this._ut),this._log.log(k,K)}},{key:"_initEvent",value:function(){var k=this;window&&(window.onbeforeunload=function(W){if(k._onbeforeunload=!0,k._curIndex!=-1&&k._uploadList.length>k._curIndex){var K=k._uploadList[k._curIndex];k._changeState(K,o.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var k=0;k<this._uploadList.length;k++){var W=this._uploadList[k];W.state!=o.UPLOADSTATE.FAIlURE&&W.state!=o.UPLOADSTATE.STOPED||(W.state=o.UPLOADSTATE.INIT)}this._state=o.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(k){return k.file.size/this.options.partSize>1e4?k.file.size/9999:this.options.partSize}}]),R}());t.default=I},function(fe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},t.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(fe,t,i){"use strict";function S(e){return e&&e.__esModule?e:{default:e}}function m(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(a,r){for(var d=0;d<r.length;d++){var f=r[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,d){return r&&e(a.prototype,r),d&&e(a,d),a}}(),o=i(3),l=i(17),p=(S(l),i(1)),u=(S(p),function(){function e(a,r){if(m(this,e),a){this._config=a,this.create(this._config),this._uploadInfo=null,this._callback={};var d=function(){};this._callback.onerror=r.onerror||d,this._callback.oncomplete=r.oncomplete||d,this._callback.onprogress=r.onprogress||d}}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 d={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&&(d.timeout=r.timeout),this.oss=new OSS.Wrapper(d)}},{key:"abort",value:function(r){if(r.checkpoint){var d=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,d)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,d){this._uploadInfo=r;var f=this,c=function(h,T,x){return function(v){f._progress(h,T,x),v()}},A={parallel:d.parallel||this._config.parallel||o.UPLOADDEFAULT.PARALLEL,partSize:d.partSize||this._config.partSize||o.UPLOADDEFAULT.PARTSIZE,progress:c};d.headers&&(A.headers=d.headers),r.checkpoint&&(A.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,A).then(function(w,h){f._complete(w)}).catch(function(w){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(w)})}},{key:"header",value:function(r,d,f){this.oss.get(r.object).then(function(c){d(c)}).catch(function(c){f(c)})}},{key:"_progress",value:function(r,d,f){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:d},f)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());t.default=u},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"format",value:function(p){if(arguments.length<2)return null;for(var u=arguments[1],e=1;e<arguments.length;e++){var a=new RegExp("\\{"+(e-1)+"\\}","gm");u=u.replace(a,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."}}}]),o}();t.default=g},function(fe,t,i){"use strict";(function(S){function m(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function l(p,u){for(var e=0;e<u.length;e++){var a=u[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(p,a.key,a)}}return function(p,u,e){return u&&l(p.prototype,u),e&&l(p,e),p}}(),o=function(){function l(){m(this,l)}return g(l,null,[{key:"encode",value:function(u){return new S(u).toString("base64")}},{key:"decode",value:function(u){return new S(u,"base64").toString()}}]),l}();t.default=o}).call(t,i(19).Buffer)},function(fe,t,i){"use strict";(function(S){function m(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(P,n){if(m()<n)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(P=new Uint8Array(n),P.__proto__=o.prototype):(P===null&&(P=new o(n)),P.length=n),P}function o(P,n,s){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(P,n,s);if(typeof P=="number"){if(typeof n=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,P)}return l(this,P,n,s)}function l(P,n,s,O){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer?d(P,n,s,O):typeof n=="string"?a(P,n,s):f(P,n)}function p(P){if(typeof P!="number")throw new TypeError('"size" argument must be a number');if(P<0)throw new RangeError('"size" argument must not be negative')}function u(P,n,s,O){return p(n),n<=0?g(P,n):s!==void 0?typeof O=="string"?g(P,n).fill(s,O):g(P,n).fill(s):g(P,n)}function e(P,n){if(p(n),P=g(P,n<0?0:0|c(n)),!o.TYPED_ARRAY_SUPPORT)for(var s=0;s<n;++s)P[s]=0;return P}function a(P,n,s){if(typeof s=="string"&&s!==""||(s="utf8"),!o.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');var O=0|w(n,s);P=g(P,O);var b=P.write(n,s);return b!==O&&(P=P.slice(0,b)),P}function r(P,n){var s=n.length<0?0:0|c(n.length);P=g(P,s);for(var O=0;O<s;O+=1)P[O]=255&n[O];return P}function d(P,n,s,O){if(n.byteLength,s<0||n.byteLength<s)throw new RangeError("'offset' is out of bounds");if(n.byteLength<s+(O||0))throw new RangeError("'length' is out of bounds");return n=s===void 0&&O===void 0?new Uint8Array(n):O===void 0?new Uint8Array(n,s):new Uint8Array(n,s,O),o.TYPED_ARRAY_SUPPORT?(P=n,P.__proto__=o.prototype):P=r(P,n),P}function f(P,n){if(o.isBuffer(n)){var s=0|c(n.length);return P=g(P,s),P.length===0||n.copy(P,0,0,s),P}if(n){if(typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||se(n.length)?g(P,0):r(P,n);if(n.type==="Buffer"&&$(n.data))return r(P,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(P){if(P>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|P}function A(P){return+P!=P&&(P=0),o.alloc(+P)}function w(P,n){if(o.isBuffer(P))return P.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(P)||P instanceof ArrayBuffer))return P.byteLength;typeof P!="string"&&(P=""+P);var s=P.length;if(s===0)return 0;for(var O=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return oe(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return ne(P).length;default:if(O)return oe(P).length;n=(""+n).toLowerCase(),O=!0}}function h(P,n,s){var O=!1;if((n===void 0||n<0)&&(n=0),n>this.length)return"";if((s===void 0||s>this.length)&&(s=this.length),s<=0)return"";if(s>>>=0,n>>>=0,s<=n)return"";for(P||(P="utf8");;)switch(P){case"hex":return re(this,n,s);case"utf8":case"utf-8":return k(this,n,s);case"ascii":return K(this,n,s);case"latin1":case"binary":return H(this,n,s);case"base64":return B(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,n,s);default:if(O)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),O=!0}}function T(P,n,s){var O=P[n];P[n]=P[s],P[s]=O}function x(P,n,s,O,b){if(P.length===0)return-1;if(typeof s=="string"?(O=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=b?0:P.length-1),s<0&&(s=P.length+s),s>=P.length){if(b)return-1;s=P.length-1}else if(s<0){if(!b)return-1;s=0}if(typeof n=="string"&&(n=o.from(n,O)),o.isBuffer(n))return n.length===0?-1:v(P,n,s,O,b);if(typeof n=="number")return n&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(P,n,s):Uint8Array.prototype.lastIndexOf.call(P,n,s):v(P,[n],s,O,b);throw new TypeError("val must be string, number or Buffer")}function v(P,n,s,O,b){function E(we,le){return G===1?we[le]:we.readUInt16BE(le*G)}var G=1,V=P.length,L=n.length;if(O!==void 0&&((O=String(O).toLowerCase())==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(P.length<2||n.length<2)return-1;G=2,V/=2,L/=2,s/=2}var Q;if(b){var ue=-1;for(Q=s;Q<V;Q++)if(E(P,Q)===E(n,ue===-1?0:Q-ue)){if(ue===-1&&(ue=Q),Q-ue+1===L)return ue*G}else ue!==-1&&(Q-=Q-ue),ue=-1}else for(s+L>V&&(s=V-L),Q=s;Q>=0;Q--){for(var pe=!0,ve=0;ve<L;ve++)if(E(P,Q+ve)!==E(n,ve)){pe=!1;break}if(pe)return Q}return-1}function _(P,n,s,O){s=Number(s)||0;var b=P.length-s;O?(O=Number(O))>b&&(O=b):O=b;var E=n.length;if(E%2!=0)throw new TypeError("Invalid hex string");O>E/2&&(O=E/2);for(var G=0;G<O;++G){var V=parseInt(n.substr(2*G,2),16);if(isNaN(V))return G;P[s+G]=V}return G}function C(P,n,s,O){return te(oe(n,P.length-s),P,s,O)}function D(P,n,s,O){return te(he(n),P,s,O)}function y(P,n,s,O){return D(P,n,s,O)}function I(P,n,s,O){return te(ne(n),P,s,O)}function R(P,n,s,O){return te(_e(n,P.length-s),P,s,O)}function B(P,n,s){return n===0&&s===P.length?N.fromByteArray(P):N.fromByteArray(P.slice(n,s))}function k(P,n,s){s=Math.min(P.length,s);for(var O=[],b=n;b<s;){var E=P[b],G=null,V=E>239?4:E>223?3:E>191?2:1;if(b+V<=s){var L,Q,ue,pe;switch(V){case 1:E<128&&(G=E);break;case 2:L=P[b+1],(192&L)==128&&(pe=(31&E)<<6|63&L)>127&&(G=pe);break;case 3:L=P[b+1],Q=P[b+2],(192&L)==128&&(192&Q)==128&&(pe=(15&E)<<12|(63&L)<<6|63&Q)>2047&&(pe<55296||pe>57343)&&(G=pe);break;case 4:L=P[b+1],Q=P[b+2],ue=P[b+3],(192&L)==128&&(192&Q)==128&&(192&ue)==128&&(pe=(15&E)<<18|(63&L)<<12|(63&Q)<<6|63&ue)>65535&&pe<1114112&&(G=pe)}}G===null?(G=65533,V=1):G>65535&&(G-=65536,O.push(G>>>10&1023|55296),G=56320|1023&G),O.push(G),b+=V}return W(O)}function W(P){var n=P.length;if(n<=ae)return String.fromCharCode.apply(String,P);for(var s="",O=0;O<n;)s+=String.fromCharCode.apply(String,P.slice(O,O+=ae));return s}function K(P,n,s){var O="";s=Math.min(P.length,s);for(var b=n;b<s;++b)O+=String.fromCharCode(127&P[b]);return O}function H(P,n,s){var O="";s=Math.min(P.length,s);for(var b=n;b<s;++b)O+=String.fromCharCode(P[b]);return O}function re(P,n,s){var O=P.length;(!n||n<0)&&(n=0),(!s||s<0||s>O)&&(s=O);for(var b="",E=n;E<s;++E)b+=de(P[E]);return b}function X(P,n,s){for(var O=P.slice(n,s),b="",E=0;E<O.length;E+=2)b+=String.fromCharCode(O[E]+256*O[E+1]);return b}function ie(P,n,s){if(P%1!=0||P<0)throw new RangeError("offset is not uint");if(P+n>s)throw new RangeError("Trying to access beyond buffer length")}function ee(P,n,s,O,b,E){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>b||n<E)throw new RangeError('"value" argument is out of bounds');if(s+O>P.length)throw new RangeError("Index out of range")}function Y(P,n,s,O){n<0&&(n=65535+n+1);for(var b=0,E=Math.min(P.length-s,2);b<E;++b)P[s+b]=(n&255<<8*(O?b:1-b))>>>8*(O?b:1-b)}function F(P,n,s,O){n<0&&(n=4294967295+n+1);for(var b=0,E=Math.min(P.length-s,4);b<E;++b)P[s+b]=n>>>8*(O?b:3-b)&255}function U(P,n,s,O,b,E){if(s+O>P.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function M(P,n,s,O,b){return b||U(P,n,s,4,34028234663852886e22,-34028234663852886e22),j.write(P,n,s,O,23,4),s+4}function z(P,n,s,O,b){return b||U(P,n,s,8,17976931348623157e292,-17976931348623157e292),j.write(P,n,s,O,52,8),s+8}function q(P){if(P=Z(P).replace(me,""),P.length<2)return"";for(;P.length%4!=0;)P+="=";return P}function Z(P){return P.trim?P.trim():P.replace(/^\s+|\s+$/g,"")}function de(P){return P<16?"0"+P.toString(16):P.toString(16)}function oe(P,n){n=n||1/0;for(var s,O=P.length,b=null,E=[],G=0;G<O;++G){if((s=P.charCodeAt(G))>55295&&s<57344){if(!b){if(s>56319){(n-=3)>-1&&E.push(239,191,189);continue}if(G+1===O){(n-=3)>-1&&E.push(239,191,189);continue}b=s;continue}if(s<56320){(n-=3)>-1&&E.push(239,191,189),b=s;continue}s=65536+(b-55296<<10|s-56320)}else b&&(n-=3)>-1&&E.push(239,191,189);if(b=null,s<128){if((n-=1)<0)break;E.push(s)}else if(s<2048){if((n-=2)<0)break;E.push(s>>6|192,63&s|128)}else if(s<65536){if((n-=3)<0)break;E.push(s>>12|224,s>>6&63|128,63&s|128)}else{if(!(s<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;E.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}}return E}function he(P){for(var n=[],s=0;s<P.length;++s)n.push(255&P.charCodeAt(s));return n}function _e(P,n){for(var s,O,b,E=[],G=0;G<P.length&&!((n-=2)<0);++G)s=P.charCodeAt(G),O=s>>8,b=s%256,E.push(b),E.push(O);return E}function ne(P){return N.toByteArray(q(P))}function te(P,n,s,O){for(var b=0;b<O&&!(b+s>=n.length||b>=P.length);++b)n[b+s]=P[b];return b}function se(P){return P!==P}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var N=i(21),j=i(22),$=i(23);t.Buffer=o,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=S.TYPED_ARRAY_SUPPORT!==void 0?S.TYPED_ARRAY_SUPPORT:function(){try{var P=new Uint8Array(1);return P.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},P.foo()===42&&typeof P.subarray=="function"&&P.subarray(1,1).byteLength===0}catch(n){return!1}}(),t.kMaxLength=m(),o.poolSize=8192,o._augment=function(P){return P.__proto__=o.prototype,P},o.from=function(P,n,s){return l(null,P,n,s)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(P,n,s){return u(null,P,n,s)},o.allocUnsafe=function(P){return e(null,P)},o.allocUnsafeSlow=function(P){return e(null,P)},o.isBuffer=function(P){return!(P==null||!P._isBuffer)},o.compare=function(P,n){if(!o.isBuffer(P)||!o.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(P===n)return 0;for(var s=P.length,O=n.length,b=0,E=Math.min(s,O);b<E;++b)if(P[b]!==n[b]){s=P[b],O=n[b];break}return s<O?-1:O<s?1:0},o.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(P,n){if(!$(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return o.alloc(0);var s;if(n===void 0)for(n=0,s=0;s<P.length;++s)n+=P[s].length;var O=o.allocUnsafe(n),b=0;for(s=0;s<P.length;++s){var E=P[s];if(!o.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(O,b),b+=E.length}return O},o.byteLength=w,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<P;n+=2)T(this,n,n+1);return this},o.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<P;n+=4)T(this,n,n+3),T(this,n+1,n+2);return this},o.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<P;n+=8)T(this,n,n+7),T(this,n+1,n+6),T(this,n+2,n+5),T(this,n+3,n+4);return this},o.prototype.toString=function(){var P=0|this.length;return P===0?"":arguments.length===0?k(this,0,P):h.apply(this,arguments)},o.prototype.equals=function(P){if(!o.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P||o.compare(this,P)===0},o.prototype.inspect=function(){var P="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(P=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(P+=" ... ")),"<Buffer "+P+">"},o.prototype.compare=function(P,n,s,O,b){if(!o.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),s===void 0&&(s=P?P.length:0),O===void 0&&(O=0),b===void 0&&(b=this.length),n<0||s>P.length||O<0||b>this.length)throw new RangeError("out of range index");if(O>=b&&n>=s)return 0;if(O>=b)return-1;if(n>=s)return 1;if(n>>>=0,s>>>=0,O>>>=0,b>>>=0,this===P)return 0;for(var E=b-O,G=s-n,V=Math.min(E,G),L=this.slice(O,b),Q=P.slice(n,s),ue=0;ue<V;++ue)if(L[ue]!==Q[ue]){E=L[ue],G=Q[ue];break}return E<G?-1:G<E?1:0},o.prototype.includes=function(P,n,s){return this.indexOf(P,n,s)!==-1},o.prototype.indexOf=function(P,n,s){return x(this,P,n,s,!0)},o.prototype.lastIndexOf=function(P,n,s){return x(this,P,n,s,!1)},o.prototype.write=function(P,n,s,O){if(n===void 0)O="utf8",s=this.length,n=0;else if(s===void 0&&typeof n=="string")O=n,s=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(s)?(s|=0,O===void 0&&(O="utf8")):(O=s,s=void 0)}var b=this.length-n;if((s===void 0||s>b)&&(s=b),P.length>0&&(s<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");for(var E=!1;;)switch(O){case"hex":return _(this,P,n,s);case"utf8":case"utf-8":return C(this,P,n,s);case"ascii":return D(this,P,n,s);case"latin1":case"binary":return y(this,P,n,s);case"base64":return I(this,P,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,P,n,s);default:if(E)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),E=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ae=4096;o.prototype.slice=function(P,n){var s=this.length;P=~~P,n=n===void 0?s:~~n,P<0?(P+=s)<0&&(P=0):P>s&&(P=s),n<0?(n+=s)<0&&(n=0):n>s&&(n=s),n<P&&(n=P);var O;if(o.TYPED_ARRAY_SUPPORT)O=this.subarray(P,n),O.__proto__=o.prototype;else{var b=n-P;O=new o(b,void 0);for(var E=0;E<b;++E)O[E]=this[E+P]}return O},o.prototype.readUIntLE=function(P,n,s){P|=0,n|=0,s||ie(P,n,this.length);for(var O=this[P],b=1,E=0;++E<n&&(b*=256);)O+=this[P+E]*b;return O},o.prototype.readUIntBE=function(P,n,s){P|=0,n|=0,s||ie(P,n,this.length);for(var O=this[P+--n],b=1;n>0&&(b*=256);)O+=this[P+--n]*b;return O},o.prototype.readUInt8=function(P,n){return n||ie(P,1,this.length),this[P]},o.prototype.readUInt16LE=function(P,n){return n||ie(P,2,this.length),this[P]|this[P+1]<<8},o.prototype.readUInt16BE=function(P,n){return n||ie(P,2,this.length),this[P]<<8|this[P+1]},o.prototype.readUInt32LE=function(P,n){return n||ie(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},o.prototype.readUInt32BE=function(P,n){return n||ie(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},o.prototype.readIntLE=function(P,n,s){P|=0,n|=0,s||ie(P,n,this.length);for(var O=this[P],b=1,E=0;++E<n&&(b*=256);)O+=this[P+E]*b;return b*=128,O>=b&&(O-=Math.pow(2,8*n)),O},o.prototype.readIntBE=function(P,n,s){P|=0,n|=0,s||ie(P,n,this.length);for(var O=n,b=1,E=this[P+--O];O>0&&(b*=256);)E+=this[P+--O]*b;return b*=128,E>=b&&(E-=Math.pow(2,8*n)),E},o.prototype.readInt8=function(P,n){return n||ie(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},o.prototype.readInt16LE=function(P,n){n||ie(P,2,this.length);var s=this[P]|this[P+1]<<8;return 32768&s?4294901760|s:s},o.prototype.readInt16BE=function(P,n){n||ie(P,2,this.length);var s=this[P+1]|this[P]<<8;return 32768&s?4294901760|s:s},o.prototype.readInt32LE=function(P,n){return n||ie(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},o.prototype.readInt32BE=function(P,n){return n||ie(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},o.prototype.readFloatLE=function(P,n){return n||ie(P,4,this.length),j.read(this,P,!0,23,4)},o.prototype.readFloatBE=function(P,n){return n||ie(P,4,this.length),j.read(this,P,!1,23,4)},o.prototype.readDoubleLE=function(P,n){return n||ie(P,8,this.length),j.read(this,P,!0,52,8)},o.prototype.readDoubleBE=function(P,n){return n||ie(P,8,this.length),j.read(this,P,!1,52,8)},o.prototype.writeUIntLE=function(P,n,s,O){(P=+P,n|=0,s|=0,!O)&&ee(this,P,n,s,Math.pow(2,8*s)-1,0);var b=1,E=0;for(this[n]=255&P;++E<s&&(b*=256);)this[n+E]=P/b&255;return n+s},o.prototype.writeUIntBE=function(P,n,s,O){(P=+P,n|=0,s|=0,!O)&&ee(this,P,n,s,Math.pow(2,8*s)-1,0);var b=s-1,E=1;for(this[n+b]=255&P;--b>=0&&(E*=256);)this[n+b]=P/E&255;return n+s},o.prototype.writeUInt8=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,1,255,0),o.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),this[n]=255&P,n+1},o.prototype.writeUInt16LE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=255&P,this[n+1]=P>>>8):Y(this,P,n,!0),n+2},o.prototype.writeUInt16BE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=P>>>8,this[n+1]=255&P):Y(this,P,n,!1),n+2},o.prototype.writeUInt32LE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n+3]=P>>>24,this[n+2]=P>>>16,this[n+1]=P>>>8,this[n]=255&P):F(this,P,n,!0),n+4},o.prototype.writeUInt32BE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n]=P>>>24,this[n+1]=P>>>16,this[n+2]=P>>>8,this[n+3]=255&P):F(this,P,n,!1),n+4},o.prototype.writeIntLE=function(P,n,s,O){if(P=+P,n|=0,!O){var b=Math.pow(2,8*s-1);ee(this,P,n,s,b-1,-b)}var E=0,G=1,V=0;for(this[n]=255&P;++E<s&&(G*=256);)P<0&&V===0&&this[n+E-1]!==0&&(V=1),this[n+E]=(P/G>>0)-V&255;return n+s},o.prototype.writeIntBE=function(P,n,s,O){if(P=+P,n|=0,!O){var b=Math.pow(2,8*s-1);ee(this,P,n,s,b-1,-b)}var E=s-1,G=1,V=0;for(this[n+E]=255&P;--E>=0&&(G*=256);)P<0&&V===0&&this[n+E+1]!==0&&(V=1),this[n+E]=(P/G>>0)-V&255;return n+s},o.prototype.writeInt8=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,1,127,-128),o.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),P<0&&(P=255+P+1),this[n]=255&P,n+1},o.prototype.writeInt16LE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=255&P,this[n+1]=P>>>8):Y(this,P,n,!0),n+2},o.prototype.writeInt16BE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=P>>>8,this[n+1]=255&P):Y(this,P,n,!1),n+2},o.prototype.writeInt32LE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[n]=255&P,this[n+1]=P>>>8,this[n+2]=P>>>16,this[n+3]=P>>>24):F(this,P,n,!0),n+4},o.prototype.writeInt32BE=function(P,n,s){return P=+P,n|=0,s||ee(this,P,n,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),o.TYPED_ARRAY_SUPPORT?(this[n]=P>>>24,this[n+1]=P>>>16,this[n+2]=P>>>8,this[n+3]=255&P):F(this,P,n,!1),n+4},o.prototype.writeFloatLE=function(P,n,s){return M(this,P,n,!0,s)},o.prototype.writeFloatBE=function(P,n,s){return M(this,P,n,!1,s)},o.prototype.writeDoubleLE=function(P,n,s){return z(this,P,n,!0,s)},o.prototype.writeDoubleBE=function(P,n,s){return z(this,P,n,!1,s)},o.prototype.copy=function(P,n,s,O){if(s||(s=0),O||O===0||(O=this.length),n>=P.length&&(n=P.length),n||(n=0),O>0&&O<s&&(O=s),O===s)return 0;if(P.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("sourceStart out of bounds");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),P.length-n<O-s&&(O=P.length-n+s);var b,E=O-s;if(this===P&&s<n&&n<O)for(b=E-1;b>=0;--b)P[b+n]=this[b+s];else if(E<1e3||!o.TYPED_ARRAY_SUPPORT)for(b=0;b<E;++b)P[b+n]=this[b+s];else Uint8Array.prototype.set.call(P,this.subarray(s,s+E),n);return E},o.prototype.fill=function(P,n,s,O){if(typeof P=="string"){if(typeof n=="string"?(O=n,n=0,s=this.length):typeof s=="string"&&(O=s,s=this.length),P.length===1){var b=P.charCodeAt(0);b<256&&(P=b)}if(O!==void 0&&typeof O!="string")throw new TypeError("encoding must be a string");if(typeof O=="string"&&!o.isEncoding(O))throw new TypeError("Unknown encoding: "+O)}else typeof P=="number"&&(P&=255);if(n<0||this.length<n||this.length<s)throw new RangeError("Out of range index");if(s<=n)return this;n>>>=0,s=s===void 0?this.length:s>>>0,P||(P=0);var E;if(typeof P=="number")for(E=n;E<s;++E)this[E]=P;else{var G=o.isBuffer(P)?P:oe(new o(P,O).toString()),V=G.length;for(E=0;E<s-n;++E)this[E+n]=G[E%V]}return this};var me=/[^+\/0-9A-Za-z-_]/g}).call(t,i(20))},function(fe,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(S){typeof window=="object"&&(i=window)}fe.exports=i},function(fe,t,i){"use strict";function S(c){var A=c.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[A-2]==="="?2:c[A-1]==="="?1:0}function m(c){return 3*c.length/4-S(c)}function g(c){var A,w,h,T,x,v=c.length;T=S(c),x=new a(3*v/4-T),w=T>0?v-4:v;var _=0;for(A=0;A<w;A+=4)h=e[c.charCodeAt(A)]<<18|e[c.charCodeAt(A+1)]<<12|e[c.charCodeAt(A+2)]<<6|e[c.charCodeAt(A+3)],x[_++]=h>>16&255,x[_++]=h>>8&255,x[_++]=255&h;return T===2?(h=e[c.charCodeAt(A)]<<2|e[c.charCodeAt(A+1)]>>4,x[_++]=255&h):T===1&&(h=e[c.charCodeAt(A)]<<10|e[c.charCodeAt(A+1)]<<4|e[c.charCodeAt(A+2)]>>2,x[_++]=h>>8&255,x[_++]=255&h),x}function o(c){return u[c>>18&63]+u[c>>12&63]+u[c>>6&63]+u[63&c]}function l(c,A,w){for(var h,T=[],x=A;x<w;x+=3)h=(c[x]<<16)+(c[x+1]<<8)+c[x+2],T.push(o(h));return T.join("")}function p(c){for(var A,w=c.length,h=w%3,T="",x=[],v=0,_=w-h;v<_;v+=16383)x.push(l(c,v,v+16383>_?_:v+16383));return h===1?(A=c[w-1],T+=u[A>>2],T+=u[A<<4&63],T+="=="):h===2&&(A=(c[w-2]<<8)+c[w-1],T+=u[A>>10],T+=u[A>>4&63],T+=u[A<<2&63],T+="="),x.push(T),x.join("")}t.byteLength=m,t.toByteArray=g,t.fromByteArray=p;for(var u=[],e=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=r.length;d<f;++d)u[d]=r[d],e[r.charCodeAt(d)]=d;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(fe,t){t.read=function(i,S,m,g,o){var l,p,u=8*o-g-1,e=(1<<u)-1,a=e>>1,r=-7,d=m?o-1:0,f=m?-1:1,c=i[S+d];for(d+=f,l=c&(1<<-r)-1,c>>=-r,r+=u;r>0;l=256*l+i[S+d],d+=f,r-=8);for(p=l&(1<<-r)-1,l>>=-r,r+=g;r>0;p=256*p+i[S+d],d+=f,r-=8);if(l===0)l=1-a;else{if(l===e)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,g),l-=a}return(c?-1:1)*p*Math.pow(2,l-g)},t.write=function(i,S,m,g,o,l){var p,u,e,a=8*l-o-1,r=(1<<a)-1,d=r>>1,f=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=g?0:l-1,A=g?1:-1,w=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(u=isNaN(S)?1:0,p=r):(p=Math.floor(Math.log(S)/Math.LN2),S*(e=Math.pow(2,-p))<1&&(p--,e*=2),S+=p+d>=1?f/e:f*Math.pow(2,1-d),S*e>=2&&(p++,e/=2),p+d>=r?(u=0,p=r):p+d>=1?(u=(S*e-1)*Math.pow(2,o),p+=d):(u=S*Math.pow(2,d-1)*Math.pow(2,o),p=0));o>=8;i[m+c]=255&u,c+=A,u/=256,o-=8);for(p=p<<o|u,a+=o;a>0;i[m+c]=255&p,c+=A,p/=256,a-=8);i[m+c-A]|=128*w}},function(fe,t){var i={}.toString;fe.exports=Array.isArray||function(S){return i.call(S)=="[object Array]"}},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,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"]}}}]),o}();t.default=g},function(fe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,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(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"get",value:function(p){for(var u=p+"",e=document.cookie.split(";"),a=0;a<e.length;a++){var r=e[a].trim();if(r.indexOf(u)==0)return unescape(r.substring(u.length+1,r.length))}return""}},{key:"set",value:function(p,u,e){var a=new Date;a.setTime(a.getTime()+24*e*60*60*1e3);var r="expires="+a.toGMTString();document.cookie=p+"="+escape(u)+"; "+r}}]),o}();t.default=g},function(fe,t,i){"use strict";function S(a){return a&&a.__esModule?a:{default:a}}function m(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function a(r,d){for(var f=0;f<d.length;f++){var c=d[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,d,f){return d&&a(r.prototype,d),f&&a(r,f),r}}(),o=i(8),l=S(o),p=i(9),u=S(p),e=function(){function a(){m(this,a)}return g(a,null,[{key:"refreshUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"RefreshUploadVideo",VideoId:d.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId},h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),T="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(T,function(x){var x=JSON.parse(x);f&&f(x)},function(x){if(c){var v=JSON.parse(x);c(v)}})}},{key:"getUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadVideo",Title:d.title,FileName:d.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.fileSize&&(w.FileSize=d.fileSize),d.description&&(w.Description=d.description),d.cateId&&(w.CateId=d.cateId),d.tags&&(w.Tags=d.tags),d.templateGroupId&&(w.TemplateGroupId=d.templateGroupId),d.storageLocation&&(w.StorageLocation=d.storageLocation),d.coverUrl&&(w.CoverURL=d.coverUrl),d.transCodeMode&&(w.TransCodeMode=d.transCodeMode),d.userData&&(w.UserData=JSON.stringify(d.userData));var h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),T="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(T,function(x){try{x=JSON.parse(x)}catch(v){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(x)},function(x){if(c){var v={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{v=JSON.parse(x)}catch(_){}c(v)}})}},{key:"getImageUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadImage",ImageType:d.imageType?d.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.title&&(w.Title=d.title),d.imageExt&&(w.ImageExt=d.imageExt),d.tags&&(w.Tags=d.tags),d.storageLocation&&(w.StorageLocation=d.storageLocation);var h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),T="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(T,function(x){x=JSON.parse(x),f&&f(x)},function(x){if(c){var v=JSON.parse(x);c(v)}})}}]),a}();t.default=e},function(fe,t,i){!function(S,m,g){fe.exports=t=m(i(0),i(28),i(29))}(0,function(S){return S.HmacSHA1})},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return function(){var m=S,g=m.lib,o=g.WordArray,l=g.Hasher,p=m.algo,u=[],e=p.SHA1=l.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,d){for(var f=this._hash.words,c=f[0],A=f[1],w=f[2],h=f[3],T=f[4],x=0;x<80;x++){if(x<16)u[x]=0|r[d+x];else{var v=u[x-3]^u[x-8]^u[x-14]^u[x-16];u[x]=v<<1|v>>>31}var _=(c<<5|c>>>27)+T+u[x];_+=x<20?1518500249+(A&w|~A&h):x<40?1859775393+(A^w^h):x<60?(A&w|A&h|w&h)-1894007588:(A^w^h)-899497514,T=h,h=w,w=A<<30|A>>>2,A=c,c=_}f[0]=f[0]+c|0,f[1]=f[1]+A|0,f[2]=f[2]+w|0,f[3]=f[3]+h|0,f[4]=f[4]+T|0},_doFinalize:function(){var r=this._data,d=r.words,f=8*this._nDataBytes,c=8*r.sigBytes;return d[c>>>5]|=128<<24-c%32,d[14+(c+64>>>9<<4)]=Math.floor(f/4294967296),d[15+(c+64>>>9<<4)]=f,r.sigBytes=4*d.length,this._process(),this._hash},clone:function(){var r=l.clone.call(this);return r._hash=this._hash.clone(),r}});m.SHA1=l._createHelper(e),m.HmacSHA1=l._createHmacHelper(e)}(),S.SHA1})},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){!function(){var m=S,g=m.lib,o=g.Base,l=m.enc,p=l.Utf8,u=m.algo;u.HMAC=o.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=p.parse(r));var d=a.blockSize,f=4*d;r.sigBytes>f&&(r=a.finalize(r)),r.clamp();for(var c=this._oKey=r.clone(),A=this._iKey=r.clone(),w=c.words,h=A.words,T=0;T<d;T++)w[T]^=1549556828,h[T]^=909522486;c.sigBytes=A.sigBytes=f,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var r=this._hasher,d=r.finalize(a);return r.reset(),r.finalize(this._oKey.clone().concat(d))}})}()})},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return function(){function m(u,e,a){for(var r=[],d=0,f=0;f<e;f++)if(f%4){var c=a[u.charCodeAt(f-1)]<<f%4*2,A=a[u.charCodeAt(f)]>>>6-f%4*2;r[d>>>2]|=(c|A)<<24-d%4*8,d++}return l.create(r,d)}var g=S,o=g.lib,l=o.WordArray,p=g.enc;p.Base64={stringify:function(e){var a=e.words,r=e.sigBytes,d=this._map;e.clamp();for(var f=[],c=0;c<r;c+=3)for(var A=a[c>>>2]>>>24-c%4*8&255,w=a[c+1>>>2]>>>24-(c+1)%4*8&255,h=a[c+2>>>2]>>>24-(c+2)%4*8&255,T=A<<16|w<<8|h,x=0;x<4&&c+.75*x<r;x++)f.push(d.charAt(T>>>6*(3-x)&63));var v=d.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join("")},parse:function(e){var a=e.length,r=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<r.length;f++)d[r.charCodeAt(f)]=f}var c=r.charAt(64);if(c){var A=e.indexOf(c);A!==-1&&(a=A)}return m(e,a,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),S.enc.Base64})},function(fe,t,i){"use strict";function S(_){return _&&_.__esModule?_:{default:_}}function m(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function _(C,D){for(var y=0;y<D.length;y++){var I=D[y];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(C,I.key,I)}}return function(C,D,y){return D&&_(C.prototype,D),y&&_(C,y),C}}(),o=i(8),l=S(o),p=i(7),u=S(p),e=i(4),a=S(e),r=i(6),d=S(r),f=i(1),c=S(f),A=i(9),w=S(A),h=i(2),T=i(11),x=i(10),v=function(){function _(){m(this,_)}return g(_,null,[{key:"getAuthInfo",value:function(D,y,I){var R=D+"|f#Ylm&^1TppeRhLg|"+I;return y&&(R=D+"|"+y+"|f#Ylm&^1TppeRhLg|"+I),h(x.parse(R)).toString(T)}},{key:"upload",value:function(D,y,I){var R=c.default.ISODateString(new Date),B=Math.floor(new Date().valueOf()/1e3),k=a.default.getClientId();k=a.default.setClientId(k);var W=_.getAuthInfo(D.userId,k,B),K=w.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:B,Timestamp:R,AuthInfo:W,FileName:D.file.name,FileSize:D.file.size,FileCreateTime:D.file.lastModified,FileHash:D.fileHash,UploadId:D.checkpoint.checkpoint.uploadId,PartSize:D.checkpoint.checkpoint.partSize,DonePartsCount:D.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(D.checkpoint),UploadRatio:D.checkpoint.loaded,UserId:D.userId,VideoId:D.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:K};k&&(H.ClientId=k);var re=w.default.makeUTF8sort(H,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga(H,D.accessKeySecret)),X="https://vod."+D.region+".aliyuncs.com/?"+re;l.default.get(X,function(ie){y&&y()},function(ie){ie&&(I(ie),console.log(ie))})}},{key:"get",value:function(D,y,I){var R=c.default.ISODateString(new Date),B=Math.floor(new Date().valueOf()/1e3),k=a.default.getClientId(),W=_.getAuthInfo(D.userId,k,B),K=w.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:B,Timestamp:R,AuthInfo:W,UserId:D.userId,UploadInfoList:JSON.stringify(D.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:K};k&&(H.ClientId=k);var re=w.default.makeUTF8sort(H,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga(H,D.accessKeySecret)),X="https://vod."+D.region+".aliyuncs.com/?"+re;l.default.get(X,function(ie){var ee={},Y=k;ie=ie?JSON.parse(ie):{},ie.UploadProgress&&ie.UploadProgress.UploadProgressList&&ie.UploadProgress.UploadProgressList.length>0&&(ee=ie.UploadProgress.UploadProgressList[0],Y=ee.ClientId),a.default.setClientId(Y),y&&y(ee)},function(ie){ie&&(I(ie),console.log(ie))})}}]),_}();t.default=v},function(fe,t,i){"use strict";function S(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function p(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&p(u.prototype,e),a&&p(u,a),u}}(),g=i(2),o=i(33),l=(i(11),function(){function p(){S(this,p)}return m(p,null,[{key:"getMd5",value:function(e,a,r){var d=new FileReader;d.onload=function(A){try{if(A&&A.target){var w=g(o.parse(A.target.result)),h=w.toString();a(h)}}catch(T){console.log(T)}},d.onerror=function(A){console.log(A),errorCallback(A)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=f.call(e,0,1024);d.readAsBinaryString(c)}}]),p}());t.default=l},function(fe,t,i){!function(S,m){fe.exports=t=m(i(0))}(0,function(S){return S.enc.Latin1})}])}).call(this,J("yLpj"))},sBCT:function(pt,ye,J){"use strict";var je=J("MXD1"),ce=J("CFYs"),fe=J("WmNS"),t=J.n(fe),i=J("9og8"),S=J("2qtc"),m=J("kLXV"),g=J("miYZ"),o=J("tsqr"),l=J("y8nQ"),p=J("Vl3Y"),u=J("tJVT"),e=J("k1fw"),a=J("oBTY"),r=J("5NDa"),d=J("5rEg"),f=J("q1tI"),c=J.n(f),A=J("Ty5D"),w=J("55Ip"),h=J("9kvl"),T=J("kwm0"),x=J.n(T),v=J("Aky1"),_=d.a.TextArea,C=500,D=function(R,B){var k,W=B.payload||{},K=W.uploadInfo,H=K===void 0?{}:K;switch(B.type){case"addVideo":return{videoList:[].concat(Object(a.a)(R.videoList),[{name:H.file.name,size:H.file.size,type:H.file.type,fileHash:H.fileHash,state:H.state,videoId:H.videoId,loaded:H.loaded||0,title:""}])};case"removeVideo":return{videoList:R.videoList.filter(function(re){return re.name!==B.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:R.videoList.map(function(re){return re.name===B.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},re),{loaded:B.payload.progressPercent,videoId:H.videoId,fileHash:H.fileHash}):re})};case"updateTitle":return{videoList:(k=R.videoList)===null||k===void 0?void 0:k.map(function(re){return re.name===B.payload.item.name?Object(e.a)(Object(e.a)({},re),{title:B.payload.title}):re})};default:return{videoList:[]}}},y=function(R){var B,k=R.user,W=R.globalSetting,K=R.loading,H=R.dispatch,re=R.visible,X=R.editData,ie=R.onCancel,ee=ie===void 0?function(){}:ie,Y=R.onOk,F=Y===void 0?function(){}:Y,U=Object(A.m)(),M=p.a.useForm(),z=Object(u.a)(M,1),q=z[0],Z=Object(f.useReducer)(D,{videoList:[]}),de=Object(u.a)(Z,2),oe=de[0],he=de[1],_e=Object(f.useState)(!1),ne=Object(u.a)(_e,2),te=ne[0],se=ne[1],N=Object(f.useRef)(),j=Object(f.useState)(),$=Object(u.a)(j,2),ae=$[0],me=$[1],P=Object(f.useState)(!1),n=Object(u.a)(P,2),s=n[0],O=n[1],b=Object(f.useState)(!1),E=Object(u.a)(b,2),G=E[0],V=E[1];Object(f.useEffect)(function(){if(!X)return;O(X.is_link),me(X.link),!X.is_link&&he({type:"addVideo",payload:{uploadInfo:{file:{name:X.file_name},videoId:X.video_id,loaded:100}}}),q.setFieldsValue({name:X.name,description:X.description})},[X]);var L=function(){var Re=document.getElementById("fileUpload");Re.value=""},Q=function(Re){var ze,ot,Ze;O(!1);var et=Re.target.files[0];if(!et){L();return}var dt=et.name.toLowerCase();if(dt&&dt.indexOf(".avi")==-1&&dt.indexOf(".flv")==-1&&dt.indexOf(".f4v")==-1&&dt.indexOf(".m4v")==-1&&dt.indexOf(".mov")==-1&&dt.indexOf(".mp4")==-1&&dt.indexOf(".rmvb")==-1&&dt.indexOf(".swf")==-1&&dt.indexOf(".webm")==-1&&dt.indexOf(".wmv")==-1){o.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),L();return}if(!(((ze=k.userInfo)===null||ze===void 0?void 0:ze.admin)||((ot=k.userInfo)===null||ot===void 0?void 0:ot.business))&&et.size>C*1024*1024){o.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(C,"M")),L();return}if((Ze=oe.videoList)===null||Ze===void 0?void 0:Ze.find(function(Et){return Et.name===et.name})){o.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),L();return}pe(et)},ue=function(Re,ze){m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ze?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){L(),he({type:"removeVideo",payload:{name:Re}})}})},pe=function(Re){var ze,ot='{"Vod":{}}';if(se(!0),N.current){N.current.addFile(Re,null,null,null,ot);return}Object(v.a)((ze=k.userInfo)===null||ze===void 0?void 0:ze.login,{create:!N,addFileSuccess:function(et){he({type:"addVideo",payload:{uploadInfo:et}})},onUploadProgress:function(et,dt,Et){var nn=Math.ceil(Et*100);he({type:"updateProgress",payload:{uploadInfo:et,progressPercent:nn}}),L()},onUploadFailed:function(et){o.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(et){se(!1)},onUploadSucceed:function(et){se(!1)},onUploadError:function(et){se(!1)},gotUploader:function(et){et.addFile(Re,null,null,null,ot),N.current=et}})},ve=function(){var Be=Object(i.a)(t.a.mark(function Re(){var ze,ot,Ze,et;return t.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,q.validateFields();case 2:if(!(!s&&!((ze=oe.videoList)===null||ze===void 0?void 0:ze.length)||s&&!ae)){Et.next=5;break}return o.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Et.abrupt("return");case 5:return V(!0),Ze=s?{link:ae}:{video_id:(ot=oe.videoList)===null||ot===void 0?void 0:ot[0].videoId},Et.next=9,F(Object(e.a)(Object(e.a)({},Ze),{name:q.getFieldValue("name"),description:q.getFieldValue("description")}));case 9:et=Et.sent,V(!1),et.id&&we();case 12:case"end":return Et.stop()}},Re)}));return function(){return Be.apply(this,arguments)}}(),we=function(){q.resetFields(),he({type:"removeAll"}),me(null),O(null)},le=function(){ee(),we()},Ae=function(){var Re,ze,ot,Ze,et,dt,Et,nn,En,bn,Qt,Ln;return c.a.createElement(c.a.Fragment,null,!s&&!!((Re=oe.videoList)===null||Re===void 0?void 0:Re.length)&&c.a.createElement("div",{className:x.a.fileProgress},((ze=oe.videoList)===null||ze===void 0||((ot=ze[0])===null||ot===void 0)?void 0:ot.loaded)==100?c.a.createElement("div",{className:"".concat(x.a.videoName," font14")},(Ze=oe.videoList)===null||Ze===void 0||((et=Ze[0])===null||et===void 0)?void 0:et.name):c.a.createElement(ce.a,{style:{width:"80%"},percent:(dt=oe.videoList)===null||dt===void 0||((Et=dt[0])===null||Et===void 0)?void 0:Et.loaded,status:((nn=oe.videoList)===null||nn===void 0||((En=nn[0])===null||En===void 0)?void 0:En.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:x.a.fileCancel,onClick:function(){var Pn,Rn,Mn,kn;return ue((Pn=oe.videoList)===null||Pn===void 0||((Rn=Pn[0])===null||Rn===void 0)?void 0:Rn.name,((Mn=oe.videoList)===null||Mn===void 0||((kn=Mn[0])===null||kn===void 0)?void 0:kn.loaded)==100)}},((bn=oe.videoList)===null||bn===void 0||((Qt=bn[0])===null||Qt===void 0)?void 0:Qt.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ln=oe.videoList)===null||Ln===void 0?void 0:Ln.length)&&c.a.createElement("div",{className:x.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:x.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(x.a.upload," ").concat(x.a.uploadLink),onClick:function(){return O(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),s&&c.a.createElement(d.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ae,onChange:function(Pn){return me(Pn.target.value)}}))};return c.a.createElement(m.a,{centered:!0,maskClosable:!1,title:X?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:x.a.modal,visible:re,confirmLoading:G,onOk:ve,onCancel:le},c.a.createElement(p.a,{form:q},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Q,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(d.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:x.a.contentItem},Ae()),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(w.Link,{to:"/users/".concat((B=k.userInfo)===null||B===void 0?void 0:B.login,"/videos/protocol"),target:"_blank",className:x.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"))))};ye.a=Object(h.a)(function(I){var R=I.user,B=I.loading,k=I.globalSetting;return{user:R,globalSetting:k,loading:B}})(y)},xKgJ:function(pt,ye,J){"use strict";J.d(ye,"o",function(){return S}),J.d(ye,"b",function(){return m}),J.d(ye,"c",function(){return g}),J.d(ye,"e",function(){return o}),J.d(ye,"f",function(){return l}),J.d(ye,"r",function(){return p}),J.d(ye,"g",function(){return u}),J.d(ye,"s",function(){return e}),J.d(ye,"d",function(){return a}),J.d(ye,"i",function(){return r}),J.d(ye,"j",function(){return d}),J.d(ye,"q",function(){return f}),J.d(ye,"h",function(){return c}),J.d(ye,"p",function(){return A}),J.d(ye,"a",function(){return _}),J.d(ye,"l",function(){return oe}),J.d(ye,"m",function(){return he}),J.d(ye,"k",function(){return _e}),J.d(ye,"n",function(){return te}),J.d(ye,"t",function(){return se});var je=J("9kvl"),ce;(function(N){N[N.SuperAdmin=1]="SuperAdmin",N[N.Operation=2]="Operation",N[N.CertifiedTeacher=5]="CertifiedTeacher",N[N.TrainingProduction=8]="TrainingProduction",N[N.UncertifiedTeacher=12]="UncertifiedTeacher",N[N.Student=15]="Student"})(ce||(ce={}));var fe;(function(N){N[N.SuperAdmin=1]="SuperAdmin",N[N.Operation=2]="Operation",N[N.Admin=5]="Admin",N[N.Teacher=8]="Teacher",N[N.Assistant=12]="Assistant",N[N.Student=15]="Student"})(fe||(fe={}));var t=function(j){var $=Object(je.b)()._store.getState(),ae=$.user,me=ae.userInfo;return j.some(function(P){return P==(me==null?void 0:me.role)})},i=function(j){var $=Object(je.b)()._store.getState(),ae=$.user,me=ae.userInfo;return(me==null?void 0:me.own)?!0:j.some(function(P){var n;return P==(me==null||((n=me.course)===null||n===void 0)?void 0:n.course_role)})},S=function(){var j=Object(je.b)()._store.getState(),$=j.user,ae=$.userInfo;return ae.main_site},m=function(){var j,$=Object(je.b)()._store.getState(),ae=$.user,me=ae.userInfo;return me==null||((j=me.course)===null||j===void 0)?void 0:j.course_is_end},g=function(){return i([fe.SuperAdmin,fe.Operation,fe.Admin,fe.Teacher,fe.Assistant])},o=function(){return i([fe.SuperAdmin,fe.Teacher,fe.Admin,fe.Assistant,fe.Operation])},l=function(){return i([fe.SuperAdmin,fe.Teacher,fe.Admin])},p=function(){return i([fe.SuperAdmin])},u=function(){return i([fe.SuperAdmin,fe.Operation,fe.Admin])},e=function(){return i([fe.SuperAdmin,fe.Operation])},a=function(){return i([fe.SuperAdmin,fe.Admin])},r=function(){return i([fe.SuperAdmin,fe.Operation,fe.Admin,fe.Teacher])},d=function(){return i([fe.Assistant])},f=function(){return i([fe.Student])},c=function(){return i([fe.SuperAdmin,fe.Operation,fe.Admin,fe.Teacher,fe.Assistant,fe.Student])},A=function(){var j,$=Object(je.b)()._store.getState(),ae=$.user,me=ae.userInfo;return(me==null||((j=me.course)===null||j===void 0)?void 0:j.course_role)===null},w=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student])},h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $||!$&&t([ce.SuperAdmin])},T=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $||!$&&t([ce.SuperAdmin,ce.Operation])},x=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student]):$||!$&&t([ce.SuperAdmin,ce.Operation])},v=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student]):$||!$&&t([ce.SuperAdmin,ce.Operation])},_=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction])},C=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin]):$||!$&&t([ce.SuperAdmin])},D=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation]):$||!$&&t([ce.SuperAdmin,ce.Operation])},y=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student]):$||!$&&t([ce.SuperAdmin,ce.Operation])},I=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher]):$||!$&&t([ce.SuperAdmin,ce.Operation])},R=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher]):$||!$&&t([ce.SuperAdmin,ce.Operation])},B=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin]):!1},k=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student])},W=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin]):$||!$&&t([ce.SuperAdmin])},K=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation]):$||!$&&t([ce.SuperAdmin,ce.Operation])},H=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher,ce.Student]):$||!$&&t([ce.SuperAdmin,ce.Operation])},re=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?!1:$||!$&&t([ce.SuperAdmin,ce.Operation])},X=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?$||!$&&t([ce.SuperAdmin,ce.Operation]):!1},ie=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher]):!1},ee=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?!$&&t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher]):!1},Y=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher]):$||!$&&t([ce.SuperAdmin,ce.Operation])},F=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher])},U=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin]):$||!$&&t([ce.SuperAdmin])},M=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation]):$||!$&&t([ce.SuperAdmin,ce.Operation])},z=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher]):$||!$&&t([ce.SuperAdmin,ce.Operation])},q=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?$||!$&&t([ce.SuperAdmin,ce.Operation]):!1},Z=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j?t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher,ce.TrainingProduction,ce.UncertifiedTeacher]):$||!$&&t([ce.SuperAdmin,ce.Operation])},de=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return i([fe.Teacher])},oe=function(){return t([ce.SuperAdmin])},he=function(){return t([ce.SuperAdmin,ce.Operation])},_e=function(){return t([ce.Student])},ne=function(){return t([ce.SuperAdmin,ce.Operation,ce.CertifiedTeacher])},te=function(){var j,$=Object(je.b)()._store.getState(),ae=$.user;return!!((j=ae.userInfo)===null||j===void 0?void 0:j.login)},se=function(){var j=Object(je.b)()._store.getState(),$=j.user;return $.userInfo}}}]);
|