You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

1 line
477 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[52,4,5,6,7,9,10,12,14],{"1vsH":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"C",(function(){return g})),n.d(t,"B",(function(){return y})),n.d(t,"D",(function(){return v})),n.d(t,"E",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"p",(function(){return E})),n.d(t,"o",(function(){return j})),n.d(t,"A",(function(){return S})),n.d(t,"j",(function(){return k})),n.d(t,"z",(function(){return N})),n.d(t,"u",(function(){return C})),n.d(t,"l",(function(){return A})),n.d(t,"x",(function(){return D})),n.d(t,"n",(function(){return M})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return L})),n.d(t,"t",(function(){return B})),n.d(t,"y",(function(){return F})),n.d(t,"w",(function(){return q})),n.d(t,"m",(function(){return U})),n.d(t,"v",(function(){return G})),n.d(t,"q",(function(){return X}));var r=n("zjzt"),o=n("ZZRV"),i=n.n(o),a=n("xKgJ"),s=n("vcnW"),c=n.n(s),u=["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"],l=function(e){var t,n=(t={},Object(r["a"])(t,-1,"\u91cd\u505a\u4e2d"),Object(r["a"])(t,0,"\u672a\u5f00\u542f"),Object(r["a"])(t,1,"\u672a\u901a\u5173"),Object(r["a"])(t,2,"\u6309\u65f6\u901a\u5173"),t);return n[e]||"\u8fdf\u4ea4\u901a\u5173"},f=function(e){var t,n,o,a=(t={},Object(r["a"])(t,-1,{name:"\u91cd\u505a\u4e2d",class:"c-orange"}),Object(r["a"])(t,0,{name:"\u672a\u5f00\u542f",class:"c-black"}),Object(r["a"])(t,1,{name:"\u672a\u901a\u5173",class:"c-red"}),Object(r["a"])(t,2,{name:"\u6309\u65f6\u901a\u5173",class:"c-green"}),Object(r["a"])(t,3,{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}),t);return i.a.createElement("span",{className:null===a||void 0===a||null===(n=a[e.status])||void 0===n?void 0:n["class"]},null===a||void 0===a||null===(o=a[e.status])||void 0===o?void 0:o["name"])},d=function(e){var t=e.status,n={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 i.a.createElement("span",{className:n[t]["class"]},n[t]["name"])}catch(r){console.log("utils.StatusGraduationProjectTags",e.status)}},p={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},h={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},m=function(e){var t={"\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"}},n=[];e.is_random&&n.push(i.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((function(e,r){n.push(i.a.createElement("span",{key:r,className:t[e]&&t[e]["class"]},e))}))}catch(r){console.log("utils.status.tag:",r,e.status)}return n},b=function(e){var t,n,r={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 i.a.createElement("span",{className:null===(t=r[e.status])||void 0===t?void 0:t["class"]},null===(n=r[e.status])||void 0===n?void 0:n["name"])},g=function(e){e=new Date(e).getTime();var t=6e4,n=60*t,r=24*n,o="",i=(new Date).getTime(),a=i-e;if(a<0)return console.log("\u65f6\u95f4\u4e0d\u5bf9\u52b2,\u670d\u52a1\u5668\u521b\u5efa\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u4e0d\u540c\u6b65"),"\u521a\u521a";var s=parseInt(a/r,10),c=parseInt(a/n,10),u=parseInt(a/t,10);return o=s>30?""+y(e,"yyyy-MM-dd"):s>1?s+"\u5929\u524d":1==s?"\u6628\u5929":c>=1?c+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",o},y=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=[["\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"]];for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t},v=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var t=60,n=60*t,r=24*n,o=e/r,i=e/n,a=e/t;return o>=1?parseInt(o.toString())+"\u5929"+Math.floor(i%24)+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>1?parseInt(i.toString())+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r<n;r++){var o=e.charCodeAt(r);o>=55296&&o<=56319&&(n--,r++)}}return n<=t},w=function(e,t,n){if(t){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\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/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},x=function(e,t,n){if(t){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\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/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},E=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r<t;r++)n+="*";var o=e.substr(0,1)+n;return o},j=function(e,t){var n=new FileReader;n.addEventListener("load",(function(){return t(n.result)})),n.readAsDataURL(e)};function S(e){var t="79e33abd4b6588941ab7622aed1e67e8";return c()(t+e)}var T=function(e){var t,n=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(t=document.cookie.match(n))?decodeURIComponent(t[2]):null};var O=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function k(e,t){return new Promise((function(e,n){var r,o=t,i=document.createElement("iframe");console.log("downloadFileUrl",o),document.body.appendChild(i),i.src=o,i.style.display="none",r=setInterval((function(){T("fileDownload")&&(O("fileDownload"),clearInterval(r),e())}),1e3)}))}var N=function(e){var t=e.url,n=e.query;return t?(n&&function(){var e=[],r=function(t){n.hasOwnProperty(t)&&!G(n[t])&&("object"===typeof n[t]?n[t].map((function(n){e.push("".concat(t,"[]=").concat(n))})):e.push("".concat(t,"=").concat(n[t])))};for(var o in n)r(o);t=-1!==t.indexOf("?")?"".concat(t,"&").concat(e.join("&")):"".concat(t,"?").concat(e.join("&")),console.log("url1111",t)}(),t):""};function C(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,r=0;r<t.length;r++)if(e.indexOf(t[r])>0){n=!1;break}return n}var I,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},D=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},P=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},L=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(I||(I={}));var R=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},B=function(e){return R(e)===I.Array?0===e.length:R(e)===I.Object?0===Object.keys(e).length:!e},F=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},U=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},G=function(e){return void 0===e||null===e};var X=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(a["t"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"7ahc":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("55MS"),o=n("1gHQ"),i=(n("MPZO"),n("bnk9")),a=(n("EkPb"),n("7X0+")),s=n("GZha"),c=(n("VmQ4"),n("QeCE")),u=n("ZZRV"),l=n.n(u),f=n("M0ff"),d=n.n(f),p=(n("4X1q"),c["a"].Option),h={labelCol:{span:4},wrapperCol:{span:20}},m={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"]};function b(e){var t=e.value,n=e.onChange,o=e.mode,i=e.options,a=void 0===i?{}:i,c=Object(u["useRef"])(),f=Object(u["useState"])(),p=Object(s["a"])(f,2),h=p[0],m=p[1];return Object(u["useEffect"])((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),Object(u["useEffect"])((function(){h&&h.setOption("mode",o)}),[h,o]),Object(u["useEffect"])((function(){h&&t!==h.getValue()&&h.setValue(t||"")}),[h,t]),Object(u["useEffect"])((function(){if(c.current&&!h){var e=d.a.fromTextArea(c.current,Object(r["a"])({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},a));m(e)}}),[c.current,h]),l.a.createElement("div",{className:"my-codemirror-container"},l.a.createElement("textarea",{ref:c}))}t["b"]=function(e){var t=e.callback,n=e.onCancel,r=Object(u["useState"])("python"),f=Object(s["a"])(r,2),d=f[0],g=f[1];function y(e){g(m[e][1])}function v(e){t(e)}return l.a.createElement(a["a"],Object(o["a"])({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:v}),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u8bed\u8a00",name:"language"},l.a.createElement(c["a"],{onChange:y},Object.keys(m).map((function(e){return l.a.createElement(p,{key:e,value:e},m[e][0])})))),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u5185\u5bb9",name:"content",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4ee3\u7801\u5185\u5bb9"}]},l.a.createElement(b,{mode:d})),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(i["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),l.a.createElement(i["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))}},"9Bee":function(e,t,n){"use strict";var r=n("ZZRV"),o=n.n(r),i=(n("Sawj"),n("GZha")),a=n("tVQ9"),s=n.n(a),c=n("PRXW");function u(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=Object(i["a"])(t,1),o=n[0];return o.length>=r.length?e.slice(r.length):e})).join("\n")}var l=[],f=["<ul>"],d=new s.a.Renderer,p=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function h(){l.length=0,f=["<ul>"]}function m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var o=e[t];r.push("<li><a href='#"+o.anchor+"'>"+o.text+"</a>"),t++;var i=[];return t=m(e,t,o.level,i),i.length>0&&(r.push("<ul>"),i.forEach((function(e){r.push(e)})),r.push("</ul>")),r.push("</li>"),t=m(e,t,n,r),t}function b(){return m(l,0,0,f),f.push("</ul>"),f.join("")}var g={heading:function(e){var t=p.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=u(n,t[3]||""),o=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(o)>=0){var i=_(),a=r;r=i,w[i]={type:"block",expression:a}}return{type:"code",raw:n,lang:o,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,v=0,_=function(){return"__special_katext_id_".concat(v++,"__")},w={};function x(){return w}function E(){v=0,w={}}function j(e){return e=e.replace(y,(function(e,t){var n=_();return w[n]={type:"inline",expression:t},n})),e}var S=d.listitem;d.listitem=function(e){return S(j(e))};var T=d.paragraph;d.paragraph=function(e){return T(j(e))};var O=d.tablecell;d.tablecell=function(e,t){return O(j(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:Object(c["escape"])(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:Object(c["escape"])(e,!0))+"</code></pre>"},d.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:r,level:t,text:e}),"<h"+t+' id="'+r+'">'+e+"</h"+t+">"},s.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:g,renderer:d});var k=s.a,N=(n("8+LE"),n("ZRDM")),C=n.n(N),I=n("saPB"),A=/<pre[^>]*>/g;function D(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}t["a"]=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,a=e.style,s=void 0===a?{}:a,c=String(n),u=Object(r["useMemo"])((function(){var e=k(c),t=x();return c.match(/\[TOC\]/)&&(e=e.replace("<p>[TOC]</p>",b()),h()),e=e.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var r=t[n],o=r.type,i=r.expression;return Object(I["renderToString"])(D(i)||"",{displayMode:"block"===o,throwOnError:!1,output:"html"})})),e=e.replace(/\u2581/g,"\u2581\u2581\u2581"),E(),C.a.sanitize(e)}),[c]),l=Object(r["useRef"])();function f(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}return Object(r["useEffect"])((function(){if(l.current&&u&&u.match(A)&&window.PR.prettyPrint(),l.current)return l.current.addEventListener("click",f),function(){l.current.removeEventListener("click",f),E(),h()}}),[u,l.current,f]),o.a.createElement("div",{ref:l,style:s,className:"".concat(i||""," markdown-body"),dangerouslySetInnerHTML:{__html:u}})}},"9VGf":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ZZRV");function o(e,t){var n=Object(r["useRef"])();Object(r["useEffect"])((function(){n.current=e})),Object(r["useEffect"])((function(){function e(){n.current()}if(null!==t){var r=setInterval(e,t);return function(){return clearInterval(r)}}}),[t])}},BjJ7:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n("m3rI");function o(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=0;r<e.length;r++){var o=e[r],i=t?"".concat(t,"/").concat(o.name):"".concat(o.name);n.push({title:o.name,isLeaf:"tree"!==o.type,key:i})}return n}function a(e,t,n){for(var r=0;r<e.length;r++){var o=e[r];if(o.key===t){o.children=n;break}o.children&&a(o.children,t,n)}return e}function s(e,t,n){var r;return function(){var o=this,i=arguments,a=function(){r=null,n||e.apply(o,i)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(o,i)}}var c=!0,u=r["a"].API_SERVER},"C+DQ":function(e,t,n){},DR4n:function(e,t,n){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,t,n){},M8RZ:function(e,t,n){"use strict";var r=n("ZZRV"),o=n("EaaV"),i=document.createElement("div");t["a"]=function(e){var t=e.children;return Object(r["useEffect"])((function(){return document.body.append(i),function(){try{document.body.removeChild(i)}catch(e){}}}),[]),Object(o["createPortal"])(t,i)}},MvOs:function(e,t,n){"use strict";n.r(t);n("Mumi");var r=n("/zo+"),o=(n("NE/W"),n("L7QV")),i=(n("XZgM"),n("TFeq")),a=(n("MPZO"),n("bnk9")),s=(n("RXQH"),n("VgM2")),c=(n("XSsT"),n("iBFk")),u=(n("GrpF"),n("Xc/e")),l=(n("9cas"),n("twZV")),f=(n("X/R0"),n("M6G9")),d=(n("rjoL"),n("TMtJ")),p=n("VBJJ"),h=n.n(p),m=n("55MS"),b=n("z3+T"),g=n("GZha"),y=n("buSX"),v=(n("fElU"),n("iAHn")),_=n("ZZRV"),w=n.n(_),x=n("q5+0"),E=n("9kvl"),j=n("DndG"),S={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"},T=S,O=n("XSrM"),k=function(e,t){return _["createElement"](O["a"],Object.assign({},e,{ref:t,icon:T}))};k.displayName="MinusSquareOutlined";var N=_["forwardRef"](k),C=n("Uhfr"),I=n("0YPX"),A=n("xHv9"),D=n("ErOA"),M="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),P=new Uint8Array(16);function L(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(P)}var R=/^(?:[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 B(e){return"string"===typeof e&&R.test(e)}for(var F=B,q=[],U=0;U<256;++U)q.push((U+256).toString(16).substr(1));function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase();if(!F(n))throw TypeError("Stringified UUID is invalid");return n}var X=G;function V(e,t,n){e=e||{};var r=e.random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return X(r)}var H=V,W=n("DR4n"),z=n.n(W),K=n("piNp"),Y=function(e,t){var n=e.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),i=o.length,a=new Uint8Array(i);while(i--)a[i]=o.charCodeAt(i);return new Blob([a],{type:r})},$=function(e){var t=e.time,n=e.number,r=e.supportCamera,o=(e.update,Object(_["useRef"])()),i=Object(_["useRef"])(),a=Object(x["m"])(),s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1],d=Object(_["useState"])(0),p=Object(g["a"])(d,2),m=p[0],y=p[1],v=Object(_["useState"])(""),E=Object(g["a"])(v,2),j=(E[0],E[1]),S=Object(_["useState"])(),T=Object(g["a"])(S,2),O=T[0],k=T[1],N=Object(_["useState"])(0),C=Object(g["a"])(N,2),I=C[0],A=C[1];Object(_["useEffect"])((function(){return L(),function(){B(),M()}}),[]),Object(_["useEffect"])((function(){2===m&&t&&n>0&&(P(),A(1))}),[t]),Object(_["useEffect"])((function(){if(0!==I){if(2===I)clearInterval(O);else{var e=0,t=setInterval((function(){console.log("n:",e,O),u.includes(e)&&R(),e++}),1e3);k(t)}return function(){return clearInterval(O)}}}),[I]);var M=function(){A(2)},P=function(){var e=t/n,r=[];function o(e,t){return parseInt(Math.floor(Math.random()*(t-e+1))+e)}new Array(n).fill(0).map((function(t,n){r.push(o(e*n,e*(n+1)))})),u=r,l([].concat(r)),console.log(r)},L=function e(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return t?new Promise((function(n,r){t.call(navigator,e,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then((function(t){r&&r(2),y(2),"srcObject"in o.current?o.current.srcObject=t:o.current.src=window.URL.createObjectURL(t),console.log("stream:",t),o.current.onloadedmetadata=function(e){o.current.play()},o.current.addEventListener("ended",(function(){console.log("\u64ad\u653e\u7ed3\u675f"),M(),f["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(){e()}),1e4)}),!1)}))["catch"]((function(e){y(1),r&&r(1),"Permission denied"===e.message||"NotAllowedError"===e.name?f["b"].error("\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"):f["b"].error("\u6444\u50cf\u5934\u83b7\u53d6\u5931\u8d25\uff0c\u6216\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},R=function(){try{i.current.width=o.current.videoWidth,i.current.height=o.current.videoHeight;var e=i.current.getContext("2d");e.drawImage(o.current,0,0,i.current.width,i.current.height),j(i.current.toDataURL("image/png")),F(i.current.toDataURL("image/png"))}catch(t){}},B=function(){try{var e=o.current.srcObject,t=e.getTracks();t.forEach((function(e){e.stop()})),o.current.srcObject=null}catch(n){}},F=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r,o,i,s,c,u,l,f,d,p,m;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("params:",a.login,a.categoryId),e.next=3,Object(D["a"])("/api/buckets/get_upload_token.json",{method:"get"});case 3:f=e.sent,d=H(),p=new K({endpoint:null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.end_point,region:null===f||void 0===f||null===(r=f.data)||void 0===r?void 0:r.region,accessKeyId:null===f||void 0===f||null===(o=f.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null===f||void 0===f||null===(i=f.data)||void 0===i?void 0:i.access_key_secret,bucket:null===f||void 0===f||null===(s=f.data)||void 0===s?void 0:s.bucket,stsToken:null===f||void 0===f||null===(c=f.data)||void 0===c?void 0:c.security_token}),console.log("ENV.API_SERVER + res?.data?.callback_url:","https://"+document.domain+(null===f||void 0===f||null===(u=f.data)||void 0===u?void 0:u.callback_url),document.domain),m=Y(t,d),p.multipartUpload("".concat(d,".png"),m,{timeout:1e4,partSize:10485760,callback:{url:"https://"+document.domain+(null===f||void 0===f||null===(l=f.data)||void 0===l?void 0:l.callback_url),host:document.domain,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+a.login+"&exercise_id="+a.categoryId}}).then((function(e){console.log("result:",e)}))["catch"]((function(e){console.log("err:",e)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return w.a.createElement(w.a.Fragment,null,3!==m&&w.a.createElement("aside",{className:z.a.video,id:"screenshot"},0===m&&w.a.createElement("span",null,"\u6b63\u5728\u5f00\u542f\u6444\u50cf\u5934..."),1===m&&w.a.createElement("span",null,"\u6444\u50cf\u5934\u5f00\u542f\u5931\u8d25"),2===m&&w.a.createElement("div",null,w.a.createElement("video",{width:"288",ref:o,autoPlay:!0}),w.a.createElement("canvas",{style:{display:"none"},ref:i}))))},J=$,Z=n("NfTp"),Q=n.n(Z),ee=n("V5fa"),te=n.n(ee),ne=n("1vsH"),re=n("xKgJ"),oe=n("V0Rq"),ie=n("9Bee"),ae=n("Ot1p"),se=function(e){var t,n,r,o,i=e.item,a=e.answerData,s=e.onBlur,c=void 0===s?function(){}:s,u=Object(_["useState"])(),l=Object(g["a"])(u,2),f=l[0],d=l[1],p=Object(_["useState"])(),h=Object(g["a"])(p,2),m=(h[0],h[1]);return Object(_["useEffect"])((function(){m(null===i||void 0===i?void 0:i.a_flag)}),[null===i||void 0===i?void 0:i.a_flag]),w.a.createElement("div",null,1===(null===a||void 0===a||null===(t=a.exercise)||void 0===t?void 0:t.user_exercise_status)?w.a.createElement("div",{className:te.a.simpleText},w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(n=i.user_answer)||void 0===n?void 0:n[0]})):w.a.createElement("div",{className:i.user_score&&(i.user_score===i.question_score?"c-green":"c-red")},w.a.createElement(ae["a"],{height:150,defaultValue:null===i||void 0===i||null===(r=i.user_answer)||void 0===r?void 0:r[0],id:null===i||void 0===i?void 0:i.question_id,onChange:function(e){return d(e)},onBlur:function(){return c(f)}})),Object(re["q"])()&&(null===i||void 0===i?void 0:i.standard_answer)&&w.a.createElement("div",null,w.a.createElement("p",{className:"mb10 font16"},"\u53c2\u8003\u7b54\u6848\uff1a"),w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(o=i.standard_answer)||void 0===o?void 0:o[0]})))},ce=se,ue=(n("uLqt"),n("/vd4")),le=(n("IIfR"),n("w3Ok")),fe=n("ZW9T"),de=n("o5mm"),pe=n.n(de),he=function(e){var t,n,r,o=e.item,i=e.answerData,a=Object(_["useState"])([]),s=Object(g["a"])(a,2),c=s[0],u=s[1],l=Object(_["useState"])([]),f=Object(g["a"])(l,2),d=f[0],p=f[1];Object(_["useEffect"])((function(){var e;if(null===o||void 0===o||null===(e=o.shixun_details)||void 0===e?void 0:e.length){for(var t=[],n=[],r=0;r<(null===o||void 0===o||null===(i=o.shixun_details)||void 0===i?void 0:i.length);r++){for(var i,a,s,c,l,f,d=0;d<(null===o||void 0===o?void 0:o.shixun_details[r].stage_list.length);d++){var h,b,g,y,v=null===o||void 0===o?void 0:o.shixun_details[r].stage_list[d];t.push(Object(m["a"])(Object(m["a"])({},v),{operation:null===o||void 0===o||null===(h=o.shixun_details)||void 0===h||null===(b=h[r])||void 0===b||null===(g=b.shixun_detail)||void 0===g||null===(y=g[0])||void 0===y?void 0:y.game_identifier}))}if(null===o||void 0===o||null===(a=o.shixun_details)||void 0===a||null===(s=a[r])||void 0===s?void 0:s.shixun_detail)n.push(null===o||void 0===o||null===(c=o.shixun_details)||void 0===c||null===(l=c[r])||void 0===l||null===(f=l.shixun_detail)||void 0===f?void 0:f[0])}p(n),u(t)}}),[null===o||void 0===o?void 0:o.shixun_details]);var h=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"name",key:"name",align:"center",render:function(e){return w.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:e&&e.length>25?e:""},e)}},{title:"\u8bc4\u6d4b\u6b21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(e,t){return w.a.createElement("span",null,t.evaluate_count?t.evaluate_count:w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5b8c\u6210\u65f6\u95f4",key:"endTime",dataIndex:"endTime",align:"center",render:function(e,t){var n=!1;return t.finished_time&&(null===i||void 0===i?void 0:i.exercise)&&(null===i||void 0===i?void 0:i.exercise_answer_user)&&(n=-1===(null===i||void 0===i?void 0:i.exercise.time)?Q()(null===i||void 0===i?void 0:i.exercise.end_time).isBefore(t.finished_time):Q()(null===i||void 0===i?void 0:i.exercise_answer_user.start_at).add(null===i||void 0===i?void 0:i.exercise.time,"m").isBefore(t.finished_time)),w.a.createElement("span",null,t.finished_time||w.a.createElement("span",{className:"c-grey-999"},"--"),w.a.createElement("span",{className:"c-orange-ff9 "},n?"\uff08\u5df2\u8d85\u65f6\uff09":""))}},{title:"\u8017\u65f6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(e,t){return w.a.createElement("span",null,t.time_consuming||w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67e5\u770b\u7b54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(e,t){return w.a.createElement("span",null,t.view_answer?"\u5df2\u67e5\u770b":"\u672a\u67e5\u770b")}},{title:"\u7ecf\u9a8c\u503c",dataIndex:"experience",key:"experience",align:"center",render:function(e,t){return w.a.createElement("span",null,w.a.createElement("span",{className:"c-green"},t.myself_experience),"/",t.experience)}},{title:"\u64cd\u4f5c",dataIndex:"operation",key:"operation",align:"center",render:function(e,t,n){return e?w.a.createElement(le["a"],{affix:!1,className:"mt10"},w.a.createElement(le["a"].Link,{href:"#challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(n),title:w.a.createElement("span",{style:{color:"#1890ff"}},"\u67e5\u770b")})):w.a.createElement("span",{className:"c-grey-999"},"--")}}],b={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement("div",{className:"mt15 mb15"},0!==(null===i||void 0===i||null===(t=i.exercise)||void 0===t?void 0:t.student_commit_status)||0!==(null===i||void 0===i||null===(n=i.exercise)||void 0===n?void 0:n.user_exercise_status)?w.a.createElement(w.a.Fragment,null,w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6bb5\u6210\u7ee9"),!!(null===c||void 0===c?void 0:c.length)&&w.a.createElement(ue["a"],{columns:h,dataSource:c,pagination:!1})),!!(null===d||void 0===d?void 0:d.length)&&w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5b9e\u8bad\u8be6\u60c5"),null===d||void 0===d?void 0:d.map((function(e,t){return w.a.createElement("div",{id:"challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(t),className:"mt5"},w.a.createElement("div",null,w.a.createElement("span",{className:"font16 mr15"}," \u7b2c",e.position,"\u5173"),w.a.createElement(j["Link"],{className:"current c-black font16",to:"/tasks/".concat(e.game_identifier)},e.name)),0===(null===e||void 0===e?void 0:e.st)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h2",null,"\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\u7684\u4ee3\u7801",w.a.createElement("span",{className:"c-light-black"},e.path)),w.a.createElement(fe["b"],{height:300,language:"python",theme:"default",value:e.passed_code,options:b})))})))):w.a.createElement(w.a.Fragment,null,Object(re["q"])()&&w.a.createElement(ie["a"],{className:"c-grey-999 mt20 mb20",value:null===o||void 0===o?void 0:o.question_title}),null===o||void 0===o||null===(r=o.shixun)||void 0===r?void 0:r.map((function(e,t){return w.a.createElement("p",{className:"font16 c-grey-666 mb5"},w.a.createElement("span",{className:"mr20"},"\u7b2c",null===e||void 0===e?void 0:e.challenge_position,"\u5173 ",null===e||void 0===e?void 0:e.challenge_name),w.a.createElement("span",null,null===e||void 0===e?void 0:e.challenge_score,"\u5206"))}))))},me=he,be=n("LalF"),ge=function(e){var t=e.item,n=(e.answerData,Object(_["useState"])([])),r=Object(g["a"])(n,2),o=(r[0],r[1]);Object(_["useEffect"])((function(){var e,n;(null===t||void 0===t||null===(e=t.evaluate_codes)||void 0===e?void 0:e.length)>0?o(null===t||void 0===t||null===(n=t.evaluate_codes)||void 0===n?void 0:n.map((function(e,t){return{key:t+1,error_msg:(null===e||void 0===e?void 0:e.error_msg)?be["Base64"].decode(null===e||void 0===e?void 0:e.error_msg):""}}))):o([{key:"--",error_msg:"--"}])}),[null===t||void 0===t?void 0:t.evaluate_codes]);var i={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"mt15 mb15"},w.a.createElement(ie["a"],{value:null===t||void 0===t?void 0:t.description})),!!(null===t||void 0===t?void 0:t.user_answer.length)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h3",null,"\u6700\u540e\u901a\u5173\u7684\u4ee3\u7801"),w.a.createElement(fe["b"],{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(null===t||void 0===t?void 0:t.passed_code)?be["Base64"].decode(null===t||void 0===t?void 0:t.passed_code):"",options:i})))},ye=ge,ve=n("V0hb"),_e=(n("DHCt"),n("CRgH")),we=_e["a"].TextArea,xe=function(e){var t,n,r=e.item,o=e.answerData,i=e.onBlur,a=void 0===i?function(){}:i,s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1];return Object(_["useEffect"])((function(){for(var e=[],t=0;t<(null===r||void 0===r?void 0:r.multi_count);t++)e.push(Object(m["a"])({},(null===r||void 0===r?void 0:r.user_answer[t])||{}));l(e)}),[null===r||void 0===r?void 0:r.user_answer]),w.a.createElement("div",null,null===u||void 0===u?void 0:u.map((function(e,t){var n;return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:1===(null===o||void 0===o||null===(n=o.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e?void 0:e.answer_text,onChange:function(e){u[t].answer_text=e.target.value,l(Object(ve["a"])(u))},onBlur:function(n){return a(null===e||void 0===e?void 0:e.answer_text,t+1)},className:r.user_score&&(r.user_score===r.question_score?"c-green":"c-red")})))})),!!(null===r||void 0===r||null===(t=r.standard_answer)||void 0===t?void 0:t.length)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===r||void 0===r||null===(n=r.standard_answer)||void 0===n?void 0:n.map((function(e,t){return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:!0,value:null===e||void 0===e?void 0:e.answer_text[0]})))}))))},Ee=xe,je=v["a"].Countdown,Se=["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"],Te=(te.a.flagActive,te.a.flagHalf,{0:"c-red-ee4",1:"c-green"}),Oe=["\u5355\u9009\u9898","\u591a\u9009\u9898","\u5224\u65ad\u9898","\u586b\u7a7a\u9898","\u7b80\u7b54\u9898","\u5b9e\u8bad\u9898","\u7f16\u7a0b\u9898"],ke=function(e){e.globalSetting,e.loading;var t,n,p,v,S,T,O,k,D,M,P,L,R,B,F,q,U,G,X,V,H,W,z,K,Y,$,Z,ee,ae,se,ue,le,fe,de,pe,he,be=e.user,ge=(e.dispatch,Object(y["a"])(e,["globalSetting","loading","user","dispatch"])),ve=Object(x["m"])(),_e=Object(_["useState"])({}),we=Object(g["a"])(_e,2),xe=we[0],ke=we[1],Ne=Object(_["useState"])({}),Ce=Object(g["a"])(Ne,2),Ie=Ce[0],Ae=Ce[1],De=Object(_["useState"])(!1),Me=Object(g["a"])(De,2),Pe=Me[0],Le=Me[1],Re=Object(_["useState"])(!0),Be=Object(g["a"])(Re,2),Fe=Be[0],qe=Be[1],Ue=Object(_["useState"])(!1),Ge=Object(g["a"])(Ue,2),Xe=Ge[0],Ve=Ge[1],He=Object(_["useState"])(),We=Object(g["a"])(He,2),ze=We[0],Ke=We[1];Object(_["useEffect"])((function(){Object(re["c"])()?$e():be.userInfo.login&&Ye()}),[ve.categoryId,be.userInfo.login]);var Ye=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["t"])(Object(m["a"])({},ve));case 2:t=e.sent,0==(null===t||void 0===t?void 0:t.status)&&(Ve(null===t||void 0===t?void 0:t.data.check_camera),(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.check_camera)||$e());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n,r,o,i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Le(!0),!Object(re["c"])()){e.next=8;break}return e.next=4,Object(oe["y"])({exerciseId:ve.categoryId,login:ve.login})["catch"]((function(){return Le(!1)}));case 4:t=e.sent,(null===(n=t)||void 0===n?void 0:n.exercise)&&(t.exercise.user_exercise_status=1),e.next=11;break;case 8:return e.next=10,Object(oe["r"])(Object(m["a"])({},ve))["catch"]((function(){return Le(!1)}));case 10:t=e.sent;case 11:Le(!1),t&&(t.exercise_types=(null===(r=t)||void 0===r?void 0:r.exercise_types)||(null===(o=t)||void 0===o||null===(i=o.exercise_scores)||void 0===i?void 0:i.exercise_types),ke(t));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(_["useEffect"])((function(){var e,t,n;0===(null===(e=xe.exercise)||void 0===e?void 0:e.left_time)&&ot(),(null===(t=xe.exercise)||void 0===t?void 0:t.left_time)&&Ke(Date.now()+1e3*(null===xe||void 0===xe||null===(n=xe.exercise)||void 0===n?void 0:n.left_time))}),[null===(t=xe.exercise)||void 0===t?void 0:t.left_time]);var Je=function(){var e;3===(null===xe||void 0===xe||null===(e=xe.exercise)||void 0===e?void 0:e.exercise_status)?d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u622a\u6b62\u65f6\u95f4\u5df2\u5230\uff0c\u65e0\u6cd5\u6253\u56de\u8bd5\u5377",w.a.createElement("br",null),"\u8bf7\u5728\u4fee\u6539\u622a\u6b62\u65f6\u95f4\u540e\u518d\u64cd\u4f5c")}):d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.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",w.a.createElement("br",null),"\u662f\u5426\u786e\u8ba4\u56de\u9000TA\u7684\u8bd5\u5377\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["F"])({categoryId:ve.categoryId,user_ids:[null===xe||void 0===xe||null===(t=xe.exercise_answer_user)||void 0===t?void 0:t.user_id]});case 2:n=e.sent,n&&(f["b"].info(null===n||void 0===n?void 0:n.message),Ze());case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()})},Ze=function(){E["c"].push("/classrooms/".concat(ve.coursesId,"/exercise/").concat(ve.categoryId,"/detail"))},Qe=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:ve.categoryId,commit_method:2});case 2:t=e.sent,0===(null===t||void 0===t?void 0:t.status)&&(d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.a.createElement("div",{className:"tc font16"},"\u7b54\u9898\u7ed3\u675f\u4e86\uff0c\u7cfb\u7edf\u5df2\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377",w.a.createElement("br",null),"\u4e0d\u80fd\u518d\u4fee\u6539\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Ze();case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}),f["b"].info(null===t||void 0===t?void 0:t.message)),-3===(null===t||void 0===t?void 0:t.status)&&(n=parseInt(null===t||void 0===t?void 0:t.message),xe.exercise.left_time=n,ke(Object(m["a"])({},xe)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),et=function(e){e.redo?d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.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 t=Object(b["a"])(h.a.mark((function t(){var n;return h.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(oe["G"])({id:e.myshixun_identifier});case 2:n=t.sent,n&&(Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges")),xe.exercise_questions.find((function(t){return t.question_id===e.question_id})).redo=!1,ke(Object(m["a"])({},xe)));case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}):Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges"))},tt=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.hack_identifier){e.next=5;break}return e.next=3,Object(oe["I"])({id:t.hack_identifier});case 3:n=e.sent,0===(null===n||void 0===n?void 0:n.status)&&Object(ne["x"])("/myproblems/".concat(n.identifier,"?type=exercises"));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),nt=function(){var e=Object(b["a"])(h.a.mark((function e(t,n,r,o){var i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 3:return e.next=5,Object(oe["K"])({questionId:t,exercise_choice_id:n,answer_text:r});case 5:i=e.sent,0===(null===i||void 0===i?void 0:i.status)&&o&&o();case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),rt=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["d"])({id:ve.categoryId});case 2:if(n=e.sent,n){e.next=5;break}return e.abrupt("return");case 5:0!==n.question_undo||0!==n.oj_undo?(r="",0!==n.question_undo&&0!==n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210\uff0c\u5305\u542b ").concat(n.oj_undo," \u4e2a\u7f16\u7a0b\u9898"):0!==n.question_undo&&0===n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210"):0===n.question_undo&&0!==n.oj_undo&&(r="\u6709 ".concat(n.oj_undo," \u7f16\u7a0b\u9898\u672a\u5b8c\u6210")),d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},r,w.a.createElement("br",null),t?"\u5728".concat(Q()(n.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 e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Ze():ot();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})):d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u77e5\u9053\u5566",content:w.a.createElement("div",{className:"tc font16"},t?"\u5728".concat(Q()(n.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 e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Ze():ot();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ot=function(){var e=Object(b["a"])(h.a.mark((function e(){var t;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:ve.categoryId,commit_method:1});case 2:t=e.sent,t&&(f["b"].success(null===t||void 0===t?void 0:t.message),$e(),Ve(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),it=function(e,t){nt(t,e,null,(function(){xe.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,xe.exercise_questions.find((function(e){return e.question_id===t})).user_answer[0]=e,ke(Object(m["a"])({},xe))}))},at=function(e,t){nt(t,e,null,(function(){xe.question_status.find((function(e){return e.ques_id===t})).ques_status=(null===e||void 0===e?void 0:e.length)?1:0,ke(Object(m["a"])({},xe))}))},st=function(e,t,n){nt(n,t,e,(function(){xe.question_status.find((function(e){return e.ques_id===n})).ques_status=e?1:0,ke(Object(m["a"])({},xe))}))},ct=function(e,t){nt(t,null,e,(function(){xe.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,ke(Object(m["a"])({},xe))}))},ut=function(e,t){var n,r,o,i,a,s,c;return w.a.createElement("div",null,w.a.createElement(l["a"].Group,{disabled:1===(null===xe||void 0===xe||null===(n=xe.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e||null===(r=e.user_answer)||void 0===r?void 0:r[0],onChange:function(t){return it(t.target.value,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-radio-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(o=e.question_choices)||void 0===o?void 0:o.map((function(t,n){var r=2==e.question_type,o=r?"":"".concat(Se[n],".");return w.a.createElement("div",{className:te.a.answerWrap,key:n},w.a.createElement(l["a"],{value:null===t||void 0===t?void 0:t.choice_id},w.a.createElement("span",{className:"mr3"},o),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===t||void 0===t?void 0:t.choice_text})))}))),Object(re["q"])()&&(null===xe||void 0===xe||null===(i=xe.exercise)||void 0===i?void 0:i.answer_open)&&(3==(null===xe||void 0===xe||null===(a=xe.exercise)||void 0===a?void 0:a.exercise_status)||1==(null===xe||void 0===xe||null===(s=xe.exercise)||void 0===s?void 0:s.user_exercise_status))&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(c=e.standard_answer)||void 0===c?void 0:c.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},lt=function(e,t){var n,r,o,i,a;return w.a.createElement("div",null,w.a.createElement(u["a"].Group,{disabled:1===(null===xe||void 0===xe||null===(n=xe.exercise)||void 0===n?void 0:n.user_exercise_status),defaultValue:null===e||void 0===e?void 0:e.user_answer,onChange:function(t){return at(t,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-checkbox-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(r=e.question_choices)||void 0===r?void 0:r.map((function(e,t){var n="".concat(Se[t],".");return w.a.createElement("div",{className:te.a.answerWrap},w.a.createElement(u["a"],{value:null===e||void 0===e?void 0:e.choice_id},w.a.createElement("span",{className:"mr3"},n),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===e||void 0===e?void 0:e.choice_text})))}))),Object(re["q"])()&&(null===xe||void 0===xe||null===(o=xe.exercise)||void 0===o?void 0:o.answer_open)&&3==(null===xe||void 0===xe||null===(i=xe.exercise)||void 0===i?void 0:i.exercise_status)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(a=e.standard_answer)||void 0===a?void 0:a.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},ft=function(e,t){return w.a.createElement(Ee,{item:e,answerData:xe,onBlur:function(t,n){return st(t,n,null===e||void 0===e?void 0:e.question_id)}})},dt=function(e,t){return w.a.createElement(ce,{item:e,answerData:xe,onBlur:function(t){return ct(t,null===e||void 0===e?void 0:e.question_id)}})},pt=function(e,t){return w.a.createElement(me,{item:e,answerData:xe})},ht=function(e,t){return w.a.createElement(ye,{item:e,answerData:xe})},mt=function(e,t){var n;return w.a.createElement(w.a.Fragment,null,w.a.createElement("h1",{className:"font14 current",onClick:function(){Ie[t]=!Ie[t],Ae(Object(m["a"])({},Ie))}},!Ie[t]&&w.a.createElement(N,null),Ie[t]&&w.a.createElement(C["a"],null),w.a.createElement("span",{className:"ml5 c-grey-666"},e)),w.a.createElement("ul",{className:te.a.answerSheet,key:t},!Ie[t]&&(null===xe||void 0===xe||null===(n=xe.exercise_questions)||void 0===n?void 0:n.map((function(e,n){var r;if(e.question_type===t)return w.a.createElement("li",{onClick:function(){var t="Anchor_".concat(e.q_position-1),n=document.getElementById(t);n&&setTimeout((function(){return n.scrollIntoView({block:"start",behavior:"smooth"})}))},key:n,className:(null===xe||void 0===xe||null===(r=xe.question_status)||void 0===r?void 0:r.some((function(t){return t.ques_id===e.question_id&&!!t.ques_status})))&&te.a.active},e.q_position)})))))};return w.a.createElement(r["a"],{size:"large",spinning:Pe},w.a.createElement("section",{className:"edu-container"},w.a.createElement("section",{className:"animated fadeIn"},w.a.createElement("aside",{className:"mt10"},w.a.createElement(c["a"],{separator:">"},w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(ve.coursesId,"/exercise")},null===(n=be.userInfo)||void 0===n||null===(p=n.course)||void 0===p?void 0:p.course_name)),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(ve.coursesId,"/exercise")},"\u8bd5\u5377")),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(ve.coursesId,"/exercise/").concat(ve.categoryId,"/detail")},"\u8bd5\u5377\u8be6\u60c5")),w.a.createElement(c["a"].Item,null,null===(v=be.userInfo)||void 0===v?void 0:v.real_name))),w.a.createElement("aside",{className:[te.a.title,"mt10"].join(" ")},w.a.createElement(i["a"],{style:{width:"100%"},align:"middle"},w.a.createElement(s["a"],{flex:"1"},w.a.createElement("div",{className:te.a.title},w.a.createElement(j["Link"],{to:"/classrooms/".concat(ve.coursesId,"/exercise/").concat(ve.categoryId,"/detail")},w.a.createElement(I["a"],{className:"font16 c-black"})),w.a.createElement("strong",{className:"font24 ml5"},null===xe||void 0===xe||null===(S=xe.exercise)||void 0===S?void 0:S.exercise_name),(null===xe||void 0===xe||null===(T=xe.exercise)||void 0===T?void 0:T.is_random)&&w.a.createElement("span",{className:te.a.randomFlag},"\u968f\u673a"),w.a.createElement(ne["g"],{status:[ne["c"][null===xe||void 0===xe||null===(O=xe.exercise)||void 0===O?void 0:O.exercise_status]]}))),w.a.createElement(s["a"],null,Object(re["c"])()&&w.a.createElement(a["a"],{type:"primary",onClick:Je},"\u6253\u56de\u91cd\u505a"),w.a.createElement(s["a"],null,(2==(null===xe||void 0===xe||null===(k=xe.exercise)||void 0===k?void 0:k.commit_status)||1==(null===xe||void 0===xe||null===(D=xe.exercise)||void 0===D?void 0:D.commit_status))&&Object(re["q"])()&&w.a.createElement(a["a"],{type:"primary",onClick:function(){return E["c"].push("/classrooms/".concat(ve.coursesId,"/exercise/").concat(ve.categoryId,"/export/").concat(ve.login))}},w.a.createElement(A["a"],null),"\u5bfc\u51fa")),!(Object(re["c"])()||Object(re["q"])()&&1==(null===xe||void 0===xe||null===(M=xe.exercise)||void 0===M?void 0:M.user_exercise_status))&&!!(null===xe||void 0===xe||null===(P=xe.exercise)||void 0===P?void 0:P.left_time)&&w.a.createElement("aside",{className:te.a.countDown},"\u5269\u4f59\u65f6\u95f4:",w.a.createElement(je,{value:ze,onFinish:Qe})))))),w.a.createElement(i["a"],{className:"mt10"},w.a.createElement(s["a"],{flex:Fe?"316px":"16px"},w.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Xe&&w.a.createElement(J,{number:(null===xe||void 0===xe||null===(L=xe.exercise)||void 0===L?void 0:L.photo_count)-(null===xe||void 0===xe||null===(R=xe.exercise)||void 0===R?void 0:R.take_photo),time:null===(B=xe.exercise)||void 0===B?void 0:B.left_time,update:$e,supportCamera:function(e){2===e?$e():1===e&&setTimeout((function(){return ge.history.push("/")}),3e3)}}),w.a.createElement("div",{className:"relative",style:{minHeight:236}},Fe&&w.a.createElement("aside",{className:"bg-white p16"},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{span:8},w.a.createElement("span",{className:"font16 blod"},"\u7b54\u9898\u5361")),w.a.createElement(s["a"],{span:16},Object(re["q"])()&&w.a.createElement("div",{className:"tr"},w.a.createElement("span",{className:te.a.answerYes}),"\u5df2\u7b54",w.a.createElement("span",{className:"".concat(te.a.answerNo," ml10")}),"\u672a\u7b54"))),w.a.createElement("aside",{className:te.a.answerInfo},w.a.createElement(i["a"],null,Object(re["q"])()&&w.a.createElement(w.a.Fragment,null,w.a.createElement(s["a"],{span:12},"\u7b54\u9898\u8fdb\u5ea6"),w.a.createElement(s["a"],{span:12,className:"tr c-blue"},null===xe||void 0===xe||null===(F=xe.question_status)||void 0===F||null===(q=F.filter((function(e){return!!e.ques_status})))||void 0===q?void 0:q.length," / ",null===xe||void 0===xe||null===(U=xe.exercise_types)||void 0===U?void 0:U.q_counts),w.a.createElement(s["a"],{span:24},w.a.createElement(o["a"],{trailColor:"#c3ced2",percent:(null===xe||void 0===xe||null===(G=xe.question_status)||void 0===G||null===(X=G.filter((function(e){return!!e.ques_status})))||void 0===X?void 0:X.length)/(null===xe||void 0===xe||null===(V=xe.exercise_types)||void 0===V?void 0:V.q_counts)*100,showInfo:!1}))),w.a.createElement(s["a"],null,w.a.createElement("span",{className:"c-grey-333"},"\u5171 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===xe||void 0===xe||null===(H=xe.exercise_types)||void 0===H?void 0:H.q_counts)||(null===xe||void 0===xe||null===(W=xe.exercise_scores)||void 0===W||null===(z=W.exercise_types)||void 0===z?void 0:z.q_counts))," \u9898\uff1a"),w.a.createElement("span",{className:"c-grey-333"},"\u6ee1\u5206 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===xe||void 0===xe||null===(K=xe.exercise_types)||void 0===K?void 0:K.q_scores)||(null===xe||void 0===xe||null===(Y=xe.exercise_scores)||void 0===Y||null===($=Y.exercise_types)||void 0===$?void 0:$.q_scores))," \u5206")))),w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("aside",{className:te.a.cardList},(null===xe||void 0===xe||null===(Z=xe.exercise_types)||void 0===Z?void 0:Z.q_singles)>0&&mt("\u5355\u9009\u9898",0),(null===xe||void 0===xe||null===(ee=xe.exercise_types)||void 0===ee?void 0:ee.q_doubles)>0&&mt("\u591a\u9009\u9898",1),(null===xe||void 0===xe||null===(ae=xe.exercise_types)||void 0===ae?void 0:ae.q_judges)>0&&mt("\u5224\u65ad\u9898",2),(null===xe||void 0===xe||null===(se=xe.exercise_types)||void 0===se?void 0:se.q_nulls)>0&&mt("\u586b\u7a7a\u9898",3),(null===xe||void 0===xe||null===(ue=xe.exercise_types)||void 0===ue?void 0:ue.q_mains)>0&&mt("\u7b80\u7b54\u9898",4),(null===xe||void 0===xe||null===(le=xe.exercise_types)||void 0===le?void 0:le.q_shixuns)>0&&mt("\u5b9e\u8bad\u9898",5),(null===xe||void 0===xe||null===(fe=xe.exercise_types)||void 0===fe?void 0:fe.q_pros)>0&&mt("\u7f16\u7a0b\u9898",6))))),w.a.createElement("div",{className:te.a.fold,onClick:function(){return qe(!Fe)}},Fe&&w.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Fe&&w.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),w.a.createElement(s["a"],{flex:"1"},w.a.createElement("section",{className:[te.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},w.a.createElement("div",null,null===xe||void 0===xe||null===(de=xe.exercise_questions)||void 0===de?void 0:de.map((function(e,t){var n,r,o=5==e.question_type?e.shixun_name:e.question_title;return w.a.createElement("div",{className:te.a.questionItem,id:"Anchor_".concat(t)},w.a.createElement("div",{className:te.a.itemType},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("span",{className:"font16 c-blue mr5"},e.q_position,"\u3001",Oe[e.question_type]),w.a.createElement("span",{className:"c-grey-999 mr5"},"(",e.question_score,"\u5206)")),w.a.createElement(s["a"],null,e.question_type<3&&e.standard_answer_show&&w.a.createElement("span",{className:"font16 ml20"},"\u6b63\u786e\u7b54\u6848\uff1a",null===e||void 0===e?void 0:e.standard_answer_show),(Object(re["c"])()||Object(re["q"])()&&(null===xe||void 0===xe||null===(n=xe.exercise)||void 0===n?void 0:n.user_exercise_status)>0)&&w.a.createElement("span",{className:"font16 ml20"},e.user_score&&w.a.createElement("span",null,w.a.createElement("span",{className:Te[Number(null===e||void 0===e?void 0:e.answer_status)]||"c-orange-ff9"},e.user_score)," \u5206"),!e.user_score&&w.a.createElement("span",{className:"c-red"},"\u672a\u8bc4")),5==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return et(e)}},"\u8fdb\u5165\u7b54\u9898"),Object(re["q"])()&&0===(null===xe||void 0===xe||null===(r=xe.exercise)||void 0===r?void 0:r.user_exercise_status)&&6==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return tt(e)}},"\u8fdb\u5165\u7b54\u9898")))),w.a.createElement("div",{className:""},w.a.createElement(ie["a"],{value:o})),0==e.question_type&&ut(e,t),2==e.question_type&&ut(e,t),1==e.question_type&&lt(e,t),3==e.question_type&&ft(e,t),4==e.question_type&&dt(e,t),5==e.question_type&&pt(e,t),6==e.question_type&&ht(e,t))})))),Object(re["q"])()&&0===(null===xe||void 0===xe||null===(pe=xe.exercise)||void 0===pe?void 0:pe.user_exercise_status)&&w.a.createElement(i["a"],{className:"mt30 mb50"},w.a.createElement(s["a"],{flex:"1"}),w.a.createElement(s["a"],null,!!(null===xe||void 0===xe||null===(he=xe.exercise)||void 0===he?void 0:he.left_time)&&w.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"),w.a.createElement(a["a"],{className:"".concat(te.a.submitButton," mr10"),type:"default",onClick:function(){return rt(!0)}},"\u4fdd\u5b58"),w.a.createElement(a["a"],{className:te.a.submitButton,type:"primary",onClick:function(){return rt(!1)}},"\u4ea4\u5377")))))))};t["default"]=Object(E["a"])((function(e){var t=e.loading,n=e.user,r=e.globalSetting;return{globalSetting:r,user:n,loading:t.effects}}))(ke)},Ot1p:function(e,t,n){"use strict";n("rjoL");var r=n("TMtJ"),o=n("Uu80"),i=n("GZha"),a=n("zjzt"),s=n("ZZRV"),c=n.n(s),u=n("M0ff"),l=n.n(u),f=n("BlUI"),d=(n("4X1q"),n("bwE0"),n("aPdX"),n("rnm6"),n("95/S"),n("kSUc"),n("9Bee")),p=n("1gHQ"),h=(n("dejd"),n("C+DQ"),[{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 m(e){var t=e.onActionCallback,n=e.title,r=e.icon,o=e.actionName,i=e.className,a=void 0===i?"":i,s=e.children;function u(){t(o)}return c.a.createElement("a",{title:n,className:a,onClick:u},c.a.createElement("i",{className:"md-iconfont ".concat(r)}),s)}var b=function(e){var t=e.watch,n=e.showNullButton,r=e.onActionCallback,o=e.fullScreen,i=[].concat(h,[{title:"".concat(t?"\u5173\u95ed\u5b9e\u65f6\u9884\u89c8":"\u5f00\u542f\u5b9e\u65f6\u9884\u89c8"),icon:"".concat(t?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},i.map((function(e,t){return c.a.createElement("li",{key:t},e.actionName?c.a.createElement(m,Object(p["a"])({},e,{onActionCallback:r})):c.a.createElement("span",{className:"v-line"}))})),n?c.a.createElement("li",null,c.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589e\u52a0\u586b\u7a7a",actionName:"add-null-ch",onActionCallback:r},c.a.createElement("span",{className:"fill-tip"},"\u70b9\u51fb\u63d2\u5165\b\u586b\u7a7a\u9879"))):null,c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(m,{icon:"".concat(o?"icon-shrink":"icon-enlarge"),title:o?"\u5173\u95ed\u5168\u5c4f":"\u5f00\u542f\u5168\u5c4f",actionName:"trigger-full-screen",onActionCallback:r})))},g=n("M8RZ"),y=(n("MPZO"),n("bnk9")),v=(n("EkPb"),n("7X0+")),_=(n("DHCt"),n("CRgH")),w={labelCol:{span:4},wrapperCol:{span:20}},x=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],Object(p["a"])({},w,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:r}),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u5730\u5740"}]},c.a.createElement(_["a"],null)),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u6807\u9898"}]},c.a.createElement(_["a"],null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},E=n("7ahc"),j=(n("HmJG"),n("BjJ7")),S=v["a"].useForm,T={width:280,marginRight:10},O={labelCol:{span:5},wrapperCol:{span:19}},k=function(e){var t=e.callback,n=e.onCancel,r=S(),o=Object(i["a"])(r,1),a=o[0];function s(e){t(e)}function u(e){a.setFieldsValue({src:"/api/attachments/".concat(e.id)})}function l(e){var t=e.target.files[0];C(t,u)}return c.a.createElement(v["a"],Object(p["a"])({form:a},O,{className:"upload-image-panel",onFinish:s}),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(v["a"].Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u5730\u5740"}]},c.a.createElement(_["a"],{style:T})),c.a.createElement(N,{onFileChange:l}))),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u63cf\u8ff0",name:"alt",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0"}]},c.a.createElement(_["a"],{style:{width:264}})),c.a.createElement(v["a"].Item,{style:{textAlign:"right"}},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))};function N(e){var t=e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672c\u5730\u4e0a\u4f20",c.a.createElement("input",{type:"file",accept:"image/*",onChange:t}))}function C(e,t){var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var r=new window.XMLHttpRequest;r.withCredentials=!0,r.addEventListener("load",(function(e){t(JSON.parse(e.target.responseText))}),!1),r.addEventListener("error",(function(e){console.error(e)}),!1),r.open("POST","".concat(j["a"],"/api/attachments.json")),r.send(n)}n("EYz/");var I,A,D=n("gwXo"),M=(n("9cas"),n("twZV")),P=M["a"].Group,L={margin:"0 8px"},R=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:r},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:L},"\u5355\u5143\u683c\u6570\uff1a"),c.a.createElement("span",{style:L},"\u884c\u6570"),c.a.createElement(v["a"].Item,{name:"row",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u884c\u6570"}]},c.a.createElement(D["a"],null)),c.a.createElement("span",{style:L},"\u5217\u6570"),c.a.createElement(v["a"].Item,{name:"col",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5217\u6570"}]},c.a.createElement(D["a"],null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:L},"\u5bf9\u9f50\u65b9\u5f0f\uff1a"),c.a.createElement(v["a"].Item,{name:"align"},c.a.createElement(P,null,c.a.createElement(M["a"],{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(M["a"],{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(M["a"],{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(M["a"],{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},B=n("9kvl"),F="link",q="upload-image",U="code-block",G="add-table",X="------------",V={default:X,left:":".concat(X),center:":".concat(X,":"),right:"".concat(X,":")},H=n("9VGf");var W=0,z=10,K=1e4,Y="\u2581";function $(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var J=navigator.platform.toUpperCase().indexOf("MAC")>=0,Z=J?"Cmd":"Ctrl",Q=(I={},Object(a["a"])(I,Z+"-B","bold"),Object(a["a"])(I,Z+"-I","italic"),I),ee=(A={},Object(a["a"])(A,F,"\u6dfb\u52a0\u94fe\u63a5"),Object(a["a"])(A,U,"\u6dfb\u52a0\u4ee3\u7801\u5757"),Object(a["a"])(A,q,"\u6dfb\u52a0\u56fe\u7247"),Object(a["a"])(A,G,"\u6dfb\u52a0\u8868\u683c"),A);t["a"]=function(e){var t=e.defaultValue,n=void 0===t?"":t,u=e.onChange,p=e.width,h=void 0===p?"100%":p,m=e.height,y=void 0===m?400:m,v=e.miniToolbar,_=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,S=e.watch,T=e.id,O=void 0===T?"markdown-editor-id":T,N=e.showResizeBar,I=void 0!==N&&N,A=e.noStorage,D=void 0!==A&&A,M=e.showNullButton,P=void 0!==M&&M,L=e.fullScreen,X=void 0!==L&&L,J=e.onBlur,Z=e.onCMBeforeChange,te=e.className,ne=void 0===te?"":te,re=e.placeholder,oe=void 0===re?"":re,ie=Object(s["useState"])(null),ae=Object(i["a"])(ie,2),se=ae[0],ce=ae[1],ue=Object(s["useState"])(n),le=Object(i["a"])(ue,2),fe=le[0],de=le[1],pe=Object(s["useState"])(S),he=Object(i["a"])(pe,2),me=he[0],be=he[1],ge=Object(s["useState"])(X),ye=Object(i["a"])(ge,2),ve=ye[0],_e=ye[1],we=Object(s["useState"])(""),xe=Object(i["a"])(we,2),Ee=xe[0],je=xe[1],Se=Object(s["useState"])(0),Te=Object(i["a"])(Se,2),Oe=Te[0],ke=Te[1],Ne=Object(s["useState"])(y),Ce=Object(i["a"])(Ne,2),Ie=Ce[0],Ae=Ce[1],De=Object(s["useState"])(!1),Me=Object(i["a"])(De,2),Pe=Me[0],Le=Me[1],Re=Object(s["useRef"])(),Be=Object(s["useRef"])(),Fe=Object(s["useRef"])(),qe=Object(s["useRef"])();Object(s["useEffect"])((function(){if(Re.current){var e=function(e,n){var r=n.clipboardData;if(r){var o=r.types.toString(),i=r.items;if("text/html,Files"!==o&&"Files"!==o)return!0;var a=i[1];"Files"===o&&(a=i[0]),"file"===a.kind&&a.type.match(/^image\//i)&&C(a.getAsFile(),(function(e){e.id?t.replaceSelection("![,](/api/attachments/".concat(e.id,")")):B["c"].replace("/user/login",{from:B["c"].location.pathname})}))}return!0},t=l.a.fromTextArea(Re.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!_,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("paste",e),ce(t),function(){t.off("paste",e)}}}),[]);var Ue=Object(s["useCallback"])((function(){if(Be.current)try{var e=Be.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,t=Be.current.getElementsByClassName("markdown-editor-body")[0];t.style.height=ve?"calc(100vh - ".concat(e,"px)"):"".concat(Ie-e,"px")}catch(n){console.log(n,"---- to set md editor body height")}}),[Ie,Be,ve]);Object(s["useEffect"])((function(){function e(){var e=new f["default"]((function(e){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&(Ue(),se.setSize("100%","100%"),se.refresh())}}catch(i){n.e(i)}finally{n.f()}}));return e.observe(Re.current.parentElement),e}if(se){var t=e();return function(){t.unobserve(Re.current.parentElement)}}}),[se,Ue]),Object(s["useEffect"])((function(){if(se){for(var e=[],t=function(){var t=r[n];s=Object(i["a"])(t,2);var o=s[0],c=s[1],u=Object(a["a"])({},o,(function(){Ge(c)}));e.push(u),se.addKeyMap(u)},n=0,r=Object.entries(Q);n<r.length;n++){var s;t()}return function(){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;se.removeKeyMap(r)}}catch(i){n.e(i)}finally{n.f()}}}}),[se]),Object(s["useEffect"])((function(){X!==ve&&_e(X)}),[X]),Object(H["a"])((function(){if(!D&&Oe>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(O);e>=Oe+K&&(!t||t!==fe)&&(window.sessionStorage.setItem(O,fe),Le(!0))}}),K),Object(s["useEffect"])((function(){be(S)}),[se,S]),Object(s["useEffect"])((function(){se&&j&&se.focus()}),[se,j]),Object(s["useEffect"])((function(){if(me&&se){var e=function(e){var t=e.target;qe.current&&(qe.current.scrollTop=qe.current.scrollHeight*t.scrollTop/t.scrollHeight)},t=se.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[se,me]),Object(s["useEffect"])((function(){if(se&&Z){var e=function(e,t){Z(e,t)};return se.on("beforeChange",e),function(){se.off("beforeChange",e)}}}),[se,Z]),Object(s["useEffect"])((function(){if(se&&J){var e=function(){J(se.getValue())};return se.on("blur",e),function(){se.off("blur",e)}}}),[se,J]),Object(s["useEffect"])((function(){if(se){var e=function(e){var t=e.getValue();clearTimeout(W),W=setTimeout((function(){de(t),ke((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),u&&u(t)}),z)};return se.on("change",e),function(){se.off("change",e)}}}),[se,u]),Object(s["useEffect"])((function(){se&&(null===n||void 0===n?(se.setValue(""),de("")):n!==se.getValue()&&(se.setValue(n),de(n)))}),[se,n]);var Ge=Object(s["useCallback"])((function(e){var t=se.getCursor(),n=se.getSelection(),r=n.split("\n");switch(e){case"bold":return se.replaceSelection("**"+n+"**"),""===n&&se.setCursor(t.line,t.ch+2),se.focus();case"italic":return se.replaceSelection("*"+n+"*"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"code":return se.replaceSelection("`"+n+"`"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"inline-latex":return se.replaceSelection("`$$"+n+"$$`"),""===n&&se.setCursor(t.line,t.ch+3),se.focus();case"latex":return se.replaceSelection("```latex\n"+n+"\n```"),se.setCursor(t.line+1,n.length+1),se.focus();case"line-break":return se.replaceSelection("<br/>\n"),se.focus();case"list-ul":return""===n?se.replaceSelection("- "+n):se.replaceSelection(r.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),se.focus();case"list-ol":return""===n?se.replaceSelection("1. "+n):se.replaceSelection(r.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),se.focus();case"add-null-ch":return""===n&&se.setCursor(t.line,t.ch+1),se.replaceSelection(Y),se.focus();case"eraser":return se.setValue(""),se.focus();case"trigger-watch":return be(!me),se.focus();case"trigger-full-screen":return _e(!ve),se.focus();case F:return void je(F);case U:return void je(U);case q:return void je(q);case G:return void je(G);default:throw new Error}}),[se,me,ve]),Xe=Object(s["useCallback"])((function(e){switch(je(""),Ee){case F:var t=e.title,n=e.link;return se.replaceSelection("[".concat(t,"](").concat(n,")")),se.focus();case U:var r=e.language,o=e.content;return se.replaceSelection(["```"+r,o,"```"].join("\n")),se.focus();case q:var i=e.src,a=e.alt;return se.replaceSelection("![ ".concat(a," ]( ").concat(i,' "').concat(a,'" )')),se.focus();case G:for(var s=e.row,c=e.col,u=e.align,l="\n",f=0;f<s;f++){for(var d=[],p=[],h=0;h<c;h++)1===f&&p.push(V[u]),d.push(" ");1===f&&(l+="| ".concat(p.join(" | ")," |\n")),l+="| ".concat(d.join(1===c?"":" | ")," |\n")}return se.replaceSelection(l+"\n"),se.focus();default:throw new Error}}),[se,Ee]),Ve=Object(s["useMemo"])((function(){switch(Ee){case F:return c.a.createElement(x,{callback:Xe,onCancel:He});case U:return c.a.createElement(E["b"],{callback:Xe,onCancel:He});case q:return c.a.createElement(k,{callback:Xe,onCancel:He});case G:return c.a.createElement(R,{callback:Xe,onCancel:He});default:return null}}),[Ee]);function He(){je("")}Object(s["useEffect"])((function(){if(Fe.current){var e=function(e){o=!0,i=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-i;t<0&&(t=0),t>300&&(t=300);var n=y+t+"px";Ae(n)}},r=Fe.current,o=!1,i=0;return r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){r.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[se,Fe]),Object(s["useEffect"])((function(){Ae(y)}),[y]);var We=$(h),ze=$(Ie),Ke={width:We,height:ze},Ye=Object(s["useMemo"])((function(){if(Oe){var e=new Date(Oe),t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return t=t<10?"0"+t:t,n=n<10?"0"+n:n,r=r<10?"0"+r:r,"".concat(t,":").concat(n,":").concat(r)}return 0}),[Oe]);function $e(){window.sessionStorage.removeItem(O),Le(!1),ke(0)}function Je(){Le(!1),ke(0),se.setValue(window.sessionStorage.getItem(O))}return c.a.createElement(s["Fragment"],null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Be},c.a.createElement("div",{className:"markdown-editor-container ".concat(ne," ").concat(me?"on-preview":""," ").concat(_?"mini":""," ").concat(ve?"full-screen":""),style:Ke},c.a.createElement(b,{watch:me,fullScreen:ve,showNullButton:P,onActionCallback:Ge}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Re,placeholder:oe})),me?c.a.createElement("div",{ref:qe,className:"preview-container"},c.a.createElement(d["a"],{value:fe})):null)),Pe?c.a.createElement("div",{className:"markdown-tip"},"\u60a8\u4e0a\u6b21\u6709\u5df2\u4fdd\u5b58\u7684\u6570\u636e\uff0c\u662f\u5426",c.a.createElement("a",{onClick:Je},"\u6062\u590d")," ? /",c.a.createElement("a",{onClick:$e},"\u4e0d\u6062\u590d")," \uff08\u6570\u636e\u5df2\u4e8e ",Ye," \u4fdd\u5b58\uff09"):null),I?c.a.createElement("a",{ref:Fe,className:"editor-resize"}):null,c.a.createElement(g["a"],null,ee[Ee]?c.a.createElement(r["a"],{centered:!0,title:ee[Ee],visible:!0,onCancel:He,footer:null},Ve):null))}},V5fa:function(e,t,n){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",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("55MS"),o=n("Uu80"),i=n("GZha"),a=n("ZZRV"),s=n.n(a),c=n("BlUI");function u(e,t,n,o,i){var a=t.getWordUntilPosition(n),s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:a.startColumn,endColumn:a.endColumn},c=o.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}}));return i.map((function(e){c.push(Object(r["a"])(Object(r["a"])({},e),{},{range:s}))})),c}var l=function(e){var t={label:"ifelse",kind:e.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},n=["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"];e.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(r,o){var i=u(e,r,o,n,[t]);return{suggestions:i}}});var r=["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"];e.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(t,n){var o=[{label:"print",kind:e.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],i=u(e,t,n,r,o);return{suggestions:i}}});var o=["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"];e.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(n,r){var i=[t,{label:"main",kind:e.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {","\t$0","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:e.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],a=u(e,n,r,o,i);return{suggestions:a}}})};function f(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function d(){}var p=!1,h={"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 m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var r=h[e[n]];if(r)return r}return t[0]}return h[t]||t}var b=null;t["b"]=function(e){var t=e.width,u=void 0===t?"100%":t,h=e.height,g=void 0===h?"100%":h,y=e.value,v=e.language,_=void 0===v?"javascript":v,w=e.style,x=void 0===w?{}:w,E=e.options,j=void 0===E?{}:E,S=e.overrideServices,T=void 0===S?{}:S,O=e.theme,k=void 0===O?"vs-dark":O,N=e.onEditBlur,C=e.onSave,I=e.forbidCopy,A=void 0!==I&&I,D=e.onChange,M=void 0===D?d:D,P=e.editorDidMount,L=void 0===P?d:P,R=e.onFocus,B=void 0===R?d:R,F=Object(a["useRef"])(),q=Object(a["useRef"])({}),U=Object(a["useState"])(!1),G=Object(i["a"])(U,2),X=G[0],V=G[1];function H(){var e;return F.current&&(e=new c["default"]((function(e){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&q.current.instance.layout()}}catch(i){n.e(i)}finally{n.f()}})),e.observe(F.current)),e}function W(){var e=q.current.instance;if(e){var t=e.getSelection(),n=q.current.pastePos||{},r=new b.Range(n.startLineNumber||t.endLineNumber,n.startColumn||t.endColumn,n.endLineNumber||t.endLineNumber,n.endColumn||t.endColumn);e.executeEdits("",[{range:r,text:""}])}}function z(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),C())}Object(a["useEffect"])((function(){var e=q.current.instance;if(null!=y&&e&&X){var t=e.getModel();t&&y!==t.getValue()&&(p=!0,t.setValue(y),e.layout(),p=!1)}}),[y,X,q.current]),Object(a["useEffect"])((function(){F.current&&!X&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e,l(b),q.current.instance=b.editor.create(F.current,Object(r["a"])({value:y,language:m(_),theme:k},j),T);var t=q.current.instance;L(t,b),q.current.subscription=t.onDidChangeModelContent((function(e){p||M(t.getValue(),e)})),N&&t.onDidBlurEditorWidget((function(){N(t.getValue())})),B&&t.onDidFocusEditorText((function(){B(t.getValue())})),A&&(t.addCommand(b.KeyMod.CtrlCmd|b.KeyCode.KEY_V,(function(){return null})),t.onDidPaste((function(e){q.current.pastePos=e})),window.addEventListener("paste",W));var n=H();return V(!0),function(){var e=q.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),q.current.subscription&&q.current.subscription.dispose(),A&&window.removeEventListener("paste",W),n.unobserve(F.current)}}))}),[]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X)return document.addEventListener("keydown",z,!1),function(){document.removeEventListener("keydown",z)}}),[C,X]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X){var t=m(_);b.editor.setModelLanguage(e.getModel(),t)}}),[_,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&b.editor.setTheme(k)}),[k,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.updateOptions(j)}),[JSON.stringify(j),X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.layout()}),[u,g,X]);var K=f(u),Y=f(g),$=Object(r["a"])(Object(r["a"])({},x),{},{width:K,height:Y});return s.a.createElement("div",{className:"my-monaco-editor",ref:F,style:$})};function g(e){var t=e.width,u=void 0===t?"100%":t,l=e.height,d=void 0===l?"100%":l,p=e.original,h=e.modified,m=e.language,g=e.options,y=void 0===g?{}:g,v=Object(a["useRef"])(),_=Object(a["useState"])(null),w=Object(i["a"])(_,2),x=w[0],E=w[1];function j(e){var t;return v.current&&(t=new c["default"]((function(t){var n,r=Object(o["a"])(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&e.layout()}}catch(a){r.e(a)}finally{r.f()}})),t.observe(v.current)),t}Object(a["useEffect"])((function(){v.current&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e;var t=b.editor.createDiffEditor(v.current,Object(r["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},y));E(t);var n=j(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(v.current)}}))}),[]),Object(a["useEffect"])((function(){x&&x.setModel({original:b.editor.createModel(p,m),modified:b.editor.createModel(h,m)})}),[p,h,m,x]);var S=f(u),T=f(d),O={width:S,height:T};return s.a.createElement("div",{className:"my-diff-editor",ref:v,style:O})}},dejd:function(e,t,n){},kSUc:function(e,t,n){},o5mm:function(e,t,n){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"}},piNp:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){module.exports=e()})((function(){var define,module,exports;return function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}return e}()({1:[function(e,t,n){"use strict";var r=e("./browser/client");r.Buffer=e("buffer").Buffer,r.urllib=e("../shims/xhr"),r.version=e("./browser/version").version,t.exports=r},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(e,t,n){(function(n,r){"use strict";var o=e("babel-runtime/core-js/promise"),i=l(o),a=e("babel-runtime/regenerator"),s=l(a),c=e("babel-runtime/core-js/object/assign"),u=l(c);function l(e){return e&&e.__esModule?e:{default:e}}var f=e("debug")("ali-oss"),d=e("copy-to"),p=e("xml2js"),h=e("agentkeepalive"),m=e("merge-descriptors"),b=e("url"),g=e("is-type-of"),y=e("platform"),v=e("utility"),_=e("urllib"),w=e("./version"),x=e("bowser"),E=e("../common/signUtils"),j=e("../common/utils/isIP"),S=j.isIP,T=e("../common/client/initOptions"),O=e("../common/utils/createRequest"),k=O.createRequest,N=new h;function C(){var e=y.name,t=y.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function I(){return location&&"https:"===location.protocol}function A(e,t){if(C(),!(this instanceof A))return new A(e,t);e&&e.inited?this.options=e:this.options=A.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=_,this.agent=this.options.agent||N),this.ctx=t,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}t.exports=A,A.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=(0,u["default"])({secure:I(),useFetch:!1},e);return T(t)};var D=A.prototype;D.debug=f,m(D,e("./object")),m(D,e("../common/bucket/getBucketWebsite")),m(D,e("../common/bucket/putBucketWebsite")),m(D,e("../common/bucket/deleteBucketWebsite")),m(D,e("../common/bucket/getBucketLifecycle")),m(D,e("../common/bucket/putBucketLifecycle")),m(D,e("../common/bucket/deleteBucketLifecycle")),m(D,e("../common/bucket/putBucketVersioning")),m(D,e("../common/bucket/getBucketVersioning")),m(D,e("./managed-upload")),m(D,e("../common/multipart")),m(D,e("../common/parallel")),D.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),E.computeSignature(this.options.accessKeySecret,e)},D.authorization=function(e,t,n,r){var o=E.buildCanonicalString(e.toUpperCase(),t,{headers:r,parameters:n});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,o)},D.request=function(e){var t,n,r,o,i,a;return s["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return t=k.call(this,e),this.options.useFetch||(t.params.mode="disable-fetch"),n=void 0,r=void 0,o=!!e.stream,c.prev=5,c.next=8,s["default"].awrap(this.urllib.request(t.url,t.params));case 8:n=c.sent,this.debug("response %s %s, got %s, headers: %j",e.method,t.url,n.status,n.headers,"info"),c.next=15;break;case 12:c.prev=12,c.t0=c["catch"](5),r=c.t0;case 15:if(i=void 0,!n||!e.successStatuses||-1!==e.successStatuses.indexOf(n.status)){c.next=28;break}return c.next=19,s["default"].awrap(this.requestError(n));case 19:if(i=c.sent,"RequestTimeTooSkewed"!==i.code||o){c.next=25;break}return this.options.amendTimeSkewed=+new Date(i.serverTime)-new Date,c.next=24,s["default"].awrap(this.request(e));case 24:return c.abrupt("return",c.sent);case 25:i.params=e,c.next=32;break;case 28:if(!r){c.next=32;break}return c.next=31,s["default"].awrap(this.requestError(r));case 31:i=c.sent;case 32:if(!i){c.next=34;break}throw i;case 34:if(!e.xmlResponse){c.next=39;break}return c.next=37,s["default"].awrap(this.parseXML(n.data));case 37:a=c.sent,n.data=a;case 39:return c.abrupt("return",n);case 40:case"end":return c.stop()}}),null,this,[[5,12]])},D._getResource=function(e){var t="/";return e.bucket&&(t+=e.bucket+"/"),e.object&&(t+=e.object),t},D._isIP=S,D._escape=function(e){return v.encodeURIComponent(e).replace(/%2F/g,"/")},D._getReqUrl=function(e){var t={};d(this.options.endpoint).to(t);var n=this._isIP(t.hostname),r=this.options.cname;!e.bucket||r||n||(t.host=e.bucket+"."+t.host);var o="/";e.bucket&&n&&(o+=e.bucket+"/"),e.object&&(o+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=o;var i={};if(e.query&&m(i,e.query),e.subres){var a={};g.string(e.subres)?a[e.subres]="":g.array(e.subres)?e.subres.forEach((function(e){a[e]=""})):a=e.subres,m(i,a)}return t.query=i,b.format(t)},D._getUserAgent=function(){var e=r&&r.browser?"js":"nodejs",t="aliyun-sdk-"+e+"/"+w.version,n=y.description;return!n&&r&&(n="Node.js "+r.version.slice(1)+" on "+r.platform+" "+r.arch),this._checkUserAgent(t+" "+n)},D._checkUserAgent=function(e){var t=e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return t},D.checkBrowserAndVersion=function(e,t){return x.name===e&&x.version.split(".")[0]===t},D.parseXML=function(e){return new i["default"]((function(t,r){n.isBuffer(e)&&(e=e.toString()),p.parseString(e,{explicitRoot:!1,explicitArray:!1},(function(e,n){e?r(e):t(n)}))}))},D.requestError=function(e){var t,n,r,o;return s["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:if(t=null,e.data&&e.data.length){i.next=5;break}-1===e.status||-2===e.status?(t=new Error(e.message),t.name=e.name,t.status=e.status,t.code=e.name):(404===e.status?(t=new Error("Object not exists"),t.name="NoSuchKeyError",t.status=404,t.code="NoSuchKey"):412===e.status?(t=new Error("Pre condition failed"),t.name="PreconditionFailedError",t.status=412,t.code="PreconditionFailed"):(t=new Error("Unknow error, status: "+e.status),t.name="UnknowError",t.status=e.status),t.requestId=e.headers["x-oss-request-id"],t.host=""),i.next=33;break;case 5:return n=String(e.data),this.debug("request response error data: %s",n,"error"),r=void 0,i.prev=8,i.next=11,s["default"].awrap(this.parseXML(n));case 11:if(i.t0=i.sent,i.t0){i.next=14;break}i.t0={};case 14:r=i.t0,i.next=24;break;case 17:return i.prev=17,i.t1=i["catch"](8),this.debug(n,"error"),i.t1.message+="\nraw xml: "+n,i.t1.status=e.status,i.t1.requestId=e.headers["x-oss-request-id"],i.abrupt("return",i.t1);case 24:o=r.Message||"unknow request error, status: "+e.status,r.Condition&&(o+=" (condition: "+r.Condition+")"),t=new Error(o),t.name=r.Code?r.Code+"Error":"UnknowError",t.status=e.status,t.code=r.Code,t.requestId=r.RequestId,t.hostId=r.HostId,t.serverTime=r.ServerTime;case 33:return this.debug("generate error %j",t,"error"),i.abrupt("return",t);case 35:case"end":return i.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,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/array/from"),o=u(r),i=e("babel-runtime/core-js/promise"),a=u(i),s=e("babel-runtime/regenerator"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("is-type-of"),f=e("util"),d=e("path"),p=e("mime"),h=e("copy-to"),m=e("../common/utils/isBlob"),b=m.isBlob,g=e("../common/utils/isFile"),y=g.isFile,v=n;v.multipartUpload=function(e,t,n){var r,o,i,a,s,u,l,f,h;return c["default"].async((function(m){while(1)switch(m.prev=m.next){case 0:if(this.resetCancelFlag(),n=n||{},!n.checkpoint||!n.checkpoint.uploadId){m.next=6;break}return m.next=5,c["default"].awrap(this._resumeMultipart(n.checkpoint,n));case 5:return m.abrupt("return",m.sent);case 6:return r=102400,n.mime||(y(t)?n.mime=p.getType(d.extname(t.name)):b(t)?n.mime=t.type:n.mime=p.getType(d.extname(t))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),m.next=12,c["default"].awrap(this._getFileSize(t));case 12:if(o=m.sent,!(o<r)){m.next=25;break}return i=this._createStream(t,0,o),n.contentLength=o,m.next=18,c["default"].awrap(this.putStream(e,i,n));case 18:if(a=m.sent,!n||!n.progress){m.next=22;break}return m.next=22,c["default"].awrap(n.progress(1));case 22:return s={res:a.res,bucket:this.options.bucket,name:e,etag:a.res.headers.etag},(n.headers&&n.headers["x-oss-callback"]||n.callback)&&(s.data=a.data),m.abrupt("return",s);case 25:if(!n.partSize||parseInt(n.partSize,10)===n.partSize){m.next=27;break}throw new Error("partSize must be int number");case 27:if(!(n.partSize&&n.partSize<r)){m.next=29;break}throw new Error("partSize must not be smaller than "+r);case 29:return m.next=31,c["default"].awrap(this.initMultipartUpload(e,n));case 31:if(u=m.sent,l=u.uploadId,f=this._getPartSize(o,n.partSize),h={file:t,name:e,fileSize:o,partSize:f,uploadId:l,doneParts:[]},!n||!n.progress){m.next=38;break}return m.next=38,c["default"].awrap(n.progress(0,h,u.res));case 38:return m.next=40,c["default"].awrap(this._resumeMultipart(h,n));case 40:return m.abrupt("return",m.sent);case 41:case"end":return m.stop()}}),null,this)},v._resumeMultipart=function(e,t){var n,r,i,s,u,l,f,d,p,m,b,g,y,v,_,w,x,E;return c["default"].async((function(j){while(1)switch(j.prev=j.next){case 0:if(n=this,!this.isCancel()){j.next=3;break}throw this._makeCancelEvent();case 3:return r=e.file,i=e.fileSize,s=e.partSize,u=e.uploadId,l=e.doneParts,f=e.name,d=[],l.length>0&&h(l).to(d),p=this._divideParts(i,s),m=p.length,b=!1,g=function(n,o){var i=this;return new a["default"]((function(a,s){var d,g,y,v;return c["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,n.isCancel()){i.next=18;break}return d=p[o-1],g={stream:n._createStream(r,d.start,d.end),size:d.end-d.start},i.next=6,c["default"].awrap(n._uploadPart(f,u,o,g));case 6:if(y=i.sent,n.isCancel()||b){i.next=15;break}if(e.doneParts.push({number:o,etag:y.res.headers.etag}),!t.progress){i.next=12;break}return i.next=12,c["default"].awrap(t.progress(l.length/m,e,y.res));case 12:a({number:o,etag:y.res.headers.etag}),i.next=16;break;case 15:a();case 16:i.next=19;break;case 18:a();case 19:i.next=30;break;case 21:i.prev=21,i.t0=i["catch"](0),v=new Error,v.name=i.t0.name,v.message=i.t0.message,v.stack=i.t0.stack,v.partNum=o,h(i.t0).to(v),s(v);case 30:case"end":return i.stop()}}),null,i,[[0,21]])}))},y=(0,o["default"])(new Array(m),(function(e,t){return t+1})),v=d.map((function(e){return e.number})),_=y.filter((function(e){return v.indexOf(e)<0})),w=5,x=t.parallel||w,j.next=17,c["default"].awrap(this._parallel(_,x,(function(e){return new a["default"]((function(t,r){g(n,e).then((function(e){e&&d.push(e),t()}))["catch"]((function(e){r(e)}))}))})));case 17:if(E=j.sent,b=!0,!this.isCancel()){j.next=22;break}throw g=null,this._makeCancelEvent();case 22:if(!(E&&E.length>0)){j.next=25;break}throw E[0].message="Failed to upload some parts with error: "+E[0].toString()+" part_num: "+E[0].partNum,E[0];case 25:return j.next=27,c["default"].awrap(this.completeMultipartUpload(f,u,d,t));case 27:return j.abrupt("return",j.sent);case 28:case"end":return j.stop()}}),null,this)},v._getFileSize=function(e){return c["default"].async((function(t){while(1)switch(t.prev=t.next){case 0:if(!l.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!b(e)&&!y(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return t.stop()}}),null,this)};var _=e("stream"),w=_.Readable;function x(e,t){if(!(this instanceof x))return new x(e,t);w.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(x,w),x.prototype.readFileAndPush=function(e){if(this.fileBuffer){var t=!0;while(t&&this.fileBuffer&&this.start<this.fileBuffer.length){var n=this.start,r=n+e;r=r>this.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(n,r))}}},x.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);var n=16384;e=e||n;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},v._createStream=function(e,t,n){if(b(e)||y(e))return new x(e.slice(t,n));throw new Error("_createStream requires File/Blob.")},v._getPartSize=function(e,t){var n=1e4,r=1048576;return t?Math.max(Math.ceil(e/n),t):r},v._divideParts=function(e,t){for(var n=Math.ceil(e/t),r=[],o=0;o<n;o++){var i=t*o,a=Math.min(i+t,e);r.push({start:i,end:a})}return r}}).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,t,n){"use strict";var r=e("babel-runtime/core-js/promise"),o=f(r),i=e("babel-runtime/core-js/object/keys"),a=f(i),s=e("babel-runtime/core-js/object/assign"),c=f(s),u=e("babel-runtime/regenerator"),l=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var d=e("utility"),p=e("fs"),h=e("is-type-of"),m=e("url"),b=e("copy-to"),g=e("path"),y=e("mime"),v=e("../common/callback"),_=e("../common/signUtils"),w=e("merge-descriptors"),x=e("../common/utils/isBlob"),E=x.isBlob,j=e("../common/utils/isFile"),S=j.isFile,T=n;T.append=function(e,t,n){var r;return l["default"].async((function(o){while(1)switch(o.prev=o.next){case 0:return n=n||{},void 0===n.position&&(n.position="0"),n.subres={append:"",position:n.position},n.method="POST",o.next=6,l["default"].awrap(this.put(e,t,n));case 6:return r=o.sent,r.nextAppendPosition=r.res.headers["x-oss-next-append-position"],o.abrupt("return",r);case 9:case"end":return o.stop()}}),null,this)},T.put=function(e,t,n){var r,o,i,a,s,c,u;return l["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:if(r=void 0,n=n||{},e=this._objectName(e),!h.buffer(t)){f.next=7;break}r=t,f.next=33;break;case 7:if(!E(t)&&!S(t)){f.next=32;break}return n.mime||(S(t)?n.mime=y.getType(g.extname(t.name)):n.mime=t.type),o=this._createStream(t,0,t.size),f.next=12,l["default"].awrap(this._getFileSize(t));case 12:return n.contentLength=f.sent,f.prev=13,f.next=16,l["default"].awrap(this.putStream(e,o,n));case 16:return i=f.sent,f.abrupt("return",i);case 20:if(f.prev=20,f.t0=f["catch"](13),"RequestTimeTooSkewed"!==f.t0.code){f.next=29;break}return this.options.amendTimeSkewed=+new Date(f.t0.serverTime)-new Date,f.next=26,l["default"].awrap(this.put(e,t,n));case 26:return f.abrupt("return",f.sent);case 29:throw f.t0;case 30:f.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),a=n.method||"PUT",s=this._objectRequestParams(a,e,n),v.encodeCallback(s,n),s.mime=n.mime,s.content=r,s.successStatuses=[200],f.next=43,l["default"].awrap(this.request(s));case 43:return c=f.sent,u={name:e,url:this._objectUrl(e),res:c.res},s.headers&&s.headers["x-oss-callback"]&&(u.data=JSON.parse(c.data.toString())),f.abrupt("return",u);case 47:case"end":return f.stop()}}),null,this,[[13,20]])},T.putStream=function(e,t,n){var r,o,i,a;return l["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.headers=n.headers||{},e=this._objectName(e),n.contentLength?n.headers["Content-Length"]=n.contentLength:n.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(n.meta,n.headers),r=n.method||"PUT",o=this._objectRequestParams(r,e,n),v.encodeCallback(o,n),o.mime=n.mime,o.stream=t,o.successStatuses=[200],s.next=13,l["default"].awrap(this.request(o));case 13:return i=s.sent,a={name:e,url:this._objectUrl(e),res:i.res},o.headers&&o.headers["x-oss-callback"]&&(a.data=JSON.parse(i.data.toString())),s.abrupt("return",a);case 17:case"end":return s.stop()}}),null,this)},w(T,e("../common/object/copyObject")),w(T,e("../common/object/getObjectTagging")),w(T,e("../common/object/putObjectTagging")),w(T,e("../common/object/deleteObjectTagging")),w(T,e("../common/image")),w(T,e("../common/object/getBucketVersions")),w(T,e("../common/object/getACL")),w(T,e("../common/object/putACL")),w(T,e("../common/object/head")),w(T,e("../common/object/delete")),w(T,e("../common/object/get")),w(T,e("../common/object/putSymlink")),w(T,e("../common/object/getSymlink")),w(T,e("../common/object/deleteMulti")),w(T,e("../common/object/getObjectMeta")),T.putMeta=function(e,t,n){var r;return l["default"].async((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,l["default"].awrap(this.copy(e,e,{meta:t||{},timeout:n&&n.timeout,ctx:n&&n.ctx}));case 2:return r=o.sent,o.abrupt("return",r);case 4:case"end":return o.stop()}}),null,this)},T.list=function(e,t){var n,r,o,i,a;return l["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=this._objectRequestParams("GET","",t),n.query=e,n.xmlResponse=!0,n.successStatuses=[200],s.next=6,l["default"].awrap(this.request(n));case 6:return r=s.sent,o=r.data.Contents,i=this,o&&(Array.isArray(o)||(o=[o]),o=o.map((function(e){return{name:e.Key,url:i._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),a=r.data.CommonPrefixes||null,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(e){return e.Prefix}))),s.abrupt("return",{res:r.res,objects:o,prefixes:a,nextMarker:r.data.NextMarker||null,isTruncated:"true"===r.data.IsTruncated});case 13:case"end":return s.stop()}}),null,this)},T.restore=function(e,t){var n,r;return l["default"].async((function(o){while(1)switch(o.prev=o.next){case 0:return t=t||{},t.subres=(0,c["default"])({restore:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectRequestParams("POST",e,t),n.successStatuses=[202],o.next=7,l["default"].awrap(this.request(n));case 7:return r=o.sent,o.abrupt("return",{res:r.res});case 9:case"end":return o.stop()}}),null,this)},T.signatureUrl=function(e,t){t=t||{},e=this._objectName(e),t.method=t.method||"GET";var n=d.timestamp()+(t.expires||1800),r={bucket:this.options.bucket,object:e},o=this._getResource(r);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var i=_._signatureForURL(this.options.accessKeySecret,t,o,n),a=m.parse(this._getReqUrl(r));return a.query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:i.Signature},b(i.subResource).to(a.query),a.format()},T.getObjectUrl=function(e,t){return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))},T._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},T.generateObjectUrl=function(e,t){if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var n=m.parse(t),r=this.options.bucket;n.hostname=r+"."+n.hostname,n.host=r+"."+n.host,t=n.format()}return t+this._escape(this._objectName(e))},T._objectRequestParams=function(e,t,n){if(!this.options.bucket)throw new Error("Please create a bucket first");n=n||{},t=this._objectName(t);var r={object:t,bucket:this.options.bucket,method:e,subres:n&&n.subres,timeout:n&&n.timeout,ctx:n&&n.ctx};return n.headers&&(r.headers={},b(n.headers).to(r.headers)),r},T._objectName=function(e){return e.replace(/^\/+/,"")},T._convertMetaToHeaders=function(e,t){e&&(0,a["default"])(e).forEach((function(n){t["x-oss-meta-"+n]=e[n]}))},T._deleteFileSafe=function(e){var t=this;return new o["default"]((function(n){p.exists(e,(function(r){r?p.unlink(e,(function(r){r&&t.debug("unlink %j error: %s",e,r,"error"),n()})):n()}))}))}},{"../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,t,n){"use strict";n.version="6.10.0"},{}],6:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=n;c.deleteBucketLifecycle=function(e,t){var n,r;return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return s(e),n=this._bucketRequestParams("DELETE",e,"lifecycle",t),n.successStatuses=[204],i.next=5,o["default"].awrap(this.request(n));case 5:return r=i.sent,i.abrupt("return",{res:r.res});case 7:case"end":return i.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=n;c.deleteBucketWebsite=function(e,t){var n,r;return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return s(e),n=this._bucketRequestParams("DELETE",e,"website",t),n.successStatuses=[204],i.next=5,o["default"].awrap(this.request(n));case 5:return r=i.sent,i.abrupt("return",{res:r.res});case 7:case"end":return i.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/isArray"),u=c.isArray,l=e("../utils/formatObjKey"),f=l.formatObjKey,d=n;d.getBucketLifecycle=function(e,t){var n,r,i;return o["default"].async((function(a){while(1)switch(a.prev=a.next){case 0:return s(e),n=this._bucketRequestParams("GET",e,"lifecycle",t),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,o["default"].awrap(this.request(n));case 6:return r=a.sent,i=r.data.Rule||null,i&&(u(i)||(i=[i]),i=i.map((function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!u(e.Tag)&&(e.Tag=[e.Tag]),f(e,"firstLowerCase")}))),a.abrupt("return",{rules:i,res:r.res});case 10:case"end":return a.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=n;c.getBucketVersioning=function(e,t){var n,r,i;return o["default"].async((function(a){while(1)switch(a.prev=a.next){case 0:return s(e),n=this._bucketRequestParams("GET",e,"versioning",t),n.xmlResponse=!0,n.successStatuses=[200],a.next=6,o["default"].awrap(this.request(n));case 6:return r=a.sent,i=r.data.Status,a.abrupt("return",{status:r.status,versionStatus:i,res:r.res});case 9:case"end":return a.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/isObject"),u=c.isObject,l=n;l.getBucketWebsite=function(e,t){var n,r,i;return o["default"].async((function(a){while(1)switch(a.prev=a.next){case 0:return s(e),n=this._bucketRequestParams("GET",e,"website",t),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,o["default"].awrap(this.request(n));case 6:return r=a.sent,i=[],r.data.RoutingRules&&r.data.RoutingRules.RoutingRule&&(i=u(r.data.RoutingRules.RoutingRule)?[r.data.RoutingRules.RoutingRule]:r.data.RoutingRules.RoutingRule),a.abrupt("return",{index:r.data.IndexDocument&&r.data.IndexDocument.Suffix||"",supportSubDir:r.data.IndexDocument&&r.data.IndexDocument.SupportSubDir||"false",type:r.data.IndexDocument&&r.data.IndexDocument.Type,routingRules:i,error:r.data.ErrorDocument&&r.data.ErrorDocument.Key||null,res:r.res});case 10:case"end":return a.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/isArray"),u=c.isArray,l=e("../utils/deepCopy"),f=l.deepCopy,d=e("../utils/isObject"),p=d.isObject,h=e("../utils/obj2xml"),m=h.obj2xml,b=e("../utils/checkObjectTag"),g=b.checkObjectTag,y=e("../utils/getStrBytesCount"),v=y.getStrBytesCount,_=n;function w(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function x(e,t){var n=e.days,r=e.createdBeforeDate;if(!n&&!r)throw new Error(t+" must includes days or createdBeforeDate");if(n&&!/^[1-9][0-9]*$/.test(n))throw new Error("days must be a positive integer");if(r&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(r))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function E(e){if(!u(e)&&!p(e))throw new Error("tag must be Object or Array");e=p(e)?[e]:e;var t={},n=f(e);n.forEach((function(e){t[e.key]=e.value})),g(t)}function j(e){if(e.id&&v(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(""===e.prefix||void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(e.transition){if(!["IA","Archive"].includes(e.transition.storageClass))throw new Error("StorageClass must be IA or Archive");x(e.transition,"Transition")}if(e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else x(e.expiration,"Expiration");if(e.abortMultipartUpload&&x(e.abortMultipartUpload,"AbortMultipartUpload"),!e.expiration&&!e.abortMultipartUpload&&!e.transition&&!e.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");E(e.tag)}}_.putBucketLifecycle=function(e,t,n){var r,i,a,c,l;return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:if(s(e),u(t)){f.next=3;break}throw new Error("rules must be Array");case 3:return r=this._bucketRequestParams("PUT",e,"lifecycle",n),i=[],a={LifecycleConfiguration:{Rule:i}},t.forEach((function(e){w(e),j(e),e.id&&(e.ID=e.id,delete e.id),i.push(e)})),c=m(a,{headers:!0,firstUpperCase:!0}),r.content=c,r.mime="xml",r.successStatuses=[200],f.next=13,o["default"].awrap(this.request(r));case 13:return l=f.sent,f.abrupt("return",{res:l.res});case 15:case"end":return f.stop()}}),null,this)}},{"../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,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=n;l.putBucketVersioning=function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:if(s(e),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",e,"versioning",a),r={VersioningConfiguration:{Status:t}},n.mime="xml",n.content=u(r,{headers:!0}),c.next=9,o["default"].awrap(this.request(n));case 9:return i=c.sent,c.abrupt("return",{res:i.res,status:i.status});case 11:case"end":return c.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=e("../utils/isArray"),f=l.isArray,d=n;d.putBucketWebsite=function(e){var t,n,r,i,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2];return o["default"].async((function(d){while(1)switch(d.prev=d.next){case 0:if(s(e),t=this._bucketRequestParams("PUT",e,"website",l),n={Suffix:c.index||"index.html"},r={IndexDocument:n},i={WebsiteConfiguration:r},c.supportSubDir&&(n.SupportSubDir=c.supportSubDir),c.type&&(n.Type=c.type),c.error&&(r.ErrorDocument={Key:c.error}),void 0===c.routingRules){d.next=12;break}if(f(c.routingRules)){d.next=11;break}throw new Error("RoutingRules must be Array");case 11:r.RoutingRules={RoutingRule:c.routingRules};case 12:return i=u(i),t.content=i,t.mime="xml",t.successStatuses=[200],d.next=18,o["default"].awrap(this.request(t));case 18:return a=d.sent,d.abrupt("return",{res:a.res});case 20:case"end":return d.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/json/stringify"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}n.encodeCallback=function(e,n){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&n.callback){var r={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(r.callbackHost=n.callback.host),n.callback.contentType&&(r.callbackBodyType=n.callback.contentType);var i=t.from((0,a["default"])(r)).toString("base64");if(e.headers["x-oss-callback"]=i,n.callback.customValue){var s={};(0,o["default"])(n.callback.customValue).forEach((function(e){s["x:"+e]=n.callback.customValue[e]})),e.headers["x-oss-callback-var"]=t.from((0,a["default"])(s)).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,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("humanize-ms"),s=e("url"),c=e("../utils/checkBucketName"),u=c.checkBucketName;function l(e,t){var n=s.parse(e);if(n.protocol||(n=s.parse("http"+(t?"s":"")+"://"+e)),"http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}function f(e,t,n){var r=n?"https://":"http://",o=t?"-internal.aliyuncs.com":".aliyuncs.com",i="vpc100-oss-cn-";return e.substr(0,i.length)===i&&(o=".aliyuncs.com"),s.parse(r+e+o)}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.bucket&&u(e.bucket);var t=(0,o["default"])({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=a(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=f(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,t,n){"use strict";var r=e("merge-descriptors"),o=n;r(o,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("querystring"),u=e("js-base64"),l=u.Base64.encode,f=n;function d(e,t){if(!e)throw new Error(t+" is required");if("string"!==typeof e)throw new Error(t+" must be String")}f.processObjectSave=function(e,t,n,r){var i,a,u,f;return o["default"].async((function(p){while(1)switch(p.prev=p.next){case 0:return d(e,"sourceObject"),d(t,"targetObject"),d(n,"process"),t=this._objectName(t),r&&s(r),i=this._objectRequestParams("POST",e,{subres:"x-oss-process"}),a=r?",b_"+l(r):"",t=l(t),u={"x-oss-process":n+"|sys/saveas,o_"+t+a},i.content=c.stringify(u),p.next=12,o["default"].awrap(this.request(i));case 12:return f=p.sent,p.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return p.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("copy-to"),s=e("./callback"),c=e("./utils/deepCopy"),u=c.deepCopy,l=n;l.listUploads=function(e,t){var n,r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return t=t||{},n={},a(t).to(n),n.subres="uploads",r=this._objectRequestParams("GET","",n),r.query=e,r.xmlResponse=!0,r.successStatuses=[200],c.next=10,o["default"].awrap(this.request(r));case 10:return i=c.sent,s=i.data.Upload||[],Array.isArray(s)||(s=[s]),s=s.map((function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}})),c.abrupt("return",{res:i.res,uploads:s,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:"true"===i.data.IsTruncated});case 15:case"end":return c.stop()}}),null,this)},l.listParts=function(e,t,n,r){var i,s,c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return r=r||{},i={},a(r).to(i),i.subres={uploadId:t},s=this._objectRequestParams("GET",e,i),s.query=n,s.xmlResponse=!0,s.successStatuses=[200],u.next=10,o["default"].awrap(this.request(s));case 10:return c=u.sent,u.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return u.stop()}}),null,this)},l.abortMultipartUpload=function(e,t,n){var r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return this._stop(),n=n||{},r={},a(n).to(r),r.subres={uploadId:t},i=this._objectRequestParams("DELETE",e,r),i.successStatuses=[204],c.next=9,o["default"].awrap(this.request(i));case 9:return s=c.sent,c.abrupt("return",{res:s.res});case 11:case"end":return c.stop()}}),null,this)},l.initMultipartUpload=function(e,t){var n,r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return t=t||{},n={},a(t).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(t.meta,n.headers),n.subres="uploads",r=this._objectRequestParams("POST",e,n),r.mime=t.mime,r.xmlResponse=!0,r.successStatuses=[200],s.next=12,o["default"].awrap(this.request(r));case 12:return i=s.sent,s.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return s.stop()}}),null,this)},l.uploadPart=function(e,t,n,r,i,a,s){var c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c={stream:this._createStream(r,i,a),size:a-i},u.next=3,o["default"].awrap(this._uploadPart(e,t,n,c,s));case 3:return u.abrupt("return",u.sent);case 4:case"end":return u.stop()}}),null,this)},l.completeMultipartUpload=function(e,t,n,r){var i,a,c,l,f,d,p,h;return o["default"].async((function(m){while(1)switch(m.prev=m.next){case 0:for(i=n.concat().sort((function(e,t){return e.number-t.number})).filter((function(e,t,n){return!t||e.number!==n[t-1].number})),a='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',c=0;c<i.length;c++)l=i[c],a+="<Part>\n",a+="<PartNumber>"+l.number+"</PartNumber>\n",a+="<ETag>"+l.etag+"</ETag>\n",a+="</Part>\n";return a+="</CompleteMultipartUpload>",r=r||{},f={},f=u(r),f.headers&&delete f.headers["x-oss-server-side-encryption"],f.subres={uploadId:t},d=this._objectRequestParams("POST",e,f),s.encodeCallback(d,f),d.mime="xml",d.content=a,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],m.next=17,o["default"].awrap(this.request(d));case 17:return p=m.sent,h={res:p.res,bucket:d.bucket,name:e,etag:p.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(h.data=JSON.parse(p.data.toString())),m.abrupt("return",h);case 21:case"end":return m.stop()}}),null,this)},l._uploadPart=function(e,t,n,r,i){var s,c,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return i=i||{},s={},a(i).to(s),s.headers={"Content-Length":r.size},s.subres={partNumber:n,uploadId:t},c=this._objectRequestParams("PUT",e,s),c.mime=s.mime,c.stream=r.stream,c.successStatuses=[200],l.next=11,o["default"].awrap(this.request(c));case 11:if(u=l.sent,u.res.headers.etag){l.next=14;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 14:return r.stream=null,c.stream=null,l.abrupt("return",{name:e,etag:u.res.headers.etag,res:u.res});case 17:case"end":return l.stop()}}),null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/helpers/typeof"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/checkBucketName"),f=l.checkBucketName,d=n;d.copy=function(e,t,n,r){var i,s,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return"object"===("undefined"===typeof n?"undefined":(0,c["default"])(n))&&(r=n),r=r||{},r.headers=r.headers||{},(0,a["default"])(r.headers).forEach((function(e){r.headers["x-oss-copy-source-"+e.toLowerCase()]=r.headers[e]})),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),t=this._getSourceName(t,n),r.versionId&&(t=t+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=t,i=this._objectRequestParams("PUT",e,r),i.xmlResponse=!0,i.successStatuses=[200,304],l.next=14,o["default"].awrap(this.request(i));case 14:return s=l.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),l.abrupt("return",{data:u,res:s.res});case 18:case"end":return l.stop()}}),null,this)},d._getSourceName=function(e,t){return"string"===typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),f(t),e=encodeURI(e),e="/"+t+"/"+e,e}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c["delete"]=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=6,o["default"].awrap(this.request(t));case 6:return n=i.sent,i.abrupt("return",{res:n.res});case 8:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("utility"),u=e("../utils/obj2xml"),l=u.obj2xml,f=n;f.deleteMulti=function(e){var t,n,r,i,s,u,f,d,p,h,m,b,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(y){while(1)switch(y.prev=y.next){case 0:if(t=[],e&&e.length){y.next=3;break}throw new Error("names is required");case 3:for(n=0;n<e.length;n++)r={},"string"===typeof e[n]?r.Key=c.escape(this._objectName(e[n])):(i=e[n],s=i.key,u=i.versionId,r.Key=c.escape(this._objectName(s)),r.VersionId=u),t.push(r);return f={Delete:{Quiet:!!g.quiet,Object:t}},d=l(f,{headers:!0}),g.subres=(0,a["default"])({delete:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),p=this._objectRequestParams("POST","",g),p.mime="xml",p.content=d,p.xmlResponse=!0,p.successStatuses=[200],y.next=15,o["default"].awrap(this.request(p));case 15:return h=y.sent,m=h.data,b=m&&m.Deleted||null,b&&(Array.isArray(b)||(b=[b])),y.abrupt("return",{res:h.res,deleted:b||[]});case 20:case"end":return y.stop()}}),null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.deleteObjectTagging=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=7,o["default"].awrap(this.request(t));case 7:return n=i.sent,i.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("fs"),u=e("is-type-of"),l=n;l.get=function(e,t){var n,r,i,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:return n=null,r=!1,u.writableStream(t)?n=t:u.string(t)?(n=c.createWriteStream(t),r=!0):l=t,l=l||{},l.subres=(0,a["default"])({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),i=void 0,f.prev=8,s=this._objectRequestParams("GET",e,l),s.writeStream=n,s.successStatuses=[200,206,304],f.next=14,o["default"].awrap(this.request(s));case 14:i=f.sent,r&&n.destroy(),f.next=25;break;case 18:if(f.prev=18,f.t0=f["catch"](8),!r){f.next=24;break}return n.destroy(),f.next=24,o["default"].awrap(this._deleteFileSafe(t));case 24:throw f.t0;case 25:return f.abrupt("return",{res:i.res,content:i.data});case 26:case"end":return f.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,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getACL=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,r),t.successStatuses=[200],t.xmlResponse=!0,i.next=8,o["default"].awrap(this.request(t));case 8:return n=i.sent,i.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=u(r),i=e("babel-runtime/regenerator"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n,f=e("../utils/isObject"),d=f.isObject,p=e("../utils/isArray"),h=p.isArray;function m(){var e,t,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:if(!s.versionIdMarker||void 0!==s.keyMarker){l.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return u.subres=(0,c["default"])({versions:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),e=this._objectRequestParams("GET","",u),e.xmlResponse=!0,e.successStatuses=[200],e.query=g(s),l.next=10,a["default"].awrap(this.request(e));case 10:return t=l.sent,n=t.data.Version||[],r=t.data.DeleteMarker||[],o=this,n&&(Array.isArray(n)||(n=[n]),n=n.map((function(e){return{name:e.Key,url:o._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),r&&(h(r)||(r=[r]),r=r.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),i=t.data.CommonPrefixes||null,i&&(h(i)||(i=[i]),i=i.map((function(e){return e.Prefix}))),l.abrupt("return",{res:t.res,objects:n,deleteMarker:r,prefixes:i,nextMarker:t.data.NextMarker||null,NextVersionIdMarker:t.data.NextVersionIdMarker||null,isTruncated:"true"===t.data.IsTruncated});case 19:case"end":return l.stop()}}),null,this)}function b(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return d(e)&&(0,o["default"])(e).forEach((function(n){t[b(n)]=e[n]})),t}l.getBucketVersions=m,l.listObjectVersions=m},{"../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,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getObjectMeta=function(e,t){var n,r;return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return t=t||{},e=this._objectName(e),t.subres=(0,a["default"])({objectMeta:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectRequestParams("HEAD",e,t),n.successStatuses=[200],i.next=8,o["default"].awrap(this.request(n));case 8:return r=i.sent,i.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n,u=e("../utils/isObject"),l=u.isObject;c.getObjectTagging=function(e){var t,n,r,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c.subres=(0,a["default"])({tagging:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,c),t.successStatuses=[200],u.next=7,o["default"].awrap(this.request(t));case 7:return n=u.sent,u.next=10,o["default"].awrap(this.parseXML(n.data));case 10:return r=u.sent,i=r.TagSet.Tag,i=i&&l(i)?[i]:i||[],s={},i.forEach((function(e){s[e.Key]=e.Value})),u.abrupt("return",{status:n.status,res:n.res,tag:s});case 16:case"end":return u.stop()}}),null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getSymlink=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,a["default"])({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,i),t.successStatuses=[200],s.next=7,o["default"].awrap(this.request(t));case 7:return n=s.sent,r=n.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(r),res:n.res});case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n;l.head=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,c["default"])({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectRequestParams("HEAD",e,i),t.successStatuses=[200,304],s.next=6,o["default"].awrap(this.request(t));case 6:return n=s.sent,r={meta:null,res:n.res,status:n.status},200===n.status&&(0,a["default"])(n.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(r.meta||(r.meta={}),r.meta[e.substring(11)]=n.headers[e])})),s.abrupt("return",r);case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putACL=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.subres=(0,a["default"])({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=t,e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=10,o["default"].awrap(this.request(r));case 10:return i=s.sent,s.abrupt("return",{res:i.res});case 12:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/obj2xml"),f=l.obj2xml,d=e("../utils/checkObjectTag"),p=d.checkObjectTag,h=n;h.putObjectTagging=function(e,t){var n,r,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return p(t),s.subres=(0,c["default"])({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),e=this._objectName(e),n=this._objectRequestParams("PUT",e,s),n.successStatuses=[200],t=(0,a["default"])(t).map((function(e){return{Key:e,Value:t[e]}})),r={Tagging:{TagSet:{Tag:t}}},n.mime="xml",n.content=f(r),u.next=12,o["default"].awrap(this.request(n));case 12:return i=u.sent,u.abrupt("return",{res:i.res,status:i.status});case 14:case"end":return u.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,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putSymlink=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.headers=n.headers||{},t=this._escape(this._objectName(t)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=t,n.subres=(0,a["default"])({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=13,o["default"].awrap(this.request(r));case 13:return i=s.sent,s.abrupt("return",{res:i.res});case 15:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c._parallelNode=function(e,t,n,r){var i,s,c,u,l,f,d,p;return o["default"].async((function(h){while(1)switch(h.prev=h.next){case 0:i=this,s=[],c=[],u=e.length/t,l=e.length%t,f=0===l?u:(e.length-l)/t+1,d=1,p=0;case 8:if(!(p<e.length)){h.next=26;break}if(!i.isCancel()){h.next=11;break}return h.abrupt("break",26);case 11:if(r?c.push(n(i,e[p],r)):c.push(n(i,e[p])),c.length!==t&&(d!==f||p!==e.length-1)){h.next=23;break}return h.prev=13,d+=1,h.next=17,o["default"].awrap(a["default"].all(c));case 17:h.next=22;break;case 19:h.prev=19,h.t0=h["catch"](13),s.push(h.t0);case 22:c=[];case 23:p++,h.next=8;break;case 26:return h.abrupt("return",s);case 27:case"end":return h.stop()}}),null,this,[[13,19]])},c._parallel=function(e,t,n){var r=this;return new a["default"]((function(o){var i=[];if(t<=0||!e)o(i);else{var a=f(e),s=!1,c=0,u=!1;h()}function l(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(this,r)}}function f(e){var t=-1,n=e.length;return function(){return++t<n&&!r.isCancel()?{value:e[t],key:t}:null}}function d(e,t){c-=1,e?(s=!0,i.push(e),o(i)):t==={}||s&&c<=0?(s=!0,o(i)):u||(r.isCancel()?o(i):h())}function p(e,t){n(e).then((function(e){t(null,e)}))["catch"]((function(e){t(e)}))}function h(){u=!0;while(c<t&&!s&&!r.isCancel()){var e=a();if(null===e||i.length>0)return s=!0,void(c<=0&&o(i));c+=1,p(e.value,l(d))}u=!1}}))},c.cancel=function(e){this.options.cancelFlag=!0,e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1},c._stop=function(){this.options.cancelFlag=!0},c._makeCancelEvent=function(){var e={status:0,name:"cancel"};return e}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/json/stringify"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./../../shims/crypto/crypto.js"),u=e("is-type-of");n.buildCanonicalizedResource=function(e,t){var n=""+e,r="?";if(u.string(t)&&""!==t.trim())n+=r+t;else if(u.array(t))t.sort(),n+=r+t.join("&");else if(t){var o=function(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:0},i=function(e){n+=r+e,t[e]&&(n+="="+t[e]),r="&"};(0,a["default"])(t).sort(o).forEach(i)}return n},n.buildCanonicalString=function(e,t,n,r){n=n||{};var o=n.headers||{},i="x-oss-",s=[],c={},u=[e.toUpperCase(),o["Content-Md5"]||"",o["Content-Type"]||o["Content-Type".toLowerCase()],r||o["x-oss-date"]];return(0,a["default"])(o).forEach((function(e){var t=e.toLowerCase();0===t.indexOf(i)&&(c[t]=String(o[e]).trim())})),(0,a["default"])(c).sort().forEach((function(e){s.push(e+":"+c[e])})),u=u.concat(s),u.push(this.buildCanonicalizedResource(t,n.parameters)),u.join("\n")},n.computeSignature=function(e,n){var r=c.createHmac("sha1",e);return r.update(t.from(n,"utf8")).digest("base64")},n.authorization=function(e,t,n){return"OSS "+e+":"+this.computeSignature(t,n)},n._signatureForURL=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=arguments[3],s={},c=n.subResource,u=void 0===c?{}:c;if(n.process){var l="x-oss-process";u[l]=n.process}if(n.trafficLimit){var f="x-oss-traffic-limit";u[f]=n.trafficLimit}if(n.response&&(0,a["default"])(n.response).forEach((function(e){var t="response-"+e.toLowerCase();u[t]=n.response[e]})),(0,a["default"])(n).forEach((function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?s[t]=r:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(s[e]=r)})),Object.prototype.hasOwnProperty.call(n,"security-token")&&(u["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var d={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(d.callbackHost=n.callback.host),n.callback.contentType&&(d.callbackBodyType=n.callback.contentType),u.callback=t.from((0,o["default"])(d)).toString("base64"),n.callback.customValue){var p={};(0,a["default"])(n.callback.customValue).forEach((function(e){p["x:"+e]=n.callback.customValue[e]})),u["callback-var"]=t.from((0,o["default"])(p)).toString("base64")}}var h=this.buildCanonicalString(n.method,r,{headers:s,parameters:u},i.toString());return{Signature:this.computeSignature(e,h),subResource:u}}}).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,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(e,t){var n=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!n.test(e))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/entries"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var a=e("./checkValid"),s=a.checkValid,c=e("./isObject"),u=c.isObject,l=[{validator:function(e){if("string"!==typeof e)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 (/)"}],f={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function d(e){if(!u(e))throw new Error("tag must be Object");var t=(0,o["default"])(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];t.forEach((function(e){e.forEach((function(e,t){s(e,f[n[t]])}))}))}n.checkObjectTag=d},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,t,n){"use strict";function r(e,t){t.forEach((function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0,n.checkValid=r},{}],38:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var a=e("./../../../shims/crypto/crypto.js"),s=e("debug")("ali-oss"),c=e("mime"),u=e("dateformat"),l=e("copy-to"),f=e("path");function d(e,t){return e[t]||e[t.toLowerCase()]}function p(e,t){delete e[t],delete e[t.toLowerCase()]}function h(e){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var r={"x-oss-date":u(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(r["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,o["default"])(r,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(r["x-oss-security-token"]=this.options.stsToken),l(e.headers).to(r),d(r,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?r["Content-Type"]=e.mime:r["Content-Type"]=c.getType(e.mime||f.extname(e.object||""))),d(r,"Content-Type")||p(r,"Content-Type"),e.content&&(r["Content-Md5"]=a.createHash("md5").update(t.from(e.content,"utf8")).digest("base64"),r["Content-Length"]||(r["Content-Length"]=e.content.length));var i=this._getResource(e);r.authorization=this.authorization(e.method,i,e.subres,r);var h=this._getReqUrl(e);s("request %s %s, with headers %j, !!stream: %s",e.method,h,r,!!e.stream);var m=e.timeout||this.options.timeout,b={method:e.method,content:e.content,stream:e.stream,headers:r,timeout:m,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(b.agent=this.agent),this.httpsAgent&&(b.httpsAgent=this.httpsAgent),{url:h,params:b}}n.createRequest=h}).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,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(e){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var t=Array.isArray(e)?[]:{};return(0,o["default"])(e).forEach((function(r){t[r]=n.deepCopy(e[r])})),t}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var n=void 0;if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n.push(c(e[r],t))}else n={},(0,o["default"])(e).forEach((function(r){n[u(r,t)]=c(e[r],t)}));return n}function u(e,t){return"firstUpperCase"===t?e=e.replace(/^./,(function(e){return e.toUpperCase()})):"firstLowerCase"===t&&(e=e.replace(/^./,(function(e){return e.toLowerCase()}))),e}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0,n.formatObjKey=c},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n<e.length;n++){var r=e.charAt(n);/^[\u00-\uff]$/.test(r)?t+=1:t+=2}return t}Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0,n.getStrBytesCount=r},{}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],43:[function(e,t,n){"use strict";function r(e){return"undefined"!==typeof Blob&&e instanceof Blob}Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0,n.isBlob=r},{}],44:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(e){return"undefined"!==typeof File&&e instanceof File}},{}],45:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.isIP=function(e){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}$/,n=/^\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(e)||n.test(e)}},{}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{}],47:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var a=e("./formatObjKey");function s(e){return Object.prototype.toString.call(e).replace(/(.*? |])/g,"").toLowerCase()}function c(e,t){var n="";return t&&t.headers&&(n='<?xml version="1.0" encoding="UTF-8"?>\n'),t&&t.firstUpperCase&&(e=a.formatObjKey(e,"firstUpperCase")),"object"===s(e)?(0,o["default"])(e).forEach((function(t){"string"===s(e[t])||"number"===s(e[t])?n+="<"+t+">"+e[t]+"</"+t+">":"object"===s(e[t])?n+="<"+t+">"+c(e[t])+"</"+t+">":"array"===s(e[t])?n+=e[t].map((function(e){return"<"+t+">"+c(e)+"</"+t+">"})).join(""):n+="<"+t+">"+e[t].toString()+"</"+t+">"})):n+=e.toString(),n}n.obj2xml=c},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,t,n){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],49:[function(e,t,n){t.exports=e("./register")().Promise},{"./register":51}],50:[function(e,t,n){"use strict";var r="@@any-promise/REGISTRATION",o=null;t.exports=function(e,t){return function(n,i){n=n||null,i=i||{};var a=!1!==i.global;if(null===o&&a&&(o=e[r]||null),null!==o&&null!==n&&o.implementation!==n)throw new Error('any-promise already defined as "'+o.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===o&&(o=null!==n&&"undefined"!==typeof i.Promise?{Promise:i.Promise,implementation:n}:t(n),a&&(e[r]=o)),o}}},{}],51:[function(e,t,n){"use strict";function r(){if("undefined"===typeof window.Promise)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"}}t.exports=e("./loader")(window,r)},{"./loader":50}],52:[function(e,t,n){t.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,t,n){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,t,n){t.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,t,n){t.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,t,n){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,t,n){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,t,n){t.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,t,n){t.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,t,n){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("../core-js/symbol/iterator"),o=c(r),i=e("../core-js/symbol"),a=c(i),s="function"===typeof a["default"]&&"symbol"===typeof o["default"]?function(e){return typeof e}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}n["default"]="function"===typeof a["default"]&&"symbol"===s(o["default"])?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,t,n){t.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,t,n){"use strict";n.byteLength=l,n.toByteArray=d,n.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),a=r[0],s=r[1],c=new i(f(e,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(p(r));return o.join("")}function m(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,c=n-o;s<c;s+=a)i.push(h(e,s,s+a>c?c:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],70:[function(e,t,n){!function(e,n,r){"undefined"!=typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(n,r):e[n]=r()}(this,"bowser",(function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var o,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(t),c=!s&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),f=/CrOS/.test(t),d=/silk/i.test(t),p=/sailfish/i.test(t),h=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),b=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!b&&/windows/i.test(t)),y=!a&&!d&&/macintosh/i.test(t),v=!c&&!p&&!h&&!m&&/linux/i.test(t),_=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t)&&!/tablet pc/i.test(t),E=!x&&/[^-]mobi/i.test(t),j=/xbox/i.test(t);function S(e){switch(e){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}}/opera/i.test(t)?o={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?o={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?o={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?o={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?o={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?o={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?o={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?o={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?o={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?o={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?o={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?o={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?o={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?o={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:b?(o={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},_?(o.msedge=e,o.version=_):(o.msie=e,o.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?o={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?o={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?o={name:"Microsoft Edge",msedge:e,version:_}:/vivaldi/i.test(t)?o={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:p?o={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?o={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(o={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(o.firefoxos=e,o.osname="Firefox OS")):d?o={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?o={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?o={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?o={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(o={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(o.touchpad=e)):/bada/i.test(t)?o={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?o={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?o={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?o={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?o={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:c?o={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(o={name:"Safari",safari:e},w&&(o.version=w)):a?(o={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},w&&(o.version=w)):o=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!o.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(o.name=o.name||"Blink",o.blink=e):(o.name=o.name||"Webkit",o.webkit=e),!o.version&&w&&(o.version=w)):!o.opera&&/gecko\//i.test(t)&&(o.name=o.name||"Gecko",o.gecko=e,o.version=o.version||n(/gecko\/(\d+(\.\d+)?)/i)),o.windowsphone||!c&&!o.silk?!o.windowsphone&&a?(o[a]=e,o.ios=e,o.osname="iOS"):y?(o.mac=e,o.osname="macOS"):j?(o.xbox=e,o.osname="Xbox"):g?(o.windows=e,o.osname="Windows"):v&&(o.linux=e,o.osname="Linux"):(o.android=e,o.osname="Android");var T="";o.windows?T=S(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):o.windowsphone?T=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o.mac?(T=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),T=T.replace(/[_\s]/g,".")):a?(T=n(/os (\d+([_\s]\d+)*) like mac os x/i),T=T.replace(/[_\s]/g,".")):c?T=n(/android[ \/-](\d+(\.\d+)*)/i):o.webos?T=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):o.blackberry?T=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):o.bada?T=n(/bada\/(\d+(\.\d+)*)/i):o.tizen&&(T=n(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(o.osversion=T);var O=!o.windows&&T.split(".")[0];return x||l||"ipad"==a||c&&(3==O||O>=4&&!E)||o.silk?o.tablet=e:(E||"iphone"==a||"ipod"==a||c||u||o.blackberry||o.webos||o.bada)&&(o.mobile=e),o.msedge||o.msie&&o.version>=10||o.yandexbrowser&&o.version>=15||o.vivaldi&&o.version>=1||o.chrome&&o.version>=20||o.samsungBrowser&&o.version>=4||o.whale&&1===i([o.version,"1.0"])||o.mzbrowser&&1===i([o.version,"6.0"])||o.focus&&1===i([o.version,"1.0"])||o.firefox&&o.version>=20||o.safari&&o.version>=6||o.opera&&o.version>=10||o.ios&&o.osversion&&o.osversion.split(".")[0]>=6||o.blackberry&&o.version>=10.1||o.chromium&&o.version>=20?o.a=e:o.msie&&o.version<10||o.chrome&&o.version<20||o.firefox&&o.version<20||o.safari&&o.version<6||o.opera&&o.version<10||o.ios&&o.osversion&&o.osversion.split(".")[0]<6||o.chromium&&o.version<20?o.c=e:o.x=e,o}var n=t("undefined"!==typeof navigator&&navigator.userAgent||"");function r(e){return e.split(".").length}function o(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n++)r.push(t(e[n]));return r}function i(e){var t=Math.max(r(e[0]),r(e[1])),n=o(e,(function(e){var n=t-r(e);return e+=new Array(n+1).join(".0"),o(e.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));while(--t>=0){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(0===t)return 0}}function a(e,r,o){var a=n;"string"===typeof r&&(o=r,r=void 0),void 0===r&&(r=!1),o&&(a=t(o));var s=""+a.version;for(var c in e)if(e.hasOwnProperty(c)&&a[c]){if("string"!==typeof e[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(e));return i([s,e[c]])<0}return r}function s(e,t,n){return!a(e,t,n)}return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"===typeof r&&r in n)return!0}return!1},n.isUnsupportedBrowser=a,n.compareVersions=i,n.check=s,n._detect=t,n.detect=t,n}))},{}],71:[function(e,t,n){},{}],72:[function(e,t,n){var r=e("buffer").Buffer,o=r.isEncoding||function(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 i(e){if(e&&!o(e))throw new Error("Unknown encoding: "+e)}var a=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),i(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=c;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=s)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function s(e){return e.toString(this.encoding)}function c(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){var t="";while(this.charLength){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var o=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);o=t.length-1,r=t.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t}},{buffer:73}],73:[function(e,t,n){(function(t,r){"use strict";var o=e("base64-js"),i=e("ieee754"),a=e("isarray");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function c(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(c()<t)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=r.prototype):(null===e&&(e=new r(t)),e.length=t),e}function r(e,t,n){if(!r.TYPED_ARRAY_SUPPORT&&!(this instanceof r))return new r(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?b(e,t,n,r):"string"===typeof t?h(e,t,n):g(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?u(e,t):void 0!==n?"string"===typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function p(e,t){if(f(t),e=u(e,t<0?0:0|y(t)),!r.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|_(t,n);e=u(e,o);var i=e.write(t,n);return i!==o&&(e=e.slice(0,i)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function b(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),r.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=r.prototype):e=m(e,t),e}function g(e,t){if(r.isBuffer(t)){var n=0|y(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):m(e,t);if("Buffer"===t.type&&a(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),r.alloc(+e)}function _(e,t){if(r.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(o)return $(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,o,i){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:j(e,t,n,o,i);if("number"===typeof t)return t&=255,r.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):j(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function j(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;d<c;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function S(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function T(e,t,n,r){return ee($(t,e.length-n),e,n,r)}function O(e,t,n,r){return ee(J(t),e,n,r)}function k(e,t,n,r){return O(e,t,n,r)}function N(e,t,n,r){return ee(Q(t),e,n,r)}function C(e,t,n,r){return ee(Z(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,s,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:i=e[o+1],128===(192&i)&&(c=(31&u)<<6|63&i,c>127&&(l=c));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return M(r)}n.Buffer=r,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),n.kMaxLength=c(),r.poolSize=8192,r._augment=function(e){return e.__proto__=r.prototype,e},r.from=function(e,t,n){return l(null,e,t,n)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(e,t,n){return d(null,e,t,n)},r.allocUnsafe=function(e){return p(null,e)},r.allocUnsafeSlow=function(e){return p(null,e)},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},r.isEncoding=function(e){switch(String(e).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}},r.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=r.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!r.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o},r.byteLength=_,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},r.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):w.apply(this,arguments)},r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},r.prototype.compare=function(e,t,n,o,i){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,s=n-t,c=Math.min(a,s),u=this.slice(o,i),l=e.slice(t,n),f=0;f<c;++f)if(u[f]!==l[f]){a=u[f],s=l[f];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},r.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},r.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},r.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Y(e[i]);return o}function B(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function G(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function X(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||X(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||X(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}r.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),t<e&&(t=e),r.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=r.prototype;else{var i=t-e;n=new r(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},r.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},r.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},r.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},r.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},r.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;q(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},r.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;q(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},r.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},r.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},r.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},r.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},r.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},r.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i,a=o-n;if(this===e&&n<t&&t<o)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},r.prototype.fill=function(e,t,n,o){if("string"===typeof e){if("string"===typeof t?(o=t,t=0,n=this.length):"string"===typeof n&&(o=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!==typeof o)throw new TypeError("encoding must be a string");if("string"===typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=r.isBuffer(e)?e:$(new r(e,o).toString()),c=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%c]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function z(e){if(e=K(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function Q(e){return o.toByteArray(z(e))}function ee(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,t,n){t.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,t,n){t.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,t,n){"use strict";var r=Array.prototype.slice;function o(e,t){if(!(this instanceof o))return new o(e,t);this.src=e,this._withAccess=t}function i(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=o,o.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},o.prototype.pick=function(e){return Array.isArray(e)||(e=r.call(arguments)),e.length&&(this.keys=e),this},o.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;n<t.length;n++)r=t[n],void 0===e[r]&&(e[r]=this.src[r]);return e}for(n=0;n<t.length;n++){var r=t[n];if(i(e,r)){var o=this.src.__lookupGetter__(r),a=this.src.__lookupSetter__(r);o&&e.__defineGetter__(r,o),a&&e.__defineSetter__(r,a),o||a||(e[r]=this.src[r])}}return e},o.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),n=0;n<t.length;n++){var r=t[n];delete e[r];var o=this.src.__lookupGetter__(r),i=this.src.__lookupSetter__(r);o&&e.__defineGetter__(r,o),i&&e.__defineSetter__(r,i),o||i||(e[r]=this.src[r])}},o.prototype.override=o.prototype.toCover,o.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],77:[function(e,t,n){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),t.exports=e("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(e,t,n){var r=e("../../modules/_core"),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(e){return o.stringify.apply(o,arguments)}},{"../../modules/_core":99}],79:[function(e,t,n){e("../../modules/es6.object.assign"),t.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(e,t,n){e("../../modules/es6.object.create");var r=e("../../modules/_core").Object;t.exports=function(e,t){return r.create(e,t)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(e,t,n){e("../../modules/es6.object.define-property");var r=e("../../modules/_core").Object;t.exports=function(e,t,n){return r.defineProperty(e,t,n)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(e,t,n){e("../../modules/es7.object.entries"),t.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(e,t,n){e("../../modules/es6.object.get-own-property-names");var r=e("../../modules/_core").Object;t.exports=function(e){return r.getOwnPropertyNames(e)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(e,t,n){e("../../modules/es6.object.get-prototype-of"),t.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(e,t,n){e("../../modules/es6.object.keys"),t.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(e,t,n){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"),t.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,t,n){e("../modules/web.immediate"),t.exports=e("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(e,t,n){e("../../modules/es6.string.from-code-point"),t.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(e,t,n){e("../../modules/es6.function.has-instance"),t.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(e,t,n){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),t.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,t,n){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],93:[function(e,t,n){t.exports=function(){}},{}],94:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],95:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":119}],96:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":98,"./_wks":166}],98:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],99:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],100:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":92}],102:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],103:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":108}],104:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n){var a,s=n(e),c=i.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}return t}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_ctx"),a=e("./_hide"),s=e("./_has"),c="prototype",u=function e(t,n,u){var l,f,d,p=t&e.F,h=t&e.G,m=t&e.S,b=t&e.P,g=t&e.B,y=t&e.W,v=h?o:o[n]||(o[n]={}),_=v[c],w=h?r:m?r[n]:(r[n]||{})[c];for(l in h&&(u=n),u)f=!p&&w&&void 0!==w[l],f&&s(v,l)||(d=f?w[l]:u[l],v[l]=h&&"function"!=typeof w[l]?u[l]:g&&f?i(d,r):y&&w[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((v.virtual||(v.virtual={}))[l]=d,t&e.R&&_&&!_[l]&&a(_,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],109:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),a=e("./_an-object"),s=e("./_to-length"),c=e("./core.get-iterator-method"),u={},l={};n=t.exports=function(e,t,n,f,d){var p,h,m,b,g=d?function(){return e}:c(e),y=r(n,f,t?2:1),v=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(p=s(e.length);p>v;v++)if(b=t?y(a(h=e[v])[0],h[1]):y(e[v]),b===u||b===l)return b}else for(m=g.call(e);!(h=m.next()).done;)if(b=o(m,y,h.value,t),b===u||b===l)return b};n.BREAK=u,n.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],111:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],112:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":110}],114:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],116:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":98}],117:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":125,"./_wks":166}],118:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":98}],119:[function(e,t,n){t.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},{}],120:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},{"./_an-object":95}],121:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,t,n){"use strict";var r=e("./_library"),o=e("./_export"),i=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",b=function(){return this};t.exports=function(e,t,n,g,y,v,_){c(n,t,g);var w,x,E,j=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=y==m,O=!1,k=e.prototype,N=k[f]||k[p]||y&&k[y],C=N||j(y),I=y?T?j("entries"):C:void 0,A="Array"==t&&k.entries||N;if(A&&(E=l(A.call(new e)),E!==Object.prototype&&E.next&&(u(E,S,!0),r||"function"==typeof E[f]||a(E,f,b))),T&&N&&N.name!==m&&(O=!0,C=function(){return N.call(this)}),r&&!_||!d&&!O&&k[f]||a(k,f,C),s[t]=C,s[S]=b,y)if(w={values:T?C:j(m),keys:v?C:j(h),entries:I},_)for(x in w)x in k||i(k,x,w[x]);else o(o.P+o.F*(d||O),t,w);return w}},{"./_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,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(a){}return n}},{"./_wks":166}],124:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],125:[function(e,t,n){t.exports={}},{}],126:[function(e,t,n){t.exports=!0},{}],127:[function(e,t,n){var r=e("./_uid")("meta"),o=e("./_is-object"),i=e("./_has"),a=e("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return u&&h.NEED&&c(e)&&!i(e,r)&&l(e),e},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==e("./_cof")(a);t.exports=function(){var e,t,n,u=function(){var r,o;c&&(r=a.domain)&&r.exit();while(e){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":92}],130:[function(e,t,n){"use strict";var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_object-gops"),a=e("./_object-pie"),s=e("./_to-object"),c=e("./_iobject"),u=Object.assign;t.exports=!u||e("./_fails")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,l=1,f=i.f,d=a.f;while(u>l){var p,h=c(arguments[l++]),m=f?o(h).concat(f(h)):o(h),b=m.length,g=0;while(b>g)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:u},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,t,n){var r=e("./_an-object"),o=e("./_object-dps"),i=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,n=e("./_dom-create")("iframe"),r=i.length,o="<",a=">";n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][i[r]];return u()};t.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);var n,a=i(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),a=e("./_to-primitive"),s=e("./_has"),c=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],142:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,t,n){var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_to-iobject"),a=e("./_object-pie").f;t.exports=function(e){return function(t){var n,s=i(t),c=o(s),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],147:[function(e,t,n){var r=e("./_hide");t.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},{"./_hide":112}],148:[function(e,t,n){t.exports=e("./_hide")},{"./_hide":112}],149:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_core"),i=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":152,"./_uid":162}],152:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,t,n){var r,o,i,a=e("./_ctx"),s=e("./_invoke"),c=e("./_html"),u=e("./_dom-create"),l=e("./_global"),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,b=0,g={},y="onreadystatechange",v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},_=function(e){v.call(e.data)};d&&p||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return g[++b]=function(){s("function"==typeof e?e:Function(e),t)},r(b),b},p=function(e){delete g[e]},"process"==e("./_cof")(f)?r=function(e){f.nextTick(a(v,e,1))}:m&&m.now?r=function(e){m.now(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),t.exports={set:d,clear:p}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},{"./_to-integer":157}],157:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:r)(e)}},{}],158:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":102,"./_iobject":116}],159:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":102}],161:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],163:[function(e,t,n){var r=e("./_global"),o=r.navigator;t.exports=o&&o.userAgent||""},{"./_global":110}],164:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),a=e("./_wks-ext"),s=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,t,n){n.f=e("./_wks")},{"./_wks":166}],166:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,a="function"==typeof i,s=t.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=e("./_to-object"),a=e("./_iter-call"),s=e("./_is-array-iter"),c=e("./_to-length"),u=e("./_create-property"),l=e("./core.get-iterator-method");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,b=void 0!==m,g=0,y=l(d);if(b&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(t=c(d.length),n=new p(t);t>g;g++)u(n,g,b?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(o=f.next()).done;g++)u(n,g,b?a(f,m,[o.value,g],!0):o.value);return n.length=g,n}})},{"./_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,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,t,n){"use strict";var r=e("./_is-object"),o=e("./_object-gpo"),i=e("./_wks")("hasInstance"),a=Function.prototype;i in a||e("./_object-dp").f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=o(e))if(this.prototype===e)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,t,n){var r=e("./_export");r(r.S+r.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,t,n){var r=e("./_export");r(r.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,t,n){e("./_object-sap")("getOwnPropertyNames",(function(){return e("./_object-gopn-ext").f}))},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,t,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(e,t,n){"use strict";var r,o,i,a,s=e("./_library"),c=e("./_global"),u=e("./_ctx"),l=e("./_classof"),f=e("./_export"),d=e("./_is-object"),p=e("./_a-function"),h=e("./_an-instance"),m=e("./_for-of"),b=e("./_species-constructor"),g=e("./_task").set,y=e("./_microtask")(),v=e("./_new-promise-capability"),_=e("./_perform"),w=e("./_user-agent"),x=e("./_promise-resolve"),E="Promise",j=c.TypeError,S=c.process,T=S&&S.versions,O=T&&T.v8||"",k=c[E],N="process"==l(S),C=function(){},I=o=v.f,A=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof n&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),D=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(o||(2==e._h&&R(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(j("Promise-chain cycle")):(i=D(n))?i.call(n,c,u):c(n)):u(r)}catch(f){l&&!a&&l.exit(),u(f)}};while(n.length>i)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){g.call(c,(function(){var t,n,r,o=e._v,i=L(e);if(i&&(t=_((function(){N?S.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||L(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){g.call(c,(function(){var t;N?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},F=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(n=D(t))?y((function(){var o={_w:r,_d:!1};try{n.call(t,u(e,o,1),u(B,o,1))}catch(i){B.call(o,i)}})):(r._v=t,r._s=1,M(r,!1))}catch(o){B.call({_w:r,_d:!1},o)}}};A||(k=function(e){h(this,k,E,"_h"),p(e),r.call(this);try{e(u(F,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("./_redefine-all")(k.prototype,{then:function(e,t){var n=I(b(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(B,e,1)},v.f=I=function(e){return e===k||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:k}),e("./_set-to-string-tag")(k,E),e("./_set-species")(E),a=e("./_core")[E],f(f.S+f.F*!A,E,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!A),E,{resolve:function(e){return x(s&&this===a?k:this,e)}}),f(f.S+f.F*!(A&&e("./_iter-detect")((function(e){k.all(e)["catch"](C)}))),E,{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.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,t,n){var r=e("./_export"),o=e("./_to-absolute-index"),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":122,"./_string-at":154}],181:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_has"),i=e("./_descriptors"),a=e("./_export"),s=e("./_redefine"),c=e("./_meta").KEY,u=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),p=e("./_wks"),h=e("./_wks-ext"),m=e("./_wks-define"),b=e("./_enum-keys"),g=e("./_is-array"),y=e("./_an-object"),v=e("./_is-object"),_=e("./_to-object"),w=e("./_to-iobject"),x=e("./_to-primitive"),E=e("./_property-desc"),j=e("./_object-create"),S=e("./_object-gopn-ext"),T=e("./_object-gopd"),O=e("./_object-gops"),k=e("./_object-dp"),N=e("./_object-keys"),C=T.f,I=k.f,A=S.f,D=r.Symbol,M=r.JSON,P=M&&M.stringify,L="prototype",R=p("_hidden"),B=p("toPrimitive"),F={}.propertyIsEnumerable,q=l("symbol-registry"),U=l("symbols"),G=l("op-symbols"),X=Object[L],V="function"==typeof D&&!!O.f,H=r.QObject,W=!H||!H[L]||!H[L].findChild,z=i&&u((function(){return 7!=j(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=C(X,t);r&&delete X[t],I(e,t,n),r&&e!==X&&I(X,t,r)}:I,K=function(e){var t=U[e]=j(D[L]);return t._k=e,t},Y=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,n){return e===X&&$(G,t,n),y(e),t=x(t,!0),y(n),o(U,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=j(n,{enumerable:E(0,!1)})):(o(e,R)||I(e,R,E(1,{})),e[R][t]=!0),z(e,t,n)):I(e,t,n)},J=function(e,t){y(e);var n,r=b(t=w(t)),o=0,i=r.length;while(i>o)$(e,n=r[o++],t[n]);return e},Z=function(e,t){return void 0===t?j(e):J(j(e),t)},Q=function(e){var t=F.call(this,e=x(e,!0));return!(this===X&&o(U,e)&&!o(G,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==X||!o(U,t)||o(G,t)){var n=C(e,t);return!n||!o(U,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(w(e)),r=[],i=0;while(n.length>i)o(U,t=n[i++])||t==R||t==c||r.push(t);return r},ne=function(e){var t,n=e===X,r=A(n?G:w(e)),i=[],a=0;while(r.length>a)!o(U,t=r[a++])||n&&!o(X,t)||i.push(U[t]);return i};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function t(n){this===X&&t.call(G,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),z(this,e,E(1,n))};return i&&W&&z(X,e,{configurable:!0,set:t}),K(e)},s(D[L],"toString",(function(){return this._k})),T.f=ee,k.f=$,e("./_object-gopn").f=S.f=te,e("./_object-pie").f=Q,O.f=ne,i&&!e("./_library")&&s(X,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;re.length>oe;)p(re[oe++]);for(var ie=N(p.store),ae=0;ie.length>ae;)m(ie[ae++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(q,e+="")?q[e]:q[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:Z,defineProperty:$,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){O.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(_(e))}}),M&&a(a.S+a.F*(!V||u((function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=t=r[1],(v(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,P.apply(M,r)}}),D[L][B]||e("./_hide")(D[L],B,D[L].valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.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,t,n){var r=e("./_export"),o=e("./_object-to-array")(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_core"),i=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_new-promise-capability"),i=e("./_perform");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,t,n){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,t,n){e("./es6.array.iterator");for(var r=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),s="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(","),c=0;c<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&o(f,a,u),i[u]=i.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(e,t,n){var r=e("./_export"),o=e("./_task");r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},{"./_export":107,"./_task":155}],189:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/helpers/typeof"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===_(e)}function s(e){return"boolean"===typeof e}function c(e){return null===e}function u(e){return null==e}function l(e){return"number"===typeof e}function f(e){return"string"===typeof e}function d(e){return"symbol"===("undefined"===typeof e?"undefined":(0,o["default"])(e))}function p(e){return void 0===e}function h(e){return"[object RegExp]"===_(e)}function m(e){return"object"===("undefined"===typeof e?"undefined":(0,o["default"])(e))&&null!==e}function b(e){return"[object Date]"===_(e)}function g(e){return"[object Error]"===_(e)||e instanceof Error}function y(e){return"function"===typeof e}function v(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===("undefined"===typeof e?"undefined":(0,o["default"])(e))||"undefined"===typeof e}function _(e){return Object.prototype.toString.call(e)}n.isArray=a,n.isBoolean=s,n.isNull=c,n.isNullOrUndefined=u,n.isNumber=l,n.isString=f,n.isSymbol=d,n.isUndefined=p,n.isRegExp=h,n.isObject=m,n.isDate=b,n.isError=g,n.isFunction=y,n.isPrimitive=v,n.isBuffer=t.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(e){var r=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(o,u,l,f){if(1!==arguments.length||"string"!==c(o)||/\d/.test(o)||(u=o,o=void 0),o=o||new Date,o instanceof Date||(o=new Date(o)),isNaN(o))throw TypeError("Invalid date");u=String(r.masks[u]||u||r.masks["default"]);var d=u.slice(0,4);"UTC:"!==d&&"GMT:"!==d||(u=u.slice(4),l=!0,"GMT:"===d&&(f=!0));var p=l?"getUTC":"get",h=o[p+"Date"](),m=o[p+"Day"](),b=o[p+"Month"](),g=o[p+"FullYear"](),y=o[p+"Hours"](),v=o[p+"Minutes"](),_=o[p+"Seconds"](),w=o[p+"Milliseconds"](),x=l?0:o.getTimezoneOffset(),E=a(o),j=s(o),S={d:h,dd:i(h),ddd:r.i18n.dayNames[m],dddd:r.i18n.dayNames[m+7],m:b+1,mm:i(b+1),mmm:r.i18n.monthNames[b],mmmm:r.i18n.monthNames[b+12],yy:String(g).slice(2),yyyy:g,h:y%12||12,hh:i(y%12||12),H:y,HH:i(y),M:v,MM:i(v),s:_,ss:i(_),l:i(w,3),L:i(Math.round(w/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:f?"GMT":l?"UTC":(String(o).match(t)||[""]).pop().replace(n,""),o:(x>0?"-":"+")+i(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:E,N:j};return u.replace(e,(function(e){return e in S?S[e]:e.slice(1,e.length-1)}))}}();function i(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}function a(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var o=(t-n)/6048e5;return 1+Math.floor(o)}function s(e){var t=e.getDay();return 0===t&&(t=7),t}function c(e){return null===e?"null":void 0===e?"undefined":"object"!==("undefined"===typeof e?"undefined":(0,o["default"])(e))?"undefined"===typeof e?"undefined":(0,o["default"])(e):Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}r.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"},r.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"===typeof define&&define.amd?define((function(){return r})):"object"===("undefined"===typeof n?"undefined":(0,o["default"])(n))?t.exports=r:e.dateFormat=r})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(e,t,n){"use strict";var r=/["'&<>]/;function o(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==a&&(i+=n.substring(s,a)),s=a+1,i+=t}return s!==a?i+n.substring(s,a):i}t.exports=o},{}],192:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"===typeof e}function i(e){return"number"===typeof e}function a(e){return"object"===typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,c=0;c<r;c++)u[c].apply(this,i);return!0},r.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],193:[function(e,t,n){var r=e("http"),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:231}],194:[function(e,t,n){"use strict";var r=e("util"),o=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=o(e);if(void 0===t){var n=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(n.stack)}return t}},{ms:204,util:243}],195:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},{}],196:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],197:[function(e,t,n){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||o(e)||!!e._isBuffer)}},{}],198:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],199:[function(require,module,exports){(function(global){(function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(e):"function"===typeof define&&define.amd?define(t):t(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!==typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode(55296+(n>>>10))+fromCharCode(56320+(1023&n));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).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(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"===typeof Object.defineProperty){var noEnum=function(e){return{value:e,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),"undefined"!==typeof module&&module.exports?module.exports.Base64=global.Base64:"function"===typeof define&&define.amd&&define([],(function(){return global.Base64})),{Base64:global.Base64}}))}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],200:[function(e,t,n){"use strict";t.exports=o;var r=Object.prototype.hasOwnProperty;function o(e,t,n){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(t).forEach((function(o){if(n||!r.call(e,o)){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i)}})),e}},{}],201:[function(e,t,n){"use strict";function r(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}r.prototype.define=function(e,t){for(var n in e){var r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(var o=0;o<r.length;o++){var i=r[o];if("*"!=i[0]){if(!t&&i in this._types)throw new Error('Attempt to change mapping for "'+i+'" extension from "'+this._types[i]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+i+'" from the list of extensions for "'+n+'".');this._types[i]=n}}if(t||!this._extensions[n]){i=r[0];this._extensions[n]="*"!=i[0]?i:i.substr(1)}}},r.prototype.getType=function(e){e=String(e);var t=e.replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length,o=n.length<t.length-1;return(o||!r)&&this._types[n]||null},r.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null},t.exports=r},{}],202:[function(e,t,n){"use strict";var r=e("./Mime");t.exports=new r(e("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(e,t,n){t.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,t,n){var r=1e3,o=60*r,i=60*o,a=24*i,s=7*a,c=365.25*a;function u(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"weeks":case"week":case"w":return n*s;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*i;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+"d":t>=i?Math.round(e/i)+"h":t>=o?Math.round(e/o)+"m":t>=r?Math.round(e/r)+"s":e+"ms"}function f(e){var t=Math.abs(e);return t>=a?d(e,t,a,"day"):t>=i?d(e,t,i,"hour"):t>=o?d(e,t,o,"minute"):t>=r?d(e,t,r,"second"):e+" ms"}function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return u(e);if("number"===n&&isFinite(e))return t["long"]?f(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],205:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),a="/"===i(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c<a;c++)if(o[c]!==i[c]){s=c;break}var u=[];for(c=s;c<o.length;c++)u.push("..");return u=u.concat(i.slice(s)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:208}],206:[function(e,t,n){(function(e){(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,i=r[typeof n]&&n,a=r[typeof t]&&t&&!t.nodeType&&t,s=i&&a&&"object"==typeof e&&e;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var c=Math.pow(2,53)-1,u=/\bOpera/,l=Object.prototype,f=l.hasOwnProperty,d=l.toString;function p(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n){var r={"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 t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=b(e.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]),e}function m(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)while(++n<r)t(e[n],n,e);else g(e,t)}function b(e){return e=x(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function g(e,t){for(var n in e)f.call(e,n)&&t(e[n],n,e)}function y(e){return null==e?p(e):d.call(e).slice(8,-1)}function v(e,t){var n=null!=e?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&("object"!=n||!!e[t])}function _(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function w(e,t){var n=null;return m(e,(function(r,o){n=t(n,r,o,e)})),n}function x(e){return String(e).replace(/^ +| +$/g,"")}function E(e){var t=o,n=e&&"object"==typeof e&&"String"!=y(e);n&&(t=e,e=null);var r=t.navigator||{},i=r.userAgent||"";e||(e=i);var a,s,c=n?!!r.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(d.toString()),l="Object",f=n?l:"ScriptBridgingProxyObject",p=n?l:"Environment",m=n&&t.java?"JavaPackage":y(t.java),j=n?l:"RuntimeObject",S=/\bJava/.test(m)&&t.java,T=S&&y(t.environment)==p,O=S?"a":"\u03b1",k=S?"b":"\u03b2",N=t.document||{},C=t.operamini||t.opera,I=u.test(I=n&&C?C["[[Class]]"]:y(C))?I:C=null,A=e,D=[],M=null,P=e==i,L=P&&C&&"function"==typeof C.version&&C.version(),R=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=V(["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"]),F=W([{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"]),q=X({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}}),U=H(["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 G(t){return w(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||_(n))+"\\b","i").exec(e)&&(n.label||n)}))}function X(t){return w(t,(function(t,n,r){return t||(n[F]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(F)]||RegExp("\\b"+_(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r}))}function V(t){return w(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||_(n))+"\\b","i").exec(e)&&(n.label||n)}))}function H(t){return w(t,(function(t,n){var r=n.pattern||_(n);return!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=h(t,r,n.label||n)),t}))}function W(t){return w(t,(function(t,n){var r=n.pattern||_(n);return!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=b(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t}))}function z(t){return w(t,(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))}function K(){return this.description||""}if(R&&(R=[R]),q&&!F&&(F=W([q])),(a=/\bGoogle TV\b/.exec(F))&&(F=a[0]),/\bSimulator\b/i.test(e)&&(F=(F?F+" ":"")+"Simulator"),"Opera Mini"==B&&/\bOPiOS\b/.test(e)&&D.push("running in Turbo/Uncompressed mode"),"IE"==B&&/\blike iPhone OS\b/.test(e)?(a=E(e.replace(/like iPhone OS/,"")),q=a.manufacturer,F=a.product):/^iP/.test(F)?(B||(B="Safari"),U="iOS"+((a=/ OS ([\d_]+)/i.exec(e))?" "+a[1].replace(/_/g,"."):"")):"Konqueror"!=B||/buntu/i.test(U)?q&&"Google"!=q&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(F))||/\bAndroid\b/.test(U)&&/^Chrome/.test(B)&&/\bVersion\//i.test(e)?(B="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==B?(/\bMobi/i.test(e)||(U="Android",D.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&D.unshift("accelerated")):"PaleMoon"==B&&(a=/\bFirefox\/([\d.]+)\b/.exec(e))?D.push("identifying as Firefox "+a[1]):"Firefox"==B&&(a=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),F||(F=a[1])):!B||(a=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!F&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(a+"/")+8))&&(B=null),(a=F||q||U)&&(F||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:a)+" Browser")):"Electron"==B&&(a=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&D.push("Chromium "+a):U="Kubuntu",L||(L=z(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",_(B),"(?:Firefox|Minefield|NetFront)"])),(a=("iCab"==R&&parseFloat(L)>3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(R)&&"WebKit"||!R&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==R&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(R=[a]),"IE"==B&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",U="Windows Phone 8.x",D.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==R&&(a=/\brv:([\d.]+)/.exec(e))&&(B&&D.push("identifying as "+B+(L?" "+L:"")),B="IE",L=a[1]),P){if(v(t,"global"))if(S&&(a=S.lang.System,A=a.getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{L=t.require("ringo/engine").version.join("."),B="RingoJS"}catch($){(a=t.system)&&a.global.system==t.system&&(B="Narwhal",U||(U=a[0].os||null))}B||(B="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(a=t.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(D.push("Node "+a.versions.node),B="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(D.push("Chromium "+L,"Node "+a.versions.node),B="NW.js",L=a.versions.nw)),B||(B="Node.js",A=a.arch,U=a.platform,L=/[\d.]+/.exec(a.version),L=L?L[0]:null));else y(a=t.runtime)==f?(B="Adobe AIR",U=a.flash.system.Capabilities.os):y(a=t.phantom)==j?(B="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof N.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?(L=[L,N.documentMode],(a=+a[1]+4)!=L[1]&&(D.push("IE "+L[1]+" mode"),R&&(R[1]=""),L[1]=a),L="IE"==B?String(L[1].toFixed(1)):L[0]):"number"==typeof N.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(D.push("masking as "+B+" "+L),B="IE",L="11.0",R=["Trident"],U="Windows");U=U&&b(U)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(P&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(M=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==M?k:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS)\b/.test(U))B="Firefox Mobile";else if("Maxthon"==B&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&D.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||F||/Browser|Mobi/.test(B))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==B&&P)try{null===t.external&&D.unshift("platform preview")}catch($){D.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||L)?(a=[a,/BB10/.test(e)],U=(a[1]?(F=null,q="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=g&&"Wii"!=F&&(P&&C||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==B&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(e)))&&!u.test(a=E.call(g,e.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(B)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,B=I?b(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),P||(L=null)),R=["Presto"],D.push(a));else B+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==B&&"+"==a[1].slice(-1)?(B="WebKit Nightly",M="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==R&&(R=["Blink"]),P&&(c||a[1])?(R&&(R[1]="like Chrome"),a=a[1]||(a=a[0],a<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=R?"27":"28")):(R&&(R[1]="like Safari"),a=a[0],a=a<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),R&&(R[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==B&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==B&&(a=/\bzbov|zvav$/.exec(U))?(B+=" ",D.unshift("desktop mode"),"zvav"==a?(B+="Mini",L=null):B+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(R&&R[1])&&(D.unshift("desktop mode"),B="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(q="Apple",U="iOS 4.3+"):U=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(U))&&e.indexOf("/"+a+"-")>-1&&(U=x(U.replace(a,""))),R&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(U)&&/\bSafari\b/.test(R[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&R[1])&&(a=R[R.length-1])&&D.push(a),D.length&&(D=["("+D.join("; ")+")"]),q&&F&&F.indexOf(q)<0&&D.push("on "+q),F&&D.push((/^on /.test(D[D.length-1])?"":"on ")+F),U&&(a=/ ([\d.+]+)$/.exec(U),s=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!s?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!s?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),B&&(/\bWOW64\b/i.test(e)||P&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&D.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==B&&parseFloat(L)>=39&&(U.architecture=64),e||(e=null);var Y={};return Y.description=e,Y.layout=R&&R[0],Y.manufacturer=q,Y.name=B,Y.prerelease=M,Y.product=F,Y.ua=e,Y.version=B&&L,Y.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=E,Y.toString=K,Y.version&&D.unshift(L),Y.name&&D.unshift(B),U&&B&&(U!=String(U).split(" ")[0]||U!=B.split(" ")[0]&&!F)&&D.push(F?"("+U+")":"on "+U),D.length&&(Y.description=D.join(" ")),Y}var j=E();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(o.platform=j,define((function(){return j}))):i&&a?g(j,(function(e,t){i[t]=e})):o.platform=j}).call(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],207:[function(e,t,n){(function(e){"use strict";function n(t,n,r,o){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:i=new Array(s-1),a=0;while(a<i.length)i[a++]=arguments[a];return e.nextTick((function(){t.apply(null,i)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,e("_process"))},{_process:208}],208:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"===typeof clearTimeout?clearTimeout:s}catch(e){o=s}})();var l,f=[],d=!1,p=-1;function h(){d&&l&&(d=!1,l.length?f=l.concat(f):p=-1,f.length&&m())}function m(){if(!d){var e=c(h);d=!0;var t=f.length;while(t){l=f,f=[];while(++p<t)l&&l[p].run();p=-1,t=f.length}l=null,d=!1,u(e)}}function b(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new b(e,t)),1!==f.length||d||c(m)},b.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],209:[function(e,t,n){(function(e){(function(r){var o="object"==typeof n&&n&&!n.nodeType&&n,i="object"==typeof t&&t&&!t.nodeType&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a&&a.self!==a||(r=a);var s,c,u=2147483647,l=36,f=1,d=26,p=38,h=700,m=72,b=128,g="-",y=/^xn--/,v=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-f,E=Math.floor,j=String.fromCharCode;function S(e){throw new RangeError(w[e])}function T(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(_,".");var o=e.split("."),i=T(o,t).join(".");return r+i}function k(e){var t,n,r=[],o=0,i=e.length;while(o<i)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<i?(n=e.charCodeAt(o++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--)):r.push(t);return r}function N(e){return T(e,(function(e){var t="";return e>65535&&(e-=65536,t+=j(e>>>10&1023|55296),e=56320|1023&e),t+=j(e),t})).join("")}function C(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?E(e/h):e>>1,e+=E(e/t);e>x*d>>1;r+=l)e=E(e/x);return E(r+(x+1)*e/(e+p))}function D(e){var t,n,r,o,i,a,s,c,p,h,y=[],v=e.length,_=0,w=b,x=m;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&S("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=_,a=1,s=l;;s+=l){if(o>=v&&S("invalid-input"),c=C(e.charCodeAt(o++)),(c>=l||c>E((u-_)/a))&&S("overflow"),_+=c*a,p=s<=x?f:s>=x+d?d:s-x,c<p)break;h=l-p,a>E(u/h)&&S("overflow"),a*=h}t=y.length+1,x=A(_-i,t,0==i),E(_/t)>u-w&&S("overflow"),w+=E(_/t),_%=t,y.splice(_++,0,w)}return N(y)}function M(e){var t,n,r,o,i,a,s,c,p,h,y,v,_,w,x,T=[];for(e=k(e),v=e.length,t=b,n=0,i=m,a=0;a<v;++a)y=e[a],y<128&&T.push(j(y));r=o=T.length,o&&T.push(g);while(r<v){for(s=u,a=0;a<v;++a)y=e[a],y>=t&&y<s&&(s=y);for(_=r+1,s-t>E((u-n)/_)&&S("overflow"),n+=(s-t)*_,t=s,a=0;a<v;++a)if(y=e[a],y<t&&++n>u&&S("overflow"),y==t){for(c=n,p=l;;p+=l){if(h=p<=i?f:p>=i+d?d:p-i,c<h)break;x=c-h,w=l-h,T.push(j(I(h+x%w,0))),c=E(x/w)}T.push(j(I(c,0))),i=A(n,_,r==o),n=0,++r}++n,++t}return T.join("")}function P(e){return O(e,(function(e){return y.test(e)?D(e.slice(4).toLowerCase()):e}))}function L(e){return O(e,(function(e){return v.test(e)?"xn--"+M(e):e}))}if(s={version:"1.4.1",ucs2:{decode:k,encode:N},decode:D,encode:M,toASCII:L,toUnicode:P},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return s}));else if(o&&i)if(t.exports==o)i.exports=s;else for(c in s)s.hasOwnProperty(c)&&(o[c]=s[c]);else r.punycode=s})(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],210:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"===typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,d,p,h,m=e[l].replace(s,"%20"),b=m.indexOf(n);b>=0?(f=m.substr(0,b),d=m.substr(b+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],211:[function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?i(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],212:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":210,"./encode":211}],213:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("process-nextick-args"),u=a["default"]||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=b;var l=(0,o["default"])(e("core-util-is"));l.inherits=e("inherits");var f=e("./_stream_readable"),d=e("./_stream_writable");l.inherits(b,f);for(var p=u(d.prototype),h=0;h<p.length;h++){var m=p[h];b.prototype[m]||(b.prototype[m]=d.prototype[m])}function b(e){if(!(this instanceof b))return new b(e);f.call(this,e),d.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||c.nextTick(y,this)}function y(e){e.end()}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),b.prototype._destroy=function(e,t){this.push(null),this.end(),c.nextTick(t,e)}},{"./_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,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t.exports=c;var a=e("./_stream_transform"),s=(0,o["default"])(e("core-util-is"));function c(e){if(!(this instanceof c))return new c(e);a.call(this,e)}s.inherits=e("inherits"),s.inherits(c,a),c.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(e,t,n){(function(n,r){"use strict";var o=e("babel-runtime/core-js/object/get-prototype-of"),i=c(o),a=e("babel-runtime/core-js/object/create"),s=c(a);function c(e){return e&&e.__esModule?e:{default:e}}var u=e("process-nextick-args");t.exports=O;var l,f=e("isarray");O.ReadableState=T;e("events").EventEmitter;var d=function(e,t){return e.listeners(t).length},p=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,m=r.Uint8Array||function(){};function b(e){return h.from(e)}function g(e){return h.isBuffer(e)||e instanceof m}var y=(0,s["default"])(e("core-util-is"));y.inherits=e("inherits");var v=e("util"),_=void 0;_=v&&v.debuglog?v.debuglog("stream"):function(){};var w,x=e("./internal/streams/BufferList"),E=e("./internal/streams/destroy");y.inherits(O,p);var j=["error","close","destroy","pause","resume"];function S(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?f(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function T(t,n){l=l||e("./_stream_duplex"),t=t||{};var r=n instanceof l;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,i=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(w||(w=e("string_decoder/").StringDecoder),this.decoder=new w(t.encoding),this.encoding=t.encoding)}function O(t){if(l=l||e("./_stream_duplex"),!(this instanceof O))return new O(t);this._readableState=new T(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),p.call(this)}function k(e,t,n,r,o){var a,s=e._readableState;null===t?(s.reading=!1,P(e,s)):(o||(a=C(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"===typeof t||s.objectMode||(0,i["default"])(t)===h.prototype||(t=b(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):N(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?N(e,s,t,!1):B(e,s)):N(e,s,t,!1))):r||(s.reading=!1));return I(s)}function N(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e)),B(e,t)}function C(e,t){var n;return g(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function I(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=E.destroy,O.prototype._undestroy=E.undestroy,O.prototype._destroy=function(e,t){this.push(null),t(e)},O.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=h.from(e,t),t=""),n=!0),k(this,e,t,!1,n)},O.prototype.unshift=function(e){return k(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(t){return w||(w=e("string_decoder/").StringDecoder),this._readableState.decoder=new w(t),this._readableState.encoding=t,this};var A=8388608;function D(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,L(e)}}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?u.nextTick(R,e):R(e))}function R(e){_("emit readable"),e.emit("readable"),V(e)}function B(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(F,e,t))}function F(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){if(_("maybeReadMore read 0"),e.read(0),n===t.length)break;n=t.length}t.readingMore=!1}function q(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,V(e))}}function U(e){_("readable nexttick read 0"),e.read(0)}function G(e,t){t.resumeScheduled||(t.resumeScheduled=!0,u.nextTick(X,e,t))}function X(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;_("flow",t.flowing);while(t.flowing&&null!==e.read());}function H(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=W(e,t.buffer,t.decoder),n);var n}function W(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?z(e,t):K(e,t),r}function z(e,t){var n=t.head,r=1,o=n.data;e-=o.length;while(n=n.next){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),e-=a,0===e){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function K(e,t){var n=h.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),e-=a,0===e){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function Y(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,u.nextTick($,t,e))}function $(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function J(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}O.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Y(this):L(this),null;if(e=M(e,t),0===e&&t.ended)return 0===t.length&&Y(this),null;var r,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&(o=!0,_("length less than watermark",o)),t.ended||t.reading?(o=!1,_("reading or ended",o)):o&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t))),r=e>0?H(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Y(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,_("pipe count=%d opts=%j",o.pipesCount,t);var i=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,a=i?c:v;function s(e,t){_("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){_("onend"),e.end()}o.endEmitted?u.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=q(r);e.on("drain",l);var f=!1;function p(){_("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",b),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var h=!1;function m(t){_("ondata"),h=!1;var n=e.write(t);!1!==n||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==J(o.pipes,e))&&!f&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function b(t){_("onerror",t),v(),e.removeListener("error",b),0===d(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){_("onfinish"),e.removeListener("close",g),v()}function v(){_("unpipe"),r.unpipe(e)}return r.on("data",m),S(e,"error",b),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(_("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=J(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},O.prototype.on=function(e,t){var n=p.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&L(this):u.nextTick(U,this))}return n},O.prototype.addListener=O.prototype.on,O.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!0,G(this,e)),this},O.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(_("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){if(_("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!==o&&void 0!==o)&&(n.objectMode||o&&o.length)){var i=t.push(o);i||(r=!0,e.pause())}})),e)void 0===this[o]&&"function"===typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<j.length;i++)e.on(j[i],this.emit.bind(this,j[i]));return this._read=function(t){_("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=H}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?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,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t.exports=u;var a=e("./_stream_duplex"),s=(0,o["default"])(e("core-util-is"));function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"===typeof this._flush?this._flush((function(t,n){f(e,t,n)})):f(this,null,null)}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}s.inherits=e("inherits"),s.inherits(u,a),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},u.prototype._destroy=function(e,t){var n=this;a.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(e,t,n){(function(n,r){"use strict";var o=e("babel-runtime/core-js/object/define-property"),i=h(o),a=e("babel-runtime/core-js/symbol/has-instance"),s=h(a),c=e("babel-runtime/core-js/symbol"),u=h(c),l=e("babel-runtime/core-js/object/create"),f=h(l),d=e("babel-runtime/core-js/set-immediate"),p=h(d);function h(e){return e&&e.__esModule?e:{default:e}}var m=e("process-nextick-args");function b(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}t.exports=C;var g,y=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?p["default"]:m.nextTick;C.WritableState=N;var v=(0,f["default"])(e("core-util-is"));v.inherits=e("inherits");var _={deprecate:e("util-deprecate")},w=e("./internal/streams/stream"),x=e("safe-buffer").Buffer,E=r.Uint8Array||function(){};function j(e){return x.from(e)}function S(e){return x.isBuffer(e)||e instanceof E}var T,O=e("./internal/streams/destroy");function k(){}function N(t,n){g=g||e("./_stream_duplex"),t=t||{};var r=n instanceof g;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,i=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(i||0===i)?i:a,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 s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){B(n,e)},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 b(this)}function C(t){if(g=g||e("./_stream_duplex"),!T.call(C,this)&&!(this instanceof g))return new C(t);this._writableState=new N(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t["final"]&&(this._final=t["final"])),w.call(this)}function I(e,t){var n=new Error("write after end");e.emit("error",n),m.nextTick(t,n)}function A(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),m.nextTick(r,i),o=!1),o}function D(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=x.from(t,n)),t}function M(e,t,n,r,o,i){if(!n){var a=D(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,s,r,o,i);return c}function P(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function L(e,t,n,r,o){--t.pendingcb,n?(m.nextTick(o,r),m.nextTick(H,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),H(e,t))}function R(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function B(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(R(n),t)L(e,n,r,t,o);else{var i=G(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||U(e,n),r?y(F,e,n,i,o):F(e,n,i,o)}}function F(e,t,n,r){n||q(e,t),t.pendingcb--,r(),H(e,t)}function q(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;var a=0,s=!0;while(n)o[a]=n,n.isBuf||(s=!1),n=n.next,a+=1;o.allBuffers=s,P(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new b(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,l=n.callback,f=t.objectMode?1:c.length;if(P(e,t,!1,f,c,u,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function G(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function X(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),H(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,m.nextTick(X,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function H(e,t){var n=G(t);return n&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function W(e,t,n){t.ending=!0,H(e,t),n&&(t.finished?m.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function z(e,t,n){var r=e.entry;e.entry=null;while(r){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}v.inherits(C,w),N.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(N.prototype,"buffer",{get:_.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof u["default"]&&s["default"]&&"function"===typeof Function.prototype[s["default"]]?(T=Function.prototype[s["default"]],(0,i["default"])(C,s["default"],{value:function(e){return!!T.call(this,e)||this===C&&(e&&e._writableState instanceof N)}})):T=function(e){return e instanceof this},C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},C.prototype.write=function(e,t,n){var r=this._writableState,o=!1,i=!r.objectMode&&S(e);return i&&!x.isBuffer(e)&&(e=j(e)),"function"===typeof t&&(n=t,t=null),i?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=k),r.ended?I(this,n):(i||A(this,r,e,n))&&(r.pendingcb++,o=M(this,r,i,e,t,n)),o},C.prototype.cork=function(){var e=this._writableState;e.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||U(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||W(this,r,n)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=O.destroy,C.prototype._undestroy=O.undestroy,C.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?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,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("safe-buffer").Buffer,i=e("util");function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":228,util:71}],220:[function(e,t,n){"use strict";var r=e("process-nextick-args");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return o||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){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 a(e,t){e.emit("error",t)}t.exports={destroy:o,undestroy:i}},{"process-nextick-args":207}],221:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:192}],222:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.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,t,n){t.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=e("./runtime"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,t,n){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=_;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},b={};b[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==r&&o.call(y,a)&&(b=y);var v=j.prototype=x.prototype=Object.create(b);E.prototype=v.constructor=j,j.constructor=E,j[c]=E.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(v),e},l.awrap=function(e){return{__await:e}},S(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(e,t,n,r){var o=new T(_(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(v),v[c]="Generator",v[a]=function(){return this},v.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new I(r||[]);return i._invoke=O(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function E(){}function j(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),a)}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function O(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return D()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++r<e.length)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:D}}function D(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},{}],228:[function(e,t,n){var r=e("buffer"),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,n),n.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:73}],229:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/string/from-code-point"),o=m(r),i=e("babel-runtime/core-js/json/stringify"),a=m(i),s=e("babel-runtime/helpers/typeof"),c=m(s),u=e("babel-runtime/core-js/object/define-property"),l=m(u),f=e("babel-runtime/core-js/object/keys"),d=m(f),p=e("babel-runtime/core-js/object/create"),h=m(p);function m(e){return e&&e.__esModule?e:{default:e}}(function(n){n.parser=function(e,t){return new s(e,t)},n.SAXParser=s,n.SAXStream=g,n.createStream=b,n.MAX_BUFFER_LENGTH=65536;var r,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(e,t){if(!(this instanceof s))return new s(e,t);var r=this;f(r),r.q=r.c="",r.bufferCheckPosition=n.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=A.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?(0,h["default"])(n.XML_ENTITIES):(0,h["default"])(n.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=(0,h["default"])(x)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),M(r,"onready")}function u(e){for(var t=Math.max(n.MAX_BUFFER_LENGTH,10),r=0,o=0,a=i.length;o<a;o++){var s=e[i[o]].length;if(s>t)switch(i[o]){case"textNode":L(e);break;case"cdata":P(e,"oncdata",e.cdata),e.cdata="";break;case"script":P(e,"onscript",e.script),e.script="";break;default:B(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var c=n.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=c+e.position}function f(e){for(var t=0,n=i.length;t<n;t++)e[i[t]]=""}function p(e){L(e),""!==e.cdata&&(P(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(P(e,"onscript",e.script),e.script="")}n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],h["default"]||(Object.create=function(e){function t(){}t.prototype=e;var n=new t;return n}),d["default"]||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),s.prototype={end:function(){F(this)},write:Y,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};try{r=e("stream").Stream}catch($){r=function(){}}var m=n.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function b(e,t){return new g(e,t)}function g(e,t){if(!(this instanceof g))return new g(e,t);r.apply(this),this._parser=new s(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,m.forEach((function(e){(0,l["default"])(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t,t;n.on(e,t)},enumerable:!0,configurable:!1})}))}g.prototype=(0,h["default"])(r.prototype,{constructor:{value:g}}),g.prototype.write=function(n){if("function"===typeof t&&"function"===typeof t.isBuffer&&t.isBuffer(n)){if(!this._decoder){var r=e("string_decoder").StringDecoder;this._decoder=new r("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},g.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},g.prototype.on=function(e,t){var n=this;return n._parser["on"+e]||-1===m.indexOf(e)||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),r.prototype.on.call(n,e,t)};var y="[CDATA[",v="DOCTYPE",_="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",x={xml:_,xmlns:w},E=/[:_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]/,j=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,S=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function O(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function k(e){return'"'===e||"'"===e}function N(e){return">"===e||O(e)}function C(e,t){return e.test(t)}function I(e,t){return!C(e,t)}var A=0;for(var D in n.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.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,d["default"])(n.ENTITIES).forEach((function(e){var t=n.ENTITIES[e],r="number"===typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=r})),n.STATE)n.STATE[n.STATE[D]]=D;function M(e,t,n){e[t]&&e[t](n)}function P(e,t,n){e.textNode&&L(e),M(e,t,n)}function L(e){e.textNode=R(e.opt,e.textNode),e.textNode&&M(e,"ontext",e.textNode),e.textNode=""}function R(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function B(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,M(e,"onerror",t),e}function F(e){return e.sawRoot&&!e.closedRoot&&q(e,"Unclosed root tag"),e.state!==A.BEGIN&&e.state!==A.BEGIN_WHITESPACE&&e.state!==A.TEXT&&B(e,"Unexpected end"),L(e),e.c="",e.closed=!0,M(e,"onend"),s.call(e,e.strict,e.opt),e}function q(e,t){if("object"!==("undefined"===typeof e?"undefined":(0,c["default"])(e))||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&B(e,t)}function U(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,P(e,"onopentagstart",n)}function G(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),o=r[0],i=r[1];return t&&"xmlns"===e&&(o="xmlns",i=""),{prefix:o,local:i}}function X(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=G(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==_)q(e,"xml: prefix must be bound to "+_+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==w)q(e,"xmlns: prefix must be bound to "+w+"\nActual: "+e.attribValue);else{var o=e.tag,i=e.tags[e.tags.length-1]||e;o.ns===i.ns&&(o.ns=(0,h["default"])(i.ns)),o.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,P(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function V(e,t){if(e.opt.xmlns){var n=e.tag,r=G(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(q(e,"Unbound namespace prefix: "+(0,a["default"])(e.tagName)),n.uri=r.prefix);var o=e.tags[e.tags.length-1]||e;n.ns&&o.ns!==n.ns&&(0,d["default"])(n.ns).forEach((function(t){P(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var i=0,s=e.attribList.length;i<s;i++){var c=e.attribList[i],u=c[0],l=c[1],f=G(u,!0),p=f.prefix,h=f.local,m=""===p?"":n.ns[p]||"",b={name:u,value:l,prefix:p,local:h,uri:m};p&&"xmlns"!==p&&!m&&(q(e,"Unbound namespace prefix: "+(0,a["default"])(p)),b.uri=p),e.tag.attributes[u]=b,P(e,"onattribute",b)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),P(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=A.TEXT:e.state=A.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function H(e){if(!e.tagName)return q(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=A.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=A.SCRIPT);P(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var o=e.tags[t];if(o.name===r)break;q(e,"Unexpected close tag")}if(t<0)return q(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=A.TEXT);e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,P(e,"onclosetag",e.tagName);var s={};for(var c in a.ns)s[c]=a.ns[c];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==u.ns&&(0,d["default"])(a.ns).forEach((function(t){var n=a.ns[t];P(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=A.TEXT}function W(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(q(e,"Invalid character entity"),"&"+e.entity+";"):(0,o["default"])(t))}function z(e,t){"<"===t?(e.state=A.OPEN_WAKA,e.startTagPosition=e.position):O(t)||(q(e,"Non-whitespace before first tag."),e.textNode=t,e.state=A.TEXT)}function K(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}function Y(e){var t=this;if(this.error)throw this.error;if(t.closed)return B(t,"Cannot write after close. Assign an onready handler.");if(null===e)return F(t);"object"===("undefined"===typeof e?"undefined":(0,c["default"])(e))&&(e=e.toString());var n=0,r="";while(1){if(r=K(e,n++),t.c=r,!r)break;switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case A.BEGIN:if(t.state=A.BEGIN_WHITESPACE,"\ufeff"===r)continue;z(t,r);continue;case A.BEGIN_WHITESPACE:z(t,r);continue;case A.TEXT:if(t.sawRoot&&!t.closedRoot){var o=n-1;while(r&&"<"!==r&&"&"!==r)r=K(e,n++),r&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(o,n-1)}"<"!==r||t.sawRoot&&t.closedRoot&&!t.strict?(O(r)||t.sawRoot&&!t.closedRoot||q(t,"Text data outside of root node."),"&"===r?t.state=A.TEXT_ENTITY:t.textNode+=r):(t.state=A.OPEN_WAKA,t.startTagPosition=t.position);continue;case A.SCRIPT:"<"===r?t.state=A.SCRIPT_ENDING:t.script+=r;continue;case A.SCRIPT_ENDING:"/"===r?t.state=A.CLOSE_TAG:(t.script+="<"+r,t.state=A.SCRIPT);continue;case A.OPEN_WAKA:if("!"===r)t.state=A.SGML_DECL,t.sgmlDecl="";else if(O(r));else if(C(E,r))t.state=A.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=A.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=A.PROC_INST,t.procInstName=t.procInstBody="";else{if(q(t,"Unencoded <"),t.startTagPosition+1<t.position){var i=t.position-t.startTagPosition;r=new Array(i).join(" ")+r}t.textNode+="<"+r,t.state=A.TEXT}continue;case A.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===y?(P(t,"onopencdata"),t.state=A.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=A.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===v?(t.state=A.DOCTYPE,(t.doctype||t.sawRoot)&&q(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(P(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=A.TEXT):k(r)?(t.state=A.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case A.SGML_DECL_QUOTED:r===t.q&&(t.state=A.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case A.DOCTYPE:">"===r?(t.state=A.TEXT,P(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=A.DOCTYPE_DTD:k(r)&&(t.state=A.DOCTYPE_QUOTED,t.q=r));continue;case A.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=A.DOCTYPE:k(r)&&(t.state=A.DOCTYPE_DTD_QUOTED,t.q=r);continue;case A.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=A.DOCTYPE_DTD,t.q="");continue;case A.COMMENT:"-"===r?t.state=A.COMMENT_ENDING:t.comment+=r;continue;case A.COMMENT_ENDING:"-"===r?(t.state=A.COMMENT_ENDED,t.comment=R(t.opt,t.comment),t.comment&&P(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==r?(q(t,"Malformed comment"),t.comment+="--"+r,t.state=A.COMMENT):t.state=A.TEXT;continue;case A.CDATA:"]"===r?t.state=A.CDATA_ENDING:t.cdata+=r;continue;case A.CDATA_ENDING:"]"===r?t.state=A.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===r?(t.cdata&&P(t,"oncdata",t.cdata),P(t,"onclosecdata"),t.cdata="",t.state=A.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=A.CDATA);continue;case A.PROC_INST:"?"===r?t.state=A.PROC_INST_ENDING:O(r)?t.state=A.PROC_INST_BODY:t.procInstName+=r;continue;case A.PROC_INST_BODY:if(!t.procInstBody&&O(r))continue;"?"===r?t.state=A.PROC_INST_ENDING:t.procInstBody+=r;continue;case A.PROC_INST_ENDING:">"===r?(P(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=A.TEXT):(t.procInstBody+="?"+r,t.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:C(j,r)?t.tagName+=r:(U(t),">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:(O(r)||q(t,"Invalid character in tag name"),t.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===r?(V(t,!0),H(t)):(q(t,"Forward-slash in opening tag not followed by >"),t.state=A.ATTRIB);continue;case A.ATTRIB:if(O(r))continue;">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===r?t.state=A.ATTRIB_VALUE:">"===r?(q(t,"Attribute without value"),t.attribValue=t.attribName,X(t),V(t)):O(r)?t.state=A.ATTRIB_NAME_SAW_WHITE:C(j,r)?t.attribName+=r:q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=A.ATTRIB_VALUE;else{if(O(r))continue;q(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",P(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?V(t):C(E,r)?(t.attribName=r,t.state=A.ATTRIB_NAME):(q(t,"Invalid attribute name"),t.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(O(r))continue;k(r)?(t.q=r,t.state=A.ATTRIB_VALUE_QUOTED):(q(t,"Unquoted attribute value"),t.state=A.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case A.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}X(t),t.q="",t.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:O(r)?t.state=A.ATTRIB:">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(q(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!N(r)){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}X(t),">"===r?V(t):t.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(t.tagName)">"===r?H(t):C(j,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=A.SCRIPT):(O(r)||q(t,"Invalid tagname in closing tag"),t.state=A.CLOSE_TAG_SAW_WHITE);else{if(O(r))continue;I(E,r)?t.script?(t.script+="</"+r,t.state=A.SCRIPT):q(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case A.CLOSE_TAG_SAW_WHITE:if(O(r))continue;">"===r?H(t):q(t,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var a,s;switch(t.state){case A.TEXT_ENTITY:a=A.TEXT,s="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:a=A.ATTRIB_VALUE_QUOTED,s="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:a=A.ATTRIB_VALUE_UNQUOTED,s="attribValue";break}";"===r?(t[s]+=W(t),t.entity="",t.state=a):C(t.entity.length?T:S,r)?t.entity+=r:(q(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&u(t),t}A=n.STATE,o["default"]||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,o=16384,i=[],a=-1,s=arguments.length;if(!s)return"";var c="";while(++a<s){var u=Number(arguments[a]);if(!isFinite(u)||u<0||u>1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(a+1===s||i.length>o)&&(c+=e.apply(null,i),i.length=0)}return c};l["default"]?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})("undefined"===typeof n?(void 0).sax={}:n)}).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,t,n){t.exports=i;var r=e("events").EventEmitter,o=e("inherits");function i(){r.call(this)}o(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{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,t,n){(function(t){var r=e("./lib/request"),o=e("./lib/response"),i=e("xtend"),a=e("builtin-status-codes"),s=e("url"),c=n;c.request=function(e,n){e="string"===typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.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,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,t,n){(function(e){"use strict";n.fetch=s(e.fetch)&&s(e.ReadableStream),n.writableStream=s(e.WritableStream),n.abortController=s(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(c){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(c){t=null}}else t=null;return t}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(c){}return!1}var i="undefined"!==typeof e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}n.arraybuffer=n.fetch||i&&o("arraybuffer"),n.msstream=!n.fetch&&a&&o("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&i&&o("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&s(r().overrideMimeType),n.vbArray=s(e.VBArray),t=null}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],233:[function(e,t,n){(function(n,r,o){"use strict";var i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("./response"),f=e("readable-stream"),d=e("to-arraybuffer"),p=l.IncomingMessage,h=l.readyStates;function m(e,t){return c.fetch&&t?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":c.vbArray&&e?"text:vbarray":"text"}var b=t.exports=function(e){var t,n=this;f.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new o(e.auth).toString("base64")),(0,a["default"])(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!c.abortController)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!c.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=m(t,r),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};function g(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}u(b,f.Writable),b.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===y.indexOf(r)&&(n._headers[r]={name:e,value:t})},b.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},b.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},b.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=c.arraybuffer?d(o.concat(e._body)):c.blobConstructor?new r.Blob(e._body.map((function(e){return d(e)})),{type:(i["content-type"]||{}).value||""}):o.concat(e._body).toString());var u=[];if((0,a["default"])(i).forEach((function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach((function(e){u.push([t,e])})):u.push([t,n])})),"fetch"===e._mode){var l=null;if(c.abortController){var f=new AbortController;l=f.signal,e._fetchAbortController=f,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(p.timeout=t.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case h.LOADING:case h.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}}}},b.prototype._onXHRProgress=function(){var e=this;g(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},b.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},b.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},b.prototype.abort=b.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},b.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),f.Writable.prototype.end.call(r,e,t,n)},b.prototype.flushHeaders=function(){},b.prototype.setTimeout=function(){},b.prototype.setNoDelay=function(){},b.prototype.setSocketKeepAlive=function(){};var y=["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"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?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,t,n){(function(t,r,o){"use strict";var i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("readable-stream"),f=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=n.IncomingMessage=function(e,n,i,s){var u=this;if(l.Readable.call(u),u._mode=i,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===i){var f=function e(){p.read().then((function(t){if(!u._destroyed){if(t.done)return r.clearTimeout(s),void u.push(null);u.push(new o(t.value)),e()}}))["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))};if(u._fetchResponse=n,u.url=n.url,u.statusCode=n.status,u.statusMessage=n.statusText,n.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),c.writableStream){var d=new WritableStream({write:function(e){return new a["default"]((function(t,n){u._destroyed?n():u.push(new o(e))?t():u._resumeFetch=t}))},close:function(){r.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void n.body.pipeTo(d)["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))}catch(g){}}var p=n.body.getReader();f()}else{u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(t[2])):void 0!==u.headers[n]?u.headers[n]+=", "+t[2]:u.headers[n]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!c.overrideMimeType){var m=u.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(u._charset=b[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};u(d,l.Readable),d.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},d.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==f.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(u){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(u){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==f.DONE||!t.response)break;n=t.response,e.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==f.LOADING||!n)break;e.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==f.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new o(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n);break}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.isEncoding||function(e){switch(e=""+e,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 i(e){if(!e)return"utf8";var t;while(1)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(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:return this.write=y,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,n){var r=t.length-1;if(r<n)return 0;var o=c(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=c(t[r]),o>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=c(t[r]),o>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function l(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function h(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function b(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=p,s.prototype.text=d,s.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}},{"safe-buffer":228}],236:[function(e,t,n){(function(t,r){var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o<n;o++)t[o]=e[o];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(e,t,n){"use strict";var r=e("punycode"),o=e("./util");function i(){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}n.parse=w,n.resolve=E,n.resolveObject=j,n.format=x,n.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),f=["'"].concat(l),d=["%","/","?",";","#"].concat(f),p=["/","?","#"],h=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=e("querystring");function w(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function x(e){return o.isString(e)&&(e=w(e)),e instanceof i?e.format():i.prototype.format.call(e)}function E(e,t){return w(e,!1,!0).resolve(t)}function j(e,t){return e?w(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s),l=/\\/g;u[0]=u[0].replace(l,"/"),e=u.join(s);var w=e;if(w=w.trim(),!n&&1===e.split("#").length){var x=c.exec(w);if(x)return this.path=w,this.href=w,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?_.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(w);if(E){E=E[0];var j=E.toLowerCase();this.protocol=j,w=w.substr(E.length)}if(n||E||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===w.substr(0,2);!S||E&&y[E]||(w=w.substr(2),this.slashes=!0)}if(!y[E]&&(S||E&&!v[E])){for(var T,O,k=-1,N=0;N<p.length;N++){var C=w.indexOf(p[N]);-1!==C&&(-1===k||C<k)&&(k=C)}O=-1===k?w.lastIndexOf("@"):w.lastIndexOf("@",k),-1!==O&&(T=w.slice(0,O),w=w.slice(O+1),this.auth=decodeURIComponent(T)),k=-1;for(N=0;N<d.length;N++){C=w.indexOf(d[N]);-1!==C&&(-1===k||C<k)&&(k=C)}-1===k&&(k=w.length),this.host=w.slice(0,k),w=w.slice(k),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var A=this.hostname.split(/\./),D=(N=0,A.length);N<D;N++){var M=A[N];if(M&&!M.match(m)){for(var P="",L=0,R=M.length;L<R;L++)M.charCodeAt(L)>127?P+="x":P+=M[L];if(!P.match(m)){var B=A.slice(0,N),F=A.slice(N+1),q=M.match(b);q&&(B.push(q[1]),F.unshift(q[2])),F.length&&(w="/"+F.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[j])for(N=0,D=f.length;N<D;N++){var X=f[N];if(-1!==w.indexOf(X)){var V=encodeURIComponent(X);V===X&&(V=escape(X)),w=w.split(X).join(V)}}var H=w.indexOf("#");-1!==H&&(this.hash=w.substr(H),w=w.slice(0,H));var W=w.indexOf("?");if(-1!==W?(this.search=w.substr(W),this.query=w.substr(W+1),t&&(this.query=_.parse(this.query)),w=w.slice(0,W)):t&&(this.search="",this.query={}),w&&(this.pathname=w),v[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var z=this.search||"";this.path=U+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=_.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),s=s.replace("#","%23"),t+i+n+s+r},i.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(n[l]=e[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||y[e.protocol])n.pathname=e.pathname;else{var h=(e.pathname||"").split("/");while(h.length&&!(e.host=h.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",b=n.search||"";n.path=m+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||g||n.host&&e.pathname,x=w,E=n.pathname&&n.pathname.split("/")||[],j=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===E[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(j){n.hostname=n.host=E.shift();var S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,k=0,N=E.length;N>=0;N--)T=E[N],"."===T?E.splice(N,1):".."===T?(E.splice(N,1),k++):k&&(E.splice(N,1),k--);if(!w&&!x)for(;k--;k)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var C=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(j){n.hostname=n.host=C?"":E.length?E.shift():"";S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return w=w||n.host&&E.length,w&&!C&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],240:[function(e,t,n){(function(e){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function o(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],241:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],242:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],243:[function(e,t,n){(function(t,r){var o=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n<i;c=r[++n])v(c)||!T(c)?a+=" "+c:a+=" "+s(c);return a},n.deprecate=function(e,o){if(j(r.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var i=!1;function a(){if(!i){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}return a};var i,a={};function s(e,t){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),j(r.showHidden)&&(r.showHidden=!1),j(r.depth)&&(r.depth=2),j(r.colors)&&(r.colors=!1),j(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,t,r){if(e.customInspect&&t&&N(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return x(o)||(o=f(e,o,r)),o}var i=d(e,t);if(i)return i;var a=Object.keys(t),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(t);if(0===a.length){if(N(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var u,y="",v=!1,_=["{","}"];if(g(t)&&(v=!0,_=["[","]"]),N(t)){var w=t.name?": "+t.name:"";y=" [Function"+w+"]"}return S(t)&&(y=" "+RegExp.prototype.toString.call(t)),O(t)&&(y=" "+Date.prototype.toUTCString.call(t)),k(t)&&(y=" "+p(t)),0!==a.length||v&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=v?h(e,t,r,s,a):a.map((function(n){return m(e,t,r,s,n,v)})),e.seen.pop(),b(u,y,_)):_[0]+y+_[1]}function d(e,t){if(j(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)P(t,String(a))?i.push(m(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(m(e,t,n,r,o,!0))})),i}function m(e,t,n,r,o,i){var a,s,c;if(c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),P(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(n)?f(e,c.value,null):f(e,c.value,n-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),j(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function g(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function v(e){return null===e}function _(e){return null==e}function w(e){return"number"===typeof e}function x(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function j(e){return void 0===e}function S(e){return T(e)&&"[object RegExp]"===I(e)}function T(e){return"object"===typeof e&&null!==e}function O(e){return T(e)&&"[object Date]"===I(e)}function k(e){return T(e)&&("[object Error]"===I(e)||e instanceof Error)}function N(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function I(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(j(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=g,n.isBoolean=y,n.isNull=v,n.isNullOrUndefined=_,n.isNumber=w,n.isString=x,n.isSymbol=E,n.isUndefined=j,n.isRegExp=S,n.isObject=T,n.isDate=O,n.isError=k,n.isFunction=N,n.isPrimitive=C,n.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",M(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,t,n){"use strict";(function(){n.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(void 0)},{}],245:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,c,u={}.hasOwnProperty;t=e("xmlbuilder"),r=e("./defaults").defaults,s=function(e){return"string"===typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},c=function(e){return"<![CDATA["+i(e)+"]]>"},i=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function e(e){var t,n,o;for(t in this.options={},n=r["0.2"],n)u.call(n,t)&&(o=n[t],this.options[t]=o);for(t in e)u.call(e,t)&&(o=e[t],this.options[t]=o)}return e.prototype.buildObject=function(e){var n,i,l,f,d;return n=this.options.attrkey,i=this.options.charkey,1===(0,a["default"])(e).length&&this.options.rootName===r["0.2"].rootName?(d=(0,a["default"])(e)[0],e=e[d]):d=this.options.rootName,l=function(e){return function(t,r){var a,f,d,p,h,m;if("object"!==("undefined"===typeof r?"undefined":(0,o["default"])(r)))e.options.cdata&&s(r)?t.raw(c(r)):t.txt(r);else if(Array.isArray(r)){for(p in r)if(u.call(r,p))for(h in f=r[p],f)d=f[h],t=l(t.ele(h),d).up()}else for(h in r)if(u.call(r,h))if(f=r[h],h===n){if("object"===("undefined"===typeof f?"undefined":(0,o["default"])(f)))for(a in f)m=f[a],t=t.att(a,m)}else if(h===i)t=e.options.cdata&&s(f)?t.raw(c(f)):t.txt(f);else if(Array.isArray(f))for(p in f)u.call(f,p)&&(d=f[p],t="string"===typeof d?e.options.cdata&&s(d)?t.ele(h).raw(c(d)).up():t.ele(h,d).up():l(t.ele(h),d).up());else"object"===("undefined"===typeof f?"undefined":(0,o["default"])(f))?t=l(t.ele(h),f).up():"string"===typeof f&&e.options.cdata&&s(f)?t=t.ele(h).raw(c(f)).up():(null==f&&(f=""),t=t.ele(h,f.toString()).up());return t}}(this),f=t.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(f,e).end(this.options.renderOpts)},e}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,t,n){"use strict";(function(){n.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/promise"),o=f(r),i=e("babel-runtime/core-js/object/get-own-property-names"),a=f(i),s=e("babel-runtime/core-js/object/keys"),c=f(s),u=e("babel-runtime/helpers/typeof"),l=f(u);function f(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,u,f,d,p,h=function(e,t){return function(){return e.apply(t,arguments)}},m=function(e,t){for(var n in t)b.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},b={}.hasOwnProperty;d=e("sax"),i=e("events"),t=e("./bom"),f=e("./processors"),p=e("timers").setImmediate,r=e("./defaults").defaults,s=function(e){return"object"===("undefined"===typeof e?"undefined":(0,l["default"])(e))&&null!=e&&0===(0,c["default"])(e).length},u=function(e,t,n){var r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r],t=i(t,n);return t},n.Parser=function(e){function i(e){var t,o,i;if(this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this),!(this instanceof n.Parser))return new n.Parser(e);for(t in this.options={},o=r["0.2"],o)b.call(o,t)&&(i=o[t],this.options[t]=i);for(t in e)b.call(e,t)&&(i=e[t],this.options[t]=i);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(f.normalize)),this.reset()}return m(i,e),i.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),p(this.processAsync))}catch(n){if(t=n,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(t)}},i.prototype.assignOrPush=function(e,t,n){return t in e?(e[t]instanceof Array||(e[t]=[e[t]]),e[t].push(n)):this.options.explicitArray?e[t]=[n]:e[t]=n},i.prototype.reset=function(){var e,t,n,r;return this.removeAllListeners(),this.saxParser=d.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(e){return function(t){if(e.saxParser.resume(),!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit("error",t)}}(this),this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit("end",e.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=function(n){return function(o){var i,a,s,c,l;if(s={},s[t]="",!n.options.ignoreAttrs)for(i in l=o.attributes,l)b.call(l,i)&&(e in s||n.options.mergeAttrs||(s[e]={}),a=n.options.attrValueProcessors?u(n.options.attrValueProcessors,o.attributes[i],i):o.attributes[i],c=n.options.attrNameProcessors?u(n.options.attrNameProcessors,i):i,n.options.mergeAttrs?n.assignOrPush(s,c,a):s[e][c]=a);return s["#name"]=n.options.tagNameProcessors?u(n.options.tagNameProcessors,o.name):o.name,n.options.xmlns&&(s[n.options.xmlnskey]={uri:o.uri,local:o.local}),r.push(s)}}(this),this.saxParser.onclosetag=function(e){return function(){var n,o,i,f,d,p,h,m,g,y;if(p=r.pop(),d=p["#name"],e.options.explicitChildren&&e.options.preserveChildrenOrder||delete p["#name"],!0===p.cdata&&(n=p.cdata,delete p.cdata),g=r[r.length-1],p[t].match(/^\s*$/)&&!n?(o=p[t],delete p[t]):(e.options.trim&&(p[t]=p[t].trim()),e.options.normalize&&(p[t]=p[t].replace(/\s{2,}/g," ").trim()),p[t]=e.options.valueProcessors?u(e.options.valueProcessors,p[t],d):p[t],1===(0,c["default"])(p).length&&t in p&&!e.EXPLICIT_CHARKEY&&(p=p[t])),s(p)&&(p=""!==e.options.emptyTag?e.options.emptyTag:o),null!=e.options.validator&&(y="/"+function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)f=r[e],n.push(f["#name"]);return n}().concat(d).join("/"),function(){var t;try{p=e.options.validator(y,g&&g[d],p)}catch(n){return t=n,e.emit("error",t)}}()),e.options.explicitChildren&&!e.options.mergeAttrs&&"object"===("undefined"===typeof p?"undefined":(0,l["default"])(p)))if(e.options.preserveChildrenOrder){if(g){for(i in g[e.options.childkey]=g[e.options.childkey]||[],h={},p)b.call(p,i)&&(h[i]=p[i]);g[e.options.childkey].push(h),delete p["#name"],1===(0,c["default"])(p).length&&t in p&&!e.EXPLICIT_CHARKEY&&(p=p[t])}}else f={},e.options.attrkey in p&&(f[e.options.attrkey]=p[e.options.attrkey],delete p[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in p&&(f[e.options.charkey]=p[e.options.charkey],delete p[e.options.charkey]),(0,a["default"])(p).length>0&&(f[e.options.childkey]=p),p=f;return r.length>0?e.assignOrPush(g,d,p):(e.options.explicitRoot&&(m=p,p={},p[d]=m),e.resultObject=p,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),n=function(e){return function(n){var o,i;if(i=r[r.length-1],i)return i[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(i[e.options.childkey]=i[e.options.childkey]||[],o={"#name":"__text__"},o[t]=n,e.options.normalize&&(o[t]=o[t].replace(/\s{2,}/g," ").trim()),i[e.options.childkey].push(o)),i}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(e){return function(e){var t;if(t=n(e),t)return t.cdata=!0}}()},i.prototype.parseString=function(e,n){var r;null!=n&&"function"===typeof n&&(this.on("end",(function(e){return this.reset(),n(null,e)})),this.on("error",(function(e){return this.reset(),n(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,p(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(o){if(r=o,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},i.prototype.parseStringPromise=function(e){return new o["default"](function(t){return function(n,r){return t.parseString(e,(function(e,t){return e?r(e):n(t)}))}}(this))},i}(i),n.parseString=function(e,t,r){var o,i,a;return null!=r?("function"===typeof r&&(o=r),"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(i=t)):("function"===typeof t&&(o=t),i={}),a=new n.Parser(i),a.parseString(e,o)},n.parseStringPromise=function(e,t){var r,o;return"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(r=t),o=new n.Parser(r),o.parseStringPromise(e)}}).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,t,n){"use strict";(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(e){return e.toLowerCase()},n.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},n.stripPrefix=function(t){return t.replace(e,"")},n.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},n.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(void 0)},{}],249:[function(e,t,n){"use strict";(function(){var t,r,o,i,a=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./defaults"),t=e("./builder"),o=e("./parser"),i=e("./processors"),n.defaults=r.defaults,n.processors=i,n.ValidationError=function(e){function t(e){this.message=e}return a(t,e),t}(Error),n.Builder=t.Builder,n.Parser=o.Parser,n.parseString=o.parseString,n.parseStringPromise=o.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,t,n){"use strict";(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,t,n){"use strict";(function(){t.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,t,n){"use strict";var r=e("babel-runtime/core-js/object/get-prototype-of"),o=u(r),i=e("babel-runtime/helpers/typeof"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}(function(){var e,n,r,i,s,u,l,f=[].slice,d={}.hasOwnProperty;e=function(){var e,t,n,r,o,i;if(i=arguments[0],o=2<=arguments.length?f.call(arguments,1):[],s(c["default"]))c["default"].apply(null,arguments);else for(e=0,n=o.length;e<n;e++)if(r=o[e],null!=r)for(t in r)d.call(r,t)&&(i[t]=r[t]);return i},s=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},u=function(e){var t;return!!e&&("function"===(t="undefined"===typeof e?"undefined":(0,a["default"])(e))||"object"===t)},r=function(e){return s(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(d.call(e,t))return!1;return!0},l=function(e){var t,n;return u(e)&&(n=(0,o["default"])(e))&&(t=n.constructor)&&"function"===typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return s(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=s,t.exports.isObject=u,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=l,t.exports.getValue=n}).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,t,n){"use strict";(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n;n=e("./NodeType"),e("./XMLNode"),t.exports=function(){function e(e,t,r){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));this.name=this.stringify.name(t),this.value=this.stringify.attValue(r),this.type=n.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return(0,o["default"])(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return e=e||this.name,null==e?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=n.CData,this.value=this.stringify.cdata(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(n)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=n.Comment,this.value=this.stringify.comment(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/object/create"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r;n=e("./XMLDOMErrorHandler"),r=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,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=(0,a["default"])(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new r((0,o["default"])(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(void 0)},{}],260:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{}],261:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(void 0)},{}],262:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o,i,a,s){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==o)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(s&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=n.AttributeDeclaration,this.attributeName=this.stringify.name(o),this.attributeType=this.stringify.dtdAttType(i),s&&(this.defaultValue=this.stringify.dtdAttDefault(s)),this.defaultValueType=a}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.name(r),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(o)}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(null==a)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=n.EntityDeclaration,o(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}else this.value=this.stringify.dtdEntityValue(a),this.internal=!0}return i(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD notation name. "+this.debugInfo(r));if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(r));this.name=this.stringify.name(r),this.type=n.NotationDeclaration,null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return o(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){var s;t.__super__.constructor.call(this,e),o(r)&&(s=r,r=s.version,i=s.encoding,a=s.standalone),r||(r="1.0"),this.type=n.Declaration,this.version=this.stringify.xmlVersion(r),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l=function(e,t){for(var n in t)f.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;u=e("./Utility").isObject,c=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),o=e("./XMLDTDElement"),a=e("./XMLDTDNotation"),s=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c,l,f;if(t.__super__.constructor.call(this,e),this.type=n.DocType,e.children)for(c=e.children,a=0,s=c.length;a<s;a++)if(i=c[a],i.type===n.Element){this.name=i.name;break}this.documentObject=e,u(r)&&(l=r,r=l.pubID,o=l.sysID),null==o&&(f=[r,o],o=f[0],r=f[1]),null!=r&&(this.pubID=this.stringify.dtdPubID(r)),null!=o&&(this.sysID=this.stringify.dtdSysID(o))}return l(t,e),Object.defineProperty(t.prototype,"entities",{get:function(){var e,t,r,o,i;for(o={},i=this.children,t=0,r=i.length;t<r;t++)e=i[t],e.type!==n.EntityDeclaration||e.pe||(o[e.name]=e);return new s(o)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var e,t,r,o,i;for(o={},i=this.children,t=0,r=i.length;t<r;t++)e=i[t],e.type===n.NotationDeclaration&&(o[e.name]=e);return new s(o)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(e,t){var n;return n=new o(this,e,t),this.children.push(n),this},t.prototype.attList=function(e,t,n,o,i){var a;return a=new r(this,e,t,n,o,i),this.children.push(a),this},t.prototype.entity=function(e,t){var n;return n=new i(this,!1,e,t),this.children.push(n),this},t.prototype.pEntity=function(e,t){var n;return n=new i(this,!0,e,t),this.children.push(n),this},t.prototype.notation=function(e,t){var n;return n=new a(this,e,t),this.children.push(n),this},t.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))},t.prototype.ele=function(e,t){return this.element(e,t)},t.prototype.att=function(e,t,n,r,o){return this.attList(e,t,n,r,o)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&(e.name===this.name&&(e.publicId===this.publicId&&e.systemId===this.systemId))},t}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u=function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty;c=e("./Utility").isPlainObject,o=e("./XMLDOMImplementation"),r=e("./XMLDOMConfiguration"),i=e("./XMLNode"),n=e("./NodeType"),s=e("./XMLStringifier"),a=e("./XMLStringWriter"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="#document",this.type=n.Document,this.documentURI=null,this.domConfig=new r,e||(e={}),e.writer||(e.writer=new a),this.options=e,this.stringify=new s(e)}return u(t,e),Object.defineProperty(t.prototype,"implementation",{value:new o}),Object.defineProperty(t.prototype,"doctype",{get:function(){var e,t,r,o;for(o=this.children,t=0,r=o.length;t<r;t++)if(e=o[t],e.type===n.DocType)return e;return null}}),Object.defineProperty(t.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration?this.children[0].encoding:null}}),Object.defineProperty(t.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(t.prototype,"origin",{get:function(){return null}}),Object.defineProperty(t.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(t.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(t.prototype,"contentType",{get:function(){return null}}),t.prototype.end=function(e){var t;return t={},e?c(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},t.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},t.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.renameNode=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createNodeIterator=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTreeWalker=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(i)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f,d,p,h,m,b,g,y,v,_,w,x,E,j,S={}.hasOwnProperty;j=e("./Utility"),x=j.isObject,w=j.isFunction,E=j.isPlainObject,_=j.getValue,n=e("./NodeType"),p=e("./XMLDocument"),h=e("./XMLElement"),i=e("./XMLCData"),a=e("./XMLComment"),b=e("./XMLRaw"),v=e("./XMLText"),m=e("./XMLProcessingInstruction"),f=e("./XMLDeclaration"),d=e("./XMLDocType"),s=e("./XMLDTDAttList"),u=e("./XMLDTDEntity"),c=e("./XMLDTDElement"),l=e("./XMLDTDNotation"),o=e("./XMLAttribute"),y=e("./XMLStringifier"),g=e("./XMLStringWriter"),r=e("./WriterState"),t.exports=function(){function e(e,t,r){var o;this.name="?xml",this.type=n.Document,e||(e={}),o={},e.writer?E(e.writer)&&(o=e.writer,e.writer=new g):e.writer=new g,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(o),this.stringify=new y(e),this.onDataCallback=t||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(e){var t,r,o,i,a,s,c,u;switch(e.type){case n.CData:this.cdata(e.value);break;case n.Comment:this.comment(e.value);break;case n.Element:for(r in o={},c=e.attribs,c)S.call(c,r)&&(t=c[r],o[r]=t.value);this.node(e.name,o);break;case n.Dummy:this.dummy();break;case n.Raw:this.raw(e.value);break;case n.Text:this.text(e.value);break;case n.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(u=e.children,a=0,s=u.length;a<s;a++)i=u[a],this.createChildNode(i),i.type===n.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(e,t,n){var r;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=_(e),null==t&&(t={}),t=_(t),x(t)||(r=[t,n],n=r[0],t=r[1]),this.currentNode=new h(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},e.prototype.element=function(e,t,r){var o,i,a,s,c,u;if(this.currentNode&&this.currentNode.type===n.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(e)||x(e)||w(e))for(s=this.options.noValidation,this.options.noValidation=!0,u=new p(this.options).element("TEMP_ROOT"),u.element(e),this.options.noValidation=s,c=u.children,i=0,a=c.length;i<a;i++)o=c[i],this.createChildNode(o),o.type===n.Element&&this.up();else this.node(e,t,r);return this},e.prototype.attribute=function(e,t){var n,r;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=_(e)),x(e))for(n in e)S.call(e,n)&&(r=e[n],this.attribute(n,r));else w(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.currentNode.attribs[e]=new o(this,e,""):null!=t&&(this.currentNode.attribs[e]=new o(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new a(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new b(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var n,r,o,i,a;if(this.openCurrent(),null!=e&&(e=_(e)),null!=t&&(t=_(t)),Array.isArray(e))for(n=0,i=e.length;n<i;n++)r=e[n],this.instruction(r);else if(x(e))for(r in e)S.call(e,r)&&(o=e[r],this.instruction(r,o));else w(t)&&(t=t.apply()),a=new m(this,e,t),this.onData(this.writer.processingInstruction(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return r=new f(this,e,t,n),this.onData(this.writer.declaration(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new c(this,e,t),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,n,r,o){var i;return this.openCurrent(),i=new s(this,e,t,n,r,o),this.onData(this.writer.dtdAttList(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new u(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new u(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new l(this,e,t),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.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},e.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,o,i,a;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==n.Element||(this.root=e),o="",e.type===n.Element){for(i in this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,a=e.attribs,a)S.call(a,i)&&(t=a[i],o+=this.writer.attribute(t,this.writerOptions,this.currentLevel));o+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?o+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(o+=' SYSTEM "'+e.sysID+'"'),e.children?(o+=" [",this.writerOptions.state=r.InsideTag):(this.writerOptions.state=r.CloseTag,o+=">"),o+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(o,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=r.CloseTag,t=e.type===n.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).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,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=n.Dummy}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return""},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i,a,s,c,u,l,f=function(e,t){for(var n in t)d.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;l=e("./Utility"),u=l.isObject,c=l.isFunction,s=l.getValue,a=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c;if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=n.Element,this.attribs={},this.schemaTypeInfo=null,null!=o&&this.attribute(o),e.type===n.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(c=e.children,a=0,s=c.length;a<s;a++)if(i=c[a],i.type===n.DocType){i.name=this.name;break}}return f(t,e),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 i(this.attribs)),this.attributeMap}}),t.prototype.clone=function(){var e,t,n,r;for(t in n=(0,o["default"])(this),n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs,r)d.call(r,t)&&(e=r[t],n.attribs[t]=e.clone());return n.children=[],this.children.forEach((function(e){var t;return t=e.clone(),t.parent=n,n.children.push(t)})),n},t.prototype.attribute=function(e,t){var n,o;if(null!=e&&(e=s(e)),u(e))for(n in e)d.call(e,n)&&(o=e[n],this.attribute(n,o));else c(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.attribs[e]=new r(this,e,""):null!=t&&(this.attribs[e]=new r(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,n,r;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=s(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attribs[t];else delete this.attribs[e];return this},t.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},t.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},t.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNS=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNodeNS=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},t.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},t.prototype.setIdAttributeNS=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttributeNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var n,r,o;if(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e))return!1;if(e.namespaceURI!==this.namespaceURI)return!1;if(e.prefix!==this.prefix)return!1;if(e.localName!==this.localName)return!1;if(e.attribs.length!==this.attribs.length)return!1;for(n=r=0,o=this.attribs.length-1;0<=o?r<=o:r>=o;n=0<=o?++r:--r)if(!this.attribs[n].isEqualNode(e.attribs[n]))return!1;return!0},t}(a)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return(0,o["default"])(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[(0,o["default"])(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f,d,p,h,m,b,g,y,v={}.hasOwnProperty;y=e("./Utility"),g=y.isObject,b=y.isFunction,m=y.isEmpty,h=y.getValue,u=null,o=null,i=null,a=null,s=null,d=null,p=null,f=null,c=null,r=null,l=null,n=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=e("./XMLElement"),o=e("./XMLCData"),i=e("./XMLComment"),a=e("./XMLDeclaration"),s=e("./XMLDocType"),d=e("./XMLRaw"),p=e("./XMLText"),f=e("./XMLProcessingInstruction"),c=e("./XMLDummy"),r=e("./NodeType"),l=e("./XMLNodeList"),e("./XMLNamedNodeMap"),n=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,n,o,i;if(this.nodeType===r.Element||this.nodeType===r.DocumentFragment){for(i="",o=this.children,t=0,n=o.length;t<n;t++)e=o[t],e.textContent&&(i+=e.textContent);return i}return null},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.setParent=function(e){var t,n,r,o,i;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),o=this.children,i=[],n=0,r=o.length;n<r;n++)t=o[n],i.push(t.setParent(this));return i},t.prototype.element=function(e,t,n){var r,o,i,a,s,c,u,l,f,d,p;if(c=null,null===t&&null==n&&(f=[{},null],t=f[0],n=f[1]),null==t&&(t={}),t=h(t),g(t)||(d=[t,n],n=d[0],t=d[1]),null!=e&&(e=h(e)),Array.isArray(e))for(i=0,u=e.length;i<u;i++)o=e[i],c=this.element(o);else if(b(e))c=this.element(e.apply());else if(g(e)){for(s in e)if(v.call(e,s))if(p=e[s],b(p)&&(p=p.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),p);else if(!this.options.separateArrayItems&&Array.isArray(p)&&m(p))c=this.dummy();else if(g(p)&&m(p))c=this.element(s);else if(this.options.keepNullNodes||null!=p)if(!this.options.separateArrayItems&&Array.isArray(p))for(a=0,l=p.length;a<l;a++)o=p[a],r={},r[s]=o,c=this.element(r);else g(p)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===s.indexOf(this.stringify.convertTextKey)?c=this.element(p):(c=this.element(s),c.element(p)):c=this.element(s,p);else c=this.dummy()}else c=this.options.keepNullNodes||null!==n?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n):this.dummy();if(null==c)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return c},t.prototype.insertBefore=function(e,t,n){var r,o,i,a,s;if(null!=e?e.type:void 0)return i=e,a=t,i.setParent(this),a?(o=children.indexOf(a),s=children.splice(o),children.push(i),Array.prototype.push.apply(children,s)):children.push(i),i;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return o=this.parent.children.indexOf(this),s=this.parent.children.splice(o),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r},t.prototype.insertAfter=function(e,t,n){var r,o,i;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return o=this.parent.children.indexOf(this),i=this.parent.children.splice(o+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,i),r},t.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},t.prototype.node=function(e,t,n){var r,o;return null!=e&&(e=h(e)),t||(t={}),t=h(t),g(t)||(o=[t,n],n=o[0],t=o[1]),r=new u(this,e,t),null!=n&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t;return g(e)&&this.element(e),t=new p(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new o(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new i(this,e),this.children.push(t),this},t.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.raw=function(e){var t;return t=new d(this,e),this.children.push(t),this},t.prototype.dummy=function(){var e;return e=new c(this),e},t.prototype.instruction=function(e,t){var n,r,o,i,a;if(null!=e&&(e=h(e)),null!=t&&(t=h(t)),Array.isArray(e))for(i=0,a=e.length;i<a;i++)n=e[i],this.instruction(n);else if(g(e))for(n in e)v.call(e,n)&&(r=e[n],this.instruction(n,r));else b(t)&&(t=t.apply()),o=new f(this,e,t),this.children.push(o);return this},t.prototype.instructionBefore=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.instructionAfter=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.declaration=function(e,t,n){var o,i;return o=this.document(),i=new a(o,e,t,n),0===o.children.length?o.children.unshift(i):o.children[0].type===r.Declaration?o.children[0]=i:o.children.unshift(i),o.root()||o},t.prototype.dtd=function(e,t){var n,o,i,a,c,u,l,f,d,p;for(o=this.document(),i=new s(o,e,t),d=o.children,a=c=0,l=d.length;c<l;a=++c)if(n=d[a],n.type===r.DocType)return o.children[a]=i,i;for(p=o.children,a=u=0,f=p.length;u<f;a=++u)if(n=p[a],n.isRoot)return o.children.splice(a,0,i),i;return o.children.push(i),i},t.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},t.prototype.root=function(){var e;e=this;while(e){if(e.type===r.Document)return e.rootObject;if(e.isRoot)return e;e=e.parent}},t.prototype.document=function(){var e;e=this;while(e){if(e.type===r.Document)return e;e=e.parent}},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e;if(e=this.parent.children.indexOf(this),e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){var e;if(e=this.parent.children.indexOf(this),-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){var t,n;return e=e||this.name,null!=e||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,r;return t=this,t===e?0:this.document()!==e.document()?(r=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?r|=n.Preceding:r|=n.Following,r):t.isAncestor(e)?n.Contains|n.Preceding:t.isDescendant(e)?n.Contains|n.Following:t.isPreceding(e)?n.Preceding:n.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,n,r;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,n,r,o,i;for(i=this.children,r=0,o=i.length;r<o;r++){if(t=i[r],e===t)return!0;if(n=t.isDescendant(e),n)return!0}return!1},t.prototype.isAncestor=function(e){return e.isDescendant(this)},t.prototype.isPreceding=function(e){var t,n;return t=this.treePosition(e),n=this.treePosition(this),-1!==t&&-1!==n&&t<n},t.prototype.isFollowing=function(e){var t,n;return t=this.treePosition(e),n=this.treePosition(this),-1!==t&&-1!==n&&t>n},t.prototype.treePosition=function(e){var t,n;return n=0,t=!1,this.foreachTreeNode(this.document(),(function(r){if(n++,!t&&r===e)return t=!0})),t?n:-1},t.prototype.foreachTreeNode=function(e,t){var n,r,o,i,a;for(e||(e=this.document()),i=e.children,r=0,o=i.length;r<o;r++){if(n=i[r],a=t(n))return a;if(a=this.foreachTreeNode(n,t),a)return a}},t}()}).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,t,n){"use strict";(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e}()}).call(void 0)},{}],275:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing instruction target. "+this.debugInfo());this.type=n.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,o&&(this.value=this.stringify.insValue(o))}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.target===this.target},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLNode"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing raw text. "+this.debugInfo());this.type=n.Raw,this.value=this.stringify.raw(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),o=e("./XMLWriterBase"),r=e("./WriterState"),t.exports=function(e){function t(e,n){this.stream=e,t.__super__.constructor.call(this,n)}return i(t,e),t.prototype.endline=function(e,n,o){return e.isLastRootNode&&n.state===r.CloseTag?"":t.__super__.endline.call(this,e,n,o)},t.prototype.document=function(e,t){var n,r,o,i,a,s,c,u,l;for(c=e.children,r=o=0,a=c.length;o<a;r=++o)n=c[r],n.isLastRootNode=r===e.children.length-1;for(t=this.filterOptions(t),u=e.children,l=[],i=0,s=u.length;i<s;i++)n=u[i],l.push(this.writeChildNode(n,t,0));return l},t.prototype.attribute=function(e,n,r){return this.stream.write(t.__super__.attribute.call(this,e,n,r))},t.prototype.cdata=function(e,n,r){return this.stream.write(t.__super__.cdata.call(this,e,n,r))},t.prototype.comment=function(e,n,r){return this.stream.write(t.__super__.comment.call(this,e,n,r))},t.prototype.declaration=function(e,n,r){return this.stream.write(t.__super__.declaration.call(this,e,n,r))},t.prototype.docType=function(e,t,n){var o,i,a,s;if(n||(n=0),this.openNode(e,t,n),t.state=r.OpenTag,this.stream.write(this.indent(e,t,n)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,n)),t.state=r.InsideTag,s=e.children,i=0,a=s.length;i<a;i++)o=s[i],this.writeChildNode(o,t,n+1);t.state=r.CloseTag,this.stream.write("]")}return t.state=r.CloseTag,this.stream.write(t.spaceBeforeSlash+">"),this.stream.write(this.endline(e,t,n)),t.state=r.None,this.closeNode(e,t,n)},t.prototype.element=function(e,t,o){var i,s,c,u,l,f,d,p,h;for(d in o||(o=0),this.openNode(e,t,o),t.state=r.OpenTag,this.stream.write(this.indent(e,t,o)+"<"+e.name),p=e.attribs,p)a.call(p,d)&&(i=p[d],this.attribute(i,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=r.CloseTag,this.stream.write("</"+e.name+">")):(t.state=r.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){for(this.stream.write(">"+this.endline(e,t,o)),t.state=r.InsideTag,h=e.children,l=0,f=h.length;l<f;l++)s=h[l],this.writeChildNode(s,t,o+1);t.state=r.CloseTag,this.stream.write(this.indent(e,t,o)+"</"+e.name+">")}else this.stream.write(">"),t.state=r.InsideTag,t.suppressPrettyCount++,!0,this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,!1,t.state=r.CloseTag,this.stream.write("</"+e.name+">");return this.stream.write(this.endline(e,t,o)),t.state=r.None,this.closeNode(e,t,o)},t.prototype.processingInstruction=function(e,n,r){return this.stream.write(t.__super__.processingInstruction.call(this,e,n,r))},t.prototype.raw=function(e,n,r){return this.stream.write(t.__super__.raw.call(this,e,n,r))},t.prototype.text=function(e,n,r){return this.stream.write(t.__super__.text.call(this,e,n,r))},t.prototype.dtdAttList=function(e,n,r){return this.stream.write(t.__super__.dtdAttList.call(this,e,n,r))},t.prototype.dtdElement=function(e,n,r){return this.stream.write(t.__super__.dtdElement.call(this,e,n,r))},t.prototype.dtdEntity=function(e,n,r){return this.stream.write(t.__super__.dtdEntity.call(this,e,n,r))},t.prototype.dtdNotation=function(e,n,r){return this.stream.write(t.__super__.dtdNotation.call(this,e,n,r))},t}(o)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return r(t,e),t.prototype.document=function(e,t){var n,r,o,i,a;for(t=this.filterOptions(t),i="",a=e.children,r=0,o=a.length;r<o;r++)n=a[r],i+=this.writeChildNode(n,t,0);return t.pretty&&i.slice(-t.newline.length)===t.newline&&(i=i.slice(0,-t.newline.length)),i},t}(n)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(e,t,n){"use strict";(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,o,i;for(r in this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.options=t,this.options.version||(this.options.version="1.0"),o=t.stringify||{},o)n.call(o,r)&&(i=o[r],this[r]=i)}return t.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},t.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},t.prototype.cdata=function(e){return this.options.noValidation?e:(e=""+e||"",e=e.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,n;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+n.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+n.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([: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])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},t}()}).call(void 0)},{}],280:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=n.Text,this.value=this.stringify.text(r)}return i(t,e),Object.defineProperty(t.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"wholeText",{get:function(){var e,t,n;n="",t=this.previousSibling;while(t)n=t.data+n,t=t.previousSibling;n+=this.data,e=this.nextSibling;while(e)n+=e.data,e=e.nextSibling;return n}}),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},t.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(e,t,n){"use strict";(function(){var n,r,o,i={}.hasOwnProperty;o=e("./Utility").assign,n=e("./NodeType"),e("./XMLDeclaration"),e("./XMLDocType"),e("./XMLCData"),e("./XMLComment"),e("./XMLElement"),e("./XMLRaw"),e("./XMLText"),e("./XMLProcessingInstruction"),e("./XMLDummy"),e("./XMLDTDAttList"),e("./XMLDTDElement"),e("./XMLDTDEntity"),e("./XMLDTDNotation"),r=e("./WriterState"),t.exports=function(){function e(e){var t,n,r;for(t in e||(e={}),this.options=e,n=e.writer||{},n)i.call(n,t)&&(r=n[t],this["_"+t]=this[t],this[t]=r)}return e.prototype.filterOptions=function(e){var t,n,i,a,s,c,u,l;return e||(e={}),e=o({},this.options,e),t={writer:this},t.pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=null!=(n=e.indent)?n:" ",t.newline=null!=(i=e.newline)?i:"\n",t.offset=null!=(a=e.offset)?a:0,t.dontPrettyTextNodes=null!=(s=null!=(c=e.dontPrettyTextNodes)?c:e.dontprettytextnodes)?s:0,t.spaceBeforeSlash=null!=(u=null!=(l=e.spaceBeforeSlash)?l:e.spacebeforeslash)?u:"",!0===t.spaceBeforeSlash&&(t.spaceBeforeSlash=" "),t.suppressPrettyCount=0,t.user={},t.state=r.None,t},e.prototype.indent=function(e,t,n){var r;return!t.pretty||t.suppressPrettyCount?"":t.pretty&&(r=(n||0)+t.offset+1,r>0)?new Array(r).join(t.indent):""},e.prototype.endline=function(e,t,n){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,n){var r;return this.openAttribute(e,t,n),r=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,n),r},e.prototype.cdata=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<![CDATA[",t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+="]]>"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.comment=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"\x3c!-- ",t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=" --\x3e"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.declaration=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<?xml",t.state=r.InsideTag,o+=' version="'+e.version+'"',null!=e.encoding&&(o+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(o+=' standalone="'+e.standalone+'"'),t.state=r.CloseTag,o+=t.spaceBeforeSlash+"?>",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.docType=function(e,t,n){var o,i,a,s,c;if(n||(n=0),this.openNode(e,t,n),t.state=r.OpenTag,s=this.indent(e,t,n),s+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(s+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(s+=" [",s+=this.endline(e,t,n),t.state=r.InsideTag,c=e.children,i=0,a=c.length;i<a;i++)o=c[i],s+=this.writeChildNode(o,t,n+1);t.state=r.CloseTag,s+="]"}return t.state=r.CloseTag,s+=t.spaceBeforeSlash+">",s+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),s},e.prototype.element=function(e,t,o){var a,s,c,u,l,f,d,p,h,m,b,g,y,v;for(h in o||(o=0),m=!1,b="",this.openNode(e,t,o),t.state=r.OpenTag,b+=this.indent(e,t,o)+"<"+e.name,g=e.attribs,g)i.call(g,h)&&(a=g[h],b+=this.attribute(a,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(b+=">",t.state=r.CloseTag,b+="</"+e.name+">"+this.endline(e,t,o)):(t.state=r.CloseTag,b+=t.spaceBeforeSlash+"/>"+this.endline(e,t,o));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){if(t.dontPrettyTextNodes)for(y=e.children,l=0,d=y.length;l<d;l++)if(s=y[l],(s.type===n.Text||s.type===n.Raw)&&null!=s.value){t.suppressPrettyCount++,m=!0;break}for(b+=">"+this.endline(e,t,o),t.state=r.InsideTag,v=e.children,f=0,p=v.length;f<p;f++)s=v[f],b+=this.writeChildNode(s,t,o+1);t.state=r.CloseTag,b+=this.indent(e,t,o)+"</"+e.name+">",m&&t.suppressPrettyCount--,b+=this.endline(e,t,o),t.state=r.None}else b+=">",t.state=r.InsideTag,t.suppressPrettyCount++,m=!0,b+=this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,m=!1,t.state=r.CloseTag,b+="</"+e.name+">"+this.endline(e,t,o);return this.closeNode(e,t,o),b},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case n.CData:return this.cdata(e,t,r);case n.Comment:return this.comment(e,t,r);case n.Element:return this.element(e,t,r);case n.Raw:return this.raw(e,t,r);case n.Text:return this.text(e,t,r);case n.ProcessingInstruction:return this.processingInstruction(e,t,r);case n.Dummy:return"";case n.Declaration:return this.declaration(e,t,r);case n.DocType:return this.docType(e,t,r);case n.AttributeDeclaration:return this.dtdAttList(e,t,r);case n.ElementDeclaration:return this.dtdElement(e,t,r);case n.EntityDeclaration:return this.dtdEntity(e,t,r);case n.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<?",t.state=r.InsideTag,o+=e.target,e.value&&(o+=" "+e.value),t.state=r.CloseTag,o+=t.spaceBeforeSlash+"?>",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.raw=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.text=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdAttList=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<!ATTLIST",t.state=r.InsideTag,o+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(o+=" "+e.defaultValueType),e.defaultValue&&(o+=' "'+e.defaultValue+'"'),t.state=r.CloseTag,o+=t.spaceBeforeSlash+">"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdElement=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<!ELEMENT",t.state=r.InsideTag,o+=" "+e.name+" "+e.value,t.state=r.CloseTag,o+=t.spaceBeforeSlash+">"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdEntity=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<!ENTITY",t.state=r.InsideTag,e.pe&&(o+=" %"),o+=" "+e.name,e.value?o+=' "'+e.value+'"':(e.pubID&&e.sysID?o+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(o+=' SYSTEM "'+e.sysID+'"'),e.nData&&(o+=" NDATA "+e.nData)),t.state=r.CloseTag,o+=t.spaceBeforeSlash+">"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdNotation=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"<!NOTATION",t.state=r.InsideTag,o+=" "+e.name,e.pubID&&e.sysID?o+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?o+=' PUBLIC "'+e.pubID+'"':e.sysID&&(o+=' SYSTEM "'+e.sysID+'"'),t.state=r.CloseTag,o+=t.spaceBeforeSlash+">"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.openNode=function(e,t,n){},e.prototype.closeNode=function(e,t,n){},e.prototype.openAttribute=function(e,t,n){},e.prototype.closeAttribute=function(e,t,n){},e}()}).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,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f;f=e("./Utility"),u=f.assign,l=f.isFunction,o=e("./XMLDOMImplementation"),i=e("./XMLDocument"),a=e("./XMLDocumentCB"),c=e("./XMLStringWriter"),s=e("./XMLStreamWriter"),n=e("./NodeType"),r=e("./WriterState"),t.exports.create=function(e,t,n,r){var o,a;if(null==e)throw new Error("Root element needs a name.");return r=u({},t,n,r),o=new i(r),a=o.element(e),r.headless||(o.declaration(r),null==r.pubID&&null==r.sysID||o.dtd(r)),a},t.exports.begin=function(e,t,n){var r;return l(e)&&(r=[e,t],t=r[0],n=r[1],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new c(e)},t.exports.streamWriter=function(e,t){return new s(e,t)},t.exports.implementation=new o,t.exports.nodeType=n,t.exports.writerState=r}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,t,n){t.exports=o;var r=Object.prototype.hasOwnProperty;function o(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var o in n)r.call(n,o)&&(e[o]=n[o])}return e}},{}],284:[function(e,t,n){"use strict";var r=e("buffer").Buffer,o=e("./sha"),i=e("./md5"),a={sha1:o,md5:i},s=64,c=r.alloc(s);function u(e,t,n){r.isBuffer(t)||(t=r.from(t)),r.isBuffer(n)||(n=r.from(n)),t.length>s?t=e(t):t.length<s&&(t=r.concat([t,c],s));for(var o=r.alloc(s),i=r.alloc(s),a=0;a<s;a++)o[a]=54^t[a],i[a]=92^t[a];var u=e(r.concat([o,n]));return e(r.concat([i,u]))}function l(e,t){e=e||"sha1";var n=a[e],o=[];return n||f("algorithm:",e,"is not yet supported"),{update:function(e){return r.isBuffer(e)||(e=r.from(e)),o.push(e),e.length,this},digest:function(e){var i=r.concat(o),a=t?u(n,t,i):n(i);return o=null,e?a.toString(e):a}}}function f(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}c.fill(0),n.createHash=function(e){return l(e)},n.createHmac=function(e,t){return l(e,t)},n.createCredentials=function(){f("sorry,createCredentials is not implemented yet")},n.createCipher=function(){f("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){f("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){f("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){f("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){f("sorry,createSign is not implemented yet")},n.createVerify=function(){f("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){f("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){f("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(e,t,n){"use strict";var r=e("buffer").Buffer,o=4,i=r.alloc(o);i.fill(0);var a=8;function s(e,t){if(e.length%o!==0){var n=e.length+(o-e.length%o);e=r.concat([e,i],n)}for(var a=[],s=t?e.readInt32BE:e.readInt32LE,c=0;c<e.length;c+=o)a.push(s.call(e,c));return a}function c(e,t,n){for(var o=r.alloc(t),i=n?o.writeInt32BE:o.writeInt32LE,a=0;a<e.length;a++)i.call(o,e[a],4*a,!0);return o}function u(e,t,n,o){r.isBuffer(e)||(e=r.from(e));var i=t(s(e,o),e.length*a);return c(i,n,o)}t.exports={hash:u}},{buffer:73}],286:[function(e,t,n){"use strict";var r=e("./helpers");function o(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,f=0;f<e.length;f+=16){var d=n,p=r,h=o,m=i;n=a(n,r,o,i,e[f+0],7,-680876936),i=a(i,n,r,o,e[f+1],12,-389564586),o=a(o,i,n,r,e[f+2],17,606105819),r=a(r,o,i,n,e[f+3],22,-1044525330),n=a(n,r,o,i,e[f+4],7,-176418897),i=a(i,n,r,o,e[f+5],12,1200080426),o=a(o,i,n,r,e[f+6],17,-1473231341),r=a(r,o,i,n,e[f+7],22,-45705983),n=a(n,r,o,i,e[f+8],7,1770035416),i=a(i,n,r,o,e[f+9],12,-1958414417),o=a(o,i,n,r,e[f+10],17,-42063),r=a(r,o,i,n,e[f+11],22,-1990404162),n=a(n,r,o,i,e[f+12],7,1804603682),i=a(i,n,r,o,e[f+13],12,-40341101),o=a(o,i,n,r,e[f+14],17,-1502002290),r=a(r,o,i,n,e[f+15],22,1236535329),n=s(n,r,o,i,e[f+1],5,-165796510),i=s(i,n,r,o,e[f+6],9,-1069501632),o=s(o,i,n,r,e[f+11],14,643717713),r=s(r,o,i,n,e[f+0],20,-373897302),n=s(n,r,o,i,e[f+5],5,-701558691),i=s(i,n,r,o,e[f+10],9,38016083),o=s(o,i,n,r,e[f+15],14,-660478335),r=s(r,o,i,n,e[f+4],20,-405537848),n=s(n,r,o,i,e[f+9],5,568446438),i=s(i,n,r,o,e[f+14],9,-1019803690),o=s(o,i,n,r,e[f+3],14,-187363961),r=s(r,o,i,n,e[f+8],20,1163531501),n=s(n,r,o,i,e[f+13],5,-1444681467),i=s(i,n,r,o,e[f+2],9,-51403784),o=s(o,i,n,r,e[f+7],14,1735328473),r=s(r,o,i,n,e[f+12],20,-1926607734),n=c(n,r,o,i,e[f+5],4,-378558),i=c(i,n,r,o,e[f+8],11,-2022574463),o=c(o,i,n,r,e[f+11],16,1839030562),r=c(r,o,i,n,e[f+14],23,-35309556),n=c(n,r,o,i,e[f+1],4,-1530992060),i=c(i,n,r,o,e[f+4],11,1272893353),o=c(o,i,n,r,e[f+7],16,-155497632),r=c(r,o,i,n,e[f+10],23,-1094730640),n=c(n,r,o,i,e[f+13],4,681279174),i=c(i,n,r,o,e[f+0],11,-358537222),o=c(o,i,n,r,e[f+3],16,-722521979),r=c(r,o,i,n,e[f+6],23,76029189),n=c(n,r,o,i,e[f+9],4,-640364487),i=c(i,n,r,o,e[f+12],11,-421815835),o=c(o,i,n,r,e[f+15],16,530742520),r=c(r,o,i,n,e[f+2],23,-995338651),n=u(n,r,o,i,e[f+0],6,-198630844),i=u(i,n,r,o,e[f+7],10,1126891415),o=u(o,i,n,r,e[f+14],15,-1416354905),r=u(r,o,i,n,e[f+5],21,-57434055),n=u(n,r,o,i,e[f+12],6,1700485571),i=u(i,n,r,o,e[f+3],10,-1894986606),o=u(o,i,n,r,e[f+10],15,-1051523),r=u(r,o,i,n,e[f+1],21,-2054922799),n=u(n,r,o,i,e[f+8],6,1873313359),i=u(i,n,r,o,e[f+15],10,-30611744),o=u(o,i,n,r,e[f+6],15,-1560198380),r=u(r,o,i,n,e[f+13],21,1309151649),n=u(n,r,o,i,e[f+4],6,-145523070),i=u(i,n,r,o,e[f+11],10,-1120210379),o=u(o,i,n,r,e[f+2],15,718787259),r=u(r,o,i,n,e[f+9],21,-343485551),n=l(n,d),r=l(r,p),o=l(o,h),i=l(i,m)}return Array(n,r,o,i)}function i(e,t,n,r,o,i){return l(f(l(l(t,e),l(r,i)),o),n)}function a(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function u(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function f(e,t){return e<<t|e>>>32-t}t.exports=function(e){return r.hash(e,o,16)}},{"./helpers":285}],287:[function(e,t,n){"use strict";var r=e("./helpers");function o(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,o=-271733879,u=-1732584194,l=271733878,f=-1009589776,d=0;d<e.length;d+=16){for(var p=r,h=o,m=u,b=l,g=f,y=0;y<80;y++){n[y]=y<16?e[d+y]:c(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var v=s(s(c(r,5),i(y,o,u,l)),s(s(f,n[y]),a(y)));f=l,l=u,u=c(o,30),o=r,r=v}r=s(r,p),o=s(o,h),u=s(u,m),l=s(l,b),f=s(f,g)}return Array(r,o,u,l,f)}function i(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function a(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function s(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function c(e,t){return e<<t|e>>>32-t}t.exports=function(e){return r.hash(e,o,20,!0)}},{"./helpers":285}],288:[function(e,t,n){"use strict";t.exports=function(){return function(){}}},{}],289:[function(e,t,n){(function(n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("stream"),s=a.Stream,c=e("../lib/common/utils/isArray"),u=c.isArray;function l(e){return e instanceof s}t.exports.string=function(e){return"string"===typeof e},t.exports.array=u,t.exports.buffer=n.isBuffer,t.exports.writableStream=function(e){return l(e)&&"function"===typeof e._write&&"object"===(0,o["default"])(e._writableState)}}).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,t,n){"use strict";n.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},n.escape=e("escape-html"),n.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,t,n){(function(t,r){"use strict";var o=e("babel-runtime/core-js/json/stringify"),i=c(o),a=e("babel-runtime/helpers/typeof"),s=c(a);function c(e){return e&&e.__esModule?e:{default:e}}var u,l=e("util"),f=e("url"),d=e("http"),p=e("https"),h=e("debug")("urllib"),m=e("humanize-ms"),b=0,g=Math.pow(2,31)-10,y=/^https?:\/\//i;function v(e,t){return void 0===e?t:e}function _(e,t){return function(n,r,o){if(n)return t(n);e({data:r,status:o.statusCode,headers:o.headers,res:o})}}n.TIMEOUTS=[m("300s"),m("300s")];var w=["json","text"];n.request=function(t,r,o){return 2===arguments.length&&"function"===typeof r&&(o=r,r=null),"function"===typeof o?n.requestWithCallback(t,r,o):(u||(u=e("any-promise")),new u((function(e,o){n.requestWithCallback(t,r,_(e,o))})))},n.requestWithCallback=function(o,a,c){if(!o||"string"!==typeof o&&"object"!==("undefined"===typeof o?"undefined":(0,s["default"])(o))){var u=l.format("expect request url to be a string or a http request options, but got %j",o);throw new Error(u)}2===arguments.length&&"function"===typeof a&&(c=a,a=null),a=a||{},b>=g&&(b=0);var _=++b;a.requestUrls=a.requestUrls||[];var x={requestId:_,url:o,args:a,ctx:a.ctx};a.emitter&&a.emitter.emit("request",x),a.timeout=a.timeout||n.TIMEOUTS,a.maxRedirects=a.maxRedirects||10,a.streaming=a.streaming||a.customResponse;var E,j=Date.now();"string"===typeof o?(y.test(o)||(o="http://"+o),E=f.parse(o)):E=o;var S=(a.type||a.method||E.method||"GET").toUpperCase(),T=E.port||80,O=d,k=v(a.agent,n.agent),N=a.fixJSONCtlChars;"https:"===E.protocol&&(O=p,k=v(a.httpsAgent,n.httpsAgent),E.port||(T=443));var C={host:E.hostname||E.host||"localhost",path:E.path||"/",method:S,port:T,agent:k,headers:a.headers||{},lookup:a.lookup};Array.isArray(a.timeout)?C.requestTimeout=a.timeout[a.timeout.length-1]:"undefined"!==typeof a.timeout&&(C.requestTimeout=a.timeout);for(var I=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],A=0;A<I.length;A++){var D=I[A];a.hasOwnProperty(D)&&(C[D]=a[D])}!1!==C.rejectUnauthorized||C.hasOwnProperty("secureOptions")||(C.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var M=a.auth||E.auth;M&&(C.auth=M);var P=a.content||a.data,L="GET"===S||"HEAD"===S||a.dataAsQueryString;if(!a.content&&P&&"string"!==typeof P&&!r.isBuffer(P))if(L)P=a.nestedQuerystring?qs.stringify(P):querystring.stringify(P);else{var R=C.headers["Content-Type"]||C.headers["content-type"];R||(R="json"===a.contentType?"application/json":"application/x-www-form-urlencoded",C.headers["Content-Type"]=R),P="application/json"===parseContentType(R).type?(0,i["default"])(P):a.nestedQuerystring?qs.stringify(P):querystring.stringify(P)}L&&P&&(C.path+=(E.query?"&":"?")+P,P=null);var B=0;if(P){var F=P.length;r.isBuffer(P)||(F=r.byteLength(P)),B=C.headers["Content-Length"]=F}"json"===a.dataType&&(C.headers.Accept="application/json"),"function"===typeof a.beforeRequest&&a.beforeRequest(C);var q=null,U=null,G=null,X=!1,V=!1,H=0,W=-1,z=!1,K="",Y="",$=null;function J(){q&&(clearTimeout(q),q=null)}function Z(){U&&(clearTimeout(U),U=null)}function Q(e,r,s){if(Z(),!c)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),_,t.pid,C.method,o),void(e&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),_,t.pid,e.name,e.message,e.stack));var u=c;c=null;var l={};if(s&&(W=s.statusCode,l=s.headers),401===W&&l["www-authenticate"]&&(!a.headers||!a.headers.Authorization)&&a.digestAuth){var f=l["www-authenticate"];if(f.indexOf("Digest ")>=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",_,o,f),a.headers=a.headers||{},a.headers.Authorization=digestAuthHeader(C.method,C.path,f,a.digestAuth),h("Request#%d %s: auth with digest header: %s",_,o,a.headers.Authorization),s.headers["set-cookie"]&&(a.headers.Cookie=s.headers["set-cookie"].join(";")),n.requestWithCallback(o,a,u)}var d=Date.now()-j;$&&($.contentDownload=d),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",d,H,W,C.method,C.host,C.path,V,$);var p={status:W,statusCode:W,headers:l,size:H,aborted:z,rt:d,keepAliveSocket:V,data:r,requestUrls:a.requestUrls,timing:$,remoteAddress:K,remotePort:Y};if(e){var m="";k&&"function"===typeof k.getCurrentStatus&&(m=", agent status: "+(0,i["default"])(k.getCurrentStatus())),e.message+=", "+C.method+" "+o+" "+W+" (connected: "+X+", keepalive socket: "+V+m+")\nheaders: "+(0,i["default"])(l),e.data=r,e.path=C.path,e.status=W,e.headers=l,e.res=p}u(e,r,a.streaming?s:p),a.emitter&&(x.url=o,x.socket=oe&&oe.connection,x.options=C,x.size=B,a.emitter.emit("response",{requestId:_,error:e,ctx:a.ctx,req:x,res:p}))}function ee(e){var t=null;if(a.followRedirect&&statuses.redirect[e.statusCode]){a._followRedirectCount=(a._followRedirectCount||0)+1;var r=e.headers.location;if(r){if(!(a._followRedirectCount>a.maxRedirects)){var i=a.formatRedirectUrl?a.formatRedirectUrl(o,r):f.resolve(o,r);h("Request#%d %s: `redirected` from %s to %s",_,C.path,o,i),Z(),a.headers&&a.headers.Host&&y.test(r)&&(a.headers.Host=null);var s=c;return c=null,n.requestWithCallback(i,a,s),{redirect:!0,error:null}}t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+o),t.name="MaxRedirectError"}else t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers"),t.name="FollowRedirectError"}return{redirect:!1,error:t}}function te(e,t,n){var r=e.headers["content-encoding"];return n(null,t,r)}a.timing&&($={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),C.headers["User-Agent"]||C.headers["user-agent"]||(C.headers["User-Agent"]=navigator.userAgent),a.gzip&&(C.headers["Accept-Encoding"]||C.headers["accept-encoding"]||(C.headers["Accept-Encoding"]="gzip"));var ne,re,oe,ie=a.writeStream;function ae(e){if($&&($.waiting=Date.now()-j),h("Request#%d %s `req response` event emit: status %d, headers: %j",_,o,e.statusCode,e.headers),a.streaming){var t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),Q(t.error,null,e)):Q(null,null,e)}if(e.on("close",(function(){h("Request#%d %s: `res close` event emit, total size %d",_,o,H)})),e.on("error",(function(){h("Request#%d %s: `res error` event emit, total size %d",_,o,H)})),e.on("aborted",(function(){z=!0,h("Request#%d %s: `res aborted` event emit, total size %d",_,o,H)})),ie){t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),ie.end(),Q(t.error,null,e)):(!1===a.consumeWriteStream?e.on("end",Q.bind(null,null,null,e)):isNode010||isNode012?first([[ie,"close"],[e,"aborted"]],(function(t,n,r){h("Request#%d %s: writeStream or res %s event emitted",_,o,r),Q(G||null,null,e)})):ie.on("close",(function(){h("Request#%d %s: writeStream close event emitted",_,o),Q(G||null,null,e)})),e.pipe(ie))}var n=[];e.on("data",(function(e){h("Request#%d %s: `res data` event emit, size %d",_,o,e.length),H+=e.length,n.push(e)})),e.on("end",(function(){var t=r.concat(n,H);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",_,o,H,e._dumped),G)return Q(G,t,e);var i=ee(e);if(i.error)return Q(i.error,t,e);i.redirect||te(e,t,(function(n,r,i){if(n)return Q(n,t,e);if(!i&&w.indexOf(a.dataType)>=0){try{r=decodeBodyByCharset(r,e)}catch(c){return h("decodeBodyByCharset error: %s",c),Q(null,r,e)}if("json"===a.dataType)if(0===H)r=null;else{var s=parseJSON(r,N);s.error?n=s.error:r=s.data}}z&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",_,o),Q(n,r,e)}))}))}function se(){h("Connect timer ticking, timeout: %d",ne),q=setTimeout((function(){q=null,-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";oe.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),G=new Error(e),G.name=t,G.requestId=_,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),ne)}function ce(){h("Response timer ticking, timeout: %d",re),U=setTimeout((function(){U=null;var e="Response timeout for "+re+"ms",t="ResponseTimeoutError";G=new Error(e),G.name=t,G.requestId=_,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),re)}h("Request#%d %s %s with headers %j, options.path: %s",_,S,o,C.headers,C.path),a.requestUrls.push(o),Array.isArray(a.timeout)?(ne=m(a.timeout[0]),re=m(a.timeout[1])):ne=re=m(a.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",ne,re),C.mode=a.mode?a.mode:"";try{oe=O.request(C,ae)}catch(le){return Q(le)}function ue(){h("Request#%d %s abort, connected: %s",_,o,X),oe.socket||(G.noSocket=!0,Q(G)),oe.abort()}return"undefined"===typeof window?se():oe.on("requestTimeout",(function(){-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";G=new Error(e),G.name=t,G.requestId=_,ue()})),$&&oe.on("finish",(function(){$.requestSent=Date.now()-j})),oe.once("socket",(function(e){$&&($.queuing=Date.now()-j),isNode010&&e.socket&&(e=e.socket);var t=e.readyState;if("opening"===t)return e.once("lookup",(function(e,t,n){h("Request#%d %s lookup: %s, %s, %s",_,o,e,t,n),$&&($.dnslookup=Date.now()-j),t&&(K=t)})),void e.once("connect",(function(){$&&($.connected=Date.now()-j),J(),ce(),h("Request#%d %s new socket connected",_,o),X=!0,K||(K=e.remoteAddress),Y=e.remotePort}));h("Request#%d %s reuse socket connected, readyState: %s",_,o,t),X=!0,V=!0,K||(K=e.remoteAddress),Y=e.remotePort,J(),ce()})),oe.on("error",(function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=X?"ResponseError":"RequestError"),e.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",_,o,e.name,e.message),Q(G||e)})),ie&&ie.once("error",(function(e){e.message+=' (writeStream "error")',G=e,h("Request#%d %s `writeStream error` event emit, %s: %s",_,o,e.name,e.message),ue()})),a.stream?(a.stream.pipe(oe),a.stream.once("error",(function(e){e.message+=' (stream "error")',G=e,h("Request#%d %s `readStream error` event emit, %s: %s",_,o,e.name,e.message),ue()}))):oe.end(P),oe.requestId=_,oe}}).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__("UywP"))},xKgJ:function(e,t,n){"use strict";n.d(t,"o",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"s",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"h",(function(){return _})),n.d(t,"p",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return j})),n.d(t,"k",(function(){return S})),n.d(t,"n",(function(){return T})),n.d(t,"t",(function(){return O}));var r,o,i=n("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(o||(o={}));var a=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return e.some((function(e){return e==(null===r||void 0===r?void 0:r.role)}))},s=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some((function(e){var t;return e==(null===r||void 0===r||null===(t=r.course)||void 0===t?void 0:t.course_role)}))},c=function(){var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return n.main_site},u=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant])},f=function(){return s([o.SuperAdmin,o.Teacher,o.Admin,o.Assistant,o.Operation])},d=function(){return s([o.SuperAdmin,o.Teacher,o.Admin])},p=function(){return s([o.SuperAdmin])},h=function(){return s([o.SuperAdmin,o.Operation,o.Admin])},m=function(){return s([o.SuperAdmin,o.Operation])},b=function(){return s([o.SuperAdmin,o.Admin])},g=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher])},y=function(){return s([o.Assistant])},v=function(){return s([o.Student])},_=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant,o.Student])},w=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},x=function(){return a([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},E=function(){return a([r.SuperAdmin])},j=function(){return a([r.SuperAdmin,r.Operation])},S=function(){return a([r.Student])},T=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)},O=function(){var e=Object(i["b"])()._store.getState(),t=e.user;return t.userInfo}}}]);