|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[52,4,5,6,7,9,10,12,14],{"1vsH":function(e,_,l){"use strict";l.d(_,"i",function(){return r}),l.d(_,"k",function(){return s}),l.d(_,"e",function(){return n}),l.d(_,"h",function(){return a}),l.d(_,"c",function(){return b}),l.d(_,"f",function(){return p}),l.d(_,"g",function(){return m}),l.d(_,"a",function(){return T}),l.d(_,"C",function(){return x}),l.d(_,"B",function(){return E}),l.d(_,"D",function(){return M}),l.d(_,"E",function(){return O}),l.d(_,"s",function(){return S}),l.d(_,"r",function(){return w}),l.d(_,"p",function(){return h}),l.d(_,"o",function(){return L}),l.d(_,"A",function(){return C}),l.d(_,"j",function(){return G}),l.d(_,"z",function(){return P}),l.d(_,"u",function(){return oe}),l.d(_,"l",function(){return z}),l.d(_,"x",function(){return te}),l.d(_,"n",function(){return Y}),l.d(_,"d",function(){return j}),l.d(_,"b",function(){return F}),l.d(_,"t",function(){return k}),l.d(_,"y",function(){return ee}),l.d(_,"w",function(){return ae}),l.d(_,"m",function(){return ne}),l.d(_,"v",function(){return le}),l.d(_,"q",function(){return q});var i=l("jrin"),t=l("q1tI"),y=l.n(t),c=l("xKgJ"),f=l("aCH8"),d=l.n(f),r=["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"],u=function(D){var X={\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 D.data&&D.data.map(function($,Q){return y.a.createElement("span",{key:Q,className:X[$]&&X[$].class},$)})},s=function(D){var X,$=(X={},Object(i.a)(X,-1,"\u91CD\u505A\u4E2D"),Object(i.a)(X,0,"\u672A\u5F00\u542F"),Object(i.a)(X,1,"\u672A\u901A\u5173"),Object(i.a)(X,2,"\u6309\u65F6\u901A\u5173"),X);return $[D]||"\u8FDF\u4EA4\u901A\u5173"},n=function(D){var X,$,Q,se=(X={},Object(i.a)(X,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(i.a)(X,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(i.a)(X,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(i.a)(X,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(i.a)(X,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),X);return y.a.createElement("span",{className:se==null||(($=se[D.status])===null||$===void 0)?void 0:$.class},se==null||((Q=se[D.status])===null||Q===void 0)?void 0:Q.name)},a=function(D){var X=D.status,$={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 y.a.createElement("span",{className:$[X].class},$[X].name)}catch(Q){console.log("utils.StatusGraduationProjectTags",D.status)}},b={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},p={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},m=function(D){var X={\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"}},$=[];D.is_random&&$.push(y.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{D.status&&D.status.map(function(Q,se){$.push(y.a.createElement("span",{key:se,className:X[Q]&&X[Q].class},Q))})}catch(Q){console.log("utils.status.tag:",Q,D.status)}return $},A=function(D){var X,$,Q,se=(X={},Object(i.a)(X,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(i.a)(X,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(i.a)(X,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(i.a)(X,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(i.a)(X,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),X);return y.a.createElement("span",{className:($=se[D.status])===null||$===void 0?void 0:$.class},(Q=se[D.status])===null||Q===void 0?void 0:Q.name)},T=function(D){var X,$,Q={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 y.a.createElement("span",{className:(X=Q[D.status])===null||X===void 0?void 0:X.class},($=Q[D.status])===null||$===void 0?void 0:$.name)},x=function(D){D=new Date(D).getTime();var X=1e3*60,$=X*60,Q=$*24,se="",H=new Date().getTime(),U=H-D;if(U<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),se="\u521A\u521A";var J=parseInt(U/Q,10),N=parseInt(U/$,10),g=parseInt(U/X,10);return J>30?se=""+E(D,"yyyy-MM-dd"):J>1?se=""+J+"\u5929\u524D":J==1?se="\u6628\u5929":N>=1?se=""+N+"\u5C0F\u65F6\u524D":g>=5?se=""+g+"\u5206\u949F\u524D":se="\u521A\u521A",se},E=function(D,X){typeof D=="string"&&(D.indexOf("T")>=0&&(D=D.replace("T"," ")),D=new Date(Date.parse(D.replace(/-/g,"/")))),D=new Date(D);var $={"M+":D.getMonth()+1,"d+":D.getDate(),"h+":D.getHours(),"m+":D.getMinutes(),"s+":D.getSeconds(),"q+":Math.floor((D.getMonth()+3)/3),S:D.getMilliseconds()},Q=[["\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(X)&&(X=X.replace(RegExp.$1,(D.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(X)&&(X=X.replace(RegExp.$1,Q[RegExp.$1.length-1][D.getDay()]));for(var se in $)new RegExp("("+se+")").test(X)&&(X=X.replace(RegExp.$1,RegExp.$1.length==1?$[se]:("00"+$[se]).substr((""+$[se]).length)));return X},M=function(D){if(!D||D<0)return"0\u79D2";console.log("time:",D);var X=60,$=X*60,Q=$*24,se=D/Q,H=D/$,U=D/X,J=D%60;return se>=1?parseInt(se.toString())+"\u5929"+Math.floor(H%24)+"\u65F6"+Math.floor(U%60)+"\u5206"+Math.floor(D%60)+"\u79D2":H>1?parseInt(H.toString())+"\u65F6"+Math.floor(U%60)+"\u5206"+Math.floor(D%60)+"\u79D2":U>=1?parseInt(U.toString())+"\u5206"+Math.floor(D%60)+"\u79D2":Math.ceil(D)+"\u79D2"},O=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,$=0;if(D){$=D.length;for(var Q=0;Q<$;Q++){var se=D.charCodeAt(Q);se>=55296&&se<=56319&&($--,Q++)}}return $<=X},S=function(D,X,$){if(X){var Q=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,se=/[\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,H=se.test(X),U=Q.test(X);(H===!0||U===!0||(X.length<2||X.length>=21))&&$("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}$()},w=function(D,X,$){if(X){var Q=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,se=/[\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,H=se.test(X),U=Q.test(X);(H===!0||U===!0||(X.length<2||X.length>=11))&&$("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}$()},h=function(D){if(!D)return"";for(var X=D.length-1,$="",Q=0;Q<X;Q++)$+="*";var se=D.substr(0,1)+$;return se},L=function(D,X){var $=new FileReader;$.addEventListener("load",function(){return X($.result)}),$.readAsDataURL(D)};function C(pe){var D="79e33abd4b6588941ab7622aed1e67e8";return d()(D+pe)}var I=function(D){var X,$=RegExp("(^| )"+D+"=([^;]+)(;|$)");return(X=document.cookie.match($))?decodeURIComponent(X[2]):null};function R(pe,D,X){var $=new Date;$.setTime($.getTime()+X*24*60*60*1e3);var Q="expires="+$.toUTCString();document.cookie=pe+"="+D+"; "+Q}var B=function(D){document.cookie=D+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function G(pe,D){return new Promise(function(X,$){var Q=D,se=document.createElement("iframe"),H;console.log("downloadFileUrl",Q),document.body.appendChild(se),se.src=Q,se.style.display="none",H=setInterval(function(){I("fileDownload")&&(B("fileDownload"),clearInterval(H),X())},1e3)})}var P=function(D){var X=D.url,$=D.query;return X?($&&function(){var Q=[],se=function(J){$.hasOwnProperty(J)&&!le($[J])&&(typeof $[J]=="object"?$[J].map(function(N){Q.push("".concat(J,"[]=").concat(N))}):Q.push("".concat(J,"=").concat($[J])))};for(var H in $)se(H);X.indexOf("?")!==-1?X="".concat(X,"&").concat(Q.join("&")):X="".concat(X,"?").concat(Q.join("&")),console.log("url1111",X)}(),X):""};function oe(){for(var pe=navigator.userAgent,D=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],X=!0,$=0;$<D.length;$++)if(pe.indexOf(D[$])>0){X=!1;break}return X}var z=function(){var D,X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return X==null||((D=X.toString())===null||D===void 0)?void 0:D.replace(/\B(?=(\d{3})+(?!\d))/g,",")},te=function(D){var X=document.createElement("a");X.target="_blank",document.body.appendChild(X),X.href=D;var $=document.createEvent("MouseEvents");$.initEvent("click",!1,!1),X.dispatchEvent($),document.body.removeChild(X)},Y=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return D.length<=6?D:"".concat(D.substring(0,3),"...").concat(D.substring(D.length-3,D.length))},j=function(){var D=new Date().getHours(),X=new Date().getMinutes();return X>=30?(D++,X="00"):X="30",D+":"+X},F=function(){var D=new Date().getHours(),X=new Date().getMinutes();return X>=30?(D++,X="00"):X="30",new Date().toLocaleDateString().replace(/\//g,"-")+" "+D+":"+X},V;(function(pe){pe.Number="Number",pe.String="String",pe.Boolean="Boolean",pe.Object="Object",pe.Array="Array",pe.Function="Function"})(V||(V={}));var Z=function(D){var X=Object.prototype.toString.call(D);return X.substring(8,X.length-1)},k=function(D){return Z(D)===V.Array?D.length===0:Z(D)===V.Object?Object.keys(D).length===0:!D},ee=function(D,X){for(var $=[],Q=D;Q<X;Q++)$.push(Q);return $},ae=function(D){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,$=X/2-2,Q=X/2+3;return D.length>X?D.substr(0,$)+"..."+D.substr(Q,X):D},ne=function(D){return D>4.5?5:D>4&&D<=4.5?4.5:D>3.5&&D<=4?4:D>3&&D<=3.5?3.5:D>2.5&&D<=3?3:D>2&&D<=2.5?2.5:D>1.5&&D<=2?2:D>1&&D<=1.5?1.5:D>.5&&D<=1?1:D>0&&D<=.5?.5:0},le=function(D){return D==null};function fe(pe,D){var X=new RegExp("(^|&)".concat(pe,"=([^&]*)(&|$)"),"i"),$=D.substr(1).match(X);return $!=null?decodeURIComponent($[2]):null}var q=function(D){switch(D.container_type){case"ApplyUserAuthentication":if(D.tiding_type==="Apply"){if(D.auth_type===1)return window.open("/admins/identity_authentications");if(D.auth_type===2)return window.open("/admins/professional_authentications")}return D.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 D.tiding_type==="Apply"?window.open("/admins/department_applies"):D.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return D.tiding_type==="Apply"?window.open("/admins/unit_applies"):D.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(D.parent_container_type){case"ApplyShixun":if(D.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(D.tiding_type==="System")return window.open("/shixuns/".concat(D.identifier,"/challenges"));case"ApplySubject":if(D.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(D.tiding_type==="System")return window.open("/paths/".concat(D.parent_container_id));case"TrialAuthorization":if(D.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(D.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(D.belong_container_id,"/teachers"));case"StudentJoinCourse":if(D.tiding_type==="Apply")return window.open("/classrooms/".concat(D.belong_container_id,"/teachers"));if(D.tiding_type==="System")return window.open("/classrooms/".concat(D.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/"));case"Course":return D.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(D.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(D.container_id));case"JournalsForMessage":switch(D.parent_container_type){case"Principal":return"";case"HomeworkCommon":return D.homework_type==="normal"?window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/question")):D.homework_type==="group"?window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/question")):D.homework_type==="practice"?window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_topics/").concat(D.parent_container_id,"/detail"));case"StudentWorksScore":return D.homework_type==="normal"?window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/question")):D.homework_type==="group"?window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/question")):D.homework_type==="practice"?window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(D.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(D.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(D.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(D.container_id));case"DealProject":return window.open("/projects/".concat(D.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(D.container_id));case"Poll":switch(D.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(D.belong_container_id,"/poll/").concat(D.container_id,"/detail"));default:return window.open(" /classrooms/".concat(D.belong_container_id,"/poll/").concat(D.container_id,"/detail"))}case"Exercise":switch(D.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(D.belong_container_id,"/exercise/").concat(D.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(D.belong_container_id,"/exercise/").concat(D.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(D.belong_container_id,"/exercise/").concat(D.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_topics/").concat(D.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_topics/").concat(D.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_tasks/").concat(D.container_id));case"GraduationWork":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_tasks/").concat(D.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(D.belong_container_id,"/graduation_tasks/").concat(D.parent_container_id));case"HomeworkCommon":switch(D.parent_container_type){case"AnonymousCommentFail":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="practice")return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="practice")return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="practice")return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=0"));default:if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/detail"));if(D.homework_type==="practice")return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/review/").concat(D.container_id));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/review/").concat(D.container_id));if(D.homework_type==="practice")return window.open("/classrooms/".concat(D.belong_container_id,"/shixun_homework/").concat(D.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.trigger_user.id,"/review/").concat(D.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.trigger_user.id,"/review/").concat(D.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(D.parent_container_id));case"Issue":return window.open("/issues/".concat(D.container_id));case"PullRequest":return window.open("/projects/".concat(D.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if(D.tiding_type==="Apply")return window.open("/admins/library_applies");if(D.tiding_type==="System")return window.open("/moop_cases/".concat(D.container_id));case"ProjectPackage":return D.tiding_type==="Destroyed"||D.tiding_type==="Destroyed_end"?void 0:D.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(D.container_id));case"Discuss":return D.parent_container_type==="Hack"&&D.extra?window.open("/myproblems/".concat(D.extra,"/comment")):window.open("/shixuns/".concat(D.identifier,"/shixun_discuss"));case"Video":if(D.tiding_type==="Apply")return window.open("/admins/video_applies");if(D.tiding_type==="System"){var X;return window.open("/users/".concat((X=Object(c.t)())===null||X===void 0?void 0:X.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(D.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(D.container_id));case"ResubmitStudentWork":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id,"/").concat(D.container_id,"/appraise"));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id,"/").concat(D.container_id,"/appraise"));case"AdjustScore":if(D.homework_type==="normal")return window.open("/classrooms/".concat(D.belong_container_id,"/common_homework/").concat(D.parent_container_id));if(D.homework_type==="group")return window.open("/classrooms/".concat(D.belong_container_id,"/group_homework/").concat(D.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(D.belong_container_id,"/course_videos?open=live"));case"Hack":if(D.extra&&D.parent_container_type!=="HackDelete")return window.open("/problems/".concat(D.extra,"/edit"));default:return}}},"7ahc":function(e,_,l){"use strict";l.d(_,"a",function(){return M});var i=l("k1fw"),t=l("0Owb"),y=l("+L6B"),c=l("2/Rp"),f=l("y8nQ"),d=l("Vl3Y"),r=l("tJVT"),u=l("OaEy"),s=l("2fM7"),n=l("q1tI"),a=l.n(n),b=l("VrN/"),p=l.n(b),m=l("p77/"),A=l.n(m),T=s.a.Option,x={labelCol:{span:4},wrapperCol:{span:20}},E={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};_.b=function(O){var S=O.callback,w=O.onCancel,h=Object(n.useState)("python"),L=Object(r.a)(h,2),C=L[0],I=L[1];function R(G){I(E[G][1])}function B(G){S(G)}return a.a.createElement(d.a,Object(t.a)({},x,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:B}),a.a.createElement(d.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(s.a,{onChange:R},Object.keys(E).map(function(G){return a.a.createElement(T,{key:G,value:G},E[G][0])}))),a.a.createElement(d.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(M,{mode:C})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(c.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(c.a,{type:"ghost",onClick:w},"\u53D6\u6D88")))};function M(O){var S=O.value,w=O.onChange,h=O.mode,L=O.options,C=L===void 0?{}:L,I=Object(n.useRef)(),R=Object(n.useState)(),B=Object(r.a)(R,2),G=B[0],P=B[1];return Object(n.useEffect)(function(){if(G){var oe=function(te){var Y=te.getValue();w&&w(Y)};return G.on("change",oe),function(){G.off("change",oe)}}},[G,w]),Object(n.useEffect)(function(){G&&G.setOption("mode",h)},[G,h]),Object(n.useEffect)(function(){G&&(S!==G.getValue()&&G.setValue(S||""))},[G,S]),Object(n.useEffect)(function(){if(I.current&&!G){var oe=p.a.fromTextArea(I.current,Object(i.a)({mode:h,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},C));P(oe)}},[I.current,G]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:I}))}},"9Bee":function(e,_,l){"use strict";var i=l("q1tI"),t=l.n(i),y=l("vg9a"),c=l("tJVT"),f=l("DlQD"),d=l.n(f),r=l("rUJ1");function u(j,F){var V=j.match(/^(\s+)(?:```)/);if(V===null)return F;var Z=V[1];return F.split(`
|
|
|
`).map(function(k){var ee=k.match(/^\s+/);if(ee===null)return k;var ae=Object(c.a)(ee,1),ne=ae[0];return ne.length>=Z.length?k.slice(Z.length):k}).join(`
|
|
|
`)}var s=[],n=["<ul>"],a=new d.a.Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){s.length=0,n=["<ul>"]}function m(j,F,V,Z){if(F>=j.length||j[F].level<=V)return F;var k=j[F];Z.push("<li><a href='#"+k.anchor+"'>"+k.text+"</a>"),F++;var ee=[];return F=m(j,F,k.level,ee),ee.length>0&&(Z.push("<ul>"),ee.forEach(function(ae){Z.push(ae)}),Z.push("</ul>")),Z.push("</li>"),F=m(j,F,V,Z),F}function A(){return m(s,0,0,n),n.push("</ul>"),n.join("")}var T={heading:function(F){var V=b.exec(F);if(V)return{type:"heading",raw:V[0],depth:V[1].length,text:V[2]}},fences:function(F){var V=this.rules.block.fences.exec(F);if(V){var Z=V[0],k=u(Z,V[3]||""),ee=V[2]?V[2].trim():V[2];if(["latex","katex","math"].indexOf(ee)>=0){var ae=M(),ne=k;k=ae,O[ae]={type:"block",expression:ne}}return{type:"code",raw:Z,lang:ee,text:k}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,E=0,M=function(){return"__special_katext_id_".concat(E++,"__")},O={};function S(){return O}function w(){E=0,O={}}function h(j){return j=j.replace(x,function(F,V){var Z=M();return O[Z]={type:"inline",expression:V},Z}),j}var L=a.listitem;a.listitem=function(j){return L(h(j))};var C=a.paragraph;a.paragraph=function(j){return C(h(j))};var I=a.tablecell;a.tablecell=function(j,F){return I(h(j),F)},a.code=function(j,F,V){var Z=(F||"").match(/\S*/)[0];return Z?["latex","katex","math"].indexOf(Z)>=0?"<p class='editormd-tex'>".concat(j,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(F,'">').concat(V?j:Object(r.escape)(j,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(V?j:Object(r.escape)(j,!0))+"</code></pre>"},a.heading=function(j,F,V){var Z=this.options.headerPrefix+V.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:Z,level:F,text:j}),"<h"+F+' id="'+Z+'">'+j+"</h"+F+">"},d.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),d.a.use({tokenizer:T,renderer:a});var R=d.a,B=l("SJMd"),G=l("wMS7"),P=l.n(G),oe=l("Oy/b"),z=/<pre[^>]*>/g;function te(j){var F=document.createElement("div");return F.innerHTML=j,F.childNodes.length===0?"":F.childNodes[0].nodeValue}var Y=_.a=function(j){var F=j.value,V=F===void 0?"":F,Z=j.className,k=j.style,ee=k===void 0?{}:k,ae=String(V),ne=Object(i.useMemo)(function(){var q=R(ae),pe=S();return ae.match(/\[TOC\]/)&&(q=q.replace("<p>[TOC]</p>",A()),p()),q=q.replace(/(__special_katext_id_\d+__)/g,function(D,X){var $=pe[X],Q=$.type,se=$.expression;return Object(oe.renderToString)(te(se)||"",{displayMode:Q==="block",throwOnError:!1,output:"html"})}),q=q.replace(/▁/g,"\u2581\u2581\u2581"),w(),P.a.sanitize(q)},[ae]),le=Object(i.useRef)();function fe(q){var pe=q.target;if(pe.tagName.toUpperCase()==="A"){var D=pe.getAttribute("href");if(D.startsWith("#")){q.preventDefault();var X=document.getElementById(D.replace("#",""));X&&X.scrollIntoView(!0)}}}return Object(i.useEffect)(function(){if(le.current&&ne&&(ne.match(z)&&window.PR.prettyPrint()),le.current)return le.current.addEventListener("click",fe),function(){le.current.removeEventListener("click",fe),w(),p()}},[ne,le.current,fe]),t.a.createElement("div",{ref:le,style:ee,className:"".concat(Z||""," markdown-body"),dangerouslySetInnerHTML:{__html:ne}})}},"9VGf":function(e,_,l){"use strict";l.d(_,"a",function(){return y});var i=l("q1tI"),t=l.n(i);function y(c,f){var d=Object(i.useRef)();Object(i.useEffect)(function(){d.current=c}),Object(i.useEffect)(function(){function r(){d.current()}if(f!==null){var u=setInterval(r,f);return function(){return clearInterval(u)}}},[f])}},BjJ7:function(e,_,l){"use strict";l.d(_,"d",function(){return t}),l.d(_,"c",function(){return y}),l.d(_,"f",function(){return c}),l.d(_,"b",function(){return f}),l.d(_,"e",function(){return d}),l.d(_,"a",function(){return r});var i=l("m3rI");function t(u){var s=!0;if(u.length>0){for(var n=0;n<u.length;n++)if(u[n].compile_success==0||!u[n].compile_success){s=!1;break}}else s=!1;return s}function y(u){for(var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=[],a=0;a<u.length;a++){var b=u[a],p=s?"".concat(s,"/").concat(b.name):"".concat(b.name);n.push({title:b.name,isLeaf:!(b.type==="tree"),key:p})}return n}function c(u,s,n){for(var a=0;a<u.length;a++){var b=u[a];if(b.key===s){b.children=n;break}b.children&&c(b.children,s,n)}return u}function f(u,s,n){var a;return function(){var b=this,p=arguments,m=function(){a=null,n||u.apply(b,p)},A=n&&!a;clearTimeout(a),a=setTimeout(m,s),A&&u.apply(b,p)}}var d=!0,r=i.a.API_SERVER},"C+DQ":function(e,_,l){},DR4n:function(e,_,l){e.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},HmJG:function(e,_,l){},M8RZ:function(e,_,l){"use strict";l.d(_,"a",function(){return s});var i=l("fWQN"),t=l("mtLc"),y=l("yKVA"),c=l("879j"),f=l("q1tI"),d=l.n(f),r=l("i8i4"),u=l.n(r),s=function(n){Object(y.a)(b,n);var a=Object(c.a)(b);function b(p){var m;Object(i.a)(this,b),m=a.call(this,p);var A=window.document;return m.node=A.createElement("div"),A.body.appendChild(m.node),m}return Object(t.a)(b,[{key:"render",value:function(){var m=this.props.children;return Object(r.createPortal)(m,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),b}(d.a.Component)},MvOs:function(e,_,l){"use strict";l.r(_);var i=l("T2oS"),t=l("W9HT"),y=l("14J3"),c=l("BMrR"),f=l("+L6B"),d=l("2/Rp"),r=l("jCWc"),u=l("kPKH"),s=l("sPJy"),n=l("bE4q"),a=l("sRBo"),b=l("kaz8"),p=l("7Kak"),m=l("9yH6"),A=l("MXD1"),T=l("CFYs"),x=l("miYZ"),E=l("tsqr"),M=l("2qtc"),O=l("kLXV"),S=l("WmNS"),w=l.n(S),h=l("k1fw"),L=l("9og8"),C=l("tJVT"),I=l("PpiC"),R=l("aHsQ"),B=l("sGsY"),G=l("q1tI"),P=l.n(G),oe=l("Ty5D"),z=l("9kvl"),te=l("55Ip"),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},j=Y,F=l("6VBw"),V=function(ue,Ae){return G.createElement(F.a,Object.assign({},ue,{ref:Ae,icon:j}))};V.displayName="MinusSquareOutlined";var Z=G.forwardRef(V),k=l("xGfz"),ee=l("jhfD"),ae=l("Llu2"),ne=l("ErOA"),le=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),fe=new Uint8Array(16);function q(){if(!le)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(fe)}var pe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function D(Be){return typeof Be=="string"&&pe.test(Be)}for(var X=D,$=[],Q=0;Q<256;++Q)$.push((Q+256).toString(16).substr(1));function se(Be){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ae=($[Be[ue+0]]+$[Be[ue+1]]+$[Be[ue+2]]+$[Be[ue+3]]+"-"+$[Be[ue+4]]+$[Be[ue+5]]+"-"+$[Be[ue+6]]+$[Be[ue+7]]+"-"+$[Be[ue+8]]+$[Be[ue+9]]+"-"+$[Be[ue+10]]+$[Be[ue+11]]+$[Be[ue+12]]+$[Be[ue+13]]+$[Be[ue+14]]+$[Be[ue+15]]).toLowerCase();if(!X(Ae))throw TypeError("Stringified UUID is invalid");return Ae}var H=se;function U(Be,ue,Ae){Be=Be||{};var Ve=Be.random||(Be.rng||q)();if(Ve[6]=Ve[6]&15|64,Ve[8]=Ve[8]&63|128,ue){Ae=Ae||0;for(var je=0;je<16;++je)ue[Ae+je]=Ve[je];return ue}return H(Ve)}var J=U,N=l("DR4n"),g=l.n(N),o=l("mxV5"),v=function(ue,Ae){for(var Ve=ue.split(","),je=Ve[0].match(/:(.*?);/)[1],Ze=atob(Ve[1]),xe=Ze.length,Se=new Uint8Array(xe);xe--;)Se[xe]=Ze.charCodeAt(xe);return new Blob([Se],{type:je})},K=function(ue){var Ae=ue.time,Ve=ue.number,je=ue.supportCamera,Ze=ue.update,xe=Object(G.useRef)(),Se=Object(G.useRef)(),Me=Object(oe.m)(),ut=Object(G.useState)([]),et=Object(C.a)(ut,2),rt=et[0],He=et[1],Je=Object(G.useState)(0),pt=Object(C.a)(Je,2),ot=pt[0],Et=pt[1],yt=Object(G.useState)(""),_t=Object(C.a)(yt,2),Lt=_t[0],Le=_t[1],We=Object(G.useState)(),Xe=Object(C.a)(We,2),it=Xe[0],Pt=Xe[1],At=Object(G.useState)(0),It=Object(C.a)(At,2),Rt=It[0],Nt=It[1];Object(G.useEffect)(function(){return Tt(),function(){Ot(),jt()}},[]),Object(G.useEffect)(function(){ot===2&&Ae&&Ve>0&&(Ct(),Nt(1))},[Ae]),Object(G.useEffect)(function(){if(Rt===0)return;if(Rt===2)clearInterval(it);else{var lt=0,qe=setInterval(function(){rt.includes(lt)&&Dt(),lt++},1e3);Pt(qe)}return function(){return clearInterval(it)}},[Rt]);var jt=function(){Nt(2)},Ct=function(){var qe=Ae/Ve,st=[];function mt(wt,St){return parseInt(Math.floor(Math.random()*(St-wt+1))+wt)}new Array(Ve).fill(0).map(function(wt,St){st.push(mt(qe*St,qe*(St+1)))}),rt=st,He([].concat(st)),console.log(st)},Tt=function lt(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(qe){var st=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return st?new Promise(function(mt,wt){st.call(navigator,qe,mt,wt)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(qe){je&&je(2),Et(2),"srcObject"in xe.current?xe.current.srcObject=qe:xe.current.src=window.URL.createObjectURL(qe),xe.current.onloadedmetadata=function(st){xe.current.play()},xe.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),jt(),E.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998}),setTimeout(function(){lt()},10*1e3)},!1)}).catch(function(qe){Et(1),je&&je(1),qe.message==="Permission denied"||qe.name==="NotAllowedError"?E.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):E.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+qe.name),console.log("err: "+qe.message)})},Dt=function(){try{Se.current.width=xe.current.videoWidth,Se.current.height=xe.current.videoHeight;var qe=Se.current.getContext("2d");qe.drawImage(xe.current,0,0,Se.current.width,Se.current.height),Le(Se.current.toDataURL("image/png")),xt(Se.current.toDataURL("image/png"))}catch(st){}},Ot=function(){try{var qe=xe.current.srcObject,st=qe.getTracks();st.forEach(function(mt){mt.stop()}),xe.current.srcObject=null}catch(mt){}},xt=function(){var lt=Object(L.a)(w.a.mark(function qe(st){var mt,wt,St,Wt,Ft,$e,Gt,Qe,ie,Ie,Pe;return w.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(ne.a)("/api/buckets/get_upload_token.json",{method:"get"});case 2:Qe=Ge.sent,ie=J(),Ie=new o({endpoint:Qe==null||((mt=Qe.data)===null||mt===void 0)?void 0:mt.end_point,region:Qe==null||((wt=Qe.data)===null||wt===void 0)?void 0:wt.region,accessKeyId:Qe==null||((St=Qe.data)===null||St===void 0)?void 0:St.access_key_id,accessKeySecret:Qe==null||((Wt=Qe.data)===null||Wt===void 0)?void 0:Wt.access_key_secret,bucket:Qe==null||((Ft=Qe.data)===null||Ft===void 0)?void 0:Ft.bucket,stsToken:Qe==null||(($e=Qe.data)===null||$e===void 0)?void 0:$e.security_token}),Pe=v(st,ie),Ie.multipartUpload("".concat(ie,".png"),Pe,{timeout:10*1e3,partSize:10485760,callback:{url:"https://"+document.domain+(Qe==null||((Gt=Qe.data)===null||Gt===void 0)?void 0:Gt.callback_url),host:document.domain,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+Me.login+"&exercise_id="+Me.categoryId}}).then(function(nt){console.log("result:",nt)}).catch(function(nt){console.log("err:",nt)});case 7:case"end":return Ge.stop()}},qe)}));return function(st){return lt.apply(this,arguments)}}();return P.a.createElement(P.a.Fragment,null,ot!==3&&P.a.createElement("aside",{className:g.a.video,id:"screenshot"},ot===0&&P.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),ot===1&&P.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),ot===2&&P.a.createElement("div",null,P.a.createElement("video",{width:"288",ref:xe,autoPlay:!0}),P.a.createElement("canvas",{style:{display:"none"},ref:Se}))))},W=K,re=l("bPs0"),de=l("wd/R"),ge=l.n(de),ye=l("V5fa"),ve=l.n(ye),Ee=l("1vsH"),_e=l("xKgJ"),Oe=l("V0Rq"),me=l("HBuW"),be=l("9Bee"),Ue=l("5NDa"),Ce=l("5rEg"),Fe=l("Ot1p"),Ye=function(ue){var Ae,Ve,je,Ze,xe=ue.item,Se=ue.answerData,Me=ue.onBlur,ut=Me===void 0?function(){}:Me,et=Object(G.useState)(),rt=Object(C.a)(et,2),He=rt[0],Je=rt[1],pt=Object(G.useState)(),ot=Object(C.a)(pt,2),Et=ot[0],yt=ot[1],_t=Object(G.useState)(),Lt=Object(C.a)(_t,2),Le=Lt[0],We=Lt[1];return Object(G.useEffect)(function(){yt(xe==null?void 0:xe.a_flag)},[xe==null?void 0:xe.a_flag]),P.a.createElement("div",null,(Se==null||((Ae=Se.exercise)===null||Ae===void 0)?void 0:Ae.user_exercise_status)===1?P.a.createElement("div",{className:ve.a.simpleText},P.a.createElement(be.a,{value:xe==null||((Ve=xe.user_answer)===null||Ve===void 0)?void 0:Ve[0]})):P.a.createElement("div",{className:xe.user_score&&(xe.user_score===xe.question_score?"c-green":"c-red")},Le?P.a.createElement(Fe.a,{height:150,isFocus:!0,defaultValue:xe==null||((je=xe.user_answer)===null||je===void 0)?void 0:je[0],id:xe==null?void 0:xe.question_id,onChange:function(it){return Je(it)},onBlur:function(){return ut(He)}}):P.a.createElement("div",{onClick:function(){return We(!0)}},P.a.createElement(Ce.a,{size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",disabled:!0}))),Object(_e.q)()&&(xe==null?void 0:xe.standard_answer)&&P.a.createElement("div",null,P.a.createElement("p",{className:"mb10 font16"},"\u53C2\u8003\u7B54\u6848\uFF1A"),P.a.createElement(be.a,{value:xe==null||((Ze=xe.standard_answer)===null||Ze===void 0)?void 0:Ze[0]})))},tt=Ye,vt=l("g9YV"),ft=l("wCAj"),Ut=l("5GOC"),Mt=l("JsLm"),Xt=l("ZW9T"),ir=l("o5mm"),Kt=l.n(ir),ar=function(ue){var Ae,Ve,je,Ze,xe,Se=ue.item,Me=ue.answerData,ut=Object(G.useState)([]),et=Object(C.a)(ut,2),rt=et[0],He=et[1],Je=Object(G.useState)([]),pt=Object(C.a)(Je,2),ot=pt[0],Et=pt[1];Object(G.useEffect)(function(){var Le;if(!(Se==null||((Le=Se.shixun_details)===null||Le===void 0)?void 0:Le.length))return;for(var We=[],Xe=[],it=0;it<(Se==null||((Pt=Se.shixun_details)===null||Pt===void 0)?void 0:Pt.length);it++){for(var Pt,At,It,Rt=0;Rt<(Se==null?void 0:Se.shixun_details[it].stage_list.length);Rt++){var Nt,jt,Ct,Tt,Dt=Se==null?void 0:Se.shixun_details[it].stage_list[Rt];We.push(Object(h.a)(Object(h.a)({},Dt),{operation:Se==null||((Nt=Se.shixun_details)===null||Nt===void 0||((jt=Nt[it])===null||jt===void 0||((Ct=jt.shixun_detail)===null||Ct===void 0||((Tt=Ct[0])===null||Tt===void 0))))?void 0:Tt.game_identifier}))}if(Se==null||((At=Se.shixun_details)===null||At===void 0||((It=At[it])===null||It===void 0))?void 0:It.shixun_detail){var Ot,xt,lt;Xe.push(Se==null||((Ot=Se.shixun_details)===null||Ot===void 0||((xt=Ot[it])===null||xt===void 0||((lt=xt.shixun_detail)===null||lt===void 0)))?void 0:lt[0])}}Et(Xe),He(We)},[Se==null?void 0:Se.shixun_details]);var yt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(We){return P.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:We&&We.length>25?We:""},We)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(We,Xe){return P.a.createElement("span",null,Xe.evaluate_count?Xe.evaluate_count:P.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(We,Xe){var it=!1;return Xe.finished_time&&(Me==null?void 0:Me.exercise)&&(Me==null?void 0:Me.exercise_answer_user)&&((Me==null?void 0:Me.exercise.time)===-1?it=ge()(Me==null?void 0:Me.exercise.end_time).isBefore(Xe.finished_time):it=ge()(Me==null?void 0:Me.exercise_answer_user.start_at).add(Me==null?void 0:Me.exercise.time,"m").isBefore(Xe.finished_time)),P.a.createElement("span",null,Xe.finished_time||P.a.createElement("span",{className:"c-grey-999"},"--"),P.a.createElement("span",{className:"c-orange-ff9 "},it?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(We,Xe){return P.a.createElement("span",null,Xe.time_consuming||P.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(We,Xe){return P.a.createElement("span",null,Xe.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",key:"experience",align:"center",render:function(We,Xe){return P.a.createElement("span",null,P.a.createElement("span",{className:"c-green"},Xe.myself_experience),"/",Xe.experience)}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(We,Xe,it){return We?P.a.createElement(Mt.a,{affix:!1,className:"mt10"},P.a.createElement(Mt.a.Link,{href:"#challenge_".concat(Se==null?void 0:Se.question_id).concat(it),title:P.a.createElement("span",{style:{color:"#1890ff"}},"\u67E5\u770B")})):P.a.createElement("span",{className:"c-grey-999"},"--")}}],_t=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(We,Xe){return P.a.createElement("span",null,Xe.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(We,Xe){return P.a.createElement("span",null,Xe.error_msg?Xe.error_msg:"--")}}],Lt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return P.a.createElement("div",{className:"mt15 mb15"},((Me==null||((Ae=Me.exercise)===null||Ae===void 0)?void 0:Ae.student_commit_status)===0||(Me==null||((Ve=Me.exercise)===null||Ve===void 0)?void 0:Ve.user_exercise_status)===0)&&P.a.createElement("div",null,Se.shixun.map(function(Le,We){return P.a.createElement(c.a,{className:"font16",gutter:[0,20]},P.a.createElement(u.a,{flex:"1"},Le.challenge_name," (",Se.challenge_score,"\u5206)"),P.a.createElement(u.a,{flex:"100px",className:"tr"},Se.answer_status===0&&P.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Se.answer_status===1&&P.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(Me==null||((je=Me.exercise)===null||je===void 0)?void 0:je.student_commit_status)!==0||(Me==null||((Ze=Me.exercise)===null||Ze===void 0)?void 0:Ze.user_exercise_status)!==0?P.a.createElement(P.a.Fragment,null,!!(rt==null?void 0:rt.length)&&P.a.createElement("div",null,P.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),P.a.createElement(ft.a,{columns:yt,dataSource:rt,pagination:!1})),!!(ot==null?void 0:ot.length)&&P.a.createElement("div",null,P.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),ot==null?void 0:ot.map(function(Le,We){return P.a.createElement("div",{id:"challenge_".concat(Se==null?void 0:Se.question_id).concat(We),className:"mt5"},P.a.createElement("div",null,P.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Le.position,"\u5173"),P.a.createElement(te.Link,{className:"current c-black font16",to:"/tasks/".concat(Le.game_identifier)},Le.name)),(Le==null?void 0:Le.st)===0&&P.a.createElement("aside",{className:Kt.a.shixunWrp},P.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u4EE3\u7801",P.a.createElement("span",{className:"c-light-black"},Le.path)),P.a.createElement(Xt.b,{height:300,language:"python",theme:"default",value:Le.passed_code,options:Lt})))}))):P.a.createElement(P.a.Fragment,null,Object(_e.q)()&&P.a.createElement(be.a,{className:"c-grey-999 mt20 mb20",value:Se==null?void 0:Se.question_title}),Se==null||((xe=Se.shixun)===null||xe===void 0)?void 0:xe.map(function(Le,We){return P.a.createElement("p",{className:"font16 c-grey-666 mb5",key:We},P.a.createElement("span",{className:"mr20"},"\u7B2C",Le==null?void 0:Le.challenge_position,"\u5173 ",Le==null?void 0:Le.challenge_name),P.a.createElement("span",null,Le==null?void 0:Le.challenge_score,"\u5206"))})))},Yt=ar,qt=l("J66h"),mr=function(ue){var Ae=ue.item,Ve=ue.answerData,je=Object(G.useState)([]),Ze=Object(C.a)(je,2),xe=Ze[0],Se=Ze[1];Object(G.useEffect)(function(){var et;if((Ae==null||((et=Ae.evaluate_codes)===null||et===void 0)?void 0:et.length)>0){var rt;Se(Ae==null||((rt=Ae.evaluate_codes)===null||rt===void 0)?void 0:rt.map(function(He,Je){return{key:Je+1,error_msg:(He==null?void 0:He.error_msg)?qt.Base64.decode(He==null?void 0:He.error_msg):""}}))}else Se([{key:"--",error_msg:"--"}])},[Ae==null?void 0:Ae.evaluate_codes]);var Me=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(rt,He){return P.a.createElement("span",null,He.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(rt,He){return P.a.createElement("span",null,He.error_msg?He.error_msg:"--")}}],ut={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt15 mb15"},P.a.createElement(be.a,{value:Ae==null?void 0:Ae.description})),!!(Ae==null?void 0:Ae.user_answer.length)&&P.a.createElement("aside",{className:Kt.a.shixunWrp},P.a.createElement("h3",null,"\u6700\u540E\u901A\u5173\u7684\u4EE3\u7801"),P.a.createElement(Xt.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(Ae==null?void 0:Ae.passed_code)?qt.Base64.decode(Ae==null?void 0:Ae.passed_code):"",options:ut})))},or=mr,gr=l("oBTY"),Qt=Ce.a.TextArea,br=function(ue){var Ae,Ve,je=ue.item,Ze=ue.answerData,xe=ue.onBlur,Se=xe===void 0?function(){}:xe,Me=Object(G.useState)([]),ut=Object(C.a)(Me,2),et=ut[0],rt=ut[1];return Object(G.useEffect)(function(){for(var He=[],Je=0;Je<(je==null?void 0:je.multi_count);Je++)He.push(Object(h.a)({},(je==null?void 0:je.user_answer[Je])||{}));rt(He)},[je==null?void 0:je.user_answer]),P.a.createElement("div",null,et==null?void 0:et.map(function(He,Je){var pt;return P.a.createElement("div",null,P.a.createElement("span",null,"\u7B54\u6848\uFF08\u586B\u7A7A",Je+1,"\uFF09:"),P.a.createElement("div",null,P.a.createElement(Qt,{rows:4,disabled:(Ze==null||((pt=Ze.exercise)===null||pt===void 0)?void 0:pt.user_exercise_status)===1,value:He==null?void 0:He.answer_text,onChange:function(Et){et[Je].answer_text=Et.target.value,rt(Object(gr.a)(et))},onBlur:function(Et){return Se(He==null?void 0:He.answer_text,Je+1)},className:je.user_score&&(je.user_score===je.question_score?"c-green":"c-red")})))}),!!(je==null||((Ae=je.standard_answer)===null||Ae===void 0)?void 0:Ae.length)&&P.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",je==null||((Ve=je.standard_answer)===null||Ve===void 0)?void 0:Ve.map(function(He,Je){return P.a.createElement("div",null,P.a.createElement("span",null,"\u7B54\u6848\uFF08\u586B\u7A7A",Je+1,"\uFF09:"),P.a.createElement("div",null,P.a.createElement(Qt,{rows:4,disabled:!0,value:He==null?void 0:He.answer_text[0]})))})))},sr=br,Jt=B.a.Countdown,Ht=["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"],ur={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},vr={1:ve.a.flagActive,2:ve.a.flagHalf},yr={0:"c-red-ee4",1:"c-green"},lr=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],_r=function(ue){var Ae,Ve,je,Ze,xe,Se,Me,ut,et,rt,He,Je,pt,ot,Et,yt,_t,Lt,Le,We,Xe,it,Pt,At,It,Rt,Nt,jt,Ct,Tt,Dt,Ot,xt,lt,qe,st,mt=ue.globalSetting,wt=ue.loading,St=ue.user,Wt=ue.dispatch,Ft=Object(I.a)(ue,["globalSetting","loading","user","dispatch"]),$e=Object(oe.m)(),Gt=Object(G.useState)({}),Qe=Object(C.a)(Gt,2),ie=Qe[0],Ie=Qe[1],Pe=Object(G.useState)({}),ze=Object(C.a)(Pe,2),Ge=ze[0],nt=ze[1],ht=Object(G.useState)({}),gt=Object(C.a)(ht,2),at=gt[0],kt=gt[1],Zt=Object(G.useState)(!1),Vt=Object(C.a)(Zt,2),cr=Vt[0],$t=Vt[1],dr=Object(G.useState)(!0),Tr=Object(C.a)(dr,2),er=Tr[0],jr=Tr[1],Mr=Object(G.useState)(!1),Sr=Object(C.a)(Mr,2),Lr=Sr[0],Or=Sr[1],kr=Object(G.useState)(!1),xr=Object(C.a)(kr,2),Ur=xr[0],Fr=xr[1],Br=Object(G.useState)(),Ar=Object(C.a)(Br,2),Hr=Ar[0],Xr=Ar[1],Wr=Object(G.useState)(0),Ir=Object(C.a)(Wr,2),ln=Ir[0],cn=Ir[1],Gr=Object(G.useState)(""),Rr=Object(C.a)(Gr,2),Vr=Rr[0],$r=Rr[1];Object(G.useEffect)(function(){return Object(_e.c)()?(tr(),window.addEventListener("beforeunload",wr)):St.userInfo.login&&zr(),function(){window.removeEventListener("beforeunload",wr)}},[$e.categoryId,St.userInfo.login]);var zr=function(){var we=Object(L.a)(w.a.mark(function ce(){var he,Te,Re,Ne,ke;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Wt({type:"exercise/getExerciseUserInfo",payload:Object(h.a)({},$e)});case 2:if(he=De.sent,!((he==null?void 0:he.status)==0)){De.next=10;break}if(!((he==null||((Te=he.data)===null||Te===void 0)?void 0:Te.used_screen_num)>(he==null||((Re=he.data)===null||Re===void 0)?void 0:Re.screen_num)&&(he==null||((Ne=he.data)===null||Ne===void 0)?void 0:Ne.screen_open))){De.next=7;break}return pr(),De.abrupt("return",!1);case 7:nt(Object(h.a)({},he.data)),Or(he==null?void 0:he.data.check_camera),(he==null||((ke=he.data)===null||ke===void 0)?void 0:ke.check_camera)||tr();case 10:case"end":return De.stop()}},ce)}));return function(){return we.apply(this,arguments)}}(),wr=function(ce){var he="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(ce||window.event).returnValue=he,he},tr=function(){var we=Object(L.a)(w.a.mark(function ce(){var he,Te,Re,Ne,ke,Ke,De,dt,ct,bt,rr,nr;return w.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if($t(!0),!Object(_e.c)()){Bt.next=8;break}return Bt.next=4,Object(Oe.y)({exerciseId:$e.categoryId,login:$e.login}).catch(function(){return $t(!1)});case 4:he=Bt.sent,((Te=he)===null||Te===void 0?void 0:Te.exercise)&&(he.exercise.user_exercise_status=1),Bt.next=13;break;case 8:return Bt.next=10,Object(Oe.r)(Object(h.a)({},$e)).catch(function(){return $t(!1)});case 10:he=Bt.sent,((Re=he.exercise)===null||Re===void 0?void 0:Re.commit_status)>0&&window.removeEventListener("beforeunload",wr),((Ne=he)===null||Ne===void 0||((ke=Ne.exercise)===null||ke===void 0)?void 0:ke.left_time)&&setTimeout(function(){$r(ve.a.red)},(((Ke=he)===null||Ke===void 0||((De=Ke.exercise)===null||De===void 0)?void 0:De.left_time)-300>0?((dt=he)===null||dt===void 0||((ct=dt.exercise)===null||ct===void 0)?void 0:ct.left_time)-300:0)*1e3);case 13:$t(!1),he&&(he.exercise_types=((bt=he)===null||bt===void 0?void 0:bt.exercise_types)||((rr=he)===null||rr===void 0||((nr=rr.exercise_scores)===null||nr===void 0)?void 0:nr.exercise_types),Ie(he));case 15:case"end":return Bt.stop()}},ce)}));return function(){return we.apply(this,arguments)}}();Object(G.useEffect)(function(){var we,ce,he;((we=ie.exercise)===null||we===void 0?void 0:we.left_time)===0&&pr(),((ce=ie.exercise)===null||ce===void 0?void 0:ce.left_time)&&Xr(Date.now()+(ie==null||((he=ie.exercise)===null||he===void 0)?void 0:he.left_time)*1e3)},[(Ae=ie.exercise)===null||Ae===void 0?void 0:Ae.left_time]);var Kr=function(){var ce;(ie==null||((ce=ie.exercise)===null||ce===void 0)?void 0:ce.exercise_status)===3?O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",P.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",P.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var he=Object(L.a)(w.a.mark(function Re(){var Ne,ke;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(Oe.G)({categoryId:$e.categoryId,user_ids:[ie==null||((Ne=ie.exercise_answer_user)===null||Ne===void 0)?void 0:Ne.user_id]});case 2:ke=De.sent,ke&&(E.b.info(ke==null?void 0:ke.message),fr());case 4:case"end":return De.stop()}},Re)}));function Te(){return he.apply(this,arguments)}return Te}()})},fr=function(){z.c.push("/classrooms/".concat($e.coursesId,"/exercise/").concat($e.categoryId,"/detail"))},Yr=function(){var we=Object(L.a)(w.a.mark(function ce(){var he,Te;return w.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(Oe.K)({categoryId:$e.categoryId,commit_method:2});case 2:he=Ne.sent,(he==null?void 0:he.status)===0&&(O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:P.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",P.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var ke=Object(L.a)(w.a.mark(function De(){return w.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:fr();case 1:case"end":return ct.stop()}},De)}));function Ke(){return ke.apply(this,arguments)}return Ke}()}),E.b.info(he==null?void 0:he.message)),(he==null?void 0:he.status)===-3&&(Te=parseInt(he==null?void 0:he.message),ie.exercise.left_time=Te,Ie(Object(h.a)({},ie)));case 5:case"end":return Ne.stop()}},ce)}));return function(){return we.apply(this,arguments)}}(),Nr=function(){var we=Object(L.a)(w.a.mark(function ce(he){var Te;return w.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(me.w)({id:he.shixun_identifier});case 2:Te=Ne.sent,(Te==null?void 0:Te.game_identifier)&&Ft.history.push("/tasks/".concat(Te.game_identifier,"?type=exercises&exercisesId=").concat($e.categoryId,"&coursesId=").concat($e.coursesId,"&login=").concat($e.login,"&questionId=").concat(he.question_id));case 4:case"end":return Ne.stop()}},ce)}));return function(he){return we.apply(this,arguments)}}(),Jr=function(ce){ce.redo?O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:P.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var he=Object(L.a)(w.a.mark(function Re(){var Ne;return w.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,Object(Oe.H)({id:ce.myshixun_identifier});case 2:Ne=Ke.sent,Ne&&(ie.exercise_questions.find(function(De){return De.question_id===ce.question_id}).redo=!1,Ie(Object(h.a)({},ie)),Nr(ce));case 4:case"end":return Ke.stop()}},Re)}));function Te(){return he.apply(this,arguments)}return Te}()}):Nr(ce)},qr=function(){var we=Object(L.a)(w.a.mark(function ce(he){var Te;return w.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!he.hack_identifier){Ne.next=5;break}return Ne.next=3,Object(Oe.J)({id:he.hack_identifier});case 3:Te=Ne.sent,(Te==null?void 0:Te.status)===0&&Ft.history.push("/myproblems/".concat(Te.identifier,"?type=exercises&exercisesId=").concat($e.categoryId,"&coursesId=").concat($e.coursesId,"&login=").concat($e.login,"&questionId=").concat(he.question_id));case 5:case"end":return Ne.stop()}},ce)}));return function(he){return we.apply(this,arguments)}}(),hr=function(){var we=Object(L.a)(w.a.mark(function ce(he,Te,Re,Ne){var ke;return w.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(he){De.next=3;break}return console.error("handleSave no questionId params"),De.abrupt("return");case 3:return De.next=5,Object(Oe.L)({questionId:he,exercise_choice_id:Te,answer_text:Re});case 5:ke=De.sent,(ke==null?void 0:ke.status)===0&&(Ne&&Ne());case 7:case"end":return De.stop()}},ce)}));return function(he,Te,Re,Ne){return we.apply(this,arguments)}}(),Cr=function(){var we=Object(L.a)(w.a.mark(function ce(he){var Te,Re;return w.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(Oe.d)({id:$e.categoryId});case 2:if(Te=ke.sent,Te){ke.next=5;break}return ke.abrupt("return");case 5:Te.question_undo!==0||Te.oj_undo!==0?(Re="",Te.question_undo!==0&&Te.oj_undo!==0?Re="\u6709 ".concat(Te.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(Te.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):Te.question_undo!==0&&Te.oj_undo===0?Re="\u6709 ".concat(Te.question_undo," \u9898\u672A\u5B8C\u6210"):Te.question_undo===0&&Te.oj_undo!==0&&(Re="\u6709 ".concat(Te.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),O.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.a.createElement("div",{className:"tc font16"},Re,P.a.createElement("br",null),he?"\u5728".concat(ge()(Te.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Ke=Object(L.a)(w.a.mark(function dt(){return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:he?fr():pr();case 1:case"end":return bt.stop()}},dt)}));function De(){return Ke.apply(this,arguments)}return De}()})):O.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:P.a.createElement("div",{className:"tc font16"},he?"\u5728".concat(ge()(Te.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Ke=Object(L.a)(w.a.mark(function dt(){return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:he?fr():pr();case 1:case"end":return bt.stop()}},dt)}));function De(){return Ke.apply(this,arguments)}return De}()});case 6:case"end":return ke.stop()}},ce)}));return function(he){return we.apply(this,arguments)}}(),Dr=function(ce){return P.a.createElement("div",null,P.a.createElement(T.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:ce}),P.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},Qr=function(){var ce=0,he=O.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Dr(ce)}),Te=setInterval(function(){ce<=100?(ce+=2,he.update({content:Dr(ce)})):(O.a.destroyAll(),clearInterval(Te))},50)},pr=function(){var we=Object(L.a)(w.a.mark(function ce(){var he;return w.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Qr(),Re.next=3,Object(Oe.K)({categoryId:$e.categoryId,commit_method:1});case 3:he=Re.sent,he&&(E.b.success(he==null?void 0:he.message),tr(),Or(!1));case 5:case"end":return Re.stop()}},ce)}));return function(){return we.apply(this,arguments)}}(),Zr=function(ce,he){hr(he,ce,null,function(){ie.question_status.find(function(Te){return Te.ques_id===he}).ques_status=ce?1:0,ie.exercise_questions.find(function(Te){return Te.question_id===he}).user_answer[0]=ce,Ie(Object(h.a)({},ie))})},en=function(ce,he){hr(he,ce,null,function(){ie.question_status.find(function(Te){return Te.ques_id===he}).ques_status=(ce==null?void 0:ce.length)?1:0,Ie(Object(h.a)({},ie))})},tn=function(ce,he,Te){hr(Te,he,ce,function(){ie.question_status.find(function(Re){return Re.ques_id===Te}).ques_status=ce?1:0,Ie(Object(h.a)({},ie))})},rn=function(ce,he){hr(he,null,ce,function(){ie.question_status.find(function(Te){return Te.ques_id===he}).ques_status=ce?1:0,Ie(Object(h.a)({},ie))})},Pr=function(ce,he){var Te,Re,Ne,ke,Ke,De,dt;return P.a.createElement("div",null,P.a.createElement(m.a.Group,{disabled:(ie==null||((Te=ie.exercise)===null||Te===void 0)?void 0:Te.user_exercise_status)===1,value:ce==null||((Re=ce.user_answer)===null||Re===void 0)?void 0:Re[0],onChange:function(bt){return Zr(bt.target.value,ce==null?void 0:ce.question_id)},className:ce.user_score&&"edu-radio-".concat(ce.user_score===ce.question_score?"green":"red")},ce==null||((Ne=ce.question_choices)===null||Ne===void 0)?void 0:Ne.map(function(ct,bt){var rr=ce.question_type==2,nr=rr?"":"".concat(Ht[bt],".");return P.a.createElement("div",{className:ve.a.answerWrap,key:bt},P.a.createElement(m.a,{value:ct==null?void 0:ct.choice_id},P.a.createElement("span",{className:"mr3"},nr),P.a.createElement(be.a,{className:ve.a.renderHtml,value:ct==null?void 0:ct.choice_text})))})),Object(_e.q)()&&(ie==null||((ke=ie.exercise)===null||ke===void 0)?void 0:ke.answer_open)&&((ie==null||((Ke=ie.exercise)===null||Ke===void 0)?void 0:Ke.exercise_status)==3||(ie==null||((De=ie.exercise)===null||De===void 0)?void 0:De.user_exercise_status)==1)&&P.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",ce==null||((dt=ce.standard_answer)===null||dt===void 0)?void 0:dt.map(function(ct,bt){return P.a.createElement("span",null,Ht[Number(ct)-1])})))},nn=function(ce,he){var Te,Re,Ne,ke,Ke;return P.a.createElement("div",null,P.a.createElement(b.a.Group,{disabled:(ie==null||((Te=ie.exercise)===null||Te===void 0)?void 0:Te.user_exercise_status)===1,defaultValue:ce==null?void 0:ce.user_answer,onChange:function(dt){return en(dt,ce==null?void 0:ce.question_id)},className:ce.user_score&&"edu-checkbox-".concat(ce.user_score===ce.question_score?"green":"red")},ce==null||((Re=ce.question_choices)===null||Re===void 0)?void 0:Re.map(function(De,dt){var ct="".concat(Ht[dt],".");return P.a.createElement("div",{className:ve.a.answerWrap},P.a.createElement(b.a,{value:De==null?void 0:De.choice_id},P.a.createElement("span",{className:"mr3"},ct),P.a.createElement(be.a,{className:ve.a.renderHtml,value:De==null?void 0:De.choice_text})))})),Object(_e.q)()&&(ie==null||((Ne=ie.exercise)===null||Ne===void 0)?void 0:Ne.answer_open)&&(ie==null||((ke=ie.exercise)===null||ke===void 0)?void 0:ke.exercise_status)==3&&P.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",ce==null||((Ke=ce.standard_answer)===null||Ke===void 0)?void 0:Ke.map(function(De,dt){return P.a.createElement("span",null,Ht[Number(De)-1])})))},an=function(ce,he){return P.a.createElement(sr,{item:ce,answerData:ie,onBlur:function(Re,Ne){return tn(Re,Ne,ce==null?void 0:ce.question_id)}})},on=function(ce,he){return P.a.createElement(tt,{item:ce,answerData:ie,onBlur:function(Re){return rn(Re,ce==null?void 0:ce.question_id)}})},sn=function(ce,he){return P.a.createElement(Yt,{item:ce,answerData:ie})},un=function(ce,he){return P.a.createElement(or,{item:ce,answerData:ie})},zt=function(ce,he){var Te;return P.a.createElement(P.a.Fragment,null,P.a.createElement("h1",{className:"font14 current",onClick:function(){at[he]=!at[he],kt(Object(h.a)({},at))}},!at[he]&&P.a.createElement(Z,null),at[he]&&P.a.createElement(k.a,null),P.a.createElement("span",{className:"ml5 c-grey-666"},ce)),P.a.createElement("ul",{className:ve.a.answerSheet,key:he},!at[he]&&(ie==null||((Te=ie.exercise_questions)===null||Te===void 0)?void 0:Te.map(function(Re,Ne){if(Re.question_type===he){var ke;return P.a.createElement("li",{onClick:function(){var De="Anchor_".concat(Re.q_position-1),dt=document.getElementById(De);dt&&setTimeout(function(){return dt.scrollIntoView({block:"start",behavior:"smooth"})})},key:Ne,className:(ie==null||((ke=ie.question_status)===null||ke===void 0)?void 0:ke.some(function(Ke){return Ke.ques_id===Re.question_id&&!!Ke.ques_status}))&&ve.a.active},Re.q_position)}}))))};return P.a.createElement(t.a,{size:"large",spinning:cr},Ur&&P.a.createElement(re.a,null),P.a.createElement("section",{className:"edu-container"},P.a.createElement("section",{className:"animated fadeIn"},P.a.createElement("aside",{className:"mt10"},mt.showHeaderFooter&&P.a.createElement(n.a,{separator:">"},P.a.createElement(n.a.Item,null,P.a.createElement(te.Link,{to:"/classrooms/".concat($e.coursesId,"/exercise")},(Ve=St.userInfo)===null||Ve===void 0||((je=Ve.course)===null||je===void 0)?void 0:je.course_name)),P.a.createElement(n.a.Item,null,P.a.createElement(te.Link,{to:"/classrooms/".concat($e.coursesId,"/exercise")},"\u8BD5\u5377")),P.a.createElement(n.a.Item,null,P.a.createElement(te.Link,{to:"/classrooms/".concat($e.coursesId,"/exercise/").concat($e.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),P.a.createElement(n.a.Item,null,(Ze=St.userInfo)===null||Ze===void 0?void 0:Ze.real_name))),P.a.createElement("aside",{className:[ve.a.title,"mt10"].join(" ")},P.a.createElement(c.a,{style:{width:"100%"},align:"middle"},P.a.createElement(u.a,{flex:"1"},P.a.createElement("div",{className:ve.a.title},(mt==null?void 0:mt.showHeaderFooter)&&P.a.createElement(te.Link,{to:"/classrooms/".concat($e.coursesId,"/exercise/").concat($e.categoryId,"/detail")},P.a.createElement(ee.a,{className:"font16 c-black"})),P.a.createElement("strong",{className:"font24 ml5"},ie==null||((xe=ie.exercise)===null||xe===void 0)?void 0:xe.exercise_name),(ie==null||((Se=ie.exercise)===null||Se===void 0)?void 0:Se.is_random)&&P.a.createElement("span",{className:ve.a.randomFlag},"\u968F\u673A"),P.a.createElement(Ee.g,{status:[Ee.c[ie==null||((Me=ie.exercise)===null||Me===void 0)?void 0:Me.exercise_status]]}))),P.a.createElement(u.a,null,Object(_e.c)()&&P.a.createElement(d.a,{type:"primary",onClick:Kr},"\u6253\u56DE\u91CD\u505A"),P.a.createElement(u.a,null,((ie==null||((ut=ie.exercise)===null||ut===void 0)?void 0:ut.commit_status)==2||(ie==null||((et=ie.exercise)===null||et===void 0)?void 0:et.commit_status)==1)&&Object(_e.q)()&&P.a.createElement(d.a,{type:"primary",onClick:function(){return z.c.push("/classrooms/".concat($e.coursesId,"/exercise/").concat($e.categoryId,"/export/").concat($e.login))}},P.a.createElement(ae.a,null),"\u5BFC\u51FA")),!(Object(_e.c)()||Object(_e.q)()&&(ie==null||((rt=ie.exercise)===null||rt===void 0)?void 0:rt.user_exercise_status)==1)&&!!(ie==null||((He=ie.exercise)===null||He===void 0)?void 0:He.left_time)&&P.a.createElement("aside",{className:"".concat(ve.a.countDown," ").concat(Vr)},"\u5269\u4F59\u65F6\u95F4:",P.a.createElement(Jt,{value:Hr,onFinish:Yr})))))),P.a.createElement(c.a,{className:"mt10"},P.a.createElement(u.a,{flex:er?"316px":"16px"},P.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Lr&&P.a.createElement(W,{number:(ie==null||((Je=ie.exercise)===null||Je===void 0)?void 0:Je.photo_count)-(ie==null||((pt=ie.exercise)===null||pt===void 0)?void 0:pt.take_photo),time:(ot=ie.exercise)===null||ot===void 0?void 0:ot.left_time,update:tr,supportCamera:function(ce){ce===2?(tr(),Fr(Ge==null?void 0:Ge.screen_open)):ce===1&&setTimeout(function(){return Ft.history.push("/")},3e3)}}),P.a.createElement("div",{className:"relative",style:{minHeight:236}},er&&P.a.createElement("aside",{className:"bg-white p16"},P.a.createElement(c.a,null,P.a.createElement(u.a,{span:8},P.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),P.a.createElement(u.a,{span:16},Object(_e.q)()&&P.a.createElement("div",{className:"tr"},P.a.createElement("span",{className:ve.a.answerYes}),"\u5DF2\u7B54",P.a.createElement("span",{className:"".concat(ve.a.answerNo," ml10")}),"\u672A\u7B54"))),P.a.createElement("aside",{className:ve.a.answerInfo},P.a.createElement(c.a,null,Object(_e.q)()&&P.a.createElement(P.a.Fragment,null,P.a.createElement(u.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),P.a.createElement(u.a,{span:12,className:"tr c-blue"},ie==null||((Et=ie.question_status)===null||Et===void 0||((yt=Et.filter(function(we){return!!we.ques_status}))===null||yt===void 0))?void 0:yt.length," / ",ie==null||((_t=ie.exercise_types)===null||_t===void 0)?void 0:_t.q_counts),P.a.createElement(u.a,{span:24},P.a.createElement(T.a,{trailColor:"#c3ced2",percent:(ie==null||((Lt=ie.question_status)===null||Lt===void 0||((Le=Lt.filter(function(we){return!!we.ques_status}))===null||Le===void 0))?void 0:Le.length)/(ie==null||((We=ie.exercise_types)===null||We===void 0)?void 0:We.q_counts)*100,showInfo:!1}))),P.a.createElement(u.a,null,P.a.createElement("span",{className:"c-grey-333"},"\u5171 ",P.a.createElement("span",{className:"c-blue-4ca"},(ie==null||((Xe=ie.exercise_types)===null||Xe===void 0)?void 0:Xe.q_counts)||(ie==null||((it=ie.exercise_scores)===null||it===void 0||((Pt=it.exercise_types)===null||Pt===void 0))?void 0:Pt.q_counts))," \u9898\uFF1A"),P.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",P.a.createElement("span",{className:"c-blue-4ca"},(ie==null||((At=ie.exercise_types)===null||At===void 0)?void 0:At.q_scores)||(ie==null||((It=ie.exercise_scores)===null||It===void 0||((Rt=It.exercise_types)===null||Rt===void 0))?void 0:Rt.q_scores))," \u5206")))),P.a.createElement(c.a,null,P.a.createElement(u.a,{flex:"1"},P.a.createElement("aside",{className:ve.a.cardList},(ie==null||((Nt=ie.exercise_types)===null||Nt===void 0)?void 0:Nt.q_singles)>0&&zt("\u5355\u9009\u9898",0),(ie==null||((jt=ie.exercise_types)===null||jt===void 0)?void 0:jt.q_doubles)>0&&zt("\u591A\u9009\u9898",1),(ie==null||((Ct=ie.exercise_types)===null||Ct===void 0)?void 0:Ct.q_judges)>0&&zt("\u5224\u65AD\u9898",2),(ie==null||((Tt=ie.exercise_types)===null||Tt===void 0)?void 0:Tt.q_nulls)>0&&zt("\u586B\u7A7A\u9898",3),(ie==null||((Dt=ie.exercise_types)===null||Dt===void 0)?void 0:Dt.q_mains)>0&&zt("\u7B80\u7B54\u9898",4),(ie==null||((Ot=ie.exercise_types)===null||Ot===void 0)?void 0:Ot.q_shixuns)>0&&zt("\u5B9E\u8BAD\u9898",5),(ie==null||((xt=ie.exercise_types)===null||xt===void 0)?void 0:xt.q_pros)>0&&zt("\u7F16\u7A0B\u9898",6))))),P.a.createElement("div",{className:ve.a.fold,onClick:function(){return jr(!er)}},er&&P.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!er&&P.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),P.a.createElement(u.a,{flex:"1"},P.a.createElement("section",{className:[ve.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},P.a.createElement("div",null,ie==null||((lt=ie.exercise_questions)===null||lt===void 0)?void 0:lt.map(function(we,ce){var he,Te,Re,Ne=we.question_type==5?we.shixun_name:we.question_title;return P.a.createElement("div",{className:ve.a.questionItem,id:"Anchor_".concat(ce)},P.a.createElement("div",{className:ve.a.itemType},P.a.createElement(c.a,null,P.a.createElement(u.a,{flex:"1"},P.a.createElement("span",{className:"font16 c-blue mr5"},we.q_position,"\u3001",lr[we.question_type]),P.a.createElement("span",{className:"c-grey-999 mr5"},"(",we.question_score,"\u5206)")),P.a.createElement(u.a,null,we.question_type<3&&we.standard_answer_show&&P.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",we==null?void 0:we.standard_answer_show),(Object(_e.c)()||Object(_e.q)()&&(ie==null||((he=ie.exercise)===null||he===void 0)?void 0:he.user_exercise_status)>0)&&P.a.createElement("span",{className:"font16 ml20"},we.user_score&&P.a.createElement("span",null,P.a.createElement("span",{className:yr[Number(we==null?void 0:we.answer_status)]||"c-orange-ff9"},we.user_score)," \u5206"),!we.user_score&&P.a.createElement("span",{className:"c-red"},"\u672A\u8BC4")),we.question_type==5&&(ie==null||((Te=ie.exercise)===null||Te===void 0)?void 0:Te.user_exercise_status)===0&&we.answer_status!=3&&P.a.createElement(d.a,{type:"primary",className:"font16 ml20",onClick:function(){return Jr(we)}},"\u8FDB\u5165\u7B54\u9898"),Object(_e.q)()&&(ie==null||((Re=ie.exercise)===null||Re===void 0)?void 0:Re.user_exercise_status)===0&&we.question_type==6&&P.a.createElement(d.a,{type:"primary",className:"font16 ml20",onClick:function(){return qr(we)}},"\u8FDB\u5165\u7B54\u9898")))),P.a.createElement("div",{className:"blod"},P.a.createElement(be.a,{value:Ne})),we.question_type==0&&Pr(we,ce),we.question_type==2&&Pr(we,ce),we.question_type==1&&nn(we,ce),we.question_type==3&&an(we,ce),we.question_type==4&&on(we,ce),we.question_type==5&&sn(we,ce),we.question_type==6&&un(we,ce))}))),Object(_e.q)()&&(ie==null||((qe=ie.exercise)===null||qe===void 0)?void 0:qe.user_exercise_status)===0&&P.a.createElement(c.a,{className:"mt30 mb50"},P.a.createElement(u.a,{flex:"1"}),P.a.createElement(u.a,null,!!(ie==null||((st=ie.exercise)===null||st===void 0)?void 0:st.left_time)&&P.a.createElement("span",{className:"c-grey-999 font12 mr20"},"\u4FDD\u5B58\u6216\u8005\u79BB\u5F00\u9875\u9762\u540E\uFF0C\u7CFB\u7EDF\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u5230\u8FBE\u65F6\u957F\u7CFB\u7EDF\u5C06\u81EA\u52A8\u4EA4\u5377"),P.a.createElement(d.a,{className:"".concat(ve.a.submitButton," mr10"),type:"default",onClick:function(){return Cr(!0)}},"\u4FDD\u5B58"),P.a.createElement(d.a,{className:ve.a.submitButton,type:"primary",onClick:function(){return Cr(!1)}},"\u4EA4\u5377")))))))},Er=_.default=Object(z.a)(function(Be){var ue=Be.loading,Ae=Be.user,Ve=Be.globalSetting;return{globalSetting:Ve,user:Ae,loading:ue.effects}})(_r)},Ot1p:function(e,_,l){"use strict";var i=l("2qtc"),t=l("kLXV"),y=l("rAM+"),c=l("tJVT"),f=l("jrin"),d=l("q1tI"),r=l.n(d),u=l("VrN/"),s=l.n(u),n=l("bdgK"),a=l("p77/"),b=l("Bd2K"),p=l("ELLl"),m=l("19Vz"),A=l("lZu9"),T=l("kSUc"),x=l("9Bee"),E=l("0Owb"),M=l("dejd"),O=l("C+DQ"),S=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function w(be){var Ue=be.onActionCallback,Ce=be.title,Fe=be.icon,Ye=be.actionName,tt=be.className,vt=tt===void 0?"":tt,ft=be.children;function Ut(){Ue(Ye)}return r.a.createElement("a",{title:Ce,className:vt,onClick:Ut},r.a.createElement("i",{className:"md-iconfont ".concat(Fe)}),ft)}var h=function(be){var Ue=be.watch,Ce=be.showNullButton,Fe=be.onActionCallback,Ye=be.fullScreen,tt=[].concat(S,[{title:"".concat(Ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ue?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return r.a.createElement("ul",{className:"markdown-toolbar-container"},tt.map(function(vt,ft){return r.a.createElement("li",{key:ft},vt.actionName?r.a.createElement(w,Object(E.a)({},vt,{onActionCallback:Fe})):r.a.createElement("span",{className:"v-line"}))}),Ce?r.a.createElement("li",null,r.a.createElement(w,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Fe},r.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,r.a.createElement("li",{className:"btn-full-screen"},r.a.createElement(w,{icon:"".concat(Ye?"icon-shrink":"icon-enlarge"),title:Ye?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Fe})))},L=l("M8RZ"),C=l("+L6B"),I=l("2/Rp"),R=l("y8nQ"),B=l("Vl3Y"),G=l("5NDa"),P=l("5rEg"),oe={labelCol:{span:4},wrapperCol:{span:20}},z=function(be){var Ue=be.callback,Ce=be.onCancel;function Fe(Ye){Ue(Ye)}return r.a.createElement(B.a,Object(E.a)({},oe,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Fe}),r.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},r.a.createElement(P.a,null)),r.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},r.a.createElement(P.a,null)),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(I.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))},te=l("7ahc"),Y=l("HmJG"),j=l("BjJ7"),F=B.a.useForm,V={width:280,marginRight:10},Z={labelCol:{span:5},wrapperCol:{span:19}},k=function(be){var Ue=be.callback,Ce=be.onCancel,Fe=F(),Ye=Object(c.a)(Fe,1),tt=Ye[0];function vt(Mt){Ue(Mt)}function ft(Mt){tt.setFieldsValue({src:"/api/attachments/".concat(Mt.id)})}function Ut(Mt){var Xt=Mt.target.files[0];ae(Xt,ft)}return r.a.createElement(B.a,Object(E.a)({form:tt},Z,{className:"upload-image-panel",onFinish:vt}),r.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},r.a.createElement("div",{className:"flex-container"},r.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},r.a.createElement(P.a,{style:V})),r.a.createElement(ee,{onFileChange:Ut}))),r.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},r.a.createElement(P.a,{style:{width:264}})),r.a.createElement(B.a.Item,{style:{textAlign:"right"}},r.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(I.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function ee(be){var Ue=be.onFileChange;return r.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",r.a.createElement("input",{type:"file",accept:"image/*",onChange:Ue}))}function ae(be,Ue){var Ce=new FormData;Ce.append("editormd-image-file",be),Ce.append("file_param_name","editormd-image-file"),Ce.append("byxhr","true");var Fe=new window.XMLHttpRequest;Fe.withCredentials=!0,Fe.addEventListener("load",function(Ye){Ue(JSON.parse(Ye.target.responseText))},!1),Fe.addEventListener("error",function(Ye){console.error(Ye)},!1),Fe.open("POST","".concat(j.a,"/api/attachments.json")),Fe.send(Ce)}var ne=l("giR+"),le=l("fyUT"),fe=l("7Kak"),q=l("9yH6"),pe=q.a.Group,D={margin:"0 8px"},X=function(be){var Ue=be.callback,Ce=be.onCancel;function Fe(Ye){Ue(Ye)}return r.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Fe},r.a.createElement("div",{className:"flex-container"},r.a.createElement("span",{style:D},"\u5355\u5143\u683C\u6570\uFF1A"),r.a.createElement("span",{style:D},"\u884C\u6570"),r.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},r.a.createElement(le.a,null)),r.a.createElement("span",{style:D},"\u5217\u6570"),r.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},r.a.createElement(le.a,null))),r.a.createElement("div",{className:"flex-container",style:{marginTop:12}},r.a.createElement("span",{style:D},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),r.a.createElement(B.a.Item,{name:"align"},r.a.createElement(pe,null,r.a.createElement(q.a,{value:"default"},r.a.createElement("i",{className:"fa fa-align-justify"})),r.a.createElement(q.a,{value:"left"},r.a.createElement("i",{className:"fa fa-align-left"})),r.a.createElement(q.a,{value:"center"},r.a.createElement("i",{className:"fa fa-align-center"})),r.a.createElement(q.a,{value:"right"},r.a.createElement("i",{className:"fa fa-align-right"}))))),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(I.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))},$=l("9kvl"),Q="link",se="upload-image",H="code-block",U="add-table",J="------------",N={default:J,left:":".concat(J),center:":".concat(J,":"),right:"".concat(J,":")},g=l("9VGf"),o,v;function K(){}var W=0,re=10,de=1e4,ge="\u2581";function ye(be){return/^\d+$/.test(be)?"".concat(be,"px"):be}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ee=ve?"Cmd":"Ctrl",_e=(o={},Object(f.a)(o,Ee+"-B","bold"),Object(f.a)(o,Ee+"-I","italic"),o),Oe=(v={},Object(f.a)(v,Q,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(v,H,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(v,se,"\u6DFB\u52A0\u56FE\u7247"),Object(f.a)(v,U,"\u6DFB\u52A0\u8868\u683C"),v),me=_.a=function(be){var Ue=be.defaultValue,Ce=Ue===void 0?"":Ue,Fe=be.onChange,Ye=be.width,tt=Ye===void 0?"100%":Ye,vt=be.height,ft=vt===void 0?400:vt,Ut=be.miniToolbar,Mt=Ut===void 0?!1:Ut,Xt=be.isFocus,ir=Xt===void 0?!1:Xt,Kt=be.watch,ar=be.id,Yt=ar===void 0?"markdown-editor-id":ar,qt=be.showResizeBar,mr=qt===void 0?!1:qt,or=be.noStorage,gr=or===void 0?!1:or,Qt=be.showNullButton,br=Qt===void 0?!1:Qt,sr=be.fullScreen,Jt=sr===void 0?!1:sr,Ht=be.onBlur,ur=be.onCMBeforeChange,vr=be.className,yr=vr===void 0?"":vr,lr=be.placeholder,_r=lr===void 0?"":lr,Er=Object(d.useState)(null),Be=Object(c.a)(Er,2),ue=Be[0],Ae=Be[1],Ve=Object(d.useState)(Ce),je=Object(c.a)(Ve,2),Ze=je[0],xe=je[1],Se=Object(d.useState)(Kt),Me=Object(c.a)(Se,2),ut=Me[0],et=Me[1],rt=Object(d.useState)(Jt),He=Object(c.a)(rt,2),Je=He[0],pt=He[1],ot=Object(d.useState)(""),Et=Object(c.a)(ot,2),yt=Et[0],_t=Et[1],Lt=Object(d.useState)(0),Le=Object(c.a)(Lt,2),We=Le[0],Xe=Le[1],it=Object(d.useState)(ft),Pt=Object(c.a)(it,2),At=Pt[0],It=Pt[1],Rt=Object(d.useState)(!1),Nt=Object(c.a)(Rt,2),jt=Nt[0],Ct=Nt[1],Tt=Object(d.useRef)(),Dt=Object(d.useRef)(),Ot=Object(d.useRef)(),xt=Object(d.useRef)();Object(d.useEffect)(function(){if(Tt.current){var ie=function(ze,Ge){var nt=Ge.clipboardData;if(nt){var ht=nt.types.toString(),gt=nt.items;if(ht==="text/html,Files"||ht==="Files"){var at=gt[1];ht==="Files"&&(at=gt[0]),at.kind==="file"&&at.type.match(/^image\//i)&&ae(at.getAsFile(),function(kt){kt.id?Ie.replaceSelection("")):$.c.replace("/user/login",{from:$.c.location.pathname})})}else return!0}return!0},Ie=s.a.fromTextArea(Tt.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!Mt,lineWrapping:!0,value:Ce,autoCloseTags:!0,autoCloseBrackets:!0});return Ie.on("paste",ie),Ae(Ie),function(){Ie.off("paste",ie)}}},[]);var lt=Object(d.useCallback)(function(){if(Dt.current)try{var ie=Dt.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,Ie=Dt.current.getElementsByClassName("markdown-editor-body")[0];Je?Ie.style.height="calc(100vh - ".concat(ie,"px)"):Ie.style.height="".concat(At-ie,"px")}catch(Pe){console.log(Pe,"---- to set md editor body height")}},[At,Dt,Je]);Object(d.useEffect)(function(){function ie(){var Pe=new n.default(function(ze){var Ge=Object(y.a)(ze),nt;try{for(Ge.s();!(nt=Ge.n()).done;){var ht=nt.value;(ht.target.offsetHeight>0||ht.target.offsetWidth>0)&&(lt(),ue.setSize("100%","100%"),ue.refresh())}}catch(gt){Ge.e(gt)}finally{Ge.f()}});return Pe.observe(Tt.current.parentElement),Pe}if(ue){var Ie=ie();return function(){Ie.unobserve(Tt.current.parentElement)}}},[ue,lt]),Object(d.useEffect)(function(){if(ue){for(var ie=[],Ie=function(){var ht=ze[Pe];Ge=Object(c.a)(ht,2);var gt=Ge[0],at=Ge[1],kt=Object(f.a)({},gt,function(){qe(at)});ie.push(kt),ue.addKeyMap(kt)},Pe=0,ze=Object.entries(_e);Pe<ze.length;Pe++){var Ge;Ie()}return function(){var nt=Object(y.a)(ie),ht;try{for(nt.s();!(ht=nt.n()).done;){var gt=ht.value;ue.removeKeyMap(gt)}}catch(at){nt.e(at)}finally{nt.f()}}}},[ue]),Object(d.useEffect)(function(){Jt!==Je&&pt(Jt)},[Jt]),Object(g.a)(function(){if(!gr&&We>0){var ie=new Date().getTime(),Ie=window.sessionStorage.getItem(Yt);ie>=We+de&&(!Ie||Ie!==Ze)&&(window.sessionStorage.setItem(Yt,Ze),Ct(!0))}},de),Object(d.useEffect)(function(){et(Kt)},[ue,Kt]),Object(d.useEffect)(function(){ue&&(ir&&ue.focus())},[ue,ir]),Object(d.useEffect)(function(){if(ut&&ue){var ie=function(ze){var Ge=ze.target;xt.current&&(xt.current.scrollTop=xt.current.scrollHeight*Ge.scrollTop/Ge.scrollHeight)},Ie=ue.getScrollerElement();return Ie.addEventListener("scroll",ie),function(){Ie.removeEventListener("scroll",ie)}}},[ue,ut]),Object(d.useEffect)(function(){if(ue&&ur){var ie=function(Pe,ze){ur(Pe,ze)};return ue.on("beforeChange",ie),function(){ue.off("beforeChange",ie)}}},[ue,ur]),Object(d.useEffect)(function(){if(ue&&Ht){var ie=function(){Ht(ue.getValue())};return ue.on("blur",ie),function(){ue.off("blur",ie)}}},[ue,Ht]),Object(d.useEffect)(function(){if(ue){var ie=function(Pe){var ze=Pe.getValue();clearTimeout(W),W=setTimeout(function(){xe(ze),Xe(new Date().getTime()),Pe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&Fe(ze)},re)};return ue.on("change",ie),function(){ue.off("change",ie)}}},[ue,Fe]),Object(d.useEffect)(function(){ue&&(Ce==null?(ue.setValue(""),xe("")):Ce!==ue.getValue()&&(ue.setValue(Ce),xe(Ce)))},[ue,Ce]);var qe=Object(d.useCallback)(function(ie){var Ie=ue.getCursor(),Pe=ue.getSelection(),ze=Pe.split(`
|
|
|
`);switch(ie){case"bold":return ue.replaceSelection("**"+Pe+"**"),Pe===""&&ue.setCursor(Ie.line,Ie.ch+2),ue.focus();case"italic":return ue.replaceSelection("*"+Pe+"*"),Pe===""&&ue.setCursor(Ie.line,Ie.ch+1),ue.focus();case"code":return ue.replaceSelection("`"+Pe+"`"),Pe===""&&ue.setCursor(Ie.line,Ie.ch+1),ue.focus();case"inline-latex":return ue.replaceSelection("`$$"+Pe+"$$`"),Pe===""&&ue.setCursor(Ie.line,Ie.ch+3),ue.focus();case"latex":return ue.replaceSelection("```latex\n"+Pe+"\n```"),ue.setCursor(Ie.line+1,Pe.length+1),ue.focus();case"line-break":return ue.replaceSelection(`<br/>
|
|
|
`),ue.focus();case"list-ul":return Pe===""?ue.replaceSelection("- "+Pe):ue.replaceSelection(ze.map(function(Ge){return Ge===""?"":"- ".concat(Ge)}).join(`
|
|
|
`)),ue.focus();case"list-ol":return Pe===""?ue.replaceSelection("1. "+Pe):ue.replaceSelection(ze.map(function(Ge,nt){return Ge===""?"":"".concat(nt+1,". ").concat(Ge)}).join(`
|
|
|
`)),ue.focus();case"add-null-ch":return Pe===""&&ue.setCursor(Ie.line,Ie.ch+1),ue.replaceSelection(ge),ue.focus();case"eraser":return ue.setValue(""),ue.focus();case"trigger-watch":return et(!ut),ue.focus();case"trigger-full-screen":return pt(!Je),ue.focus();case Q:_t(Q);return;case H:_t(H);return;case se:_t(se);return;case U:_t(U);return;default:throw new Error}},[ue,ut,Je]),st=Object(d.useCallback)(function(ie){_t("");switch(yt){case Q:var Ie=ie.title,Pe=ie.link;return ue.replaceSelection("[".concat(Ie,"](").concat(Pe,")")),ue.focus();case H:var ze=ie.language,Ge=ie.content;return ue.replaceSelection(["```"+ze,Ge,"```"].join(`
|
|
|
`)),ue.focus();case se:var nt=ie.src,ht=ie.alt;return ue.replaceSelection(".concat(nt,' "').concat(ht,'" )')),ue.focus();case U:for(var gt=ie.row,at=ie.col,kt=ie.align,Zt=`
|
|
|
`,Vt=0;Vt<gt;Vt++){for(var cr=[],$t=[],dr=0;dr<at;dr++)Vt===1&&$t.push(N[kt]),cr.push(" ");Vt===1&&(Zt+="| ".concat($t.join(" | "),` |
|
|
|
`)),Zt+="| ".concat(cr.join(at===1?"":" | "),` |
|
|
|
`)}return ue.replaceSelection(Zt+`
|
|
|
`),ue.focus();default:throw new Error}},[ue,yt]),mt=Object(d.useMemo)(function(){switch(yt){case Q:return r.a.createElement(z,{callback:st,onCancel:wt});case H:return r.a.createElement(te.b,{callback:st,onCancel:wt});case se:return r.a.createElement(k,{callback:st,onCancel:wt});case U:return r.a.createElement(X,{callback:st,onCancel:wt});default:return null}},[yt]);function wt(){_t("")}Object(d.useEffect)(function(){if(Ot.current){var ie=function(gt){Ge=!0,nt=gt.pageY},Ie=function(){Ge=!1},Pe=function(gt){if(Ge){var at=gt.pageY-nt;at<0&&(at=0),at>300&&(at=300);var kt=ft+at+"px";It(kt)}},ze=Ot.current,Ge=!1,nt=0;return ze.addEventListener("mousedown",ie),document.addEventListener("mousemove",Pe),document.addEventListener("mouseup",Ie),function(){ze.removeEventListener("mousedown",ie),document.removeEventListener("mousemove",Pe),document.removeEventListener("mouseup",Ie)}}},[ue,Ot]),Object(d.useEffect)(function(){It(ft)},[ft]);var St=ye(tt),Wt=ye(At),Ft={width:St,height:Wt},$e=Object(d.useMemo)(function(){if(We){var ie=new Date(We),Ie=ie.getHours(),Pe=ie.getMinutes(),ze=ie.getSeconds();return Ie=Ie<10?"0"+Ie:Ie,Pe=Pe<10?"0"+Pe:Pe,ze=ze<10?"0"+ze:ze,"".concat(Ie,":").concat(Pe,":").concat(ze)}return 0},[We]);function Gt(){window.sessionStorage.removeItem(Yt),Ct(!1),Xe(0)}function Qe(){Ct(!1),Xe(0),ue.setValue(window.sessionStorage.getItem(Yt))}return r.a.createElement(d.Fragment,null,r.a.createElement("div",{className:"markdown-editor-wrapper",ref:Dt},r.a.createElement("div",{className:"markdown-editor-container ".concat(yr," ").concat(ut?"on-preview":""," ").concat(Mt?"mini":""," ").concat(Je?"full-screen":""),style:Ft},r.a.createElement(h,{watch:ut,fullScreen:Je,showNullButton:br,onActionCallback:qe}),r.a.createElement("div",{className:"markdown-editor-body"},r.a.createElement("div",{className:"codemirror-container"},r.a.createElement("textarea",{ref:Tt,placeholder:_r})),ut?r.a.createElement("div",{ref:xt,className:"preview-container"},r.a.createElement(x.a,{value:Ze})):null)),jt?r.a.createElement("div",{className:"markdown-tip"},"\u60A8\u4E0A\u6B21\u6709\u5DF2\u4FDD\u5B58\u7684\u6570\u636E\uFF0C\u662F\u5426",r.a.createElement("a",{onClick:Qe},"\u6062\u590D")," ? /",r.a.createElement("a",{onClick:Gt},"\u4E0D\u6062\u590D")," \uFF08\u6570\u636E\u5DF2\u4E8E ",$e," \u4FDD\u5B58\uFF09"):null),mr?r.a.createElement("a",{ref:Ot,className:"editor-resize"}):null,r.a.createElement(L.a,null,Oe[yt]?r.a.createElement(t.a,{centered:!0,title:Oe[yt],visible:!0,onCancel:wt,footer:null},mt):null))}},V5fa:function(e,_,l){e.exports={flex_box_center:"flex_box_center___1_S53",flex_space_between:"flex_space_between___1jn1m",flex_box_vertical_center:"flex_box_vertical_center___3ENQs",flex_box_center_end:"flex_box_center_end___1RjJf",flex_box_column:"flex_box_column___3-6wq",bg:"bg___3wGkV",title:"title___1QMPU",questionIcons:"questionIcons___2kqHA",green:"green___3sUty",orange:"orange___1IwUK",greenTip:"greenTip___2LD-4",redTip:"redTip___Ua25P",orangeTip:"orangeTip___1P_qu",pollDesc:"pollDesc___12pG2",answered:"answered___12rTH",unanswer:"unanswer___2WW2x",anchor:"anchor___K9-2U",answerFlag:"answerFlag___3jqRB",flagActive:"flagActive___38hkf",flagHalf:"flagHalf___1rgyT",answerStudentFlag:"answerStudentFlag___2zRLo",answerStudentActive:"answerStudentActive___2T-mu",questionItem:"questionItem___LqD7i",itemType:"itemType___1pbUF",itemFlag:"itemFlag___3xnGm",answerWrap:"answerWrap___13WPD",answerSubjective:"answerSubjective___BuIEZ",otherInput:"otherInput___3j4KI",submitButton:"submitButton___3lR03",randomFlag:"randomFlag___HVH41",answerTrue:"answerTrue___3EG1E",answerFalse:"answerFalse___zj_y6",answerHalf:"answerHalf___27vGH",renderHtml:"renderHtml___1U3SR",simpleText:"simpleText___1ljHF",answerYes:"answerYes___nDZ92",answerNo:"answerNo___1DhaR",answerInfo:"answerInfo___150u3",answerSheet:"answerSheet___1m3xL",active:"active___I4C3w",countDown:"countDown___1gxag",red:"red___1J5W8",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,_,l){"use strict";l.d(_,"a",function(){return T});var i=l("k1fw"),t=l("rAM+"),y=l("tJVT"),c=l("q1tI"),f=l.n(c),d=l("bdgK");function r(x,E,M,O,S){var w=E.getWordUntilPosition(M),h={startLineNumber:M.lineNumber,endLineNumber:M.lineNumber,startColumn:w.startColumn,endColumn:w.endColumn},L=O.map(function(C){return{label:C,kind:x.languages.CompletionItemKind.Keyword,insertText:C,insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:h}});return S.map(function(C){L.push(Object(i.a)(Object(i.a)({},C),{},{range:h}))}),L}var u=function(x){var E={label:"ifelse",kind:x.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},M=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];x.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(h,L){var C=r(x,h,L,M,[E]);return{suggestions:C}}});var O=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];x.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(h,L){var C=[{label:"print",kind:x.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
|
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=r(x,h,L,O,C);return{suggestions:I}}});var S=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];x.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(h,L){var C=[E,{label:"main",kind:x.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:x.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
|
|
|
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=r(x,h,L,S,C);return{suggestions:I}}})};function s(x){return/^\d+$/.test(x)?"".concat(x,"px"):x}function n(){}var a=!1,b={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function p(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=x;if(Array.isArray(x)){for(var M=0;M<x.length;M++){var O=b[x[M]];if(O)return O}return E[0]}return b[E]||E}var m=null,A=_.b=function(x){var E=x.width,M=E===void 0?"100%":E,O=x.height,S=O===void 0?"100%":O,w=x.value,h=x.language,L=h===void 0?"javascript":h,C=x.style,I=C===void 0?{}:C,R=x.options,B=R===void 0?{}:R,G=x.overrideServices,P=G===void 0?{}:G,oe=x.theme,z=oe===void 0?"vs-dark":oe,te=x.onEditBlur,Y=x.onSave,j=x.forbidCopy,F=j===void 0?!1:j,V=x.onChange,Z=V===void 0?n:V,k=x.editorDidMount,ee=k===void 0?n:k,ae=x.onFocus,ne=ae===void 0?n:ae,le=Object(c.useRef)(),fe=Object(c.useRef)({}),q=Object(c.useState)(!1),pe=Object(y.a)(q,2),D=pe[0],X=pe[1];function $(){var N;return le.current&&(N=new d.default(function(g){var o=Object(t.a)(g),v;try{for(o.s();!(v=o.n()).done;){var K=v.value;(K.target.offsetHeight>0||K.target.offsetWidth>0)&&fe.current.instance.layout()}}catch(W){o.e(W)}finally{o.f()}}),N.observe(le.current)),N}Object(c.useEffect)(function(){var N=fe.current.instance;if(w!=null&&N&&D){var g=N.getModel();g&&w!==g.getValue()&&(a=!0,g.setValue(w),N.layout(),a=!1)}},[w,D,fe.current]);function Q(){var N=fe.current.instance;if(N){var g=N.getSelection(),o=fe.current.pastePos||{},v=new m.Range(o.startLineNumber||g.endLineNumber,o.startColumn||g.endColumn,o.endLineNumber||g.endLineNumber,o.endColumn||g.endColumn);N.executeEdits("",[{range:v,text:""}])}}function se(N){(window.navigator.platform.match("Mac")?N.metaKey:N.ctrlKey)&&N.keyCode==83&&(N.preventDefault(),Y())}Object(c.useEffect)(function(){le.current&&!D&&l.e(24).then(l.t.bind(null,"M/lh",7)).then(function(N){m=N,u(m),fe.current.instance=m.editor.create(le.current,Object(i.a)({value:w,language:p(L),theme:z},B),P);var g=fe.current.instance;ee(g,m),fe.current.subscription=g.onDidChangeModelContent(function(v){a||Z(g.getValue(),v)}),te&&g.onDidBlurEditorWidget(function(){te(g.getValue())}),ne&&g.onDidFocusEditorText(function(){ne(g.getValue())}),F&&(g.addCommand(m.KeyMod.CtrlCmd|m.KeyCode.KEY_V,function(){return null}),g.onDidPaste(function(v){fe.current.pastePos=v}),window.addEventListener("paste",Q));var o=$();return X(!0),function(){var v=fe.current.instance;v.dispose();var K=v.getModel();K&&K.dispose(),fe.current.subscription&&fe.current.subscription.dispose(),F&&window.removeEventListener("paste",Q),o.unobserve(le.current)}})},[]),Object(c.useEffect)(function(){var N=fe.current.instance;if(N&&D)return document.addEventListener("keydown",se,!1),function(){document.removeEventListener("keydown",se)}},[Y,D]),Object(c.useEffect)(function(){var N=fe.current.instance;if(N&&D){var g=p(L);m.editor.setModelLanguage(N.getModel(),g)}},[L,D]),Object(c.useEffect)(function(){var N=fe.current.instance;N&&D&&m.editor.setTheme(z)},[z,D]),Object(c.useEffect)(function(){var N=fe.current.instance;N&&D&&N.updateOptions(B)},[JSON.stringify(B),D]),Object(c.useEffect)(function(){var N=fe.current.instance;N&&D&&N.layout()},[M,S,D]);var H=s(M),U=s(S),J=Object(i.a)(Object(i.a)({},I),{},{width:H,height:U});return f.a.createElement("div",{className:"my-monaco-editor",ref:le,style:J})};function T(x){var E=x.width,M=E===void 0?"100%":E,O=x.height,S=O===void 0?"100%":O,w=x.original,h=x.modified,L=x.language,C=x.options,I=C===void 0?{}:C,R=Object(c.useRef)(),B=Object(c.useState)(null),G=Object(y.a)(B,2),P=G[0],oe=G[1];function z(F){var V;return R.current&&(V=new d.default(function(Z){var k=Object(t.a)(Z),ee;try{for(k.s();!(ee=k.n()).done;){var ae=ee.value;(ae.target.offsetHeight>0||ae.target.offsetWidth>0)&&F.layout()}}catch(ne){k.e(ne)}finally{k.f()}}),V.observe(R.current)),V}Object(c.useEffect)(function(){R.current&&l.e(24).then(l.t.bind(null,"M/lh",7)).then(function(F){m=F;var V=m.editor.createDiffEditor(R.current,Object(i.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},I));oe(V);var Z=z(V);return function(){V.dispose();var k=V.getModel();k&&k.dispose(),Z.unobserve(R.current)}})},[]),Object(c.useEffect)(function(){P&&P.setModel({original:m.editor.createModel(w,L),modified:m.editor.createModel(h,L)})},[w,h,L,P]);var te=s(M),Y=s(S),j={width:te,height:Y};return f.a.createElement("div",{className:"my-diff-editor",ref:R,style:j})}},bPs0:function(e,_,l){"use strict";l.d(_,"b",function(){return A});var i=l("k1fw"),t=l("WmNS"),y=l.n(t),c=l("9og8"),f=l("2qtc"),d=l("kLXV"),r=l("tJVT"),u=l("PpiC"),s=l("q1tI"),n=l.n(s),a=l("bntm"),b=l("V0Rq"),p=l("Ty5D"),m=l("9kvl"),A=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"],T=function(E){var M=E.globalSetting,O=E.loading,S=E.user,w=E.exercise,h=E.dispatch,L=Object(u.a)(E,["globalSetting","loading","user","exercise","dispatch"]),C=Object(s.useState)({}),I=Object(r.a)(C,2),R=I[0],B=I[1],G=d.a.useModal(),P=Object(r.a)(G,2),oe=P[0],z=P[1],te=Object(s.useRef)(null),Y=Object(s.useState)(),j=Object(r.a)(Y,2),F=j[0],V=j[1],Z=Object(s.useState)(),k=Object(r.a)(Z,2),ee=k[0],ae=k[1],ne=Object(s.useState)(!0),le=Object(r.a)(ne,2),fe=le[0],q=le[1],pe=Object(p.l)().query,D=Object(p.m)();Object(s.useEffect)(function(){var U;return clearTimeout(te.current),A.forEach(function(J,N){window.addEventListener(J,H,!1)}),document.addEventListener("click",X,!1),document.addEventListener("visibilitychange",function(){if(document.hidden&&Object(a.a)()){debugger;Object(a.b)()}}),((U=w.exerciseUserInfo)===null||U===void 0?void 0:U.screen_open)&&!Object(a.a)()&&d.a.info({icon:null,content:n.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",n.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",w.exerciseUserInfo.screen_num-w.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",n.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){Object(a.c)(document.body),q(!1)}}),function(){document.removeEventListener("click",X,!1),A.forEach(function(J,N){window.addEventListener(J,H,!1)}),clearTimeout(te.current)}},[]),Object(s.useEffect)(function(){w.exerciseUserInfo.used_screen_num>w.exerciseUserInfo.screen_num?se():fe||$()},[w.exerciseUserInfo]);var X=function(){Object(a.a)()||Object(a.c)(document.body)},$=function(){var J;d.a.destroyAll(),d.a.info({content:n.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",n.a.createElement("span",{className:"c-red"},w.exerciseUserInfo.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",n.a.createElement("span",{className:"c-red"},(J=w.exerciseUserInfo)===null||J===void 0?void 0:J.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){Object(a.c)(document.body)}})},Q=function(){location.href="/classrooms/".concat(D.coursesId,"/exercise/").concat(D.categoryId,"/detail")},se=function(){var U=Object(c.a)(y.a.mark(function J(){var N;return y.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return Object(a.b)(),d.a.destroyAll(),o.next=4,Object(b.K)({categoryId:D.categoryId,commit_method:1});case 4:N=o.sent,N&&oe.info({content:n.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",n.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){Q()}});case 6:case"end":return o.stop()}},J)}));return function(){return U.apply(this,arguments)}}(),H=function(){var J=!1;if(Object(a.a)())clearTimeout(te.current);else{J=!0;var N=setTimeout(Object(c.a)(y.a.mark(function g(){return y.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Object(b.F)({id:D.categoryId});case 2:return v.next=4,h({type:"exercise/getExerciseUserInfo",payload:Object(i.a)({},D)});case 4:w.exerciseUserInfo.used_screen_num<w.exerciseUserInfo.screen_num||se();case 5:case"end":return v.stop()}},g)})),w.exerciseUserInfo.screen_sec*1e3);te.current=N,ae(N)}h({type:"globalSetting/headerFooterToggle",payload:J}),h({type:"globalSetting/onlyShowBackTopToggle",payload:J})};return n.a.createElement("div",null,z)};_.a=Object(m.a)(function(x){var E=x.loading,M=x.user,O=x.exercise,S=x.globalSetting;return{globalSetting:S,user:M,exercise:O,loading:E.effects}})(T)},bntm:function(e,_,l){"use strict";l.d(_,"c",function(){return i}),l.d(_,"b",function(){return t}),l.d(_,"a",function(){return y});function i(c){try{c.mozRequestFullScreen?c.mozRequestFullScreen():c.webkitRequestFullScreen&&c.webkitRequestFullScreen()}catch(f){console.log(f,":e")}}function t(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}function y(){var c=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,f=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(c==null)}},dejd:function(e,_,l){},kSUc:function(e,_,l){},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){if(!0)module.exports=e();else var _})(function(){var define,module,exports;return function(){function e(_,l,i){function t(f,d){if(!l[f]){if(!_[f]){var r=typeof require=="function"&&require;if(!d&&r)return require(f,!0);if(y)return y(f,!0);var u=new Error("Cannot find module '"+f+"'");throw u.code="MODULE_NOT_FOUND",u}var s=l[f]={exports:{}};_[f][0].call(s.exports,function(n){var a=_[f][1][n];return t(a||n)},s,s.exports,e,_,l,i)}return l[f].exports}for(var y=typeof require=="function"&&require,c=0;c<i.length;c++)t(i[c]);return t}return e}()({1:[function(e,_,l){"use strict";var i=e("./browser/client");i.Buffer=e("buffer").Buffer,i.urllib=e("../shims/xhr"),i.version=e("./browser/version").version,_.exports=i},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(e,_,l){(function(i,t){"use strict";var y=e("babel-runtime/core-js/promise"),c=s(y),f=e("babel-runtime/regenerator"),d=s(f),r=e("babel-runtime/core-js/object/assign"),u=s(r);function s(te){return te&&te.__esModule?te:{default:te}}var n=e("debug")("ali-oss"),a=e("copy-to"),b=e("xml2js"),p=e("agentkeepalive"),m=e("merge-descriptors"),A=e("url"),T=e("is-type-of"),x=e("platform"),E=e("utility"),M=e("urllib"),O=e("./version"),S=e("bowser"),w=e("../common/signUtils"),h=e("../common/utils/isIP"),L=h.isIP,C=e("../common/client/initOptions"),I=e("../common/utils/createRequest"),R=I.createRequest,B=new p;function G(){var te=x.name,Y=x.version;te&&te.toLowerCase&&te.toLowerCase()==="ie"&&Y.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function P(){return location&&location.protocol==="https:"}function oe(te,Y){if(G(),!(this instanceof oe))return new oe(te,Y);te&&te.inited?this.options=te:this.options=oe.initOptions(te),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=M,this.agent=this.options.agent||B),this.ctx=Y,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}_.exports=oe,oe.initOptions=function(Y){Y.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var j=(0,u.default)({secure:P(),useFetch:!1},Y);return C(j)};var z=oe.prototype;z.debug=n,m(z,e("./object")),m(z,e("../common/bucket/getBucketWebsite")),m(z,e("../common/bucket/putBucketWebsite")),m(z,e("../common/bucket/deleteBucketWebsite")),m(z,e("../common/bucket/getBucketLifecycle")),m(z,e("../common/bucket/putBucketLifecycle")),m(z,e("../common/bucket/deleteBucketLifecycle")),m(z,e("../common/bucket/putBucketVersioning")),m(z,e("../common/bucket/getBucketVersioning")),m(z,e("./managed-upload")),m(z,e("../common/multipart")),m(z,e("../common/parallel")),z.signature=function(Y){return this.debug("authorization stringToSign: %s",Y,"info"),w.computeSignature(this.options.accessKeySecret,Y)},z.authorization=function(Y,j,F,V){var Z=w.buildCanonicalString(Y.toUpperCase(),j,{headers:V,parameters:F});return w.authorization(this.options.accessKeyId,this.options.accessKeySecret,Z)},z.request=function(Y){var j,F,V,Z,k,ee;return d.default.async(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return j=R.call(this,Y),this.options.useFetch||(j.params.mode="disable-fetch"),F=void 0,V=void 0,Z=!!Y.stream,ne.prev=5,ne.next=8,d.default.awrap(this.urllib.request(j.url,j.params));case 8:F=ne.sent,this.debug("response %s %s, got %s, headers: %j",Y.method,j.url,F.status,F.headers,"info"),ne.next=15;break;case 12:ne.prev=12,ne.t0=ne.catch(5),V=ne.t0;case 15:if(k=void 0,!(F&&Y.successStatuses&&Y.successStatuses.indexOf(F.status)===-1)){ne.next=28;break}return ne.next=19,d.default.awrap(this.requestError(F));case 19:if(k=ne.sent,!(k.code==="RequestTimeTooSkewed"&&!Z)){ne.next=25;break}return this.options.amendTimeSkewed=+new Date(k.serverTime)-new Date,ne.next=24,d.default.awrap(this.request(Y));case 24:return ne.abrupt("return",ne.sent);case 25:k.params=Y,ne.next=32;break;case 28:if(!V){ne.next=32;break}return ne.next=31,d.default.awrap(this.requestError(V));case 31:k=ne.sent;case 32:if(!k){ne.next=34;break}throw k;case 34:if(!Y.xmlResponse){ne.next=39;break}return ne.next=37,d.default.awrap(this.parseXML(F.data));case 37:ee=ne.sent,F.data=ee;case 39:return ne.abrupt("return",F);case 40:case"end":return ne.stop()}},null,this,[[5,12]])},z._getResource=function(Y){var j="/";return Y.bucket&&(j+=Y.bucket+"/"),Y.object&&(j+=Y.object),j},z._isIP=L,z._escape=function(Y){return E.encodeURIComponent(Y).replace(/%2F/g,"/")},z._getReqUrl=function(Y){var j={};a(this.options.endpoint).to(j);var F=this._isIP(j.hostname),V=this.options.cname;Y.bucket&&!V&&!F&&(j.host=Y.bucket+"."+j.host);var Z="/";Y.bucket&&F&&(Z+=Y.bucket+"/"),Y.object&&(Z+=this._escape(Y.object).replace(/\+/g,"%2B")),j.pathname=Z;var k={};if(Y.query&&m(k,Y.query),Y.subres){var ee={};T.string(Y.subres)?ee[Y.subres]="":T.array(Y.subres)?Y.subres.forEach(function(ae){ee[ae]=""}):ee=Y.subres,m(k,ee)}return j.query=k,A.format(j)},z._getUserAgent=function(){var Y=t&&t.browser?"js":"nodejs",j="aliyun-sdk-"+Y+"/"+O.version,F=x.description;return!F&&t&&(F="Node.js "+t.version.slice(1)+" on "+t.platform+" "+t.arch),this._checkUserAgent(j+" "+F)},z._checkUserAgent=function(Y){var j=Y.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return j},z.checkBrowserAndVersion=function(Y,j){return S.name===Y&&S.version.split(".")[0]===j},z.parseXML=function(Y){return new c.default(function(j,F){i.isBuffer(Y)&&(Y=Y.toString()),b.parseString(Y,{explicitRoot:!1,explicitArray:!1},function(V,Z){V?F(V):j(Z)})})},z.requestError=function(Y){var j,F,V,Z;return d.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(j=null,!(!Y.data||!Y.data.length)){ee.next=5;break}Y.status===-1||Y.status===-2?(j=new Error(Y.message),j.name=Y.name,j.status=Y.status,j.code=Y.name):(Y.status===404?(j=new Error("Object not exists"),j.name="NoSuchKeyError",j.status=404,j.code="NoSuchKey"):Y.status===412?(j=new Error("Pre condition failed"),j.name="PreconditionFailedError",j.status=412,j.code="PreconditionFailed"):(j=new Error("Unknow error, status: "+Y.status),j.name="UnknowError",j.status=Y.status),j.requestId=Y.headers["x-oss-request-id"],j.host=""),ee.next=33;break;case 5:return F=String(Y.data),this.debug("request response error data: %s",F,"error"),V=void 0,ee.prev=8,ee.next=11,d.default.awrap(this.parseXML(F));case 11:if(ee.t0=ee.sent,ee.t0){ee.next=14;break}ee.t0={};case 14:V=ee.t0,ee.next=24;break;case 17:return ee.prev=17,ee.t1=ee.catch(8),this.debug(F,"error"),ee.t1.message+=`
|
|
|
raw xml: `+F,ee.t1.status=Y.status,ee.t1.requestId=Y.headers["x-oss-request-id"],ee.abrupt("return",ee.t1);case 24:Z=V.Message||"unknow request error, status: "+Y.status,V.Condition&&(Z+=" (condition: "+V.Condition+")"),j=new Error(Z),j.name=V.Code?V.Code+"Error":"UnknowError",j.status=Y.status,j.code=V.Code,j.requestId=V.RequestId,j.hostId=V.HostId,j.serverTime=V.ServerTime;case 33:return this.debug("generate error %j",j,"error"),ee.abrupt("return",j);case 35:case"end":return ee.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/core-js/array/from"),y=u(t),c=e("babel-runtime/core-js/promise"),f=u(c),d=e("babel-runtime/regenerator"),r=u(d);function u(w){return w&&w.__esModule?w:{default:w}}var s=e("is-type-of"),n=e("util"),a=e("path"),b=e("mime"),p=e("copy-to"),m=e("../common/utils/isBlob"),A=m.isBlob,T=e("../common/utils/isFile"),x=T.isFile,E=l;E.multipartUpload=function(h,L,C){var I,R,B,G,P,oe,z,te,Y;return r.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),C=C||{},!(C.checkpoint&&C.checkpoint.uploadId)){F.next=6;break}return F.next=5,r.default.awrap(this._resumeMultipart(C.checkpoint,C));case 5:return F.abrupt("return",F.sent);case 6:return I=100*1024,C.mime||(x(L)?C.mime=b.getType(a.extname(L.name)):A(L)?C.mime=L.type:C.mime=b.getType(a.extname(L))),C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),F.next=12,r.default.awrap(this._getFileSize(L));case 12:if(R=F.sent,!(R<I)){F.next=25;break}return B=this._createStream(L,0,R),C.contentLength=R,F.next=18,r.default.awrap(this.putStream(h,B,C));case 18:if(G=F.sent,!(C&&C.progress)){F.next=22;break}return F.next=22,r.default.awrap(C.progress(1));case 22:return P={res:G.res,bucket:this.options.bucket,name:h,etag:G.res.headers.etag},(C.headers&&C.headers["x-oss-callback"]||C.callback)&&(P.data=G.data),F.abrupt("return",P);case 25:if(!(C.partSize&&!(parseInt(C.partSize,10)===C.partSize))){F.next=27;break}throw new Error("partSize must be int number");case 27:if(!(C.partSize&&C.partSize<I)){F.next=29;break}throw new Error("partSize must not be smaller than "+I);case 29:return F.next=31,r.default.awrap(this.initMultipartUpload(h,C));case 31:if(oe=F.sent,z=oe.uploadId,te=this._getPartSize(R,C.partSize),Y={file:L,name:h,fileSize:R,partSize:te,uploadId:z,doneParts:[]},!(C&&C.progress)){F.next=38;break}return F.next=38,r.default.awrap(C.progress(0,Y,oe.res));case 38:return F.next=40,r.default.awrap(this._resumeMultipart(Y,C));case 40:return F.abrupt("return",F.sent);case 41:case"end":return F.stop()}},null,this)},E._resumeMultipart=function(h,L){var C,I,R,B,G,P,oe,z,te,Y,j,F,V,Z,k,ee,ae,ne;return r.default.async(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(C=this,!this.isCancel()){fe.next=3;break}throw this._makeCancelEvent();case 3:return I=h.file,R=h.fileSize,B=h.partSize,G=h.uploadId,P=h.doneParts,oe=h.name,z=[],P.length>0&&p(P).to(z),te=this._divideParts(R,B),Y=te.length,j=!1,F=function(pe,D){var X=this;return new f.default(function(Q,se){var H,U,J,N;return r.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,pe.isCancel()){o.next=18;break}return H=te[D-1],U={stream:pe._createStream(I,H.start,H.end),size:H.end-H.start},o.next=6,r.default.awrap(pe._uploadPart(oe,G,D,U));case 6:if(J=o.sent,!(!pe.isCancel()&&!j)){o.next=15;break}if(h.doneParts.push({number:D,etag:J.res.headers.etag}),!L.progress){o.next=12;break}return o.next=12,r.default.awrap(L.progress(P.length/Y,h,J.res));case 12:Q({number:D,etag:J.res.headers.etag}),o.next=16;break;case 15:Q();case 16:o.next=19;break;case 18:Q();case 19:o.next=30;break;case 21:o.prev=21,o.t0=o.catch(0),N=new Error,N.name=o.t0.name,N.message=o.t0.message,N.stack=o.t0.stack,N.partNum=D,p(o.t0).to(N),se(N);case 30:case"end":return o.stop()}},null,X,[[0,21]])})},V=(0,y.default)(new Array(Y),function(q,pe){return pe+1}),Z=z.map(function(q){return q.number}),k=V.filter(function(q){return Z.indexOf(q)<0}),ee=5,ae=L.parallel||ee,fe.next=17,r.default.awrap(this._parallel(k,ae,function(q){return new f.default(function(pe,D){F(C,q).then(function(X){X&&z.push(X),pe()}).catch(function(X){D(X)})})}));case 17:if(ne=fe.sent,j=!0,!this.isCancel()){fe.next=22;break}throw F=null,this._makeCancelEvent();case 22:if(!(ne&&ne.length>0)){fe.next=25;break}throw ne[0].message="Failed to upload some parts with error: "+ne[0].toString()+" part_num: "+ne[0].partNum,ne[0];case 25:return fe.next=27,r.default.awrap(this.completeMultipartUpload(oe,G,z,L));case 27:return fe.abrupt("return",fe.sent);case 28:case"end":return fe.stop()}},null,this)},E._getFileSize=function(h){return r.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!s.buffer(h)){C.next=4;break}return C.abrupt("return",h.length);case 4:if(!(A(h)||x(h))){C.next=6;break}return C.abrupt("return",h.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return C.stop()}},null,this)};var M=e("stream"),O=M.Readable;function S(w,h){if(!(this instanceof S))return new S(w,h);O.call(this,h),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}n.inherits(S,O),S.prototype.readFileAndPush=function(h){if(this.fileBuffer)for(var L=!0;L&&this.fileBuffer&&this.start<this.fileBuffer.length;){var C=this.start,I=C+h;I=I>this.fileBuffer.length?this.fileBuffer.length:I,this.start=I,L=this.push(this.fileBuffer.slice(C,I))}},S.prototype._read=function(h){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var L=16*1024;h=h||L;var C=this;this.reader.onload=function(R){C.fileBuffer=i.from(new Uint8Array(R.target.result)),C.file=null,C.readFileAndPush(h)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(h)},E._createStream=function(h,L,C){if(A(h)||x(h))return new S(h.slice(L,C));throw new Error("_createStream requires File/Blob.")},E._getPartSize=function(h,L){var C=10*1e3,I=1024*1024;return L?Math.max(Math.ceil(h/C),L):I},E._divideParts=function(h,L){for(var C=Math.ceil(h/L),I=[],R=0;R<C;R++){var B=L*R,G=Math.min(B+L,h);I.push({start:B,end:G})}return I}}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/promise"),t=s(i),y=e("babel-runtime/core-js/object/keys"),c=s(y),f=e("babel-runtime/core-js/object/assign"),d=s(f),r=e("babel-runtime/regenerator"),u=s(r);function s(C){return C&&C.__esModule?C:{default:C}}var n=e("utility"),a=e("fs"),b=e("is-type-of"),p=e("url"),m=e("copy-to"),A=e("path"),T=e("mime"),x=e("../common/callback"),E=e("../common/signUtils"),M=e("merge-descriptors"),O=e("../common/utils/isBlob"),S=O.isBlob,w=e("../common/utils/isFile"),h=w.isFile,L=l;L.append=function(I,R,B){var G;return u.default.async(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return B=B||{},B.position===void 0&&(B.position="0"),B.subres={append:"",position:B.position},B.method="POST",oe.next=6,u.default.awrap(this.put(I,R,B));case 6:return G=oe.sent,G.nextAppendPosition=G.res.headers["x-oss-next-append-position"],oe.abrupt("return",G);case 9:case"end":return oe.stop()}},null,this)},L.put=function(I,R,B){var G,P,oe,z,te,Y,j;return u.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(G=void 0,B=B||{},I=this._objectName(I),!b.buffer(R)){V.next=7;break}G=R,V.next=33;break;case 7:if(!(S(R)||h(R))){V.next=32;break}return B.mime||(h(R)?B.mime=T.getType(A.extname(R.name)):B.mime=R.type),P=this._createStream(R,0,R.size),V.next=12,u.default.awrap(this._getFileSize(R));case 12:return B.contentLength=V.sent,V.prev=13,V.next=16,u.default.awrap(this.putStream(I,P,B));case 16:return oe=V.sent,V.abrupt("return",oe);case 20:if(V.prev=20,V.t0=V.catch(13),!(V.t0.code==="RequestTimeTooSkewed")){V.next=29;break}return this.options.amendTimeSkewed=+new Date(V.t0.serverTime)-new Date,V.next=26,u.default.awrap(this.put(I,R,B));case 26:return V.abrupt("return",V.sent);case 29:throw V.t0;case 30:V.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return B.headers=B.headers||{},this._convertMetaToHeaders(B.meta,B.headers),z=B.method||"PUT",te=this._objectRequestParams(z,I,B),x.encodeCallback(te,B),te.mime=B.mime,te.content=G,te.successStatuses=[200],V.next=43,u.default.awrap(this.request(te));case 43:return Y=V.sent,j={name:I,url:this._objectUrl(I),res:Y.res},te.headers&&te.headers["x-oss-callback"]&&(j.data=JSON.parse(Y.data.toString())),V.abrupt("return",j);case 47:case"end":return V.stop()}},null,this,[[13,20]])},L.putStream=function(I,R,B){var G,P,oe,z;return u.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return B=B||{},B.headers=B.headers||{},I=this._objectName(I),B.contentLength?B.headers["Content-Length"]=B.contentLength:B.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(B.meta,B.headers),G=B.method||"PUT",P=this._objectRequestParams(G,I,B),x.encodeCallback(P,B),P.mime=B.mime,P.stream=R,P.successStatuses=[200],Y.next=13,u.default.awrap(this.request(P));case 13:return oe=Y.sent,z={name:I,url:this._objectUrl(I),res:oe.res},P.headers&&P.headers["x-oss-callback"]&&(z.data=JSON.parse(oe.data.toString())),Y.abrupt("return",z);case 17:case"end":return Y.stop()}},null,this)},M(L,e("../common/object/copyObject")),M(L,e("../common/object/getObjectTagging")),M(L,e("../common/object/putObjectTagging")),M(L,e("../common/object/deleteObjectTagging")),M(L,e("../common/image")),M(L,e("../common/object/getBucketVersions")),M(L,e("../common/object/getACL")),M(L,e("../common/object/putACL")),M(L,e("../common/object/head")),M(L,e("../common/object/delete")),M(L,e("../common/object/get")),M(L,e("../common/object/putSymlink")),M(L,e("../common/object/getSymlink")),M(L,e("../common/object/deleteMulti")),M(L,e("../common/object/getObjectMeta")),L.putMeta=function(I,R,B){var G;return u.default.async(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.next=2,u.default.awrap(this.copy(I,I,{meta:R||{},timeout:B&&B.timeout,ctx:B&&B.ctx}));case 2:return G=oe.sent,oe.abrupt("return",G);case 4:case"end":return oe.stop()}},null,this)},L.list=function(I,R){var B,G,P,oe,z;return u.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return B=this._objectRequestParams("GET","",R),B.query=I,B.xmlResponse=!0,B.successStatuses=[200],Y.next=6,u.default.awrap(this.request(B));case 6:return G=Y.sent,P=G.data.Contents,oe=this,P&&(Array.isArray(P)||(P=[P]),P=P.map(function(j){return{name:j.Key,url:oe._objectUrl(j.Key),lastModified:j.LastModified,etag:j.ETag,type:j.Type,size:Number(j.Size),storageClass:j.StorageClass,owner:{id:j.Owner.ID,displayName:j.Owner.DisplayName}}})),z=G.data.CommonPrefixes||null,z&&(Array.isArray(z)||(z=[z]),z=z.map(function(j){return j.Prefix})),Y.abrupt("return",{res:G.res,objects:P,prefixes:z,nextMarker:G.data.NextMarker||null,isTruncated:G.data.IsTruncated==="true"});case 13:case"end":return Y.stop()}},null,this)},L.restore=function(I,R){var B,G;return u.default.async(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return R=R||{},R.subres=(0,d.default)({restore:""},R.subres),R.versionId&&(R.subres.versionId=R.versionId),B=this._objectRequestParams("POST",I,R),B.successStatuses=[202],oe.next=7,u.default.awrap(this.request(B));case 7:return G=oe.sent,oe.abrupt("return",{res:G.res});case 9:case"end":return oe.stop()}},null,this)},L.signatureUrl=function(I,R){R=R||{},I=this._objectName(I),R.method=R.method||"GET";var B=n.timestamp()+(R.expires||1800),G={bucket:this.options.bucket,object:I},P=this._getResource(G);this.options.stsToken&&(R["security-token"]=this.options.stsToken);var oe=E._signatureForURL(this.options.accessKeySecret,R,P,B),z=p.parse(this._getReqUrl(G));return z.query={OSSAccessKeyId:this.options.accessKeyId,Expires:B,Signature:oe.Signature},m(oe.subResource).to(z.query),z.format()},L.getObjectUrl=function(I,R){return R?R[R.length-1]!=="/"&&(R+="/"):R=this.options.endpoint.format(),R+this._escape(this._objectName(I))},L._objectUrl=function(I){return this._getReqUrl({bucket:this.options.bucket,object:I})},L.generateObjectUrl=function(C,I){if(I)I[I.length-1]!=="/"&&(I+="/");else{I=this.options.endpoint.format();var R=p.parse(I),B=this.options.bucket;R.hostname=B+"."+R.hostname,R.host=B+"."+R.host,I=R.format()}return I+this._escape(this._objectName(C))},L._objectRequestParams=function(I,R,B){if(!this.options.bucket)throw new Error("Please create a bucket first");B=B||{},R=this._objectName(R);var G={object:R,bucket:this.options.bucket,method:I,subres:B&&B.subres,timeout:B&&B.timeout,ctx:B&&B.ctx};return B.headers&&(G.headers={},m(B.headers).to(G.headers)),G},L._objectName=function(I){return I.replace(/^\/+/,"")},L._convertMetaToHeaders=function(I,R){if(!I)return;(0,c.default)(I).forEach(function(B){R["x-oss-meta-"+B]=I[B]})},L._deleteFileSafe=function(I){var R=this;return new t.default(function(B){a.exists(I,function(G){G?a.unlink(I,function(P){P&&R.debug("unlink %j error: %s",I,P,"error"),B()}):B()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(e,_,l){"use strict";l.version="6.10.0"},{}],6:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(r){return r&&r.__esModule?r:{default:r}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=l;d.deleteBucketLifecycle=function(u,s){var n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return f(u),n=this._bucketRequestParams("DELETE",u,"lifecycle",s),n.successStatuses=[204],p.next=5,t.default.awrap(this.request(n));case 5:return a=p.sent,p.abrupt("return",{res:a.res});case 7:case"end":return p.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(r){return r&&r.__esModule?r:{default:r}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=l;d.deleteBucketWebsite=function(u,s){var n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return f(u),n=this._bucketRequestParams("DELETE",u,"website",s),n.successStatuses=[204],p.next=5,t.default.awrap(this.request(n));case 5:return a=p.sent,p.abrupt("return",{res:a.res});case 7:case"end":return p.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(a){return a&&a.__esModule?a:{default:a}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("../utils/isArray"),r=d.isArray,u=e("../utils/formatObjKey"),s=u.formatObjKey,n=l;n.getBucketLifecycle=function(b,p){var m,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return f(b),m=this._bucketRequestParams("GET",b,"lifecycle",p),m.successStatuses=[200],m.xmlResponse=!0,E.next=6,t.default.awrap(this.request(m));case 6:return A=E.sent,T=A.data.Rule||null,T&&(r(T)||(T=[T]),T=T.map(function(M){return M.ID&&(M.id=M.ID,delete M.ID),M.Tag&&!r(M.Tag)&&(M.Tag=[M.Tag]),s(M,"firstLowerCase")})),E.abrupt("return",{rules:T,res:A.res});case 10:case"end":return E.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(r){return r&&r.__esModule?r:{default:r}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=l;d.getBucketVersioning=function(u,s){var n,a,b;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return f(u),n=this._bucketRequestParams("GET",u,"versioning",s),n.xmlResponse=!0,n.successStatuses=[200],m.next=6,t.default.awrap(this.request(n));case 6:return a=m.sent,b=a.data.Status,m.abrupt("return",{status:a.status,versionStatus:b,res:a.res});case 9:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(s){return s&&s.__esModule?s:{default:s}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("../utils/isObject"),r=d.isObject,u=l;u.getBucketWebsite=function(n,a){var b,p,m;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return f(n),b=this._bucketRequestParams("GET",n,"website",a),b.successStatuses=[200],b.xmlResponse=!0,T.next=6,t.default.awrap(this.request(b));case 6:return p=T.sent,m=[],p.data.RoutingRules&&p.data.RoutingRules.RoutingRule&&(r(p.data.RoutingRules.RoutingRule)?m=[p.data.RoutingRules.RoutingRule]:m=p.data.RoutingRules.RoutingRule),T.abrupt("return",{index:p.data.IndexDocument&&p.data.IndexDocument.Suffix||"",supportSubDir:p.data.IndexDocument&&p.data.IndexDocument.SupportSubDir||"false",type:p.data.IndexDocument&&p.data.IndexDocument.Type,routingRules:m,error:p.data.ErrorDocument&&p.data.ErrorDocument.Key||null,res:p.res});case 10:case"end":return T.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(h){return h&&h.__esModule?h:{default:h}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("../utils/isArray"),r=d.isArray,u=e("../utils/deepCopy"),s=u.deepCopy,n=e("../utils/isObject"),a=n.isObject,b=e("../utils/obj2xml"),p=b.obj2xml,m=e("../utils/checkObjectTag"),A=m.checkObjectTag,T=e("../utils/getStrBytesCount"),x=T.getStrBytesCount,E=l;E.putBucketLifecycle=function(L,C,I){var R,B,G,P,oe;return t.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:if(f(L),r(C)){te.next=3;break}throw new Error("rules must be Array");case 3:return R=this._bucketRequestParams("PUT",L,"lifecycle",I),B=[],G={LifecycleConfiguration:{Rule:B}},C.forEach(function(Y){M(Y),w(Y),Y.id&&(Y.ID=Y.id,delete Y.id),B.push(Y)}),P=p(G,{headers:!0,firstUpperCase:!0}),R.content=P,R.mime="xml",R.successStatuses=[200],te.next=13,t.default.awrap(this.request(R));case 13:return oe=te.sent,te.abrupt("return",{res:oe.res});case 15:case"end":return te.stop()}},null,this)};function M(h){h.days&&(h.expiration={days:h.days}),h.date&&(h.expiration={createdBeforeDate:h.date})}function O(h,L){var C=h.days,I=h.createdBeforeDate;if(!C&&!I)throw new Error(L+" must includes days or createdBeforeDate");if(C&&!/^[1-9][0-9]*$/.test(C))throw new Error("days must be a positive integer");if(I&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(I))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function S(h){if(!r(h)&&!a(h))throw new Error("tag must be Object or Array");h=a(h)?[h]:h;var L={},C=s(h);C.forEach(function(I){L[I.key]=I.value}),A(L)}function w(h){if(h.id&&x(h.id)>255)throw new Error("ID is composed of 255 bytes at most");if(h.prefix===""||h.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(h.status))throw new Error("Status must be Enabled or Disabled");if(h.transition){if(!["IA","Archive"].includes(h.transition.storageClass))throw new Error("StorageClass must be IA or Archive");O(h.transition,"Transition")}if(h.expiration){if(!h.expiration.expiredObjectDeleteMarker)O(h.expiration,"Expiration");else if(h.expiration.days||h.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(h.abortMultipartUpload&&O(h.abortMultipartUpload,"AbortMultipartUpload"),!h.expiration&&!h.abortMultipartUpload&&!h.transition&&!h.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(h.tag){if(h.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");S(h.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(s){return s&&s.__esModule?s:{default:s}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("../utils/obj2xml"),r=d.obj2xml,u=l;u.putBucketVersioning=function(n,a){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p,m,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:if(f(n),["Enabled","Suspended"].includes(a)){x.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return p=this._bucketRequestParams("PUT",n,"versioning",b),m={VersioningConfiguration:{Status:a}},p.mime="xml",p.content=r(m,{headers:!0}),x.next=9,t.default.awrap(this.request(p));case 9:return A=x.sent,x.abrupt("return",{res:A.res,status:A.status});case 11:case"end":return x.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(a){return a&&a.__esModule?a:{default:a}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("../utils/obj2xml"),r=d.obj2xml,u=e("../utils/isArray"),s=u.isArray,n=l;n.putBucketWebsite=function(b){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments[2],A,T,x,E,M;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(f(b),A=this._bucketRequestParams("PUT",b,"website",m),T={Suffix:p.index||"index.html"},x={IndexDocument:T},E={WebsiteConfiguration:x},p.supportSubDir&&(T.SupportSubDir=p.supportSubDir),p.type&&(T.Type=p.type),p.error&&(x.ErrorDocument={Key:p.error}),!(p.routingRules!==void 0)){S.next=12;break}if(s(p.routingRules)){S.next=11;break}throw new Error("RoutingRules must be Array");case 11:x.RoutingRules={RoutingRule:p.routingRules};case 12:return E=r(E),A.content=E,A.mime="xml",A.successStatuses=[200],S.next=18,t.default.awrap(this.request(A));case 18:return M=S.sent,S.abrupt("return",{res:M.res});case 20:case"end":return S.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/core-js/object/keys"),y=d(t),c=e("babel-runtime/core-js/json/stringify"),f=d(c);function d(r){return r&&r.__esModule?r:{default:r}}l.encodeCallback=function(u,s){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&s.callback){var n={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};s.callback.host&&(n.callbackHost=s.callback.host),s.callback.contentType&&(n.callbackBodyType=s.callback.contentType);var a=i.from((0,f.default)(n)).toString("base64");if(u.headers["x-oss-callback"]=a,s.callback.customValue){var b={};(0,y.default)(s.callback.customValue).forEach(function(p){b["x:"+p]=s.callback.customValue[p]}),u.headers["x-oss-callback-var"]=i.from((0,f.default)(b)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/assign"),t=y(i);function y(n){return n&&n.__esModule?n:{default:n}}var c=e("humanize-ms"),f=e("url"),d=e("../utils/checkBucketName"),r=d.checkBucketName;function u(n,a){var b=f.parse(n);if(b.protocol||(b=f.parse("http"+(a?"s":"")+"://"+n)),b.protocol!=="http:"&&b.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return b}function s(n,a,b){var p=b?"https://":"http://",m=a?"-internal.aliyuncs.com":".aliyuncs.com",A="vpc100-oss-cn-";return n.substr(0,A.length)===A&&(m=".aliyuncs.com"),f.parse(p+n+m)}_.exports=function(n){if(!n||!n.accessKeyId||!n.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");n.bucket&&r(n.bucket);var a=(0,t.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},n);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=c(a.timeout)),a.endpoint)a.endpoint=u(a.endpoint,a.secure);else if(a.region)a.endpoint=s(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,_,l){"use strict";var i=e("merge-descriptors"),t=l;i(t,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(a){return a&&a.__esModule?a:{default:a}}var c=e("../utils/checkBucketName"),f=c.checkBucketName,d=e("querystring"),r=e("js-base64"),u=r.Base64.encode,s=l;s.processObjectSave=function(b,p,m,A){var T,x,E,M;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return n(b,"sourceObject"),n(p,"targetObject"),n(m,"process"),p=this._objectName(p),A&&f(A),T=this._objectRequestParams("POST",b,{subres:"x-oss-process"}),x=A?",b_"+u(A):"",p=u(p),E={"x-oss-process":m+"|sys/saveas,o_"+p+x},T.content=d.stringify(E),S.next=12,t.default.awrap(this.request(T));case 12:return M=S.sent,S.abrupt("return",{res:M.res,status:M.res.status});case 14:case"end":return S.stop()}},null,this)};function n(a,b){if(!a)throw new Error(b+" is required");if(typeof a!="string")throw new Error(b+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=y(i);function y(s){return s&&s.__esModule?s:{default:s}}var c=e("copy-to"),f=e("./callback"),d=e("./utils/deepCopy"),r=d.deepCopy,u=l;u.listUploads=function(n,a){var b,p,m,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return a=a||{},b={},c(a).to(b),b.subres="uploads",p=this._objectRequestParams("GET","",b),p.query=n,p.xmlResponse=!0,p.successStatuses=[200],x.next=10,t.default.awrap(this.request(p));case 10:return m=x.sent,A=m.data.Upload||[],Array.isArray(A)||(A=[A]),A=A.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),x.abrupt("return",{res:m.res,uploads:A,bucket:m.data.Bucket,nextKeyMarker:m.data.NextKeyMarker,nextUploadIdMarker:m.data.NextUploadIdMarker,isTruncated:m.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},null,this)},u.listParts=function(n,a,b,p){var m,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return p=p||{},m={},c(p).to(m),m.subres={uploadId:a},A=this._objectRequestParams("GET",n,m),A.query=b,A.xmlResponse=!0,A.successStatuses=[200],E.next=10,t.default.awrap(this.request(A));case 10:return T=E.sent,E.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return E.stop()}},null,this)},u.abortMultipartUpload=function(n,a,b){var p,m,A;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return this._stop(),b=b||{},p={},c(b).to(p),p.subres={uploadId:a},m=this._objectRequestParams("DELETE",n,p),m.successStatuses=[204],x.next=9,t.default.awrap(this.request(m));case 9:return A=x.sent,x.abrupt("return",{res:A.res});case 11:case"end":return x.stop()}},null,this)},u.initMultipartUpload=function(n,a){var b,p,m;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return a=a||{},b={},c(a).to(b),b.headers=b.headers||{},this._convertMetaToHeaders(a.meta,b.headers),b.subres="uploads",p=this._objectRequestParams("POST",n,b),p.mime=a.mime,p.xmlResponse=!0,p.successStatuses=[200],T.next=12,t.default.awrap(this.request(p));case 12:return m=T.sent,T.abrupt("return",{res:m.res,bucket:m.data.Bucket,name:m.data.Key,uploadId:m.data.UploadId});case 14:case"end":return T.stop()}},null,this)},u.uploadPart=function(n,a,b,p,m,A,T){var x;return t.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return x={stream:this._createStream(p,m,A),size:A-m},M.next=3,t.default.awrap(this._uploadPart(n,a,b,x,T));case 3:return M.abrupt("return",M.sent);case 4:case"end":return M.stop()}},null,this)},u.completeMultipartUpload=function(n,a,b,p){var m,A,T,x,E,M,O,S;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:for(m=b.concat().sort(function(L,C){return L.number-C.number}).filter(function(L,C,I){return!C||L.number!==I[C-1].number}),A=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,T=0;T<m.length;T++)x=m[T],A+=`<Part>
|
|
|
`,A+="<PartNumber>"+x.number+`</PartNumber>
|
|
|
`,A+="<ETag>"+x.etag+`</ETag>
|
|
|
`,A+=`</Part>
|
|
|
`;return A+="</CompleteMultipartUpload>",p=p||{},E={},E=r(p),E.headers&&delete E.headers["x-oss-server-side-encryption"],E.subres={uploadId:a},M=this._objectRequestParams("POST",n,E),f.encodeCallback(M,E),M.mime="xml",M.content=A,M.headers&&M.headers["x-oss-callback"]||(M.xmlResponse=!0),M.successStatuses=[200],h.next=17,t.default.awrap(this.request(M));case 17:return O=h.sent,S={res:O.res,bucket:M.bucket,name:n,etag:O.res.headers.etag},M.headers&&M.headers["x-oss-callback"]&&(S.data=JSON.parse(O.data.toString())),h.abrupt("return",S);case 21:case"end":return h.stop()}},null,this)},u._uploadPart=function(n,a,b,p,m){var A,T,x;return t.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return m=m||{},A={},c(m).to(A),A.headers={"Content-Length":p.size},A.subres={partNumber:b,uploadId:a},T=this._objectRequestParams("PUT",n,A),T.mime=A.mime,T.stream=p.stream,T.successStatuses=[200],M.next=11,t.default.awrap(this.request(T));case 11:if(x=M.sent,x.res.headers.etag){M.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 14:return p.stream=null,T.stream=null,M.abrupt("return",{name:n,etag:x.res.headers.etag,res:x.res});case 17:case"end":return M.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=r(i),y=e("babel-runtime/core-js/object/keys"),c=r(y),f=e("babel-runtime/helpers/typeof"),d=r(f);function r(a){return a&&a.__esModule?a:{default:a}}var u=e("../utils/checkBucketName"),s=u.checkBucketName,n=l;n.copy=function(b,p,m,A){var T,x,E;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return(typeof m=="undefined"?"undefined":(0,d.default)(m))==="object"&&(A=m),A=A||{},A.headers=A.headers||{},(0,c.default)(A.headers).forEach(function(S){A.headers["x-oss-copy-source-"+S.toLowerCase()]=A.headers[S]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),p=this._getSourceName(p,m),A.versionId&&(p=p+"?versionId="+A.versionId),A.headers["x-oss-copy-source"]=p,T=this._objectRequestParams("PUT",b,A),T.xmlResponse=!0,T.successStatuses=[200,304],O.next=14,t.default.awrap(this.request(T));case 14:return x=O.sent,E=x.data,E&&(E={etag:E.ETag,lastModified:E.LastModified}),O.abrupt("return",{data:E,res:x.res});case 18:case"end":return O.stop()}},null,this)},n._getSourceName=function(b,p){return typeof p=="string"?b=this._objectName(b):b[0]!=="/"?p=this.options.bucket:(p=b.replace(/\/(.+?)(\/.*)/,"$1"),b=b.replace(/(\/.+?\/)(.*)/,"$2")),s(p),b=encodeURI(b),b="/"+p+"/"+b,b}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.delete=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s.subres=(0,c.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),n=this._objectRequestParams("DELETE",u,s),n.successStatuses=[204],p.next=6,t.default.awrap(this.request(n));case 6:return a=p.sent,p.abrupt("return",{res:a.res});case 8:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(n){return n&&n.__esModule?n:{default:n}}var d=e("utility"),r=e("../utils/obj2xml"),u=r.obj2xml,s=l;s.deleteMulti=function(a){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p,m,A,T,x,E,M,O,S,w,h,L;return t.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:if(p=[],!(!a||!a.length)){I.next=3;break}throw new Error("names is required");case 3:for(m=0;m<a.length;m++)A={},typeof a[m]=="string"?A.Key=d.escape(this._objectName(a[m])):(T=a[m],x=T.key,E=T.versionId,A.Key=d.escape(this._objectName(x)),A.VersionId=E),p.push(A);return M={Delete:{Quiet:!!b.quiet,Object:p}},O=u(M,{headers:!0}),b.subres=(0,c.default)({delete:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),S=this._objectRequestParams("POST","",b),S.mime="xml",S.content=O,S.xmlResponse=!0,S.successStatuses=[200],I.next=15,t.default.awrap(this.request(S));case 15:return w=I.sent,h=w.data,L=h&&h.Deleted||null,L&&(Array.isArray(L)||(L=[L])),I.abrupt("return",{res:w.res,deleted:L||[]});case 20:case"end":return I.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.deleteObjectTagging=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s.subres=(0,c.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),n=this._objectRequestParams("DELETE",u,s),n.successStatuses=[204],p.next=7,t.default.awrap(this.request(n));case 7:return a=p.sent,p.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(s){return s&&s.__esModule?s:{default:s}}var d=e("fs"),r=e("is-type-of"),u=l;u.get=function(n,a){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p,m,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return p=null,m=!1,r.writableStream(a)?p=a:r.string(a)?(p=d.createWriteStream(a),m=!0):b=a,b=b||{},b.subres=(0,c.default)({},b.subres),b.versionId&&(b.subres.versionId=b.versionId),b.process&&(b.subres["x-oss-process"]=b.process),A=void 0,E.prev=8,T=this._objectRequestParams("GET",n,b),T.writeStream=p,T.successStatuses=[200,206,304],E.next=14,t.default.awrap(this.request(T));case 14:A=E.sent,m&&p.destroy(),E.next=25;break;case 18:if(E.prev=18,E.t0=E.catch(8),!m){E.next=24;break}return p.destroy(),E.next=24,t.default.awrap(this._deleteFileSafe(a));case 24:throw E.t0;case 25:return E.abrupt("return",{res:A.res,content:A.data});case 26:case"end":return E.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.getACL=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s.subres=(0,c.default)({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),n=this._objectRequestParams("GET",u,s),n.successStatuses=[200],n.xmlResponse=!0,p.next=8,t.default.awrap(this.request(n));case 8:return a=p.sent,p.abrupt("return",{acl:a.data.AccessControlList.Grant,owner:{id:a.data.Owner.ID,displayName:a.data.Owner.DisplayName},res:a.res});case 10:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=r(i),y=e("babel-runtime/regenerator"),c=r(y),f=e("babel-runtime/core-js/object/assign"),d=r(f);function r(T){return T&&T.__esModule?T:{default:T}}var u=l,s=e("../utils/isObject"),n=s.isObject,a=e("../utils/isArray"),b=a.isArray;u.getBucketVersions=p,u.listObjectVersions=p;function p(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E,M,O,S,w,h;return c.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(T.versionIdMarker&&T.keyMarker===void 0)){C.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return x.subres=(0,d.default)({versions:""},x.subres),x.versionId&&(x.subres.versionId=x.versionId),E=this._objectRequestParams("GET","",x),E.xmlResponse=!0,E.successStatuses=[200],E.query=A(T),C.next=10,c.default.awrap(this.request(E));case 10:return M=C.sent,O=M.data.Version||[],S=M.data.DeleteMarker||[],w=this,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(I){return{name:I.Key,url:w._objectUrl(I.Key),lastModified:I.LastModified,isLatest:I.IsLatest==="true",versionId:I.VersionId,etag:I.ETag,type:I.Type,size:Number(I.Size),storageClass:I.StorageClass,owner:{id:I.Owner.ID,displayName:I.Owner.DisplayName}}})),S&&(b(S)||(S=[S]),S=S.map(function(I){return{name:I.Key,lastModified:I.LastModified,versionId:I.VersionId,owner:{id:I.Owner.ID,displayName:I.Owner.DisplayName}}})),h=M.data.CommonPrefixes||null,h&&(b(h)||(h=[h]),h=h.map(function(I){return I.Prefix})),C.abrupt("return",{res:M.res,objects:O,deleteMarker:S,prefixes:h,nextMarker:M.data.NextMarker||null,NextVersionIdMarker:M.data.NextVersionIdMarker||null,isTruncated:M.data.IsTruncated==="true"});case 19:case"end":return C.stop()}},null,this)}function m(T){return T.replace(/([A-Z])/g,"-$1").toLowerCase()}function A(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x={};return n(T)&&(0,t.default)(T).forEach(function(E){x[m(E)]=T[E]}),x}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.getObjectMeta=function(u,s){var n,a;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s=s||{},u=this._objectName(u),s.subres=(0,c.default)({objectMeta:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),n=this._objectRequestParams("HEAD",u,s),n.successStatuses=[200],p.next=8,t.default.awrap(this.request(n));case 8:return a=p.sent,p.abrupt("return",{status:a.status,res:a.res});case 10:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(s){return s&&s.__esModule?s:{default:s}}var d=l,r=e("../utils/isObject"),u=r.isObject;d.getObjectTagging=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,p,m,A,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return a.subres=(0,c.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),n=this._objectName(n),b=this._objectRequestParams("GET",n,a),b.successStatuses=[200],E.next=7,t.default.awrap(this.request(b));case 7:return p=E.sent,E.next=10,t.default.awrap(this.parseXML(p.data));case 10:return m=E.sent,A=m.TagSet.Tag,A=A&&u(A)?[A]:A||[],T={},A.forEach(function(M){T[M.Key]=M.Value}),E.abrupt("return",{status:p.status,res:p.res,tag:T});case 16:case"end":return E.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.getSymlink=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,b;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return s.subres=(0,c.default)({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectName(u),n=this._objectRequestParams("GET",u,s),n.successStatuses=[200],m.next=7,t.default.awrap(this.request(n));case 7:return a=m.sent,b=a.res.headers["x-oss-symlink-target"],m.abrupt("return",{targetName:decodeURIComponent(b),res:a.res});case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=r(i),y=e("babel-runtime/core-js/object/keys"),c=r(y),f=e("babel-runtime/core-js/object/assign"),d=r(f);function r(s){return s&&s.__esModule?s:{default:s}}var u=l;u.head=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,p,m;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return a.subres=(0,d.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),b=this._objectRequestParams("HEAD",n,a),b.successStatuses=[200,304],T.next=6,t.default.awrap(this.request(b));case 6:return p=T.sent,m={meta:null,res:p.res,status:p.status},p.status===200&&(0,c.default)(p.headers).forEach(function(x){x.indexOf("x-oss-meta-")===0&&(m.meta||(m.meta={}),m.meta[x.substring(11)]=p.headers[x])}),T.abrupt("return",m);case 10:case"end":return T.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.putACL=function(u,s,n){var a,b;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n=n||{},n.subres=(0,c.default)({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=s,u=this._objectName(u),a=this._objectRequestParams("PUT",u,n),a.successStatuses=[200],m.next=10,t.default.awrap(this.request(a));case 10:return b=m.sent,m.abrupt("return",{res:b.res});case 12:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=r(i),y=e("babel-runtime/core-js/object/keys"),c=r(y),f=e("babel-runtime/core-js/object/assign"),d=r(f);function r(p){return p&&p.__esModule?p:{default:p}}var u=e("../utils/obj2xml"),s=u.obj2xml,n=e("../utils/checkObjectTag"),a=n.checkObjectTag,b=l;b.putObjectTagging=function(m,A){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,E,M;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return a(A),T.subres=(0,d.default)({tagging:""},T.subres),T.versionId&&(T.subres.versionId=T.versionId),m=this._objectName(m),x=this._objectRequestParams("PUT",m,T),x.successStatuses=[200],A=(0,c.default)(A).map(function(w){return{Key:w,Value:A[w]}}),E={Tagging:{TagSet:{Tag:A}}},x.mime="xml",x.content=s(E),S.next=12,t.default.awrap(this.request(x));case 12:return M=S.sent,S.abrupt("return",{res:M.res,status:M.status});case 14:case"end":return S.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/object/assign"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d.putSymlink=function(u,s,n){var a,b;return t.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n=n||{},n.headers=n.headers||{},s=this._escape(this._objectName(s)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=s,n.subres=(0,c.default)({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),u=this._objectName(u),a=this._objectRequestParams("PUT",u,n),a.successStatuses=[200],m.next=13,t.default.awrap(this.request(a));case 13:return b=m.sent,m.abrupt("return",{res:b.res});case 15:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,_,l){"use strict";var i=e("babel-runtime/regenerator"),t=f(i),y=e("babel-runtime/core-js/promise"),c=f(y);function f(r){return r&&r.__esModule?r:{default:r}}var d=l;d._parallelNode=function(u,s,n,a){var b,p,m,A,T,x,E,M;return t.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:b=this,p=[],m=[],A=u.length/s,T=u.length%s,x=T===0?A:(u.length-T)/s+1,E=1,M=0;case 8:if(!(M<u.length)){S.next=26;break}if(!b.isCancel()){S.next=11;break}return S.abrupt("break",26);case 11:if(a?m.push(n(b,u[M],a)):m.push(n(b,u[M])),!(m.length===s||E===x&&M===u.length-1)){S.next=23;break}return S.prev=13,E+=1,S.next=17,t.default.awrap(c.default.all(m));case 17:S.next=22;break;case 19:S.prev=19,S.t0=S.catch(13),p.push(S.t0);case 22:m=[];case 23:M++,S.next=8;break;case 26:return S.abrupt("return",p);case 27:case"end":return S.stop()}},null,this,[[13,19]])},d._parallel=function(u,s,n){var a=this;return new c.default(function(b){var p=[];if(s<=0||!u){b(p);return}function m(h){return function(){if(h===null)throw new Error("Callback was already called.");var L=h;h=null;for(var C=arguments.length,I=Array(C),R=0;R<C;R++)I[R]=arguments[R];L.apply(this,I)}}function A(h){var L=-1,C=h.length;return function(){return++L<C&&!a.isCancel()?{value:h[L],key:L}:null}}var T=A(u),x=!1,E=0,M=!1;function O(h,L){E-=1,h?(x=!0,p.push(h),b(p)):L==={}||x&&E<=0?(x=!0,b(p)):M||(a.isCancel()?b(p):w())}function S(h,L){n(h).then(function(C){L(null,C)}).catch(function(C){L(C)})}function w(){for(M=!0;E<s&&!x&&!a.isCancel();){var h=T();if(h===null||p.length>0){x=!0,E<=0&&b(p);return}E+=1,S(h.value,m(O))}M=!1}w()})},d.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.options)},d.isCancel=function(){return this.options.cancelFlag},d.resetCancelFlag=function(){this.options.cancelFlag=!1},d._stop=function(){this.options.cancelFlag=!0},d._makeCancelEvent=function(){var u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/core-js/json/stringify"),y=d(t),c=e("babel-runtime/core-js/object/keys"),f=d(c);function d(s){return s&&s.__esModule?s:{default:s}}var r=e("./../../shims/crypto/crypto.js"),u=e("is-type-of");l.buildCanonicalizedResource=function(n,a){var b=""+n,p="?";if(u.string(a)&&a.trim()!=="")b+=p+a;else if(u.array(a))a.sort(),b+=p+a.join("&");else if(a){var m=function(x,E){return x[0]>E[0]?1:x[0]<E[0]?-1:0},A=function(x){b+=p+x,a[x]&&(b+="="+a[x]),p="&"};(0,f.default)(a).sort(m).forEach(A)}return b},l.buildCanonicalString=function(n,a,b,p){b=b||{};var m=b.headers||{},A="x-oss-",T=[],x={},E=[n.toUpperCase(),m["Content-Md5"]||"",m["Content-Type"]||m["Content-Type".toLowerCase()],p||m["x-oss-date"]];return(0,f.default)(m).forEach(function(M){var O=M.toLowerCase();O.indexOf(A)===0&&(x[O]=String(m[M]).trim())}),(0,f.default)(x).sort().forEach(function(M){T.push(M+":"+x[M])}),E=E.concat(T),E.push(this.buildCanonicalizedResource(a,b.parameters)),E.join(`
|
|
|
`)},l.computeSignature=function(n,a){var b=r.createHmac("sha1",n);return b.update(i.from(a,"utf8")).digest("base64")},l.authorization=function(n,a,b){return"OSS "+n+":"+this.computeSignature(a,b)},l._signatureForURL=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments[2],p=arguments[3],m={},A=a.subResource,T=A===void 0?{}:A;if(a.process){var x="x-oss-process";T[x]=a.process}if(a.trafficLimit){var E="x-oss-traffic-limit";T[E]=a.trafficLimit}if(a.response&&(0,f.default)(a.response).forEach(function(w){var h="response-"+w.toLowerCase();T[h]=a.response[w]}),(0,f.default)(a).forEach(function(w){var h=w.toLowerCase(),L=a[w];h.indexOf("x-oss-")===0?m[h]=L:(h.indexOf("content-md5")===0||h.indexOf("content-type")===0)&&(m[w]=L)}),Object.prototype.hasOwnProperty.call(a,"security-token")&&(T["security-token"]=a["security-token"]),Object.prototype.hasOwnProperty.call(a,"callback")){var M={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(M.callbackHost=a.callback.host),a.callback.contentType&&(M.callbackBodyType=a.callback.contentType),T.callback=i.from((0,y.default)(M)).toString("base64"),a.callback.customValue){var O={};(0,f.default)(a.callback.customValue).forEach(function(w){O["x:"+w]=a.callback.customValue[w]}),T["callback-var"]=i.from((0,y.default)(O)).toString("base64")}}var S=this.buildCanonicalString(a.method,b,{headers:m,parameters:T},p.toString());return{Signature:this.computeSignature(n,S),subResource:T}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.checkBucketName=void 0,l.checkBucketName=function(i,t){var y=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!y.test(i))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/entries"),t=y(i);function y(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(l,"__esModule",{value:!0}),l.checkObjectTag=void 0;var c=e("./checkValid"),f=c.checkValid,d=e("./isObject"),r=d.isObject,u=[{validator:function(b){if(typeof b!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],s={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function n(a){if(!r(a))throw new Error("tag must be Object");var b=(0,t.default)(a);if(b.length>10)throw new Error("maximum of 10 tags for a object");var p=["key","value"];b.forEach(function(m){m.forEach(function(A,T){f(A,s[p[T]])})})}l.checkObjectTag=n},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.checkValid=void 0;function i(t,y){y.forEach(function(c){if(c.validator)c.validator(t);else if(c.pattern&&!c.pattern.test(t))throw new Error(c.msg)})}l.checkValid=i},{}],38:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/core-js/object/assign"),y=c(t);function c(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(l,"__esModule",{value:!0}),l.createRequest=void 0;var f=e("./../../../shims/crypto/crypto.js"),d=e("debug")("ali-oss"),r=e("mime"),u=e("dateformat"),s=e("copy-to"),n=e("path");function a(m,A){return m[A]||m[A.toLowerCase()]}function b(m,A){delete m[A],delete m[A.toLowerCase()]}function p(m){var A=new Date;this.options.amendTimeSkewed&&(A=+new Date+this.options.amendTimeSkewed);var T={"x-oss-date":u(A,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(T["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,y.default)(T,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(T["x-oss-security-token"]=this.options.stsToken),s(m.headers).to(T),a(T,"Content-Type")||(m.mime&&m.mime.indexOf("/")>0?T["Content-Type"]=m.mime:T["Content-Type"]=r.getType(m.mime||n.extname(m.object||""))),a(T,"Content-Type")||b(T,"Content-Type"),m.content&&(T["Content-Md5"]=f.createHash("md5").update(i.from(m.content,"utf8")).digest("base64"),T["Content-Length"]||(T["Content-Length"]=m.content.length));var x=this._getResource(m);T.authorization=this.authorization(m.method,x,m.subres,T);var E=this._getReqUrl(m);d("request %s %s, with headers %j, !!stream: %s",m.method,E,T,!!m.stream);var M=m.timeout||this.options.timeout,O={method:m.method,content:m.content,stream:m.stream,headers:T,timeout:M,writeStream:m.writeStream,customResponse:m.customResponse,ctx:m.ctx||this.ctx};return this.agent&&(O.agent=this.agent),this.httpsAgent&&(O.httpsAgent=this.httpsAgent),{url:E,params:O}}l.createRequest=p}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=f(i),y=e("babel-runtime/helpers/typeof"),c=f(y);function f(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(l,"__esModule",{value:!0}),l.deepCopy=void 0,l.deepCopy=function(d){if(d===null||(typeof d=="undefined"?"undefined":(0,c.default)(d))!=="object")return d;var r=Array.isArray(d)?[]:{};return(0,t.default)(d).forEach(function(u){r[u]=l.deepCopy(d[u])}),r}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=f(i),y=e("babel-runtime/helpers/typeof"),c=f(y);function f(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(l,"__esModule",{value:!0}),l.formatObjKey=void 0;function d(u,s){if(u===null||(typeof u=="undefined"?"undefined":(0,c.default)(u))!=="object")return u;var n=void 0;if(Array.isArray(u)){n=[];for(var a=0;a<u.length;a++)n.push(d(u[a],s))}else n={},(0,t.default)(u).forEach(function(b){n[r(b,s)]=d(u[b],s)});return n}l.formatObjKey=d;function r(u,s){return s==="firstUpperCase"?u=u.replace(/^./,function(n){return n.toUpperCase()}):s==="firstLowerCase"&&(u=u.replace(/^./,function(n){return n.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getStrBytesCount=void 0;function i(t){for(var y=0,c=0;c<t.length;c++){var f=t.charAt(c);/^[\u00-\uff]$/.test(f)?y+=1:y+=2}return y}l.getStrBytesCount=i},{}],42:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isArray=void 0,l.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],43:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isBlob=void 0;function i(t){return typeof Blob!="undefined"&&t instanceof Blob}l.isBlob=i},{}],44:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isFile=void 0,l.isFile=function(i){return typeof File!="undefined"&&i instanceof File}},{}],45:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isIP=void 0,l.isIP=function(i){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,y=/^\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 t.test(i)||y.test(i)}},{}],46:[function(e,_,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isObject=void 0,l.isObject=function(i){return Object.prototype.toString.call(i)==="[object Object]"}},{}],47:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=y(i);function y(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(l,"__esModule",{value:!0}),l.obj2xml=void 0;var c=e("./formatObjKey");function f(r){return Object.prototype.toString.call(r).replace(/(.*? |])/g,"").toLowerCase()}function d(r,u){var s="";return u&&u.headers&&(s=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),u&&u.firstUpperCase&&(r=c.formatObjKey(r,"firstUpperCase")),f(r)==="object"?(0,t.default)(r).forEach(function(n){f(r[n])==="string"||f(r[n])==="number"?s+="<"+n+">"+r[n]+"</"+n+">":f(r[n])==="object"?s+="<"+n+">"+d(r[n])+"</"+n+">":f(r[n])==="array"?s+=r[n].map(function(a){return"<"+n+">"+d(a)+"</"+n+">"}).join(""):s+="<"+n+">"+r[n].toString()+"</"+n+">"}):s+=r.toString(),s}l.obj2xml=d},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,_,l){_.exports=i,_.exports.HttpsAgent=i;function i(){}},{}],49:[function(e,_,l){_.exports=e("./register")().Promise},{"./register":51}],50:[function(e,_,l){"use strict";var i="@@any-promise/REGISTRATION",t=null;_.exports=function(y,c){return function(d,r){d=d||null,r=r||{};var u=r.global!==!1;if(t===null&&u&&(t=y[i]||null),t!==null&&d!==null&&t.implementation!==d)throw new Error('any-promise already defined as "'+t.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return t===null&&(d!==null&&typeof r.Promise!="undefined"?t={Promise:r.Promise,implementation:d}:t=c(d),u&&(y[i]=t)),t}}},{}],51:[function(e,_,l){"use strict";_.exports=e("./loader")(window,i);function i(){if(typeof window.Promise=="undefined")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"}}},{"./loader":50}],52:[function(e,_,l){_.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,_,l){_.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,_,l){_.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,_,l){_.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,_,l){_.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,_,l){_.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,_,l){_.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,_,l){_.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,_,l){_.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,_,l){"use strict";l.__esModule=!0;var i=e("../core-js/symbol/iterator"),t=d(i),y=e("../core-js/symbol"),c=d(y),f=typeof c.default=="function"&&typeof t.default=="symbol"?function(r){return typeof r}:function(r){return r&&typeof c.default=="function"&&r.constructor===c.default&&r!==c.default.prototype?"symbol":typeof r};function d(r){return r&&r.__esModule?r:{default:r}}l.default=typeof c.default=="function"&&f(t.default)==="symbol"?function(r){return typeof r=="undefined"?"undefined":f(r)}:function(r){return r&&typeof c.default=="function"&&r.constructor===c.default&&r!==c.default.prototype?"symbol":typeof r=="undefined"?"undefined":f(r)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,_,l){_.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,_,l){"use strict";l.byteLength=u,l.toByteArray=n,l.fromByteArray=p;for(var i=[],t=[],y=typeof Uint8Array!="undefined"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=c.length;f<d;++f)i[f]=c[f],t[c.charCodeAt(f)]=f;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function r(m){var A=m.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=m.indexOf("=");T===-1&&(T=A);var x=T===A?0:4-T%4;return[T,x]}function u(m){var A=r(m),T=A[0],x=A[1];return(T+x)*3/4-x}function s(m,A,T){return(A+T)*3/4-T}function n(m){var A,T=r(m),x=T[0],E=T[1],M=new y(s(m,x,E)),O=0,S=E>0?x-4:x,w;for(w=0;w<S;w+=4)A=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],M[O++]=A>>16&255,M[O++]=A>>8&255,M[O++]=A&255;return E===2&&(A=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,M[O++]=A&255),E===1&&(A=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,M[O++]=A>>8&255,M[O++]=A&255),M}function a(m){return i[m>>18&63]+i[m>>12&63]+i[m>>6&63]+i[m&63]}function b(m,A,T){for(var x,E=[],M=A;M<T;M+=3)x=(m[M]<<16&16711680)+(m[M+1]<<8&65280)+(m[M+2]&255),E.push(a(x));return E.join("")}function p(m){for(var A,T=m.length,x=T%3,E=[],M=16383,O=0,S=T-x;O<S;O+=M)E.push(b(m,O,O+M>S?S:O+M));return x===1?(A=m[T-1],E.push(i[A>>2]+i[A<<4&63]+"==")):x===2&&(A=(m[T-2]<<8)+m[T-1],E.push(i[A>>10]+i[A>>4&63]+i[A<<2&63]+"=")),E.join("")}},{}],70:[function(e,_,l){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(i,t,y){typeof _!="undefined"&&_.exports?_.exports=y():typeof define=="function"&&define.amd?define(t,y):i[t]=y()}(this,"bowser",function(){var i=!0;function t(s){function n(F){var V=s.match(F);return V&&V.length>1&&V[1]||""}function a(F){var V=s.match(F);return V&&V.length>1&&V[2]||""}var b=n(/(ipod|iphone|ipad)/i).toLowerCase(),p=/like android/i.test(s),m=!p&&/android/i.test(s),A=/nexus\s*[0-6]\s*/i.test(s),T=!A&&/nexus\s*[0-9]+/i.test(s),x=/CrOS/.test(s),E=/silk/i.test(s),M=/sailfish/i.test(s),O=/tizen/i.test(s),S=/(web|hpw)(o|0)s/i.test(s),w=/windows phone/i.test(s),h=/SamsungBrowser/i.test(s),L=!w&&/windows/i.test(s),C=!b&&!E&&/macintosh/i.test(s),I=!m&&!M&&!O&&!S&&/linux/i.test(s),R=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),B=n(/version\/(\d+(\.\d+)?)/i),G=/tablet/i.test(s)&&!/tablet pc/i.test(s),P=!G&&/[^-]mobi/i.test(s),oe=/xbox/i.test(s),z;/opera/i.test(s)?z={name:"Opera",opera:i,version:B||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?z={name:"Opera",opera:i,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||B}:/SamsungBrowser/i.test(s)?z={name:"Samsung Internet for Android",samsungBrowser:i,version:B||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(s)?z={name:"NAVER Whale browser",whale:i,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(s)?z={name:"MZ Browser",mzbrowser:i,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(s)?z={name:"Opera Coast",coast:i,version:B||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(s)?z={name:"Focus",focus:i,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(s)?z={name:"Yandex Browser",yandexbrowser:i,version:B||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?z={name:"UC Browser",ucbrowser:i,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?z={name:"Maxthon",maxthon:i,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?z={name:"Epiphany",epiphany:i,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?z={name:"Puffin",puffin:i,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?z={name:"Sleipnir",sleipnir:i,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?z={name:"K-Meleon",kMeleon:i,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:w?(z={name:"Windows Phone",osname:"Windows Phone",windowsphone:i},R?(z.msedge=i,z.version=R):(z.msie=i,z.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?z={name:"Internet Explorer",msie:i,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:x?z={name:"Chrome",osname:"Chrome OS",chromeos:i,chromeBook:i,chrome:i,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?z={name:"Microsoft Edge",msedge:i,version:R}:/vivaldi/i.test(s)?z={name:"Vivaldi",vivaldi:i,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||B}:M?z={name:"Sailfish",osname:"Sailfish OS",sailfish:i,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?z={name:"SeaMonkey",seamonkey:i,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(z={name:"Firefox",firefox:i,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(z.firefoxos=i,z.osname="Firefox OS")):E?z={name:"Amazon Silk",silk:i,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?z={name:"PhantomJS",phantom:i,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?z={name:"SlimerJS",slimer:i,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?z={name:"BlackBerry",osname:"BlackBerry OS",blackberry:i,version:B||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:S?(z={name:"WebOS",osname:"WebOS",webos:i,version:B||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(z.touchpad=i)):/bada/i.test(s)?z={name:"Bada",osname:"Bada",bada:i,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:O?z={name:"Tizen",osname:"Tizen",tizen:i,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||B}:/qupzilla/i.test(s)?z={name:"QupZilla",qupzilla:i,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||B}:/chromium/i.test(s)?z={name:"Chromium",chromium:i,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||B}:/chrome|crios|crmo/i.test(s)?z={name:"Chrome",chrome:i,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:m?z={name:"Android",version:B}:/safari|applewebkit/i.test(s)?(z={name:"Safari",safari:i},B&&(z.version=B)):b?(z={name:b=="iphone"?"iPhone":b=="ipad"?"iPad":"iPod"},B&&(z.version=B)):/googlebot/i.test(s)?z={name:"Googlebot",googlebot:i,version:n(/googlebot\/(\d+(\.\d+))/i)||B}:z={name:n(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!z.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(z.name=z.name||"Blink",z.blink=i):(z.name=z.name||"Webkit",z.webkit=i),!z.version&&B&&(z.version=B)):!z.opera&&/gecko\//i.test(s)&&(z.name=z.name||"Gecko",z.gecko=i,z.version=z.version||n(/gecko\/(\d+(\.\d+)?)/i)),!z.windowsphone&&(m||z.silk)?(z.android=i,z.osname="Android"):!z.windowsphone&&b?(z[b]=i,z.ios=i,z.osname="iOS"):C?(z.mac=i,z.osname="macOS"):oe?(z.xbox=i,z.osname="Xbox"):L?(z.windows=i,z.osname="Windows"):I&&(z.linux=i,z.osname="Linux");function te(F){switch(F){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}}var Y="";z.windows?Y=te(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):z.windowsphone?Y=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):z.mac?(Y=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),Y=Y.replace(/[_\s]/g,".")):b?(Y=n(/os (\d+([_\s]\d+)*) like mac os x/i),Y=Y.replace(/[_\s]/g,".")):m?Y=n(/android[ \/-](\d+(\.\d+)*)/i):z.webos?Y=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):z.blackberry?Y=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):z.bada?Y=n(/bada\/(\d+(\.\d+)*)/i):z.tizen&&(Y=n(/tizen[\/\s](\d+(\.\d+)*)/i)),Y&&(z.osversion=Y);var j=!z.windows&&Y.split(".")[0];return G||T||b=="ipad"||m&&(j==3||j>=4&&!P)||z.silk?z.tablet=i:(P||b=="iphone"||b=="ipod"||m||A||z.blackberry||z.webos||z.bada)&&(z.mobile=i),z.msedge||z.msie&&z.version>=10||z.yandexbrowser&&z.version>=15||z.vivaldi&&z.version>=1||z.chrome&&z.version>=20||z.samsungBrowser&&z.version>=4||z.whale&&d([z.version,"1.0"])===1||z.mzbrowser&&d([z.version,"6.0"])===1||z.focus&&d([z.version,"1.0"])===1||z.firefox&&z.version>=20||z.safari&&z.version>=6||z.opera&&z.version>=10||z.ios&&z.osversion&&z.osversion.split(".")[0]>=6||z.blackberry&&z.version>=10.1||z.chromium&&z.version>=20?z.a=i:z.msie&&z.version<10||z.chrome&&z.version<20||z.firefox&&z.version<20||z.safari&&z.version<6||z.opera&&z.version<10||z.ios&&z.osversion&&z.osversion.split(".")[0]<6||z.chromium&&z.version<20?z.c=i:z.x=i,z}var y=t(typeof navigator!="undefined"&&navigator.userAgent||"");y.test=function(s){for(var n=0;n<s.length;++n){var a=s[n];if(typeof a=="string"&&a in y)return!0}return!1};function c(s){return s.split(".").length}function f(s,n){var a=[],b;if(Array.prototype.map)return Array.prototype.map.call(s,n);for(b=0;b<s.length;b++)a.push(n(s[b]));return a}function d(s){for(var n=Math.max(c(s[0]),c(s[1])),a=f(s,function(b){var p=n-c(b);return b=b+new Array(p+1).join(".0"),f(b.split("."),function(m){return new Array(20-m.length).join("0")+m}).reverse()});--n>=0;){if(a[0][n]>a[1][n])return 1;if(a[0][n]===a[1][n]){if(n===0)return 0}else return-1}}function r(s,n,a){var b=y;typeof n=="string"&&(a=n,n=void 0),n===void 0&&(n=!1),a&&(b=t(a));var p=""+b.version;for(var m in s)if(s.hasOwnProperty(m)&&b[m]){if(typeof s[m]!="string")throw new Error("Browser version in the minVersion map should be a string: "+m+": "+String(s));return d([p,s[m]])<0}return n}function u(s,n,a){return!r(s,n,a)}return y.isUnsupportedBrowser=r,y.compareVersions=d,y.check=u,y._detect=t,y.detect=t,y})},{}],71:[function(e,_,l){},{}],72:[function(e,_,l){var i=e("buffer").Buffer,t=i.isEncoding||function(u){switch(u&&u.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}};function y(u){if(u&&!t(u))throw new Error("Unknown encoding: "+u)}var c=l.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),y(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=d;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=r;break;default:this.write=f;return}this.charBuffer=new i(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(u){for(var s="";this.charLength;){var n=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";u=u.slice(n,u.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var b=s.charCodeAt(s.length-1);if(b>=55296&&b<=56319){this.charLength+=this.surrogateSize,s="";continue}if(this.charReceived=this.charLength=0,u.length===0)return s;break}this.detectIncompleteChar(u);var a=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,a),a-=this.charReceived),s+=u.toString(this.encoding,0,a);var a=s.length-1,b=s.charCodeAt(a);if(b>=55296&&b<=56319){var p=this.surrogateSize;return this.charLength+=p,this.charReceived+=p,this.charBuffer.copy(this.charBuffer,p,0,p),u.copy(this.charBuffer,0,0,p),s.substring(0,a)}return s},c.prototype.detectIncompleteChar=function(u){for(var s=u.length>=3?3:u.length;s>0;s--){var n=u[u.length-s];if(s==1&&n>>5==6){this.charLength=2;break}if(s<=2&&n>>4==14){this.charLength=3;break}if(s<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=s},c.prototype.end=function(u){var s="";if(u&&u.length&&(s=this.write(u)),this.charReceived){var n=this.charReceived,a=this.charBuffer,b=this.encoding;s+=a.slice(0,n).toString(b)}return s};function f(u){return u.toString(this.encoding)}function d(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function r(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(e,_,l){(function(i,t){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var y=e("base64-js"),c=e("ieee754"),f=e("isarray");l.Buffer=t,l.SlowBuffer=E,l.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=i.TYPED_ARRAY_SUPPORT!==void 0?i.TYPED_ARRAY_SUPPORT:d(),l.kMaxLength=r();function d(){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(g){return!1}}function r(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(N,g){if(r()<g)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(N=new Uint8Array(g),N.__proto__=t.prototype):(N===null&&(N=new t(g)),N.length=g),N}function t(N,g,o){if(!t.TYPED_ARRAY_SUPPORT&&!(this instanceof t))return new t(N,g,o);if(typeof N=="number"){if(typeof g=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,N)}return s(this,N,g,o)}t.poolSize=8192,t._augment=function(N){return N.__proto__=t.prototype,N};function s(N,g,o,v){if(typeof g=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&g instanceof ArrayBuffer?A(N,g,o,v):typeof g=="string"?p(N,g,o):T(N,g)}t.from=function(N,g,o){return s(null,N,g,o)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0}));function n(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 a(N,g,o,v){return n(g),g<=0?u(N,g):o!==void 0?typeof v=="string"?u(N,g).fill(o,v):u(N,g).fill(o):u(N,g)}t.alloc=function(N,g,o){return a(null,N,g,o)};function b(N,g){if(n(g),N=u(N,g<0?0:x(g)|0),!t.TYPED_ARRAY_SUPPORT)for(var o=0;o<g;++o)N[o]=0;return N}t.allocUnsafe=function(N){return b(null,N)},t.allocUnsafeSlow=function(N){return b(null,N)};function p(N,g,o){if((typeof o!="string"||o==="")&&(o="utf8"),!t.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var v=M(g,o)|0;N=u(N,v);var K=N.write(g,o);return K!==v&&(N=N.slice(0,K)),N}function m(N,g){var o=g.length<0?0:x(g.length)|0;N=u(N,o);for(var v=0;v<o;v+=1)N[v]=g[v]&255;return N}function A(N,g,o,v){if(g.byteLength,o<0||g.byteLength<o)throw new RangeError("'offset' is out of bounds");if(g.byteLength<o+(v||0))throw new RangeError("'length' is out of bounds");return o===void 0&&v===void 0?g=new Uint8Array(g):v===void 0?g=new Uint8Array(g,o):g=new Uint8Array(g,o,v),t.TYPED_ARRAY_SUPPORT?(N=g,N.__proto__=t.prototype):N=m(N,g),N}function T(N,g){if(t.isBuffer(g)){var o=x(g.length)|0;return N=u(N,o),N.length===0||g.copy(N,0,0,o),N}if(g){if(typeof ArrayBuffer!="undefined"&&g.buffer instanceof ArrayBuffer||"length"in g)return typeof g.length!="number"||J(g.length)?u(N,0):m(N,g);if(g.type==="Buffer"&&f(g.data))return m(N,g.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(N){if(N>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return N|0}function E(N){return+N!=N&&(N=0),t.alloc(+N)}t.isBuffer=function(g){return!!(g!=null&&g._isBuffer)},t.compare=function(g,o){if(!t.isBuffer(g)||!t.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(g===o)return 0;for(var v=g.length,K=o.length,W=0,re=Math.min(v,K);W<re;++W)if(g[W]!==o[W]){v=g[W],K=o[W];break}return v<K?-1:K<v?1:0},t.isEncoding=function(g){switch(String(g).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}},t.concat=function(g,o){if(!f(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return t.alloc(0);var v;if(o===void 0)for(o=0,v=0;v<g.length;++v)o+=g[v].length;var K=t.allocUnsafe(o),W=0;for(v=0;v<g.length;++v){var re=g[v];if(!t.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(K,W),W+=re.length}return K};function M(N,g){if(t.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 v=!1;;)switch(g){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return $(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return H(N).length;default:if(v)return $(N).length;g=(""+g).toLowerCase(),v=!0}}t.byteLength=M;function O(N,g,o){var v=!1;if((g===void 0||g<0)&&(g=0),g>this.length)return"";if((o===void 0||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,g>>>=0,o<=g)return"";for(N||(N="utf8");;)switch(N){case"hex":return F(this,g,o);case"utf8":case"utf-8":return oe(this,g,o);case"ascii":return Y(this,g,o);case"latin1":case"binary":return j(this,g,o);case"base64":return P(this,g,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,g,o);default:if(v)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),v=!0}}t.prototype._isBuffer=!0;function S(N,g,o){var v=N[g];N[g]=N[o],N[o]=v}t.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var o=0;o<g;o+=2)S(this,o,o+1);return this},t.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var o=0;o<g;o+=4)S(this,o,o+3),S(this,o+1,o+2);return this},t.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var o=0;o<g;o+=8)S(this,o,o+7),S(this,o+1,o+6),S(this,o+2,o+5),S(this,o+3,o+4);return this},t.prototype.toString=function(){var g=this.length|0;return g===0?"":arguments.length===0?oe(this,0,g):O.apply(this,arguments)},t.prototype.equals=function(g){if(!t.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:t.compare(this,g)===0},t.prototype.inspect=function(){var g="",o=l.INSPECT_MAX_BYTES;return this.length>0&&(g=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(g+=" ... ")),"<Buffer "+g+">"},t.prototype.compare=function(g,o,v,K,W){if(!t.isBuffer(g))throw new TypeError("Argument must be a Buffer");if(o===void 0&&(o=0),v===void 0&&(v=g?g.length:0),K===void 0&&(K=0),W===void 0&&(W=this.length),o<0||v>g.length||K<0||W>this.length)throw new RangeError("out of range index");if(K>=W&&o>=v)return 0;if(K>=W)return-1;if(o>=v)return 1;if(o>>>=0,v>>>=0,K>>>=0,W>>>=0,this===g)return 0;for(var re=W-K,de=v-o,ge=Math.min(re,de),ye=this.slice(K,W),ve=g.slice(o,v),Ee=0;Ee<ge;++Ee)if(ye[Ee]!==ve[Ee]){re=ye[Ee],de=ve[Ee];break}return re<de?-1:de<re?1:0};function w(N,g,o,v,K){if(N.length===0)return-1;if(typeof o=="string"?(v=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=K?0:N.length-1),o<0&&(o=N.length+o),o>=N.length){if(K)return-1;o=N.length-1}else if(o<0)if(K)o=0;else return-1;if(typeof g=="string"&&(g=t.from(g,v)),t.isBuffer(g))return g.length===0?-1:h(N,g,o,v,K);if(typeof g=="number")return g=g&255,t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(N,g,o):Uint8Array.prototype.lastIndexOf.call(N,g,o):h(N,[g],o,v,K);throw new TypeError("val must be string, number or Buffer")}function h(N,g,o,v,K){var W=1,re=N.length,de=g.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(N.length<2||g.length<2)return-1;W=2,re/=2,de/=2,o/=2}function ge(Oe,me){return W===1?Oe[me]:Oe.readUInt16BE(me*W)}var ye;if(K){var ve=-1;for(ye=o;ye<re;ye++)if(ge(N,ye)===ge(g,ve===-1?0:ye-ve)){if(ve===-1&&(ve=ye),ye-ve+1===de)return ve*W}else ve!==-1&&(ye-=ye-ve),ve=-1}else for(o+de>re&&(o=re-de),ye=o;ye>=0;ye--){for(var Ee=!0,_e=0;_e<de;_e++)if(ge(N,ye+_e)!==ge(g,_e)){Ee=!1;break}if(Ee)return ye}return-1}t.prototype.includes=function(g,o,v){return this.indexOf(g,o,v)!==-1},t.prototype.indexOf=function(g,o,v){return w(this,g,o,v,!0)},t.prototype.lastIndexOf=function(g,o,v){return w(this,g,o,v,!1)};function L(N,g,o,v){o=Number(o)||0;var K=N.length-o;v?(v=Number(v),v>K&&(v=K)):v=K;var W=g.length;if(W%2!==0)throw new TypeError("Invalid hex string");v>W/2&&(v=W/2);for(var re=0;re<v;++re){var de=parseInt(g.substr(re*2,2),16);if(isNaN(de))return re;N[o+re]=de}return re}function C(N,g,o,v){return U($(g,N.length-o),N,o,v)}function I(N,g,o,v){return U(Q(g),N,o,v)}function R(N,g,o,v){return I(N,g,o,v)}function B(N,g,o,v){return U(H(g),N,o,v)}function G(N,g,o,v){return U(se(g,N.length-o),N,o,v)}t.prototype.write=function(g,o,v,K){if(o===void 0)K="utf8",v=this.length,o=0;else if(v===void 0&&typeof o=="string")K=o,v=this.length,o=0;else if(isFinite(o))o=o|0,isFinite(v)?(v=v|0,K===void 0&&(K="utf8")):(K=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-o;if((v===void 0||v>W)&&(v=W),g.length>0&&(v<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");for(var re=!1;;)switch(K){case"hex":return L(this,g,o,v);case"utf8":case"utf-8":return C(this,g,o,v);case"ascii":return I(this,g,o,v);case"latin1":case"binary":return R(this,g,o,v);case"base64":return B(this,g,o,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,g,o,v);default:if(re)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),re=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(N,g,o){return g===0&&o===N.length?y.fromByteArray(N):y.fromByteArray(N.slice(g,o))}function oe(N,g,o){o=Math.min(N.length,o);for(var v=[],K=g;K<o;){var W=N[K],re=null,de=W>239?4:W>223?3:W>191?2:1;if(K+de<=o){var ge,ye,ve,Ee;switch(de){case 1:W<128&&(re=W);break;case 2:ge=N[K+1],(ge&192)===128&&(Ee=(W&31)<<6|ge&63,Ee>127&&(re=Ee));break;case 3:ge=N[K+1],ye=N[K+2],(ge&192)===128&&(ye&192)===128&&(Ee=(W&15)<<12|(ge&63)<<6|ye&63,Ee>2047&&(Ee<55296||Ee>57343)&&(re=Ee));break;case 4:ge=N[K+1],ye=N[K+2],ve=N[K+3],(ge&192)===128&&(ye&192)===128&&(ve&192)===128&&(Ee=(W&15)<<18|(ge&63)<<12|(ye&63)<<6|ve&63,Ee>65535&&Ee<1114112&&(re=Ee))}}re===null?(re=65533,de=1):re>65535&&(re-=65536,v.push(re>>>10&1023|55296),re=56320|re&1023),v.push(re),K+=de}return te(v)}var z=4096;function te(N){var g=N.length;if(g<=z)return String.fromCharCode.apply(String,N);for(var o="",v=0;v<g;)o+=String.fromCharCode.apply(String,N.slice(v,v+=z));return o}function Y(N,g,o){var v="";o=Math.min(N.length,o);for(var K=g;K<o;++K)v+=String.fromCharCode(N[K]&127);return v}function j(N,g,o){var v="";o=Math.min(N.length,o);for(var K=g;K<o;++K)v+=String.fromCharCode(N[K]);return v}function F(N,g,o){var v=N.length;(!g||g<0)&&(g=0),(!o||o<0||o>v)&&(o=v);for(var K="",W=g;W<o;++W)K+=X(N[W]);return K}function V(N,g,o){for(var v=N.slice(g,o),K="",W=0;W<v.length;W+=2)K+=String.fromCharCode(v[W]+v[W+1]*256);return K}t.prototype.slice=function(g,o){var v=this.length;g=~~g,o=o===void 0?v:~~o,g<0?(g+=v,g<0&&(g=0)):g>v&&(g=v),o<0?(o+=v,o<0&&(o=0)):o>v&&(o=v),o<g&&(o=g);var K;if(t.TYPED_ARRAY_SUPPORT)K=this.subarray(g,o),K.__proto__=t.prototype;else{var W=o-g;K=new t(W,void 0);for(var re=0;re<W;++re)K[re]=this[re+g]}return K};function Z(N,g,o){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+g>o)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(g,o,v){g=g|0,o=o|0,v||Z(g,o,this.length);for(var K=this[g],W=1,re=0;++re<o&&(W*=256);)K+=this[g+re]*W;return K},t.prototype.readUIntBE=function(g,o,v){g=g|0,o=o|0,v||Z(g,o,this.length);for(var K=this[g+--o],W=1;o>0&&(W*=256);)K+=this[g+--o]*W;return K},t.prototype.readUInt8=function(g,o){return o||Z(g,1,this.length),this[g]},t.prototype.readUInt16LE=function(g,o){return o||Z(g,2,this.length),this[g]|this[g+1]<<8},t.prototype.readUInt16BE=function(g,o){return o||Z(g,2,this.length),this[g]<<8|this[g+1]},t.prototype.readUInt32LE=function(g,o){return o||Z(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},t.prototype.readUInt32BE=function(g,o){return o||Z(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},t.prototype.readIntLE=function(g,o,v){g=g|0,o=o|0,v||Z(g,o,this.length);for(var K=this[g],W=1,re=0;++re<o&&(W*=256);)K+=this[g+re]*W;return W*=128,K>=W&&(K-=Math.pow(2,8*o)),K},t.prototype.readIntBE=function(g,o,v){g=g|0,o=o|0,v||Z(g,o,this.length);for(var K=o,W=1,re=this[g+--K];K>0&&(W*=256);)re+=this[g+--K]*W;return W*=128,re>=W&&(re-=Math.pow(2,8*o)),re},t.prototype.readInt8=function(g,o){return o||Z(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},t.prototype.readInt16LE=function(g,o){o||Z(g,2,this.length);var v=this[g]|this[g+1]<<8;return v&32768?v|4294901760:v},t.prototype.readInt16BE=function(g,o){o||Z(g,2,this.length);var v=this[g+1]|this[g]<<8;return v&32768?v|4294901760:v},t.prototype.readInt32LE=function(g,o){return o||Z(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},t.prototype.readInt32BE=function(g,o){return o||Z(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},t.prototype.readFloatLE=function(g,o){return o||Z(g,4,this.length),c.read(this,g,!0,23,4)},t.prototype.readFloatBE=function(g,o){return o||Z(g,4,this.length),c.read(this,g,!1,23,4)},t.prototype.readDoubleLE=function(g,o){return o||Z(g,8,this.length),c.read(this,g,!0,52,8)},t.prototype.readDoubleBE=function(g,o){return o||Z(g,8,this.length),c.read(this,g,!1,52,8)};function k(N,g,o,v,K,W){if(!t.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>K||g<W)throw new RangeError('"value" argument is out of bounds');if(o+v>N.length)throw new RangeError("Index out of range")}t.prototype.writeUIntLE=function(g,o,v,K){if(g=+g,o=o|0,v=v|0,!K){var W=Math.pow(2,8*v)-1;k(this,g,o,v,W,0)}var re=1,de=0;for(this[o]=g&255;++de<v&&(re*=256);)this[o+de]=g/re&255;return o+v},t.prototype.writeUIntBE=function(g,o,v,K){if(g=+g,o=o|0,v=v|0,!K){var W=Math.pow(2,8*v)-1;k(this,g,o,v,W,0)}var re=v-1,de=1;for(this[o+re]=g&255;--re>=0&&(de*=256);)this[o+re]=g/de&255;return o+v},t.prototype.writeUInt8=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,1,255,0),t.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),this[o]=g&255,o+1};function ee(N,g,o,v){g<0&&(g=65535+g+1);for(var K=0,W=Math.min(N.length-o,2);K<W;++K)N[o+K]=(g&255<<8*(v?K:1-K))>>>(v?K:1-K)*8}t.prototype.writeUInt16LE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[o]=g&255,this[o+1]=g>>>8):ee(this,g,o,!0),o+2},t.prototype.writeUInt16BE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[o]=g>>>8,this[o+1]=g&255):ee(this,g,o,!1),o+2};function ae(N,g,o,v){g<0&&(g=4294967295+g+1);for(var K=0,W=Math.min(N.length-o,4);K<W;++K)N[o+K]=g>>>(v?K:3-K)*8&255}t.prototype.writeUInt32LE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[o+3]=g>>>24,this[o+2]=g>>>16,this[o+1]=g>>>8,this[o]=g&255):ae(this,g,o,!0),o+4},t.prototype.writeUInt32BE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[o]=g>>>24,this[o+1]=g>>>16,this[o+2]=g>>>8,this[o+3]=g&255):ae(this,g,o,!1),o+4},t.prototype.writeIntLE=function(g,o,v,K){if(g=+g,o=o|0,!K){var W=Math.pow(2,8*v-1);k(this,g,o,v,W-1,-W)}var re=0,de=1,ge=0;for(this[o]=g&255;++re<v&&(de*=256);)g<0&&ge===0&&this[o+re-1]!==0&&(ge=1),this[o+re]=(g/de>>0)-ge&255;return o+v},t.prototype.writeIntBE=function(g,o,v,K){if(g=+g,o=o|0,!K){var W=Math.pow(2,8*v-1);k(this,g,o,v,W-1,-W)}var re=v-1,de=1,ge=0;for(this[o+re]=g&255;--re>=0&&(de*=256);)g<0&&ge===0&&this[o+re+1]!==0&&(ge=1),this[o+re]=(g/de>>0)-ge&255;return o+v},t.prototype.writeInt8=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,1,127,-128),t.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),g<0&&(g=255+g+1),this[o]=g&255,o+1},t.prototype.writeInt16LE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[o]=g&255,this[o+1]=g>>>8):ee(this,g,o,!0),o+2},t.prototype.writeInt16BE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[o]=g>>>8,this[o+1]=g&255):ee(this,g,o,!1),o+2},t.prototype.writeInt32LE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[o]=g&255,this[o+1]=g>>>8,this[o+2]=g>>>16,this[o+3]=g>>>24):ae(this,g,o,!0),o+4},t.prototype.writeInt32BE=function(g,o,v){return g=+g,o=o|0,v||k(this,g,o,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),t.TYPED_ARRAY_SUPPORT?(this[o]=g>>>24,this[o+1]=g>>>16,this[o+2]=g>>>8,this[o+3]=g&255):ae(this,g,o,!1),o+4};function ne(N,g,o,v,K,W){if(o+v>N.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function le(N,g,o,v,K){return K||ne(N,g,o,4,34028234663852886e22,-34028234663852886e22),c.write(N,g,o,v,23,4),o+4}t.prototype.writeFloatLE=function(g,o,v){return le(this,g,o,!0,v)},t.prototype.writeFloatBE=function(g,o,v){return le(this,g,o,!1,v)};function fe(N,g,o,v,K){return K||ne(N,g,o,8,17976931348623157e292,-17976931348623157e292),c.write(N,g,o,v,52,8),o+8}t.prototype.writeDoubleLE=function(g,o,v){return fe(this,g,o,!0,v)},t.prototype.writeDoubleBE=function(g,o,v){return fe(this,g,o,!1,v)},t.prototype.copy=function(g,o,v,K){if(v||(v=0),!K&&K!==0&&(K=this.length),o>=g.length&&(o=g.length),o||(o=0),K>0&&K<v&&(K=v),K===v)return 0;if(g.length===0||this.length===0)return 0;if(o<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("sourceStart out of bounds");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),g.length-o<K-v&&(K=g.length-o+v);var W=K-v,re;if(this===g&&v<o&&o<K)for(re=W-1;re>=0;--re)g[re+o]=this[re+v];else if(W<1e3||!t.TYPED_ARRAY_SUPPORT)for(re=0;re<W;++re)g[re+o]=this[re+v];else Uint8Array.prototype.set.call(g,this.subarray(v,v+W),o);return W},t.prototype.fill=function(g,o,v,K){if(typeof g=="string"){if(typeof o=="string"?(K=o,o=0,v=this.length):typeof v=="string"&&(K=v,v=this.length),g.length===1){var W=g.charCodeAt(0);W<256&&(g=W)}if(K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!t.isEncoding(K))throw new TypeError("Unknown encoding: "+K)}else typeof g=="number"&&(g=g&255);if(o<0||this.length<o||this.length<v)throw new RangeError("Out of range index");if(v<=o)return this;o=o>>>0,v=v===void 0?this.length:v>>>0,g||(g=0);var re;if(typeof g=="number")for(re=o;re<v;++re)this[re]=g;else{var de=t.isBuffer(g)?g:$(new t(g,K).toString()),ge=de.length;for(re=0;re<v-o;++re)this[re+o]=de[re%ge]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function pe(N){if(N=D(N).replace(q,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function D(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")}function X(N){return N<16?"0"+N.toString(16):N.toString(16)}function $(N,g){g=g||Infinity;for(var o,v=N.length,K=null,W=[],re=0;re<v;++re){if(o=N.charCodeAt(re),o>55295&&o<57344){if(!K){if(o>56319){(g-=3)>-1&&W.push(239,191,189);continue}else if(re+1===v){(g-=3)>-1&&W.push(239,191,189);continue}K=o;continue}if(o<56320){(g-=3)>-1&&W.push(239,191,189),K=o;continue}o=(K-55296<<10|o-56320)+65536}else K&&((g-=3)>-1&&W.push(239,191,189));if(K=null,o<128){if((g-=1)<0)break;W.push(o)}else if(o<2048){if((g-=2)<0)break;W.push(o>>6|192,o&63|128)}else if(o<65536){if((g-=3)<0)break;W.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((g-=4)<0)break;W.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return W}function Q(N){for(var g=[],o=0;o<N.length;++o)g.push(N.charCodeAt(o)&255);return g}function se(N,g){for(var o,v,K,W=[],re=0;re<N.length&&!((g-=2)<0);++re)o=N.charCodeAt(re),v=o>>8,K=o%256,W.push(K),W.push(v);return W}function H(N){return y.toByteArray(pe(N))}function U(N,g,o,v){for(var K=0;K<v&&!(K+o>=g.length||K>=N.length);++K)g[K+o]=N[K];return K}function J(N){return N!==N}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,_,l){_.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"}},{}],75:[function(e,_,l){_.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}},{}],76:[function(e,_,l){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var i=Array.prototype.slice;_.exports=t;function t(c,f){if(!(this instanceof t))return new t(c,f);this.src=c,this._withAccess=f}t.prototype.withAccess=function(c){return this._withAccess=c!==!1,this},t.prototype.pick=function(c){return Array.isArray(c)||(c=i.call(arguments)),c.length&&(this.keys=c),this},t.prototype.to=function(c){if(c=c||{},!this.src)return c;var f=this.keys||Object.keys(this.src);if(!this._withAccess){for(var d=0;d<f.length;d++){if(r=f[d],c[r]!==void 0)continue;c[r]=this.src[r]}return c}for(var d=0;d<f.length;d++){var r=f[d];if(!y(c,r))continue;var u=this.src.__lookupGetter__(r),s=this.src.__lookupSetter__(r);u&&c.__defineGetter__(r,u),s&&c.__defineSetter__(r,s),!u&&!s&&(c[r]=this.src[r])}return c},t.prototype.toCover=function(c){for(var f=this.keys||Object.keys(this.src),d=0;d<f.length;d++){var r=f[d];delete c[r];var u=this.src.__lookupGetter__(r),s=this.src.__lookupSetter__(r);u&&c.__defineGetter__(r,u),s&&c.__defineSetter__(r,s),!u&&!s&&(c[r]=this.src[r])}},t.prototype.override=t.prototype.toCover,t.prototype.and=function(c){var f={};return this.to(f),this.src=c,this.to(f),this.src=f,this};function y(c,f){return c[f]===void 0&&c.__lookupGetter__(f)===void 0&&c.__lookupSetter__(f)===void 0}},{}],77:[function(e,_,l){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),_.exports=e("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(e,_,l){var i=e("../../modules/_core"),t=i.JSON||(i.JSON={stringify:JSON.stringify});_.exports=function(c){return t.stringify.apply(t,arguments)}},{"../../modules/_core":99}],79:[function(e,_,l){e("../../modules/es6.object.assign"),_.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(e,_,l){e("../../modules/es6.object.create");var i=e("../../modules/_core").Object;_.exports=function(y,c){return i.create(y,c)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(e,_,l){e("../../modules/es6.object.define-property");var i=e("../../modules/_core").Object;_.exports=function(y,c,f){return i.defineProperty(y,c,f)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(e,_,l){e("../../modules/es7.object.entries"),_.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(e,_,l){e("../../modules/es6.object.get-own-property-names");var i=e("../../modules/_core").Object;_.exports=function(y){return i.getOwnPropertyNames(y)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(e,_,l){e("../../modules/es6.object.get-prototype-of"),_.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(e,_,l){e("../../modules/es6.object.keys"),_.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(e,_,l){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),_.exports=e("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(e,_,l){e("../modules/web.immediate"),_.exports=e("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(e,_,l){e("../../modules/es6.string.from-code-point"),_.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(e,_,l){e("../../modules/es6.function.has-instance"),_.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(e,_,l){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),_.exports=e("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(e,_,l){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),_.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(e,_,l){_.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},{}],93:[function(e,_,l){_.exports=function(){}},{}],94:[function(e,_,l){_.exports=function(i,t,y,c){if(!(i instanceof t)||c!==void 0&&c in i)throw TypeError(y+": incorrect invocation!");return i}},{}],95:[function(e,_,l){var i=e("./_is-object");_.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":119}],96:[function(e,_,l){var i=e("./_to-iobject"),t=e("./_to-length"),y=e("./_to-absolute-index");_.exports=function(c){return function(f,d,r){var u=i(f),s=t(u.length),n=y(r,s),a;if(c&&d!=d){for(;s>n;)if(a=u[n++],a!=a)return!0}else for(;s>n;n++)if((c||n in u)&&u[n]===d)return c||n||0;return!c&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,_,l){var i=e("./_cof"),t=e("./_wks")("toStringTag"),y=i(function(){return arguments}())=="Arguments",c=function(d,r){try{return d[r]}catch(u){}};_.exports=function(f){var d,r,u;return f===void 0?"Undefined":f===null?"Null":typeof(r=c(d=Object(f),t))=="string"?r:y?i(d):(u=i(d))=="Object"&&typeof d.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(e,_,l){var i={}.toString;_.exports=function(t){return i.call(t).slice(8,-1)}},{}],99:[function(e,_,l){var i=_.exports={version:"2.6.11"};typeof __e=="number"&&(__e=i)},{}],100:[function(e,_,l){"use strict";var i=e("./_object-dp"),t=e("./_property-desc");_.exports=function(y,c,f){c in y?i.f(y,c,t(0,f)):y[c]=f}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,_,l){var i=e("./_a-function");_.exports=function(t,y,c){if(i(t),y===void 0)return t;switch(c){case 1:return function(f){return t.call(y,f)};case 2:return function(f,d){return t.call(y,f,d)};case 3:return function(f,d,r){return t.call(y,f,d,r)}}return function(){return t.apply(y,arguments)}}},{"./_a-function":92}],102:[function(e,_,l){_.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},{}],103:[function(e,_,l){_.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(e,_,l){var i=e("./_is-object"),t=e("./_global").document,y=i(t)&&i(t.createElement);_.exports=function(c){return y?t.createElement(c):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,_,l){_.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,_,l){var i=e("./_object-keys"),t=e("./_object-gops"),y=e("./_object-pie");_.exports=function(c){var f=i(c),d=t.f;if(d)for(var r=d(c),u=y.f,s=0,n;r.length>s;)u.call(c,n=r[s++])&&f.push(n);return f}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,_,l){var i=e("./_global"),t=e("./_core"),y=e("./_ctx"),c=e("./_hide"),f=e("./_has"),d="prototype",r=function u(s,n,a){var b=s&u.F,p=s&u.G,m=s&u.S,A=s&u.P,T=s&u.B,x=s&u.W,E=p?t:t[n]||(t[n]={}),M=E[d],O=p?i:m?i[n]:(i[n]||{})[d],S,w,h;p&&(a=n);for(S in a){if(w=!b&&O&&O[S]!==void 0,w&&f(E,S))continue;h=w?O[S]:a[S],E[S]=p&&typeof O[S]!="function"?a[S]:T&&w?y(h,i):x&&O[S]==h?function(L){var C=function(R,B,G){if(this instanceof L){switch(arguments.length){case 0:return new L;case 1:return new L(R);case 2:return new L(R,B)}return new L(R,B,G)}return L.apply(this,arguments)};return C[d]=L[d],C}(h):A&&typeof h=="function"?y(Function.call,h):h,A&&((E.virtual||(E.virtual={}))[S]=h,s&u.R&&M&&!M[S]&&c(M,S,h))}};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,_.exports=r},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,_,l){_.exports=function(i){try{return!!i()}catch(t){return!0}}},{}],109:[function(e,_,l){var i=e("./_ctx"),t=e("./_iter-call"),y=e("./_is-array-iter"),c=e("./_an-object"),f=e("./_to-length"),d=e("./core.get-iterator-method"),r={},u={},l=_.exports=function(s,n,a,b,p){var m=p?function(){return s}:d(s),A=i(a,b,n?2:1),T=0,x,E,M,O;if(typeof m!="function")throw TypeError(s+" is not iterable!");if(y(m)){for(x=f(s.length);x>T;T++)if(O=n?A(c(E=s[T])[0],E[1]):A(s[T]),O===r||O===u)return O}else for(M=m.call(s);!(E=M.next()).done;)if(O=t(M,A,E.value,n),O===r||O===u)return O};l.BREAK=r,l.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,_,l){var i=_.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},{}],111:[function(e,_,l){var i={}.hasOwnProperty;_.exports=function(t,y){return i.call(t,y)}},{}],112:[function(e,_,l){var i=e("./_object-dp"),t=e("./_property-desc");_.exports=e("./_descriptors")?function(y,c,f){return i.f(y,c,t(1,f))}:function(y,c,f){return y[c]=f,y}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,_,l){var i=e("./_global").document;_.exports=i&&i.documentElement},{"./_global":110}],114:[function(e,_,l){_.exports=!e("./_descriptors")&&!e("./_fails")(function(){return Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,_,l){_.exports=function(i,t,y){var c=y===void 0;switch(t.length){case 0:return c?i():i.call(y);case 1:return c?i(t[0]):i.call(y,t[0]);case 2:return c?i(t[0],t[1]):i.call(y,t[0],t[1]);case 3:return c?i(t[0],t[1],t[2]):i.call(y,t[0],t[1],t[2]);case 4:return c?i(t[0],t[1],t[2],t[3]):i.call(y,t[0],t[1],t[2],t[3])}return i.apply(y,t)}},{}],116:[function(e,_,l){var i=e("./_cof");_.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return i(t)=="String"?t.split(""):Object(t)}},{"./_cof":98}],117:[function(e,_,l){var i=e("./_iterators"),t=e("./_wks")("iterator"),y=Array.prototype;_.exports=function(c){return c!==void 0&&(i.Array===c||y[t]===c)}},{"./_iterators":125,"./_wks":166}],118:[function(e,_,l){var i=e("./_cof");_.exports=Array.isArray||function(y){return i(y)=="Array"}},{"./_cof":98}],119:[function(e,_,l){_.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},{}],120:[function(e,_,l){var i=e("./_an-object");_.exports=function(t,y,c,f){try{return f?y(i(c)[0],c[1]):y(c)}catch(r){var d=t.return;throw d!==void 0&&i(d.call(t)),r}}},{"./_an-object":95}],121:[function(e,_,l){"use strict";var i=e("./_object-create"),t=e("./_property-desc"),y=e("./_set-to-string-tag"),c={};e("./_hide")(c,e("./_wks")("iterator"),function(){return this}),_.exports=function(f,d,r){f.prototype=i(c,{next:t(1,r)}),y(f,d+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,_,l){"use strict";var i=e("./_library"),t=e("./_export"),y=e("./_redefine"),c=e("./_hide"),f=e("./_iterators"),d=e("./_iter-create"),r=e("./_set-to-string-tag"),u=e("./_object-gpo"),s=e("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),a="@@iterator",b="keys",p="values",m=function(){return this};_.exports=function(A,T,x,E,M,O,S){d(x,T,E);var w=function(j){if(!n&&j in I)return I[j];switch(j){case b:return function(){return new x(this,j)};case p:return function(){return new x(this,j)}}return function(){return new x(this,j)}},h=T+" Iterator",L=M==p,C=!1,I=A.prototype,R=I[s]||I[a]||M&&I[M],B=R||w(M),G=M?L?w("entries"):B:void 0,P=T=="Array"&&I.entries||R,oe,z,te;if(P&&(te=u(P.call(new A)),te!==Object.prototype&&te.next&&(r(te,h,!0),!i&&typeof te[s]!="function"&&c(te,s,m))),L&&R&&R.name!==p&&(C=!0,B=function(){return R.call(this)}),(!i||S)&&(n||C||!I[s])&&c(I,s,B),f[T]=B,f[h]=m,M)if(oe={values:L?B:w(p),keys:O?B:w(b),entries:G},S)for(z in oe)z in I||y(I,z,oe[z]);else t(t.P+t.F*(n||C),T,oe);return oe}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,_,l){var i=e("./_wks")("iterator"),t=!1;try{var y=[7][i]();y.return=function(){t=!0},Array.from(y,function(){throw 2})}catch(c){}_.exports=function(c,f){if(!f&&!t)return!1;var d=!1;try{var r=[7],u=r[i]();u.next=function(){return{done:d=!0}},r[i]=function(){return u},c(r)}catch(s){}return d}},{"./_wks":166}],124:[function(e,_,l){_.exports=function(i,t){return{value:t,done:!!i}}},{}],125:[function(e,_,l){_.exports={}},{}],126:[function(e,_,l){_.exports=!0},{}],127:[function(e,_,l){var i=e("./_uid")("meta"),t=e("./_is-object"),y=e("./_has"),c=e("./_object-dp").f,f=0,d=Object.isExtensible||function(){return!0},r=!e("./_fails")(function(){return d(Object.preventExtensions({}))}),u=function(m){c(m,i,{value:{i:"O"+ ++f,w:{}}})},s=function(m,A){if(!t(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!y(m,i)){if(!d(m))return"F";if(!A)return"E";u(m)}return m[i].i},n=function(m,A){if(!y(m,i)){if(!d(m))return!0;if(!A)return!1;u(m)}return m[i].w},a=function(m){return r&&b.NEED&&d(m)&&!y(m,i)&&u(m),m},b=_.exports={KEY:i,NEED:!1,fastKey:s,getWeak:n,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,_,l){var i=e("./_global"),t=e("./_task").set,y=i.MutationObserver||i.WebKitMutationObserver,c=i.process,f=i.Promise,d=e("./_cof")(c)=="process";_.exports=function(){var r,u,s,n=function(){var A,T;for(d&&(A=c.domain)&&A.exit();r;){T=r.fn,r=r.next;try{T()}catch(x){throw r?s():u=void 0,x}}u=void 0,A&&A.enter()};if(d)s=function(){c.nextTick(n)};else if(y&&!(i.navigator&&i.navigator.standalone)){var a=!0,b=document.createTextNode("");new y(n).observe(b,{characterData:!0}),s=function(){b.data=a=!a}}else if(f&&f.resolve){var p=f.resolve(void 0);s=function(){p.then(n)}}else s=function(){t.call(i,n)};return function(m){var A={fn:m,next:void 0};u&&(u.next=A),r||(r=A,s()),u=A}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,_,l){"use strict";var i=e("./_a-function");function t(y){var c,f;this.promise=new y(function(d,r){if(c!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");c=d,f=r}),this.resolve=i(c),this.reject=i(f)}_.exports.f=function(y){return new t(y)}},{"./_a-function":92}],130:[function(e,_,l){"use strict";var i=e("./_descriptors"),t=e("./_object-keys"),y=e("./_object-gops"),c=e("./_object-pie"),f=e("./_to-object"),d=e("./_iobject"),r=Object.assign;_.exports=!r||e("./_fails")(function(){var u={},s={},n=Symbol(),a="abcdefghijklmnopqrst";return u[n]=7,a.split("").forEach(function(b){s[b]=b}),r({},u)[n]!=7||Object.keys(r({},s)).join("")!=a})?function(s,n){for(var a=f(s),b=arguments.length,p=1,m=y.f,A=c.f;b>p;)for(var T=d(arguments[p++]),x=m?t(T).concat(m(T)):t(T),E=x.length,M=0,O;E>M;)O=x[M++],(!i||A.call(T,O))&&(a[O]=T[O]);return a}:r},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,_,l){var i=e("./_an-object"),t=e("./_object-dps"),y=e("./_enum-bug-keys"),c=e("./_shared-key")("IE_PROTO"),f=function(){},d="prototype",r=function(){var s=e("./_dom-create")("iframe"),n=y.length,a="<",b=">",p;for(s.style.display="none",e("./_html").appendChild(s),s.src="javascript:",p=s.contentWindow.document,p.open(),p.write(a+"script"+b+"document.F=Object"+a+"/script"+b),p.close(),r=p.F;n--;)delete r[d][y[n]];return r()};_.exports=Object.create||function(s,n){var a;return s!==null?(f[d]=i(s),a=new f,f[d]=null,a[c]=s):a=r(),n===void 0?a:t(a,n)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,_,l){var i=e("./_an-object"),t=e("./_ie8-dom-define"),y=e("./_to-primitive"),c=Object.defineProperty;l.f=e("./_descriptors")?Object.defineProperty:function(d,r,u){if(i(d),r=y(r,!0),i(u),t)try{return c(d,r,u)}catch(s){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(d[r]=u.value),d}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,_,l){var i=e("./_object-dp"),t=e("./_an-object"),y=e("./_object-keys");_.exports=e("./_descriptors")?Object.defineProperties:function(f,d){t(f);for(var r=y(d),u=r.length,s=0,n;u>s;)i.f(f,n=r[s++],d[n]);return f}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,_,l){var i=e("./_object-pie"),t=e("./_property-desc"),y=e("./_to-iobject"),c=e("./_to-primitive"),f=e("./_has"),d=e("./_ie8-dom-define"),r=Object.getOwnPropertyDescriptor;l.f=e("./_descriptors")?r:function(s,n){if(s=y(s),n=c(n,!0),d)try{return r(s,n)}catch(a){}if(f(s,n))return t(!i.f.call(s,n),s[n])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,_,l){var i=e("./_to-iobject"),t=e("./_object-gopn").f,y={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(r){try{return t(r)}catch(u){return c.slice()}};_.exports.f=function(r){return c&&y.call(r)=="[object Window]"?f(r):t(i(r))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,_,l){var i=e("./_object-keys-internal"),t=e("./_enum-bug-keys").concat("length","prototype");l.f=Object.getOwnPropertyNames||function(c){return i(c,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,_,l){l.f=Object.getOwnPropertySymbols},{}],138:[function(e,_,l){var i=e("./_has"),t=e("./_to-object"),y=e("./_shared-key")("IE_PROTO"),c=Object.prototype;_.exports=Object.getPrototypeOf||function(f){return f=t(f),i(f,y)?f[y]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?c:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,_,l){var i=e("./_has"),t=e("./_to-iobject"),y=e("./_array-includes")(!1),c=e("./_shared-key")("IE_PROTO");_.exports=function(f,d){var r=t(f),u=0,s=[],n;for(n in r)n!=c&&(i(r,n)&&s.push(n));for(;d.length>u;)i(r,n=d[u++])&&(~y(s,n)||s.push(n));return s}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,_,l){var i=e("./_object-keys-internal"),t=e("./_enum-bug-keys");_.exports=Object.keys||function(c){return i(c,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,_,l){l.f={}.propertyIsEnumerable},{}],142:[function(e,_,l){var i=e("./_export"),t=e("./_core"),y=e("./_fails");_.exports=function(c,f){var d=(t.Object||{})[c]||Object[c],r={};r[c]=f(d),i(i.S+i.F*y(function(){d(1)}),"Object",r)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,_,l){var i=e("./_descriptors"),t=e("./_object-keys"),y=e("./_to-iobject"),c=e("./_object-pie").f;_.exports=function(f){return function(d){for(var r=y(d),u=t(r),s=u.length,n=0,a=[],b;s>n;)b=u[n++],(!i||c.call(r,b))&&a.push(f?[b,r[b]]:r[b]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,_,l){_.exports=function(i){try{return{e:!1,v:i()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,_,l){var i=e("./_an-object"),t=e("./_is-object"),y=e("./_new-promise-capability");_.exports=function(c,f){if(i(c),t(f)&&f.constructor===c)return f;var d=y.f(c),r=d.resolve;return r(f),d.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,_,l){_.exports=function(i,t){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:t}}},{}],147:[function(e,_,l){var i=e("./_hide");_.exports=function(t,y,c){for(var f in y)c&&t[f]?t[f]=y[f]:i(t,f,y[f]);return t}},{"./_hide":112}],148:[function(e,_,l){_.exports=e("./_hide")},{"./_hide":112}],149:[function(e,_,l){"use strict";var i=e("./_global"),t=e("./_core"),y=e("./_object-dp"),c=e("./_descriptors"),f=e("./_wks")("species");_.exports=function(d){var r=typeof t[d]=="function"?t[d]:i[d];c&&r&&!r[f]&&y.f(r,f,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,_,l){var i=e("./_object-dp").f,t=e("./_has"),y=e("./_wks")("toStringTag");_.exports=function(c,f,d){c&&!t(c=d?c:c.prototype,y)&&i(c,y,{configurable:!0,value:f})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,_,l){var i=e("./_shared")("keys"),t=e("./_uid");_.exports=function(y){return i[y]||(i[y]=t(y))}},{"./_shared":152,"./_uid":162}],152:[function(e,_,l){var i=e("./_core"),t=e("./_global"),y="__core-js_shared__",c=t[y]||(t[y]={});(_.exports=function(f,d){return c[f]||(c[f]=d!==void 0?d:{})})("versions",[]).push({version:i.version,mode:e("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,_,l){var i=e("./_an-object"),t=e("./_a-function"),y=e("./_wks")("species");_.exports=function(c,f){var d=i(c).constructor,r;return d===void 0||(r=i(d)[y])==null?f:t(r)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,_,l){var i=e("./_to-integer"),t=e("./_defined");_.exports=function(y){return function(c,f){var d=String(t(c)),r=i(f),u=d.length,s,n;return r<0||r>=u?y?"":void 0:(s=d.charCodeAt(r),s<55296||s>56319||r+1===u||(n=d.charCodeAt(r+1))<56320||n>57343?y?d.charAt(r):s:y?d.slice(r,r+2):(s-55296<<10)+(n-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,_,l){var i=e("./_ctx"),t=e("./_invoke"),y=e("./_html"),c=e("./_dom-create"),f=e("./_global"),d=f.process,r=f.setImmediate,u=f.clearImmediate,s=f.MessageChannel,n=f.Dispatch,a=0,b={},p="onreadystatechange",m,A,T,x=function(){var O=+this;if(b.hasOwnProperty(O)){var S=b[O];delete b[O],S()}},E=function(O){x.call(O.data)};(!r||!u)&&(r=function(O){for(var S=[],w=1;arguments.length>w;)S.push(arguments[w++]);return b[++a]=function(){t(typeof O=="function"?O:Function(O),S)},m(a),a},u=function(O){delete b[O]},e("./_cof")(d)=="process"?m=function(O){d.nextTick(i(x,O,1))}:n&&n.now?m=function(O){n.now(i(x,O,1))}:s?(A=new s,T=A.port2,A.port1.onmessage=E,m=i(T.postMessage,T,1)):f.addEventListener&&typeof postMessage=="function"&&!f.importScripts?(m=function(O){f.postMessage(O+"","*")},f.addEventListener("message",E,!1)):p in c("script")?m=function(O){y.appendChild(c("script"))[p]=function(){y.removeChild(this),x.call(O)}}:m=function(O){setTimeout(i(x,O,1),0)}),_.exports={set:r,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,_,l){var i=e("./_to-integer"),t=Math.max,y=Math.min;_.exports=function(c,f){return c=i(c),c<0?t(c+f,0):y(c,f)}},{"./_to-integer":157}],157:[function(e,_,l){var i=Math.ceil,t=Math.floor;_.exports=function(y){return isNaN(y=+y)?0:(y>0?t:i)(y)}},{}],158:[function(e,_,l){var i=e("./_iobject"),t=e("./_defined");_.exports=function(y){return i(t(y))}},{"./_defined":102,"./_iobject":116}],159:[function(e,_,l){var i=e("./_to-integer"),t=Math.min;_.exports=function(y){return y>0?t(i(y),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,_,l){var i=e("./_defined");_.exports=function(t){return Object(i(t))}},{"./_defined":102}],161:[function(e,_,l){var i=e("./_is-object");_.exports=function(t,y){if(!i(t))return t;var c,f;if(y&&typeof(c=t.toString)=="function"&&!i(f=c.call(t)))return f;if(typeof(c=t.valueOf)=="function"&&!i(f=c.call(t)))return f;if(!y&&typeof(c=t.toString)=="function"&&!i(f=c.call(t)))return f;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,_,l){var i=0,t=Math.random();_.exports=function(y){return"Symbol(".concat(y===void 0?"":y,")_",(++i+t).toString(36))}},{}],163:[function(e,_,l){var i=e("./_global"),t=i.navigator;_.exports=t&&t.userAgent||""},{"./_global":110}],164:[function(e,_,l){var i=e("./_global"),t=e("./_core"),y=e("./_library"),c=e("./_wks-ext"),f=e("./_object-dp").f;_.exports=function(d){var r=t.Symbol||(t.Symbol=y?{}:i.Symbol||{});d.charAt(0)!="_"&&!(d in r)&&f(r,d,{value:c.f(d)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,_,l){l.f=e("./_wks")},{"./_wks":166}],166:[function(e,_,l){var i=e("./_shared")("wks"),t=e("./_uid"),y=e("./_global").Symbol,c=typeof y=="function",f=_.exports=function(d){return i[d]||(i[d]=c&&y[d]||(c?y:t)("Symbol."+d))};f.store=i},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,_,l){var i=e("./_classof"),t=e("./_wks")("iterator"),y=e("./_iterators");_.exports=e("./_core").getIteratorMethod=function(c){if(c!=null)return c[t]||c["@@iterator"]||y[i(c)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,_,l){"use strict";var i=e("./_ctx"),t=e("./_export"),y=e("./_to-object"),c=e("./_iter-call"),f=e("./_is-array-iter"),d=e("./_to-length"),r=e("./_create-property"),u=e("./core.get-iterator-method");t(t.S+t.F*!e("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(n){var a=y(n),b=typeof this=="function"?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,A=m!==void 0,T=0,x=u(a),E,M,O,S;if(A&&(m=i(m,p>2?arguments[2]:void 0,2)),x!=null&&!(b==Array&&f(x)))for(S=x.call(a),M=new b;!(O=S.next()).done;T++)r(M,T,A?c(S,m,[O.value,T],!0):O.value);else for(E=d(a.length),M=new b(E);E>T;T++)r(M,T,A?m(a[T],T):a[T]);return M.length=T,M}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,_,l){"use strict";var i=e("./_add-to-unscopables"),t=e("./_iter-step"),y=e("./_iterators"),c=e("./_to-iobject");_.exports=e("./_iter-define")(Array,"Array",function(f,d){this._t=c(f),this._i=0,this._k=d},function(){var f=this._t,d=this._k,r=this._i++;return!f||r>=f.length?(this._t=void 0,t(1)):d=="keys"?t(0,r):d=="values"?t(0,f[r]):t(0,[r,f[r]])},"values"),y.Arguments=y.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,_,l){"use strict";var i=e("./_is-object"),t=e("./_object-gpo"),y=e("./_wks")("hasInstance"),c=Function.prototype;y in c||e("./_object-dp").f(c,y,{value:function(d){if(typeof this!="function"||!i(d))return!1;if(!i(this.prototype))return d instanceof this;for(;d=t(d);)if(this.prototype===d)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,_,l){var i=e("./_export");i(i.S+i.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,_,l){var i=e("./_export");i(i.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,_,l){var i=e("./_export");i(i.S+i.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,_,l){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,_,l){var i=e("./_to-object"),t=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(c){return t(i(c))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,_,l){var i=e("./_to-object"),t=e("./_object-keys");e("./_object-sap")("keys",function(){return function(c){return t(i(c))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,_,l){arguments[4][71][0].apply(l,arguments)},{dup:71}],178:[function(e,_,l){"use strict";var i=e("./_library"),t=e("./_global"),y=e("./_ctx"),c=e("./_classof"),f=e("./_export"),d=e("./_is-object"),r=e("./_a-function"),u=e("./_an-instance"),s=e("./_for-of"),n=e("./_species-constructor"),a=e("./_task").set,b=e("./_microtask")(),p=e("./_new-promise-capability"),m=e("./_perform"),A=e("./_user-agent"),T=e("./_promise-resolve"),x="Promise",E=t.TypeError,M=t.process,O=M&&M.versions,S=O&&O.v8||"",w=t[x],h=c(M)=="process",L=function(){},C,I,R,B,G=I=p.f,P=!!function(){try{var Z=w.resolve(1),k=(Z.constructor={})[e("./_wks")("species")]=function(ee){ee(L,L)};return(h||typeof PromiseRejectionEvent=="function")&&Z.then(L)instanceof k&&S.indexOf("6.6")!==0&&A.indexOf("Chrome/66")===-1}catch(ee){}}(),oe=function(k){var ee;return d(k)&&typeof(ee=k.then)=="function"?ee:!1},z=function(k,ee){if(k._n)return;k._n=!0;var ae=k._c;b(function(){for(var ne=k._v,le=k._s==1,fe=0,q=function(D){var X=le?D.ok:D.fail,$=D.resolve,Q=D.reject,se=D.domain,H,U,J;try{X?(le||(k._h==2&&j(k),k._h=1),X===!0?H=ne:(se&&se.enter(),H=X(ne),se&&(se.exit(),J=!0)),H===D.promise?Q(E("Promise-chain cycle")):(U=oe(H))?U.call(H,$,Q):$(H)):Q(ne)}catch(N){se&&!J&&se.exit(),Q(N)}};ae.length>fe;)q(ae[fe++]);k._c=[],k._n=!1,ee&&!k._h&&te(k)})},te=function(k){a.call(t,function(){var ee=k._v,ae=Y(k),ne,le,fe;if(ae&&(ne=m(function(){h?M.emit("unhandledRejection",ee,k):(le=t.onunhandledrejection)?le({promise:k,reason:ee}):(fe=t.console)&&fe.error&&fe.error("Unhandled promise rejection",ee)}),k._h=h||Y(k)?2:1),k._a=void 0,ae&&ne.e)throw ne.v})},Y=function(k){return k._h!==1&&(k._a||k._c).length===0},j=function(k){a.call(t,function(){var ee;h?M.emit("rejectionHandled",k):(ee=t.onrejectionhandled)&&ee({promise:k,reason:k._v})})},F=function(k){var ee=this;if(ee._d)return;ee._d=!0,ee=ee._w||ee,ee._v=k,ee._s=2,ee._a||(ee._a=ee._c.slice()),z(ee,!0)},V=function Z(k){var ee=this,ae;if(ee._d)return;ee._d=!0,ee=ee._w||ee;try{if(ee===k)throw E("Promise can't be resolved itself");(ae=oe(k))?b(function(){var ne={_w:ee,_d:!1};try{ae.call(k,y(Z,ne,1),y(F,ne,1))}catch(le){F.call(ne,le)}}):(ee._v=k,ee._s=1,z(ee,!1))}catch(ne){F.call({_w:ee,_d:!1},ne)}};P||(w=function(k){u(this,w,x,"_h"),r(k),C.call(this);try{k(y(V,this,1),y(F,this,1))}catch(ee){F.call(this,ee)}},C=function(k){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=e("./_redefine-all")(w.prototype,{then:function(k,ee){var ae=G(n(this,w));return ae.ok=typeof k=="function"?k:!0,ae.fail=typeof ee=="function"&&ee,ae.domain=h?M.domain:void 0,this._c.push(ae),this._a&&this._a.push(ae),this._s&&z(this,!1),ae.promise},catch:function(k){return this.then(void 0,k)}}),R=function(){var k=new C;this.promise=k,this.resolve=y(V,k,1),this.reject=y(F,k,1)},p.f=G=function(k){return k===w||k===B?new R(k):I(k)}),f(f.G+f.W+f.F*!P,{Promise:w}),e("./_set-to-string-tag")(w,x),e("./_set-species")(x),B=e("./_core")[x],f(f.S+f.F*!P,x,{reject:function(k){var ee=G(this),ae=ee.reject;return ae(k),ee.promise}}),f(f.S+f.F*(i||!P),x,{resolve:function(k){return T(i&&this===B?w:this,k)}}),f(f.S+f.F*!(P&&e("./_iter-detect")(function(Z){w.all(Z).catch(L)})),x,{all:function(k){var ee=this,ae=G(ee),ne=ae.resolve,le=ae.reject,fe=m(function(){var q=[],pe=0,D=1;s(k,!1,function(X){var $=pe++,Q=!1;q.push(void 0),D++,ee.resolve(X).then(function(se){if(Q)return;Q=!0,q[$]=se,--D||ne(q)},le)}),--D||ne(q)});return fe.e&&le(fe.v),ae.promise},race:function(k){var ee=this,ae=G(ee),ne=ae.reject,le=m(function(){s(k,!1,function(fe){ee.resolve(fe).then(ae.resolve,ne)})});return le.e&&ne(le.v),ae.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,_,l){var i=e("./_export"),t=e("./_to-absolute-index"),y=String.fromCharCode,c=String.fromCodePoint;i(i.S+i.F*(!!c&&c.length!=1),"String",{fromCodePoint:function(d){for(var r=[],u=arguments.length,s=0,n;u>s;){if(n=+arguments[s++],t(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?y(n):y(((n-=65536)>>10)+55296,n%1024+56320))}return r.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,_,l){"use strict";var i=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,y=this._i,c;return y>=t.length?{value:void 0,done:!0}:(c=i(t,y),this._i+=c.length,{value:c,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(e,_,l){"use strict";var i=e("./_global"),t=e("./_has"),y=e("./_descriptors"),c=e("./_export"),f=e("./_redefine"),d=e("./_meta").KEY,r=e("./_fails"),u=e("./_shared"),s=e("./_set-to-string-tag"),n=e("./_uid"),a=e("./_wks"),b=e("./_wks-ext"),p=e("./_wks-define"),m=e("./_enum-keys"),A=e("./_is-array"),T=e("./_an-object"),x=e("./_is-object"),E=e("./_to-object"),M=e("./_to-iobject"),O=e("./_to-primitive"),S=e("./_property-desc"),w=e("./_object-create"),h=e("./_object-gopn-ext"),L=e("./_object-gopd"),C=e("./_object-gops"),I=e("./_object-dp"),R=e("./_object-keys"),B=L.f,G=I.f,P=h.f,oe=i.Symbol,z=i.JSON,te=z&&z.stringify,Y="prototype",j=a("_hidden"),F=a("toPrimitive"),V={}.propertyIsEnumerable,Z=u("symbol-registry"),k=u("symbols"),ee=u("op-symbols"),ae=Object[Y],ne=typeof oe=="function"&&!!C.f,le=i.QObject,fe=!le||!le[Y]||!le[Y].findChild,q=y&&r(function(){return w(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a!=7})?function(W,re,de){var ge=B(ae,re);ge&&delete ae[re],G(W,re,de),ge&&W!==ae&&G(ae,re,ge)}:G,pe=function(re){var de=k[re]=w(oe[Y]);return de._k=re,de},D=ne&&typeof oe.iterator=="symbol"?function(W){return typeof W=="symbol"}:function(W){return W instanceof oe},X=function(re,de,ge){return re===ae&&X(ee,de,ge),T(re),de=O(de,!0),T(ge),t(k,de)?(ge.enumerable?(t(re,j)&&re[j][de]&&(re[j][de]=!1),ge=w(ge,{enumerable:S(0,!1)})):(t(re,j)||G(re,j,S(1,{})),re[j][de]=!0),q(re,de,ge)):G(re,de,ge)},$=function(re,de){T(re);for(var ge=m(de=M(de)),ye=0,ve=ge.length,Ee;ve>ye;)X(re,Ee=ge[ye++],de[Ee]);return re},Q=function(re,de){return de===void 0?w(re):$(w(re),de)},se=function(re){var de=V.call(this,re=O(re,!0));return this===ae&&t(k,re)&&!t(ee,re)?!1:de||!t(this,re)||!t(k,re)||t(this,j)&&this[j][re]?de:!0},H=function(re,de){if(re=M(re),de=O(de,!0),re===ae&&t(k,de)&&!t(ee,de))return;var ge=B(re,de);return ge&&t(k,de)&&!(t(re,j)&&re[j][de])&&(ge.enumerable=!0),ge},U=function(re){for(var de=P(M(re)),ge=[],ye=0,ve;de.length>ye;)!t(k,ve=de[ye++])&&ve!=j&&ve!=d&&ge.push(ve);return ge},J=function(re){for(var de=re===ae,ge=P(de?ee:M(re)),ye=[],ve=0,Ee;ge.length>ve;)t(k,Ee=ge[ve++])&&(de?t(ae,Ee):!0)&&ye.push(k[Ee]);return ye};ne||(oe=function(){if(this instanceof oe)throw TypeError("Symbol is not a constructor!");var re=n(arguments.length>0?arguments[0]:void 0),de=function ge(ye){this===ae&&ge.call(ee,ye),t(this,j)&&t(this[j],re)&&(this[j][re]=!1),q(this,re,S(1,ye))};return y&&fe&&q(ae,re,{configurable:!0,set:de}),pe(re)},f(oe[Y],"toString",function(){return this._k}),L.f=H,I.f=X,e("./_object-gopn").f=h.f=U,e("./_object-pie").f=se,C.f=J,y&&!e("./_library")&&f(ae,"propertyIsEnumerable",se,!0),b.f=function(W){return pe(a(W))}),c(c.G+c.W+c.F*!ne,{Symbol:oe});for(var N="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),g=0;N.length>g;)a(N[g++]);for(var o=R(a.store),v=0;o.length>v;)p(o[v++]);c(c.S+c.F*!ne,"Symbol",{for:function(re){return t(Z,re+="")?Z[re]:Z[re]=oe(re)},keyFor:function(re){if(!D(re))throw TypeError(re+" is not a symbol!");for(var de in Z)if(Z[de]===re)return de},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),c(c.S+c.F*!ne,"Object",{create:Q,defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:H,getOwnPropertyNames:U,getOwnPropertySymbols:J});var K=r(function(){C.f(1)});c(c.S+c.F*K,"Object",{getOwnPropertySymbols:function(re){return C.f(E(re))}}),z&&c(c.S+c.F*(!ne||r(function(){var W=oe();return te([W])!="[null]"||te({a:W})!="{}"||te(Object(W))!="{}"})),"JSON",{stringify:function(re){for(var de=[re],ge=1,ye,ve;arguments.length>ge;)de.push(arguments[ge++]);return ve=ye=de[1],!x(ye)&&re===void 0||D(re)?void 0:(A(ye)||(ye=function(_e,Oe){if(typeof ve=="function"&&(Oe=ve.call(this,_e,Oe)),!D(Oe))return Oe}),de[1]=ye,te.apply(z,de))}}),oe[Y][F]||e("./_hide")(oe[Y],F,oe[Y].valueOf),s(oe,"Symbol"),s(Math,"Math",!0),s(i.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,_,l){var i=e("./_export"),t=e("./_object-to-array")(!0);i(i.S,"Object",{entries:function(c){return t(c)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,_,l){"use strict";var i=e("./_export"),t=e("./_core"),y=e("./_global"),c=e("./_species-constructor"),f=e("./_promise-resolve");i(i.P+i.R,"Promise",{finally:function(r){var u=c(this,t.Promise||y.Promise),s=typeof r=="function";return this.then(s?function(n){return f(u,r()).then(function(){return n})}:r,s?function(n){return f(u,r()).then(function(){throw n})}:r)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,_,l){"use strict";var i=e("./_export"),t=e("./_new-promise-capability"),y=e("./_perform");i(i.S,"Promise",{try:function(f){var d=t.f(this),r=y(f);return(r.e?d.reject:d.resolve)(r.v),d.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,_,l){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,_,l){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,_,l){e("./es6.array.iterator");for(var i=e("./_global"),t=e("./_hide"),y=e("./_iterators"),c=e("./_wks")("toStringTag"),f="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(","),d=0;d<f.length;d++){var r=f[d],u=i[r],s=u&&u.prototype;s&&!s[c]&&t(s,c,r),y[r]=y.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(e,_,l){var i=e("./_export"),t=e("./_task");i(i.G+i.B,{setImmediate:t.set,clearImmediate:t.clear})},{"./_export":107,"./_task":155}],189:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/helpers/typeof"),y=c(t);function c(O){return O&&O.__esModule?O:{default:O}}function f(O){return Array.isArray?Array.isArray(O):M(O)==="[object Array]"}l.isArray=f;function d(O){return typeof O=="boolean"}l.isBoolean=d;function r(O){return O===null}l.isNull=r;function u(O){return O==null}l.isNullOrUndefined=u;function s(O){return typeof O=="number"}l.isNumber=s;function n(O){return typeof O=="string"}l.isString=n;function a(O){return(typeof O=="undefined"?"undefined":(0,y.default)(O))==="symbol"}l.isSymbol=a;function b(O){return O===void 0}l.isUndefined=b;function p(O){return M(O)==="[object RegExp]"}l.isRegExp=p;function m(O){return(typeof O=="undefined"?"undefined":(0,y.default)(O))==="object"&&O!==null}l.isObject=m;function A(O){return M(O)==="[object Date]"}l.isDate=A;function T(O){return M(O)==="[object Error]"||O instanceof Error}l.isError=T;function x(O){return typeof O=="function"}l.isFunction=x;function E(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||(typeof O=="undefined"?"undefined":(0,y.default)(O))==="symbol"||typeof O=="undefined"}l.isPrimitive=E,l.isBuffer=i.isBuffer;function M(O){return Object.prototype.toString.call(O)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(e,_,l){"use strict";var i=e("babel-runtime/helpers/typeof"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(c){"use strict";var f=function(){var n=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,b=/[^-+\dA-Z]/g;return function(p,m,A,T){if(arguments.length===1&&s(p)==="string"&&!/\d/.test(p)&&(m=p,p=void 0),p=p||new Date,p instanceof Date||(p=new Date(p)),isNaN(p))throw TypeError("Invalid date");m=String(f.masks[m]||m||f.masks.default);var x=m.slice(0,4);(x==="UTC:"||x==="GMT:")&&(m=m.slice(4),A=!0,x==="GMT:"&&(T=!0));var E=A?"getUTC":"get",M=p[E+"Date"](),O=p[E+"Day"](),S=p[E+"Month"](),w=p[E+"FullYear"](),h=p[E+"Hours"](),L=p[E+"Minutes"](),C=p[E+"Seconds"](),I=p[E+"Milliseconds"](),R=A?0:p.getTimezoneOffset(),B=r(p),G=u(p),P={d:M,dd:d(M),ddd:f.i18n.dayNames[O],dddd:f.i18n.dayNames[O+7],m:S+1,mm:d(S+1),mmm:f.i18n.monthNames[S],mmmm:f.i18n.monthNames[S+12],yy:String(w).slice(2),yyyy:w,h:h%12||12,hh:d(h%12||12),H:h,HH:d(h),M:L,MM:d(L),s:C,ss:d(C),l:d(I,3),L:d(Math.round(I/10)),t:h<12?"a":"p",tt:h<12?"am":"pm",T:h<12?"A":"P",TT:h<12?"AM":"PM",Z:T?"GMT":A?"UTC":(String(p).match(a)||[""]).pop().replace(b,""),o:(R>0?"-":"+")+d(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4),S:["th","st","nd","rd"][M%10>3?0:(M%100-M%10!=10)*M%10],W:B,N:G};return m.replace(n,function(oe){return oe in P?P[oe]:oe.slice(1,oe.length-1)})}}();f.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"},f.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"]};function d(n,a){for(n=String(n),a=a||2;n.length<a;)n="0"+n;return n}function r(n){var a=new Date(n.getFullYear(),n.getMonth(),n.getDate());a.setDate(a.getDate()-(a.getDay()+6)%7+3);var b=new Date(a.getFullYear(),0,4);b.setDate(b.getDate()-(b.getDay()+6)%7+3);var p=a.getTimezoneOffset()-b.getTimezoneOffset();a.setHours(a.getHours()-p);var m=(a-b)/(864e5*7);return 1+Math.floor(m)}function u(n){var a=n.getDay();return a===0&&(a=7),a}function s(n){return n===null?"null":n===void 0?"undefined":(typeof n=="undefined"?"undefined":(0,t.default)(n))!=="object"?typeof n=="undefined"?"undefined":(0,t.default)(n):Array.isArray(n)?"array":{}.toString.call(n).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return f}):(typeof l=="undefined"?"undefined":(0,t.default)(l))==="object"?_.exports=f:c.dateFormat=f})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(e,_,l){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var i=/["'&<>]/;_.exports=t;function t(y){var c=""+y,f=i.exec(c);if(!f)return c;var d,r="",u=0,s=0;for(u=f.index;u<c.length;u++){switch(c.charCodeAt(u)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}s!==u&&(r+=c.substring(s,u)),s=u+1,r+=d}return s!==u?r+c.substring(s,u):r}},{}],192:[function(e,_,l){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}_.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(d){if(!y(d)||d<0||isNaN(d))throw TypeError("n must be a positive number");return this._maxListeners=d,this},i.prototype.emit=function(d){var r,u,s,n,a,b;if(this._events||(this._events={}),d==="error"&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if(r=arguments[1],r instanceof Error)throw r;var p=new Error('Uncaught, unspecified "error" event. ('+r+")");throw p.context=r,p}if(u=this._events[d],f(u))return!1;if(t(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),u.apply(this,n)}else if(c(u))for(n=Array.prototype.slice.call(arguments,1),b=u.slice(),s=b.length,a=0;a<s;a++)b[a].apply(this,n);return!0},i.prototype.addListener=function(d,r){var u;if(!t(r))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",d,t(r.listener)?r.listener:r),this._events[d]?c(this._events[d])?this._events[d].push(r):this._events[d]=[this._events[d],r]:this._events[d]=r,c(this._events[d])&&!this._events[d].warned&&(f(this._maxListeners)?u=i.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[d].length>u&&(this._events[d].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[d].length),typeof console.trace=="function"&&console.trace())),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(d,r){if(!t(r))throw TypeError("listener must be a function");var u=!1;function s(){this.removeListener(d,s),u||(u=!0,r.apply(this,arguments))}return s.listener=r,this.on(d,s),this},i.prototype.removeListener=function(d,r){var u,s,n,a;if(!t(r))throw TypeError("listener must be a function");if(!this._events||!this._events[d])return this;if(u=this._events[d],n=u.length,s=-1,u===r||t(u.listener)&&u.listener===r)delete this._events[d],this._events.removeListener&&this.emit("removeListener",d,r);else if(c(u)){for(a=n;a-- >0;)if(u[a]===r||u[a].listener&&u[a].listener===r){s=a;break}if(s<0)return this;u.length===1?(u.length=0,delete this._events[d]):u.splice(s,1),this._events.removeListener&&this.emit("removeListener",d,r)}return this},i.prototype.removeAllListeners=function(d){var r,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[d]&&delete this._events[d],this;if(arguments.length===0){for(r in this._events){if(r==="removeListener")continue;this.removeAllListeners(r)}return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[d],t(u))this.removeListener(d,u);else if(u)for(;u.length;)this.removeListener(d,u[u.length-1]);return delete this._events[d],this},i.prototype.listeners=function(d){var r;return!this._events||!this._events[d]?r=[]:t(this._events[d])?r=[this._events[d]]:r=this._events[d].slice(),r},i.prototype.listenerCount=function(d){if(this._events){var r=this._events[d];if(t(r))return 1;if(r)return r.length}return 0},i.listenerCount=function(d,r){return d.listenerCount(r)};function t(d){return typeof d=="function"}function y(d){return typeof d=="number"}function c(d){return typeof d=="object"&&d!==null}function f(d){return d===void 0}},{}],193:[function(e,_,l){var i=e("http"),t=_.exports;for(var y in i)i.hasOwnProperty(y)&&(t[y]=i[y]);t.request=function(c,f){return c||(c={}),c.scheme="https",c.protocol="https:",i.request.call(this,c,f)}},{http:231}],194:[function(e,_,l){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var i=e("util"),t=e("ms");_.exports=function(y){if(typeof y=="number")return y;var c=t(y);if(c===void 0){var f=new Error(i.format("humanize-ms(%j) result undefined",y));console.warn(f.stack)}return c}},{ms:204,util:243}],195:[function(e,_,l){l.read=function(i,t,y,c,f){var d,r,u=f*8-c-1,s=(1<<u)-1,n=s>>1,a=-7,b=y?f-1:0,p=y?-1:1,m=i[t+b];for(b+=p,d=m&(1<<-a)-1,m>>=-a,a+=u;a>0;d=d*256+i[t+b],b+=p,a-=8);for(r=d&(1<<-a)-1,d>>=-a,a+=c;a>0;r=r*256+i[t+b],b+=p,a-=8);if(d===0)d=1-n;else{if(d===s)return r?NaN:(m?-1:1)*Infinity;r=r+Math.pow(2,c),d=d-n}return(m?-1:1)*r*Math.pow(2,d-c)},l.write=function(i,t,y,c,f,d){var r,u,s,n=d*8-f-1,a=(1<<n)-1,b=a>>1,p=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=c?0:d-1,A=c?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(u=isNaN(t)?1:0,r=a):(r=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-r))<1&&(r--,s*=2),r+b>=1?t+=p/s:t+=p*Math.pow(2,1-b),t*s>=2&&(r++,s/=2),r+b>=a?(u=0,r=a):r+b>=1?(u=(t*s-1)*Math.pow(2,f),r=r+b):(u=t*Math.pow(2,b-1)*Math.pow(2,f),r=0));f>=8;i[y+m]=u&255,m+=A,u/=256,f-=8);for(r=r<<f|u,n+=f;n>0;i[y+m]=r&255,m+=A,r/=256,n-=8);i[y+m-A]|=T*128}},{}],196:[function(e,_,l){typeof Object.create=="function"?_.exports=function(t,y){y&&(t.super_=y,t.prototype=Object.create(y.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_.exports=function(t,y){if(y){t.super_=y;var c=function(){};c.prototype=y.prototype,t.prototype=new c,t.prototype.constructor=t}}},{}],197:[function(e,_,l){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/_.exports=function(y){return y!=null&&(i(y)||t(y)||!!y._isBuffer)};function i(y){return!!y.constructor&&typeof y.constructor.isBuffer=="function"&&y.constructor.isBuffer(y)}function t(y){return typeof y.readFloatLE=="function"&&typeof y.slice=="function"&&i(y.slice(0,0))}},{}],198:[function(e,_,l){var i={}.toString;_.exports=Array.isArray||function(t){return i.call(t)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(e,_){typeof exports=="object"&&typeof module!="undefined"?module.exports=_(e):typeof define=="function"&&define.amd?define(_):_(e)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var _={},l=0,i=e.length;l<i;l++)_[e.charAt(l)]=l;return _}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(_){if(_.length<2){var l=_.charCodeAt(0);return l<128?_:l<2048?fromCharCode(192|l>>>6)+fromCharCode(128|l&63):fromCharCode(224|l>>>12&15)+fromCharCode(128|l>>>6&63)+fromCharCode(128|l&63)}else{var l=65536+(_.charCodeAt(0)-55296)*1024+(_.charCodeAt(1)-56320);return fromCharCode(240|l>>>18&7)+fromCharCode(128|l>>>12&63)+fromCharCode(128|l>>>6&63)+fromCharCode(128|l&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(_){return _.replace(re_utob,cb_utob)},cb_encode=function(_){var l=[0,2,1][_.length%3],i=_.charCodeAt(0)<<16|(_.length>1?_.charCodeAt(1):0)<<8|(_.length>2?_.charCodeAt(2):0),t=[b64chars.charAt(i>>>18),b64chars.charAt(i>>>12&63),l>=2?"=":b64chars.charAt(i>>>6&63),l>=1?"=":b64chars.charAt(i&63)];return t.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(_){var l=Object.prototype.toString.call(_)==="[object Uint8Array]";return l?_.toString("base64"):btoa(utob(String(_)))},encode=function(_,l){return l?_encode(String(_)).replace(/[+\/]/g,function(i){return i=="+"?"-":"_"}).replace(/=/g,""):_encode(_)},encodeURI=function(_){return encode(_,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(_){switch(_.length){case 4:var l=(7&_.charCodeAt(0))<<18|(63&_.charCodeAt(1))<<12|(63&_.charCodeAt(2))<<6|63&_.charCodeAt(3),i=l-65536;return fromCharCode((i>>>10)+55296)+fromCharCode((i&1023)+56320);case 3:return fromCharCode((15&_.charCodeAt(0))<<12|(63&_.charCodeAt(1))<<6|63&_.charCodeAt(2));default:return fromCharCode((31&_.charCodeAt(0))<<6|63&_.charCodeAt(1))}},btou=function(_){return _.replace(re_btou,cb_btou)},cb_decode=function(_){var l=_.length,i=l%4,t=(l>0?b64tab[_.charAt(0)]<<18:0)|(l>1?b64tab[_.charAt(1)]<<12:0)|(l>2?b64tab[_.charAt(2)]<<6:0)|(l>3?b64tab[_.charAt(3)]:0),y=[fromCharCode(t>>>16),fromCharCode(t>>>8&255),fromCharCode(t&255)];return y.length-=[0,0,2,1][i],y.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(_){return _atob(String(_).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(_){return _decode(String(_).replace(/[-_]/g,function(l){return l=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var _=global.Base64;return global.Base64=_Base64,_};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(_){return{value:_,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(e,_,l){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";_.exports=t;var i=Object.prototype.hasOwnProperty;function t(y,c,f){if(!y)throw new TypeError("argument dest is required");if(!c)throw new TypeError("argument src is required");return f===void 0&&(f=!0),Object.getOwnPropertyNames(c).forEach(function(r){if(!f&&i.call(y,r))return;var u=Object.getOwnPropertyDescriptor(c,r);Object.defineProperty(y,r,u)}),y}},{}],201:[function(e,_,l){"use strict";function i(){this._types=Object.create(null),this._extensions=Object.create(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}i.prototype.define=function(t,y){for(var c in t){var f=t[c].map(function(u){return u.toLowerCase()});c=c.toLowerCase();for(var d=0;d<f.length;d++){var r=f[d];if(r[0]=="*")continue;if(!y&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+c+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+c+'".');this._types[r]=c}if(y||!this._extensions[c]){var r=f[0];this._extensions[c]=r[0]!="*"?r:r.substr(1)}}},i.prototype.getType=function(t){t=String(t);var y=t.replace(/^.*[/\\]/,"").toLowerCase(),c=y.replace(/^.*\./,"").toLowerCase(),f=y.length<t.length,d=c.length<y.length-1;return(d||!f)&&this._types[c]||null},i.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null},_.exports=i},{}],202:[function(e,_,l){"use strict";var i=e("./Mime");_.exports=new i(e("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(e,_,l){_.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"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","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"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/lgr+xml":["lgr"],"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/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"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/p2p-overlay+xml":["relo"],"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/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"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/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"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/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"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/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"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":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*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":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"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":["*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"]}},{}],204:[function(e,_,l){var i=1e3,t=i*60,y=t*60,c=y*24,f=c*7,d=c*365.25;_.exports=function(a,b){b=b||{};var p=typeof a;if(p==="string"&&a.length>0)return r(a);if(p==="number"&&isFinite(a))return b.long?s(a):u(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function r(a){if(a=String(a),a.length>100)return;var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!b)return;var p=parseFloat(b[1]),m=(b[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return p*d;case"weeks":case"week":case"w":return p*f;case"days":case"day":case"d":return p*c;case"hours":case"hour":case"hrs":case"hr":case"h":return p*y;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}function u(a){var b=Math.abs(a);return b>=c?Math.round(a/c)+"d":b>=y?Math.round(a/y)+"h":b>=t?Math.round(a/t)+"m":b>=i?Math.round(a/i)+"s":a+"ms"}function s(a){var b=Math.abs(a);return b>=c?n(a,b,c,"day"):b>=y?n(a,b,y,"hour"):b>=t?n(a,b,t,"minute"):b>=i?n(a,b,i,"second"):a+" ms"}function n(a,b,p,m){var A=b>=p*1.5;return Math.round(a/p)+" "+m+(A?"s":"")}},{}],205:[function(e,_,l){(function(i){function t(d,r){for(var u=0,s=d.length-1;s>=0;s--){var n=d[s];n==="."?d.splice(s,1):n===".."?(d.splice(s,1),u++):u&&(d.splice(s,1),u--)}if(r)for(;u--;u)d.unshift("..");return d}l.resolve=function(){for(var d="",r=!1,u=arguments.length-1;u>=-1&&!r;u--){var s=u>=0?arguments[u]:i.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;d=s+"/"+d,r=s.charAt(0)==="/"}return d=t(c(d.split("/"),function(n){return!!n}),!r).join("/"),(r?"/":"")+d||"."},l.normalize=function(d){var r=l.isAbsolute(d),u=f(d,-1)==="/";return d=t(c(d.split("/"),function(s){return!!s}),!r).join("/"),!d&&!r&&(d="."),d&&u&&(d+="/"),(r?"/":"")+d},l.isAbsolute=function(d){return d.charAt(0)==="/"},l.join=function(){var d=Array.prototype.slice.call(arguments,0);return l.normalize(c(d,function(r,u){if(typeof r!="string")throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},l.relative=function(d,r){d=l.resolve(d).substr(1),r=l.resolve(r).substr(1);function u(A){for(var T=0;T<A.length&&!(A[T]!=="");T++);for(var x=A.length-1;x>=0&&!(A[x]!=="");x--);return T>x?[]:A.slice(T,x-T+1)}for(var s=u(d.split("/")),n=u(r.split("/")),a=Math.min(s.length,n.length),b=a,p=0;p<a;p++)if(s[p]!==n[p]){b=p;break}for(var m=[],p=b;p<s.length;p++)m.push("..");return m=m.concat(n.slice(b)),m.join("/")},l.sep="/",l.delimiter=":",l.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var r=d.charCodeAt(0),u=r===47,s=-1,n=!0,a=d.length-1;a>=1;--a)if(r=d.charCodeAt(a),r===47){if(!n){s=a;break}}else n=!1;return s===-1?u?"/":".":u&&s===1?"/":d.slice(0,s)};function y(d){typeof d!="string"&&(d=d+"");var r=0,u=-1,s=!0,n;for(n=d.length-1;n>=0;--n)if(d.charCodeAt(n)===47){if(!s){r=n+1;break}}else u===-1&&(s=!1,u=n+1);return u===-1?"":d.slice(r,u)}l.basename=function(d,r){var u=y(d);return r&&u.substr(-1*r.length)===r&&(u=u.substr(0,u.length-r.length)),u},l.extname=function(d){typeof d!="string"&&(d=d+"");for(var r=-1,u=0,s=-1,n=!0,a=0,b=d.length-1;b>=0;--b){var p=d.charCodeAt(b);if(p===47){if(!n){u=b+1;break}continue}s===-1&&(n=!1,s=b+1),p===46?r===-1?r=b:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||s===-1||a===0||a===1&&r===s-1&&r===u+1?"":d.slice(r,s)};function c(d,r){if(d.filter)return d.filter(r);for(var u=[],s=0;s<d.length;s++)r(d[s],s,d)&&u.push(d[s]);return u}var f="ab".substr(-1)==="b"?function(d,r,u){return d.substr(r,u)}:function(d,r,u){return r<0&&(r=d.length+r),d.substr(r,u)}}).call(this,e("_process"))},{_process:208}],206:[function(e,_,l){(function(i){/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var t={function:!0,object:!0},y=t[typeof window]&&window||this,c=y,f=t[typeof l]&&l,d=t[typeof _]&&_&&!_.nodeType&&_,r=f&&d&&typeof i=="object"&&i;r&&(r.global===r||r.window===r||r.self===r)&&(y=r);var u=Math.pow(2,53)-1,s=/\bOpera/,n=this,a=Object.prototype,b=a.hasOwnProperty,p=a.toString;function m(I){return I=String(I),I.charAt(0).toUpperCase()+I.slice(1)}function A(I,R,B){var G={"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 R&&B&&/^Win/i.test(I)&&!/^Windows Phone /i.test(I)&&(G=G[/[\d.]+$/.exec(I)])&&(I="Windows "+G),I=String(I),R&&B&&(I=I.replace(RegExp(R,"i"),B)),I=x(I.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]),I}function T(I,R){var B=-1,G=I?I.length:0;if(typeof G=="number"&&G>-1&&G<=u)for(;++B<G;)R(I[B],B,I);else E(I,R)}function x(I){return I=h(I),/^(?:webOS|i(?:OS|P))/.test(I)?I:m(I)}function E(I,R){for(var B in I)b.call(I,B)&&R(I[B],B,I)}function M(I){return I==null?m(I):p.call(I).slice(8,-1)}function O(I,R){var B=I!=null?typeof I[R]:"number";return!/^(?:boolean|number|string|undefined)$/.test(B)&&(B=="object"?!!I[R]:!0)}function S(I){return String(I).replace(/([ -])(?!$)/g,"$1?")}function w(I,R){var B=null;return T(I,function(G,P){B=R(B,G,P,I)}),B}function h(I){return String(I).replace(/^ +| +$/g,"")}function L(I){var R=y,B=I&&typeof I=="object"&&M(I)!="String";B&&(R=I,I=null);var G=R.navigator||{},P=G.userAgent||"";I||(I=P);var oe=B||n==c,z=B?!!G.likeChrome:/\bChrome\b/.test(I)&&!/internal|\n/i.test(p.toString()),te="Object",Y=B?te:"ScriptBridgingProxyObject",j=B?te:"Environment",F=B&&R.java?"JavaPackage":M(R.java),V=B?te:"RuntimeObject",Z=/\bJava/.test(F)&&R.java,k=Z&&M(R.environment)==j,ee=Z?"a":"\u03B1",ae=Z?"b":"\u03B2",ne=R.document||{},le=R.operamini||R.opera,fe=s.test(fe=B&&le?le["[[Class]]"]:M(le))?fe:le=null,q,pe=I,D=[],X=null,$=I==P,Q=$&&le&&typeof le.version=="function"&&le.version(),se,H=o([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),U=K(["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"]),J=re([{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"]),N=v({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}}),g=W(["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 "]);function o(ve){return w(ve,function(Ee,_e){return Ee||RegExp("\\b"+(_e.pattern||S(_e))+"\\b","i").exec(I)&&(_e.label||_e)})}function v(ve){return w(ve,function(Ee,_e,Oe){return Ee||(_e[J]||_e[/^[a-z]+(?: +[a-z]+\b)*/i.exec(J)]||RegExp("\\b"+S(Oe)+"(?:\\b|\\w*\\d)","i").exec(I))&&Oe})}function K(ve){return w(ve,function(Ee,_e){return Ee||RegExp("\\b"+(_e.pattern||S(_e))+"\\b","i").exec(I)&&(_e.label||_e)})}function W(ve){return w(ve,function(Ee,_e){var Oe=_e.pattern||S(_e);return!Ee&&(Ee=RegExp("\\b"+Oe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(I))&&(Ee=A(Ee,Oe,_e.label||_e)),Ee})}function re(ve){return w(ve,function(Ee,_e){var Oe=_e.pattern||S(_e);return!Ee&&(Ee=RegExp("\\b"+Oe+" *\\d+[.\\w_]*","i").exec(I)||RegExp("\\b"+Oe+" *\\w+-[\\w]*","i").exec(I)||RegExp("\\b"+Oe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(I))&&((Ee=String(_e.label&&!RegExp(Oe,"i").test(_e.label)?_e.label:Ee).split("/"))[1]&&!/[\d.]+/.test(Ee[0])&&(Ee[0]+=" "+Ee[1]),_e=_e.label||_e,Ee=x(Ee[0].replace(RegExp(Oe,"i"),_e).replace(RegExp("; *(?:"+_e+"[_-])?","i")," ").replace(RegExp("("+_e+")[-_.]?(\\w)","i"),"$1 $2"))),Ee})}function de(ve){return w(ve,function(Ee,_e){return Ee||(RegExp(_e+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(I)||0)[1]||null})}function ge(){return this.description||""}if(H&&(H=[H]),N&&!J&&(J=re([N])),(q=/\bGoogle TV\b/.exec(J))&&(J=q[0]),/\bSimulator\b/i.test(I)&&(J=(J?J+" ":"")+"Simulator"),U=="Opera Mini"&&/\bOPiOS\b/.test(I)&&D.push("running in Turbo/Uncompressed mode"),U=="IE"&&/\blike iPhone OS\b/.test(I)?(q=L(I.replace(/like iPhone OS/,"")),N=q.manufacturer,J=q.product):/^iP/.test(J)?(U||(U="Safari"),g="iOS"+((q=/ OS ([\d_]+)/i.exec(I))?" "+q[1].replace(/_/g,"."):"")):U=="Konqueror"&&!/buntu/i.test(g)?g="Kubuntu":N&&N!="Google"&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(I)||/\bVita\b/.test(J))||/\bAndroid\b/.test(g)&&/^Chrome/.test(U)&&/\bVersion\//i.test(I)?(U="Android Browser",g=/\bAndroid\b/.test(g)?g:"Android"):U=="Silk"?(/\bMobi/i.test(I)||(g="Android",D.unshift("desktop mode")),/Accelerated *= *true/i.test(I)&&D.unshift("accelerated")):U=="PaleMoon"&&(q=/\bFirefox\/([\d.]+)\b/.exec(I))?D.push("identifying as Firefox "+q[1]):U=="Firefox"&&(q=/\b(Mobile|Tablet|TV)\b/i.exec(I))?(g||(g="Firefox OS"),J||(J=q[1])):!U||(q=!/\bMinefield\b/i.test(I)&&/\b(?:Firefox|Safari)\b/.exec(U))?(U&&!J&&/[\/,]|^[^(]+?\)/.test(I.slice(I.indexOf(q+"/")+8))&&(U=null),(q=J||N||g)&&(J||N||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(g))&&(U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(g)?g:q)+" Browser")):U=="Electron"&&(q=(/\bChrome\/([\d.]+)\b/.exec(I)||0)[1])&&D.push("Chromium "+q),Q||(Q=de(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",S(U),"(?:Firefox|Minefield|NetFront)"])),(q=H=="iCab"&&parseFloat(Q)>3&&"WebKit"||/\bOpera\b/.test(U)&&(/\bOPR\b/.test(I)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(I)&&!/^(?:Trident|EdgeHTML)$/.test(H)&&"WebKit"||!H&&/\bMSIE\b/i.test(I)&&(g=="Mac OS"?"Tasman":"Trident")||H=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront")&&(H=[q]),U=="IE"&&(q=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(I)||0)[1])?(U+=" Mobile",g="Windows Phone "+(/\+$/.test(q)?q:q+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(I)?(U="IE Mobile",g="Windows Phone 8.x",D.unshift("desktop mode"),Q||(Q=(/\brv:([\d.]+)/.exec(I)||0)[1])):U!="IE"&&H=="Trident"&&(q=/\brv:([\d.]+)/.exec(I))&&(U&&D.push("identifying as "+U+(Q?" "+Q:"")),U="IE",Q=q[1]),$){if(O(R,"global"))if(Z&&(q=Z.lang.System,pe=q.getProperty("os.arch"),g=g||q.getProperty("os.name")+" "+q.getProperty("os.version")),k){try{Q=R.require("ringo/engine").version.join("."),U="RingoJS"}catch(ve){(q=R.system)&&q.global.system==R.system&&(U="Narwhal",g||(g=q[0].os||null))}U||(U="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(q=R.process)&&(typeof q.versions=="object"&&(typeof q.versions.electron=="string"?(D.push("Node "+q.versions.node),U="Electron",Q=q.versions.electron):typeof q.versions.nw=="string"&&(D.push("Chromium "+Q,"Node "+q.versions.node),U="NW.js",Q=q.versions.nw)),U||(U="Node.js",pe=q.arch,g=q.platform,Q=/[\d.]+/.exec(q.version),Q=Q?Q[0]:null));else M(q=R.runtime)==Y?(U="Adobe AIR",g=q.flash.system.Capabilities.os):M(q=R.phantom)==V?(U="PhantomJS",Q=(q=q.version||null)&&q.major+"."+q.minor+"."+q.patch):typeof ne.documentMode=="number"&&(q=/\bTrident\/(\d+)/i.exec(I))?(Q=[Q,ne.documentMode],(q=+q[1]+4)!=Q[1]&&(D.push("IE "+Q[1]+" mode"),H&&(H[1]=""),Q[1]=q),Q=U=="IE"?String(Q[1].toFixed(1)):Q[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(U)&&(D.push("masking as "+U+" "+Q),U="IE",Q="11.0",H=["Trident"],g="Windows");g=g&&x(g)}if(Q&&(q=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Q)||/(?:alpha|beta)(?: ?\d)?/i.exec(I+";"+($&&G.appMinorVersion))||/\bMinefield\b/i.test(I)&&"a")&&(X=/b/i.test(q)?"beta":"alpha",Q=Q.replace(RegExp(q+"\\+?$"),"")+(X=="beta"?ae:ee)+(/\d+\+?/.exec(q)||"")),U=="Fennec"||U=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(g))U="Firefox Mobile";else if(U=="Maxthon"&&Q)Q=Q.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(J))J=="Xbox 360"&&(g=null),J=="Xbox 360"&&/\bIEMobile\b/.test(I)&&D.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(U)||U&&!J&&!/Browser|Mobi/.test(U))&&(g=="Windows CE"||/Mobi/i.test(I)))U+=" Mobile";else if(U=="IE"&&$)try{R.external===null&&D.unshift("platform preview")}catch(ve){D.unshift("embedded")}else(/\bBlackBerry\b/.test(J)||/\bBB10\b/.test(I))&&(q=(RegExp(J.replace(/ +/g," *")+"/([.\\d]+)","i").exec(I)||0)[1]||Q)?(q=[q,/BB10/.test(I)],g=(q[1]?(J=null,N="BlackBerry"):"Device Software")+" "+q[0],Q=null):this!=E&&J!="Wii"&&($&&le||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(I)||U=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(g)||U=="IE"&&(g&&!/^Win/.test(g)&&Q>5.5||/\bWindows XP\b/.test(g)&&Q>8||Q==8&&!/\bTrident\b/.test(I)))&&!s.test(q=L.call(E,I.replace(s,"")+";"))&&q.name&&(q="ing as "+q.name+((q=q.version)?" "+q:""),s.test(U)?(/\bIE\b/.test(q)&&g=="Mac OS"&&(g=null),q="identify"+q):(q="mask"+q,fe?U=x(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):U="Opera",/\bIE\b/.test(q)&&(g=null),$||(Q=null)),H=["Presto"],D.push(q));(q=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(I)||0)[1])&&(q=[parseFloat(q.replace(/\.(\d)$/,".0$1")),q],U=="Safari"&&q[1].slice(-1)=="+"?(U="WebKit Nightly",X="alpha",Q=q[1].slice(0,-1)):(Q==q[1]||Q==(q[2]=(/\bSafari\/([\d.]+\+?)/i.exec(I)||0)[1]))&&(Q=null),q[1]=(/\bChrome\/([\d.]+)/i.exec(I)||0)[1],q[0]==537.36&&q[2]==537.36&&parseFloat(q[1])>=28&&H=="WebKit"&&(H=["Blink"]),!$||!z&&!q[1]?(H&&(H[1]="like Safari"),q=(q=q[0],q<400?1:q<500?2:q<526?3:q<533?4:q<534?"4+":q<535?5:q<537?6:q<538?7:q<601?8:"8")):(H&&(H[1]="like Chrome"),q=q[1]||(q=q[0],q<530?1:q<532?2:q<532.05?3:q<533?4:q<534.03?5:q<534.07?6:q<534.1?7:q<534.13?8:q<534.16?9:q<534.24?10:q<534.3?11:q<535.01?12:q<535.02?"13+":q<535.07?15:q<535.11?16:q<535.19?17:q<536.05?18:q<536.1?19:q<537.01?20:q<537.11?"21+":q<537.13?23:q<537.18?24:q<537.24?25:q<537.36?26:H!="Blink"?"27":"28")),H&&(H[1]+=" "+(q+=typeof q=="number"?".x":/[.+]/.test(q)?"":"+")),U=="Safari"&&(!Q||parseInt(Q)>45)&&(Q=q)),U=="Opera"&&(q=/\bzbov|zvav$/.exec(g))?(U+=" ",D.unshift("desktop mode"),q=="zvav"?(U+="Mini",Q=null):U+="Mobile",g=g.replace(RegExp(" *"+q+"$"),"")):U=="Safari"&&/\bChrome\b/.exec(H&&H[1])&&(D.unshift("desktop mode"),U="Chrome Mobile",Q=null,/\bOS X\b/.test(g)?(N="Apple",g="iOS 4.3+"):g=null),Q&&Q.indexOf(q=/[\d.]+$/.exec(g))==0&&I.indexOf("/"+q+"-")>-1&&(g=h(g.replace(q,""))),H&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||U!="Safari"&&/^iOS/.test(g)&&/\bSafari\b/.test(H[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(U)&&H[1])&&((q=H[H.length-1])&&D.push(q)),D.length&&(D=["("+D.join("; ")+")"]),N&&J&&J.indexOf(N)<0&&D.push("on "+N),J&&D.push((/^on /.test(D[D.length-1])?"":"on ")+J),g&&(q=/ ([\d.+]+)$/.exec(g),se=q&&g.charAt(g.length-q[0].length-1)=="/",g={architecture:32,family:q&&!se?g.replace(q[0],""):g,version:q?q[1]:null,toString:function(){var Ee=this.version;return this.family+(Ee&&!se?" "+Ee:"")+(this.architecture==64?" 64-bit":"")}}),(q=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(pe))&&!/\bi686\b/i.test(pe)?(g&&(g.architecture=64,g.family=g.family.replace(RegExp(" *"+q),"")),U&&(/\bWOW64\b/i.test(I)||$&&/\w(?:86|32)$/.test(G.cpuClass||G.platform)&&!/\bWin64; x64\b/i.test(I))&&D.unshift("32-bit")):g&&/^OS X/.test(g.family)&&U=="Chrome"&&parseFloat(Q)>=39&&(g.architecture=64),I||(I=null);var ye={};return ye.description=I,ye.layout=H&&H[0],ye.manufacturer=N,ye.name=U,ye.prerelease=X,ye.product=J,ye.ua=I,ye.version=U&&Q,ye.os=g||{architecture:null,family:null,version:null,toString:function(){return"null"}},ye.parse=L,ye.toString=ge,ye.version&&D.unshift(Q),ye.name&&D.unshift(U),g&&U&&!(g==String(g).split(" ")[0]&&(g==U.split(" ")[0]||J))&&D.push(J?"("+g+")":"on "+g),D.length&&(ye.description=D.join(" ")),ye}var C=L();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(y.platform=C,define(function(){return C})):f&&d?E(C,function(I,R){f[R]=I}):y.platform=C}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(e,_,l){(function(i){"use strict";typeof i=="undefined"||!i.version||i.version.indexOf("v0.")===0||i.version.indexOf("v1.")===0&&i.version.indexOf("v1.8.")!==0?_.exports={nextTick:t}:_.exports=i;function t(y,c,f,d){if(typeof y!="function")throw new TypeError('"callback" argument must be a function');var r=arguments.length,u,s;switch(r){case 0:case 1:return i.nextTick(y);case 2:return i.nextTick(function(){y.call(null,c)});case 3:return i.nextTick(function(){y.call(null,c,f)});case 4:return i.nextTick(function(){y.call(null,c,f,d)});default:for(u=new Array(r-1),s=0;s<u.length;)u[s++]=arguments[s];return i.nextTick(function(){y.apply(null,u)})}}}).call(this,e("_process"))},{_process:208}],208:[function(e,_,l){var i=_.exports={},t,y;function c(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=c}catch(T){t=c}try{typeof clearTimeout=="function"?y=clearTimeout:y=f}catch(T){y=f}})();function d(T){if(t===setTimeout)return setTimeout(T,0);if((t===c||!t)&&setTimeout)return t=setTimeout,setTimeout(T,0);try{return t(T,0)}catch(x){try{return t.call(null,T,0)}catch(E){return t.call(this,T,0)}}}function r(T){if(y===clearTimeout)return clearTimeout(T);if((y===f||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(T);try{return y(T)}catch(x){try{return y.call(null,T)}catch(E){return y.call(this,T)}}}var u=[],s=!1,n,a=-1;function b(){if(!s||!n)return;s=!1,n.length?u=n.concat(u):a=-1,u.length&&p()}function p(){if(s)return;var T=d(b);s=!0;for(var x=u.length;x;){for(n=u,u=[];++a<x;)n&&n[a].run();a=-1,x=u.length}n=null,s=!1,r(T)}i.nextTick=function(T){var x=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)x[E-1]=arguments[E];u.push(new m(T,x)),u.length===1&&!s&&d(p)};function m(T,x){this.fun=T,this.array=x}m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function A(){}i.on=A,i.addListener=A,i.once=A,i.off=A,i.removeListener=A,i.removeAllListeners=A,i.emit=A,i.prependListener=A,i.prependOnceListener=A,i.listeners=function(T){return[]},i.binding=function(T){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(T){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],209:[function(e,_,l){(function(i){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(t){var y=typeof l=="object"&&l&&!l.nodeType&&l,c=typeof _=="object"&&_&&!_.nodeType&&_,f=typeof i=="object"&&i;(f.global===f||f.window===f||f.self===f)&&(t=f);var d,r=2147483647,u=36,s=1,n=26,a=38,b=700,p=72,m=128,A="-",T=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=u-s,S=Math.floor,w=String.fromCharCode,h;function L(F){throw new RangeError(M[F])}function C(F,V){for(var Z=F.length,k=[];Z--;)k[Z]=V(F[Z]);return k}function I(F,V){var Z=F.split("@"),k="";Z.length>1&&(k=Z[0]+"@",F=Z[1]),F=F.replace(E,".");var ee=F.split("."),ae=C(ee,V).join(".");return k+ae}function R(F){for(var V=[],Z=0,k=F.length,ee,ae;Z<k;)ee=F.charCodeAt(Z++),ee>=55296&&ee<=56319&&Z<k?(ae=F.charCodeAt(Z++),(ae&64512)==56320?V.push(((ee&1023)<<10)+(ae&1023)+65536):(V.push(ee),Z--)):V.push(ee);return V}function B(F){return C(F,function(V){var Z="";return V>65535&&(V-=65536,Z+=w(V>>>10&1023|55296),V=56320|V&1023),Z+=w(V),Z}).join("")}function G(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:u}function P(F,V){return F+22+75*(F<26)-((V!=0)<<5)}function oe(F,V,Z){var k=0;for(F=Z?S(F/b):F>>1,F+=S(F/V);F>O*n>>1;k+=u)F=S(F/O);return S(k+(O+1)*F/(F+a))}function z(F){var V=[],Z=F.length,k,ee=0,ae=m,ne=p,le,fe,q,pe,D,X,$,Q,se;for(le=F.lastIndexOf(A),le<0&&(le=0),fe=0;fe<le;++fe)F.charCodeAt(fe)>=128&&L("not-basic"),V.push(F.charCodeAt(fe));for(q=le>0?le+1:0;q<Z;){for(pe=ee,D=1,X=u;!(q>=Z&&L("invalid-input"),$=G(F.charCodeAt(q++)),($>=u||$>S((r-ee)/D))&&L("overflow"),ee+=$*D,Q=X<=ne?s:X>=ne+n?n:X-ne,$<Q);X+=u)se=u-Q,D>S(r/se)&&L("overflow"),D*=se;k=V.length+1,ne=oe(ee-pe,k,pe==0),S(ee/k)>r-ae&&L("overflow"),ae+=S(ee/k),ee%=k,V.splice(ee++,0,ae)}return B(V)}function te(F){var V,Z,k,ee,ae,ne,le,fe,q,pe,D,X=[],$,Q,se,H;for(F=R(F),$=F.length,V=m,Z=0,ae=p,ne=0;ne<$;++ne)D=F[ne],D<128&&X.push(w(D));for(k=ee=X.length,ee&&X.push(A);k<$;){for(le=r,ne=0;ne<$;++ne)D=F[ne],D>=V&&D<le&&(le=D);for(Q=k+1,le-V>S((r-Z)/Q)&&L("overflow"),Z+=(le-V)*Q,V=le,ne=0;ne<$;++ne)if(D=F[ne],D<V&&++Z>r&&L("overflow"),D==V){for(fe=Z,q=u;!(pe=q<=ae?s:q>=ae+n?n:q-ae,fe<pe);q+=u)H=fe-pe,se=u-pe,X.push(w(P(pe+H%se,0))),fe=S(H/se);X.push(w(P(fe,0))),ae=oe(Z,Q,k==ee),Z=0,++k}++Z,++V}return X.join("")}function Y(F){return I(F,function(V){return T.test(V)?z(V.slice(4).toLowerCase()):V})}function j(F){return I(F,function(V){return x.test(V)?"xn--"+te(V):V})}if(d={version:"1.4.1",ucs2:{decode:R,encode:B},decode:z,encode:te,toASCII:j,toUnicode:Y},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return d});else if(y&&c)if(_.exports==y)c.exports=d;else for(h in d)d.hasOwnProperty(h)&&(y[h]=d[h]);else t.punycode=d})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(e,_,l){"use strict";function i(y,c){return Object.prototype.hasOwnProperty.call(y,c)}_.exports=function(y,c,f,d){c=c||"&",f=f||"=";var r={};if(typeof y!="string"||y.length===0)return r;var u=/\+/g;y=y.split(c);var s=1e3;d&&typeof d.maxKeys=="number"&&(s=d.maxKeys);var n=y.length;s>0&&n>s&&(n=s);for(var a=0;a<n;++a){var b=y[a].replace(u,"%20"),p=b.indexOf(f),m,A,T,x;p>=0?(m=b.substr(0,p),A=b.substr(p+1)):(m=b,A=""),T=decodeURIComponent(m),x=decodeURIComponent(A),i(r,T)?t(r[T])?r[T].push(x):r[T]=[r[T],x]:r[T]=x}return r};var t=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],211:[function(e,_,l){"use strict";var i=function(d){switch(typeof d){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}};_.exports=function(f,d,r,u){return d=d||"&",r=r||"=",f===null&&(f=void 0),typeof f=="object"?y(c(f),function(s){var n=encodeURIComponent(i(s))+r;return t(f[s])?y(f[s],function(a){return n+encodeURIComponent(i(a))}).join(d):n+encodeURIComponent(i(f[s]))}).join(d):u?encodeURIComponent(i(u))+r+encodeURIComponent(i(f)):""};var t=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function y(f,d){if(f.map)return f.map(d);for(var r=[],u=0;u<f.length;u++)r.push(d(f[u],u));return r}var c=Object.keys||function(f){var d=[];for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&d.push(r);return d}},{}],212:[function(e,_,l){"use strict";l.decode=l.parse=e("./decode"),l.encode=l.stringify=e("./encode")},{"./decode":210,"./encode":211}],213:[function(e,_,l){_.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=f(i),y=e("babel-runtime/core-js/object/keys"),c=f(y);function f(x){return x&&x.__esModule?x:{default:x}}var d=e("process-nextick-args"),r=c.default||function(x){var E=[];for(var M in x)E.push(M);return E};_.exports=m;var u=(0,t.default)(e("core-util-is"));u.inherits=e("inherits");var s=e("./_stream_readable"),n=e("./_stream_writable");u.inherits(m,s);for(var a=r(n.prototype),b=0;b<a.length;b++){var p=a[b];m.prototype[p]||(m.prototype[p]=n.prototype[p])}function m(x){if(!(this instanceof m))return new m(x);s.call(this,x),n.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",A)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(){if(this.allowHalfOpen||this._writableState.ended)return;d.nextTick(T,this)}function T(x){x.end()}Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=E,this._writableState.destroyed=E}}),m.prototype._destroy=function(x,E){this.push(null),this.end(),d.nextTick(E,x)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(r){return r&&r.__esModule?r:{default:r}}_.exports=d;var c=e("./_stream_transform"),f=(0,t.default)(e("core-util-is"));f.inherits=e("inherits"),f.inherits(d,c);function d(r){if(!(this instanceof d))return new d(r);c.call(this,r)}d.prototype._transform=function(r,u,s){s(null,r)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(e,_,l){(function(i,t){"use strict";var y=e("babel-runtime/core-js/object/get-prototype-of"),c=r(y),f=e("babel-runtime/core-js/object/create"),d=r(f);function r(H){return H&&H.__esModule?H:{default:H}}var u=e("process-nextick-args");_.exports=R;var s=e("isarray"),n;R.ReadableState=I;var a=e("events").EventEmitter,b=function(U,J){return U.listeners(J).length},p=e("./internal/streams/stream"),m=e("safe-buffer").Buffer,A=t.Uint8Array||function(){};function T(H){return m.from(H)}function x(H){return m.isBuffer(H)||H instanceof A}var E=(0,d.default)(e("core-util-is"));E.inherits=e("inherits");var M=e("util"),O=void 0;M&&M.debuglog?O=M.debuglog("stream"):O=function(){};var S=e("./internal/streams/BufferList"),w=e("./internal/streams/destroy"),h;E.inherits(R,p);var L=["error","close","destroy","pause","resume"];function C(H,U,J){if(typeof H.prependListener=="function")return H.prependListener(U,J);!H._events||!H._events[U]?H.on(U,J):s(H._events[U])?H._events[U].unshift(J):H._events[U]=[J,H._events[U]]}function I(H,U){n=n||e("./_stream_duplex"),H=H||{};var J=U instanceof n;this.objectMode=!!H.objectMode,J&&(this.objectMode=this.objectMode||!!H.readableObjectMode);var N=H.highWaterMark,g=H.readableHighWaterMark,o=this.objectMode?16:16*1024;N||N===0?this.highWaterMark=N:J&&(g||g===0)?this.highWaterMark=g:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,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=H.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,H.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(H.encoding),this.encoding=H.encoding)}function R(H){if(n=n||e("./_stream_duplex"),!(this instanceof R))return new R(H);this._readableState=new I(H,this),this.readable=!0,H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy)),p.call(this)}Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){if(!this._readableState)return;this._readableState.destroyed=U}}),R.prototype.destroy=w.destroy,R.prototype._undestroy=w.undestroy,R.prototype._destroy=function(H,U){this.push(null),U(H)},R.prototype.push=function(H,U){var J=this._readableState,N;return J.objectMode?N=!0:typeof H=="string"&&(U=U||J.defaultEncoding,U!==J.encoding&&(H=m.from(H,U),U=""),N=!0),B(this,H,U,!1,N)},R.prototype.unshift=function(H){return B(this,H,null,!0,!1)};function B(H,U,J,N,g){var o=H._readableState;if(U===null)o.reading=!1,j(H,o);else{var v;g||(v=P(o,U)),v?H.emit("error",v):o.objectMode||U&&U.length>0?(typeof U!="string"&&!o.objectMode&&(0,c.default)(U)!==m.prototype&&(U=T(U)),N?o.endEmitted?H.emit("error",new Error("stream.unshift() after end event")):G(H,o,U,!0):o.ended?H.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!J?(U=o.decoder.write(U),o.objectMode||U.length!==0?G(H,o,U,!1):Z(H,o)):G(H,o,U,!1))):N||(o.reading=!1)}return oe(o)}function G(H,U,J,N){U.flowing&&U.length===0&&!U.sync?(H.emit("data",J),H.read(0)):(U.length+=U.objectMode?1:J.length,N?U.buffer.unshift(J):U.buffer.push(J),U.needReadable&&F(H)),Z(H,U)}function P(H,U){var J;return!x(U)&&typeof U!="string"&&U!==void 0&&!H.objectMode&&(J=new TypeError("Invalid non-string/buffer chunk")),J}function oe(H){return!H.ended&&(H.needReadable||H.length<H.highWaterMark||H.length===0)}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(H){return h||(h=e("string_decoder/").StringDecoder),this._readableState.decoder=new h(H),this._readableState.encoding=H,this};var z=8388608;function te(H){return H>=z?H=z:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}function Y(H,U){return H<=0||U.length===0&&U.ended?0:U.objectMode?1:H!==H?U.flowing&&U.length?U.buffer.head.data.length:U.length:(H>U.highWaterMark&&(U.highWaterMark=te(H)),H<=U.length?H:U.ended?U.length:(U.needReadable=!0,0))}R.prototype.read=function(H){O("read",H),H=parseInt(H,10);var U=this._readableState,J=H;if(H!==0&&(U.emittedReadable=!1),H===0&&U.needReadable&&(U.length>=U.highWaterMark||U.ended))return O("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?$(this):F(this),null;if(H=Y(H,U),H===0&&U.ended)return U.length===0&&$(this),null;var N=U.needReadable;O("need readable",N),(U.length===0||U.length-H<U.highWaterMark)&&(N=!0,O("length less than watermark",N)),U.ended||U.reading?(N=!1,O("reading or ended",N)):N&&(O("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(H=Y(J,U)));var g;return H>0?g=q(H,U):g=null,g===null?(U.needReadable=!0,H=0):U.length-=H,U.length===0&&(U.ended||(U.needReadable=!0),J!==H&&U.ended&&$(this)),g!==null&&this.emit("data",g),g};function j(H,U){if(U.ended)return;if(U.decoder){var J=U.decoder.end();J&&J.length&&(U.buffer.push(J),U.length+=U.objectMode?1:J.length)}U.ended=!0,F(H)}function F(H){var U=H._readableState;U.needReadable=!1,U.emittedReadable||(O("emitReadable",U.flowing),U.emittedReadable=!0,U.sync?u.nextTick(V,H):V(H))}function V(H){O("emit readable"),H.emit("readable"),fe(H)}function Z(H,U){U.readingMore||(U.readingMore=!0,u.nextTick(k,H,U))}function k(H,U){for(var J=U.length;!U.reading&&!U.flowing&&!U.ended&&U.length<U.highWaterMark&&!(O("maybeReadMore read 0"),H.read(0),J===U.length);)J=U.length;U.readingMore=!1}R.prototype._read=function(H){this.emit("error",new Error("_read() is not implemented"))},R.prototype.pipe=function(H,U){var J=this,N=this._readableState;switch(N.pipesCount){case 0:N.pipes=H;break;case 1:N.pipes=[N.pipes,H];break;default:N.pipes.push(H);break}N.pipesCount+=1,O("pipe count=%d opts=%j",N.pipesCount,U);var g=(!U||U.end!==!1)&&H!==i.stdout&&H!==i.stderr,o=g?K:Oe;N.endEmitted?u.nextTick(o):J.once("end",o),H.on("unpipe",v);function v(me,be){O("onunpipe"),me===J&&(be&&be.hasUnpiped===!1&&(be.hasUnpiped=!0,de()))}function K(){O("onend"),H.end()}var W=ee(J);H.on("drain",W);var re=!1;function de(){O("cleanup"),H.removeListener("close",Ee),H.removeListener("finish",_e),H.removeListener("drain",W),H.removeListener("error",ve),H.removeListener("unpipe",v),J.removeListener("end",K),J.removeListener("end",Oe),J.removeListener("data",ye),re=!0,N.awaitDrain&&(!H._writableState||H._writableState.needDrain)&&W()}var ge=!1;J.on("data",ye);function ye(me){O("ondata"),ge=!1;var be=H.write(me);be===!1&&!ge&&((N.pipesCount===1&&N.pipes===H||N.pipesCount>1&&se(N.pipes,H)!==-1)&&!re&&(O("false write response, pause",J._readableState.awaitDrain),J._readableState.awaitDrain++,ge=!0),J.pause())}function ve(me){O("onerror",me),Oe(),H.removeListener("error",ve),b(H,"error")===0&&H.emit("error",me)}C(H,"error",ve);function Ee(){H.removeListener("finish",_e),Oe()}H.once("close",Ee);function _e(){O("onfinish"),H.removeListener("close",Ee),Oe()}H.once("finish",_e);function Oe(){O("unpipe"),J.unpipe(H)}return H.emit("pipe",J),N.flowing||(O("pipe resume"),J.resume()),H};function ee(H){return function(){var U=H._readableState;O("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&b(H,"data")&&(U.flowing=!0,fe(H))}}R.prototype.unpipe=function(H){var U=this._readableState,J={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return H&&H!==U.pipes?this:(H||(H=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,H&&H.emit("unpipe",this,J),this);if(!H){var N=U.pipes,g=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var o=0;o<g;o++)N[o].emit("unpipe",this,J);return this}var v=se(U.pipes,H);return v===-1?this:(U.pipes.splice(v,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),H.emit("unpipe",this,J),this)},R.prototype.on=function(H,U){var J=p.prototype.on.call(this,H,U);if(H==="data")this._readableState.flowing!==!1&&this.resume();else if(H==="readable"){var N=this._readableState;!N.endEmitted&&!N.readableListening&&(N.readableListening=N.needReadable=!0,N.emittedReadable=!1,N.reading?N.length&&F(this):u.nextTick(ae,this))}return J},R.prototype.addListener=R.prototype.on;function ae(H){O("readable nexttick read 0"),H.read(0)}R.prototype.resume=function(){var H=this._readableState;return H.flowing||(O("resume"),H.flowing=!0,ne(this,H)),this};function ne(H,U){U.resumeScheduled||(U.resumeScheduled=!0,u.nextTick(le,H,U))}function le(H,U){U.reading||(O("resume read 0"),H.read(0)),U.resumeScheduled=!1,U.awaitDrain=0,H.emit("resume"),fe(H),U.flowing&&!U.reading&&H.read(0)}R.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function fe(H){var U=H._readableState;for(O("flow",U.flowing);U.flowing&&H.read()!==null;);}R.prototype.wrap=function(H){var U=this,J=this._readableState,N=!1;H.on("end",function(){if(O("wrapped end"),J.decoder&&!J.ended){var v=J.decoder.end();v&&v.length&&U.push(v)}U.push(null)}),H.on("data",function(v){if(O("wrapped data"),J.decoder&&(v=J.decoder.write(v)),J.objectMode&&v==null)return;if(!J.objectMode&&(!v||!v.length))return;var K=U.push(v);K||(N=!0,H.pause())});for(var g in H)this[g]===void 0&&typeof H[g]=="function"&&(this[g]=function(v){return function(){return H[v].apply(H,arguments)}}(g));for(var o=0;o<L.length;o++)H.on(L[o],this.emit.bind(this,L[o]));return this._read=function(v){O("wrapped _read",v),N&&(N=!1,H.resume())},this},Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),R._fromList=q;function q(H,U){if(U.length===0)return null;var J;return U.objectMode?J=U.buffer.shift():!H||H>=U.length?(U.decoder?J=U.buffer.join(""):U.buffer.length===1?J=U.buffer.head.data:J=U.buffer.concat(U.length),U.buffer.clear()):J=pe(H,U.buffer,U.decoder),J}function pe(H,U,J){var N;return H<U.head.data.length?(N=U.head.data.slice(0,H),U.head.data=U.head.data.slice(H)):H===U.head.data.length?N=U.shift():N=J?D(H,U):X(H,U),N}function D(H,U){var J=U.head,N=1,g=J.data;for(H-=g.length;J=J.next;){var o=J.data,v=H>o.length?o.length:H;if(v===o.length?g+=o:g+=o.slice(0,H),H-=v,H===0){v===o.length?(++N,J.next?U.head=J.next:U.head=U.tail=null):(U.head=J,J.data=o.slice(v));break}++N}return U.length-=N,g}function X(H,U){var J=m.allocUnsafe(H),N=U.head,g=1;for(N.data.copy(J),H-=N.data.length;N=N.next;){var o=N.data,v=H>o.length?o.length:H;if(o.copy(J,J.length-H,0,v),H-=v,H===0){v===o.length?(++g,N.next?U.head=N.next:U.head=U.tail=null):(U.head=N,N.data=o.slice(v));break}++g}return U.length-=g,J}function $(H){var U=H._readableState;if(U.length>0)throw new Error('"endReadable()" called on non-empty stream');U.endEmitted||(U.ended=!0,u.nextTick(Q,U,H))}function Q(H,U){!H.endEmitted&&H.length===0&&(H.endEmitted=!0,U.readable=!1,U.emit("end"))}function se(H,U){for(var J=0,N=H.length;J<N;J++)if(H[J]===U)return J;return-1}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(n){return n&&n.__esModule?n:{default:n}}_.exports=r;var c=e("./_stream_duplex"),f=(0,t.default)(e("core-util-is"));f.inherits=e("inherits"),f.inherits(r,c);function d(n,a){var b=this._transformState;b.transforming=!1;var p=b.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));b.writechunk=null,b.writecb=null,a!=null&&this.push(a),p(n);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function r(n){if(!(this instanceof r))return new r(n);c.call(this,n),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",u)}function u(){var n=this;typeof this._flush=="function"?this._flush(function(a,b){s(n,a,b)}):s(this,null,null)}r.prototype.push=function(n,a){return this._transformState.needTransform=!1,c.prototype.push.call(this,n,a)},r.prototype._transform=function(n,a,b){throw new Error("_transform() is not implemented")},r.prototype._write=function(n,a,b){var p=this._transformState;if(p.writecb=b,p.writechunk=n,p.writeencoding=a,!p.transforming){var m=this._readableState;(p.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},r.prototype._read=function(n){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},r.prototype._destroy=function(n,a){var b=this;c.prototype._destroy.call(this,n,function(p){a(p),b.emit("close")})};function s(n,a,b){if(a)return n.emit("error",a);if(b!=null&&n.push(b),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(e,_,l){(function(i,t){"use strict";var y=e("babel-runtime/core-js/object/define-property"),c=p(y),f=e("babel-runtime/core-js/symbol/has-instance"),d=p(f),r=e("babel-runtime/core-js/symbol"),u=p(r),s=e("babel-runtime/core-js/object/create"),n=p(s),a=e("babel-runtime/core-js/set-immediate"),b=p(a);function p(X){return X&&X.__esModule?X:{default:X}}var m=e("process-nextick-args");_.exports=P;function A(X,$,Q){this.chunk=X,this.encoding=$,this.callback=Q,this.next=null}function T(X){var $=this;this.next=null,this.entry=null,this.finish=function(){D($,X)}}var x=!i.browser&&["v0.10","v0.9."].indexOf(i.version.slice(0,5))>-1?b.default:m.nextTick,E;P.WritableState=B;var M=(0,n.default)(e("core-util-is"));M.inherits=e("inherits");var O={deprecate:e("util-deprecate")},S=e("./internal/streams/stream"),w=e("safe-buffer").Buffer,h=t.Uint8Array||function(){};function L(X){return w.from(X)}function C(X){return w.isBuffer(X)||X instanceof h}var I=e("./internal/streams/destroy");M.inherits(P,S);function R(){}function B(X,$){E=E||e("./_stream_duplex"),X=X||{};var Q=$ instanceof E;this.objectMode=!!X.objectMode,Q&&(this.objectMode=this.objectMode||!!X.writableObjectMode);var se=X.highWaterMark,H=X.writableHighWaterMark,U=this.objectMode?16:16*1024;se||se===0?this.highWaterMark=se:Q&&(H||H===0)?this.highWaterMark=H:this.highWaterMark=U,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 J=X.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){Z($,N)},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 T(this)}B.prototype.getBuffer=function(){for(var $=this.bufferedRequest,Q=[];$;)Q.push($),$=$.next;return Q},function(){try{Object.defineProperty(B.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(X){}}();var G;typeof u.default=="function"&&d.default&&typeof Function.prototype[d.default]=="function"?(G=Function.prototype[d.default],(0,c.default)(P,d.default,{value:function($){return G.call(this,$)?!0:this!==P?!1:$&&$._writableState instanceof B}})):G=function($){return $ instanceof this};function P(X){if(E=E||e("./_stream_duplex"),!G.call(P,this)&&!(this instanceof E))return new P(X);this._writableState=new B(X,this),this.writable=!0,X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final)),S.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function oe(X,$){var Q=new Error("write after end");X.emit("error",Q),m.nextTick($,Q)}function z(X,$,Q,se){var H=!0,U=!1;return Q===null?U=new TypeError("May not write null values to stream"):typeof Q!="string"&&Q!==void 0&&!$.objectMode&&(U=new TypeError("Invalid non-string/buffer chunk")),U&&(X.emit("error",U),m.nextTick(se,U),H=!1),H}P.prototype.write=function(X,$,Q){var se=this._writableState,H=!1,U=!se.objectMode&&C(X);return U&&!w.isBuffer(X)&&(X=L(X)),typeof $=="function"&&(Q=$,$=null),U?$="buffer":$||($=se.defaultEncoding),typeof Q!="function"&&(Q=R),se.ended?oe(this,Q):(U||z(this,se,X,Q))&&(se.pendingcb++,H=Y(this,se,U,X,$,Q)),H},P.prototype.cork=function(){var X=this._writableState;X.corked++},P.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.finished&&!X.bufferProcessing&&X.bufferedRequest&&ae(this,X))},P.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+$);return this._writableState.defaultEncoding=$,this};function te(X,$,Q){return!X.objectMode&&X.decodeStrings!==!1&&typeof $=="string"&&($=w.from($,Q)),$}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(X,$,Q,se,H,U){if(!Q){var J=te($,se,H);se!==J&&(Q=!0,H="buffer",se=J)}var N=$.objectMode?1:se.length;$.length+=N;var g=$.length<$.highWaterMark;if(g||($.needDrain=!0),$.writing||$.corked){var o=$.lastBufferedRequest;$.lastBufferedRequest={chunk:se,encoding:H,isBuf:Q,callback:U,next:null},o?o.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else j(X,$,!1,N,se,H,U);return g}function j(X,$,Q,se,H,U,J){$.writelen=se,$.writecb=J,$.writing=!0,$.sync=!0,Q?X._writev(H,$.onwrite):X._write(H,U,$.onwrite),$.sync=!1}function F(X,$,Q,se,H){--$.pendingcb,Q?(m.nextTick(H,se),m.nextTick(q,X,$),X._writableState.errorEmitted=!0,X.emit("error",se)):(H(se),X._writableState.errorEmitted=!0,X.emit("error",se),q(X,$))}function V(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function Z(X,$){var Q=X._writableState,se=Q.sync,H=Q.writecb;if(V(Q),$)F(X,Q,se,$,H);else{var U=ne(Q);!U&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&ae(X,Q),se?x(k,X,Q,U,H):k(X,Q,U,H)}}function k(X,$,Q,se){Q||ee(X,$),$.pendingcb--,se(),q(X,$)}function ee(X,$){$.length===0&&$.needDrain&&($.needDrain=!1,X.emit("drain"))}function ae(X,$){$.bufferProcessing=!0;var Q=$.bufferedRequest;if(X._writev&&Q&&Q.next){var se=$.bufferedRequestCount,H=new Array(se),U=$.corkedRequestsFree;U.entry=Q;for(var J=0,N=!0;Q;)H[J]=Q,Q.isBuf||(N=!1),Q=Q.next,J+=1;H.allBuffers=N,j(X,$,!0,$.length,H,"",U.finish),$.pendingcb++,$.lastBufferedRequest=null,U.next?($.corkedRequestsFree=U.next,U.next=null):$.corkedRequestsFree=new T($),$.bufferedRequestCount=0}else{for(;Q;){var g=Q.chunk,o=Q.encoding,v=Q.callback,K=$.objectMode?1:g.length;if(j(X,$,!1,K,g,o,v),Q=Q.next,$.bufferedRequestCount--,$.writing)break}Q===null&&($.lastBufferedRequest=null)}$.bufferedRequest=Q,$.bufferProcessing=!1}P.prototype._write=function(X,$,Q){Q(new Error("_write() is not implemented"))},P.prototype._writev=null,P.prototype.end=function(X,$,Q){var se=this._writableState;typeof X=="function"?(Q=X,X=null,$=null):typeof $=="function"&&(Q=$,$=null),X!=null&&this.write(X,$),se.corked&&(se.corked=1,this.uncork()),!se.ending&&!se.finished&&pe(this,se,Q)};function ne(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function le(X,$){X._final(function(Q){$.pendingcb--,Q&&X.emit("error",Q),$.prefinished=!0,X.emit("prefinish"),q(X,$)})}function fe(X,$){!$.prefinished&&!$.finalCalled&&(typeof X._final=="function"?($.pendingcb++,$.finalCalled=!0,m.nextTick(le,X,$)):($.prefinished=!0,X.emit("prefinish")))}function q(X,$){var Q=ne($);return Q&&(fe(X,$),$.pendingcb===0&&($.finished=!0,X.emit("finish"))),Q}function pe(X,$,Q){$.ending=!0,q(X,$),Q&&($.finished?m.nextTick(Q):X.once("finish",Q)),$.ended=!0,X.writable=!1}function D(X,$,Q){var se=X.entry;for(X.entry=null;se;){var H=se.callback;$.pendingcb--,H(Q),se=se.next}$.corkedRequestsFree?$.corkedRequestsFree.next=X:$.corkedRequestsFree=X}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){if(!this._writableState)return;this._writableState.destroyed=$}}),P.prototype.destroy=I.destroy,P.prototype._undestroy=I.undestroy,P.prototype._destroy=function(X,$){this.end(),$(X)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,_,l){"use strict";function i(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var t=e("safe-buffer").Buffer,y=e("util");function c(f,d,r){f.copy(d,r)}_.exports=function(){function f(){i(this,f),this.head=null,this.tail=null,this.length=0}return f.prototype.push=function(r){var u={data:r,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},f.prototype.unshift=function(r){var u={data:r,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},f.prototype.shift=function(){if(this.length===0)return;var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(r){if(this.length===0)return"";for(var u=this.head,s=""+u.data;u=u.next;)s+=r+u.data;return s},f.prototype.concat=function(r){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var u=t.allocUnsafe(r>>>0),s=this.head,n=0;s;)c(s.data,u,n),n+=s.data.length,s=s.next;return u},f}(),y&&y.inspect&&y.inspect.custom&&(_.exports.prototype[y.inspect.custom]=function(){var f=y.inspect({length:this.length});return this.constructor.name+" "+f})},{"safe-buffer":228,util:71}],220:[function(e,_,l){"use strict";var i=e("process-nextick-args");function t(f,d){var r=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(d?d(f):f&&(!this._writableState||!this._writableState.errorEmitted)&&i.nextTick(c,this,f),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(n){!d&&n?(i.nextTick(c,r,n),r._writableState&&(r._writableState.errorEmitted=!0)):d&&d(n)}),this)}function y(){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 c(f,d){f.emit("error",d)}_.exports={destroy:t,undestroy:y}},{"process-nextick-args":207}],221:[function(e,_,l){"use strict";_.exports=e("events").EventEmitter},{events:192}],222:[function(e,_,l){_.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,_,l){l=_.exports=e("./lib/_stream_readable.js"),l.Stream=l,l.Readable=l,l.Writable=e("./lib/_stream_writable.js"),l.Duplex=e("./lib/_stream_duplex.js"),l.Transform=e("./lib/_stream_transform.js"),l.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,_,l){_.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,_,l){_.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,_,l){var i=function(){return this}()||Function("return this")(),t=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,y=t&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,_.exports=e("./runtime"),t)i.regeneratorRuntime=y;else try{delete i.regeneratorRuntime}catch(c){i.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,_,l){!function(i){"use strict";var t=Object.prototype,y=t.hasOwnProperty,c,f=typeof Symbol=="function"?Symbol:{},d=f.iterator||"@@iterator",r=f.asyncIterator||"@@asyncIterator",u=f.toStringTag||"@@toStringTag",s=typeof _=="object",n=i.regeneratorRuntime;if(n){s&&(_.exports=n);return}n=i.regeneratorRuntime=s?_.exports:{};function a(Y,j,F,V){var Z=j&&j.prototype instanceof E?j:E,k=Object.create(Z.prototype),ee=new oe(V||[]);return k._invoke=R(Y,F,ee),k}n.wrap=a;function b(Y,j,F){try{return{type:"normal",arg:Y.call(j,F)}}catch(V){return{type:"throw",arg:V}}}var p="suspendedStart",m="suspendedYield",A="executing",T="completed",x={};function E(){}function M(){}function O(){}var S={};S[d]=function(){return this};var w=Object.getPrototypeOf,h=w&&w(w(z([])));h&&h!==t&&y.call(h,d)&&(S=h);var L=O.prototype=E.prototype=Object.create(S);M.prototype=L.constructor=O,O.constructor=M,O[u]=M.displayName="GeneratorFunction";function C(Y){["next","throw","return"].forEach(function(j){Y[j]=function(F){return this._invoke(j,F)}})}n.isGeneratorFunction=function(Y){var j=typeof Y=="function"&&Y.constructor;return j?j===M||(j.displayName||j.name)==="GeneratorFunction":!1},n.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,O):(Y.__proto__=O,u in Y||(Y[u]="GeneratorFunction")),Y.prototype=Object.create(L),Y},n.awrap=function(Y){return{__await:Y}};function I(Y){function j(Z,k,ee,ae){var ne=b(Y[Z],Y,k);if(ne.type==="throw")ae(ne.arg);else{var le=ne.arg,fe=le.value;return fe&&typeof fe=="object"&&y.call(fe,"__await")?Promise.resolve(fe.__await).then(function(q){j("next",q,ee,ae)},function(q){j("throw",q,ee,ae)}):Promise.resolve(fe).then(function(q){le.value=q,ee(le)},ae)}}var F;function V(Z,k){function ee(){return new Promise(function(ae,ne){j(Z,k,ae,ne)})}return F=F?F.then(ee,ee):ee()}this._invoke=V}C(I.prototype),I.prototype[r]=function(){return this},n.AsyncIterator=I,n.async=function(Y,j,F,V){var Z=new I(a(Y,j,F,V));return n.isGeneratorFunction(j)?Z:Z.next().then(function(k){return k.done?k.value:Z.next()})};function R(Y,j,F){var V=p;return function(k,ee){if(V===A)throw new Error("Generator is already running");if(V===T){if(k==="throw")throw ee;return te()}for(F.method=k,F.arg=ee;;){var ae=F.delegate;if(ae){var ne=B(ae,F);if(ne){if(ne===x)continue;return ne}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V===p)throw V=T,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V=A;var le=b(Y,j,F);if(le.type==="normal"){if(V=F.done?T:m,le.arg===x)continue;return{value:le.arg,done:F.done}}else le.type==="throw"&&(V=T,F.method="throw",F.arg=le.arg)}}}function B(Y,j){var F=Y.iterator[j.method];if(F===c){if(j.delegate=null,j.method==="throw"){if(Y.iterator.return&&(j.method="return",j.arg=c,B(Y,j),j.method==="throw"))return x;j.method="throw",j.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var V=b(F,Y.iterator,j.arg);if(V.type==="throw")return j.method="throw",j.arg=V.arg,j.delegate=null,x;var Z=V.arg;if(!Z)return j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,x;if(Z.done)j[Y.resultName]=Z.value,j.next=Y.nextLoc,j.method!=="return"&&(j.method="next",j.arg=c);else return Z;return j.delegate=null,x}C(L),L[u]="Generator",L[d]=function(){return this},L.toString=function(){return"[object Generator]"};function G(Y){var j={tryLoc:Y[0]};1 in Y&&(j.catchLoc=Y[1]),2 in Y&&(j.finallyLoc=Y[2],j.afterLoc=Y[3]),this.tryEntries.push(j)}function P(Y){var j=Y.completion||{};j.type="normal",delete j.arg,Y.completion=j}function oe(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(G,this),this.reset(!0)}n.keys=function(Y){var j=[];for(var F in Y)j.push(F);return j.reverse(),function V(){for(;j.length;){var Z=j.pop();if(Z in Y)return V.value=Z,V.done=!1,V}return V.done=!0,V}};function z(Y){if(Y){var j=Y[d];if(j)return j.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var F=-1,V=function Z(){for(;++F<Y.length;)if(y.call(Y,F))return Z.value=Y[F],Z.done=!1,Z;return Z.value=c,Z.done=!0,Z};return V.next=V}}return{next:te}}n.values=z;function te(){return{value:c,done:!0}}oe.prototype={constructor:oe,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(P),!j)for(var F in this)F.charAt(0)==="t"&&y.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=c)},stop:function(){this.done=!0;var j=this.tryEntries[0],F=j.completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var F=this;function V(le,fe){return ee.type="throw",ee.arg=j,F.next=le,fe&&(F.method="next",F.arg=c),!!fe}for(var Z=this.tryEntries.length-1;Z>=0;--Z){var k=this.tryEntries[Z],ee=k.completion;if(k.tryLoc==="root")return V("end");if(k.tryLoc<=this.prev){var ae=y.call(k,"catchLoc"),ne=y.call(k,"finallyLoc");if(ae&&ne){if(this.prev<k.catchLoc)return V(k.catchLoc,!0);if(this.prev<k.finallyLoc)return V(k.finallyLoc)}else if(ae){if(this.prev<k.catchLoc)return V(k.catchLoc,!0)}else if(ne){if(this.prev<k.finallyLoc)return V(k.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(j,F){for(var V=this.tryEntries.length-1;V>=0;--V){var Z=this.tryEntries[V];if(Z.tryLoc<=this.prev&&y.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var k=Z;break}}k&&(j==="break"||j==="continue")&&k.tryLoc<=F&&F<=k.finallyLoc&&(k=null);var ee=k?k.completion:{};return ee.type=j,ee.arg=F,k?(this.method="next",this.next=k.finallyLoc,x):this.complete(ee)},complete:function(j,F){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&F&&(this.next=F),x},finish:function(j){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.finallyLoc===j)return this.complete(V.completion,V.afterLoc),P(V),x}},catch:function(j){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc===j){var Z=V.completion;if(Z.type==="throw"){var k=Z.arg;P(V)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(j,F,V){return this.delegate={iterator:z(j),resultName:F,nextLoc:V},this.method==="next"&&(this.arg=c),x}}}(function(){return this}()||Function("return this")())},{}],228:[function(e,_,l){var i=e("buffer"),t=i.Buffer;function y(f,d){for(var r in f)d[r]=f[r]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?_.exports=i:(y(i,l),l.Buffer=c);function c(f,d,r){return t(f,d,r)}y(t,c),c.from=function(f,d,r){if(typeof f=="number")throw new TypeError("Argument must not be a number");return t(f,d,r)},c.alloc=function(f,d,r){if(typeof f!="number")throw new TypeError("Argument must be a number");var u=t(f);return d!==void 0?typeof r=="string"?u.fill(d,r):u.fill(d):u.fill(0),u},c.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return t(f)},c.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(f)}},{buffer:73}],229:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/core-js/string/from-code-point"),y=m(t),c=e("babel-runtime/core-js/json/stringify"),f=m(c),d=e("babel-runtime/helpers/typeof"),r=m(d),u=e("babel-runtime/core-js/object/define-property"),s=m(u),n=e("babel-runtime/core-js/object/keys"),a=m(n),b=e("babel-runtime/core-js/object/create"),p=m(b);function m(A){return A&&A.__esModule?A:{default:A}}(function(A){A.parser=function(o,v){return new x(o,v)},A.SAXParser=x,A.SAXStream=L,A.createStream=h,A.MAX_BUFFER_LENGTH=64*1024;var T=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];A.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function x(o,v){if(!(this instanceof x))return new x(o,v);var K=this;M(K),K.q=K.c="",K.bufferCheckPosition=A.MAX_BUFFER_LENGTH,K.opt=v||{},K.opt.lowercase=K.opt.lowercase||K.opt.lowercasetags,K.looseCase=K.opt.lowercase?"toLowerCase":"toUpperCase",K.tags=[],K.closed=K.closedRoot=K.sawRoot=!1,K.tag=K.error=null,K.strict=!!o,K.noscript=!!(o||K.opt.noscript),K.state=k.BEGIN,K.strictEntities=K.opt.strictEntities,K.ENTITIES=K.strictEntities?(0,p.default)(A.XML_ENTITIES):(0,p.default)(A.ENTITIES),K.attribList=[],K.opt.xmlns&&(K.ns=(0,p.default)(G)),K.trackPosition=K.opt.position!==!1,K.trackPosition&&(K.position=K.line=K.column=0),ae(K,"onready")}p.default||(Object.create=function(o){function v(){}v.prototype=o;var K=new v;return K}),a.default||(Object.keys=function(o){var v=[];for(var K in o)o.hasOwnProperty(K)&&v.push(K);return v});function E(o){for(var v=Math.max(A.MAX_BUFFER_LENGTH,10),K=0,W=0,re=T.length;W<re;W++){var de=o[T[W]].length;if(de>v)switch(T[W]){case"textNode":le(o);break;case"cdata":ne(o,"oncdata",o.cdata),o.cdata="";break;case"script":ne(o,"onscript",o.script),o.script="";break;default:q(o,"Max buffer length exceeded: "+T[W])}K=Math.max(K,de)}var ge=A.MAX_BUFFER_LENGTH-K;o.bufferCheckPosition=ge+o.position}function M(o){for(var v=0,K=T.length;v<K;v++)o[T[v]]=""}function O(o){le(o),o.cdata!==""&&(ne(o,"oncdata",o.cdata),o.cdata=""),o.script!==""&&(ne(o,"onscript",o.script),o.script="")}x.prototype={end:function(){pe(this)},write:g,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){O(this)}};var S;try{S=e("stream").Stream}catch(o){S=function(){}}var w=A.EVENTS.filter(function(o){return o!=="error"&&o!=="end"});function h(o,v){return new L(o,v)}function L(o,v){if(!(this instanceof L))return new L(o,v);S.apply(this),this._parser=new x(o,v),this.writable=!0,this.readable=!0;var K=this;this._parser.onend=function(){K.emit("end")},this._parser.onerror=function(W){K.emit("error",W),K._parser.error=null},this._decoder=null,w.forEach(function(W){(0,s.default)(K,"on"+W,{get:function(){return K._parser["on"+W]},set:function(de){if(!de)return K.removeAllListeners(W),K._parser["on"+W]=de,de;K.on(W,de)},enumerable:!0,configurable:!1})})}L.prototype=(0,p.default)(S.prototype,{constructor:{value:L}}),L.prototype.write=function(o){if(typeof i=="function"&&typeof i.isBuffer=="function"&&i.isBuffer(o)){if(!this._decoder){var v=e("string_decoder").StringDecoder;this._decoder=new v("utf8")}o=this._decoder.write(o)}return this._parser.write(o.toString()),this.emit("data",o),!0},L.prototype.end=function(o){return o&&o.length&&this.write(o),this._parser.end(),!0},L.prototype.on=function(o,v){var K=this;return!K._parser["on"+o]&&w.indexOf(o)!==-1&&(K._parser["on"+o]=function(){var W=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,o),K.emit.apply(K,W)}),S.prototype.on.call(K,o,v)};var C="[CDATA[",I="DOCTYPE",R="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",G={xml:R,xmlns:B},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]/,oe=/[:_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-]/,z=/[#:_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]/,te=/[#:_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-]/;function Y(o){return o===" "||o===`
|
|
|
`||o==="\r"||o===" "}function j(o){return o==='"'||o==="'"}function F(o){return o===">"||Y(o)}function V(o,v){return o.test(v)}function Z(o,v){return!V(o,v)}var k=0;A.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},A.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},A.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,a.default)(A.ENTITIES).forEach(function(o){var v=A.ENTITIES[o],K=typeof v=="number"?String.fromCharCode(v):v;A.ENTITIES[o]=K});for(var ee in A.STATE)A.STATE[A.STATE[ee]]=ee;k=A.STATE;function ae(o,v,K){o[v]&&o[v](K)}function ne(o,v,K){o.textNode&&le(o),ae(o,v,K)}function le(o){o.textNode=fe(o.opt,o.textNode),o.textNode&&ae(o,"ontext",o.textNode),o.textNode=""}function fe(o,v){return o.trim&&(v=v.trim()),o.normalize&&(v=v.replace(/\s+/g," ")),v}function q(o,v){return le(o),o.trackPosition&&(v+=`
|
|
|
Line: `+o.line+`
|
|
|
Column: `+o.column+`
|
|
|
Char: `+o.c),v=new Error(v),o.error=v,ae(o,"onerror",v),o}function pe(o){return o.sawRoot&&!o.closedRoot&&D(o,"Unclosed root tag"),o.state!==k.BEGIN&&o.state!==k.BEGIN_WHITESPACE&&o.state!==k.TEXT&&q(o,"Unexpected end"),le(o),o.c="",o.closed=!0,ae(o,"onend"),x.call(o,o.strict,o.opt),o}function D(o,v){if((typeof o=="undefined"?"undefined":(0,r.default)(o))!=="object"||!(o instanceof x))throw new Error("bad call to strictFail");o.strict&&q(o,v)}function X(o){o.strict||(o.tagName=o.tagName[o.looseCase]());var v=o.tags[o.tags.length-1]||o,K=o.tag={name:o.tagName,attributes:{}};o.opt.xmlns&&(K.ns=v.ns),o.attribList.length=0,ne(o,"onopentagstart",K)}function $(o,v){var K=o.indexOf(":"),W=K<0?["",o]:o.split(":"),re=W[0],de=W[1];return v&&o==="xmlns"&&(re="xmlns",de=""),{prefix:re,local:de}}function Q(o){if(o.strict||(o.attribName=o.attribName[o.looseCase]()),o.attribList.indexOf(o.attribName)!==-1||o.tag.attributes.hasOwnProperty(o.attribName)){o.attribName=o.attribValue="";return}if(o.opt.xmlns){var v=$(o.attribName,!0),K=v.prefix,W=v.local;if(K==="xmlns")if(W==="xml"&&o.attribValue!==R)D(o,"xml: prefix must be bound to "+R+`
|
|
|
Actual: `+o.attribValue);else if(W==="xmlns"&&o.attribValue!==B)D(o,"xmlns: prefix must be bound to "+B+`
|
|
|
Actual: `+o.attribValue);else{var re=o.tag,de=o.tags[o.tags.length-1]||o;re.ns===de.ns&&(re.ns=(0,p.default)(de.ns)),re.ns[W]=o.attribValue}o.attribList.push([o.attribName,o.attribValue])}else o.tag.attributes[o.attribName]=o.attribValue,ne(o,"onattribute",{name:o.attribName,value:o.attribValue});o.attribName=o.attribValue=""}function se(o,v){if(o.opt.xmlns){var K=o.tag,W=$(o.tagName);K.prefix=W.prefix,K.local=W.local,K.uri=K.ns[W.prefix]||"",K.prefix&&!K.uri&&(D(o,"Unbound namespace prefix: "+(0,f.default)(o.tagName)),K.uri=W.prefix);var re=o.tags[o.tags.length-1]||o;K.ns&&re.ns!==K.ns&&(0,a.default)(K.ns).forEach(function(Ce){ne(o,"onopennamespace",{prefix:Ce,uri:K.ns[Ce]})});for(var de=0,ge=o.attribList.length;de<ge;de++){var ye=o.attribList[de],ve=ye[0],Ee=ye[1],_e=$(ve,!0),Oe=_e.prefix,me=_e.local,be=Oe===""?"":K.ns[Oe]||"",Ue={name:ve,value:Ee,prefix:Oe,local:me,uri:be};Oe&&Oe!=="xmlns"&&!be&&(D(o,"Unbound namespace prefix: "+(0,f.default)(Oe)),Ue.uri=Oe),o.tag.attributes[ve]=Ue,ne(o,"onattribute",Ue)}o.attribList.length=0}o.tag.isSelfClosing=!!v,o.sawRoot=!0,o.tags.push(o.tag),ne(o,"onopentag",o.tag),v||(!o.noscript&&o.tagName.toLowerCase()==="script"?o.state=k.SCRIPT:o.state=k.TEXT,o.tag=null,o.tagName=""),o.attribName=o.attribValue="",o.attribList.length=0}function H(o){if(!o.tagName){D(o,"Weird empty close tag."),o.textNode+="</>",o.state=k.TEXT;return}if(o.script){if(o.tagName!=="script"){o.script+="</"+o.tagName+">",o.tagName="",o.state=k.SCRIPT;return}ne(o,"onscript",o.script),o.script=""}var v=o.tags.length,K=o.tagName;o.strict||(K=K[o.looseCase]());for(var W=K;v--;){var re=o.tags[v];if(re.name!==W)D(o,"Unexpected close tag");else break}if(v<0){D(o,"Unmatched closing tag: "+o.tagName),o.textNode+="</"+o.tagName+">",o.state=k.TEXT;return}o.tagName=K;for(var de=o.tags.length;de-- >v;){var ge=o.tag=o.tags.pop();o.tagName=o.tag.name,ne(o,"onclosetag",o.tagName);var ye={};for(var ve in ge.ns)ye[ve]=ge.ns[ve];var Ee=o.tags[o.tags.length-1]||o;o.opt.xmlns&&ge.ns!==Ee.ns&&(0,a.default)(ge.ns).forEach(function(_e){var Oe=ge.ns[_e];ne(o,"onclosenamespace",{prefix:_e,uri:Oe})})}v===0&&(o.closedRoot=!0),o.tagName=o.attribValue=o.attribName="",o.attribList.length=0,o.state=k.TEXT}function U(o){var v=o.entity,K=v.toLowerCase(),W,re="";return o.ENTITIES[v]?o.ENTITIES[v]:o.ENTITIES[K]?o.ENTITIES[K]:(v=K,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),W=parseInt(v,16),re=W.toString(16)):(v=v.slice(1),W=parseInt(v,10),re=W.toString(10))),v=v.replace(/^0+/,""),isNaN(W)||re.toLowerCase()!==v?(D(o,"Invalid character entity"),"&"+o.entity+";"):(0,y.default)(W))}function J(o,v){v==="<"?(o.state=k.OPEN_WAKA,o.startTagPosition=o.position):Y(v)||(D(o,"Non-whitespace before first tag."),o.textNode=v,o.state=k.TEXT)}function N(o,v){var K="";return v<o.length&&(K=o.charAt(v)),K}function g(o){var v=this;if(this.error)throw this.error;if(v.closed)return q(v,"Cannot write after close. Assign an onready handler.");if(o===null)return pe(v);(typeof o=="undefined"?"undefined":(0,r.default)(o))==="object"&&(o=o.toString());for(var K=0,W="";!(W=N(o,K++),v.c=W,!W);){v.trackPosition&&(v.position++,W===`
|
|
|
`?(v.line++,v.column=0):v.column++);switch(v.state){case k.BEGIN:if(v.state=k.BEGIN_WHITESPACE,W==="\uFEFF")continue;J(v,W);continue;case k.BEGIN_WHITESPACE:J(v,W);continue;case k.TEXT:if(v.sawRoot&&!v.closedRoot){for(var re=K-1;W&&W!=="<"&&W!=="&";)W=N(o,K++),W&&v.trackPosition&&(v.position++,W===`
|
|
|
`?(v.line++,v.column=0):v.column++);v.textNode+=o.substring(re,K-1)}W==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=k.OPEN_WAKA,v.startTagPosition=v.position):(!Y(W)&&(!v.sawRoot||v.closedRoot)&&D(v,"Text data outside of root node."),W==="&"?v.state=k.TEXT_ENTITY:v.textNode+=W);continue;case k.SCRIPT:W==="<"?v.state=k.SCRIPT_ENDING:v.script+=W;continue;case k.SCRIPT_ENDING:W==="/"?v.state=k.CLOSE_TAG:(v.script+="<"+W,v.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(W==="!")v.state=k.SGML_DECL,v.sgmlDecl="";else if(!Y(W))if(V(P,W))v.state=k.OPEN_TAG,v.tagName=W;else if(W==="/")v.state=k.CLOSE_TAG,v.tagName="";else if(W==="?")v.state=k.PROC_INST,v.procInstName=v.procInstBody="";else{if(D(v,"Unencoded <"),v.startTagPosition+1<v.position){var de=v.position-v.startTagPosition;W=new Array(de).join(" ")+W}v.textNode+="<"+W,v.state=k.TEXT}continue;case k.SGML_DECL:(v.sgmlDecl+W).toUpperCase()===C?(ne(v,"onopencdata"),v.state=k.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+W==="--"?(v.state=k.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+W).toUpperCase()===I?(v.state=k.DOCTYPE,(v.doctype||v.sawRoot)&&D(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):W===">"?(ne(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=k.TEXT):(j(W)&&(v.state=k.SGML_DECL_QUOTED),v.sgmlDecl+=W);continue;case k.SGML_DECL_QUOTED:W===v.q&&(v.state=k.SGML_DECL,v.q=""),v.sgmlDecl+=W;continue;case k.DOCTYPE:W===">"?(v.state=k.TEXT,ne(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=W,W==="["?v.state=k.DOCTYPE_DTD:j(W)&&(v.state=k.DOCTYPE_QUOTED,v.q=W));continue;case k.DOCTYPE_QUOTED:v.doctype+=W,W===v.q&&(v.q="",v.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:v.doctype+=W,W==="]"?v.state=k.DOCTYPE:j(W)&&(v.state=k.DOCTYPE_DTD_QUOTED,v.q=W);continue;case k.DOCTYPE_DTD_QUOTED:v.doctype+=W,W===v.q&&(v.state=k.DOCTYPE_DTD,v.q="");continue;case k.COMMENT:W==="-"?v.state=k.COMMENT_ENDING:v.comment+=W;continue;case k.COMMENT_ENDING:W==="-"?(v.state=k.COMMENT_ENDED,v.comment=fe(v.opt,v.comment),v.comment&&ne(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+W,v.state=k.COMMENT);continue;case k.COMMENT_ENDED:W!==">"?(D(v,"Malformed comment"),v.comment+="--"+W,v.state=k.COMMENT):v.state=k.TEXT;continue;case k.CDATA:W==="]"?v.state=k.CDATA_ENDING:v.cdata+=W;continue;case k.CDATA_ENDING:W==="]"?v.state=k.CDATA_ENDING_2:(v.cdata+="]"+W,v.state=k.CDATA);continue;case k.CDATA_ENDING_2:W===">"?(v.cdata&&ne(v,"oncdata",v.cdata),ne(v,"onclosecdata"),v.cdata="",v.state=k.TEXT):W==="]"?v.cdata+="]":(v.cdata+="]]"+W,v.state=k.CDATA);continue;case k.PROC_INST:W==="?"?v.state=k.PROC_INST_ENDING:Y(W)?v.state=k.PROC_INST_BODY:v.procInstName+=W;continue;case k.PROC_INST_BODY:if(!v.procInstBody&&Y(W))continue;W==="?"?v.state=k.PROC_INST_ENDING:v.procInstBody+=W;continue;case k.PROC_INST_ENDING:W===">"?(ne(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=k.TEXT):(v.procInstBody+="?"+W,v.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:V(oe,W)?v.tagName+=W:(X(v),W===">"?se(v):W==="/"?v.state=k.OPEN_TAG_SLASH:(Y(W)||D(v,"Invalid character in tag name"),v.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:W===">"?(se(v,!0),H(v)):(D(v,"Forward-slash in opening tag not followed by >"),v.state=k.ATTRIB);continue;case k.ATTRIB:if(Y(W))continue;W===">"?se(v):W==="/"?v.state=k.OPEN_TAG_SLASH:V(P,W)?(v.attribName=W,v.attribValue="",v.state=k.ATTRIB_NAME):D(v,"Invalid attribute name");continue;case k.ATTRIB_NAME:W==="="?v.state=k.ATTRIB_VALUE:W===">"?(D(v,"Attribute without value"),v.attribValue=v.attribName,Q(v),se(v)):Y(W)?v.state=k.ATTRIB_NAME_SAW_WHITE:V(oe,W)?v.attribName+=W:D(v,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(W==="=")v.state=k.ATTRIB_VALUE;else{if(Y(W))continue;D(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",ne(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",W===">"?se(v):V(P,W)?(v.attribName=W,v.state=k.ATTRIB_NAME):(D(v,"Invalid attribute name"),v.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(Y(W))continue;j(W)?(v.q=W,v.state=k.ATTRIB_VALUE_QUOTED):(D(v,"Unquoted attribute value"),v.state=k.ATTRIB_VALUE_UNQUOTED,v.attribValue=W);continue;case k.ATTRIB_VALUE_QUOTED:if(W!==v.q){W==="&"?v.state=k.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=W;continue}Q(v),v.q="",v.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:Y(W)?v.state=k.ATTRIB:W===">"?se(v):W==="/"?v.state=k.OPEN_TAG_SLASH:V(P,W)?(D(v,"No whitespace between attributes"),v.attribName=W,v.attribValue="",v.state=k.ATTRIB_NAME):D(v,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!F(W)){W==="&"?v.state=k.ATTRIB_VALUE_ENTITY_U:v.attribValue+=W;continue}Q(v),W===">"?se(v):v.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(v.tagName)W===">"?H(v):V(oe,W)?v.tagName+=W:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=k.SCRIPT):(Y(W)||D(v,"Invalid tagname in closing tag"),v.state=k.CLOSE_TAG_SAW_WHITE);else{if(Y(W))continue;Z(P,W)?v.script?(v.script+="</"+W,v.state=k.SCRIPT):D(v,"Invalid tagname in closing tag."):v.tagName=W}continue;case k.CLOSE_TAG_SAW_WHITE:if(Y(W))continue;W===">"?H(v):D(v,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var ge,ye;switch(v.state){case k.TEXT_ENTITY:ge=k.TEXT,ye="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:ge=k.ATTRIB_VALUE_QUOTED,ye="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:ge=k.ATTRIB_VALUE_UNQUOTED,ye="attribValue";break}W===";"?(v[ye]+=U(v),v.entity="",v.state=ge):V(v.entity.length?te:z,W)?v.entity+=W:(D(v,"Invalid character in entity name"),v[ye]+="&"+v.entity+W,v.entity="",v.state=ge);continue;default:throw new Error(v,"Unknown state: "+v.state)}}return v.position>=v.bufferCheckPosition&&E(v),v}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */y.default||function(){var o=String.fromCharCode,v=Math.floor,K=function(){var re=16384,de=[],ge,ye,ve=-1,Ee=arguments.length;if(!Ee)return"";for(var _e="";++ve<Ee;){var Oe=Number(arguments[ve]);if(!isFinite(Oe)||Oe<0||Oe>1114111||v(Oe)!==Oe)throw RangeError("Invalid code point: "+Oe);Oe<=65535?de.push(Oe):(Oe-=65536,ge=(Oe>>10)+55296,ye=Oe%1024+56320,de.push(ge,ye)),(ve+1===Ee||de.length>re)&&(_e+=o.apply(null,de),de.length=0)}return _e};s.default?Object.defineProperty(String,"fromCodePoint",{value:K,configurable:!0,writable:!0}):String.fromCodePoint=K}()})(typeof l=="undefined"?(void 0).sax={}:l)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,_,l){_.exports=y;var i=e("events").EventEmitter,t=e("inherits");t(y,i),y.Readable=e("readable-stream/readable.js"),y.Writable=e("readable-stream/writable.js"),y.Duplex=e("readable-stream/duplex.js"),y.Transform=e("readable-stream/transform.js"),y.PassThrough=e("readable-stream/passthrough.js"),y.Stream=y;function y(){i.call(this)}y.prototype.pipe=function(c,f){var d=this;function r(m){c.writable&&(c.write(m)===!1&&d.pause&&d.pause())}d.on("data",r);function u(){d.readable&&d.resume&&d.resume()}c.on("drain",u),!c._isStdio&&(!f||f.end!==!1)&&(d.on("end",n),d.on("close",a));var s=!1;function n(){if(s)return;s=!0,c.end()}function a(){if(s)return;s=!0,typeof c.destroy=="function"&&c.destroy()}function b(m){if(p(),i.listenerCount(this,"error")===0)throw m}d.on("error",b),c.on("error",b);function p(){d.removeListener("data",r),c.removeListener("drain",u),d.removeListener("end",n),d.removeListener("close",a),d.removeListener("error",b),c.removeListener("error",b),d.removeListener("end",p),d.removeListener("close",p),c.removeListener("close",p)}return d.on("end",p),d.on("close",p),c.on("close",p),c.emit("pipe",d),c}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,_,l){(function(i){var t=e("./lib/request"),y=e("./lib/response"),c=e("xtend"),f=e("builtin-status-codes"),d=e("url"),r=l;r.request=function(u,s){typeof u=="string"?u=d.parse(u):u=c(u);var n=i.location.protocol.search(/^https?:$/)===-1?"http:":"",a=u.protocol||n,b=u.hostname||u.host,p=u.port,m=u.path||"/";b&&b.indexOf(":")!==-1&&(b="["+b+"]"),u.url=(b?a+"//"+b:"")+(p?":"+p:"")+m,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var A=new t(u);return s&&A.on("response",s),A},r.get=function(s,n){var a=r.request(s,n);return a.end(),a},r.ClientRequest=t,r.IncomingMessage=y.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=f,r.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 global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,_,l){(function(i){"use strict";l.fetch=r(i.fetch)&&r(i.ReadableStream),l.writableStream=r(i.WritableStream),l.abortController=r(i.AbortController),l.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),l.blobConstructor=!0}catch(u){}var t;function y(){if(t!==void 0)return t;if(i.XMLHttpRequest){t=new i.XMLHttpRequest;try{t.open("GET",i.XDomainRequest?"/":"https://example.com")}catch(u){t=null}}else t=null;return t}function c(u){var s=y();if(!s)return!1;try{return s.responseType=u,s.responseType===u}catch(n){}return!1}var f=typeof i.ArrayBuffer!="undefined",d=f&&r(i.ArrayBuffer.prototype.slice);l.arraybuffer=l.fetch||f&&c("arraybuffer"),l.msstream=!l.fetch&&d&&c("ms-stream"),l.mozchunkedarraybuffer=!l.fetch&&f&&c("moz-chunked-arraybuffer"),l.overrideMimeType=l.fetch||(y()?r(y().overrideMimeType):!1),l.vbArray=r(i.VBArray);function r(u){return typeof u=="function"}t=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(e,_,l){(function(i,t,y){"use strict";var c=e("babel-runtime/core-js/object/keys"),f=d(c);function d(E){return E&&E.__esModule?E:{default:E}}var r=e("./capability"),u=e("inherits"),s=e("./response"),n=e("readable-stream"),a=e("to-arraybuffer"),b=s.IncomingMessage,p=s.readyStates;function m(E,M){return r.fetch&&M?"fetch":r.mozchunkedarraybuffer?"moz-chunked-arraybuffer":r.msstream?"ms-stream":r.arraybuffer&&E?"arraybuffer":r.vbArray&&E?"text:vbarray":"text"}var A=_.exports=function(E){var M=this;n.Writable.call(M),M._opts=E,M._body=[],M._headers={},E.auth&&M.setHeader("Authorization","Basic "+new y(E.auth).toString("base64")),(0,f.default)(E.headers).forEach(function(w){M.setHeader(w,E.headers[w])});var O,S=!0;if(E.mode==="disable-fetch"||"requestTimeout"in E&&!r.abortController)S=!1,O=!0;else if(E.mode==="prefer-streaming")O=!1;else if(E.mode==="allow-wrong-content-type")O=!r.overrideMimeType;else if(!E.mode||E.mode==="default"||E.mode==="prefer-fast")O=!0;else throw new Error("Invalid value for opts.mode");M._mode=m(O,S),M._fetchTimer=null,M.on("finish",function(){M._onFinish()})};u(A,n.Writable),A.prototype.setHeader=function(E,M){var O=this,S=E.toLowerCase();if(x.indexOf(S)!==-1)return;O._headers[S]={name:E,value:M}},A.prototype.getHeader=function(E){var M=this._headers[E.toLowerCase()];return M?M.value:null},A.prototype.removeHeader=function(E){var M=this;delete M._headers[E.toLowerCase()]},A.prototype._onFinish=function(){var E=this;if(E._destroyed)return;var M=E._opts,O=E._headers,S=null;M.method!=="GET"&&M.method!=="HEAD"&&(r.arraybuffer?S=a(y.concat(E._body)):r.blobConstructor?S=new t.Blob(E._body.map(function(R){return a(R)}),{type:(O["content-type"]||{}).value||""}):S=y.concat(E._body).toString());var w=[];if((0,f.default)(O).forEach(function(R){var B=O[R].name,G=O[R].value;Array.isArray(G)?G.forEach(function(P){w.push([B,P])}):w.push([B,G])}),E._mode==="fetch"){var h=null,L=null;if(r.abortController){var C=new AbortController;h=C.signal,E._fetchAbortController=C,"requestTimeout"in M&&M.requestTimeout!==0&&(E._fetchTimer=t.setTimeout(function(){E.emit("requestTimeout"),E._fetchAbortController&&E._fetchAbortController.abort()},M.requestTimeout))}t.fetch(E._opts.url,{method:E._opts.method,headers:w,body:S||void 0,mode:"cors",credentials:M.withCredentials?"include":"same-origin",signal:h}).then(function(R){E._fetchResponse=R,E._connect()},function(R){t.clearTimeout(E._fetchTimer),E._destroyed||E.emit("error",R)})}else{var I=E._xhr=new t.XMLHttpRequest;try{I.open(E._opts.method,E._opts.url,!0)}catch(R){i.nextTick(function(){E.emit("error",R)});return}"responseType"in I&&(I.responseType=E._mode.split(":")[0]),"withCredentials"in I&&(I.withCredentials=!!M.withCredentials),E._mode==="text"&&"overrideMimeType"in I&&I.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in M&&(I.timeout=M.requestTimeout,I.ontimeout=function(){E.emit("requestTimeout")}),w.forEach(function(R){I.setRequestHeader(R[0],R[1])}),E._response=null,I.onreadystatechange=function(){switch(I.readyState){case p.LOADING:case p.DONE:E._onXHRProgress();break}},E._mode==="moz-chunked-arraybuffer"&&(I.onprogress=function(){E._onXHRProgress()}),I.onerror=function(){if(E._destroyed)return;E.emit("error",new Error("XHR error"))};try{I.send(S)}catch(R){i.nextTick(function(){E.emit("error",R)});return}}};function T(E){try{var M=E.status;return M!==null&&M!==0}catch(O){return!1}}A.prototype._onXHRProgress=function(){var E=this;if(!T(E._xhr)||E._destroyed)return;E._response||E._connect(),E._response._onXHRProgress()},A.prototype._connect=function(){var E=this;if(E._destroyed)return;E._response=new b(E._xhr,E._fetchResponse,E._mode,E._fetchTimer),E._response.on("error",function(M){E.emit("error",M)}),E.emit("response",E._response)},A.prototype._write=function(E,M,O){var S=this;S._body.push(E),O()},A.prototype.abort=A.prototype.destroy=function(){var E=this;E._destroyed=!0,t.clearTimeout(E._fetchTimer),E._response&&(E._response._destroyed=!0),E._xhr?E._xhr.abort():E._fetchAbortController&&E._fetchAbortController.abort()},A.prototype.end=function(E,M,O){var S=this;typeof E=="function"&&(O=E,E=void 0),n.Writable.prototype.end.call(S,E,M,O)},A.prototype.flushHeaders=function(){},A.prototype.setTimeout=function(){},A.prototype.setNoDelay=function(){},A.prototype.setSocketKeepAlive=function(){};var x=["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,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,_,l){(function(i,t,y){"use strict";var c=e("babel-runtime/core-js/promise"),f=d(c);function d(b){return b&&b.__esModule?b:{default:b}}var r=e("./capability"),u=e("inherits"),s=e("readable-stream"),n=l.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=l.IncomingMessage=function(b,p,m,A){var T=this;if(s.Readable.call(T),T._mode=m,T.headers={},T.rawHeaders=[],T.trailers={},T.rawTrailers=[],T.on("end",function(){i.nextTick(function(){T.emit("close")})}),m==="fetch"){var x=function h(){M.read().then(function(L){if(T._destroyed)return;if(L.done){t.clearTimeout(A),T.push(null);return}T.push(new y(L.value)),h()}).catch(function(L){t.clearTimeout(A),T._destroyed||T.emit("error",L)})};if(T._fetchResponse=p,T.url=p.url,T.statusCode=p.status,T.statusMessage=p.statusText,p.headers.forEach(function(h,L){T.headers[L.toLowerCase()]=h,T.rawHeaders.push(L,h)}),r.writableStream){var E=new WritableStream({write:function(L){return new f.default(function(C,I){T._destroyed?I():T.push(new y(L))?C():T._resumeFetch=C})},close:function(){t.clearTimeout(A),T._destroyed||T.push(null)},abort:function(L){T._destroyed||T.emit("error",L)}});try{p.body.pipeTo(E).catch(function(h){t.clearTimeout(A),T._destroyed||T.emit("error",h)});return}catch(h){}}var M=p.body.getReader();x()}else{T._xhr=b,T._pos=0,T.url=b.responseURL,T.statusCode=b.status,T.statusMessage=b.statusText;var O=b.getAllResponseHeaders().split(/\r?\n/);if(O.forEach(function(h){var L=h.match(/^([^:]+):\s*(.*)/);if(L){var C=L[1].toLowerCase();C==="set-cookie"?(T.headers[C]===void 0&&(T.headers[C]=[]),T.headers[C].push(L[2])):T.headers[C]!==void 0?T.headers[C]+=", "+L[2]:T.headers[C]=L[2],T.rawHeaders.push(L[1],L[2])}}),T._charset="x-user-defined",!r.overrideMimeType){var S=T.rawHeaders["mime-type"];if(S){var w=S.match(/;\s*charset=([^;])(;|$)/);w&&(T._charset=w[1].toLowerCase())}T._charset||(T._charset="utf-8")}}};u(a,s.Readable),a.prototype._read=function(){var b=this,p=b._resumeFetch;p&&(b._resumeFetch=null,p())},a.prototype._onXHRProgress=function(){var b=this,p=b._xhr,m=null;switch(b._mode){case"text:vbarray":if(p.readyState!==n.DONE)break;try{m=new t.VBArray(p.responseBody).toArray()}catch(M){}if(m!==null){b.push(new y(m));break}case"text":try{m=p.responseText}catch(M){b._mode="text:vbarray";break}if(m.length>b._pos){var A=m.substr(b._pos);if(b._charset==="x-user-defined"){for(var T=new y(A.length),x=0;x<A.length;x++)T[x]=A.charCodeAt(x)&255;b.push(T)}else b.push(A,b._charset);b._pos=m.length}break;case"arraybuffer":if(p.readyState!==n.DONE||!p.response)break;m=p.response,b.push(new y(new Uint8Array(m)));break;case"moz-chunked-arraybuffer":if(m=p.response,p.readyState!==n.LOADING||!m)break;b.push(new y(new Uint8Array(m)));break;case"ms-stream":if(m=p.response,p.readyState!==n.LOADING)break;var E=new t.MSStreamReader;E.onprogress=function(){E.result.byteLength>b._pos&&(b.push(new y(new Uint8Array(E.result.slice(b._pos)))),b._pos=E.result.byteLength)},E.onload=function(){b.push(null)},E.readAsArrayBuffer(m);break}b._xhr.readyState===n.DONE&&b._mode!=="ms-stream"&&b.push(null)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,_,l){"use strict";var i=e("safe-buffer").Buffer,t=i.isEncoding||function(E){E=""+E;switch(E&&E.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}};function y(E){if(!E)return"utf8";for(var M;;)switch(E){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 E;default:if(M)return;E=(""+E).toLowerCase(),M=!0}}function c(E){var M=y(E);if(typeof M!="string"&&(i.isEncoding===t||!t(E)))throw new Error("Unknown encoding: "+E);return M||E}l.StringDecoder=f;function f(E){this.encoding=c(E);var M;switch(this.encoding){case"utf16le":this.text=b,this.end=p,M=4;break;case"utf8":this.fillLast=s,M=4;break;case"base64":this.text=m,this.end=A,M=3;break;default:this.write=T,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(M)}f.prototype.write=function(E){if(E.length===0)return"";var M,O;if(this.lastNeed){if(M=this.fillLast(E),M===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<E.length?M?M+this.text(E,O):this.text(E,O):M||""},f.prototype.end=a,f.prototype.text=n,f.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length};function d(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}function r(E,M,O){var S=M.length-1;if(S<O)return 0;var w=d(M[S]);return w>=0?(w>0&&(E.lastNeed=w-1),w):--S<O||w===-2?0:(w=d(M[S]),w>=0?(w>0&&(E.lastNeed=w-2),w):--S<O||w===-2?0:(w=d(M[S]),w>=0?(w>0&&(w===2?w=0:E.lastNeed=w-3),w):0))}function u(E,M,O){if((M[0]&192)!==128)return E.lastNeed=0,"\uFFFD";if(E.lastNeed>1&&M.length>1){if((M[1]&192)!==128)return E.lastNeed=1,"\uFFFD";if(E.lastNeed>2&&M.length>2&&(M[2]&192)!==128)return E.lastNeed=2,"\uFFFD"}}function s(E){var M=this.lastTotal-this.lastNeed,O=u(this,E,M);if(O!==void 0)return O;if(this.lastNeed<=E.length)return E.copy(this.lastChar,M,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,M,0,E.length),this.lastNeed-=E.length}function n(E,M){var O=r(this,E,M);if(!this.lastNeed)return E.toString("utf8",M);this.lastTotal=O;var S=E.length-(O-this.lastNeed);return E.copy(this.lastChar,0,S),E.toString("utf8",M,S)}function a(E){var M=E&&E.length?this.write(E):"";return this.lastNeed?M+"\uFFFD":M}function b(E,M){if((E.length-M)%2===0){var O=E.toString("utf16le",M);if(O){var S=O.charCodeAt(O.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",M,E.length-1)}function p(E){var M=E&&E.length?this.write(E):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return M+this.lastChar.toString("utf16le",0,O)}return M}function m(E,M){var O=(E.length-M)%3;return O===0?E.toString("base64",M):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",M,E.length-O))}function A(E){var M=E&&E.length?this.write(E):"";return this.lastNeed?M+this.lastChar.toString("base64",0,3-this.lastNeed):M}function T(E){return E.toString(this.encoding)}function x(E){return E&&E.length?this.write(E):""}},{"safe-buffer":228}],236:[function(e,_,l){(function(i,t){var y=e("process/browser.js").nextTick,c=Function.prototype.apply,f=Array.prototype.slice,d={},r=0;l.setTimeout=function(){return new u(c.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new u(c.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(s){s.close()};function u(s,n){this._id=s,this._clearFn=n}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(s,n){clearTimeout(s._idleTimeoutId),s._idleTimeout=n},l.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},l._unrefActive=l.active=function(s){clearTimeout(s._idleTimeoutId);var n=s._idleTimeout;n>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},n))},l.setImmediate=typeof i=="function"?i:function(s){var n=r++,a=arguments.length<2?!1:f.call(arguments,1);return d[n]=!0,y(function(){d[n]&&(a?s.apply(null,a):s.call(null),l.clearImmediate(n))}),n},l.clearImmediate=typeof t=="function"?t:function(s){delete d[s]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,_,l){var i=e("buffer").Buffer;_.exports=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(i.isBuffer(t)){for(var y=new Uint8Array(t.length),c=t.length,f=0;f<c;f++)y[f]=t[f];return y.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(e,_,l){"use strict";var i=e("punycode"),t=e("./util");l.parse=M,l.resolve=S,l.resolveObject=w,l.format=O,l.Url=y;function y(){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}var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],u=["{","}","|","\\","^","`"].concat(r),s=["'"].concat(u),n=["%","/","?",";","#"].concat(s),a=["/","?","#"],b=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");function M(h,L,C){if(h&&t.isObject(h)&&h instanceof y)return h;var I=new y;return I.parse(h,L,C),I}y.prototype.parse=function(h,L,C){if(!t.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var I=h.indexOf("?"),R=I!==-1&&I<h.indexOf("#")?"?":"#",B=h.split(R),G=/\\/g;B[0]=B[0].replace(G,"/"),h=B.join(R);var P=h;if(P=P.trim(),!C&&h.split("#").length===1){var oe=d.exec(P);if(oe)return this.path=P,this.href=P,this.pathname=oe[1],oe[2]?(this.search=oe[2],L?this.query=E.parse(this.search.substr(1)):this.query=this.search.substr(1)):L&&(this.search="",this.query={}),this}var z=c.exec(P);if(z){z=z[0];var te=z.toLowerCase();this.protocol=te,P=P.substr(z.length)}if(C||z||P.match(/^\/\/[^@\/]+@[^@\/]+/)){var Y=P.substr(0,2)==="//";Y&&!(z&&T[z])&&(P=P.substr(2),this.slashes=!0)}if(!T[z]&&(Y||z&&!x[z])){for(var j=-1,F=0;F<a.length;F++){var V=P.indexOf(a[F]);V!==-1&&(j===-1||V<j)&&(j=V)}var Z,k;j===-1?k=P.lastIndexOf("@"):k=P.lastIndexOf("@",j),k!==-1&&(Z=P.slice(0,k),P=P.slice(k+1),this.auth=decodeURIComponent(Z)),j=-1;for(var F=0;F<n.length;F++){var V=P.indexOf(n[F]);V!==-1&&(j===-1||V<j)&&(j=V)}j===-1&&(j=P.length),this.host=P.slice(0,j),P=P.slice(j),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var ae=this.hostname.split(/\./),F=0,ne=ae.length;F<ne;F++){var le=ae[F];if(!le)continue;if(!le.match(p)){for(var fe="",q=0,pe=le.length;q<pe;q++)le.charCodeAt(q)>127?fe+="x":fe+=le[q];if(!fe.match(p)){var D=ae.slice(0,F),X=ae.slice(F+1),$=le.match(m);$&&(D.push($[1]),X.unshift($[2])),X.length&&(P="/"+X.join(".")+P),this.hostname=D.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=i.toASCII(this.hostname));var Q=this.port?":"+this.port:"",se=this.hostname||"";this.host=se+Q,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),P[0]!=="/"&&(P="/"+P))}if(!A[te])for(var F=0,ne=s.length;F<ne;F++){var H=s[F];if(P.indexOf(H)===-1)continue;var U=encodeURIComponent(H);U===H&&(U=escape(H)),P=P.split(H).join(U)}var J=P.indexOf("#");J!==-1&&(this.hash=P.substr(J),P=P.slice(0,J));var N=P.indexOf("?");if(N!==-1?(this.search=P.substr(N),this.query=P.substr(N+1),L&&(this.query=E.parse(this.query)),P=P.slice(0,N)):L&&(this.search="",this.query={}),P&&(this.pathname=P),x[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Q=this.pathname||"",g=this.search||"";this.path=Q+g}return this.href=this.format(),this};function O(h){return t.isString(h)&&(h=M(h)),h instanceof y?h.format():y.prototype.format.call(h)}y.prototype.format=function(){var h=this.auth||"";h&&(h=encodeURIComponent(h),h=h.replace(/%3A/i,":"),h+="@");var L=this.protocol||"",C=this.pathname||"",I=this.hash||"",R=!1,B="";this.host?R=h+this.host:this.hostname&&(R=h+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(R+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(B=E.stringify(this.query));var G=this.search||B&&"?"+B||"";return L&&L.substr(-1)!==":"&&(L+=":"),this.slashes||(!L||x[L])&&R!==!1?(R="//"+(R||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):R||(R=""),I&&I.charAt(0)!=="#"&&(I="#"+I),G&&G.charAt(0)!=="?"&&(G="?"+G),C=C.replace(/[?#]/g,function(P){return encodeURIComponent(P)}),G=G.replace("#","%23"),L+R+C+G+I};function S(h,L){return M(h,!1,!0).resolve(L)}y.prototype.resolve=function(h){return this.resolveObject(M(h,!1,!0)).format()};function w(h,L){return h?M(h,!1,!0).resolveObject(L):L}y.prototype.resolveObject=function(h){if(t.isString(h)){var L=new y;L.parse(h,!1,!0),h=L}for(var C=new y,I=Object.keys(this),R=0;R<I.length;R++){var B=I[R];C[B]=this[B]}if(C.hash=h.hash,h.href==="")return C.href=C.format(),C;if(h.slashes&&!h.protocol){for(var G=Object.keys(h),P=0;P<G.length;P++){var oe=G[P];oe!=="protocol"&&(C[oe]=h[oe])}return x[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(h.protocol&&h.protocol!==C.protocol){if(!x[h.protocol]){for(var z=Object.keys(h),te=0;te<z.length;te++){var Y=z[te];C[Y]=h[Y]}return C.href=C.format(),C}if(C.protocol=h.protocol,!h.host&&!T[h.protocol]){for(var ne=(h.pathname||"").split("/");ne.length&&!(h.host=ne.shift()););h.host||(h.host=""),h.hostname||(h.hostname=""),ne[0]!==""&&ne.unshift(""),ne.length<2&&ne.unshift(""),C.pathname=ne.join("/")}else C.pathname=h.pathname;if(C.search=h.search,C.query=h.query,C.host=h.host||"",C.auth=h.auth,C.hostname=h.hostname||h.host,C.port=h.port,C.pathname||C.search){var j=C.pathname||"",F=C.search||"";C.path=j+F}return C.slashes=C.slashes||h.slashes,C.href=C.format(),C}var V=C.pathname&&C.pathname.charAt(0)==="/",Z=h.host||h.pathname&&h.pathname.charAt(0)==="/",k=Z||V||C.host&&h.pathname,ee=k,ae=C.pathname&&C.pathname.split("/")||[],ne=h.pathname&&h.pathname.split("/")||[],le=C.protocol&&!x[C.protocol];if(le&&(C.hostname="",C.port=null,C.host&&(ae[0]===""?ae[0]=C.host:ae.unshift(C.host)),C.host="",h.protocol&&(h.hostname=null,h.port=null,h.host&&(ne[0]===""?ne[0]=h.host:ne.unshift(h.host)),h.host=null),k=k&&(ne[0]===""||ae[0]==="")),Z)C.host=h.host||h.host===""?h.host:C.host,C.hostname=h.hostname||h.hostname===""?h.hostname:C.hostname,C.search=h.search,C.query=h.query,ae=ne;else if(ne.length)ae||(ae=[]),ae.pop(),ae=ae.concat(ne),C.search=h.search,C.query=h.query;else if(!t.isNullOrUndefined(h.search)){if(le){C.hostname=C.host=ae.shift();var fe=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;fe&&(C.auth=fe.shift(),C.host=C.hostname=fe.shift())}return C.search=h.search,C.query=h.query,(!t.isNull(C.pathname)||!t.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!ae.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var q=ae.slice(-1)[0],pe=(C.host||h.host||ae.length>1)&&(q==="."||q==="..")||q==="",D=0,X=ae.length;X>=0;X--)q=ae[X],q==="."?ae.splice(X,1):q===".."?(ae.splice(X,1),D++):D&&(ae.splice(X,1),D--);if(!k&&!ee)for(;D--;D)ae.unshift("..");k&&ae[0]!==""&&(!ae[0]||ae[0].charAt(0)!=="/")&&ae.unshift(""),pe&&ae.join("/").substr(-1)!=="/"&&ae.push("");var $=ae[0]===""||ae[0]&&ae[0].charAt(0)==="/";if(le){C.hostname=C.host=$?"":ae.length?ae.shift():"";var fe=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;fe&&(C.auth=fe.shift(),C.host=C.hostname=fe.shift())}return k=k||C.host&&ae.length,k&&!$&&ae.unshift(""),ae.length?C.pathname=ae.join("/"):(C.pathname=null,C.path=null),(!t.isNull(C.pathname)||!t.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=h.auth||C.auth,C.slashes=C.slashes||h.slashes,C.href=C.format(),C},y.prototype.parseHost=function(){var h=this.host,L=f.exec(h);L&&(L=L[0],L!==":"&&(this.port=L.substr(1)),h=h.substr(0,h.length-L.length)),h&&(this.hostname=h)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,_,l){"use strict";_.exports={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}}},{}],240:[function(e,_,l){(function(i){_.exports=t;function t(c,f){if(y("noDeprecation"))return c;var d=!1;function r(){if(!d){if(y("throwDeprecation"))throw new Error(f);y("traceDeprecation")?console.trace(f):console.warn(f),d=!0}return c.apply(this,arguments)}return r}function y(c){try{if(!i.localStorage)return!1}catch(d){return!1}var f=i.localStorage[c];return f==null?!1:String(f).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(e,_,l){typeof Object.create=="function"?_.exports=function(t,y){t.super_=y,t.prototype=Object.create(y.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:_.exports=function(t,y){t.super_=y;var c=function(){};c.prototype=y.prototype,t.prototype=new c,t.prototype.constructor=t}},{}],242:[function(e,_,l){_.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],243:[function(e,_,l){(function(i,t){var y=/%[sdj%]/g;l.format=function(j){if(!S(j)){for(var F=[],V=0;V<arguments.length;V++)F.push(d(arguments[V]));return F.join(" ")}for(var V=1,Z=arguments,k=Z.length,ee=String(j).replace(y,function(ne){if(ne==="%%")return"%";if(V>=k)return ne;switch(ne){case"%s":return String(Z[V++]);case"%d":return Number(Z[V++]);case"%j":try{return JSON.stringify(Z[V++])}catch(le){return"[Circular]"}default:return ne}}),ae=Z[V];V<k;ae=Z[++V])E(ae)||!C(ae)?ee+=" "+ae:ee+=" "+d(ae);return ee},l.deprecate=function(j,F){if(h(t.process))return function(){return l.deprecate(j,F).apply(this,arguments)};if(i.noDeprecation===!0)return j;var V=!1;function Z(){if(!V){if(i.throwDeprecation)throw new Error(F);i.traceDeprecation?console.trace(F):console.error(F),V=!0}return j.apply(this,arguments)}return Z};var c={},f;l.debuglog=function(j){if(h(f)&&(f=i.env.NODE_DEBUG||""),j=j.toUpperCase(),!c[j])if(new RegExp("\\b"+j+"\\b","i").test(f)){var F=i.pid;c[j]=function(){var V=l.format.apply(l,arguments);console.error("%s %d: %s",j,F,V)}}else c[j]=function(){};return c[j]};function d(j,F){var V={seen:[],stylize:u};return arguments.length>=3&&(V.depth=arguments[2]),arguments.length>=4&&(V.colors=arguments[3]),x(F)?V.showHidden=F:F&&l._extend(V,F),h(V.showHidden)&&(V.showHidden=!1),h(V.depth)&&(V.depth=2),h(V.colors)&&(V.colors=!1),h(V.customInspect)&&(V.customInspect=!0),V.colors&&(V.stylize=r),n(V,j,V.depth)}l.inspect=d,d.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]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(j,F){var V=d.styles[F];return V?"["+d.colors[V][0]+"m"+j+"["+d.colors[V][1]+"m":j}function u(j,F){return j}function s(j){var F={};return j.forEach(function(V,Z){F[V]=!0}),F}function n(j,F,V){if(j.customInspect&&F&&B(F.inspect)&&F.inspect!==l.inspect&&!(F.constructor&&F.constructor.prototype===F)){var Z=F.inspect(V,j);return S(Z)||(Z=n(j,Z,V)),Z}var k=a(j,F);if(k)return k;var ee=Object.keys(F),ae=s(ee);if(j.showHidden&&(ee=Object.getOwnPropertyNames(F)),R(F)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return b(F);if(ee.length===0){if(B(F)){var ne=F.name?": "+F.name:"";return j.stylize("[Function"+ne+"]","special")}if(L(F))return j.stylize(RegExp.prototype.toString.call(F),"regexp");if(I(F))return j.stylize(Date.prototype.toString.call(F),"date");if(R(F))return b(F)}var le="",fe=!1,q=["{","}"];if(T(F)&&(fe=!0,q=["[","]"]),B(F)){var pe=F.name?": "+F.name:"";le=" [Function"+pe+"]"}if(L(F)&&(le=" "+RegExp.prototype.toString.call(F)),I(F)&&(le=" "+Date.prototype.toUTCString.call(F)),R(F)&&(le=" "+b(F)),ee.length===0&&(!fe||F.length==0))return q[0]+le+q[1];if(V<0)return L(F)?j.stylize(RegExp.prototype.toString.call(F),"regexp"):j.stylize("[Object]","special");j.seen.push(F);var D;return fe?D=p(j,F,V,ae,ee):D=ee.map(function(X){return m(j,F,V,ae,X,fe)}),j.seen.pop(),A(D,le,q)}function a(j,F){if(h(F))return j.stylize("undefined","undefined");if(S(F)){var V="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(V,"string")}if(O(F))return j.stylize(""+F,"number");if(x(F))return j.stylize(""+F,"boolean");if(E(F))return j.stylize("null","null")}function b(j){return"["+Error.prototype.toString.call(j)+"]"}function p(j,F,V,Z,k){for(var ee=[],ae=0,ne=F.length;ae<ne;++ae)Y(F,String(ae))?ee.push(m(j,F,V,Z,String(ae),!0)):ee.push("");return k.forEach(function(le){le.match(/^\d+$/)||ee.push(m(j,F,V,Z,le,!0))}),ee}function m(j,F,V,Z,k,ee){var ae,ne,le;if(le=Object.getOwnPropertyDescriptor(F,k)||{value:F[k]},le.get?le.set?ne=j.stylize("[Getter/Setter]","special"):ne=j.stylize("[Getter]","special"):le.set&&(ne=j.stylize("[Setter]","special")),Y(Z,k)||(ae="["+k+"]"),ne||(j.seen.indexOf(le.value)<0?(E(V)?ne=n(j,le.value,null):ne=n(j,le.value,V-1),ne.indexOf(`
|
|
|
`)>-1&&(ee?ne=ne.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`).substr(2):ne=`
|
|
|
`+ne.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`))):ne=j.stylize("[Circular]","special")),h(ae)){if(ee&&k.match(/^\d+$/))return ne;ae=JSON.stringify(""+k),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=j.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=j.stylize(ae,"string"))}return ae+": "+ne}function A(j,F,V){var Z=0,k=j.reduce(function(ee,ae){return Z++,ae.indexOf(`
|
|
|
`)>=0&&Z++,ee+ae.replace(/\u001b\[\d\d?m/g,"").length+1},0);return k>60?V[0]+(F===""?"":F+`
|
|
|
`)+" "+j.join(`,
|
|
|
`)+" "+V[1]:V[0]+F+" "+j.join(", ")+" "+V[1]}function T(j){return Array.isArray(j)}l.isArray=T;function x(j){return typeof j=="boolean"}l.isBoolean=x;function E(j){return j===null}l.isNull=E;function M(j){return j==null}l.isNullOrUndefined=M;function O(j){return typeof j=="number"}l.isNumber=O;function S(j){return typeof j=="string"}l.isString=S;function w(j){return typeof j=="symbol"}l.isSymbol=w;function h(j){return j===void 0}l.isUndefined=h;function L(j){return C(j)&&P(j)==="[object RegExp]"}l.isRegExp=L;function C(j){return typeof j=="object"&&j!==null}l.isObject=C;function I(j){return C(j)&&P(j)==="[object Date]"}l.isDate=I;function R(j){return C(j)&&(P(j)==="[object Error]"||j instanceof Error)}l.isError=R;function B(j){return typeof j=="function"}l.isFunction=B;function G(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j=="undefined"}l.isPrimitive=G,l.isBuffer=e("./support/isBuffer");function P(j){return Object.prototype.toString.call(j)}function oe(j){return j<10?"0"+j.toString(10):j.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function te(){var j=new Date,F=[oe(j.getHours()),oe(j.getMinutes()),oe(j.getSeconds())].join(":");return[j.getDate(),z[j.getMonth()],F].join(" ")}l.log=function(){console.log("%s - %s",te(),l.format.apply(l,arguments))},l.inherits=e("inherits"),l._extend=function(j,F){if(!F||!C(F))return j;for(var V=Object.keys(F),Z=V.length;Z--;)j[V[Z]]=F[V[Z]];return j};function Y(j,F){return Object.prototype.hasOwnProperty.call(j,F)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,_,l){"use strict";(function(){"use strict";l.stripBOM=function(i){return i[0]==="\uFEFF"?i.substring(1):i}}).call(void 0)},{}],245:[function(e,_,l){"use strict";var i=e("babel-runtime/helpers/typeof"),t=f(i),y=e("babel-runtime/core-js/object/keys"),c=f(y);function f(d){return d&&d.__esModule?d:{default:d}}(function(){"use strict";var d,r,u,s,n,a={}.hasOwnProperty;d=e("xmlbuilder"),r=e("./defaults").defaults,s=function(p){return typeof p=="string"&&(p.indexOf("&")>=0||p.indexOf(">")>=0||p.indexOf("<")>=0)},n=function(p){return"<![CDATA["+u(p)+"]]>"},u=function(p){return p.replace("]]>","]]]]><![CDATA[>")},l.Builder=function(){function b(p){var m,A,T;this.options={},A=r["0.2"];for(m in A){if(!a.call(A,m))continue;T=A[m],this.options[m]=T}for(m in p){if(!a.call(p,m))continue;T=p[m],this.options[m]=T}}return b.prototype.buildObject=function(p){var m,A,T,x,E;return m=this.options.attrkey,A=this.options.charkey,(0,c.default)(p).length===1&&this.options.rootName===r["0.2"].rootName?(E=(0,c.default)(p)[0],p=p[E]):E=this.options.rootName,T=function(M){return function(O,S){var w,h,L,C,I,R;if((typeof S=="undefined"?"undefined":(0,t.default)(S))!=="object")M.options.cdata&&s(S)?O.raw(n(S)):O.txt(S);else if(Array.isArray(S))for(C in S){if(!a.call(S,C))continue;h=S[C];for(I in h)L=h[I],O=T(O.ele(I),L).up()}else for(I in S){if(!a.call(S,I))continue;if(h=S[I],I===m){if((typeof h=="undefined"?"undefined":(0,t.default)(h))==="object")for(w in h)R=h[w],O=O.att(w,R)}else if(I===A)M.options.cdata&&s(h)?O=O.raw(n(h)):O=O.txt(h);else if(Array.isArray(h))for(C in h){if(!a.call(h,C))continue;L=h[C],typeof L=="string"?M.options.cdata&&s(L)?O=O.ele(I).raw(n(L)).up():O=O.ele(I,L).up():O=T(O.ele(I),L).up()}else(typeof h=="undefined"?"undefined":(0,t.default)(h))==="object"?O=T(O.ele(I),h).up():typeof h=="string"&&M.options.cdata&&s(h)?O=O.ele(I).raw(n(h)).up():(h==null&&(h=""),O=O.ele(I,h.toString()).up())}return O}}(this),x=d.create(E,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(x,p).end(this.options.renderOpts)},b}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,_,l){"use strict";(function(){l.defaults={"0.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:""},"0.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)},{}],247:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/promise"),t=s(i),y=e("babel-runtime/core-js/object/get-own-property-names"),c=s(y),f=e("babel-runtime/core-js/object/keys"),d=s(f),r=e("babel-runtime/helpers/typeof"),u=s(r);function s(n){return n&&n.__esModule?n:{default:n}}(function(){"use strict";var n,a,b,p,m,A,T,x,E=function(w,h){return function(){return w.apply(h,arguments)}},M=function(w,h){for(var L in h)O.call(h,L)&&(w[L]=h[L]);function C(){this.constructor=w}return C.prototype=h.prototype,w.prototype=new C,w.__super__=h.prototype,w},O={}.hasOwnProperty;T=e("sax"),b=e("events"),n=e("./bom"),A=e("./processors"),x=e("timers").setImmediate,a=e("./defaults").defaults,p=function(w){return(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&w!=null&&(0,d.default)(w).length===0},m=function(w,h,L){var C,I,R;for(C=0,I=w.length;C<I;C++)R=w[C],h=R(h,L);return h},l.Parser=function(S){M(w,S);function w(h){this.parseStringPromise=E(this.parseStringPromise,this),this.parseString=E(this.parseString,this),this.reset=E(this.reset,this),this.assignOrPush=E(this.assignOrPush,this),this.processAsync=E(this.processAsync,this);var L,C,I;if(!(this instanceof l.Parser))return new l.Parser(h);this.options={},C=a["0.2"];for(L in C){if(!O.call(C,L))continue;I=C[L],this.options[L]=I}for(L in h){if(!O.call(h,L))continue;I=h[L],this.options[L]=I}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 w.prototype.processAsync=function(){var h,L;try{return this.remaining.length<=this.options.chunkSize?(h=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(h),this.saxParser.close()):(h=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(h),x(this.processAsync))}catch(C){if(L=C,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(L)}},w.prototype.assignOrPush=function(h,L,C){return L in h?(h[L]instanceof Array||(h[L]=[h[L]]),h[L].push(C)):this.options.explicitArray?h[L]=[C]:h[L]=C},w.prototype.reset=function(){var h,L,C,I;return this.removeAllListeners(),this.saxParser=T.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(R){return function(B){if(R.saxParser.resume(),!R.saxParser.errThrown)return R.saxParser.errThrown=!0,R.emit("error",B)}}(this),this.saxParser.onend=function(R){return function(){if(!R.saxParser.ended)return R.saxParser.ended=!0,R.emit("end",R.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,I=[],h=this.options.attrkey,L=this.options.charkey,this.saxParser.onopentag=function(R){return function(B){var G,P,oe,z,te;if(oe={},oe[L]="",!R.options.ignoreAttrs){te=B.attributes;for(G in te){if(!O.call(te,G))continue;!(h in oe)&&!R.options.mergeAttrs&&(oe[h]={}),P=R.options.attrValueProcessors?m(R.options.attrValueProcessors,B.attributes[G],G):B.attributes[G],z=R.options.attrNameProcessors?m(R.options.attrNameProcessors,G):G,R.options.mergeAttrs?R.assignOrPush(oe,z,P):oe[h][z]=P}}return oe["#name"]=R.options.tagNameProcessors?m(R.options.tagNameProcessors,B.name):B.name,R.options.xmlns&&(oe[R.options.xmlnskey]={uri:B.uri,local:B.local}),I.push(oe)}}(this),this.saxParser.onclosetag=function(R){return function(){var B,G,P,oe,z,te,Y,j,F,V;if(te=I.pop(),z=te["#name"],(!R.options.explicitChildren||!R.options.preserveChildrenOrder)&&delete te["#name"],te.cdata===!0&&(B=te.cdata,delete te.cdata),F=I[I.length-1],te[L].match(/^\s*$/)&&!B?(G=te[L],delete te[L]):(R.options.trim&&(te[L]=te[L].trim()),R.options.normalize&&(te[L]=te[L].replace(/\s{2,}/g," ").trim()),te[L]=R.options.valueProcessors?m(R.options.valueProcessors,te[L],z):te[L],(0,d.default)(te).length===1&&L in te&&!R.EXPLICIT_CHARKEY&&(te=te[L])),p(te)&&(te=R.options.emptyTag!==""?R.options.emptyTag:G),R.options.validator!=null&&(V="/"+function(){var Z,k,ee;for(ee=[],Z=0,k=I.length;Z<k;Z++)oe=I[Z],ee.push(oe["#name"]);return ee}().concat(z).join("/"),function(){var Z;try{return te=R.options.validator(V,F&&F[z],te)}catch(k){return Z=k,R.emit("error",Z)}}()),R.options.explicitChildren&&!R.options.mergeAttrs&&(typeof te=="undefined"?"undefined":(0,u.default)(te))==="object"){if(!R.options.preserveChildrenOrder)oe={},R.options.attrkey in te&&(oe[R.options.attrkey]=te[R.options.attrkey],delete te[R.options.attrkey]),!R.options.charsAsChildren&&R.options.charkey in te&&(oe[R.options.charkey]=te[R.options.charkey],delete te[R.options.charkey]),(0,c.default)(te).length>0&&(oe[R.options.childkey]=te),te=oe;else if(F){F[R.options.childkey]=F[R.options.childkey]||[],Y={};for(P in te){if(!O.call(te,P))continue;Y[P]=te[P]}F[R.options.childkey].push(Y),delete te["#name"],(0,d.default)(te).length===1&&L in te&&!R.EXPLICIT_CHARKEY&&(te=te[L])}}return I.length>0?R.assignOrPush(F,z,te):(R.options.explicitRoot&&(j=te,te={},te[z]=j),R.resultObject=te,R.saxParser.ended=!0,R.emit("end",R.resultObject))}}(this),C=function(R){return function(B){var G,P;if(P=I[I.length-1],P)return P[L]+=B,R.options.explicitChildren&&R.options.preserveChildrenOrder&&R.options.charsAsChildren&&(R.options.includeWhiteChars||B.replace(/\\n/g,"").trim()!=="")&&(P[R.options.childkey]=P[R.options.childkey]||[],G={"#name":"__text__"},G[L]=B,R.options.normalize&&(G[L]=G[L].replace(/\s{2,}/g," ").trim()),P[R.options.childkey].push(G)),P}}(this),this.saxParser.ontext=C,this.saxParser.oncdata=function(R){return function(B){var G;if(G=C(B),G)return G.cdata=!0}}(this)},w.prototype.parseString=function(h,L){var C;L!=null&&typeof L=="function"&&(this.on("end",function(I){return this.reset(),L(null,I)}),this.on("error",function(I){return this.reset(),L(I)}));try{return h=h.toString(),h.trim()===""?(this.emit("end",null),!0):(h=n.stripBOM(h),this.options.async?(this.remaining=h,x(this.processAsync),this.saxParser):this.saxParser.write(h).close())}catch(I){if(C=I,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw C}else return this.emit("error",C),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(h){return new t.default(function(L){return function(C,I){return L.parseString(h,function(R,B){return R?I(R):C(B)})}}(this))},w}(b),l.parseString=function(S,w,h){var L,C,I;return h!=null?(typeof h=="function"&&(L=h),(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&(C=w)):(typeof w=="function"&&(L=w),C={}),I=new l.Parser(C),I.parseString(S,L)},l.parseStringPromise=function(S,w){var h,L;return(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&(h=w),L=new l.Parser(h),L.parseStringPromise(S)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,_,l){"use strict";(function(){"use strict";var i;i=new RegExp(/(?!xmlns)^.*:/),l.normalize=function(t){return t.toLowerCase()},l.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},l.stripPrefix=function(t){return t.replace(i,"")},l.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},l.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(void 0)},{}],249:[function(e,_,l){"use strict";(function(){"use strict";var i,t,y,c,f=function(u,s){for(var n in s)d.call(s,n)&&(u[n]=s[n]);function a(){this.constructor=u}return a.prototype=s.prototype,u.prototype=new a,u.__super__=s.prototype,u},d={}.hasOwnProperty;t=e("./defaults"),i=e("./builder"),y=e("./parser"),c=e("./processors"),l.defaults=t.defaults,l.processors=c,l.ValidationError=function(r){f(u,r);function u(s){this.message=s}return u}(Error),l.Builder=i.Builder,l.Parser=y.Parser,l.parseString=y.parseString,l.parseStringPromise=y.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,_,l){"use strict";(function(){_.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,_,l){"use strict";(function(){_.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/get-prototype-of"),t=r(i),y=e("babel-runtime/helpers/typeof"),c=r(y),f=e("babel-runtime/core-js/object/assign"),d=r(f);function r(u){return u&&u.__esModule?u:{default:u}}(function(){var u,s,n,a,b,p,m,A=[].slice,T={}.hasOwnProperty;u=function(){var E,M,O,S,w,h;if(h=arguments[0],w=2<=arguments.length?A.call(arguments,1):[],b(d.default))d.default.apply(null,arguments);else for(E=0,O=w.length;E<O;E++)if(S=w[E],S!=null)for(M in S){if(!T.call(S,M))continue;h[M]=S[M]}return h},b=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},p=function(E){var M;return!!E&&((M=typeof E=="undefined"?"undefined":(0,c.default)(E))==="function"||M==="object")},n=function(E){return b(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},a=function(E){var M;if(n(E))return!E.length;for(M in E){if(!T.call(E,M))continue;return!1}return!0},m=function(E){var M,O;return p(E)&&(O=(0,t.default)(E))&&(M=O.constructor)&&typeof M=="function"&&M instanceof M&&Function.prototype.toString.call(M)===Function.prototype.toString.call(Object)},s=function(E){return b(E.valueOf)?E.valueOf():E},_.exports.assign=u,_.exports.isFunction=b,_.exports.isObject=p,_.exports.isArray=n,_.exports.isEmpty=a,_.exports.isPlainObject=m,_.exports.getValue=s}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(e,_,l){"use strict";(function(){_.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d;c=e("./NodeType"),d=e("./XMLNode"),_.exports=f=function(){function r(u,s,n){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(n),this.type=c.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"specified",{get:function(){return!0}}),r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},r.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},r}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;c=e("./NodeType"),d=e("./XMLCharacterData"),_.exports=f=function(s){r(n,s);function n(a,b){if(n.__super__.constructor.call(this,a),b==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=c.CData,this.value=this.stringify.cdata(b)}return n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},n}(d)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d=function(s,n){for(var a in n)r.call(n,a)&&(s[a]=n[a]);function b(){this.constructor=s}return b.prototype=n.prototype,s.prototype=new b,s.__super__=n.prototype,s},r={}.hasOwnProperty;f=e("./XMLNode"),_.exports=c=function(u){d(s,u);function s(n){s.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(s.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(s.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),s.prototype.clone=function(){return(0,t.default)(this)},s.prototype.substringData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.insertData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.deleteData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceData=function(n,a,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(n){return s.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)?!(n.data!==this.data):!1},s}(f)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;c=e("./NodeType"),f=e("./XMLCharacterData"),_.exports=d=function(s){r(n,s);function n(a,b){if(n.__super__.constructor.call(this,a),b==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=c.Comment,this.value=this.stringify.comment(b)}return n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=f(i),y=e("babel-runtime/core-js/object/create"),c=f(y);function f(d){return d&&d.__esModule?d:{default:d}}(function(){var d,r,u;r=e("./XMLDOMErrorHandler"),u=e("./XMLDOMStringList"),_.exports=d=function(){function s(){var n;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new r,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=n=(0,c.default)(this.defaultParams)}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new u((0,t.default)(this.defaultParams))}}),s.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},s.prototype.canSetParameter=function(n,a){return!0},s.prototype.setParameter=function(n,a){return a!=null?this.params[n]=a:delete this.params[n]},s}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,_,l){"use strict";(function(){var i;_.exports=i=function(){function t(){}return t.prototype.handleError=function(y){throw new Error(y)},t}()}).call(void 0)},{}],260:[function(e,_,l){"use strict";(function(){var i;_.exports=i=function(){function t(){}return t.prototype.hasFeature=function(y,c){return!0},t.prototype.createDocumentType=function(y,c,f){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(y,c,f){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(y,c){throw new Error("This DOM method is not implemented.")},t}()}).call(void 0)},{}],261:[function(e,_,l){"use strict";(function(){var i;_.exports=i=function(){function t(y){this.arr=y||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(y){return this.arr[y]||null},t.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},t}()}).call(void 0)},{}],262:[function(e,_,l){"use strict";(function(){var i,t,y,c=function(r,u){for(var s in u)f.call(u,s)&&(r[s]=u[s]);function n(){this.constructor=r}return n.prototype=u.prototype,r.prototype=new n,r.__super__=u.prototype,r},f={}.hasOwnProperty;y=e("./XMLNode"),i=e("./NodeType"),_.exports=t=function(d){c(r,d);function r(u,s,n,a,b,p){if(r.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(n==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!b)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(b.indexOf("#")!==0&&(b="#"+b),!b.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(p&&!b.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=i.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(a),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=b}return r.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},r}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,_,l){"use strict";(function(){var i,t,y,c=function(r,u){for(var s in u)f.call(u,s)&&(r[s]=u[s]);function n(){this.constructor=r}return n.prototype=u.prototype,r.prototype=new n,r.__super__=u.prototype,r},f={}.hasOwnProperty;y=e("./XMLNode"),i=e("./NodeType"),_.exports=t=function(d){c(r,d);function r(u,s,n){if(r.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(s),this.type=i.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}return r.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},r}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,_,l){"use strict";(function(){var i,t,y,c,f=function(u,s){for(var n in s)d.call(s,n)&&(u[n]=s[n]);function a(){this.constructor=u}return a.prototype=s.prototype,u.prototype=new a,u.__super__=s.prototype,u},d={}.hasOwnProperty;c=e("./Utility").isObject,y=e("./XMLNode"),i=e("./NodeType"),_.exports=t=function(r){f(u,r);function u(s,n,a,b){if(u.__super__.constructor.call(this,s),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(b==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!n,this.name=this.stringify.name(a),this.type=i.EntityDeclaration,!c(b))this.value=this.stringify.dtdEntityValue(b),this.internal=!0;else{if(!b.pubID&&!b.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a));if(b.pubID&&!b.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));if(this.internal=!1,b.pubID!=null&&(this.pubID=this.stringify.dtdPubID(b.pubID)),b.sysID!=null&&(this.sysID=this.stringify.dtdSysID(b.sysID)),b.nData!=null&&(this.nData=this.stringify.dtdNData(b.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(s){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(s))},u}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,_,l){"use strict";(function(){var i,t,y,c=function(r,u){for(var s in u)f.call(u,s)&&(r[s]=u[s]);function n(){this.constructor=r}return n.prototype=u.prototype,r.prototype=new n,r.__super__=u.prototype,r},f={}.hasOwnProperty;y=e("./XMLNode"),i=e("./NodeType"),_.exports=t=function(d){c(r,d);function r(u,s,n){if(r.__super__.constructor.call(this,u),s==null)throw new Error("Missing DTD notation name. "+this.debugInfo(s));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(s));this.name=this.stringify.name(s),this.type=i.NotationDeclaration,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),r.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},r}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,_,l){"use strict";(function(){var i,t,y,c,f=function(u,s){for(var n in s)d.call(s,n)&&(u[n]=s[n]);function a(){this.constructor=u}return a.prototype=s.prototype,u.prototype=new a,u.__super__=s.prototype,u},d={}.hasOwnProperty;c=e("./Utility").isObject,y=e("./XMLNode"),i=e("./NodeType"),_.exports=t=function(r){f(u,r);function u(s,n,a,b){var p;u.__super__.constructor.call(this,s),c(n)&&(p=n,n=p.version,a=p.encoding,b=p.standalone),n||(n="1.0"),this.type=i.Declaration,this.version=this.stringify.xmlVersion(n),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),b!=null&&(this.standalone=this.stringify.xmlStandalone(b))}return u.prototype.toString=function(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))},u}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s,n=function(p,m){for(var A in m)a.call(m,A)&&(p[A]=m[A]);function T(){this.constructor=p}return T.prototype=m.prototype,p.prototype=new T,p.__super__=m.prototype,p},a={}.hasOwnProperty;s=e("./Utility").isObject,u=e("./XMLNode"),i=e("./NodeType"),t=e("./XMLDTDAttList"),c=e("./XMLDTDEntity"),y=e("./XMLDTDElement"),f=e("./XMLDTDNotation"),r=e("./XMLNamedNodeMap"),_.exports=d=function(b){n(p,b);function p(m,A,T){var x,E,M,O,S,w;if(p.__super__.constructor.call(this,m),this.type=i.DocType,m.children){for(O=m.children,E=0,M=O.length;E<M;E++)if(x=O[E],x.type===i.Element){this.name=x.name;break}}this.documentObject=m,s(A)&&(S=A,A=S.pubID,T=S.sysID),T==null&&(w=[A,T],T=w[0],A=w[1]),A!=null&&(this.pubID=this.stringify.dtdPubID(A)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return Object.defineProperty(p.prototype,"entities",{get:function(){var A,T,x,E,M;for(E={},M=this.children,T=0,x=M.length;T<x;T++)A=M[T],A.type===i.EntityDeclaration&&!A.pe&&(E[A.name]=A);return new r(E)}}),Object.defineProperty(p.prototype,"notations",{get:function(){var A,T,x,E,M;for(E={},M=this.children,T=0,x=M.length;T<x;T++)A=M[T],A.type===i.NotationDeclaration&&(E[A.name]=A);return new r(E)}}),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),p.prototype.element=function(m,A){var T;return T=new y(this,m,A),this.children.push(T),this},p.prototype.attList=function(m,A,T,x,E){var M;return M=new t(this,m,A,T,x,E),this.children.push(M),this},p.prototype.entity=function(m,A){var T;return T=new c(this,!1,m,A),this.children.push(T),this},p.prototype.pEntity=function(m,A){var T;return T=new c(this,!0,m,A),this.children.push(T),this},p.prototype.notation=function(m,A){var T;return T=new f(this,m,A),this.children.push(T),this},p.prototype.toString=function(m){return this.options.writer.docType(this,this.options.writer.filterOptions(m))},p.prototype.ele=function(m,A){return this.element(m,A)},p.prototype.att=function(m,A,T,x,E){return this.attList(m,A,T,x,E)},p.prototype.ent=function(m,A){return this.entity(m,A)},p.prototype.pent=function(m,A){return this.pEntity(m,A)},p.prototype.not=function(m,A){return this.notation(m,A)},p.prototype.up=function(){return this.root()||this.documentObject},p.prototype.isEqualNode=function(m){return p.__super__.isEqualNode.apply(this,arguments).isEqualNode(m)?m.name!==this.name||m.publicId!==this.publicId?!1:!(m.systemId!==this.systemId):!1},p}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s=function(b,p){for(var m in p)n.call(p,m)&&(b[m]=p[m]);function A(){this.constructor=b}return A.prototype=p.prototype,b.prototype=new A,b.__super__=p.prototype,b},n={}.hasOwnProperty;u=e("./Utility").isPlainObject,y=e("./XMLDOMImplementation"),t=e("./XMLDOMConfiguration"),f=e("./XMLNode"),i=e("./NodeType"),r=e("./XMLStringifier"),d=e("./XMLStringWriter"),_.exports=c=function(a){s(b,a);function b(p){b.__super__.constructor.call(this,null),this.name="#document",this.type=i.Document,this.documentURI=null,this.domConfig=new t,p||(p={}),p.writer||(p.writer=new d),this.options=p,this.stringify=new r(p)}return Object.defineProperty(b.prototype,"implementation",{value:new y}),Object.defineProperty(b.prototype,"doctype",{get:function(){var m,A,T,x;for(x=this.children,A=0,T=x.length;A<T;A++)if(m=x[A],m.type===i.DocType)return m;return null}}),Object.defineProperty(b.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].encoding:null}}),Object.defineProperty(b.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(b.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(b.prototype,"origin",{get:function(){return null}}),Object.defineProperty(b.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(b.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(b.prototype,"contentType",{get:function(){return null}}),b.prototype.end=function(p){var m;return m={},p?u(p)&&(m=p,p=this.options.writer):p=this.options.writer,p.document(this,p.filterOptions(m))},b.prototype.toString=function(p){return this.options.writer.document(this,this.options.writer.filterOptions(p))},b.prototype.createElement=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTextNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createComment=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createCDATASection=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createProcessingInstruction=function(p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttribute=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEntityReference=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.importNode=function(p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createElementNS=function(p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttributeNS=function(p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementById=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.adoptNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.renameNode=function(p,m,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByClassName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEvent=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createNodeIterator=function(p,m,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTreeWalker=function(p,m,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},b}(f)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s,n,a,b,p,m,A,T,x,E,M,O,S,w,h,L,C={}.hasOwnProperty;L=e("./Utility"),w=L.isObject,S=L.isFunction,h=L.isPlainObject,O=L.getValue,i=e("./NodeType"),b=e("./XMLDocument"),m=e("./XMLElement"),c=e("./XMLCData"),f=e("./XMLComment"),T=e("./XMLRaw"),M=e("./XMLText"),A=e("./XMLProcessingInstruction"),n=e("./XMLDeclaration"),a=e("./XMLDocType"),d=e("./XMLDTDAttList"),u=e("./XMLDTDEntity"),r=e("./XMLDTDElement"),s=e("./XMLDTDNotation"),y=e("./XMLAttribute"),E=e("./XMLStringifier"),x=e("./XMLStringWriter"),t=e("./WriterState"),_.exports=p=function(){function I(R,B,G){var P;this.name="?xml",this.type=i.Document,R||(R={}),P={},R.writer?h(R.writer)&&(P=R.writer,R.writer=new x):R.writer=new x,this.options=R,this.writer=R.writer,this.writerOptions=this.writer.filterOptions(P),this.stringify=new E(R),this.onDataCallback=B||function(){},this.onEndCallback=G||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return I.prototype.createChildNode=function(R){var B,G,P,oe,z,te,Y,j;switch(R.type){case i.CData:this.cdata(R.value);break;case i.Comment:this.comment(R.value);break;case i.Element:P={},Y=R.attribs;for(G in Y){if(!C.call(Y,G))continue;B=Y[G],P[G]=B.value}this.node(R.name,P);break;case i.Dummy:this.dummy();break;case i.Raw:this.raw(R.value);break;case i.Text:this.text(R.value);break;case i.ProcessingInstruction:this.instruction(R.target,R.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+R.constructor.name)}for(j=R.children,z=0,te=j.length;z<te;z++)oe=j[z],this.createChildNode(oe),oe.type===i.Element&&this.up();return this},I.prototype.dummy=function(){return this},I.prototype.node=function(R,B,G){var P;if(R==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(R));return this.openCurrent(),R=O(R),B==null&&(B={}),B=O(B),w(B)||(P=[B,G],G=P[0],B=P[1]),this.currentNode=new m(this,R,B),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,G!=null&&this.text(G),this},I.prototype.element=function(R,B,G){var P,oe,z,te,Y,j;if(this.currentNode&&this.currentNode.type===i.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(R)||w(R)||S(R))for(te=this.options.noValidation,this.options.noValidation=!0,j=new b(this.options).element("TEMP_ROOT"),j.element(R),this.options.noValidation=te,Y=j.children,oe=0,z=Y.length;oe<z;oe++)P=Y[oe],this.createChildNode(P),P.type===i.Element&&this.up();else this.node(R,B,G);return this},I.prototype.attribute=function(R,B){var G,P;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(R));if(R!=null&&(R=O(R)),w(R))for(G in R){if(!C.call(R,G))continue;P=R[G],this.attribute(G,P)}else S(B)&&(B=B.apply()),this.options.keepNullAttributes&&B==null?this.currentNode.attribs[R]=new y(this,R,""):B!=null&&(this.currentNode.attribs[R]=new y(this,R,B));return this},I.prototype.text=function(R){var B;return this.openCurrent(),B=new M(this,R),this.onData(this.writer.text(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.cdata=function(R){var B;return this.openCurrent(),B=new c(this,R),this.onData(this.writer.cdata(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.comment=function(R){var B;return this.openCurrent(),B=new f(this,R),this.onData(this.writer.comment(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.raw=function(R){var B;return this.openCurrent(),B=new T(this,R),this.onData(this.writer.raw(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.instruction=function(R,B){var G,P,oe,z,te;if(this.openCurrent(),R!=null&&(R=O(R)),B!=null&&(B=O(B)),Array.isArray(R))for(G=0,z=R.length;G<z;G++)P=R[G],this.instruction(P);else if(w(R))for(P in R){if(!C.call(R,P))continue;oe=R[P],this.instruction(P,oe)}else S(B)&&(B=B.apply()),te=new A(this,R,B),this.onData(this.writer.processingInstruction(te,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},I.prototype.declaration=function(R,B,G){var P;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return P=new n(this,R,B,G),this.onData(this.writer.declaration(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.doctype=function(R,B,G){if(this.openCurrent(),R==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 a(this,B,G),this.currentNode.rootNodeName=R,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},I.prototype.dtdElement=function(R,B){var G;return this.openCurrent(),G=new r(this,R,B),this.onData(this.writer.dtdElement(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.attList=function(R,B,G,P,oe){var z;return this.openCurrent(),z=new d(this,R,B,G,P,oe),this.onData(this.writer.dtdAttList(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.entity=function(R,B){var G;return this.openCurrent(),G=new u(this,!1,R,B),this.onData(this.writer.dtdEntity(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.pEntity=function(R,B){var G;return this.openCurrent(),G=new u(this,!0,R,B),this.onData(this.writer.dtdEntity(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.notation=function(R,B){var G;return this.openCurrent(),G=new s(this,R,B),this.onData(this.writer.dtdNotation(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},I.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},I.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},I.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},I.prototype.openNode=function(R){var B,G,P,oe;if(!R.isOpen){if(!this.root&&this.currentLevel===0&&R.type===i.Element&&(this.root=R),G="",R.type===i.Element){this.writerOptions.state=t.OpenTag,G=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<"+R.name,oe=R.attribs;for(P in oe){if(!C.call(oe,P))continue;B=oe[P],G+=this.writer.attribute(B,this.writerOptions,this.currentLevel)}G+=(R.children?">":"/>")+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,G=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+R.rootNodeName,R.pubID&&R.sysID?G+=' PUBLIC "'+R.pubID+'" "'+R.sysID+'"':R.sysID&&(G+=' SYSTEM "'+R.sysID+'"'),R.children?(G+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,G+=">"),G+=this.writer.endline(R,this.writerOptions,this.currentLevel);return this.onData(G,this.currentLevel),R.isOpen=!0}},I.prototype.closeNode=function(R){var B;if(!R.isClosed)return B="",this.writerOptions.state=t.CloseTag,R.type===i.Element?B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"</"+R.name+">"+this.writer.endline(R,this.writerOptions,this.currentLevel):B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(B,this.currentLevel),R.isClosed=!0},I.prototype.onData=function(R,B){return this.documentStarted=!0,this.onDataCallback(R,B+1)},I.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},I.prototype.debugInfo=function(R){return R==null?"":"node: <"+R+">"},I.prototype.ele=function(){return this.element.apply(this,arguments)},I.prototype.nod=function(R,B,G){return this.node(R,B,G)},I.prototype.txt=function(R){return this.text(R)},I.prototype.dat=function(R){return this.cdata(R)},I.prototype.com=function(R){return this.comment(R)},I.prototype.ins=function(R,B){return this.instruction(R,B)},I.prototype.dec=function(R,B,G){return this.declaration(R,B,G)},I.prototype.dtd=function(R,B,G){return this.doctype(R,B,G)},I.prototype.e=function(R,B,G){return this.element(R,B,G)},I.prototype.n=function(R,B,G){return this.node(R,B,G)},I.prototype.t=function(R){return this.text(R)},I.prototype.d=function(R){return this.cdata(R)},I.prototype.c=function(R){return this.comment(R)},I.prototype.r=function(R){return this.raw(R)},I.prototype.i=function(R,B){return this.instruction(R,B)},I.prototype.att=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.a=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.ent=function(R,B){return this.entity(R,B)},I.prototype.pent=function(R,B){return this.pEntity(R,B)},I.prototype.not=function(R,B){return this.notation(R,B)},I}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;d=e("./XMLNode"),c=e("./NodeType"),_.exports=f=function(s){r(n,s);function n(a){n.__super__.constructor.call(this,a),this.type=c.Dummy}return n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return""},n}(d)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r,u,s,n,a,b,p=function(T,x){for(var E in x)m.call(x,E)&&(T[E]=x[E]);function M(){this.constructor=T}return M.prototype=x.prototype,T.prototype=new M,T.__super__=x.prototype,T},m={}.hasOwnProperty;b=e("./Utility"),a=b.isObject,n=b.isFunction,s=b.getValue,u=e("./XMLNode"),c=e("./NodeType"),f=e("./XMLAttribute"),r=e("./XMLNamedNodeMap"),_.exports=d=function(A){p(T,A);function T(x,E,M){var O,S,w,h;if(T.__super__.constructor.call(this,x),E==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(E),this.type=c.Element,this.attribs={},this.schemaTypeInfo=null,M!=null&&this.attribute(M),x.type===c.Document&&(this.isRoot=!0,this.documentObject=x,x.rootObject=this,x.children)){for(h=x.children,S=0,w=h.length;S<w;S++)if(O=h[S],O.type===c.DocType){O.name=this.name;break}}}return Object.defineProperty(T.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(T.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(T.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new r(this.attribs)),this.attributeMap}}),T.prototype.clone=function(){var x,E,M,O;M=(0,t.default)(this),M.isRoot&&(M.documentObject=null),M.attribs={},O=this.attribs;for(E in O){if(!m.call(O,E))continue;x=O[E],M.attribs[E]=x.clone()}return M.children=[],this.children.forEach(function(S){var w;return w=S.clone(),w.parent=M,M.children.push(w)}),M},T.prototype.attribute=function(x,E){var M,O;if(x!=null&&(x=s(x)),a(x))for(M in x){if(!m.call(x,M))continue;O=x[M],this.attribute(M,O)}else n(E)&&(E=E.apply()),this.options.keepNullAttributes&&E==null?this.attribs[x]=new f(this,x,""):E!=null&&(this.attribs[x]=new f(this,x,E));return this},T.prototype.removeAttribute=function(x){var E,M,O;if(x==null)throw new Error("Missing attribute name. "+this.debugInfo());if(x=s(x),Array.isArray(x))for(M=0,O=x.length;M<O;M++)E=x[M],delete this.attribs[E];else delete this.attribs[x];return this},T.prototype.toString=function(x){return this.options.writer.element(this,this.options.writer.filterOptions(x))},T.prototype.att=function(x,E){return this.attribute(x,E)},T.prototype.a=function(x,E){return this.attribute(x,E)},T.prototype.getAttribute=function(x){return this.attribs.hasOwnProperty(x)?this.attribs[x].value:null},T.prototype.setAttribute=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNode=function(x){return this.attribs.hasOwnProperty(x)?this.attribs[x]:null},T.prototype.setAttributeNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNS=function(x,E,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNodeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNodeNS=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.hasAttribute=function(x){return this.attribs.hasOwnProperty(x)},T.prototype.hasAttributeNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttribute=function(x,E){return this.attribs.hasOwnProperty(x)?this.attribs[x].isId:E},T.prototype.setIdAttributeNS=function(x,E,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttributeNode=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(x,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByClassName=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isEqualNode=function(x){var E,M,O;if(!T.__super__.isEqualNode.apply(this,arguments).isEqualNode(x))return!1;if(x.namespaceURI!==this.namespaceURI)return!1;if(x.prefix!==this.prefix)return!1;if(x.localName!==this.localName)return!1;if(x.attribs.length!==this.attribs.length)return!1;for(E=M=0,O=this.attribs.length-1;0<=O?M<=O:M>=O;E=0<=O?++M:--M)if(!this.attribs[E].isEqualNode(x.attribs[E]))return!1;return!0},T}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c;_.exports=c=function(){function f(d){this.nodes=d}return Object.defineProperty(f.prototype,"length",{get:function(){return(0,t.default)(this.nodes).length||0}}),f.prototype.clone=function(){return this.nodes=null},f.prototype.getNamedItem=function(d){return this.nodes[d]},f.prototype.setNamedItem=function(d){var r;return r=this.nodes[d.nodeName],this.nodes[d.nodeName]=d,r||null},f.prototype.removeNamedItem=function(d){var r;return r=this.nodes[d],delete this.nodes[d],r||null},f.prototype.item=function(d){return this.nodes[(0,t.default)(this.nodes)[d]]||null},f.prototype.getNamedItemNS=function(d,r){throw new Error("This DOM method is not implemented.")},f.prototype.setNamedItemNS=function(d){throw new Error("This DOM method is not implemented.")},f.prototype.removeNamedItemNS=function(d,r){throw new Error("This DOM method is not implemented.")},f}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s,n,a,b,p,m,A,T,x,E,M,O={}.hasOwnProperty;M=e("./Utility"),E=M.isObject,x=M.isFunction,T=M.isEmpty,A=M.getValue,u=null,y=null,c=null,f=null,d=null,p=null,m=null,b=null,r=null,t=null,a=null,s=null,i=null,_.exports=n=function(){function S(w){this.parent=w,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=e("./XMLElement"),y=e("./XMLCData"),c=e("./XMLComment"),f=e("./XMLDeclaration"),d=e("./XMLDocType"),p=e("./XMLRaw"),m=e("./XMLText"),b=e("./XMLProcessingInstruction"),r=e("./XMLDummy"),t=e("./NodeType"),a=e("./XMLNodeList"),s=e("./XMLNamedNodeMap"),i=e("./DocumentPosition"))}return Object.defineProperty(S.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(S.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(S.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(S.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(S.prototype,"previousSibling",{get:function(){var h;return h=this.parent.children.indexOf(this),this.parent.children[h-1]||null}}),Object.defineProperty(S.prototype,"nextSibling",{get:function(){var h;return h=this.parent.children.indexOf(this),this.parent.children[h+1]||null}}),Object.defineProperty(S.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(S.prototype,"textContent",{get:function(){var h,L,C,I,R;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(R="",I=this.children,L=0,C=I.length;L<C;L++)h=I[L],h.textContent&&(R+=h.textContent);return R}else return null},set:function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),S.prototype.setParent=function(w){var h,L,C,I,R;for(this.parent=w,w&&(this.options=w.options,this.stringify=w.stringify),I=this.children,R=[],L=0,C=I.length;L<C;L++)h=I[L],R.push(h.setParent(this));return R},S.prototype.element=function(w,h,L){var C,I,R,B,G,P,oe,z,te,Y,j;if(P=null,h===null&&L==null&&(te=[{},null],h=te[0],L=te[1]),h==null&&(h={}),h=A(h),E(h)||(Y=[h,L],L=Y[0],h=Y[1]),w!=null&&(w=A(w)),Array.isArray(w))for(R=0,oe=w.length;R<oe;R++)I=w[R],P=this.element(I);else if(x(w))P=this.element(w.apply());else if(E(w))for(G in w){if(!O.call(w,G))continue;if(j=w[G],x(j)&&(j=j.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&G.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(G.substr(this.stringify.convertAttKey.length),j);else if(!this.options.separateArrayItems&&Array.isArray(j)&&T(j))P=this.dummy();else if(E(j)&&T(j))P=this.element(G);else if(!this.options.keepNullNodes&&j==null)P=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(j))for(B=0,z=j.length;B<z;B++)I=j[B],C={},C[G]=I,P=this.element(C);else E(j)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&G.indexOf(this.stringify.convertTextKey)===0?P=this.element(j):(P=this.element(G),P.element(j)):P=this.element(G,j)}else!this.options.keepNullNodes&&L===null?P=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&w.indexOf(this.stringify.convertTextKey)===0?P=this.text(L):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&w.indexOf(this.stringify.convertCDataKey)===0?P=this.cdata(L):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&w.indexOf(this.stringify.convertCommentKey)===0?P=this.comment(L):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&w.indexOf(this.stringify.convertRawKey)===0?P=this.raw(L):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&w.indexOf(this.stringify.convertPIKey)===0?P=this.instruction(w.substr(this.stringify.convertPIKey.length),L):P=this.node(w,h,L);if(P==null)throw new Error("Could not create any elements with: "+w+". "+this.debugInfo());return P},S.prototype.insertBefore=function(w,h,L){var C,I,R,B,G;if(w!=null?w.type:void 0)return R=w,B=h,R.setParent(this),B?(I=children.indexOf(B),G=children.splice(I),children.push(R),Array.prototype.push.apply(children,G)):children.push(R),R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return I=this.parent.children.indexOf(this),G=this.parent.children.splice(I),C=this.parent.element(w,h,L),Array.prototype.push.apply(this.parent.children,G),C},S.prototype.insertAfter=function(w,h,L){var C,I,R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return I=this.parent.children.indexOf(this),R=this.parent.children.splice(I+1),C=this.parent.element(w,h,L),Array.prototype.push.apply(this.parent.children,R),C},S.prototype.remove=function(){var w,h;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return w=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[w,w-w+1].concat(h=[])),this.parent},S.prototype.node=function(w,h,L){var C,I;return w!=null&&(w=A(w)),h||(h={}),h=A(h),E(h)||(I=[h,L],L=I[0],h=I[1]),C=new u(this,w,h),L!=null&&C.text(L),this.children.push(C),C},S.prototype.text=function(w){var h;return E(w)&&this.element(w),h=new m(this,w),this.children.push(h),this},S.prototype.cdata=function(w){var h;return h=new y(this,w),this.children.push(h),this},S.prototype.comment=function(w){var h;return h=new c(this,w),this.children.push(h),this},S.prototype.commentBefore=function(w){var h,L,C;return L=this.parent.children.indexOf(this),C=this.parent.children.splice(L),h=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,C),this},S.prototype.commentAfter=function(w){var h,L,C;return L=this.parent.children.indexOf(this),C=this.parent.children.splice(L+1),h=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,C),this},S.prototype.raw=function(w){var h;return h=new p(this,w),this.children.push(h),this},S.prototype.dummy=function(){var w;return w=new r(this),w},S.prototype.instruction=function(w,h){var L,C,I,R,B;if(w!=null&&(w=A(w)),h!=null&&(h=A(h)),Array.isArray(w))for(R=0,B=w.length;R<B;R++)L=w[R],this.instruction(L);else if(E(w))for(L in w){if(!O.call(w,L))continue;C=w[L],this.instruction(L,C)}else x(h)&&(h=h.apply()),I=new b(this,w,h),this.children.push(I);return this},S.prototype.instructionBefore=function(w,h){var L,C,I;return C=this.parent.children.indexOf(this),I=this.parent.children.splice(C),L=this.parent.instruction(w,h),Array.prototype.push.apply(this.parent.children,I),this},S.prototype.instructionAfter=function(w,h){var L,C,I;return C=this.parent.children.indexOf(this),I=this.parent.children.splice(C+1),L=this.parent.instruction(w,h),Array.prototype.push.apply(this.parent.children,I),this},S.prototype.declaration=function(w,h,L){var C,I;return C=this.document(),I=new f(C,w,h,L),C.children.length===0?C.children.unshift(I):C.children[0].type===t.Declaration?C.children[0]=I:C.children.unshift(I),C.root()||C},S.prototype.dtd=function(w,h){var L,C,I,R,B,G,P,oe,z,te;for(C=this.document(),I=new d(C,w,h),z=C.children,R=B=0,P=z.length;B<P;R=++B)if(L=z[R],L.type===t.DocType)return C.children[R]=I,I;for(te=C.children,R=G=0,oe=te.length;G<oe;R=++G)if(L=te[R],L.isRoot)return C.children.splice(R,0,I),I;return C.children.push(I),I},S.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},S.prototype.root=function(){var w;for(w=this;w;){if(w.type===t.Document)return w.rootObject;if(w.isRoot)return w;w=w.parent}},S.prototype.document=function(){var w;for(w=this;w;){if(w.type===t.Document)return w;w=w.parent}},S.prototype.end=function(w){return this.document().end(w)},S.prototype.prev=function(){var w;if(w=this.parent.children.indexOf(this),w<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[w-1]},S.prototype.next=function(){var w;if(w=this.parent.children.indexOf(this),w===-1||w===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[w+1]},S.prototype.importDocument=function(w){var h;return h=w.root().clone(),h.parent=this,h.isRoot=!1,this.children.push(h),this},S.prototype.debugInfo=function(w){var h,L;return w=w||this.name,w==null&&!((h=this.parent)!=null?h.name:void 0)?"":w==null?"parent: <"+this.parent.name+">":((L=this.parent)!=null?L.name:void 0)?"node: <"+w+">, parent: <"+this.parent.name+">":"node: <"+w+">"},S.prototype.ele=function(w,h,L){return this.element(w,h,L)},S.prototype.nod=function(w,h,L){return this.node(w,h,L)},S.prototype.txt=function(w){return this.text(w)},S.prototype.dat=function(w){return this.cdata(w)},S.prototype.com=function(w){return this.comment(w)},S.prototype.ins=function(w,h){return this.instruction(w,h)},S.prototype.doc=function(){return this.document()},S.prototype.dec=function(w,h,L){return this.declaration(w,h,L)},S.prototype.e=function(w,h,L){return this.element(w,h,L)},S.prototype.n=function(w,h,L){return this.node(w,h,L)},S.prototype.t=function(w){return this.text(w)},S.prototype.d=function(w){return this.cdata(w)},S.prototype.c=function(w){return this.comment(w)},S.prototype.r=function(w){return this.raw(w)},S.prototype.i=function(w,h){return this.instruction(w,h)},S.prototype.u=function(){return this.up()},S.prototype.importXMLBuilder=function(w){return this.importDocument(w)},S.prototype.replaceChild=function(w,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.removeChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.appendChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.hasChildNodes=function(){return this.children.length!==0},S.prototype.cloneNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isSupported=function(w,h){return!0},S.prototype.hasAttributes=function(){return this.attribs.length!==0},S.prototype.compareDocumentPosition=function(w){var h,L;return h=this,h===w?0:this.document()!==w.document()?(L=i.Disconnected|i.ImplementationSpecific,Math.random()<.5?L|=i.Preceding:L|=i.Following,L):h.isAncestor(w)?i.Contains|i.Preceding:h.isDescendant(w)?i.Contains|i.Following:h.isPreceding(w)?i.Preceding:i.Following},S.prototype.isSameNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupPrefix=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isDefaultNamespace=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupNamespaceURI=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isEqualNode=function(w){var h,L,C;if(w.nodeType!==this.nodeType)return!1;if(w.children.length!==this.children.length)return!1;for(h=L=0,C=this.children.length-1;0<=C?L<=C:L>=C;h=0<=C?++L:--L)if(!this.children[h].isEqualNode(w.children[h]))return!1;return!0},S.prototype.getFeature=function(w,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.setUserData=function(w,h,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.getUserData=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.contains=function(w){return w?w===this||this.isDescendant(w):!1},S.prototype.isDescendant=function(w){var h,L,C,I,R;for(R=this.children,C=0,I=R.length;C<I;C++){if(h=R[C],w===h)return!0;if(L=h.isDescendant(w),L)return!0}return!1},S.prototype.isAncestor=function(w){return w.isDescendant(this)},S.prototype.isPreceding=function(w){var h,L;return h=this.treePosition(w),L=this.treePosition(this),h===-1||L===-1?!1:h<L},S.prototype.isFollowing=function(w){var h,L;return h=this.treePosition(w),L=this.treePosition(this),h===-1||L===-1?!1:h>L},S.prototype.treePosition=function(w){var h,L;return L=0,h=!1,this.foreachTreeNode(this.document(),function(C){if(L++,!h&&C===w)return h=!0}),h?L:-1},S.prototype.foreachTreeNode=function(w,h){var L,C,I,R,B;for(w||(w=this.document()),R=w.children,C=0,I=R.length;C<I;C++){if(L=R[C],B=h(L))return B;if(B=this.foreachTreeNode(L,h),B)return B}},S}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(e,_,l){"use strict";(function(){var i;_.exports=i=function(){function t(y){this.nodes=y}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(y){return this.nodes[y]||null},t}()}).call(void 0)},{}],275:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;c=e("./NodeType"),f=e("./XMLCharacterData"),_.exports=d=function(s){r(n,s);function n(a,b,p){if(n.__super__.constructor.call(this,a),b==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=c.ProcessingInstruction,this.target=this.stringify.insTarget(b),this.name=this.target,p&&(this.value=this.stringify.insValue(p))}return n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},n.prototype.isEqualNode=function(a){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.target!==this.target):!1},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;c=e("./NodeType"),f=e("./XMLNode"),_.exports=d=function(s){r(n,s);function n(a,b){if(n.__super__.constructor.call(this,a),b==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=c.Raw,this.value=this.stringify.raw(b)}return n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(e,_,l){"use strict";(function(){var i,t,y,c,f=function(u,s){for(var n in s)d.call(s,n)&&(u[n]=s[n]);function a(){this.constructor=u}return a.prototype=s.prototype,u.prototype=new a,u.__super__=s.prototype,u},d={}.hasOwnProperty;i=e("./NodeType"),c=e("./XMLWriterBase"),t=e("./WriterState"),_.exports=y=function(r){f(u,r);function u(s,n){this.stream=s,u.__super__.constructor.call(this,n)}return u.prototype.endline=function(s,n,a){return s.isLastRootNode&&n.state===t.CloseTag?"":u.__super__.endline.call(this,s,n,a)},u.prototype.document=function(s,n){var a,b,p,m,A,T,x,E,M;for(x=s.children,b=p=0,A=x.length;p<A;b=++p)a=x[b],a.isLastRootNode=b===s.children.length-1;for(n=this.filterOptions(n),E=s.children,M=[],m=0,T=E.length;m<T;m++)a=E[m],M.push(this.writeChildNode(a,n,0));return M},u.prototype.attribute=function(s,n,a){return this.stream.write(u.__super__.attribute.call(this,s,n,a))},u.prototype.cdata=function(s,n,a){return this.stream.write(u.__super__.cdata.call(this,s,n,a))},u.prototype.comment=function(s,n,a){return this.stream.write(u.__super__.comment.call(this,s,n,a))},u.prototype.declaration=function(s,n,a){return this.stream.write(u.__super__.declaration.call(this,s,n,a))},u.prototype.docType=function(s,n,a){var b,p,m,A;if(a||(a=0),this.openNode(s,n,a),n.state=t.OpenTag,this.stream.write(this.indent(s,n,a)),this.stream.write("<!DOCTYPE "+s.root().name),s.pubID&&s.sysID?this.stream.write(' PUBLIC "'+s.pubID+'" "'+s.sysID+'"'):s.sysID&&this.stream.write(' SYSTEM "'+s.sysID+'"'),s.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(s,n,a)),n.state=t.InsideTag,A=s.children,p=0,m=A.length;p<m;p++)b=A[p],this.writeChildNode(b,n,a+1);n.state=t.CloseTag,this.stream.write("]")}return n.state=t.CloseTag,this.stream.write(n.spaceBeforeSlash+">"),this.stream.write(this.endline(s,n,a)),n.state=t.None,this.closeNode(s,n,a)},u.prototype.element=function(s,n,a){var b,p,m,A,T,x,E,M,O,S;a||(a=0),this.openNode(s,n,a),n.state=t.OpenTag,this.stream.write(this.indent(s,n,a)+"<"+s.name),O=s.attribs;for(E in O){if(!d.call(O,E))continue;b=O[E],this.attribute(b,n,a)}if(m=s.children.length,A=m===0?null:s.children[0],m===0||s.children.every(function(w){return(w.type===i.Text||w.type===i.Raw)&&w.value===""}))n.allowEmpty?(this.stream.write(">"),n.state=t.CloseTag,this.stream.write("</"+s.name+">")):(n.state=t.CloseTag,this.stream.write(n.spaceBeforeSlash+"/>"));else if(n.pretty&&m===1&&(A.type===i.Text||A.type===i.Raw)&&A.value!=null)this.stream.write(">"),n.state=t.InsideTag,n.suppressPrettyCount++,M=!0,this.writeChildNode(A,n,a+1),n.suppressPrettyCount--,M=!1,n.state=t.CloseTag,this.stream.write("</"+s.name+">");else{for(this.stream.write(">"+this.endline(s,n,a)),n.state=t.InsideTag,S=s.children,T=0,x=S.length;T<x;T++)p=S[T],this.writeChildNode(p,n,a+1);n.state=t.CloseTag,this.stream.write(this.indent(s,n,a)+"</"+s.name+">")}return this.stream.write(this.endline(s,n,a)),n.state=t.None,this.closeNode(s,n,a)},u.prototype.processingInstruction=function(s,n,a){return this.stream.write(u.__super__.processingInstruction.call(this,s,n,a))},u.prototype.raw=function(s,n,a){return this.stream.write(u.__super__.raw.call(this,s,n,a))},u.prototype.text=function(s,n,a){return this.stream.write(u.__super__.text.call(this,s,n,a))},u.prototype.dtdAttList=function(s,n,a){return this.stream.write(u.__super__.dtdAttList.call(this,s,n,a))},u.prototype.dtdElement=function(s,n,a){return this.stream.write(u.__super__.dtdElement.call(this,s,n,a))},u.prototype.dtdEntity=function(s,n,a){return this.stream.write(u.__super__.dtdEntity.call(this,s,n,a))},u.prototype.dtdNotation=function(s,n,a){return this.stream.write(u.__super__.dtdNotation.call(this,s,n,a))},u}(c)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,_,l){"use strict";(function(){var i,t,y=function(d,r){for(var u in r)c.call(r,u)&&(d[u]=r[u]);function s(){this.constructor=d}return s.prototype=r.prototype,d.prototype=new s,d.__super__=r.prototype,d},c={}.hasOwnProperty;t=e("./XMLWriterBase"),_.exports=i=function(f){y(d,f);function d(r){d.__super__.constructor.call(this,r)}return d.prototype.document=function(r,u){var s,n,a,b,p;for(u=this.filterOptions(u),b="",p=r.children,n=0,a=p.length;n<a;n++)s=p[n],b+=this.writeChildNode(s,u,0);return u.pretty&&b.slice(-u.newline.length)===u.newline&&(b=b.slice(0,-u.newline.length)),b},d}(t)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(e,_,l){"use strict";(function(){var i,t=function(f,d){return function(){return f.apply(d,arguments)}},y={}.hasOwnProperty;_.exports=i=function(){function c(f){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var d,r,u;f||(f={}),this.options=f,this.options.version||(this.options.version="1.0"),r=f.stringify||{};for(d in r){if(!y.call(r,d))continue;u=r[d],this[d]=u}}return c.prototype.name=function(f){return this.options.noValidation?f:this.assertLegalName(""+f||"")},c.prototype.text=function(f){return this.options.noValidation?f:this.assertLegalChar(this.textEscape(""+f||""))},c.prototype.cdata=function(f){return this.options.noValidation?f:(f=""+f||"",f=f.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(f))},c.prototype.comment=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+f);return this.assertLegalChar(f)},c.prototype.raw=function(f){return this.options.noValidation?f:""+f||""},c.prototype.attValue=function(f){return this.options.noValidation?f:this.assertLegalChar(this.attEscape(f=""+f||""))},c.prototype.insTarget=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.insValue=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/\?>/))throw new Error("Invalid processing instruction value: "+f);return this.assertLegalChar(f)},c.prototype.xmlVersion=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+f);return f},c.prototype.xmlEncoding=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+f);return this.assertLegalChar(f)},c.prototype.xmlStandalone=function(f){return this.options.noValidation?f:f?"yes":"no"},c.prototype.dtdPubID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdSysID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdElementValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdAttType=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdAttDefault=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdEntityValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.dtdNData=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},c.prototype.convertAttKey="@",c.prototype.convertPIKey="?",c.prototype.convertTextKey="#text",c.prototype.convertCDataKey="#cdata",c.prototype.convertCommentKey="#comment",c.prototype.convertRawKey="#raw",c.prototype.assertLegalChar=function(f){var d,r;if(this.options.noValidation)return f;if(d="",this.options.version==="1.0"){if(d=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=f.match(d))throw new Error("Invalid character in string: "+f+" at index "+r.index)}else if(this.options.version==="1.1"&&(d=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=f.match(d)))throw new Error("Invalid character in string: "+f+" at index "+r.index);return f},c.prototype.assertLegalName=function(f){var d;if(this.options.noValidation)return f;if(this.assertLegalChar(f),d=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!f.match(d))throw new Error("Invalid character in name");return f},c.prototype.textEscape=function(f){var d;return this.options.noValidation?f:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(d,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},c.prototype.attEscape=function(f){var d;return this.options.noValidation?f:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(d,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},c}()}).call(void 0)},{}],280:[function(e,_,l){"use strict";var i=e("babel-runtime/core-js/object/create"),t=y(i);function y(c){return c&&c.__esModule?c:{default:c}}(function(){var c,f,d,r=function(n,a){for(var b in a)u.call(a,b)&&(n[b]=a[b]);function p(){this.constructor=n}return p.prototype=a.prototype,n.prototype=new p,n.__super__=a.prototype,n},u={}.hasOwnProperty;c=e("./NodeType"),f=e("./XMLCharacterData"),_.exports=d=function(s){r(n,s);function n(a,b){if(n.__super__.constructor.call(this,a),b==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=c.Text,this.value=this.stringify.text(b)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var b,p,m;for(m="",p=this.previousSibling;p;)m=p.data+m,p=p.previousSibling;for(m+=this.data,b=this.nextSibling;b;)m=m+b.data,b=b.nextSibling;return m}}),n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},n.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s,n,a,b,p,m,A,T,x,E={}.hasOwnProperty;x=e("./Utility").assign,i=e("./NodeType"),s=e("./XMLDeclaration"),n=e("./XMLDocType"),y=e("./XMLCData"),c=e("./XMLComment"),b=e("./XMLElement"),m=e("./XMLRaw"),A=e("./XMLText"),p=e("./XMLProcessingInstruction"),a=e("./XMLDummy"),f=e("./XMLDTDAttList"),d=e("./XMLDTDElement"),r=e("./XMLDTDEntity"),u=e("./XMLDTDNotation"),t=e("./WriterState"),_.exports=T=function(){function M(O){var S,w,h;O||(O={}),this.options=O,w=O.writer||{};for(S in w){if(!E.call(w,S))continue;h=w[S],this["_"+S]=this[S],this[S]=h}}return M.prototype.filterOptions=function(O){var S,w,h,L,C,I,R,B;return O||(O={}),O=x({},this.options,O),S={writer:this},S.pretty=O.pretty||!1,S.allowEmpty=O.allowEmpty||!1,S.indent=(w=O.indent)!=null?w:" ",S.newline=(h=O.newline)!=null?h:`
|
|
|
`,S.offset=(L=O.offset)!=null?L:0,S.dontPrettyTextNodes=(C=(I=O.dontPrettyTextNodes)!=null?I:O.dontprettytextnodes)!=null?C:0,S.spaceBeforeSlash=(R=(B=O.spaceBeforeSlash)!=null?B:O.spacebeforeslash)!=null?R:"",S.spaceBeforeSlash===!0&&(S.spaceBeforeSlash=" "),S.suppressPrettyCount=0,S.user={},S.state=t.None,S},M.prototype.indent=function(O,S,w){var h;return!S.pretty||S.suppressPrettyCount?"":S.pretty&&(h=(w||0)+S.offset+1,h>0)?new Array(h).join(S.indent):""},M.prototype.endline=function(O,S,w){return!S.pretty||S.suppressPrettyCount?"":S.newline},M.prototype.attribute=function(O,S,w){var h;return this.openAttribute(O,S,w),h=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,S,w),h},M.prototype.cdata=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<![CDATA[",S.state=t.InsideTag,h+=O.value,S.state=t.CloseTag,h+="]]>"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.comment=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<!-- ",S.state=t.InsideTag,h+=O.value,S.state=t.CloseTag,h+=" -->"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.declaration=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<?xml",S.state=t.InsideTag,h+=' version="'+O.version+'"',O.encoding!=null&&(h+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(h+=' standalone="'+O.standalone+'"'),S.state=t.CloseTag,h+=S.spaceBeforeSlash+"?>",h+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.docType=function(O,S,w){var h,L,C,I,R;if(w||(w=0),this.openNode(O,S,w),S.state=t.OpenTag,I=this.indent(O,S,w),I+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?I+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(I+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(I+=" [",I+=this.endline(O,S,w),S.state=t.InsideTag,R=O.children,L=0,C=R.length;L<C;L++)h=R[L],I+=this.writeChildNode(h,S,w+1);S.state=t.CloseTag,I+="]"}return S.state=t.CloseTag,I+=S.spaceBeforeSlash+">",I+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),I},M.prototype.element=function(O,S,w){var h,L,C,I,R,B,G,P,oe,z,te,Y,j,F;w||(w=0),z=!1,te="",this.openNode(O,S,w),S.state=t.OpenTag,te+=this.indent(O,S,w)+"<"+O.name,Y=O.attribs;for(oe in Y){if(!E.call(Y,oe))continue;h=Y[oe],te+=this.attribute(h,S,w)}if(C=O.children.length,I=C===0?null:O.children[0],C===0||O.children.every(function(V){return(V.type===i.Text||V.type===i.Raw)&&V.value===""}))S.allowEmpty?(te+=">",S.state=t.CloseTag,te+="</"+O.name+">"+this.endline(O,S,w)):(S.state=t.CloseTag,te+=S.spaceBeforeSlash+"/>"+this.endline(O,S,w));else if(S.pretty&&C===1&&(I.type===i.Text||I.type===i.Raw)&&I.value!=null)te+=">",S.state=t.InsideTag,S.suppressPrettyCount++,z=!0,te+=this.writeChildNode(I,S,w+1),S.suppressPrettyCount--,z=!1,S.state=t.CloseTag,te+="</"+O.name+">"+this.endline(O,S,w);else{if(S.dontPrettyTextNodes){for(j=O.children,R=0,G=j.length;R<G;R++)if(L=j[R],(L.type===i.Text||L.type===i.Raw)&&L.value!=null){S.suppressPrettyCount++,z=!0;break}}for(te+=">"+this.endline(O,S,w),S.state=t.InsideTag,F=O.children,B=0,P=F.length;B<P;B++)L=F[B],te+=this.writeChildNode(L,S,w+1);S.state=t.CloseTag,te+=this.indent(O,S,w)+"</"+O.name+">",z&&S.suppressPrettyCount--,te+=this.endline(O,S,w),S.state=t.None}return this.closeNode(O,S,w),te},M.prototype.writeChildNode=function(O,S,w){switch(O.type){case i.CData:return this.cdata(O,S,w);case i.Comment:return this.comment(O,S,w);case i.Element:return this.element(O,S,w);case i.Raw:return this.raw(O,S,w);case i.Text:return this.text(O,S,w);case i.ProcessingInstruction:return this.processingInstruction(O,S,w);case i.Dummy:return"";case i.Declaration:return this.declaration(O,S,w);case i.DocType:return this.docType(O,S,w);case i.AttributeDeclaration:return this.dtdAttList(O,S,w);case i.ElementDeclaration:return this.dtdElement(O,S,w);case i.EntityDeclaration:return this.dtdEntity(O,S,w);case i.NotationDeclaration:return this.dtdNotation(O,S,w);default:throw new Error("Unknown XML node type: "+O.constructor.name)}},M.prototype.processingInstruction=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<?",S.state=t.InsideTag,h+=O.target,O.value&&(h+=" "+O.value),S.state=t.CloseTag,h+=S.spaceBeforeSlash+"?>",h+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.raw=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w),S.state=t.InsideTag,h+=O.value,S.state=t.CloseTag,h+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.text=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w),S.state=t.InsideTag,h+=O.value,S.state=t.CloseTag,h+=this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.dtdAttList=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<!ATTLIST",S.state=t.InsideTag,h+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(h+=" "+O.defaultValueType),O.defaultValue&&(h+=' "'+O.defaultValue+'"'),S.state=t.CloseTag,h+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.dtdElement=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<!ELEMENT",S.state=t.InsideTag,h+=" "+O.name+" "+O.value,S.state=t.CloseTag,h+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.dtdEntity=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<!ENTITY",S.state=t.InsideTag,O.pe&&(h+=" %"),h+=" "+O.name,O.value?h+=' "'+O.value+'"':(O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),O.nData&&(h+=" NDATA "+O.nData)),S.state=t.CloseTag,h+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.dtdNotation=function(O,S,w){var h;return this.openNode(O,S,w),S.state=t.OpenTag,h=this.indent(O,S,w)+"<!NOTATION",S.state=t.InsideTag,h+=" "+O.name,O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?h+=' PUBLIC "'+O.pubID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),S.state=t.CloseTag,h+=S.spaceBeforeSlash+">"+this.endline(O,S,w),S.state=t.None,this.closeNode(O,S,w),h},M.prototype.openNode=function(O,S,w){},M.prototype.closeNode=function(O,S,w){},M.prototype.openAttribute=function(O,S,w){},M.prototype.closeAttribute=function(O,S,w){},M}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,_,l){"use strict";(function(){var i,t,y,c,f,d,r,u,s,n;n=e("./Utility"),u=n.assign,s=n.isFunction,y=e("./XMLDOMImplementation"),c=e("./XMLDocument"),f=e("./XMLDocumentCB"),r=e("./XMLStringWriter"),d=e("./XMLStreamWriter"),i=e("./NodeType"),t=e("./WriterState"),_.exports.create=function(a,b,p,m){var A,T;if(a==null)throw new Error("Root element needs a name.");return m=u({},b,p,m),A=new c(m),T=A.element(a),m.headless||(A.declaration(m),(m.pubID!=null||m.sysID!=null)&&A.dtd(m)),T},_.exports.begin=function(a,b,p){var m;return s(a)&&(m=[a,b],b=m[0],p=m[1],a={}),b?new f(a,b,p):new c(a)},_.exports.stringWriter=function(a){return new r(a)},_.exports.streamWriter=function(a,b){return new d(a,b)},_.exports.implementation=new y,_.exports.nodeType=i,_.exports.writerState=t}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,_,l){_.exports=t;var i=Object.prototype.hasOwnProperty;function t(){for(var y={},c=0;c<arguments.length;c++){var f=arguments[c];for(var d in f)i.call(f,d)&&(y[d]=f[d])}return y}},{}],284:[function(e,_,l){"use strict";var i=e("buffer").Buffer,t=e("./sha"),y=e("./md5"),c={sha1:t,md5:y},f=64,d=i.alloc(f);d.fill(0);function r(n,a,b){i.isBuffer(a)||(a=i.from(a)),i.isBuffer(b)||(b=i.from(b)),a.length>f?a=n(a):a.length<f&&(a=i.concat([a,d],f));for(var p=i.alloc(f),m=i.alloc(f),A=0;A<f;A++)p[A]=a[A]^54,m[A]=a[A]^92;var T=n(i.concat([p,b]));return n(i.concat([m,T]))}function u(n,a){n=n||"sha1";var b=c[n],p=[],m=0;return b||s("algorithm:",n,"is not yet supported"),{update:function(T){return i.isBuffer(T)||(T=i.from(T)),p.push(T),m+=T.length,this},digest:function(T){var x=i.concat(p),E=a?r(b,a,x):b(x);return p=null,T?E.toString(T):E}}}function s(){var n=[].slice.call(arguments).join(" ");throw new Error([n,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}l.createHash=function(n){return u(n)},l.createHmac=function(n,a){return u(n,a)},l.createCredentials=function(){s("sorry,createCredentials is not implemented yet")},l.createCipher=function(){s("sorry,createCipher is not implemented yet")},l.createCipheriv=function(){s("sorry,createCipheriv is not implemented yet")},l.createDecipher=function(){s("sorry,createDecipher is not implemented yet")},l.createDecipheriv=function(){s("sorry,createDecipheriv is not implemented yet")},l.createSign=function(){s("sorry,createSign is not implemented yet")},l.createVerify=function(){s("sorry,createVerify is not implemented yet")},l.createDiffieHellman=function(){s("sorry,createDiffieHellman is not implemented yet")},l.pbkdf2=function(){s("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(e,_,l){"use strict";var i=e("buffer").Buffer,t=4,y=i.alloc(t);y.fill(0);var c=8;function f(u,s){if(u.length%t!==0){var n=u.length+(t-u.length%t);u=i.concat([u,y],n)}for(var a=[],b=s?u.readInt32BE:u.readInt32LE,p=0;p<u.length;p+=t)a.push(b.call(u,p));return a}function d(u,s,n){for(var a=i.alloc(s),b=n?a.writeInt32BE:a.writeInt32LE,p=0;p<u.length;p++)b.call(a,u[p],p*4,!0);return a}function r(u,s,n,a){i.isBuffer(u)||(u=i.from(u));var b=s(f(u,a),u.length*c);return d(b,n,a)}_.exports={hash:r}},{buffer:73}],286:[function(e,_,l){"use strict";var i=e("./helpers");function t(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function y(a,b){a[b>>5]|=128<<b%32,a[(b+64>>>9<<4)+14]=b;for(var p=1732584193,m=-271733879,A=-1732584194,T=271733878,x=0;x<a.length;x+=16){var E=p,M=m,O=A,S=T;p=f(p,m,A,T,a[x+0],7,-680876936),T=f(T,p,m,A,a[x+1],12,-389564586),A=f(A,T,p,m,a[x+2],17,606105819),m=f(m,A,T,p,a[x+3],22,-1044525330),p=f(p,m,A,T,a[x+4],7,-176418897),T=f(T,p,m,A,a[x+5],12,1200080426),A=f(A,T,p,m,a[x+6],17,-1473231341),m=f(m,A,T,p,a[x+7],22,-45705983),p=f(p,m,A,T,a[x+8],7,1770035416),T=f(T,p,m,A,a[x+9],12,-1958414417),A=f(A,T,p,m,a[x+10],17,-42063),m=f(m,A,T,p,a[x+11],22,-1990404162),p=f(p,m,A,T,a[x+12],7,1804603682),T=f(T,p,m,A,a[x+13],12,-40341101),A=f(A,T,p,m,a[x+14],17,-1502002290),m=f(m,A,T,p,a[x+15],22,1236535329),p=d(p,m,A,T,a[x+1],5,-165796510),T=d(T,p,m,A,a[x+6],9,-1069501632),A=d(A,T,p,m,a[x+11],14,643717713),m=d(m,A,T,p,a[x+0],20,-373897302),p=d(p,m,A,T,a[x+5],5,-701558691),T=d(T,p,m,A,a[x+10],9,38016083),A=d(A,T,p,m,a[x+15],14,-660478335),m=d(m,A,T,p,a[x+4],20,-405537848),p=d(p,m,A,T,a[x+9],5,568446438),T=d(T,p,m,A,a[x+14],9,-1019803690),A=d(A,T,p,m,a[x+3],14,-187363961),m=d(m,A,T,p,a[x+8],20,1163531501),p=d(p,m,A,T,a[x+13],5,-1444681467),T=d(T,p,m,A,a[x+2],9,-51403784),A=d(A,T,p,m,a[x+7],14,1735328473),m=d(m,A,T,p,a[x+12],20,-1926607734),p=r(p,m,A,T,a[x+5],4,-378558),T=r(T,p,m,A,a[x+8],11,-2022574463),A=r(A,T,p,m,a[x+11],16,1839030562),m=r(m,A,T,p,a[x+14],23,-35309556),p=r(p,m,A,T,a[x+1],4,-1530992060),T=r(T,p,m,A,a[x+4],11,1272893353),A=r(A,T,p,m,a[x+7],16,-155497632),m=r(m,A,T,p,a[x+10],23,-1094730640),p=r(p,m,A,T,a[x+13],4,681279174),T=r(T,p,m,A,a[x+0],11,-358537222),A=r(A,T,p,m,a[x+3],16,-722521979),m=r(m,A,T,p,a[x+6],23,76029189),p=r(p,m,A,T,a[x+9],4,-640364487),T=r(T,p,m,A,a[x+12],11,-421815835),A=r(A,T,p,m,a[x+15],16,530742520),m=r(m,A,T,p,a[x+2],23,-995338651),p=u(p,m,A,T,a[x+0],6,-198630844),T=u(T,p,m,A,a[x+7],10,1126891415),A=u(A,T,p,m,a[x+14],15,-1416354905),m=u(m,A,T,p,a[x+5],21,-57434055),p=u(p,m,A,T,a[x+12],6,1700485571),T=u(T,p,m,A,a[x+3],10,-1894986606),A=u(A,T,p,m,a[x+10],15,-1051523),m=u(m,A,T,p,a[x+1],21,-2054922799),p=u(p,m,A,T,a[x+8],6,1873313359),T=u(T,p,m,A,a[x+15],10,-30611744),A=u(A,T,p,m,a[x+6],15,-1560198380),m=u(m,A,T,p,a[x+13],21,1309151649),p=u(p,m,A,T,a[x+4],6,-145523070),T=u(T,p,m,A,a[x+11],10,-1120210379),A=u(A,T,p,m,a[x+2],15,718787259),m=u(m,A,T,p,a[x+9],21,-343485551),p=s(p,E),m=s(m,M),A=s(A,O),T=s(T,S)}return Array(p,m,A,T)}function c(a,b,p,m,A,T){return s(n(s(s(b,a),s(m,T)),A),p)}function f(a,b,p,m,A,T,x){return c(b&p|~b&m,a,b,A,T,x)}function d(a,b,p,m,A,T,x){return c(b&m|p&~m,a,b,A,T,x)}function r(a,b,p,m,A,T,x){return c(b^p^m,a,b,A,T,x)}function u(a,b,p,m,A,T,x){return c(p^(b|~m),a,b,A,T,x)}function s(a,b){var p=(a&65535)+(b&65535),m=(a>>16)+(b>>16)+(p>>16);return m<<16|p&65535}function n(a,b){return a<<b|a>>>32-b}_.exports=function(b){return i.hash(b,y,16)}},{"./helpers":285}],287:[function(e,_,l){"use strict";var i=e("./helpers");function t(r,u){r[u>>5]|=128<<24-u%32,r[(u+64>>9<<4)+15]=u;for(var s=Array(80),n=1732584193,a=-271733879,b=-1732584194,p=271733878,m=-1009589776,A=0;A<r.length;A+=16){for(var T=n,x=a,E=b,M=p,O=m,S=0;S<80;S++){S<16?s[S]=r[A+S]:s[S]=d(s[S-3]^s[S-8]^s[S-14]^s[S-16],1);var w=f(f(d(n,5),y(S,a,b,p)),f(f(m,s[S]),c(S)));m=p,p=b,b=d(a,30),a=n,n=w}n=f(n,T),a=f(a,x),b=f(b,E),p=f(p,M),m=f(m,O)}return Array(n,a,b,p,m)}function y(r,u,s,n){return r<20?u&s|~u&n:r<40?u^s^n:r<60?u&s|u&n|s&n:u^s^n}function c(r){return r<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514}function f(r,u){var s=(r&65535)+(u&65535),n=(r>>16)+(u>>16)+(s>>16);return n<<16|s&65535}function d(r,u){return r<<u|r>>>32-u}_.exports=function(u){return i.hash(u,t,20,!0)}},{"./helpers":285}],288:[function(e,_,l){"use strict";_.exports=function(){return function(){}}},{}],289:[function(e,_,l){(function(i){"use strict";var t=e("babel-runtime/helpers/typeof"),y=c(t);function c(n){return n&&n.__esModule?n:{default:n}}var f=e("stream"),d=f.Stream,r=e("../lib/common/utils/isArray"),u=r.isArray;_.exports.string=function(a){return typeof a=="string"},_.exports.array=u,_.exports.buffer=i.isBuffer;function s(n){return n instanceof d}_.exports.writableStream=function(a){return s(a)&&typeof a._write=="function"&&(0,y.default)(a._writableState)==="object"}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,_,l){"use strict";l.encodeURIComponent=function(i){try{return encodeURIComponent(i)}catch(t){return i}},l.escape=e("escape-html"),l.timestamp=function(t){if(t){var y=t;return typeof y=="string"&&(y=Number(y)),String(t).length===10&&(y*=1e3),new Date(y)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,_,l){(function(i,t){"use strict";var y=e("babel-runtime/core-js/json/stringify"),c=r(y),f=e("babel-runtime/helpers/typeof"),d=r(f);function r(S){return S&&S.__esModule?S:{default:S}}var u=e("util"),s=e("url"),n=e("http"),a=e("https"),b=e("debug")("urllib"),p=e("humanize-ms"),m,A=0,T=Math.pow(2,31)-10,x=/^https?:\/\//i;function E(S,w){return S===void 0?w:S}function M(S,w){return function(h,L,C){if(h)return w(h);S({data:L,status:C.statusCode,headers:C.headers,res:C})}}l.TIMEOUTS=[p("300s"),p("300s")];var O=["json","text"];l.request=function(w,h,L){return arguments.length===2&&typeof h=="function"&&(L=h,h=null),typeof L=="function"?l.requestWithCallback(w,h,L):(m||(m=e("any-promise")),new m(function(C,I){l.requestWithCallback(w,h,M(C,I))}))},l.requestWithCallback=function(w,h,L){if(!w||typeof w!="string"&&(typeof w=="undefined"?"undefined":(0,d.default)(w))!=="object"){var C=u.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(C)}arguments.length===2&&typeof h=="function"&&(L=h,h=null),h=h||{},A>=T&&(A=0);var I=++A;h.requestUrls=h.requestUrls||[];var R={requestId:I,url:w,args:h,ctx:h.ctx};h.emitter&&h.emitter.emit("request",R),h.timeout=h.timeout||l.TIMEOUTS,h.maxRedirects=h.maxRedirects||10,h.streaming=h.streaming||h.customResponse;var B=Date.now(),G;typeof w=="string"?(x.test(w)||(w="http://"+w),G=s.parse(w)):G=w;var P=(h.type||h.method||G.method||"GET").toUpperCase(),oe=G.port||80,z=n,te=E(h.agent,l.agent),Y=h.fixJSONCtlChars;G.protocol==="https:"&&(z=a,te=E(h.httpsAgent,l.httpsAgent),G.port||(oe=443));var j={host:G.hostname||G.host||"localhost",path:G.path||"/",method:P,port:oe,agent:te,headers:h.headers||{},lookup:h.lookup};Array.isArray(h.timeout)?j.requestTimeout=h.timeout[h.timeout.length-1]:typeof h.timeout!="undefined"&&(j.requestTimeout=h.timeout);for(var F=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],V=0;V<F.length;V++){var Z=F[V];h.hasOwnProperty(Z)&&(j[Z]=h[Z])}j.rejectUnauthorized===!1&&!j.hasOwnProperty("secureOptions")&&(j.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var k=h.auth||G.auth;k&&(j.auth=k);var ee=h.content||h.data,ae=P==="GET"||P==="HEAD"||h.dataAsQueryString;if(!h.content&&(ee&&!(typeof ee=="string"||t.isBuffer(ee))))if(ae)ee=h.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var ne=j.headers["Content-Type"]||j.headers["content-type"];ne||(h.contentType==="json"?ne="application/json":ne="application/x-www-form-urlencoded",j.headers["Content-Type"]=ne),parseContentType(ne).type==="application/json"?ee=(0,c.default)(ee):ee=h.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}ae&&ee&&(j.path+=(G.query?"&":"?")+ee,ee=null);var le=0;if(ee){var fe=ee.length;t.isBuffer(ee)||(fe=t.byteLength(ee)),le=j.headers["Content-Length"]=fe}h.dataType==="json"&&(j.headers.Accept="application/json"),typeof h.beforeRequest=="function"&&h.beforeRequest(j);var q=null,pe=null,D=null,X=!1,$=!1,Q=0,se=-1,H=!1,U="",J="",N=null;h.timing&&(N={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function g(){q&&(clearTimeout(q),q=null)}function o(){pe&&(clearTimeout(pe),pe=null)}function v(me,be,Ue){if(o(),!L){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),I,i.pid,j.method,w),me&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),I,i.pid,me.name,me.message,me.stack);return}var Ce=L;L=null;var Fe={};if(Ue&&(se=Ue.statusCode,Fe=Ue.headers),se===401&&Fe["www-authenticate"]&&(!h.headers||!h.headers.Authorization)&&h.digestAuth){var Ye=Fe["www-authenticate"];if(Ye.indexOf("Digest ")>=0)return b("Request#%d %s: got digest auth header WWW-Authenticate: %s",I,w,Ye),h.headers=h.headers||{},h.headers.Authorization=digestAuthHeader(j.method,j.path,Ye,h.digestAuth),b("Request#%d %s: auth with digest header: %s",I,w,h.headers.Authorization),Ue.headers["set-cookie"]&&(h.headers.Cookie=Ue.headers["set-cookie"].join(";")),l.requestWithCallback(w,h,Ce)}var tt=Date.now()-B;N&&(N.contentDownload=tt),b("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",tt,Q,se,j.method,j.host,j.path,$,N);var vt={status:se,statusCode:se,headers:Fe,size:Q,aborted:H,rt:tt,keepAliveSocket:$,data:be,requestUrls:h.requestUrls,timing:N,remoteAddress:U,remotePort:J};if(me){var ft="";te&&typeof te.getCurrentStatus=="function"&&(ft=", agent status: "+(0,c.default)(te.getCurrentStatus())),me.message+=", "+j.method+" "+w+" "+se+" (connected: "+X+", keepalive socket: "+$+ft+`)
|
|
|
headers: `+(0,c.default)(Fe),me.data=be,me.path=j.path,me.status=se,me.headers=Fe,me.res=vt}Ce(me,be,h.streaming?Ue:vt),h.emitter&&(R.url=w,R.socket=_e&&_e.connection,R.options=j,R.size=le,h.emitter.emit("response",{requestId:I,error:me,ctx:h.ctx,req:R,res:vt}))}function K(me){var be=null;if(h.followRedirect&&statuses.redirect[me.statusCode]){h._followRedirectCount=(h._followRedirectCount||0)+1;var Ue=me.headers.location;if(!Ue)be=new Error("Got statusCode "+me.statusCode+" but cannot resolve next location from headers"),be.name="FollowRedirectError";else if(h._followRedirectCount>h.maxRedirects)be=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),be.name="MaxRedirectError";else{var Ce=h.formatRedirectUrl?h.formatRedirectUrl(w,Ue):s.resolve(w,Ue);b("Request#%d %s: `redirected` from %s to %s",I,j.path,w,Ce),o(),h.headers&&h.headers.Host&&x.test(Ue)&&(h.headers.Host=null);var Fe=L;return L=null,l.requestWithCallback(Ce,h,Fe),{redirect:!0,error:null}}}return{redirect:!1,error:be}}!j.headers["User-Agent"]&&!j.headers["user-agent"]&&(j.headers["User-Agent"]=navigator.userAgent),h.gzip&&(!j.headers["Accept-Encoding"]&&!j.headers["accept-encoding"]&&(j.headers["Accept-Encoding"]="gzip"));function W(me,be,Ue){var Ce=me.headers["content-encoding"];return Ue(null,be,Ce)}var re=h.writeStream;b("Request#%d %s %s with headers %j, options.path: %s",I,P,w,j.headers,j.path),h.requestUrls.push(w);function de(me){if(N&&(N.waiting=Date.now()-B),b("Request#%d %s `req response` event emit: status %d, headers: %j",I,w,me.statusCode,me.headers),h.streaming){var be=K(me);if(be.redirect){me.resume();return}return be.error?(me.resume(),v(be.error,null,me)):v(null,null,me)}if(me.on("close",function(){b("Request#%d %s: `res close` event emit, total size %d",I,w,Q)}),me.on("error",function(){b("Request#%d %s: `res error` event emit, total size %d",I,w,Q)}),me.on("aborted",function(){H=!0,b("Request#%d %s: `res aborted` event emit, total size %d",I,w,Q)}),re){var be=K(me);if(be.redirect){me.resume();return}return be.error?(me.resume(),re.end(),v(be.error,null,me)):(h.consumeWriteStream===!1?me.on("end",v.bind(null,null,null,me)):isNode010||isNode012?first([[re,"close"],[me,"aborted"]],function(Fe,Ye,tt){b("Request#%d %s: writeStream or res %s event emitted",I,w,tt),v(D||null,null,me)}):re.on("close",function(){b("Request#%d %s: writeStream close event emitted",I,w),v(D||null,null,me)}),me.pipe(re))}var Ue=[];me.on("data",function(Ce){b("Request#%d %s: `res data` event emit, size %d",I,w,Ce.length),Q+=Ce.length,Ue.push(Ce)}),me.on("end",function(){var Ce=t.concat(Ue,Q);if(b("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",I,w,Q,me._dumped),D)return v(D,Ce,me);var Fe=K(me);if(Fe.error)return v(Fe.error,Ce,me);if(Fe.redirect)return;W(me,Ce,function(Ye,tt,vt){if(Ye)return v(Ye,Ce,me);if(!vt&&O.indexOf(h.dataType)>=0){try{tt=decodeBodyByCharset(tt,me)}catch(Ut){return b("decodeBodyByCharset error: %s",Ut),v(null,tt,me)}if(h.dataType==="json")if(Q===0)tt=null;else{var ft=parseJSON(tt,Y);ft.error?Ye=ft.error:tt=ft.data}}H&&b("Request#%d %s: Remote socket was terminated before `response.end()` was called",I,w),v(Ye,tt,me)})})}var ge,ye;Array.isArray(h.timeout)?(ge=p(h.timeout[0]),ye=p(h.timeout[1])):ge=ye=p(h.timeout),b("ConnectTimeout: %d, ResponseTimeout: %d",ge,ye);function ve(){b("Connect timer ticking, timeout: %d",ge),q=setTimeout(function(){q=null,se===-1&&(se=-2);var me="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";_e.socket||(be="SocketAssignTimeoutError",me+=", working sockets is full"),D=new Error(me),D.name=be,D.requestId=I,b("ConnectTimeout: Request#%d %s %s: %s, connected: %s",I,w,D.name,me,X),Oe()},ge)}function Ee(){b("Response timer ticking, timeout: %d",ye),pe=setTimeout(function(){pe=null;var me="Response timeout for "+ye+"ms",be="ResponseTimeoutError";D=new Error(me),D.name=be,D.requestId=I,b("ResponseTimeout: Request#%d %s %s: %s, connected: %s",I,w,D.name,me,X),Oe()},ye)}var _e;j.mode=h.mode?h.mode:"";try{_e=z.request(j,de)}catch(me){return v(me)}typeof window=="undefined"?ve():_e.on("requestTimeout",function(){se===-1&&(se=-2);var me="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";D=new Error(me),D.name=be,D.requestId=I,Oe()});function Oe(){b("Request#%d %s abort, connected: %s",I,w,X),_e.socket||(D.noSocket=!0,v(D)),_e.abort()}return N&&_e.on("finish",function(){N.requestSent=Date.now()-B}),_e.once("socket",function(me){N&&(N.queuing=Date.now()-B),isNode010&&me.socket&&(me=me.socket);var be=me.readyState;if(be==="opening"){me.once("lookup",function(Ue,Ce,Fe){b("Request#%d %s lookup: %s, %s, %s",I,w,Ue,Ce,Fe),N&&(N.dnslookup=Date.now()-B),Ce&&(U=Ce)}),me.once("connect",function(){N&&(N.connected=Date.now()-B),g(),Ee(),b("Request#%d %s new socket connected",I,w),X=!0,U||(U=me.remoteAddress),J=me.remotePort});return}b("Request#%d %s reuse socket connected, readyState: %s",I,w,be),X=!0,$=!0,U||(U=me.remoteAddress),J=me.remotePort,g(),Ee()}),_e.on("error",function(me){(me.name==="Error"||me.name==="TypeError")&&(me.name=X?"ResponseError":"RequestError"),me.message+=' (req "error")',b("Request#%d %s `req error` event emit, %s: %s",I,w,me.name,me.message),v(D||me)}),re&&re.once("error",function(me){me.message+=' (writeStream "error")',D=me,b("Request#%d %s `writeStream error` event emit, %s: %s",I,w,me.name,me.message),Oe()}),h.stream?(h.stream.pipe(_e),h.stream.once("error",function(me){me.message+=' (stream "error")',D=me,b("Request#%d %s `readStream error` event emit, %s: %s",I,w,me.name,me.message),Oe()})):_e.end(ee),_e.requestId=I,_e}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},o5mm:function(e,_,l){e.exports={flex_box_center:"flex_box_center___yMfGk",flex_space_between:"flex_space_between___3T4Rr",flex_box_vertical_center:"flex_box_vertical_center___2K9ch",flex_box_center_end:"flex_box_center_end___1GgKp",flex_box_column:"flex_box_column___2DSuN",shixunWrp:"shixunWrp___2_2ep"}},xKgJ:function(e,_,l){"use strict";l.d(_,"o",function(){return d}),l.d(_,"b",function(){return r}),l.d(_,"c",function(){return u}),l.d(_,"e",function(){return s}),l.d(_,"f",function(){return n}),l.d(_,"r",function(){return a}),l.d(_,"g",function(){return b}),l.d(_,"s",function(){return p}),l.d(_,"d",function(){return m}),l.d(_,"i",function(){return A}),l.d(_,"j",function(){return T}),l.d(_,"q",function(){return x}),l.d(_,"h",function(){return E}),l.d(_,"p",function(){return M}),l.d(_,"a",function(){return C}),l.d(_,"l",function(){return X}),l.d(_,"m",function(){return $}),l.d(_,"k",function(){return Q}),l.d(_,"n",function(){return H}),l.d(_,"t",function(){return U});var i=l("9kvl"),t;(function(J){J[J.SuperAdmin=1]="SuperAdmin",J[J.Operation=2]="Operation",J[J.CertifiedTeacher=5]="CertifiedTeacher",J[J.TrainingProduction=8]="TrainingProduction",J[J.UncertifiedTeacher=12]="UncertifiedTeacher",J[J.Student=15]="Student"})(t||(t={}));var y;(function(J){J[J.SuperAdmin=1]="SuperAdmin",J[J.Operation=2]="Operation",J[J.Admin=5]="Admin",J[J.Teacher=8]="Teacher",J[J.Assistant=12]="Assistant",J[J.Student=15]="Student"})(y||(y={}));var c=function(N){var g=Object(i.b)()._store.getState(),o=g.user,v=o.userInfo;return N.some(function(K){return K==(v==null?void 0:v.role)})},f=function(N){var g=Object(i.b)()._store.getState(),o=g.user,v=o.userInfo;return(v==null?void 0:v.own)?!0:N.some(function(K){var W;return K==(v==null||((W=v.course)===null||W===void 0)?void 0:W.course_role)})},d=function(){var N=Object(i.b)()._store.getState(),g=N.user,o=g.userInfo;return o.main_site},r=function(){var N,g=Object(i.b)()._store.getState(),o=g.user,v=o.userInfo;return v==null||((N=v.course)===null||N===void 0)?void 0:N.course_is_end},u=function(){return f([y.SuperAdmin,y.Operation,y.Admin,y.Teacher,y.Assistant])},s=function(){return f([y.SuperAdmin,y.Teacher,y.Admin,y.Assistant,y.Operation])},n=function(){return f([y.SuperAdmin,y.Teacher,y.Admin])},a=function(){return f([y.SuperAdmin])},b=function(){return f([y.SuperAdmin,y.Operation,y.Admin])},p=function(){return f([y.SuperAdmin,y.Operation])},m=function(){return f([y.SuperAdmin,y.Admin])},A=function(){return f([y.SuperAdmin,y.Operation,y.Admin,y.Teacher])},T=function(){return f([y.Assistant])},x=function(){return f([y.Student])},E=function(){return f([y.SuperAdmin,y.Operation,y.Admin,y.Teacher,y.Assistant,y.Student])},M=function(){var N,g=Object(i.b)()._store.getState(),o=g.user,v=o.userInfo;return(v==null||((N=v.course)===null||N===void 0)?void 0:N.course_role)===null},O=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},S=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return g||!g&&c([t.SuperAdmin])},w=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return g||!g&&c([t.SuperAdmin,t.Operation])},h=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):g||!g&&c([t.SuperAdmin,t.Operation])},L=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):g||!g&&c([t.SuperAdmin,t.Operation])},C=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction])},I=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin]):g||!g&&c([t.SuperAdmin])},R=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation]):g||!g&&c([t.SuperAdmin,t.Operation])},B=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):g||!g&&c([t.SuperAdmin,t.Operation])},G=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):g||!g&&c([t.SuperAdmin,t.Operation])},P=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):g||!g&&c([t.SuperAdmin,t.Operation])},oe=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin]):!1},z=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},te=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin]):g||!g&&c([t.SuperAdmin])},Y=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation]):g||!g&&c([t.SuperAdmin,t.Operation])},j=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):g||!g&&c([t.SuperAdmin,t.Operation])},F=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!1:g||!g&&c([t.SuperAdmin,t.Operation])},V=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?g||!g&&c([t.SuperAdmin,t.Operation]):!1},Z=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},k=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!g&&c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},ee=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):g||!g&&c([t.SuperAdmin,t.Operation])},ae=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher])},ne=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin]):g||!g&&c([t.SuperAdmin])},le=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation]):g||!g&&c([t.SuperAdmin,t.Operation])},fe=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):g||!g&&c([t.SuperAdmin,t.Operation])},q=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?g||!g&&c([t.SuperAdmin,t.Operation]):!1},pe=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?c([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):g||!g&&c([t.SuperAdmin,t.Operation])},D=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([y.Teacher])},X=function(){return c([t.SuperAdmin])},$=function(){return c([t.SuperAdmin,t.Operation])},Q=function(){return c([t.Student])},se=function(){return c([t.SuperAdmin,t.Operation,t.CertifiedTeacher])},H=function(){var N,g=Object(i.b)()._store.getState(),o=g.user;return!!((N=o.userInfo)===null||N===void 0?void 0:N.login)},U=function(){var N=Object(i.b)()._store.getState(),g=N.user;return g.userInfo}}}]);
|