|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[308],{"/heT":function(ke,Oe,me){"use strict";me.r(Oe);var ve=me("T2oS"),Ee=me("W9HT"),le=me("5NDa"),n=me("5rEg"),O=me("+L6B"),S=me("2/Rp"),d=me("MXD1"),v=me("CFYs"),a=me("9og8"),i=me("2qtc"),p=me("kLXV"),r=me("miYZ"),e=me("tsqr"),o=me("tJVT"),s=me("PpiC"),l=me("k1fw"),h=me("oBTY"),c=me("WmNS"),w=me.n(c),y=me("q1tI"),f=me.n(y),E=me("Ty5D"),T=me("9kvl"),m=me("55Ip"),_=me("5bA4"),C=me("0eFM"),j=me.n(C),b=me("yG4R"),R=me.n(b),P=me("GPhl"),I=me.n(P),N=me("Aky1"),G=me("h/US"),V=me("m47v"),H=30,ie=1024,F=function(X,D){var L,M,B=D.payload.uploadInfo;switch(D.type){case"addVideo":return console.log("videoList: ",B,B.videoId,[].concat(Object(h.a)(X.videoList),[{name:B.file.name,size:B.file.size,type:B.file.type,fileHash:B.fileHash,state:B.state,videoId:B.videoId,attachment_id:"",loaded:0,title:""}])),{videoList:[].concat(Object(h.a)(X.videoList),[{name:B.file.name,size:B.file.size,type:B.file.type,fileHash:B.fileHash,state:B.state,videoId:B.videoId,attachment_id:"",loaded:0,title:""}])};case"removeVideo":return{videoList:X.videoList.filter(function(ee){return ee.name!==D.payload.name})};case"removeAll":return[];case"updateProgress":return{videoList:X.videoList.map(function(ee){return ee.name===D.payload.uploadInfo.file.name?Object(l.a)(Object(l.a)({},ee),{loaded:D.payload.progressPercent,videoId:B.videoId,fileHash:B.fileHash}):ee})};case"updateTitle":return{videoList:(L=X.videoList)===null||L===void 0?void 0:L.map(function(ee){return ee.name===D.payload.item.name?Object(l.a)(Object(l.a)({},ee),{title:D.payload.title}):ee})};case"updateImg":return{videoList:(M=X.videoList)===null||M===void 0?void 0:M.map(function(ee){return ee.name===D.payload.item.name?Object(l.a)(Object(l.a)({},ee),{attachment_id:D.payload.attachment_id}):ee})};default:return[]}},re=function(X){var D,L=X.user,M=X.userDetail,B=X.globalSetting,ee=X.loading,K=X.dispatch,oe=X.virtualSpaces,te=Object(s.a)(X,["user","userDetail","globalSetting","loading","dispatch","virtualSpaces"]),ae=Object(E.i)(),pe=Object(E.h)(),J=Object(y.useState)(!1),$=Object(o.a)(J,2),ne=$[0],q=$[1],U=Object(y.useReducer)(F,{videoList:[]}),Z=Object(o.a)(U,2),Q=Z[0],se=Z[1],k=Object(y.useState)(!1),t=Object(o.a)(k,2),u=t[0],A=t[1],g=Object(y.useRef)(),x=Object(y.useRef)();Object(y.useEffect)(function(){return window.addEventListener("beforeunload",z),function(){window.removeEventListener("beforeunload",z)}},[]);var z=function(we){we.preventDefault(),we.returnValue=""},W=function(){var we=document.getElementById("fileUpload");we.value=""},fe=function(we){var xe,ge,Te,Se=we.target.files[0];if(!Se){W();return}var Ae=Se.name.toLowerCase();if(Ae&&Ae.indexOf(".avi")==-1&&Ae.indexOf(".flv")==-1&&Ae.indexOf(".f4v")==-1&&Ae.indexOf(".m4v")==-1&&Ae.indexOf(".mov")==-1&&Ae.indexOf(".mp4")==-1&&Ae.indexOf(".rmvb")==-1&&Ae.indexOf(".swf")==-1&&Ae.indexOf(".webm")==-1&&Ae.indexOf(".wmv")==-1){e.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),W();return}if(!((xe=L.userInfo)!==null&&xe!==void 0&&xe.admin||(ge=L.userInfo)!==null&&ge!==void 0&&ge.business)&&Se.size>ie*1024*1024){e.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(ie,"M")),W();return}if((Te=Q.videoList)!==null&&Te!==void 0&&Te.find(function(Ce){return Ce.name===Se.name})){e.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),W();return}de(Se)},ce=function(we,xe){p.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:f.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",xe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){W(),se({type:"removeVideo",payload:{name:we}})}})},de=function(we){var xe='{"Vod":{}}';if(q(!0),g.current){g.current.addFile(we,null,null,null,xe);return}Object(N.a)(ae==null?void 0:ae.username,ae.virtual_spacesId,{create:!g,addFileSuccess:function(Te){se({type:"addVideo",payload:{uploadInfo:Te}})},onUploadProgress:function(Te,Se,Ae){var Ce=Math.ceil(Ae*100);se({type:"updateProgress",payload:{uploadInfo:Te,progressPercent:Ce}}),W()},onUploadFailed:function(Te){e.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(Te){q(!1)},onUploadSucceed:function(Te){q(!1),console.log("files.current",x.current)},onUploadError:function(Te){q(!1)},gotUploader:function(Te){Te.addFile(we,null,null,null,xe),g.current=Te}})},he=function(){var ye=Object(a.a)(w.a.mark(function we(){var xe,ge;return w.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if((xe=Q.videoList)!==null&&xe!==void 0&&xe.length){Se.next=3;break}return e.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891"),Se.abrupt("return");case 3:return A(!0),Se.next=6,Object(V.e)({id:ae.virtual_spacesId,videos:Q.videoList.map(function(Ae){return{video_id:Ae.videoId,title:Ae.title,attachment_id:Ae.attachment_id,virtual_classroom_id:ae.virtual_spacesId,module_id:oe.actionTabs.module_id}})});case 6:ge=Se.sent,A(!1),(ge==null?void 0:ge.status)===0&&(T.d.goBack(),K({type:"classroomList/setActionTabs",payload:{key:"\u5237\u65B0\u6570\u636E"}}));case 9:case"end":return Se.stop()}},we)}));return function(){return ye.apply(this,arguments)}}(),_e=(D=Q.videoList)===null||D===void 0?void 0:D.length,be=function(){return f.a.createElement("div",{className:I.a.main},f.a.createElement("div",{className:I.a.uploadTop},f.a.createElement("label",{htmlFor:"fileUpload",className:I.a.imgWrap},f.a.createElement("img",{className:I.a.defaultImg,src:j.a}),f.a.createElement("img",{className:I.a.hoverImg,src:R.a})),f.a.createElement("div",{className:I.a.uploadTitle},"\u9009\u62E9\u60A8\u8981\u4E0A\u4F20\u7684\u89C6\u9891"),f.a.createElement("div",null,"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",f.a.createElement(m.a,{to:"/users/".concat(ae==null?void 0:ae.username,"/videos/protocol"),className:I.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1")),f.a.createElement("div",{className:I.a.uploadDescription},f.a.createElement("div",{className:I.a.description},f.a.createElement("div",null,"\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "),f.a.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),f.a.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",f.a.createElement("span",{className:I.a.colorOrange},"\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)")))))},ue=function(){var we,xe;return f.a.createElement("div",{className:I.a.fileMain},f.a.createElement(Ee.a,{spinning:ne},(we=Q.videoList)===null||we===void 0?void 0:we.map(function(ge,Te){return f.a.createElement("div",{className:I.a.fileWrap},f.a.createElement("div",null,Te+1,". ",ge.name),f.a.createElement("div",{className:I.a.fileProgress},f.a.createElement(v.a,{percent:ge.loaded,status:ge.loaded==100?"normal":"active"}),f.a.createElement("div",{className:I.a.fileCancel},f.a.createElement(S.a,{type:"primary",onClick:function(){return ce(ge.name,ge.loaded==100)}},ge.loaded===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20"))),f.a.createElement("div",{className:I.a.fileInputWrap},f.a.createElement("span",{className:"mr5"},"\u6807\u9898:"),f.a.createElement(n.a,{value:ge.title,onChange:function(Ae){se({type:"updateTitle",payload:{title:Ae.target.value,item:ge}})},className:I.a.fileInput,placeholder:"\u6807\u9898\u652F\u6301\u6700\u591A".concat(H,"\u4E2A\u5B57\u7B26"),maxLength:H,addonAfter:f.a.createElement("span",{className:"c-light-black font12"},String(ge.title.length),"/",H)})),f.a.createElement("div",{className:I.a.fileImgWrap},f.a.createElement("aside",{className:"mr5"},"\u4E0A\u4F20\u5C01\u9762\u56FE:"),f.a.createElement(G.a,{value:ge==null?void 0:ge.attachment_id,onChange:function(Ae){se({type:"updateImg",payload:{attachment_id:Ae,item:ge}})}})))})),f.a.createElement("div",{className:"mt10"},((xe=Q.videoList)===null||xe===void 0?void 0:xe.length)<=2?f.a.createElement("label",{htmlFor:"fileUpload",className:"".concat(I.a.continueAdd," current")},"\u7EE7\u7EED\u6DFB\u52A0"):"\u63D0\u793A\uFF1A\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20"),f.a.createElement("div",{className:I.a.description},f.a.createElement("div",null,"\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "),f.a.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),f.a.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",f.a.createElement("span",{className:I.a.colorOrange},"\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)"))),f.a.createElement("div",{className:I.a.flexRowCenter},f.a.createElement(S.a,{type:"primary",loading:u,onClick:he},"\u7ACB\u5373\u53D1\u5E03")),f.a.createElement("div",{className:"".concat(I.a.flexRowCenter," mt10")},"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",f.a.createElement(m.a,{to:"/users/".concat(ae==null?void 0:ae.username,"/videos/protocol"),className:I.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"))};return f.a.createElement("section",{className:I.a.bg,style:{width:"100%"}},f.a.createElement("div",{className:"mt5",style:{display:"flex"}},f.a.createElement(_.a,{style:{marginTop:"8px"},className:"current mr10 font16",onClick:function(){T.d.goBack()}}),f.a.createElement("h2",null,"\u4E0A\u4F20\u89C6\u9891")),_e?ue():be(),f.a.createElement("input",{ref:x,type:"file",id:"fileUpload",style:{display:"none"},onChange:fe,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}))};Oe.default=Object(T.a)(function(Y){var X=Y.user,D=Y.userDetail,L=Y.loading,M=Y.globalSetting,B=Y.virtualSpaces;return{user:X,userDetail:D,globalSetting:M,loading:L.models.index,virtualSpaces:B}})(re)},"0eFM":function(ke,Oe){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAIVBMVEVHcExMrf9Qr/9TuP9Mrf9Nrf9Mrf9MrP9Nrv9Orv9MrP98EuefAAAACnRSTlMA3CULV5jA84JH4j3LZgAAANVJREFUOMvl1a0OwjAUBeCb/QgcGckSphqeAASBoKaR4KpwJDwAYhaHQuGbLNtynpKWmTWs92rg2n45orc7I9qeEZzrjSgqwIxRtAI7M7rzoKMLjhScNRqqsAyDGC0BxIw9/UYQKQEUHQ9SoGSBBmoOpG4/JQO0A3UYpP2KyyDQaGG8CB/YgDnMfhjhAw2zgEmGER6wAVkEQzbiMQp29g07YCOmo2CDjBywEadRkOSqB5NcBa/6Dbhd/AmIq0Z41c/DL3y8n0AsMbEGxSIVq1gsc+l38AI000Nd23IRqQAAAABJRU5ErkJggg=="},"7ixt":function(ke,Oe,me){"use strict";me.d(Oe,"a",function(){return le});var ve={adjustX:1,adjustY:1},Ee=[0,0],le={left:{points:["cr","cl"],overflow:ve,offset:[-4,0],targetOffset:Ee},right:{points:["cl","cr"],overflow:ve,offset:[4,0],targetOffset:Ee},top:{points:["bc","tc"],overflow:ve,offset:[0,-4],targetOffset:Ee},bottom:{points:["tc","bc"],overflow:ve,offset:[0,4],targetOffset:Ee},topLeft:{points:["bl","tl"],overflow:ve,offset:[0,-4],targetOffset:Ee},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0],targetOffset:Ee},topRight:{points:["br","tr"],overflow:ve,offset:[0,-4],targetOffset:Ee},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0],targetOffset:Ee},bottomRight:{points:["tr","br"],overflow:ve,offset:[0,4],targetOffset:Ee},rightBottom:{points:["bl","br"],overflow:ve,offset:[4,0],targetOffset:Ee},bottomLeft:{points:["tl","bl"],overflow:ve,offset:[0,4],targetOffset:Ee},leftBottom:{points:["br","bl"],overflow:ve,offset:[-4,0],targetOffset:Ee}},n=le},Aky1:function(ke,Oe,me){"use strict";me.d(Oe,"a",function(){return a});var ve=me("ErOA"),Ee=me("ppsT"),le=me.n(Ee),n="",O,S="";function d(i){v(i)}function v(i){O=new le.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(r){console.log("addFileSuccess: "+r.file.name),i.addFileSuccess&&i.addFileSuccess(r),O.startUpload()},onUploadstarted:function(r){var e=r.file.name;if(r.videoId){var l="/api/users/".concat(n,"/video_auths.json");Object(ve.a)(l,{method:"put",body:{video_id:r.videoId,title:e,file_name:e,virtual_classroom_id:S}}).then(function(h){if(h.status==-1){i.onUploadError&&i.onUploadError(r);return}var c=h.data,w=c.UploadAuth,y=c.UploadAddress,f=c.VideoId;O.setUploadAuthAndAddress(r,w,y)}).catch(function(h){O.deleteFile(O._curIndex),O.nextUpload(),console.log(h)})}else{var o="/api/users/".concat(n,"/video_auths.json"),s="";Object(ve.a)(o,{method:"Post",body:{title:s+e,file_name:s+e,virtual_classroom_id:S}}).then(function(h){if(h){var c=h.data,w=c.UploadAuth,y=c.UploadAddress,f=c.VideoId;O.setUploadAuthAndAddress(r,w,y,f)}}).catch(function(h){O.deleteFile(O._curIndex),O.nextUpload(),console.log(h)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(r){i.onUploadSucceed&&i.onUploadSucceed(r),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(r,e,o){i.onUploadFailed&&i.onUploadFailed(r),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(r,e,o){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(r,e,o){i.onUploadProgress&&i.onUploadProgress(r,e,o);var s=Math.ceil(o*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(r){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var e="/api/users/".concat(n,"/video_auths.json");Object(ve.a)(e,{method:"put",body:{video_id:r.videoId}}).then(function(o){var s=o.data,l=s.UploadAuth;O.resumeUploadWithAuth(l)}).catch(function(o){console.log(o)})},onUploadEnd:function(r){i.onUploadEnd&&i.onUploadEnd(r),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(O)}function a(i,p,r){i&&(n=i),p&&(S=p),d(r)}},BU3w:function(ke,Oe,me){"use strict";me.d(Oe,"a",function(){return S});var ve=me("MNnm"),Ee="rc-util-key";function le(d){if(d.attachTo)return d.attachTo;var v=document.querySelector("head");return v||document.body}function n(d){var v,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ve.a)())return null;var i=document.createElement("style");if((v=a.csp)===null||v===void 0?void 0:v.nonce){var p;i.nonce=(p=a.csp)===null||p===void 0?void 0:p.nonce}i.innerHTML=d;var r=le(a),e=r.firstChild;return a.prepend&&r.prepend?r.prepend(i):a.prepend&&e?r.insertBefore(i,e):r.appendChild(i),i}var O=new Map;function S(d,v){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=le(a);if(!O.has(i)){var p=n("",a),r=p.parentNode;O.set(i,r),r.removeChild(p)}var e=Array.from(O.get(i).children).find(function(c){return c.tagName==="STYLE"&&c[Ee]===v});if(e){var o,s;if(((o=a.csp)===null||o===void 0?void 0:o.nonce)&&e.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var l;e.nonce=(l=a.csp)===null||l===void 0?void 0:l.nonce}return e.innerHTML!==d&&(e.innerHTML=d),e}var h=n(d,a);return h[Ee]=v,h}},GPhl:function(ke,Oe,me){ke.exports={bg:"bg___37qBx",main:"main___3zDe3",uploadTop:"uploadTop___1Ijcz",imgWrap:"imgWrap___1VNNq",defaultImg:"defaultImg___2RvIm",hoverImg:"hoverImg___VLrMw",uploadTitle:"uploadTitle___3mOCR",colorBlue:"colorBlue___3mKky",uploadDescription:"uploadDescription___2fqG3",description:"description___2_b_O",colorOrange:"colorOrange___2brhu",fileMain:"fileMain___1peqU",fileWrap:"fileWrap___3pwCH",fileProgress:"fileProgress___2kwRf",fileCancel:"fileCancel___HwV9Q",fileInputWrap:"fileInputWrap___HK0eX",fileImgWrap:"fileImgWrap___2PCZA",fileInput:"fileInput___Ei6F6",flexRowCenter:"flexRowCenter___3NjXP",continueAdd:"continueAdd___3zCtM"}},Gytx:function(ke,Oe){ke.exports=function(ve,Ee,le,n){var O=le?le.call(n,ve,Ee):void 0;if(O!==void 0)return!!O;if(ve===Ee)return!0;if(typeof ve!="object"||!ve||typeof Ee!="object"||!Ee)return!1;var S=Object.keys(ve),d=Object.keys(Ee);if(S.length!==d.length)return!1;for(var v=Object.prototype.hasOwnProperty.bind(Ee),a=0;a<S.length;a++){var i=S[a];if(!v(i))return!1;var p=ve[i],r=Ee[i];if(O=le?le.call(n,p,r,i):void 0,O===!1||O===void 0&&p!==r)return!1}return!0}},OLES:function(ke,Oe,me){"use strict";var ve=me("U8pU"),Ee=me("VTBJ"),le=me("Ff2n"),n=me("q1tI"),O=me("uciX"),S=me("7ixt"),d=function(e){var o=e.overlay,s=e.prefixCls,l=e.id,h=e.overlayInnerStyle;return n.createElement("div",{className:"".concat(s,"-inner"),id:l,role:"tooltip",style:h},typeof o=="function"?o():o)},v=d,a=function(e,o){var s=e.overlayClassName,l=e.trigger,h=l===void 0?["hover"]:l,c=e.mouseEnterDelay,w=c===void 0?0:c,y=e.mouseLeaveDelay,f=y===void 0?.1:y,E=e.overlayStyle,T=e.prefixCls,m=T===void 0?"rc-tooltip":T,_=e.children,C=e.onVisibleChange,j=e.afterVisibleChange,b=e.transitionName,R=e.animation,P=e.placement,I=P===void 0?"right":P,N=e.align,G=N===void 0?{}:N,V=e.destroyTooltipOnHide,H=V===void 0?!1:V,ie=e.defaultVisible,F=e.getTooltipContainer,re=e.overlayInnerStyle,Y=Object(le.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),X=Object(n.useRef)(null);Object(n.useImperativeHandle)(o,function(){return X.current});var D=Object(Ee.a)({},Y);"visible"in e&&(D.popupVisible=e.visible);var L=function(){var oe=e.arrowContent,te=oe===void 0?null:oe,ae=e.overlay,pe=e.id;return[n.createElement("div",{className:"".concat(m,"-arrow"),key:"arrow"},te),n.createElement(v,{key:"content",prefixCls:m,id:pe,overlay:ae,overlayInnerStyle:re})]},M=!1,B=!1;if(typeof H=="boolean")M=H;else if(H&&Object(ve.a)(H)==="object"){var ee=H.keepParent;M=ee===!0,B=ee===!1}return n.createElement(O.a,Object.assign({popupClassName:s,prefixCls:m,popup:L,action:h,builtinPlacements:S.a,popupPlacement:I,ref:X,popupAlign:G,getPopupContainer:F,onPopupVisibleChange:C,afterPopupVisibleChange:j,popupTransitionName:b,popupAnimation:R,defaultPopupVisible:ie,destroyPopupOnHide:M,autoDestroy:B,mouseLeaveDelay:f,popupStyle:E,mouseEnterDelay:w},D),_)},i=Object(n.forwardRef)(a),p=Oe.a=i},ppsT:function(ke,Oe,me){(function(ve){var Ee,Ee;!function(le){if(!0)window.OSS=le(),ke.exports=le();else var n}(function(){var le;return function(){function n(O,S,d){function v(p,r){if(!S[p]){if(!O[p]){var e=typeof Ee=="function"&&Ee;if(!r&&e)return Ee(p,!0);if(a)return a(p,!0);var o=new Error("Cannot find module '"+p+"'");throw o.code="MODULE_NOT_FOUND",o}var s=S[p]={exports:{}};O[p][0].call(s.exports,function(l){return v(O[p][1][l]||l)},s,s.exports,n,O,S,d)}return S[p].exports}for(var a=typeof Ee=="function"&&Ee,i=0;i<d.length;i++)v(d[i]);return v}return n}()({1:[function(n,O,S){"use strict";var d=n("./browser/client");d.Buffer=n("buffer").Buffer,d.co=n("co"),d.urllib=n("../shims/xhr"),d.version=n("./browser/version").version,O.exports=d},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,O,S){(function(d,v){"use strict";function a(X){return X&&X.__esModule?X:{default:X}}function i(X,D){return X[D]||X[D.toLowerCase()]}function p(X,D){var L=b.parse(X);if(!L.protocol){var M=D?"https://":"http://";L=b.parse(M+X)}if(L.protocol!=="http:"&&L.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return L}function r(X,D,L){var M=L?"https://":"http://",B=D?"-internal.aliyuncs.com":".aliyuncs.com";return X.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(B=".aliyuncs.com"),b.parse(M+X+B)}function e(){return document&&document.location&&document.location.protocol==="https:"}function o(X,D){if(!(this instanceof o))return new o(X,D);X&&X.inited?this.options=X:this.options=o.initOptions(X),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=N,this.agent=this.options.agent||re),this.ctx=D,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var s=n("babel-runtime/regenerator"),l=a(s),h=n("babel-runtime/core-js/object/keys"),c=a(h),w=n("debug")("ali-oss"),y=n("./../../shims/crypto/crypto.js"),f=n("path"),E=n("copy-to"),T=n("mime"),m=n("xml2js"),_=n("humanize-ms"),C=n("agentkeepalive"),j=n("merge-descriptors"),b=n("url"),R=n("is-type-of"),P=n("platform"),I=n("utility"),N=n("urllib"),G=n("./version"),V=n("dateformat"),H=n("bowser"),ie=n("../common/signUtils"),F=n("../common/utils"),re=new C;O.exports=o,o.initOptions=function(X){if(!X||!X.accessKeyId||!X.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var D=e(),L={region:"oss-cn-hangzhou",internal:!1,secure:D,bucket:null,endpoint:null,cname:!1};if((0,c.default)(X).forEach(function(M){X[M]!==void 0&&(L[M]=X[M])}),L.accessKeyId=L.accessKeyId.trim(),L.accessKeySecret=L.accessKeySecret.trim(),L.timeout&&(L.timeout=_(L.timeout)),L.endpoint)L.endpoint=p(L.endpoint,L.secure);else{if(!L.region)throw new Error("require options.endpoint or options.region");L.endpoint=r(L.region,L.internal,L.secure)}return L.inited=!0,L};var Y=o.prototype;j(Y,n("./object")),j(Y,n("./managed_upload")),j(Y,n("../common/multipart")),j(Y,n("../common/thunkpool.js")),o.Wrapper=n("./wrapper"),Y.signature=function(X){return w("authorization stringToSign: %s",X),ie.computeSignature(this.options.accessKeySecret,X)},Y.authorization=function(X,D,L,M){var B=ie.buildCanonicalString(X.toUpperCase(),D,{headers:M,parameters:L});return ie.authorization(this.options.accessKeyId,this.options.accessKeySecret,B)},Y.createRequest=function(X){var D={"x-oss-date":V(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(D["x-oss-security-token"]=this.options.stsToken),E(X.headers).to(D),i(D,"Content-Type")||(X.mime===T.default_type&&(X.mime=""),X.mime&&X.mime.indexOf("/")>0?D["Content-Type"]=X.mime:D["Content-Type"]=T.getType(X.mime||f.extname(X.object||""))||"application/octet-stream"),X.content&&(D["Content-Md5"]=y.createHash("md5").update(new v(X.content,"utf8")).digest("base64"),D["Content-Length"]||(D["Content-Length"]=X.content.length));var L=this._getResource(X);D.authorization=this.authorization(X.method,L,X.subres,D);var M=this._getReqUrl(X);w("request %s %s, with headers %j, !!stream: %s",X.method,M,D,!!X.stream);var B=X.timeout||this.options.timeout;return{url:M,params:{agent:this.agent,method:X.method,content:X.content,stream:X.stream,headers:D,timeout:B,writeStream:X.writeStream,customResponse:X.customResponse,ctx:X.ctx||this.ctx}}},Y.request=l.default.mark(function X(D){var L,M,B,ee;return l.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return L=this.createRequest(D),M=void 0,B=void 0,K.prev=3,K.next=6,this.urllib.request(L.url,L.params);case 6:M=K.sent,w("response %s %s, got %s, headers: %j",D.method,L.url,M.status,M.headers),K.next=13;break;case 10:K.prev=10,K.t0=K.catch(3),B=K.t0;case 13:if(ee=void 0,!M||!D.successStatuses||D.successStatuses.indexOf(M.status)!==-1){K.next=26;break}return K.next=17,this.requestError(M);case 17:if(ee=K.sent,ee.code!=="RequestTimeTooSkewed"){K.next=23;break}return this.options.amendTimeSkewed=+new Date(ee.serverTime)-new Date,K.next=22,this.request(D);case 22:return K.abrupt("return",K.sent);case 23:ee.params=D,K.next=30;break;case 26:if(!B){K.next=30;break}return K.next=29,this.requestError(B);case 29:ee=K.sent;case 30:if(!ee){K.next=32;break}throw ee;case 32:if(!D.xmlResponse){K.next=36;break}return K.next=35,this.parseXML(M.data);case 35:M.data=K.sent;case 36:return K.abrupt("return",M);case 37:case"end":return K.stop()}},X,this,[[3,10]])}),Y._getResource=function(X){var D="/";return X.bucket&&(D+=X.bucket+"/"),X.object&&(D+=X.object),D},Y._isIP=function(X){return F._isIP(X)},Y._escape=function(X){return I.encodeURIComponent(X).replace(/%2F/g,"/")},Y._getReqUrl=function(X){var D={};E(this.options.endpoint).to(D);var L=this._isIP(D.hostname),M=this.options.cname;!X.bucket||M||L||(D.host=X.bucket+"."+D.host);var B="/";X.bucket&&L&&(B+=X.bucket+"/"),X.object&&(B+=this._escape(X.object).replace(/\+/g,"%2B")),D.pathname=B;var ee={};if(X.query&&j(ee,X.query),X.subres){var K={};R.string(X.subres)?K[X.subres]="":R.array(X.subres)?X.subres.forEach(function(oe){K[oe]=""}):K=X.subres,j(ee,K)}return D.query=ee,b.format(D)},Y._getUserAgent=function(){var X=d&&d.browser?"js":"nodejs",D="aliyun-sdk-"+X+"/"+G.version,L=P.description;return!L&&d&&(L="Node.js "+d.version.slice(1)+" on "+d.platform+" "+d.arch),this._checkUserAgent(D+" "+L)},Y._checkUserAgent=function(X){return X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},Y.checkBrowserAndVersion=function(X,D){return H.name===X&&H.version.split(".")[0]===D},Y.parseXML=function(X){return function(D){v.isBuffer(X)&&(X=X.toString()),m.parseString(X,{explicitRoot:!1,explicitArray:!1},D)}},Y.requestError=l.default.mark(function X(D){var L,M,B,ee;return l.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(L=null,D.data&&D.data.length){K.next=5;break}D.status===-1||D.status===-2?(L=new Error(D.message),L.name=D.name,L.status=D.status,L.code=D.name):(D.status===404?(L=new Error("Object not exists"),L.name="NoSuchKeyError",L.status=404,L.code="NoSuchKey"):D.status===412?(L=new Error("Pre condition failed"),L.name="PreconditionFailedError",L.status=412,L.code="PreconditionFailed"):(L=new Error("Unknow error, status: "+D.status),L.name="UnknowError",L.status=D.status),L.requestId=D.headers["x-oss-request-id"],L.host=""),K.next=30;break;case 5:return M=String(D.data),w("request response error data: %s",M),B=void 0,K.prev=8,K.next=11,this.parseXML(M)||{};case 11:B=K.sent,K.next=21;break;case 14:return K.prev=14,K.t0=K.catch(8),w(M),K.t0.message+=`
|
|
|
raw xml: `+M,K.t0.status=D.status,K.t0.requestId=D.headers["x-oss-request-id"],K.abrupt("return",K.t0);case 21:ee=B.Message||"unknow request error, status: "+D.status,B.Condition&&(ee+=" (condition: "+B.Condition+")"),L=new Error(ee),L.name=B.Code?B.Code+"Error":"UnknowError",L.status=D.status,L.code=B.Code,L.requestId=B.RequestId,L.hostId=B.HostId,L.serverTime=B.ServerTime;case 30:return w("generate error %j",L),K.abrupt("return",L);case 32:case"end":return K.stop()}},X,this,[[8,14]])})}).call(this,n("_process"),n("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(n,O,S){(function(d){"use strict";function v(E){return E&&E.__esModule?E:{default:E}}function a(E,T){if(!(this instanceof a))return new a(E,T);f.call(this,T),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var i=n("babel-runtime/core-js/array/from"),p=v(i),r=n("babel-runtime/regenerator"),e=v(r),o=n("is-type-of"),s=n("util"),l=n("path"),h=n("mime"),c=n("copy-to"),w=S;w.multipartUpload=e.default.mark(function E(T,m,_){var C,j,b,R,P,I,N,G,V;return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){H.next=6;break}return H.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return H.abrupt("return",H.sent);case 6:return C=102400,_.mime||(o.file(m)?_.mime=h.getType(l.extname(m.name)):o.blob(m)?_.mime=m.type:_.mime=h.getType(l.extname(m))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),H.next=12,this._getFileSize(m);case 12:if(!((j=H.sent)<C)){H.next=25;break}return b=this._createStream(m,0,j),_.contentLength=j,H.next=18,this.putStream(T,b,_);case 18:if(R=H.sent,!_||!_.progress){H.next=22;break}return H.next=22,_.progress(1);case 22:return P={res:R.res,bucket:this.options.bucket,name:T,etag:R.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(P.data=R.data),H.abrupt("return",P);case 25:if(!(_.partSize&&_.partSize<C)){H.next=27;break}throw new Error("partSize must not be smaller than "+C);case 27:return H.next=29,this.initMultipartUpload(T,_);case 29:if(I=H.sent,N=I.uploadId,G=this._getPartSize(j,_.partSize),V={file:m,name:T,fileSize:j,partSize:G,uploadId:N,doneParts:[]},!_||!_.progress){H.next=36;break}return H.next=36,_.progress(0,V,I.res);case 36:return H.next=38,this._resumeMultipart(V,_);case 38:return H.abrupt("return",H.sent);case 39:case"end":return H.stop()}},E,this)}),w._resumeMultipart=e.default.mark(function E(T,m){var _,C,j,b,R,P,I,N,G,V,H,ie,F,re,Y,X,D,L,M,B,ee;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!this.isCancel()){K.next=2;break}throw this._makeCancelEvent();case 2:if(_=T.file,C=T.fileSize,j=T.partSize,b=T.uploadId,R=T.doneParts,P=T.name,I=[],R.length>0&&c(R).to(I),N=this._divideParts(C,j),G=N.length,V=!1,H=e.default.mark(function oe(te,ae){var pe,J,$;return e.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(te.isCancel()){ne.next=21;break}return ne.prev=1,pe=N[ae-1],J={stream:te._createStream(_,pe.start,pe.end),size:pe.end-pe.start},ne.next=6,te._uploadPart(P,b,ae,J);case 6:if($=ne.sent,te.isCancel()||V){ne.next=13;break}if(T.doneParts.push({number:ae,etag:$.res.headers.etag}),I.push({number:ae,etag:$.res.headers.etag}),!m||!m.progress){ne.next=13;break}return ne.next=13,m.progress(R.length/G,T,$.res);case 13:ne.next=21;break;case 15:if(ne.prev=15,ne.t0=ne.catch(1),te.isCancel()){ne.next=21;break}throw te.cancel(),ne.t0.partNum=ae,ne.t0;case 21:case"end":return ne.stop()}},oe,this,[[1,15]])}),ie=(0,p.default)(new Array(G),function(oe,te){return te+1}),F=I.map(function(oe){return oe.number}),re=ie.filter(function(oe){return F.indexOf(oe)<0}),Y=5,X=m.parallel||Y,!this.checkBrowserAndVersion("Internet Explorer","10")&&X!==1){K.next=26;break}D=0;case 16:if(!(D<re.length)){K.next=24;break}if(!this.isCancel()){K.next=19;break}throw this._makeCancelEvent();case 19:return K.next=21,H(this,re[D]);case 21:D++,K.next=16;break;case 24:K.next=40;break;case 26:for(L=[],M=0;M<re.length;M++)L.push(H(this,re[M]));return K.next=30,this._thunkPool(L,X);case 30:if(B=K.sent,V=!0,!(B&&B.length>0)){K.next=37;break}throw this.resetCancelFlag(),ee=B[0],ee.message="Failed to upload some parts with error: "+ee.toString()+" part_num: "+ee.partNum,ee;case 37:if(!this.isCancel()){K.next=40;break}throw L=null,this._makeCancelEvent();case 40:return K.next=42,this.completeMultipartUpload(P,b,I,m);case 42:return K.abrupt("return",K.sent);case 43:case"end":return K.stop()}},E,this)}),o.file=function(E){return typeof File!="undefined"&&E instanceof File},o.blob=function(E){return typeof Blob!="undefined"&&E instanceof Blob},w._getFileSize=e.default.mark(function E(T){var m;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!o.buffer(T)){_.next=4;break}return _.abrupt("return",T.length);case 4:if(!o.blob(T)&&!o.file(T)){_.next=6;break}return _.abrupt("return",T.size);case 6:if(!o.string(T)){_.next=11;break}return _.next=9,this._statFile(T);case 9:return m=_.sent,_.abrupt("return",m.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return _.stop()}},E,this)});var y=n("stream"),f=y.Readable;s.inherits(a,f),a.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var T=!0;T&&this.fileBuffer&&this.start<this.fileBuffer.length;){var m=this.start,_=m+E;_=_>this.fileBuffer.length?this.fileBuffer.length:_,this.start=_,T=this.push(this.fileBuffer.slice(m,_))}},a.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);E=E||16384;var T=this;this.reader.onload=function(m){T.fileBuffer=new d(new Uint8Array(m.target.result)),T.file=null,T.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},w._createStream=function(E,T,m){if(o.blob(E)||o.file(E))return new a(E.slice(T,m));throw new Error("_createStream requires File/String.")},w._getPartSize=function(E,T){return T?Math.max(Math.ceil(E/1e4),T):1048576},w._divideParts=function(E,T){for(var m=Math.ceil(E/T),_=[],C=0;C<m;C++){var j=T*C,b=Math.min(j+T,E);_.push({start:j,end:b})}return _},w._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(n,O,S){"use strict";function d(T){return T&&T.__esModule?T:{default:T}}var v=n("babel-runtime/core-js/object/keys"),a=d(v),i=n("babel-runtime/regenerator"),p=d(i),r=n("debug")("ali-oss:object"),e=n("utility"),o=n("fs"),s=n("is-type-of"),l=n("url"),h=n("copy-to"),c=n("path"),w=n("mime"),y=n("../common/callback"),f=n("../common/signUtils"),E=S;E.append=p.default.mark(function T(m,_,C){var j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return C=C||{},C.position===void 0&&(C.position="0"),C.subres={append:"",position:C.position},C.method="POST",b.next=6,this.put(m,_,C);case 6:return j=b.sent,j.nextAppendPosition=j.res.headers["x-oss-next-append-position"],b.abrupt("return",j);case 9:case"end":return b.stop()}},T,this)}),E.put=p.default.mark(function T(m,_,C){var j,b,R,P,I,N;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(j=void 0,C=C||{},!s.buffer(_)){G.next=6;break}j=_,G.next=18;break;case 6:if(!s.blob(_)&&!s.file(_)){G.next=17;break}return C.mime||(s.file(_)?C.mime=w.getType(c.extname(_.name)):C.mime=_.type),b=this._createStream(_,0,_.size),G.next=11,this._getFileSize(_);case 11:return C.contentLength=G.sent,G.next=14,this.putStream(m,b,C);case 14:return G.abrupt("return",G.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),R=C.method||"PUT",P=this._objectRequestParams(R,m,C),y.encodeCallback(P,C),P.mime=C.mime,P.content=j,P.successStatuses=[200],G.next=28,this.request(P);case 28:return I=G.sent,N={name:m,url:this._objectUrl(m),res:I.res},P.headers&&P.headers["x-oss-callback"]&&(N.data=JSON.parse(I.data.toString())),G.abrupt("return",N);case 32:case"end":return G.stop()}},T,this)}),E.putStream=p.default.mark(function T(m,_,C){var j,b,R,P;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return C=C||{},C.headers=C.headers||{},C.contentLength?C.headers["Content-Length"]=C.contentLength:C.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(C.meta,C.headers),j=C.method||"PUT",b=this._objectRequestParams(j,m,C),y.encodeCallback(b,C),b.mime=C.mime,b.stream=_,b.successStatuses=[200],I.next=12,this.request(b);case 12:return R=I.sent,P={name:m,url:this._objectUrl(m),res:R.res},b.headers&&b.headers["x-oss-callback"]&&(P.data=JSON.parse(R.data.toString())),I.abrupt("return",P);case 16:case"end":return I.stop()}},T,this)}),E.head=p.default.mark(function T(m,_){var C,j,b;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return C=this._objectRequestParams("HEAD",m,_),C.successStatuses=[200,304],R.next=4,this.request(C);case 4:return j=R.sent,b={meta:null,res:j.res,status:j.status},j.status===200&&(0,a.default)(j.headers).forEach(function(P){P.indexOf("x-oss-meta-")===0&&(b.meta||(b.meta={}),b.meta[P.substring(11)]=j.headers[P])}),R.abrupt("return",b);case 8:case"end":return R.stop()}},T,this)}),E.get=p.default.mark(function T(m,_,C){var j,b,R,P;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return j=null,b=!1,s.writableStream(_)?j=_:s.string(_)?(j=o.createWriteStream(_),b=!0):C=_,C=C||{},C.process&&(C.subres=C.subres||{},C.subres["x-oss-process"]=C.process),R=void 0,I.prev=6,P=this._objectRequestParams("GET",m,C),P.writeStream=j,P.successStatuses=[200,206,304],I.next=12,this.request(P);case 12:R=I.sent,b&&j.destroy(),I.next=24;break;case 16:if(I.prev=16,I.t0=I.catch(6),!b){I.next=23;break}return j.destroy(),r("get error: %s, delete the exists file %s",I.t0,_),I.next=23,this._deleteFileSafe(_);case 23:throw I.t0;case 24:return I.abrupt("return",{res:R.res,content:R.data});case 25:case"end":return I.stop()}},T,this,[[6,16]])}),E.getStream=p.default.mark(function T(m,_){var C,j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},C=this._objectRequestParams("GET",m,_),C.customResponse=!0,C.successStatuses=[200,206,304],b.next=6,this.request(C);case 6:return j=b.sent,b.abrupt("return",{stream:j.res,res:{status:j.status,headers:j.headers}});case 8:case"end":return b.stop()}},T,this)}),E.delete=p.default.mark(function T(m,_){var C,j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return C=this._objectRequestParams("DELETE",m,_),C.successStatuses=[204],b.next=4,this.request(C);case 4:return j=b.sent,b.abrupt("return",{res:j.res});case 6:case"end":return b.stop()}},T,this)}),E.deleteMulti=p.default.mark(function T(m,_){var C,j,b,R,P,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:for(_=_||{},C=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,_.quiet?C+=` <Quiet>true</Quiet>
|
|
|
`:C+=` <Quiet>false</Quiet>
|
|
|
`,j=0;j<m.length;j++)C+=" <Object><Key>"+e.escape(this._objectName(m[j]))+`</Key></Object>
|
|
|
`;return C+="</Delete>",r("delete multi objects: %s",C),_.subres="delete",b=this._objectRequestParams("POST","",_),b.mime="xml",b.content=C,b.xmlResponse=!0,b.successStatuses=[200],N.next=14,this.request(b);case 14:return R=N.sent,P=R.data,I=P&&P.Deleted||null,I&&(Array.isArray(I)||(I=[I]),I=I.map(function(G){return G.Key})),N.abrupt("return",{res:R.res,deleted:I});case 19:case"end":return N.stop()}},T,this)}),E.copy=p.default.mark(function T(m,_,C){var j,b,R;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return C=C||{},C.headers=C.headers||{},(0,a.default)(C.headers).forEach(function(I){C.headers["x-oss-copy-source-"+I.toLowerCase()]=C.headers[I]}),C.meta&&(C.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(C.meta,C.headers),_=_[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(_):"/"+encodeURIComponent(_.slice(1)),C.headers["x-oss-copy-source"]=_,j=this._objectRequestParams("PUT",m,C),j.xmlResponse=!0,j.successStatuses=[200,304],P.next=12,this.request(j);case 12:return b=P.sent,R=b.data,R&&(R={etag:R.ETag,lastModified:R.LastModified}),P.abrupt("return",{data:R,res:b.res});case 16:case"end":return P.stop()}},T,this)}),E.putMeta=p.default.mark(function T(m,_,C){return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,this.copy(m,m,{meta:_||{},timeout:C&&C.timeout,ctx:C&&C.ctx});case 2:return j.abrupt("return",j.sent);case 3:case"end":return j.stop()}},T,this)}),E.list=p.default.mark(function T(m,_){var C,j,b,R,P;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return C=this._objectRequestParams("GET","",_),C.query=m,C.xmlResponse=!0,C.successStatuses=[200],I.next=6,this.request(C);case 6:return j=I.sent,b=j.data.Contents,R=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(N){return{name:N.Key,url:R._objectUrl(N.Key),lastModified:N.LastModified,etag:N.ETag,type:N.Type,size:Number(N.Size),storageClass:N.StorageClass,owner:{id:N.Owner.ID,displayName:N.Owner.DisplayName}}})),P=j.data.CommonPrefixes||null,P&&(Array.isArray(P)||(P=[P]),P=P.map(function(N){return N.Prefix})),I.abrupt("return",{res:j.res,objects:b,prefixes:P,nextMarker:j.data.NextMarker||null,isTruncated:j.data.IsTruncated==="true"});case 13:case"end":return I.stop()}},T,this)}),E.putACL=p.default.mark(function T(m,_,C){var j,b;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return C=C||{},C.subres="acl",C.headers=C.headers||{},C.headers["x-oss-object-acl"]=_,m=this._objectName(m),j=this._objectRequestParams("PUT",m,C),j.successStatuses=[200],R.next=9,this.request(j);case 9:return b=R.sent,R.abrupt("return",{res:b.res});case 11:case"end":return R.stop()}},T,this)}),E.getACL=p.default.mark(function T(m,_){var C,j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},_.subres="acl",m=this._objectName(m),C=this._objectRequestParams("GET",m,_),C.successStatuses=[200],C.xmlResponse=!0,b.next=8,this.request(C);case 8:return j=b.sent,b.abrupt("return",{acl:j.data.AccessControlList.Grant,owner:{id:j.data.Owner.ID,displayName:j.data.Owner.DisplayName},res:j.res});case 10:case"end":return b.stop()}},T,this)}),E.restore=p.default.mark(function T(m,_){var C,j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},_.subres="restore",C=this._objectRequestParams("POST",m,_),C.successStatuses=[202],b.next=6,this.request(C);case 6:return j=b.sent,b.abrupt("return",{res:j.res});case 8:case"end":return b.stop()}},T,this)}),E.signatureUrl=function(T,m){m=m||{},T=this._objectName(T),m.method=m.method||"GET";var _=e.timestamp()+(m.expires||1800),C={bucket:this.options.bucket,object:T},j=this._getResource(C);this.options.stsToken&&(m["security-token"]=this.options.stsToken);var b=f._signatureForURL(this.options.accessKeySecret,m,j,_),R=l.parse(this._getReqUrl(C));return R.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:b.Signature},h(b.subResource).to(R.query),R.format()},E.getObjectUrl=function(T,m){return m?m[m.length-1]!=="/"&&(m+="/"):m=this.options.endpoint.format(),m+this._escape(this._objectName(T))},E._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},E.generateObjectUrl=function(T,m){if(m)m[m.length-1]!=="/"&&(m+="/");else{m=this.options.endpoint.format();var _=l.parse(m),C=this.options.bucket;_.hostname=C+"."+_.hostname,_.host=C+"."+_.host,m=_.format()}return m+this._escape(this._objectName(T))},E._objectRequestParams=function(T,m,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},m=this._objectName(m);var C={object:m,bucket:this.options.bucket,method:T,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(C.headers={},h(_.headers).to(C.headers)),C},E._objectName=function(T){return T.replace(/^\/+/,"")},E._statFile=function(T){return function(m){o.stat(T,m)}},E._convertMetaToHeaders=function(T,m){T&&(0,a.default)(T).forEach(function(_){m["x-oss-meta-"+_]=T[_]})},E._deleteFileSafe=function(T){return function(m){o.exists(T,function(_){_?o.unlink(T,function(C){C&&r("unlink %j error: %s",T,C),m()}):m()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(n,O,S){"use strict";S.version="5.3.1"},{}],6:[function(n,O,S){"use strict";function d(c){return c&&c.__esModule?c:{default:c}}function v(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function a(c){if(!c)return!1;var w=c.constructor;return!!w&&(w.name==="GeneratorFunction"||w.displayName==="GeneratorFunction"||v(w.prototype)||v(c.prototype))}function i(c,w){var y=new c(w),f=(0,s.default)(y),E=(0,s.default)((0,e.default)(y));f.concat(E).forEach(function(T){a(y[T])?this[T]=l.wrap(y[T]).bind(y):this[T]=y[T]},this)}function p(c){if(!(this instanceof p))return new p(c);i.call(this,h,c)}var r=n("babel-runtime/core-js/object/get-prototype-of"),e=d(r),o=n("babel-runtime/core-js/object/keys"),s=d(o),l=n("co"),h=n("./client");O.exports=p,p.STS=function c(w){if(!(this instanceof c))return new c(w);i.call(this,h.STS,w)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,O,S){(function(d){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}var a=n("babel-runtime/core-js/object/keys"),i=v(a),p=n("babel-runtime/core-js/json/stringify"),r=v(p);S.encodeCallback=function(e,o){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&o.callback){var s={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(s.callbackHost=o.callback.host),o.callback.contentType&&(s.callbackBodyType=o.callback.contentType);var l=new d((0,r.default)(s)).toString("base64");if(e.headers["x-oss-callback"]=l,o.callback.customValue){var h={};(0,i.default)(o.callback.customValue).forEach(function(c){h["x:"+c]=o.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new d((0,r.default)(h)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,O,S){"use strict";var d=n("babel-runtime/regenerator"),v=function(r){return r&&r.__esModule?r:{default:r}}(d),a=n("copy-to"),i=n("./callback"),p=S;p.listUploads=v.default.mark(function r(e,o){var s,l,h,c;return v.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return o=o||{},s={},a(o).to(s),s.subres="uploads",l=this._objectRequestParams("GET","",s),l.query=e,l.xmlResponse=!0,l.successStatuses=[200],w.next=10,this.request(l);case 10:return h=w.sent,c=h.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(y){return{name:y.Key,uploadId:y.UploadId,initiated:y.Initiated}}),w.abrupt("return",{res:h.res,uploads:c,bucket:h.data.Bucket,nextKeyMarker:h.data.NextKeyMarker,nextUploadIdMarker:h.data.NextUploadIdMarker,isTruncated:h.data.IsTruncated==="true"});case 15:case"end":return w.stop()}},r,this)}),p.listParts=v.default.mark(function r(e,o,s,l){var h,c,w;return v.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return l=l||{},h={},a(l).to(h),h.subres={uploadId:o},c=this._objectRequestParams("GET",e,h),c.query=s,c.xmlResponse=!0,c.successStatuses=[200],y.next=10,this.request(c);case 10:return w=y.sent,y.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return y.stop()}},r,this)}),p.abortMultipartUpload=v.default.mark(function r(e,o,s){var l,h,c;return v.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return this.cancel(),s=s||{},l={},a(s).to(l),l.subres={uploadId:o},h=this._objectRequestParams("DELETE",e,l),h.successStatuses=[204],w.next=9,this.request(h);case 9:return c=w.sent,w.abrupt("return",{res:c.res});case 11:case"end":return w.stop()}},r,this)}),p.initMultipartUpload=v.default.mark(function r(e,o){var s,l,h;return v.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=o||{},s={},a(o).to(s),s.headers=s.headers||{},this._convertMetaToHeaders(o.meta,s.headers),s.subres="uploads",l=this._objectRequestParams("POST",e,s),l.mime=o.mime,l.xmlResponse=!0,l.successStatuses=[200],c.next=12,this.request(l);case 12:return h=c.sent,c.abrupt("return",{res:h.res,bucket:h.data.Bucket,name:h.data.Key,uploadId:h.data.UploadId});case 14:case"end":return c.stop()}},r,this)}),p.uploadPart=v.default.mark(function r(e,o,s,l,h,c,w){var y;return v.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return y={stream:this._createStream(l,h,c),size:c-h},f.next=3,this._uploadPart(e,o,s,y,w);case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},r,this)}),p.completeMultipartUpload=v.default.mark(function r(e,o,s,l){var h,c,w,y,f,E,T,m;return v.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(h=s.concat().sort(function(C,j){return C.number-j.number}).filter(function(C,j,b){return!j||C.number!==b[j-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,w=0;w<h.length;w++)y=h[w],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+y.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+y.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",l=l||{},f={},a(l).to(f),f.subres={uploadId:o},E=this._objectRequestParams("POST",e,f),i.encodeCallback(E,f),E.mime="xml",E.content=c,E.headers&&E.headers["x-oss-callback"]||(E.xmlResponse=!0),E.successStatuses=[200],_.next=16,this.request(E);case 16:return T=_.sent,m={res:T.res,bucket:E.bucket,name:e,etag:T.res.headers.etag},E.headers&&E.headers["x-oss-callback"]&&(m.data=JSON.parse(T.data.toString())),_.abrupt("return",m);case 20:case"end":return _.stop()}},r,this)}),p._uploadPart=v.default.mark(function r(e,o,s,l,h){var c,w,y;return v.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return h=h||{},c={},a(h).to(c),c.headers={"Content-Length":l.size},c.subres={partNumber:s,uploadId:o},w=this._objectRequestParams("PUT",e,c),w.mime=c.mime,w.stream=l.stream,w.successStatuses=[200],f.next=11,this.request(w);case 11:return y=f.sent,l.stream=null,w.stream=null,f.abrupt("return",{name:e,etag:y.res.headers.etag,res:y.res});case 15:case"end":return f.stop()}},r,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,O,S){(function(d){"use strict";function v(s){return s&&s.__esModule?s:{default:s}}var a=n("babel-runtime/core-js/json/stringify"),i=v(a),p=n("babel-runtime/core-js/object/keys"),r=v(p),e=n("./../../shims/crypto/crypto.js"),o=n("is-type-of");S.buildCanonicalizedResource=function(s,l){var h=""+s,c="?";if(o.string(l)&&l.trim()!=="")h+=c+l;else if(o.array(l))l.sort(),h+=c+l.join("&");else if(l){var w=function(f,E){return f[0]>E[0]?1:f[0]<E[0]?-1:0},y=function(f){h+=c+f,l[f]&&(h+="="+l[f]),c="&"};(0,r.default)(l).sort(w).forEach(y)}return h},S.buildCanonicalString=function(s,l,h,c){h=h||{};var w=h.headers||{},y=[],f={},E=[s.toUpperCase(),w["Content-Md5"]||"",w["Content-Type"]||w["Content-Type".toLowerCase()],c||w["x-oss-date"]];return(0,r.default)(w).forEach(function(T){var m=T.toLowerCase();m.indexOf("x-oss-")===0&&(f[m]=String(w[T]).trim())}),(0,r.default)(f).sort().forEach(function(T){y.push(T+":"+f[T])}),E=E.concat(y),E.push(this.buildCanonicalizedResource(l,h.parameters)),E.join(`
|
|
|
`)},S.computeSignature=function(s,l){return e.createHmac("sha1",s).update(new d(l,"utf8")).digest("base64")},S.authorization=function(s,l,h){return"OSS "+s+":"+this.computeSignature(l,h)},S._signatureForURL=function(s,l,h,c){var w={},y={};if(l.process&&(y["x-oss-process"]=l.process),l.response&&(0,r.default)(l.response).forEach(function(m){var _="response-"+m.toLowerCase();y[_]=l.response[m]}),(0,r.default)(l).forEach(function(m){var _=m.toLowerCase(),C=l[m];_.indexOf("x-oss-")===0?w[_]=C:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?w[m]=C:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(y[_]=C)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(y["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var f={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(f.callbackHost=l.callback.host),l.callback.contentType&&(f.callbackBodyType=l.callback.contentType),y.callback=new d((0,i.default)(f)).toString("base64"),l.callback.customValue){var E={};(0,r.default)(l.callback.customValue).forEach(function(m){E["x:"+m]=l.callback.customValue[m]}),y["callback-var"]=new d((0,i.default)(E)).toString("base64")}}var T=this.buildCanonicalString(l.method,h,{headers:w,parameters:y},c.toString());return{Signature:this.computeSignature(s,T),subResource:y}}}).call(this,n("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(n,O,S){"use strict";var d=n("babel-runtime/regenerator"),v=function(e){return e&&e.__esModule?e:{default:e}}(d),a=n("co"),i=n("co-priority-queue"),p=n("any-promise"),r=S;r._thunkPool=function(e,o){function s(y,f){++c===y.length&&f(w)}function l(y,f){function E(){var b;return v.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:b=void 0;case 1:if(h.isCancel()){R.next=9;break}return R.next=4,_.next();case 4:return b=R.sent,R.next=7,b();case 7:R.next=1;break;case 9:C+=1,C===y&&(_.fns=[],_.buffer=[],f(w));case 11:case"end":return R.stop()}},m,this)}function T(b){console.error(b.stack)}for(var m=v.default.mark(E),_=new i,C=0,j=0;j<y;j++)a(E).catch(T);return function(b,R){return function(P){_.push(v.default.mark(function I(){return v.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,N.t0=P,N.next=4,b;case 4:N.t1=N.sent,(0,N.t0)(null,N.t1),N.next=11;break;case 8:N.prev=8,N.t2=N.catch(0),P(N.t2);case 11:case"end":return N.stop()}},I,this,[[0,8]])}),R)}}}var h=this,c=0,w=[];return new p(function(y){function f(C){return v.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,m(e[C]);case 2:s(e,y);case 3:case"end":return j.stop()}},T,this)}function E(C){w.push(C),s(e,y)}for(var T=v.default.mark(f),m=new l(o,y),_=0;_<e.length;_++)a(f(_)).catch(E)})},r.cancel=function(){this.options.cancelFlag=!0},r.isCancel=function(){return this.options.cancelFlag},r.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,O,S){"use strict";S._isIP=function(d){var v=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,a=/^\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 v.test(d)||a.test(d)}},{}],12:[function(n,O,S){function d(){}O.exports=d,O.exports.HttpsAgent=d},{}],13:[function(n,O,S){O.exports=n("./register")().Promise},{"./register":15}],14:[function(n,O,S){"use strict";var d=null;O.exports=function(v,a){return function(i,p){i=i||null,p=p||{};var r=p.global!==!1;if(d===null&&r&&(d=v["@@any-promise/REGISTRATION"]||null),d!==null&&i!==null&&d.implementation!==i)throw new Error('any-promise already defined as "'+d.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return d===null&&(d=i!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:i}:a(i),r&&(v["@@any-promise/REGISTRATION"]=d)),d}}},{}],15:[function(n,O,S){"use strict";function d(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}O.exports=n("./loader")(window,d)},{"./loader":14}],16:[function(n,O,S){O.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,O,S){O.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,O,S){O.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,O,S){O.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,O,S){O.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,O,S){O.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,O,S){O.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,O,S){O.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,O,S){O.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,O,S){"use strict";S.__esModule=!0,S.default=function(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,O,S){"use strict";S.__esModule=!0;var d=n("../core-js/object/define-property"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);S.default=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,v.default)(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}()},{"../core-js/object/define-property":20}],32:[function(n,O,S){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}S.__esModule=!0;var v=n("../core-js/symbol/iterator"),a=d(v),i=n("../core-js/symbol"),p=d(i),r=typeof p.default=="function"&&typeof a.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":typeof e};S.default=typeof p.default=="function"&&r(a.default)==="symbol"?function(e){return e===void 0?"undefined":r(e)}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":e===void 0?"undefined":r(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,O,S){O.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,O,S){"use strict";function d(y){var f=y.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=y.indexOf("=");return E===-1&&(E=f),[E,E===f?0:4-E%4]}function v(y){var f=d(y),E=f[0],T=f[1];return 3*(E+T)/4-T}function a(y,f,E){return 3*(f+E)/4-E}function i(y){for(var f,E=d(y),T=E[0],m=E[1],_=new l(a(y,T,m)),C=0,j=m>0?T-4:T,b=0;b<j;b+=4)f=s[y.charCodeAt(b)]<<18|s[y.charCodeAt(b+1)]<<12|s[y.charCodeAt(b+2)]<<6|s[y.charCodeAt(b+3)],_[C++]=f>>16&255,_[C++]=f>>8&255,_[C++]=255&f;return m===2&&(f=s[y.charCodeAt(b)]<<2|s[y.charCodeAt(b+1)]>>4,_[C++]=255&f),m===1&&(f=s[y.charCodeAt(b)]<<10|s[y.charCodeAt(b+1)]<<4|s[y.charCodeAt(b+2)]>>2,_[C++]=f>>8&255,_[C++]=255&f),_}function p(y){return o[y>>18&63]+o[y>>12&63]+o[y>>6&63]+o[63&y]}function r(y,f,E){for(var T,m=[],_=f;_<E;_+=3)T=(y[_]<<16&16711680)+(y[_+1]<<8&65280)+(255&y[_+2]),m.push(p(T));return m.join("")}function e(y){for(var f,E=y.length,T=E%3,m=[],_=0,C=E-T;_<C;_+=16383)m.push(r(y,_,_+16383>C?C:_+16383));return T===1?(f=y[E-1],m.push(o[f>>2]+o[f<<4&63]+"==")):T===2&&(f=(y[E-2]<<8)+y[E-1],m.push(o[f>>10]+o[f>>4&63]+o[f<<2&63]+"=")),m.join("")}S.byteLength=v,S.toByteArray=i,S.fromByteArray=e;for(var o=[],s=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,w=h.length;c<w;++c)o[c]=h[c],s[h.charCodeAt(c)]=c;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],35:[function(n,O,S){!function(d,v,a){O!==void 0&&O.exports?O.exports=a():typeof le=="function"&&le.amd?le("bowser",a):d.bowser=a()}(this,0,function(){function d(s){function l(X){var D=s.match(X);return D&&D.length>1&&D[1]||""}function h(X){var D=s.match(X);return D&&D.length>1&&D[2]||""}var c,w=l(/(ipod|iphone|ipad)/i).toLowerCase(),y=/like android/i.test(s),f=!y&&/android/i.test(s),E=/nexus\s*[0-6]\s*/i.test(s),T=!E&&/nexus\s*[0-9]+/i.test(s),m=/CrOS/.test(s),_=/silk/i.test(s),C=/sailfish/i.test(s),j=/tizen/i.test(s),b=/(web|hpw)os/i.test(s),R=/windows phone/i.test(s),P=(/SamsungBrowser/i.test(s),!R&&/windows/i.test(s)),I=!w&&!_&&/macintosh/i.test(s),N=!f&&!C&&!j&&!b&&/linux/i.test(s),G=h(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),V=l(/version\/(\d+(\.\d+)?)/i),H=/tablet/i.test(s)&&!/tablet pc/i.test(s),ie=!H&&/[^-]mobi/i.test(s),F=/xbox/i.test(s);/opera/i.test(s)?c={name:"Opera",opera:e,version:V||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?c={name:"Opera",opera:e,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||V}:/SamsungBrowser/i.test(s)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:V||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(s)?c={name:"Opera Coast",coast:e,version:V||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(s)?c={name:"Yandex Browser",yandexbrowser:e,version:V||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?c={name:"UC Browser",ucbrowser:e,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?c={name:"Maxthon",maxthon:e,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?c={name:"Epiphany",epiphany:e,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?c={name:"Puffin",puffin:e,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?c={name:"Sleipnir",sleipnir:e,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?c={name:"K-Meleon",kMeleon:e,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:R?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},G?(c.msedge=e,c.version=G):(c.msie=e,c.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?c={name:"Internet Explorer",msie:e,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:m?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?c={name:"Microsoft Edge",msedge:e,version:G}:/vivaldi/i.test(s)?c={name:"Vivaldi",vivaldi:e,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||V}:C?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?c={name:"SeaMonkey",seamonkey:e,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(c={name:"Firefox",firefox:e,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(c.firefoxos=e,c.osname="Firefox OS")):_?c={name:"Amazon Silk",silk:e,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?c={name:"PhantomJS",phantom:e,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?c={name:"SlimerJS",slimer:e,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:V||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(c={name:"WebOS",osname:"WebOS",webos:e,version:V||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(c.touchpad=e)):/bada/i.test(s)?c={name:"Bada",osname:"Bada",bada:e,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:j?c={name:"Tizen",osname:"Tizen",tizen:e,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||V}:/qupzilla/i.test(s)?c={name:"QupZilla",qupzilla:e,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||V}:/chromium/i.test(s)?c={name:"Chromium",chromium:e,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||V}:/chrome|crios|crmo/i.test(s)?c={name:"Chrome",chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?c={name:"Android",version:V}:/safari|applewebkit/i.test(s)?(c={name:"Safari",safari:e},V&&(c.version=V)):w?(c={name:w=="iphone"?"iPhone":w=="ipad"?"iPad":"iPod"},V&&(c.version=V)):c=/googlebot/i.test(s)?{name:"Googlebot",googlebot:e,version:l(/googlebot\/(\d+(\.\d+))/i)||V}:{name:l(/^(.*)\/(.*) /),version:h(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&V&&(c.version=V)):!c.opera&&/gecko\//i.test(s)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||l(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!f&&!c.silk?!c.windowsphone&&w?(c[w]=e,c.ios=e,c.osname="iOS"):I?(c.mac=e,c.osname="macOS"):F?(c.xbox=e,c.osname="Xbox"):P?(c.windows=e,c.osname="Windows"):N&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var re="";c.windows?re=function(X){switch(X){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?re=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(re=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),re=re.replace(/[_\s]/g,".")):w?(re=l(/os (\d+([_\s]\d+)*) like mac os x/i),re=re.replace(/[_\s]/g,".")):f?re=l(/android[ \/-](\d+(\.\d+)*)/i):c.webos?re=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?re=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?re=l(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(re=l(/tizen[\/\s](\d+(\.\d+)*)/i)),re&&(c.osversion=re);var Y=!c.windows&&re.split(".")[0];return H||T||w=="ipad"||f&&(Y==3||Y>=4&&!ie)||c.silk?c.tablet=e:(ie||w=="iphone"||w=="ipod"||f||E||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function v(s){return s.split(".").length}function a(s,l){var h,c=[];if(Array.prototype.map)return Array.prototype.map.call(s,l);for(h=0;h<s.length;h++)c.push(l(s[h]));return c}function i(s){for(var l=Math.max(v(s[0]),v(s[1])),h=a(s,function(c){var w=l-v(c);return c+=new Array(w+1).join(".0"),a(c.split("."),function(y){return new Array(20-y.length).join("0")+y}).reverse()});--l>=0;){if(h[0][l]>h[1][l])return 1;if(h[0][l]!==h[1][l])return-1;if(l===0)return 0}}function p(s,l,h){var c=o;typeof l=="string"&&(h=l,l=void 0),l===void 0&&(l=!1),h&&(c=d(h));var w=""+c.version;for(var y in s)if(s.hasOwnProperty(y)&&c[y]){if(typeof s[y]!="string")throw new Error("Browser version in the minVersion map should be a string: "+y+": "+String(s));return i([w,s[y]])<0}return l}function r(s,l,h){return!p(s,l,h)}var e=!0,o=d(typeof navigator!="undefined"&&navigator.userAgent||"");return o.test=function(s){for(var l=0;l<s.length;++l){var h=s[l];if(typeof h=="string"&&h in o)return!0}return!1},o.isUnsupportedBrowser=p,o.compareVersions=i,o.check=r,o._detect=d,o.detect=d,o})},{}],36:[function(n,O,S){},{}],37:[function(n,O,S){function d(o){if(o&&!r(o))throw new Error("Unknown encoding: "+o)}function v(o){return o.toString(this.encoding)}function a(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function i(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}var p=n("buffer").Buffer,r=p.isEncoding||function(o){switch(o&&o.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},e=S.StringDecoder=function(o){switch(this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),d(o),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return void(this.write=v)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(o){for(var s="";this.charLength;){var l=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived<this.charLength)return"";o=o.slice(l,o.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=s.charCodeAt(s.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return s;break}this.charLength+=this.surrogateSize,s=""}this.detectIncompleteChar(o);var h=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,h),h-=this.charReceived),s+=o.toString(this.encoding,0,h);var h=s.length-1,c=s.charCodeAt(h);if(c>=55296&&c<=56319){var w=this.surrogateSize;return this.charLength+=w,this.charReceived+=w,this.charBuffer.copy(this.charBuffer,w,0,w),o.copy(this.charBuffer,0,0,w),s.substring(0,h)}return s},e.prototype.detectIncompleteChar=function(o){for(var s=o.length>=3?3:o.length;s>0;s--){var l=o[o.length-s];if(s==1&&l>>5==6){this.charLength=2;break}if(s<=2&&l>>4==14){this.charLength=3;break}if(s<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=s},e.prototype.end=function(o){var s="";if(o&&o.length&&(s=this.write(o)),this.charReceived){var l=this.charReceived,h=this.charBuffer,c=this.encoding;s+=h.slice(0,l).toString(c)}return s}},{buffer:38}],38:[function(n,O,S){(function(d){"use strict";function v(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,u){if(v()<u)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(u),t.__proto__=i.prototype):(t===null&&(t=new i(u)),t.length=u),t}function i(t,u,A){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,u,A);if(typeof t=="number"){if(typeof u=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,t)}return p(this,t,u,A)}function p(t,u,A,g){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&u instanceof ArrayBuffer?h(t,u,A,g):typeof u=="string"?s(t,u,A):c(t,u)}function r(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,u,A,g){return r(u),u<=0?a(t,u):A!==void 0?typeof g=="string"?a(t,u).fill(A,g):a(t,u).fill(A):a(t,u)}function o(t,u){if(r(u),t=a(t,u<0?0:0|w(u)),!i.TYPED_ARRAY_SUPPORT)for(var A=0;A<u;++A)t[A]=0;return t}function s(t,u,A){if(typeof A=="string"&&A!==""||(A="utf8"),!i.isEncoding(A))throw new TypeError('"encoding" must be a valid string encoding');var g=0|f(u,A);t=a(t,g);var x=t.write(u,A);return x!==g&&(t=t.slice(0,x)),t}function l(t,u){var A=u.length<0?0:0|w(u.length);t=a(t,A);for(var g=0;g<A;g+=1)t[g]=255&u[g];return t}function h(t,u,A,g){if(u.byteLength,A<0||u.byteLength<A)throw new RangeError("'offset' is out of bounds");if(u.byteLength<A+(g||0))throw new RangeError("'length' is out of bounds");return u=A===void 0&&g===void 0?new Uint8Array(u):g===void 0?new Uint8Array(u,A):new Uint8Array(u,A,g),i.TYPED_ARRAY_SUPPORT?(t=u,t.__proto__=i.prototype):t=l(t,u),t}function c(t,u){if(i.isBuffer(u)){var A=0|w(u.length);return t=a(t,A),t.length===0||u.copy(t,0,0,A),t}if(u){if(typeof ArrayBuffer!="undefined"&&u.buffer instanceof ArrayBuffer||"length"in u)return typeof u.length!="number"||q(u.length)?a(t,0):l(t,u);if(u.type==="Buffer"&&Q(u.data))return l(t,u.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),i.alloc(+t)}function f(t,u){if(i.isBuffer(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var A=t.length;if(A===0)return 0;for(var g=!1;;)switch(u){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case void 0:return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return $(t).length;default:if(g)return ae(t).length;u=(""+u).toLowerCase(),g=!0}}function E(t,u,A){var g=!1;if((u===void 0||u<0)&&(u=0),u>this.length)return"";if((A===void 0||A>this.length)&&(A=this.length),A<=0)return"";if(A>>>=0,u>>>=0,A<=u)return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,u,A);case"utf8":case"utf-8":return G(this,u,A);case"ascii":return H(this,u,A);case"latin1":case"binary":return ie(this,u,A);case"base64":return N(this,u,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,u,A);default:if(g)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),g=!0}}function T(t,u,A){var g=t[u];t[u]=t[A],t[A]=g}function m(t,u,A,g,x){if(t.length===0)return-1;if(typeof A=="string"?(g=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,isNaN(A)&&(A=x?0:t.length-1),A<0&&(A=t.length+A),A>=t.length){if(x)return-1;A=t.length-1}else if(A<0){if(!x)return-1;A=0}if(typeof u=="string"&&(u=i.from(u,g)),i.isBuffer(u))return u.length===0?-1:_(t,u,A,g,x);if(typeof u=="number")return u&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(t,u,A):Uint8Array.prototype.lastIndexOf.call(t,u,A):_(t,[u],A,g,x);throw new TypeError("val must be string, number or Buffer")}function _(t,u,A,g,x){function z(ue,ye){return W===1?ue[ye]:ue.readUInt16BE(ye*W)}var W=1,fe=t.length,ce=u.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(t.length<2||u.length<2)return-1;W=2,fe/=2,ce/=2,A/=2}var de;if(x){var he=-1;for(de=A;de<fe;de++)if(z(t,de)===z(u,he===-1?0:de-he)){if(he===-1&&(he=de),de-he+1===ce)return he*W}else he!==-1&&(de-=de-he),he=-1}else for(A+ce>fe&&(A=fe-ce),de=A;de>=0;de--){for(var _e=!0,be=0;be<ce;be++)if(z(t,de+be)!==z(u,be)){_e=!1;break}if(_e)return de}return-1}function C(t,u,A,g){A=Number(A)||0;var x=t.length-A;g?(g=Number(g))>x&&(g=x):g=x;var z=u.length;if(z%2!=0)throw new TypeError("Invalid hex string");g>z/2&&(g=z/2);for(var W=0;W<g;++W){var fe=parseInt(u.substr(2*W,2),16);if(isNaN(fe))return W;t[A+W]=fe}return W}function j(t,u,A,g){return ne(ae(u,t.length-A),t,A,g)}function b(t,u,A,g){return ne(pe(u),t,A,g)}function R(t,u,A,g){return b(t,u,A,g)}function P(t,u,A,g){return ne($(u),t,A,g)}function I(t,u,A,g){return ne(J(u,t.length-A),t,A,g)}function N(t,u,A){return u===0&&A===t.length?U.fromByteArray(t):U.fromByteArray(t.slice(u,A))}function G(t,u,A){A=Math.min(t.length,A);for(var g=[],x=u;x<A;){var z=t[x],W=null,fe=z>239?4:z>223?3:z>191?2:1;if(x+fe<=A){var ce,de,he,_e;switch(fe){case 1:z<128&&(W=z);break;case 2:ce=t[x+1],(192&ce)==128&&(_e=(31&z)<<6|63&ce)>127&&(W=_e);break;case 3:ce=t[x+1],de=t[x+2],(192&ce)==128&&(192&de)==128&&(_e=(15&z)<<12|(63&ce)<<6|63&de)>2047&&(_e<55296||_e>57343)&&(W=_e);break;case 4:ce=t[x+1],de=t[x+2],he=t[x+3],(192&ce)==128&&(192&de)==128&&(192&he)==128&&(_e=(15&z)<<18|(63&ce)<<12|(63&de)<<6|63&he)>65535&&_e<1114112&&(W=_e)}}W===null?(W=65533,fe=1):W>65535&&(W-=65536,g.push(W>>>10&1023|55296),W=56320|1023&W),g.push(W),x+=fe}return V(g)}function V(t){var u=t.length;if(u<=se)return String.fromCharCode.apply(String,t);for(var A="",g=0;g<u;)A+=String.fromCharCode.apply(String,t.slice(g,g+=se));return A}function H(t,u,A){var g="";A=Math.min(t.length,A);for(var x=u;x<A;++x)g+=String.fromCharCode(127&t[x]);return g}function ie(t,u,A){var g="";A=Math.min(t.length,A);for(var x=u;x<A;++x)g+=String.fromCharCode(t[x]);return g}function F(t,u,A){var g=t.length;(!u||u<0)&&(u=0),(!A||A<0||A>g)&&(A=g);for(var x="",z=u;z<A;++z)x+=te(t[z]);return x}function re(t,u,A){for(var g=t.slice(u,A),x="",z=0;z<g.length;z+=2)x+=String.fromCharCode(g[z]+256*g[z+1]);return x}function Y(t,u,A){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+u>A)throw new RangeError("Trying to access beyond buffer length")}function X(t,u,A,g,x,z){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>x||u<z)throw new RangeError('"value" argument is out of bounds');if(A+g>t.length)throw new RangeError("Index out of range")}function D(t,u,A,g){u<0&&(u=65535+u+1);for(var x=0,z=Math.min(t.length-A,2);x<z;++x)t[A+x]=(u&255<<8*(g?x:1-x))>>>8*(g?x:1-x)}function L(t,u,A,g){u<0&&(u=4294967295+u+1);for(var x=0,z=Math.min(t.length-A,4);x<z;++x)t[A+x]=u>>>8*(g?x:3-x)&255}function M(t,u,A,g,x,z){if(A+g>t.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function B(t,u,A,g,x){return x||M(t,u,A,4,34028234663852886e22,-34028234663852886e22),Z.write(t,u,A,g,23,4),A+4}function ee(t,u,A,g,x){return x||M(t,u,A,8,17976931348623157e292,-17976931348623157e292),Z.write(t,u,A,g,52,8),A+8}function K(t){if(t=oe(t).replace(k,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function oe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function te(t){return t<16?"0"+t.toString(16):t.toString(16)}function ae(t,u){u=u||1/0;for(var A,g=t.length,x=null,z=[],W=0;W<g;++W){if((A=t.charCodeAt(W))>55295&&A<57344){if(!x){if(A>56319){(u-=3)>-1&&z.push(239,191,189);continue}if(W+1===g){(u-=3)>-1&&z.push(239,191,189);continue}x=A;continue}if(A<56320){(u-=3)>-1&&z.push(239,191,189),x=A;continue}A=65536+(x-55296<<10|A-56320)}else x&&(u-=3)>-1&&z.push(239,191,189);if(x=null,A<128){if((u-=1)<0)break;z.push(A)}else if(A<2048){if((u-=2)<0)break;z.push(A>>6|192,63&A|128)}else if(A<65536){if((u-=3)<0)break;z.push(A>>12|224,A>>6&63|128,63&A|128)}else{if(!(A<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;z.push(A>>18|240,A>>12&63|128,A>>6&63|128,63&A|128)}}return z}function pe(t){for(var u=[],A=0;A<t.length;++A)u.push(255&t.charCodeAt(A));return u}function J(t,u){for(var A,g,x,z=[],W=0;W<t.length&&!((u-=2)<0);++W)A=t.charCodeAt(W),g=A>>8,x=A%256,z.push(x),z.push(g);return z}function $(t){return U.toByteArray(K(t))}function ne(t,u,A,g){for(var x=0;x<g&&!(x+A>=u.length||x>=t.length);++x)u[x+A]=t[x];return x}function q(t){return t!==t}var U=n("base64-js"),Z=n("ieee754"),Q=n("isarray");S.Buffer=i,S.SlowBuffer=y,S.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=d.TYPED_ARRAY_SUPPORT!==void 0?d.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(u){return!1}}(),S.kMaxLength=v(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,u,A){return p(null,t,u,A)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,u,A){return e(null,t,u,A)},i.allocUnsafe=function(t){return o(null,t)},i.allocUnsafeSlow=function(t){return o(null,t)},i.isBuffer=function(t){return!(t==null||!t._isBuffer)},i.compare=function(t,u){if(!i.isBuffer(t)||!i.isBuffer(u))throw new TypeError("Arguments must be Buffers");if(t===u)return 0;for(var A=t.length,g=u.length,x=0,z=Math.min(A,g);x<z;++x)if(t[x]!==u[x]){A=t[x],g=u[x];break}return A<g?-1:g<A?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,u){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return i.alloc(0);var A;if(u===void 0)for(u=0,A=0;A<t.length;++A)u+=t[A].length;var g=i.allocUnsafe(u),x=0;for(A=0;A<t.length;++A){var z=t[A];if(!i.isBuffer(z))throw new TypeError('"list" argument must be an Array of Buffers');z.copy(g,x),x+=z.length}return g},i.byteLength=f,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<t;u+=2)T(this,u,u+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<t;u+=4)T(this,u,u+3),T(this,u+1,u+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<t;u+=8)T(this,u,u+7),T(this,u+1,u+6),T(this,u+2,u+5),T(this,u+3,u+4);return this},i.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?G(this,0,t):E.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||i.compare(this,t)===0},i.prototype.inspect=function(){var t="",u=S.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,u).match(/.{2}/g).join(" "),this.length>u&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,u,A,g,x){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(u===void 0&&(u=0),A===void 0&&(A=t?t.length:0),g===void 0&&(g=0),x===void 0&&(x=this.length),u<0||A>t.length||g<0||x>this.length)throw new RangeError("out of range index");if(g>=x&&u>=A)return 0;if(g>=x)return-1;if(u>=A)return 1;if(u>>>=0,A>>>=0,g>>>=0,x>>>=0,this===t)return 0;for(var z=x-g,W=A-u,fe=Math.min(z,W),ce=this.slice(g,x),de=t.slice(u,A),he=0;he<fe;++he)if(ce[he]!==de[he]){z=ce[he],W=de[he];break}return z<W?-1:W<z?1:0},i.prototype.includes=function(t,u,A){return this.indexOf(t,u,A)!==-1},i.prototype.indexOf=function(t,u,A){return m(this,t,u,A,!0)},i.prototype.lastIndexOf=function(t,u,A){return m(this,t,u,A,!1)},i.prototype.write=function(t,u,A,g){if(u===void 0)g="utf8",A=this.length,u=0;else if(A===void 0&&typeof u=="string")g=u,A=this.length,u=0;else{if(!isFinite(u))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");u|=0,isFinite(A)?(A|=0,g===void 0&&(g="utf8")):(g=A,A=void 0)}var x=this.length-u;if((A===void 0||A>x)&&(A=x),t.length>0&&(A<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var z=!1;;)switch(g){case"hex":return C(this,t,u,A);case"utf8":case"utf-8":return j(this,t,u,A);case"ascii":return b(this,t,u,A);case"latin1":case"binary":return R(this,t,u,A);case"base64":return P(this,t,u,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,u,A);default:if(z)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),z=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var se=4096;i.prototype.slice=function(t,u){var A=this.length;t=~~t,u=u===void 0?A:~~u,t<0?(t+=A)<0&&(t=0):t>A&&(t=A),u<0?(u+=A)<0&&(u=0):u>A&&(u=A),u<t&&(u=t);var g;if(i.TYPED_ARRAY_SUPPORT)g=this.subarray(t,u),g.__proto__=i.prototype;else{var x=u-t;g=new i(x,void 0);for(var z=0;z<x;++z)g[z]=this[z+t]}return g},i.prototype.readUIntLE=function(t,u,A){t|=0,u|=0,A||Y(t,u,this.length);for(var g=this[t],x=1,z=0;++z<u&&(x*=256);)g+=this[t+z]*x;return g},i.prototype.readUIntBE=function(t,u,A){t|=0,u|=0,A||Y(t,u,this.length);for(var g=this[t+--u],x=1;u>0&&(x*=256);)g+=this[t+--u]*x;return g},i.prototype.readUInt8=function(t,u){return u||Y(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,u){return u||Y(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,u){return u||Y(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,u){return u||Y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,u){return u||Y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,u,A){t|=0,u|=0,A||Y(t,u,this.length);for(var g=this[t],x=1,z=0;++z<u&&(x*=256);)g+=this[t+z]*x;return x*=128,g>=x&&(g-=Math.pow(2,8*u)),g},i.prototype.readIntBE=function(t,u,A){t|=0,u|=0,A||Y(t,u,this.length);for(var g=u,x=1,z=this[t+--g];g>0&&(x*=256);)z+=this[t+--g]*x;return x*=128,z>=x&&(z-=Math.pow(2,8*u)),z},i.prototype.readInt8=function(t,u){return u||Y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,u){u||Y(t,2,this.length);var A=this[t]|this[t+1]<<8;return 32768&A?4294901760|A:A},i.prototype.readInt16BE=function(t,u){u||Y(t,2,this.length);var A=this[t+1]|this[t]<<8;return 32768&A?4294901760|A:A},i.prototype.readInt32LE=function(t,u){return u||Y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,u){return u||Y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,u){return u||Y(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,u){return u||Y(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,u){return u||Y(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,u){return u||Y(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,u,A,g){(t=+t,u|=0,A|=0,!g)&&X(this,t,u,A,Math.pow(2,8*A)-1,0);var x=1,z=0;for(this[u]=255&t;++z<A&&(x*=256);)this[u+z]=t/x&255;return u+A},i.prototype.writeUIntBE=function(t,u,A,g){(t=+t,u|=0,A|=0,!g)&&X(this,t,u,A,Math.pow(2,8*A)-1,0);var x=A-1,z=1;for(this[u+x]=255&t;--x>=0&&(z*=256);)this[u+x]=t/z&255;return u+A},i.prototype.writeUInt8=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[u]=255&t,u+1},i.prototype.writeUInt16LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):D(this,t,u,!0),u+2},i.prototype.writeUInt16BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):D(this,t,u,!1),u+2},i.prototype.writeUInt32LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u+3]=t>>>24,this[u+2]=t>>>16,this[u+1]=t>>>8,this[u]=255&t):L(this,t,u,!0),u+4},i.prototype.writeUInt32BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):L(this,t,u,!1),u+4},i.prototype.writeIntLE=function(t,u,A,g){if(t=+t,u|=0,!g){var x=Math.pow(2,8*A-1);X(this,t,u,A,x-1,-x)}var z=0,W=1,fe=0;for(this[u]=255&t;++z<A&&(W*=256);)t<0&&fe===0&&this[u+z-1]!==0&&(fe=1),this[u+z]=(t/W>>0)-fe&255;return u+A},i.prototype.writeIntBE=function(t,u,A,g){if(t=+t,u|=0,!g){var x=Math.pow(2,8*A-1);X(this,t,u,A,x-1,-x)}var z=A-1,W=1,fe=0;for(this[u+z]=255&t;--z>=0&&(W*=256);)t<0&&fe===0&&this[u+z+1]!==0&&(fe=1),this[u+z]=(t/W>>0)-fe&255;return u+A},i.prototype.writeInt8=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[u]=255&t,u+1},i.prototype.writeInt16LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):D(this,t,u,!0),u+2},i.prototype.writeInt16BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):D(this,t,u,!1),u+2},i.prototype.writeInt32LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8,this[u+2]=t>>>16,this[u+3]=t>>>24):L(this,t,u,!0),u+4},i.prototype.writeInt32BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):L(this,t,u,!1),u+4},i.prototype.writeFloatLE=function(t,u,A){return B(this,t,u,!0,A)},i.prototype.writeFloatBE=function(t,u,A){return B(this,t,u,!1,A)},i.prototype.writeDoubleLE=function(t,u,A){return ee(this,t,u,!0,A)},i.prototype.writeDoubleBE=function(t,u,A){return ee(this,t,u,!1,A)},i.prototype.copy=function(t,u,A,g){if(A||(A=0),g||g===0||(g=this.length),u>=t.length&&(u=t.length),u||(u=0),g>0&&g<A&&(g=A),g===A)return 0;if(t.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("sourceStart out of bounds");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),t.length-u<g-A&&(g=t.length-u+A);var x,z=g-A;if(this===t&&A<u&&u<g)for(x=z-1;x>=0;--x)t[x+u]=this[x+A];else if(z<1e3||!i.TYPED_ARRAY_SUPPORT)for(x=0;x<z;++x)t[x+u]=this[x+A];else Uint8Array.prototype.set.call(t,this.subarray(A,A+z),u);return z},i.prototype.fill=function(t,u,A,g){if(typeof t=="string"){if(typeof u=="string"?(g=u,u=0,A=this.length):typeof A=="string"&&(g=A,A=this.length),t.length===1){var x=t.charCodeAt(0);x<256&&(t=x)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!i.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof t=="number"&&(t&=255);if(u<0||this.length<u||this.length<A)throw new RangeError("Out of range index");if(A<=u)return this;u>>>=0,A=A===void 0?this.length:A>>>0,t||(t=0);var z;if(typeof t=="number")for(z=u;z<A;++z)this[z]=t;else{var W=i.isBuffer(t)?t:ae(new i(t,g).toString()),fe=W.length;for(z=0;z<A-u;++z)this[z+u]=W[z%fe]}return this};var k=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,O,S){O.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(n,O,S){"use strict";var d=function(){this.buffer=[],this.fns=[]};d.prototype.push=function(a,i){if(this.fns.length)return this.fns.shift()(null,a);var p={data:a,priority:i},r=v(this.buffer,p,function(e){return e.priority});this.buffer.splice(r,0,p)},d.prototype.next=function(){var a=this;return function(i){if(a.buffer.length)return i(null,a.buffer.pop().data);a.fns.push(i)}};var v=function(a,i,p){i=p(i);for(var r=0,e=a?a.length:r;r<e;){var o=r+e>>>1;p(a[o])<i?r=o+1:e=o}return r};O.exports=d},{}],41:[function(n,O,S){function d(h){var c=this,w=l.call(arguments,1);return new Promise(function(y,f){function E(_){var C;try{C=h.next(_)}catch(j){return f(j)}m(C)}function T(_){var C;try{C=h.throw(_)}catch(j){return f(j)}m(C)}function m(_){if(_.done)return y(_.value);var C=v.call(c,_.value);return C&&r(C)?C.then(E,T):T(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof h=="function"&&(h=h.apply(c,w)),!h||typeof h.next!="function")return y(h);E()})}function v(h){return h&&(r(h)?h:o(h)||e(h)?d.call(this,h):typeof h=="function"?a.call(this,h):Array.isArray(h)?i.call(this,h):s(h)?p.call(this,h):h)}function a(h){var c=this;return new Promise(function(w,y){h.call(c,function(f,E){if(f)return y(f);arguments.length>2&&(E=l.call(arguments,1)),w(E)})})}function i(h){return Promise.all(h.map(v,this))}function p(h){for(var c=new h.constructor,w=Object.keys(h),y=[],f=0;f<w.length;f++){var E=w[f],T=v.call(this,h[E]);T&&r(T)?function(m,_){c[_]=void 0,y.push(m.then(function(C){c[_]=C}))}(T,E):c[E]=h[E]}return Promise.all(y).then(function(){return c})}function r(h){return typeof h.then=="function"}function e(h){return typeof h.next=="function"&&typeof h.throw=="function"}function o(h){var c=h.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function s(h){return Object==h.constructor}var l=Array.prototype.slice;O.exports=d.default=d.co=d,d.wrap=function(h){function c(){return d.call(this,h.apply(this,arguments))}return c.__generatorFunction__=h,c}},{}],42:[function(n,O,S){O.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(n,O,S){"use strict";function d(i,p){if(!(this instanceof d))return new d(i,p);this.src=i,this._withAccess=p}function v(i,p){return i[p]===void 0&&i.__lookupGetter__(p)===void 0&&i.__lookupSetter__(p)===void 0}var a=Array.prototype.slice;O.exports=d,d.prototype.withAccess=function(i){return this._withAccess=i!==!1,this},d.prototype.pick=function(i){return Array.isArray(i)||(i=a.call(arguments)),i.length&&(this.keys=i),this},d.prototype.to=function(i){if(i=i||{},!this.src)return i;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r<p.length;r++)e=p[r],i[e]===void 0&&(i[e]=this.src[e]);return i}for(var r=0;r<p.length;r++){var e=p[r];if(v(i,e)){var o=this.src.__lookupGetter__(e),s=this.src.__lookupSetter__(e);o&&i.__defineGetter__(e,o),s&&i.__defineSetter__(e,s),o||s||(i[e]=this.src[e])}}return i},d.prototype.toCover=function(i){for(var p=this.keys||Object.keys(this.src),r=0;r<p.length;r++){var e=p[r];delete i[e];var o=this.src.__lookupGetter__(e),s=this.src.__lookupSetter__(e);o&&i.__defineGetter__(e,o),s&&i.__defineSetter__(e,s),o||s||(i[e]=this.src[e])}},d.prototype.override=d.prototype.toCover,d.prototype.and=function(i){var p={};return this.to(p),this.src=i,this.to(p),this.src=p,this}},{}],44:[function(n,O,S){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),O.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,O,S){var d=n("../../modules/_core"),v=d.JSON||(d.JSON={stringify:JSON.stringify});O.exports=function(a){return v.stringify.apply(v,arguments)}},{"../../modules/_core":65}],46:[function(n,O,S){n("../../modules/es6.object.assign"),O.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,O,S){n("../../modules/es6.object.create");var d=n("../../modules/_core").Object;O.exports=function(v,a){return d.create(v,a)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,O,S){n("../../modules/es6.object.define-property");var d=n("../../modules/_core").Object;O.exports=function(v,a,i){return d.defineProperty(v,a,i)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,O,S){n("../../modules/es6.object.get-own-property-names");var d=n("../../modules/_core").Object;O.exports=function(v){return d.getOwnPropertyNames(v)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,O,S){n("../../modules/es6.object.get-prototype-of"),O.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,O,S){n("../../modules/es6.object.keys"),O.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,O,S){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),O.exports=n("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(n,O,S){n("../modules/web.immediate"),O.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,O,S){n("../../modules/es6.string.from-code-point"),O.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,O,S){n("../../modules/es6.function.has-instance"),O.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,O,S){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),O.exports=n("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(n,O,S){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),O.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,O,S){O.exports=function(d){if(typeof d!="function")throw TypeError(d+" is not a function!");return d}},{}],59:[function(n,O,S){O.exports=function(){}},{}],60:[function(n,O,S){O.exports=function(d,v,a,i){if(!(d instanceof v)||i!==void 0&&i in d)throw TypeError(a+": incorrect invocation!");return d}},{}],61:[function(n,O,S){var d=n("./_is-object");O.exports=function(v){if(!d(v))throw TypeError(v+" is not an object!");return v}},{"./_is-object":85}],62:[function(n,O,S){var d=n("./_to-iobject"),v=n("./_to-length"),a=n("./_to-absolute-index");O.exports=function(i){return function(p,r,e){var o,s=d(p),l=v(s.length),h=a(e,l);if(i&&r!=r){for(;l>h;)if((o=s[h++])!=o)return!0}else for(;l>h;h++)if((i||h in s)&&s[h]===r)return i||h||0;return!i&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,O,S){var d=n("./_cof"),v=n("./_wks")("toStringTag"),a=d(function(){return arguments}())=="Arguments",i=function(p,r){try{return p[r]}catch(e){}};O.exports=function(p){var r,e,o;return p===void 0?"Undefined":p===null?"Null":typeof(e=i(r=Object(p),v))=="string"?e:a?d(r):(o=d(r))=="Object"&&typeof r.callee=="function"?"Arguments":o}},{"./_cof":64,"./_wks":131}],64:[function(n,O,S){var d={}.toString;O.exports=function(v){return d.call(v).slice(8,-1)}},{}],65:[function(n,O,S){var d=O.exports={version:"2.5.7"};typeof __e=="number"&&(__e=d)},{}],66:[function(n,O,S){"use strict";var d=n("./_object-dp"),v=n("./_property-desc");O.exports=function(a,i,p){i in a?d.f(a,i,v(0,p)):a[i]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,O,S){var d=n("./_a-function");O.exports=function(v,a,i){if(d(v),a===void 0)return v;switch(i){case 1:return function(p){return v.call(a,p)};case 2:return function(p,r){return v.call(a,p,r)};case 3:return function(p,r,e){return v.call(a,p,r,e)}}return function(){return v.apply(a,arguments)}}},{"./_a-function":58}],68:[function(n,O,S){O.exports=function(d){if(d==null)throw TypeError("Can't call method on "+d);return d}},{}],69:[function(n,O,S){O.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,O,S){var d=n("./_is-object"),v=n("./_global").document,a=d(v)&&d(v.createElement);O.exports=function(i){return a?v.createElement(i):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,O,S){O.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,O,S){var d=n("./_object-keys"),v=n("./_object-gops"),a=n("./_object-pie");O.exports=function(i){var p=d(i),r=v.f;if(r)for(var e,o=r(i),s=a.f,l=0;o.length>l;)s.call(i,e=o[l++])&&p.push(e);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,O,S){var d=n("./_global"),v=n("./_core"),a=n("./_ctx"),i=n("./_hide"),p=n("./_has"),r=function(e,o,s){var l,h,c,w=e&r.F,y=e&r.G,f=e&r.S,E=e&r.P,T=e&r.B,m=e&r.W,_=y?v:v[o]||(v[o]={}),C=_.prototype,j=y?d:f?d[o]:(d[o]||{}).prototype;y&&(s=o);for(l in s)(h=!w&&j&&j[l]!==void 0)&&p(_,l)||(c=h?j[l]:s[l],_[l]=y&&typeof j[l]!="function"?s[l]:T&&h?a(c,d):m&&j[l]==c?function(b){var R=function(P,I,N){if(this instanceof b){switch(arguments.length){case 0:return new b;case 1:return new b(P);case 2:return new b(P,I)}return new b(P,I,N)}return b.apply(this,arguments)};return R.prototype=b.prototype,R}(c):E&&typeof c=="function"?a(Function.call,c):c,E&&((_.virtual||(_.virtual={}))[l]=c,e&r.R&&C&&!C[l]&&i(C,l,c)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,O.exports=r},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,O,S){O.exports=function(d){try{return!!d()}catch(v){return!0}}},{}],75:[function(n,O,S){var d=n("./_ctx"),v=n("./_iter-call"),a=n("./_is-array-iter"),i=n("./_an-object"),p=n("./_to-length"),r=n("./core.get-iterator-method"),e={},o={},S=O.exports=function(s,l,h,c,w){var y,f,E,T,m=w?function(){return s}:r(s),_=d(h,c,l?2:1),C=0;if(typeof m!="function")throw TypeError(s+" is not iterable!");if(a(m)){for(y=p(s.length);y>C;C++)if((T=l?_(i(f=s[C])[0],f[1]):_(s[C]))===e||T===o)return T}else for(E=m.call(s);!(f=E.next()).done;)if((T=v(E,_,f.value,l))===e||T===o)return T};S.BREAK=e,S.RETURN=o},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,O,S){var d=O.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=d)},{}],77:[function(n,O,S){var d={}.hasOwnProperty;O.exports=function(v,a){return d.call(v,a)}},{}],78:[function(n,O,S){var d=n("./_object-dp"),v=n("./_property-desc");O.exports=n("./_descriptors")?function(a,i,p){return d.f(a,i,v(1,p))}:function(a,i,p){return a[i]=p,a}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,O,S){var d=n("./_global").document;O.exports=d&&d.documentElement},{"./_global":76}],80:[function(n,O,S){O.exports=!n("./_descriptors")&&!n("./_fails")(function(){return Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(n,O,S){O.exports=function(d,v,a){var i=a===void 0;switch(v.length){case 0:return i?d():d.call(a);case 1:return i?d(v[0]):d.call(a,v[0]);case 2:return i?d(v[0],v[1]):d.call(a,v[0],v[1]);case 3:return i?d(v[0],v[1],v[2]):d.call(a,v[0],v[1],v[2]);case 4:return i?d(v[0],v[1],v[2],v[3]):d.call(a,v[0],v[1],v[2],v[3])}return d.apply(a,v)}},{}],82:[function(n,O,S){var d=n("./_cof");O.exports=Object("z").propertyIsEnumerable(0)?Object:function(v){return d(v)=="String"?v.split(""):Object(v)}},{"./_cof":64}],83:[function(n,O,S){var d=n("./_iterators"),v=n("./_wks")("iterator"),a=Array.prototype;O.exports=function(i){return i!==void 0&&(d.Array===i||a[v]===i)}},{"./_iterators":91,"./_wks":131}],84:[function(n,O,S){var d=n("./_cof");O.exports=Array.isArray||function(v){return d(v)=="Array"}},{"./_cof":64}],85:[function(n,O,S){O.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},{}],86:[function(n,O,S){var d=n("./_an-object");O.exports=function(v,a,i,p){try{return p?a(d(i)[0],i[1]):a(i)}catch(e){var r=v.return;throw r!==void 0&&d(r.call(v)),e}}},{"./_an-object":61}],87:[function(n,O,S){"use strict";var d=n("./_object-create"),v=n("./_property-desc"),a=n("./_set-to-string-tag"),i={};n("./_hide")(i,n("./_wks")("iterator"),function(){return this}),O.exports=function(p,r,e){p.prototype=d(i,{next:v(1,e)}),a(p,r+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,O,S){"use strict";var d=n("./_library"),v=n("./_export"),a=n("./_redefine"),i=n("./_hide"),p=n("./_iterators"),r=n("./_iter-create"),e=n("./_set-to-string-tag"),o=n("./_object-gpo"),s=n("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};O.exports=function(c,w,y,f,E,T,m){r(y,w,f);var _,C,j,b=function(F){if(!l&&F in N)return N[F];switch(F){case"keys":case"values":return function(){return new y(this,F)}}return function(){return new y(this,F)}},R=w+" Iterator",P=E=="values",I=!1,N=c.prototype,G=N[s]||N["@@iterator"]||E&&N[E],V=G||b(E),H=E?P?b("entries"):V:void 0,ie=w=="Array"&&N.entries||G;if(ie&&(j=o(ie.call(new c)))!==Object.prototype&&j.next&&(e(j,R,!0),d||typeof j[s]=="function"||i(j,s,h)),P&&G&&G.name!=="values"&&(I=!0,V=function(){return G.call(this)}),d&&!m||!l&&!I&&N[s]||i(N,s,V),p[w]=V,p[R]=h,E)if(_={values:P?V:b("values"),keys:T?V:b("keys"),entries:H},m)for(C in _)C in N||a(N,C,_[C]);else v(v.P+v.F*(l||I),w,_);return _}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(n,O,S){var d=n("./_wks")("iterator"),v=!1;try{var a=[7][d]();a.return=function(){v=!0},Array.from(a,function(){throw 2})}catch(i){}O.exports=function(i,p){if(!p&&!v)return!1;var r=!1;try{var e=[7],o=e[d]();o.next=function(){return{done:r=!0}},e[d]=function(){return o},i(e)}catch(s){}return r}},{"./_wks":131}],90:[function(n,O,S){O.exports=function(d,v){return{value:v,done:!!d}}},{}],91:[function(n,O,S){O.exports={}},{}],92:[function(n,O,S){O.exports=!0},{}],93:[function(n,O,S){var d=n("./_uid")("meta"),v=n("./_is-object"),a=n("./_has"),i=n("./_object-dp").f,p=0,r=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return r(Object.preventExtensions({}))}),o=function(w){i(w,d,{value:{i:"O"+ ++p,w:{}}})},s=function(w,y){if(!v(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!a(w,d)){if(!r(w))return"F";if(!y)return"E";o(w)}return w[d].i},l=function(w,y){if(!a(w,d)){if(!r(w))return!0;if(!y)return!1;o(w)}return w[d].w},h=function(w){return e&&c.NEED&&r(w)&&!a(w,d)&&o(w),w},c=O.exports={KEY:d,NEED:!1,fastKey:s,getWeak:l,onFreeze:h}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,O,S){var d=n("./_global"),v=n("./_task").set,a=d.MutationObserver||d.WebKitMutationObserver,i=d.process,p=d.Promise,r=n("./_cof")(i)=="process";O.exports=function(){var e,o,s,l=function(){var y,f;for(r&&(y=i.domain)&&y.exit();e;){f=e.fn,e=e.next;try{f()}catch(E){throw e?s():o=void 0,E}}o=void 0,y&&y.enter()};if(r)s=function(){i.nextTick(l)};else if(!a||d.navigator&&d.navigator.standalone)if(p&&p.resolve){var h=p.resolve(void 0);s=function(){h.then(l)}}else s=function(){v.call(d,l)};else{var c=!0,w=document.createTextNode("");new a(l).observe(w,{characterData:!0}),s=function(){w.data=c=!c}}return function(y){var f={fn:y,next:void 0};o&&(o.next=f),e||(e=f,s()),o=f}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,O,S){"use strict";function d(a){var i,p;this.promise=new a(function(r,e){if(i!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");i=r,p=e}),this.resolve=v(i),this.reject=v(p)}var v=n("./_a-function");O.exports.f=function(a){return new d(a)}},{"./_a-function":58}],96:[function(n,O,S){"use strict";var d=n("./_object-keys"),v=n("./_object-gops"),a=n("./_object-pie"),i=n("./_to-object"),p=n("./_iobject"),r=Object.assign;O.exports=!r||n("./_fails")(function(){var e={},o={},s=Symbol(),l="abcdefghijklmnopqrst";return e[s]=7,l.split("").forEach(function(h){o[h]=h}),r({},e)[s]!=7||Object.keys(r({},o)).join("")!=l})?function(e,o){for(var s=i(e),l=arguments.length,h=1,c=v.f,w=a.f;l>h;)for(var y,f=p(arguments[h++]),E=c?d(f).concat(c(f)):d(f),T=E.length,m=0;T>m;)w.call(f,y=E[m++])&&(s[y]=f[y]);return s}:r},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,O,S){var d=n("./_an-object"),v=n("./_object-dps"),a=n("./_enum-bug-keys"),i=n("./_shared-key")("IE_PROTO"),p=function(){},r=function(){var e,o=n("./_dom-create")("iframe"),s=a.length;for(o.style.display="none",n("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write("<script>document.F=Object</script>"),e.close(),r=e.F;s--;)delete r.prototype[a[s]];return r()};O.exports=Object.create||function(e,o){var s;return e!==null?(p.prototype=d(e),s=new p,p.prototype=null,s[i]=e):s=r(),o===void 0?s:v(s,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,O,S){var d=n("./_an-object"),v=n("./_ie8-dom-define"),a=n("./_to-primitive"),i=Object.defineProperty;S.f=n("./_descriptors")?Object.defineProperty:function(p,r,e){if(d(p),r=a(r,!0),d(e),v)try{return i(p,r,e)}catch(o){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(p[r]=e.value),p}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,O,S){var d=n("./_object-dp"),v=n("./_an-object"),a=n("./_object-keys");O.exports=n("./_descriptors")?Object.defineProperties:function(i,p){v(i);for(var r,e=a(p),o=e.length,s=0;o>s;)d.f(i,r=e[s++],p[r]);return i}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,O,S){var d=n("./_object-pie"),v=n("./_property-desc"),a=n("./_to-iobject"),i=n("./_to-primitive"),p=n("./_has"),r=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;S.f=n("./_descriptors")?e:function(o,s){if(o=a(o),s=i(s,!0),r)try{return e(o,s)}catch(l){}if(p(o,s))return v(!d.f.call(o,s),o[s])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,O,S){var d=n("./_to-iobject"),v=n("./_object-gopn").f,a={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(r){try{return v(r)}catch(e){return i.slice()}};O.exports.f=function(r){return i&&a.call(r)=="[object Window]"?p(r):v(d(r))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,O,S){var d=n("./_object-keys-internal"),v=n("./_enum-bug-keys").concat("length","prototype");S.f=Object.getOwnPropertyNames||function(a){return d(a,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,O,S){S.f=Object.getOwnPropertySymbols},{}],104:[function(n,O,S){var d=n("./_has"),v=n("./_to-object"),a=n("./_shared-key")("IE_PROTO"),i=Object.prototype;O.exports=Object.getPrototypeOf||function(p){return p=v(p),d(p,a)?p[a]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?i:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,O,S){var d=n("./_has"),v=n("./_to-iobject"),a=n("./_array-includes")(!1),i=n("./_shared-key")("IE_PROTO");O.exports=function(p,r){var e,o=v(p),s=0,l=[];for(e in o)e!=i&&d(o,e)&&l.push(e);for(;r.length>s;)d(o,e=r[s++])&&(~a(l,e)||l.push(e));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,O,S){var d=n("./_object-keys-internal"),v=n("./_enum-bug-keys");O.exports=Object.keys||function(a){return d(a,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,O,S){S.f={}.propertyIsEnumerable},{}],108:[function(n,O,S){var d=n("./_export"),v=n("./_core"),a=n("./_fails");O.exports=function(i,p){var r=(v.Object||{})[i]||Object[i],e={};e[i]=p(r),d(d.S+d.F*a(function(){r(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,O,S){O.exports=function(d){try{return{e:!1,v:d()}}catch(v){return{e:!0,v}}}},{}],110:[function(n,O,S){var d=n("./_an-object"),v=n("./_is-object"),a=n("./_new-promise-capability");O.exports=function(i,p){if(d(i),v(p)&&p.constructor===i)return p;var r=a.f(i);return(0,r.resolve)(p),r.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,O,S){O.exports=function(d,v){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:v}}},{}],112:[function(n,O,S){var d=n("./_hide");O.exports=function(v,a,i){for(var p in a)i&&v[p]?v[p]=a[p]:d(v,p,a[p]);return v}},{"./_hide":78}],113:[function(n,O,S){O.exports=n("./_hide")},{"./_hide":78}],114:[function(n,O,S){"use strict";var d=n("./_global"),v=n("./_core"),a=n("./_object-dp"),i=n("./_descriptors"),p=n("./_wks")("species");O.exports=function(r){var e=typeof v[r]=="function"?v[r]:d[r];i&&e&&!e[p]&&a.f(e,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,O,S){var d=n("./_object-dp").f,v=n("./_has"),a=n("./_wks")("toStringTag");O.exports=function(i,p,r){i&&!v(i=r?i:i.prototype,a)&&d(i,a,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,O,S){var d=n("./_shared")("keys"),v=n("./_uid");O.exports=function(a){return d[a]||(d[a]=v(a))}},{"./_shared":117,"./_uid":127}],117:[function(n,O,S){var d=n("./_core"),v=n("./_global"),a=v["__core-js_shared__"]||(v["__core-js_shared__"]={});(O.exports=function(i,p){return a[i]||(a[i]=p!==void 0?p:{})})("versions",[]).push({version:d.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,O,S){var d=n("./_an-object"),v=n("./_a-function"),a=n("./_wks")("species");O.exports=function(i,p){var r,e=d(i).constructor;return e===void 0||(r=d(e)[a])==null?p:v(r)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,O,S){var d=n("./_to-integer"),v=n("./_defined");O.exports=function(a){return function(i,p){var r,e,o=String(v(i)),s=d(p),l=o.length;return s<0||s>=l?a?"":void 0:(r=o.charCodeAt(s),r<55296||r>56319||s+1===l||(e=o.charCodeAt(s+1))<56320||e>57343?a?o.charAt(s):r:a?o.slice(s,s+2):e-56320+(r-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,O,S){var d,v,a,i=n("./_ctx"),p=n("./_invoke"),r=n("./_html"),e=n("./_dom-create"),o=n("./_global"),s=o.process,l=o.setImmediate,h=o.clearImmediate,c=o.MessageChannel,w=o.Dispatch,y=0,f={},E=function(){var m=+this;if(f.hasOwnProperty(m)){var _=f[m];delete f[m],_()}},T=function(m){E.call(m.data)};l&&h||(l=function(m){for(var _=[],C=1;arguments.length>C;)_.push(arguments[C++]);return f[++y]=function(){p(typeof m=="function"?m:Function(m),_)},d(y),y},h=function(m){delete f[m]},n("./_cof")(s)=="process"?d=function(m){s.nextTick(i(E,m,1))}:w&&w.now?d=function(m){w.now(i(E,m,1))}:c?(v=new c,a=v.port2,v.port1.onmessage=T,d=i(a.postMessage,a,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(d=function(m){o.postMessage(m+"","*")},o.addEventListener("message",T,!1)):d="onreadystatechange"in e("script")?function(m){r.appendChild(e("script")).onreadystatechange=function(){r.removeChild(this),E.call(m)}}:function(m){setTimeout(i(E,m,1),0)}),O.exports={set:l,clear:h}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,O,S){var d=n("./_to-integer"),v=Math.max,a=Math.min;O.exports=function(i,p){return i=d(i),i<0?v(i+p,0):a(i,p)}},{"./_to-integer":122}],122:[function(n,O,S){var d=Math.ceil,v=Math.floor;O.exports=function(a){return isNaN(a=+a)?0:(a>0?v:d)(a)}},{}],123:[function(n,O,S){var d=n("./_iobject"),v=n("./_defined");O.exports=function(a){return d(v(a))}},{"./_defined":68,"./_iobject":82}],124:[function(n,O,S){var d=n("./_to-integer"),v=Math.min;O.exports=function(a){return a>0?v(d(a),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,O,S){var d=n("./_defined");O.exports=function(v){return Object(d(v))}},{"./_defined":68}],126:[function(n,O,S){var d=n("./_is-object");O.exports=function(v,a){if(!d(v))return v;var i,p;if(a&&typeof(i=v.toString)=="function"&&!d(p=i.call(v)))return p;if(typeof(i=v.valueOf)=="function"&&!d(p=i.call(v)))return p;if(!a&&typeof(i=v.toString)=="function"&&!d(p=i.call(v)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,O,S){var d=0,v=Math.random();O.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++d+v).toString(36))}},{}],128:[function(n,O,S){var d=n("./_global"),v=d.navigator;O.exports=v&&v.userAgent||""},{"./_global":76}],129:[function(n,O,S){var d=n("./_global"),v=n("./_core"),a=n("./_library"),i=n("./_wks-ext"),p=n("./_object-dp").f;O.exports=function(r){var e=v.Symbol||(v.Symbol=a?{}:d.Symbol||{});r.charAt(0)=="_"||r in e||p(e,r,{value:i.f(r)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,O,S){S.f=n("./_wks")},{"./_wks":131}],131:[function(n,O,S){var d=n("./_shared")("wks"),v=n("./_uid"),a=n("./_global").Symbol,i=typeof a=="function";(O.exports=function(p){return d[p]||(d[p]=i&&a[p]||(i?a:v)("Symbol."+p))}).store=d},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,O,S){var d=n("./_classof"),v=n("./_wks")("iterator"),a=n("./_iterators");O.exports=n("./_core").getIteratorMethod=function(i){if(i!=null)return i[v]||i["@@iterator"]||a[d(i)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,O,S){"use strict";var d=n("./_ctx"),v=n("./_export"),a=n("./_to-object"),i=n("./_iter-call"),p=n("./_is-array-iter"),r=n("./_to-length"),e=n("./_create-property"),o=n("./core.get-iterator-method");v(v.S+v.F*!n("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(s){var l,h,c,w,y=a(s),f=typeof this=="function"?this:Array,E=arguments.length,T=E>1?arguments[1]:void 0,m=T!==void 0,_=0,C=o(y);if(m&&(T=d(T,E>2?arguments[2]:void 0,2)),C==null||f==Array&&p(C))for(l=r(y.length),h=new f(l);l>_;_++)e(h,_,m?T(y[_],_):y[_]);else for(w=C.call(y),h=new f;!(c=w.next()).done;_++)e(h,_,m?i(w,T,[c.value,_],!0):c.value);return h.length=_,h}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,O,S){"use strict";var d=n("./_add-to-unscopables"),v=n("./_iter-step"),a=n("./_iterators"),i=n("./_to-iobject");O.exports=n("./_iter-define")(Array,"Array",function(p,r){this._t=i(p),this._i=0,this._k=r},function(){var p=this._t,r=this._k,e=this._i++;return!p||e>=p.length?(this._t=void 0,v(1)):r=="keys"?v(0,e):r=="values"?v(0,p[e]):v(0,[e,p[e]])},"values"),a.Arguments=a.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,O,S){"use strict";var d=n("./_is-object"),v=n("./_object-gpo"),a=n("./_wks")("hasInstance"),i=Function.prototype;a in i||n("./_object-dp").f(i,a,{value:function(p){if(typeof this!="function"||!d(p))return!1;if(!d(this.prototype))return p instanceof this;for(;p=v(p);)if(this.prototype===p)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,O,S){var d=n("./_export");d(d.S+d.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,O,S){var d=n("./_export");d(d.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,O,S){var d=n("./_export");d(d.S+d.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,O,S){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,O,S){var d=n("./_to-object"),v=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(a){return v(d(a))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,O,S){var d=n("./_to-object"),v=n("./_object-keys");n("./_object-sap")("keys",function(){return function(a){return v(d(a))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,O,S){arguments[4][36][0].apply(S,arguments)},{dup:36}],143:[function(n,O,S){"use strict";var d,v,a,i,p=n("./_library"),r=n("./_global"),e=n("./_ctx"),o=n("./_classof"),s=n("./_export"),l=n("./_is-object"),h=n("./_a-function"),c=n("./_an-instance"),w=n("./_for-of"),y=n("./_species-constructor"),f=n("./_task").set,E=n("./_microtask")(),T=n("./_new-promise-capability"),m=n("./_perform"),_=n("./_user-agent"),C=n("./_promise-resolve"),j=r.TypeError,b=r.process,R=b&&b.versions,P=R&&R.v8||"",I=r.Promise,N=o(b)=="process",G=function(){},V=v=T.f,H=!!function(){try{var M=I.resolve(1),B=(M.constructor={})[n("./_wks")("species")]=function(ee){ee(G,G)};return(N||typeof PromiseRejectionEvent=="function")&&M.then(G)instanceof B&&P.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(ee){}}(),ie=function(M){var B;return!(!l(M)||typeof(B=M.then)!="function")&&B},F=function(M,B){if(!M._n){M._n=!0;var ee=M._c;E(function(){for(var K=M._v,oe=M._s==1,te=0;ee.length>te;)!function(ae){var pe,J,$,ne=oe?ae.ok:ae.fail,q=ae.resolve,U=ae.reject,Z=ae.domain;try{ne?(oe||(M._h==2&&X(M),M._h=1),ne===!0?pe=K:(Z&&Z.enter(),pe=ne(K),Z&&(Z.exit(),$=!0)),pe===ae.promise?U(j("Promise-chain cycle")):(J=ie(pe))?J.call(pe,q,U):q(pe)):U(K)}catch(Q){Z&&!$&&Z.exit(),U(Q)}}(ee[te++]);M._c=[],M._n=!1,B&&!M._h&&re(M)})}},re=function(M){f.call(r,function(){var B,ee,K,oe=M._v,te=Y(M);if(te&&(B=m(function(){N?b.emit("unhandledRejection",oe,M):(ee=r.onunhandledrejection)?ee({promise:M,reason:oe}):(K=r.console)&&K.error&&K.error("Unhandled promise rejection",oe)}),M._h=N||Y(M)?2:1),M._a=void 0,te&&B.e)throw B.v})},Y=function(M){return M._h!==1&&(M._a||M._c).length===0},X=function(M){f.call(r,function(){var B;N?b.emit("rejectionHandled",M):(B=r.onrejectionhandled)&&B({promise:M,reason:M._v})})},D=function(M){var B=this;B._d||(B._d=!0,B=B._w||B,B._v=M,B._s=2,B._a||(B._a=B._c.slice()),F(B,!0))},L=function(M){var B,ee=this;if(!ee._d){ee._d=!0,ee=ee._w||ee;try{if(ee===M)throw j("Promise can't be resolved itself");(B=ie(M))?E(function(){var K={_w:ee,_d:!1};try{B.call(M,e(L,K,1),e(D,K,1))}catch(oe){D.call(K,oe)}}):(ee._v=M,ee._s=1,F(ee,!1))}catch(K){D.call({_w:ee,_d:!1},K)}}};H||(I=function(M){c(this,I,"Promise","_h"),h(M),d.call(this);try{M(e(L,this,1),e(D,this,1))}catch(B){D.call(this,B)}},d=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=n("./_redefine-all")(I.prototype,{then:function(M,B){var ee=V(y(this,I));return ee.ok=typeof M!="function"||M,ee.fail=typeof B=="function"&&B,ee.domain=N?b.domain:void 0,this._c.push(ee),this._a&&this._a.push(ee),this._s&&F(this,!1),ee.promise},catch:function(M){return this.then(void 0,M)}}),a=function(){var M=new d;this.promise=M,this.resolve=e(L,M,1),this.reject=e(D,M,1)},T.f=V=function(M){return M===I||M===i?new a(M):v(M)}),s(s.G+s.W+s.F*!H,{Promise:I}),n("./_set-to-string-tag")(I,"Promise"),n("./_set-species")("Promise"),i=n("./_core").Promise,s(s.S+s.F*!H,"Promise",{reject:function(M){var B=V(this);return(0,B.reject)(M),B.promise}}),s(s.S+s.F*(p||!H),"Promise",{resolve:function(M){return C(p&&this===i?I:this,M)}}),s(s.S+s.F*!(H&&n("./_iter-detect")(function(M){I.all(M).catch(G)})),"Promise",{all:function(M){var B=this,ee=V(B),K=ee.resolve,oe=ee.reject,te=m(function(){var ae=[],pe=0,J=1;w(M,!1,function($){var ne=pe++,q=!1;ae.push(void 0),J++,B.resolve($).then(function(U){q||(q=!0,ae[ne]=U,--J||K(ae))},oe)}),--J||K(ae)});return te.e&&oe(te.v),ee.promise},race:function(M){var B=this,ee=V(B),K=ee.reject,oe=m(function(){w(M,!1,function(te){B.resolve(te).then(ee.resolve,K)})});return oe.e&&K(oe.v),ee.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(n,O,S){var d=n("./_export"),v=n("./_to-absolute-index"),a=String.fromCharCode,i=String.fromCodePoint;d(d.S+d.F*(!!i&&i.length!=1),"String",{fromCodePoint:function(p){for(var r,e=[],o=arguments.length,s=0;o>s;){if(r=+arguments[s++],v(r,1114111)!==r)throw RangeError(r+" is not a valid code point");e.push(r<65536?a(r):a(55296+((r-=65536)>>10),r%1024+56320))}return e.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,O,S){"use strict";var d=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(v){this._t=String(v),this._i=0},function(){var v,a=this._t,i=this._i;return i>=a.length?{value:void 0,done:!0}:(v=d(a,i),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,O,S){"use strict";var d=n("./_global"),v=n("./_has"),a=n("./_descriptors"),i=n("./_export"),p=n("./_redefine"),r=n("./_meta").KEY,e=n("./_fails"),o=n("./_shared"),s=n("./_set-to-string-tag"),l=n("./_uid"),h=n("./_wks"),c=n("./_wks-ext"),w=n("./_wks-define"),y=n("./_enum-keys"),f=n("./_is-array"),E=n("./_an-object"),T=n("./_is-object"),m=n("./_to-iobject"),_=n("./_to-primitive"),C=n("./_property-desc"),j=n("./_object-create"),b=n("./_object-gopn-ext"),R=n("./_object-gopd"),P=n("./_object-dp"),I=n("./_object-keys"),N=R.f,G=P.f,V=b.f,H=d.Symbol,ie=d.JSON,F=ie&&ie.stringify,re=h("_hidden"),Y=h("toPrimitive"),X={}.propertyIsEnumerable,D=o("symbol-registry"),L=o("symbols"),M=o("op-symbols"),B=Object.prototype,ee=typeof H=="function",K=d.QObject,oe=!K||!K.prototype||!K.prototype.findChild,te=a&&e(function(){return j(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a!=7})?function(A,g,x){var z=N(B,g);z&&delete B[g],G(A,g,x),z&&A!==B&&G(B,g,z)}:G,ae=function(A){var g=L[A]=j(H.prototype);return g._k=A,g},pe=ee&&typeof H.iterator=="symbol"?function(A){return typeof A=="symbol"}:function(A){return A instanceof H},J=function(A,g,x){return A===B&&J(M,g,x),E(A),g=_(g,!0),E(x),v(L,g)?(x.enumerable?(v(A,re)&&A[re][g]&&(A[re][g]=!1),x=j(x,{enumerable:C(0,!1)})):(v(A,re)||G(A,re,C(1,{})),A[re][g]=!0),te(A,g,x)):G(A,g,x)},$=function(A,g){E(A);for(var x,z=y(g=m(g)),W=0,fe=z.length;fe>W;)J(A,x=z[W++],g[x]);return A},ne=function(A,g){return g===void 0?j(A):$(j(A),g)},q=function(A){var g=X.call(this,A=_(A,!0));return!(this===B&&v(L,A)&&!v(M,A))&&(!(g||!v(this,A)||!v(L,A)||v(this,re)&&this[re][A])||g)},U=function(A,g){if(A=m(A),g=_(g,!0),A!==B||!v(L,g)||v(M,g)){var x=N(A,g);return!x||!v(L,g)||v(A,re)&&A[re][g]||(x.enumerable=!0),x}},Z=function(A){for(var g,x=V(m(A)),z=[],W=0;x.length>W;)v(L,g=x[W++])||g==re||g==r||z.push(g);return z},Q=function(A){for(var g,x=A===B,z=V(x?M:m(A)),W=[],fe=0;z.length>fe;)!v(L,g=z[fe++])||x&&!v(B,g)||W.push(L[g]);return W};ee||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var A=l(arguments.length>0?arguments[0]:void 0),g=function(x){this===B&&g.call(M,x),v(this,re)&&v(this[re],A)&&(this[re][A]=!1),te(this,A,C(1,x))};return a&&oe&&te(B,A,{configurable:!0,set:g}),ae(A)},p(H.prototype,"toString",function(){return this._k}),R.f=U,P.f=J,n("./_object-gopn").f=b.f=Z,n("./_object-pie").f=q,n("./_object-gops").f=Q,a&&!n("./_library")&&p(B,"propertyIsEnumerable",q,!0),c.f=function(A){return ae(h(A))}),i(i.G+i.W+i.F*!ee,{Symbol:H});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),k=0;se.length>k;)h(se[k++]);for(var t=I(h.store),u=0;t.length>u;)w(t[u++]);i(i.S+i.F*!ee,"Symbol",{for:function(A){return v(D,A+="")?D[A]:D[A]=H(A)},keyFor:function(A){if(!pe(A))throw TypeError(A+" is not a symbol!");for(var g in D)if(D[g]===A)return g},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i(i.S+i.F*!ee,"Object",{create:ne,defineProperty:J,defineProperties:$,getOwnPropertyDescriptor:U,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),ie&&i(i.S+i.F*(!ee||e(function(){var A=H();return F([A])!="[null]"||F({a:A})!="{}"||F(Object(A))!="{}"})),"JSON",{stringify:function(A){for(var g,x,z=[A],W=1;arguments.length>W;)z.push(arguments[W++]);if(x=g=z[1],(T(g)||A!==void 0)&&!pe(A))return f(g)||(g=function(fe,ce){if(typeof x=="function"&&(ce=x.call(this,fe,ce)),!pe(ce))return ce}),z[1]=g,F.apply(ie,z)}}),H.prototype[Y]||n("./_hide")(H.prototype,Y,H.prototype.valueOf),s(H,"Symbol"),s(Math,"Math",!0),s(d.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(n,O,S){"use strict";var d=n("./_export"),v=n("./_core"),a=n("./_global"),i=n("./_species-constructor"),p=n("./_promise-resolve");d(d.P+d.R,"Promise",{finally:function(r){var e=i(this,v.Promise||a.Promise),o=typeof r=="function";return this.then(o?function(s){return p(e,r()).then(function(){return s})}:r,o?function(s){return p(e,r()).then(function(){throw s})}:r)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,O,S){"use strict";var d=n("./_export"),v=n("./_new-promise-capability"),a=n("./_perform");d(d.S,"Promise",{try:function(i){var p=v.f(this),r=a(i);return(r.e?p.reject:p.resolve)(r.v),p.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,O,S){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,O,S){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,O,S){n("./es6.array.iterator");for(var d=n("./_global"),v=n("./_hide"),a=n("./_iterators"),i=n("./_wks")("toStringTag"),p="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),r=0;r<p.length;r++){var e=p[r],o=d[e],s=o&&o.prototype;s&&!s[i]&&v(s,i,e),a[e]=a.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,O,S){var d=n("./_export"),v=n("./_task");d(d.G+d.B,{setImmediate:v.set,clearImmediate:v.clear})},{"./_export":73,"./_task":120}],153:[function(n,O,S){(function(d){"use strict";function v(_){return Array.isArray?Array.isArray(_):E(_)==="[object Array]"}function a(_){return typeof _=="boolean"}function i(_){return _===null}function p(_){return _==null}function r(_){return typeof _=="number"}function e(_){return typeof _=="string"}function o(_){return(_===void 0?"undefined":(0,m.default)(_))==="symbol"}function s(_){return _===void 0}function l(_){return E(_)==="[object RegExp]"}function h(_){return(_===void 0?"undefined":(0,m.default)(_))==="object"&&_!==null}function c(_){return E(_)==="[object Date]"}function w(_){return E(_)==="[object Error]"||_ instanceof Error}function y(_){return typeof _=="function"}function f(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,m.default)(_))==="symbol"||_===void 0}function E(_){return Object.prototype.toString.call(_)}var T=n("babel-runtime/helpers/typeof"),m=function(_){return _&&_.__esModule?_:{default:_}}(T);S.isArray=v,S.isBoolean=a,S.isNull=i,S.isNullOrUndefined=p,S.isNumber=r,S.isString=e,S.isSymbol=o,S.isUndefined=s,S.isRegExp=l,S.isObject=h,S.isDate=c,S.isError=w,S.isFunction=y,S.isPrimitive=f,S.isBuffer=d.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,O,S){"use strict";var d=n("babel-runtime/helpers/typeof"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);!function(a){function i(s,l){for(s=String(s),l=l||2;s.length<l;)s="0"+s;return s}function p(s){var l=new Date(s.getFullYear(),s.getMonth(),s.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var h=new Date(l.getFullYear(),0,4);h.setDate(h.getDate()-(h.getDay()+6)%7+3);var c=l.getTimezoneOffset()-h.getTimezoneOffset();l.setHours(l.getHours()-c);var w=(l-h)/6048e5;return 1+Math.floor(w)}function r(s){var l=s.getDay();return l===0&&(l=7),l}function e(s){return s===null?"null":s===void 0?"undefined":(s===void 0?"undefined":(0,v.default)(s))!=="object"?s===void 0?"undefined":(0,v.default)(s):Array.isArray(s)?"array":{}.toString.call(s).slice(8,-1).toLowerCase()}var o=function(){var s=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g;return function(c,w,y,f){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(w=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");w=String(o.masks[w]||w||o.masks.default);var E=w.slice(0,4);E!=="UTC:"&&E!=="GMT:"||(w=w.slice(4),y=!0,E==="GMT:"&&(f=!0));var T=y?"getUTC":"get",m=c[T+"Date"](),_=c[T+"Day"](),C=c[T+"Month"](),j=c[T+"FullYear"](),b=c[T+"Hours"](),R=c[T+"Minutes"](),P=c[T+"Seconds"](),I=c[T+"Milliseconds"](),N=y?0:c.getTimezoneOffset(),G=p(c),V=r(c),H={d:m,dd:i(m),ddd:o.i18n.dayNames[_],dddd:o.i18n.dayNames[_+7],m:C+1,mm:i(C+1),mmm:o.i18n.monthNames[C],mmmm:o.i18n.monthNames[C+12],yy:String(j).slice(2),yyyy:j,h:b%12||12,hh:i(b%12||12),H:b,HH:i(b),M:R,MM:i(R),s:P,ss:i(P),l:i(I,3),L:i(Math.round(I/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:f?"GMT":y?"UTC":(String(c).match(l)||[""]).pop().replace(h,""),o:(N>0?"-":"+")+i(100*Math.floor(Math.abs(N)/60)+Math.abs(N)%60,4),S:["th","st","nd","rd"][m%10>3?0:(m%100-m%10!=10)*m%10],W:G,N:V};return w.replace(s,function(ie){return ie in H?H[ie]:ie.slice(1,ie.length-1)})}}();o.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},o.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof le=="function"&&le.amd?le(function(){return o}):(S===void 0?"undefined":(0,v.default)(S))==="object"?O.exports=o:a.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,O,S){(function(d){function v(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+S.humanize(this.diff),o){var s="color: "+this.color;e.splice(1,0,s,"color: inherit");var l=0,h=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(l++,c==="%c"&&(h=l))}),e.splice(h,0,s)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(e){try{e==null?S.storage.removeItem("debug"):S.storage.debug=e}catch(o){}}function r(){var e;try{e=S.storage.debug}catch(o){}return!e&&d!==void 0&&"env"in d&&(e=d.env.DEBUG),e}S=O.exports=n("./debug"),S.log=i,S.formatArgs=a,S.save=p,S.load=r,S.useColors=v,S.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),S.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],S.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},S.enable(r())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,O,S){function d(o){var s,l=0;for(s in o)l=(l<<5)-l+o.charCodeAt(s),l|=0;return S.colors[Math.abs(l)%S.colors.length]}function v(o){function s(){if(s.enabled){var l=s,h=+new Date,c=h-(e||h);l.diff=c,l.prev=e,l.curr=h,e=h;for(var w=new Array(arguments.length),y=0;y<w.length;y++)w[y]=arguments[y];w[0]=S.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var f=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(E,T){if(E==="%%")return E;f++;var m=S.formatters[T];if(typeof m=="function"){var _=w[f];E=m.call(l,_),w.splice(f,1),f--}return E}),S.formatArgs.call(l,w),(s.log||S.log||console.log.bind(console)).apply(l,w)}}return s.namespace=o,s.enabled=S.enabled(o),s.useColors=S.useColors(),s.color=d(o),typeof S.init=="function"&&S.init(s),s}function a(o){S.save(o),S.names=[],S.skips=[];for(var s=(typeof o=="string"?o:"").split(/[\s,]+/),l=s.length,h=0;h<l;h++)s[h]&&(o=s[h].replace(/\*/g,".*?"),o[0]==="-"?S.skips.push(new RegExp("^"+o.substr(1)+"$")):S.names.push(new RegExp("^"+o+"$")))}function i(){S.enable("")}function p(o){var s,l;for(s=0,l=S.skips.length;s<l;s++)if(S.skips[s].test(o))return!1;for(s=0,l=S.names.length;s<l;s++)if(S.names[s].test(o))return!0;return!1}function r(o){return o instanceof Error?o.stack||o.message:o}S=O.exports=v.debug=v.default=v,S.coerce=r,S.disable=i,S.enable=a,S.enabled=p,S.humanize=n("ms"),S.names=[],S.skips=[],S.formatters={};var e},{ms:169}],157:[function(n,O,S){"use strict";function d(a){var i=""+a,p=v.exec(i);if(!p)return i;var r,e="",o=0,s=0;for(o=p.index;o<i.length;o++){switch(i.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==o&&(e+=i.substring(s,o)),s=o+1,e+=r}return s!==o?e+i.substring(s,o):e}var v=/["'&<>]/;O.exports=d},{}],158:[function(n,O,S){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function v(r){return typeof r=="function"}function a(r){return typeof r=="number"}function i(r){return typeof r=="object"&&r!==null}function p(r){return r===void 0}O.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(r){if(!a(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},d.prototype.emit=function(r){var e,o,s,l,h,c;if(this._events||(this._events={}),r==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var w=new Error('Uncaught, unspecified "error" event. ('+e+")");throw w.context=e,w}if(o=this._events[r],p(o))return!1;if(v(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),o.apply(this,l)}else if(i(o))for(l=Array.prototype.slice.call(arguments,1),c=o.slice(),s=c.length,h=0;h<s;h++)c[h].apply(this,l);return!0},d.prototype.addListener=function(r,e){var o;if(!v(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,v(e.listener)?e.listener:e),this._events[r]?i(this._events[r])?this._events[r].push(e):this._events[r]=[this._events[r],e]:this._events[r]=e,i(this._events[r])&&!this._events[r].warned&&(o=p(this._maxListeners)?d.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[r].length>o&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),typeof console.trace=="function"&&console.trace()),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(r,e){function o(){this.removeListener(r,o),s||(s=!0,e.apply(this,arguments))}if(!v(e))throw TypeError("listener must be a function");var s=!1;return o.listener=e,this.on(r,o),this},d.prototype.removeListener=function(r,e){var o,s,l,h;if(!v(e))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(o=this._events[r],l=o.length,s=-1,o===e||v(o.listener)&&o.listener===e)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,e);else if(i(o)){for(h=l;h-- >0;)if(o[h]===e||o[h].listener&&o[h].listener===e){s=h;break}if(s<0)return this;o.length===1?(o.length=0,delete this._events[r]):o.splice(s,1),this._events.removeListener&&this.emit("removeListener",r,e)}return this},d.prototype.removeAllListeners=function(r){var e,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[r]&&delete this._events[r],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[r],v(o))this.removeListener(r,o);else if(o)for(;o.length;)this.removeListener(r,o[o.length-1]);return delete this._events[r],this},d.prototype.listeners=function(r){return this._events&&this._events[r]?v(this._events[r])?[this._events[r]]:this._events[r].slice():[]},d.prototype.listenerCount=function(r){if(this._events){var e=this._events[r];if(v(e))return 1;if(e)return e.length}return 0},d.listenerCount=function(r,e){return r.listenerCount(e)}},{}],159:[function(n,O,S){var d=n("http"),v=O.exports;for(var a in d)d.hasOwnProperty(a)&&(v[a]=d[a]);v.request=function(i,p){return i||(i={}),i.scheme="https",i.protocol="https:",d.request.call(this,i,p)}},{http:196}],160:[function(n,O,S){"use strict";var d=n("util"),v=n("ms");O.exports=function(a){if(typeof a=="number")return a;var i=v(a);if(i===void 0){var p=new Error(d.format("humanize-ms(%j) result undefined",a));console.warn(p.stack)}return i}},{ms:169,util:207}],161:[function(n,O,S){S.read=function(d,v,a,i,p){var r,e,o=8*p-i-1,s=(1<<o)-1,l=s>>1,h=-7,c=a?p-1:0,w=a?-1:1,y=d[v+c];for(c+=w,r=y&(1<<-h)-1,y>>=-h,h+=o;h>0;r=256*r+d[v+c],c+=w,h-=8);for(e=r&(1<<-h)-1,r>>=-h,h+=i;h>0;e=256*e+d[v+c],c+=w,h-=8);if(r===0)r=1-l;else{if(r===s)return e?NaN:1/0*(y?-1:1);e+=Math.pow(2,i),r-=l}return(y?-1:1)*e*Math.pow(2,r-i)},S.write=function(d,v,a,i,p,r){var e,o,s,l=8*r-p-1,h=(1<<l)-1,c=h>>1,w=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:r-1,f=i?1:-1,E=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(o=isNaN(v)?1:0,e=h):(e=Math.floor(Math.log(v)/Math.LN2),v*(s=Math.pow(2,-e))<1&&(e--,s*=2),v+=e+c>=1?w/s:w*Math.pow(2,1-c),v*s>=2&&(e++,s/=2),e+c>=h?(o=0,e=h):e+c>=1?(o=(v*s-1)*Math.pow(2,p),e+=c):(o=v*Math.pow(2,c-1)*Math.pow(2,p),e=0));p>=8;d[a+y]=255&o,y+=f,o/=256,p-=8);for(e=e<<p|o,l+=p;l>0;d[a+y]=255&e,y+=f,e/=256,l-=8);d[a+y-f]|=128*E}},{}],162:[function(n,O,S){typeof Object.create=="function"?O.exports=function(d,v){d.super_=v,d.prototype=Object.create(v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:O.exports=function(d,v){d.super_=v;var a=function(){};a.prototype=v.prototype,d.prototype=new a,d.prototype.constructor=d}},{}],163:[function(n,O,S){function d(a){return!!a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function v(a){return typeof a.readFloatLE=="function"&&typeof a.slice=="function"&&d(a.slice(0,0))}O.exports=function(a){return a!=null&&(d(a)||v(a)||!!a._isBuffer)}},{}],164:[function(n,O,S){!function(d){function v(p){return i.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function a(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(i.call(p))||/^.*classCallCheck\(/.test(v(p)))}var i=Function.prototype.toString;S!==void 0?(O!==void 0&&O.exports&&(S=O.exports=a),S.isClass=a):typeof le=="function"&&le.amd?le([],function(){return a}):d.isClass=a}(this)},{}],165:[function(n,O,S){"use strict";function d(r){var e=r.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var v=n("core-util-is"),a=n("isstream"),i=n("is-class");Object.keys(v).map(function(r){S[d(r)]=v[r]}),S.stream=a,S.readableStream=a.isReadable,S.writableStream=a.isWritable,S.duplexStream=a.isDuplex,S.class=i,S.finite=function(r){return Number.isFinite(r)},S.NaN=function(r){return Number.isNaN(r)},S.generator=function(r){return r&&typeof r.next=="function"&&typeof r.throw=="function"},S.generatorFunction=function(r){return r&&r.constructor&&r.constructor.name==="GeneratorFunction"},S.asyncFunction=function(r){return r&&r.constructor&&r.constructor.name==="AsyncFunction"},S.promise=function(r){return r&&typeof r.then=="function"};var p=Math.pow(2,31);S.int=function(r){return v.isNumber(r)&&r%1==0},S.int32=function(r){return S.int(r)&&r<p&&r>=-p},S.long=function(r){return S.int(r)&&(r>=p||r<-p)},S.Long=function(r){return S.object(r)&&S.number(r.high)&&S.number(r.low)},S.double=function(r){return v.isNumber(r)&&!isNaN(r)&&r%1!=0},S.date=function(r){return r instanceof Date},S.regExp=function(r){return r instanceof RegExp},S.regexp=S.regExp,S.error=function(r){return r instanceof Error},S.array=function(r){return Array.isArray(r)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,O,S){var d={}.toString;O.exports=Array.isArray||function(v){return d.call(v)=="[object Array]"}},{}],167:[function(n,O,S){function d(r){return r instanceof p.Stream}function v(r){return d(r)&&typeof r._read=="function"&&typeof r._readableState=="object"}function a(r){return d(r)&&typeof r._write=="function"&&typeof r._writableState=="object"}function i(r){return v(r)&&a(r)}var p=n("stream");O.exports=d,O.exports.isReadable=v,O.exports.isWritable=a,O.exports.isDuplex=i},{stream:195}],168:[function(n,O,S){"use strict";function d(a,i,p){if(!a)throw new TypeError("argument dest is required");if(!i)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(i).forEach(function(r){if(p||!v.call(a,r)){var e=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(a,r,e)}}),a}O.exports=d;var v=Object.prototype.hasOwnProperty},{}],169:[function(n,O,S){function d(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var c=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function v(l){return l>=o?Math.round(l/o)+"d":l>=e?Math.round(l/e)+"h":l>=r?Math.round(l/r)+"m":l>=p?Math.round(l/p)+"s":l+"ms"}function a(l){return i(l,o,"day")||i(l,e,"hour")||i(l,r,"minute")||i(l,p,"second")||l+" ms"}function i(l,h,c){if(!(l<h))return l<1.5*h?Math.floor(l/h)+" "+c:Math.ceil(l/h)+" "+c+"s"}var p=1e3,r=60*p,e=60*r,o=24*e,s=365.25*o;O.exports=function(l,h){h=h||{};var c=typeof l;if(c==="string"&&l.length>0)return d(l);if(c==="number"&&isNaN(l)===!1)return h.long?a(l):v(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(n,O,S){(function(d){function v(r,e){for(var o=0,s=r.length-1;s>=0;s--){var l=r[s];l==="."?r.splice(s,1):l===".."?(r.splice(s,1),o++):o&&(r.splice(s,1),o--)}if(e)for(;o--;o)r.unshift("..");return r}function a(r){typeof r!="string"&&(r+="");var e,o=0,s=-1,l=!0;for(e=r.length-1;e>=0;--e)if(r.charCodeAt(e)===47){if(!l){o=e+1;break}}else s===-1&&(l=!1,s=e+1);return s===-1?"":r.slice(o,s)}function i(r,e){if(r.filter)return r.filter(e);for(var o=[],s=0;s<r.length;s++)e(r[s],s,r)&&o.push(r[s]);return o}S.resolve=function(){for(var r="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var s=o>=0?arguments[o]:d.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,e=s.charAt(0)==="/")}return r=v(i(r.split("/"),function(l){return!!l}),!e).join("/"),(e?"/":"")+r||"."},S.normalize=function(r){var e=S.isAbsolute(r),o=p(r,-1)==="/";return r=v(i(r.split("/"),function(s){return!!s}),!e).join("/"),r||e||(r="."),r&&o&&(r+="/"),(e?"/":"")+r},S.isAbsolute=function(r){return r.charAt(0)==="/"},S.join=function(){var r=Array.prototype.slice.call(arguments,0);return S.normalize(i(r,function(e,o){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},S.relative=function(r,e){function o(f){for(var E=0;E<f.length&&f[E]==="";E++);for(var T=f.length-1;T>=0&&f[T]==="";T--);return E>T?[]:f.slice(E,T-E+1)}r=S.resolve(r).substr(1),e=S.resolve(e).substr(1);for(var s=o(r.split("/")),l=o(e.split("/")),h=Math.min(s.length,l.length),c=h,w=0;w<h;w++)if(s[w]!==l[w]){c=w;break}for(var y=[],w=c;w<s.length;w++)y.push("..");return y=y.concat(l.slice(c)),y.join("/")},S.sep="/",S.delimiter=":",S.dirname=function(r){if(typeof r!="string"&&(r+=""),r.length===0)return".";for(var e=r.charCodeAt(0),o=e===47,s=-1,l=!0,h=r.length-1;h>=1;--h)if((e=r.charCodeAt(h))===47){if(!l){s=h;break}}else l=!1;return s===-1?o?"/":".":o&&s===1?"/":r.slice(0,s)},S.basename=function(r,e){var o=a(r);return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o},S.extname=function(r){typeof r!="string"&&(r+="");for(var e=-1,o=0,s=-1,l=!0,h=0,c=r.length-1;c>=0;--c){var w=r.charCodeAt(c);if(w!==47)s===-1&&(l=!1,s=c+1),w===46?e===-1?e=c:h!==1&&(h=1):e!==-1&&(h=-1);else if(!l){o=c+1;break}}return e===-1||s===-1||h===0||h===1&&e===s-1&&e===o+1?"":r.slice(e,s)};var p="ab".substr(-1)==="b"?function(r,e,o){return r.substr(e,o)}:function(r,e,o){return e<0&&(e=r.length+e),r.substr(e,o)}}).call(this,n("_process"))},{_process:173}],171:[function(n,O,S){(function(d){(function(){"use strict";function v(P){return P=String(P),P.charAt(0).toUpperCase()+P.slice(1)}function a(P,I,N){var G={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return I&&N&&/^Win/i.test(P)&&!/^Windows Phone /i.test(P)&&(G=G[/[\d.]+$/.exec(P)])&&(P="Windows "+G),P=String(P),I&&N&&(P=P.replace(RegExp(I,"i"),N)),P=p(P.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function i(P,I){var N=-1,G=P?P.length:0;if(typeof G=="number"&&G>-1&&G<=m)for(;++N<G;)I(P[N],N,P);else r(P,I)}function p(P){return P=h(P),/^(?:webOS|i(?:OS|P))/.test(P)?P:v(P)}function r(P,I){for(var N in P)j.call(P,N)&&I(P[N],N,P)}function e(P){return P==null?v(P):b.call(P).slice(8,-1)}function o(P,I){var N=P!=null?typeof P[I]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(N)||N=="object"&&!P[I])}function s(P){return String(P).replace(/([ -])(?!$)/g,"$1?")}function l(P,I){var N=null;return i(P,function(G,V){N=I(N,G,V,P)}),N}function h(P){return String(P).replace(/^ +| +$/g,"")}function c(P){function I(A){return l(A,function(g,x){var z=x.pattern||s(x);return!g&&(g=RegExp("\\b"+z+" *\\d+[.\\w_]*","i").exec(P)||RegExp("\\b"+z+" *\\w+-[\\w]*","i").exec(P)||RegExp("\\b"+z+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(P))&&((g=String(x.label&&!RegExp(z,"i").test(x.label)?x.label:g).split("/"))[1]&&!/[\d.]+/.test(g[0])&&(g[0]+=" "+g[1]),x=x.label||x,g=p(g[0].replace(RegExp(z,"i"),x).replace(RegExp("; *(?:"+x+"[_-])?","i")," ").replace(RegExp("("+x+")[-_.]?(\\w)","i"),"$1 $2"))),g})}function N(){return this.description||""}var G=y,V=P&&typeof P=="object"&&e(P)!="String";V&&(G=P,P=null);var H=G.navigator||{},ie=H.userAgent||"";P||(P=ie);var F,re,Y=V?!!H.likeChrome:/\bChrome\b/.test(P)&&!/internal|\n/i.test(b.toString()),X=V?"Object":"ScriptBridgingProxyObject",D=V?"Object":"Environment",L=V&&G.java?"JavaPackage":e(G.java),M=V?"Object":"RuntimeObject",B=/\bJava/.test(L)&&G.java,ee=B&&e(G.environment)==D,K=B?"a":"\u4F2A",oe=B?"b":"\u5C3E",te=G.document||{},ae=G.operamini||G.opera,pe=_.test(pe=V&&ae?ae["[[Class]]"]:e(ae))?pe:ae=null,J=P,$=[],ne=null,q=P==ie,U=q&&ae&&typeof ae.version=="function"&&ae.version(),Z=function(A){return l(A,function(g,x){return g||RegExp("\\b"+(x.pattern||s(x))+"\\b","i").exec(P)&&(x.label||x)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Q=function(A){return l(A,function(g,x){return g||RegExp("\\b"+(x.pattern||s(x))+"\\b","i").exec(P)&&(x.label||x)})}(["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"]),se=I([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),k=function(A){return l(A,function(g,x,z){return g||(x[se]||x[/^[a-z]+(?: +[a-z]+\b)*/i.exec(se)]||RegExp("\\b"+s(z)+"(?:\\b|\\w*\\d)","i").exec(P))&&z})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),t=function(A){return l(A,function(g,x){var z=x.pattern||s(x);return!g&&(g=RegExp("\\b"+z+"(?:/[\\d.]+|[ \\w.]*)","i").exec(P))&&(g=a(g,z,x.label||x)),g})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Z&&(Z=[Z]),k&&!se&&(se=I([k])),(F=/\bGoogle TV\b/.exec(se))&&(se=F[0]),/\bSimulator\b/i.test(P)&&(se=(se?se+" ":"")+"Simulator"),Q=="Opera Mini"&&/\bOPiOS\b/.test(P)&&$.push("running in Turbo/Uncompressed mode"),Q=="IE"&&/\blike iPhone OS\b/.test(P)?(F=c(P.replace(/like iPhone OS/,"")),k=F.manufacturer,se=F.product):/^iP/.test(se)?(Q||(Q="Safari"),t="iOS"+((F=/ OS ([\d_]+)/i.exec(P))?" "+F[1].replace(/_/g,"."):"")):Q!="Konqueror"||/buntu/i.test(t)?k&&k!="Google"&&(/Chrome/.test(Q)&&!/\bMobile Safari\b/i.test(P)||/\bVita\b/.test(se))||/\bAndroid\b/.test(t)&&/^Chrome/.test(Q)&&/\bVersion\//i.test(P)?(Q="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):Q=="Silk"?(/\bMobi/i.test(P)||(t="Android",$.unshift("desktop mode")),/Accelerated *= *true/i.test(P)&&$.unshift("accelerated")):Q=="PaleMoon"&&(F=/\bFirefox\/([\d.]+)\b/.exec(P))?$.push("identifying as Firefox "+F[1]):Q=="Firefox"&&(F=/\b(Mobile|Tablet|TV)\b/i.exec(P))?(t||(t="Firefox OS"),se||(se=F[1])):!Q||(F=!/\bMinefield\b/i.test(P)&&/\b(?:Firefox|Safari)\b/.exec(Q))?(Q&&!se&&/[\/,]|^[^(]+?\)/.test(P.slice(P.indexOf(F+"/")+8))&&(Q=null),(F=se||k||t)&&(se||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(Q=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:F)+" Browser")):Q=="Electron"&&(F=(/\bChrome\/([\d.]+)\b/.exec(P)||0)[1])&&$.push("Chromium "+F):t="Kubuntu",U||(U=function(A){return l(A,function(g,x){return g||(RegExp(x+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(P)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",s(Q),"(?:Firefox|Minefield|NetFront)"])),(F=Z=="iCab"&&parseFloat(U)>3&&"WebKit"||/\bOpera\b/.test(Q)&&(/\bOPR\b/.test(P)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(P)&&!/^(?:Trident|EdgeHTML)$/.test(Z)&&"WebKit"||!Z&&/\bMSIE\b/i.test(P)&&(t=="Mac OS"?"Tasman":"Trident")||Z=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Q)&&"NetFront")&&(Z=[F]),Q=="IE"&&(F=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(P)||0)[1])?(Q+=" Mobile",t="Windows Phone "+(/\+$/.test(F)?F:F+".x"),$.unshift("desktop mode")):/\bWPDesktop\b/i.test(P)?(Q="IE Mobile",t="Windows Phone 8.x",$.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(P)||0)[1])):Q!="IE"&&Z=="Trident"&&(F=/\brv:([\d.]+)/.exec(P))&&(Q&&$.push("identifying as "+Q+(U?" "+U:"")),Q="IE",U=F[1]),q){if(o(G,"global"))if(B&&(F=B.lang.System,J=F.getProperty("os.arch"),t=t||F.getProperty("os.name")+" "+F.getProperty("os.version")),ee){try{U=G.require("ringo/engine").version.join("."),Q="RingoJS"}catch(A){(F=G.system)&&F.global.system==G.system&&(Q="Narwhal",t||(t=F[0].os||null))}Q||(Q="Rhino")}else typeof G.process=="object"&&!G.process.browser&&(F=G.process)&&(typeof F.versions=="object"&&(typeof F.versions.electron=="string"?($.push("Node "+F.versions.node),Q="Electron",U=F.versions.electron):typeof F.versions.nw=="string"&&($.push("Chromium "+U,"Node "+F.versions.node),Q="NW.js",U=F.versions.nw)),Q||(Q="Node.js",J=F.arch,t=F.platform,U=/[\d.]+/.exec(F.version),U=U?U[0]:null));else e(F=G.runtime)==X?(Q="Adobe AIR",t=F.flash.system.Capabilities.os):e(F=G.phantom)==M?(Q="PhantomJS",U=(F=F.version||null)&&F.major+"."+F.minor+"."+F.patch):typeof te.documentMode=="number"&&(F=/\bTrident\/(\d+)/i.exec(P))?(U=[U,te.documentMode],(F=+F[1]+4)!=U[1]&&($.push("IE "+U[1]+" mode"),Z&&(Z[1]=""),U[1]=F),U=Q=="IE"?String(U[1].toFixed(1)):U[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Q)&&($.push("masking as "+Q+" "+U),Q="IE",U="11.0",Z=["Trident"],t="Windows");t=t&&p(t)}if(U&&(F=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(P+";"+(q&&H.appMinorVersion))||/\bMinefield\b/i.test(P)&&"a")&&(ne=/b/i.test(F)?"beta":"alpha",U=U.replace(RegExp(F+"\\+?$"),"")+(ne=="beta"?oe:K)+(/\d+\+?/.exec(F)||"")),Q=="Fennec"||Q=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))Q="Firefox Mobile";else if(Q=="Maxthon"&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(se))se=="Xbox 360"&&(t=null),se=="Xbox 360"&&/\bIEMobile\b/.test(P)&&$.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Q)&&(!Q||se||/Browser|Mobi/.test(Q))||t!="Windows CE"&&!/Mobi/i.test(P))if(Q=="IE"&&q)try{G.external===null&&$.unshift("platform preview")}catch(A){$.unshift("embedded")}else(/\bBlackBerry\b/.test(se)||/\bBB10\b/.test(P))&&(F=(RegExp(se.replace(/ +/g," *")+"/([.\\d]+)","i").exec(P)||0)[1]||U)?(F=[F,/BB10/.test(P)],t=(F[1]?(se=null,k="BlackBerry"):"Device Software")+" "+F[0],U=null):this!=r&&se!="Wii"&&(q&&ae||/Opera/.test(Q)&&/\b(?:MSIE|Firefox)\b/i.test(P)||Q=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||Q=="IE"&&(t&&!/^Win/.test(t)&&U>5.5||/\bWindows XP\b/.test(t)&&U>8||U==8&&!/\bTrident\b/.test(P)))&&!_.test(F=c.call(r,P.replace(_,"")+";"))&&F.name&&(F="ing as "+F.name+((F=F.version)?" "+F:""),_.test(Q)?(/\bIE\b/.test(F)&&t=="Mac OS"&&(t=null),F="identify"+F):(F="mask"+F,Q=pe?p(pe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(F)&&(t=null),q||(U=null)),Z=["Presto"],$.push(F));else Q+=" Mobile";(F=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(P)||0)[1])&&(F=[parseFloat(F.replace(/\.(\d)$/,".0$1")),F],Q=="Safari"&&F[1].slice(-1)=="+"?(Q="WebKit Nightly",ne="alpha",U=F[1].slice(0,-1)):U!=F[1]&&U!=(F[2]=(/\bSafari\/([\d.]+\+?)/i.exec(P)||0)[1])||(U=null),F[1]=(/\bChrome\/([\d.]+)/i.exec(P)||0)[1],F[0]==537.36&&F[2]==537.36&&parseFloat(F[1])>=28&&Z=="WebKit"&&(Z=["Blink"]),q&&(Y||F[1])?(Z&&(Z[1]="like Chrome"),F=F[1]||(F=F[0],F<530?1:F<532?2:F<532.05?3:F<533?4:F<534.03?5:F<534.07?6:F<534.1?7:F<534.13?8:F<534.16?9:F<534.24?10:F<534.3?11:F<535.01?12:F<535.02?"13+":F<535.07?15:F<535.11?16:F<535.19?17:F<536.05?18:F<536.1?19:F<537.01?20:F<537.11?"21+":F<537.13?23:F<537.18?24:F<537.24?25:F<537.36?26:Z!="Blink"?"27":"28")):(Z&&(Z[1]="like Safari"),F=F[0],F=F<400?1:F<500?2:F<526?3:F<533?4:F<534?"4+":F<535?5:F<537?6:F<538?7:F<601?8:"8"),Z&&(Z[1]+=" "+(F+=typeof F=="number"?".x":/[.+]/.test(F)?"":"+")),Q=="Safari"&&(!U||parseInt(U)>45)&&(U=F)),Q=="Opera"&&(F=/\bzbov|zvav$/.exec(t))?(Q+=" ",$.unshift("desktop mode"),F=="zvav"?(Q+="Mini",U=null):Q+="Mobile",t=t.replace(RegExp(" *"+F+"$"),"")):Q=="Safari"&&/\bChrome\b/.exec(Z&&Z[1])&&($.unshift("desktop mode"),Q="Chrome Mobile",U=null,/\bOS X\b/.test(t)?(k="Apple",t="iOS 4.3+"):t=null),U&&U.indexOf(F=/[\d.]+$/.exec(t))==0&&P.indexOf("/"+F+"-")>-1&&(t=h(t.replace(F,""))),Z&&!/\b(?:Avant|Nook)\b/.test(Q)&&(/Browser|Lunascape|Maxthon/.test(Q)||Q!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(Z[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Q)&&Z[1])&&(F=Z[Z.length-1])&&$.push(F),$.length&&($=["("+$.join("; ")+")"]),k&&se&&se.indexOf(k)<0&&$.push("on "+k),se&&$.push((/^on /.test($[$.length-1])?"":"on ")+se),t&&(F=/ ([\d.+]+)$/.exec(t),re=F&&t.charAt(t.length-F[0].length-1)=="/",t={architecture:32,family:F&&!re?t.replace(F[0],""):t,version:F?F[1]:null,toString:function(){var A=this.version;return this.family+(A&&!re?" "+A:"")+(this.architecture==64?" 64-bit":"")}}),(F=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(J))&&!/\bi686\b/i.test(J)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+F),"")),Q&&(/\bWOW64\b/i.test(P)||q&&/\w(?:86|32)$/.test(H.cpuClass||H.platform)&&!/\bWin64; x64\b/i.test(P))&&$.unshift("32-bit")):t&&/^OS X/.test(t.family)&&Q=="Chrome"&&parseFloat(U)>=39&&(t.architecture=64),P||(P=null);var u={};return u.description=P,u.layout=Z&&Z[0],u.manufacturer=k,u.name=Q,u.prerelease=ne,u.product=se,u.ua=P,u.version=Q&&U,u.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},u.parse=c,u.toString=N,u.version&&$.unshift(U),u.name&&$.unshift(Q),t&&Q&&(t!=String(t).split(" ")[0]||t!=Q.split(" ")[0]&&!se)&&$.push(se?"("+t+")":"on "+t),$.length&&(u.description=$.join(" ")),u}var w={function:!0,object:!0},y=w[typeof window]&&window||this,f=w[typeof S]&&S,E=w[typeof O]&&O&&!O.nodeType&&O,T=f&&E&&typeof d=="object"&&d;!T||T.global!==T&&T.window!==T&&T.self!==T||(y=T);var m=Math.pow(2,53)-1,_=/\bOpera/,C=Object.prototype,j=C.hasOwnProperty,b=C.toString,R=c();typeof le=="function"&&typeof le.amd=="object"&&le.amd?(y.platform=R,le(function(){return R})):f&&E?r(R,function(P,I){f[I]=P}):y.platform=R}).call(this)}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,O,S){(function(d){"use strict";function v(a,i,p,r){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var e,o,s=arguments.length;switch(s){case 0:case 1:return d.nextTick(a);case 2:return d.nextTick(function(){a.call(null,i)});case 3:return d.nextTick(function(){a.call(null,i,p)});case 4:return d.nextTick(function(){a.call(null,i,p,r)});default:for(e=new Array(s-1),o=0;o<e.length;)e[o++]=arguments[o];return d.nextTick(function(){a.apply(null,e)})}}!d.version||d.version.indexOf("v0.")===0||d.version.indexOf("v1.")===0&&d.version.indexOf("v1.8.")!==0?O.exports={nextTick:v}:O.exports=d}).call(this,n("_process"))},{_process:173}],173:[function(n,O,S){function d(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function a(E){if(s===setTimeout)return setTimeout(E,0);if((s===d||!s)&&setTimeout)return s=setTimeout,setTimeout(E,0);try{return s(E,0)}catch(T){try{return s.call(null,E,0)}catch(m){return s.call(this,E,0)}}}function i(E){if(l===clearTimeout)return clearTimeout(E);if((l===v||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(E);try{return l(E)}catch(T){try{return l.call(null,E)}catch(m){return l.call(this,E)}}}function p(){y&&c&&(y=!1,c.length?w=c.concat(w):f=-1,w.length&&r())}function r(){if(!y){var E=a(p);y=!0;for(var T=w.length;T;){for(c=w,w=[];++f<T;)c&&c[f].run();f=-1,T=w.length}c=null,y=!1,i(E)}}function e(E,T){this.fun=E,this.array=T}function o(){}var s,l,h=O.exports={};!function(){try{s=typeof setTimeout=="function"?setTimeout:d}catch(E){s=d}try{l=typeof clearTimeout=="function"?clearTimeout:v}catch(E){l=v}}();var c,w=[],y=!1,f=-1;h.nextTick=function(E){var T=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)T[m-1]=arguments[m];w.push(new e(E,T)),w.length!==1||y||a(r)},e.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=o,h.addListener=o,h.once=o,h.off=o,h.removeListener=o,h.removeAllListeners=o,h.emit=o,h.prependListener=o,h.prependOnceListener=o,h.listeners=function(E){return[]},h.binding=function(E){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(E){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],174:[function(n,O,S){(function(d){!function(v){function a(L){throw new RangeError(re[L])}function i(L,M){for(var B=L.length,ee=[];B--;)ee[B]=M(L[B]);return ee}function p(L,M){var B=L.split("@"),ee="";return B.length>1&&(ee=B[0]+"@",L=B[1]),L=L.replace(F,"."),ee+i(L.split("."),M).join(".")}function r(L){for(var M,B,ee=[],K=0,oe=L.length;K<oe;)M=L.charCodeAt(K++),M>=55296&&M<=56319&&K<oe?(B=L.charCodeAt(K++),(64512&B)==56320?ee.push(((1023&M)<<10)+(1023&B)+65536):(ee.push(M),K--)):ee.push(M);return ee}function e(L){return i(L,function(M){var B="";return M>65535&&(M-=65536,B+=D(M>>>10&1023|55296),M=56320|1023&M),B+=D(M)}).join("")}function o(L){return L-48<10?L-22:L-65<26?L-65:L-97<26?L-97:j}function s(L,M){return L+22+75*(L<26)-((M!=0)<<5)}function l(L,M,B){var ee=0;for(L=B?X(L/I):L>>1,L+=X(L/M);L>Y*R>>1;ee+=j)L=X(L/Y);return X(ee+(Y+1)*L/(L+P))}function h(L){var M,B,ee,K,oe,te,ae,pe,J,$,ne=[],q=L.length,U=0,Z=G,Q=N;for(B=L.lastIndexOf(V),B<0&&(B=0),ee=0;ee<B;++ee)L.charCodeAt(ee)>=128&&a("not-basic"),ne.push(L.charCodeAt(ee));for(K=B>0?B+1:0;K<q;){for(oe=U,te=1,ae=j;K>=q&&a("invalid-input"),pe=o(L.charCodeAt(K++)),(pe>=j||pe>X((C-U)/te))&&a("overflow"),U+=pe*te,J=ae<=Q?b:ae>=Q+R?R:ae-Q,!(pe<J);ae+=j)$=j-J,te>X(C/$)&&a("overflow"),te*=$;M=ne.length+1,Q=l(U-oe,M,oe==0),X(U/M)>C-Z&&a("overflow"),Z+=X(U/M),U%=M,ne.splice(U++,0,Z)}return e(ne)}function c(L){var M,B,ee,K,oe,te,ae,pe,J,$,ne,q,U,Z,Q,se=[];for(L=r(L),q=L.length,M=G,B=0,oe=N,te=0;te<q;++te)(ne=L[te])<128&&se.push(D(ne));for(ee=K=se.length,K&&se.push(V);ee<q;){for(ae=C,te=0;te<q;++te)(ne=L[te])>=M&&ne<ae&&(ae=ne);for(U=ee+1,ae-M>X((C-B)/U)&&a("overflow"),B+=(ae-M)*U,M=ae,te=0;te<q;++te)if(ne=L[te],ne<M&&++B>C&&a("overflow"),ne==M){for(pe=B,J=j;$=J<=oe?b:J>=oe+R?R:J-oe,!(pe<$);J+=j)Q=pe-$,Z=j-$,se.push(D(s($+Q%Z,0))),pe=X(Q/Z);se.push(D(s(pe,0))),oe=l(B,U,ee==K),B=0,++ee}++B,++M}return se.join("")}function w(L){return p(L,function(M){return H.test(M)?h(M.slice(4).toLowerCase()):M})}function y(L){return p(L,function(M){return ie.test(M)?"xn--"+c(M):M})}var f=typeof S=="object"&&S&&!S.nodeType&&S,E=typeof O=="object"&&O&&!O.nodeType&&O,T=typeof d=="object"&&d;T.global!==T&&T.window!==T&&T.self!==T||(v=T);var m,_,C=2147483647,j=36,b=1,R=26,P=38,I=700,N=72,G=128,V="-",H=/^xn--/,ie=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,re={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=j-b,X=Math.floor,D=String.fromCharCode;if(m={version:"1.4.1",ucs2:{decode:r,encode:e},decode:h,encode:c,toASCII:y,toUnicode:w},typeof le=="function"&&typeof le.amd=="object"&&le.amd)le("punycode",function(){return m});else if(f&&E)if(O.exports==f)E.exports=m;else for(_ in m)m.hasOwnProperty(_)&&(f[_]=m[_]);else v.punycode=m}(this)}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,O,S){"use strict";function d(a,i){return Object.prototype.hasOwnProperty.call(a,i)}O.exports=function(a,i,p,r){i=i||"&",p=p||"=";var e={};if(typeof a!="string"||a.length===0)return e;var o=/\+/g;a=a.split(i);var s=1e3;r&&typeof r.maxKeys=="number"&&(s=r.maxKeys);var l=a.length;s>0&&l>s&&(l=s);for(var h=0;h<l;++h){var c,w,y,f,E=a[h].replace(o,"%20"),T=E.indexOf(p);T>=0?(c=E.substr(0,T),w=E.substr(T+1)):(c=E,w=""),y=decodeURIComponent(c),f=decodeURIComponent(w),d(e,y)?v(e[y])?e[y].push(f):e[y]=[e[y],f]:e[y]=f}return e};var v=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},{}],176:[function(n,O,S){"use strict";function d(p,r){if(p.map)return p.map(r);for(var e=[],o=0;o<p.length;o++)e.push(r(p[o],o));return e}var v=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};O.exports=function(p,r,e,o){return r=r||"&",e=e||"=",p===null&&(p=void 0),typeof p=="object"?d(i(p),function(s){var l=encodeURIComponent(v(s))+e;return a(p[s])?d(p[s],function(h){return l+encodeURIComponent(v(h))}).join(r):l+encodeURIComponent(v(p[s]))}).join(r):o?encodeURIComponent(v(o))+e+encodeURIComponent(v(p)):""};var a=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},i=Object.keys||function(p){var r=[];for(var e in p)Object.prototype.hasOwnProperty.call(p,e)&&r.push(e);return r}},{}],177:[function(n,O,S){"use strict";S.decode=S.parse=n("./decode"),S.encode=S.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,O,S){O.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,O,S){"use strict";function d(y){if(!(this instanceof d))return new d(y);s.call(this,y),l.call(this,y),y&&y.readable===!1&&(this.readable=!1),y&&y.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,y&&y.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||r.nextTick(a,this)}function a(y){y.end()}var i=n("babel-runtime/core-js/object/keys"),p=function(y){return y&&y.__esModule?y:{default:y}}(i),r=n("process-nextick-args"),e=p.default||function(y){var f=[];for(var E in y)f.push(E);return f};O.exports=d;var o=n("core-util-is");o.inherits=n("inherits");var s=n("./_stream_readable"),l=n("./_stream_writable");o.inherits(d,s);for(var h=e(l.prototype),c=0;c<h.length;c++){var w=h[c];d.prototype[w]||(d.prototype[w]=l.prototype[w])}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),d.prototype._destroy=function(y,f){this.push(null),this.end(),r.nextTick(f,y)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(n,O,S){"use strict";function d(i){if(!(this instanceof d))return new d(i);v.call(this,i)}O.exports=d;var v=n("./_stream_transform"),a=n("core-util-is");a.inherits=n("inherits"),a.inherits(d,v),d.prototype._transform=function(i,p,r){r(null,i)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,O,S){(function(d,v){"use strict";function a(q){return B.from(q)}function i(q){return B.isBuffer(q)||q instanceof ee}function p(q,U,Z){if(typeof q.prependListener=="function")return q.prependListener(U,Z);q._events&&q._events[U]?D(q._events[U])?q._events[U].unshift(Z):q._events[U]=[Z,q._events[U]]:q.on(U,Z)}function r(q,U){X=X||n("./_stream_duplex"),q=q||{};var Z=U instanceof X;this.objectMode=!!q.objectMode,Z&&(this.objectMode=this.objectMode||!!q.readableObjectMode);var Q=q.highWaterMark,se=q.readableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=Q||Q===0?Q:Z&&(se||se===0)?se:k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,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=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(ae||(ae=n("string_decoder/").StringDecoder),this.decoder=new ae(q.encoding),this.encoding=q.encoding)}function e(q){if(X=X||n("./_stream_duplex"),!(this instanceof e))return new e(q);this._readableState=new r(q,this),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),M.call(this)}function o(q,U,Z,Q,se){var k=q._readableState;if(U===null)k.reading=!1,y(q,k);else{var t;se||(t=l(k,U)),t?q.emit("error",t):k.objectMode||U&&U.length>0?(typeof U=="string"||k.objectMode||(0,re.default)(U)===B.prototype||(U=a(U)),Q?k.endEmitted?q.emit("error",new Error("stream.unshift() after end event")):s(q,k,U,!0):k.ended?q.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!Z?(U=k.decoder.write(U),k.objectMode||U.length!==0?s(q,k,U,!1):T(q,k)):s(q,k,U,!1))):Q||(k.reading=!1)}return h(k)}function s(q,U,Z,Q){U.flowing&&U.length===0&&!U.sync?(q.emit("data",Z),q.read(0)):(U.length+=U.objectMode?1:Z.length,Q?U.buffer.unshift(Z):U.buffer.push(Z),U.needReadable&&f(q)),T(q,U)}function l(q,U){var Z;return i(U)||typeof U=="string"||U===void 0||q.objectMode||(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function h(q){return!q.ended&&(q.needReadable||q.length<q.highWaterMark||q.length===0)}function c(q){return q>=ne?q=ne:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function w(q,U){return q<=0||U.length===0&&U.ended?0:U.objectMode?1:q!==q?U.flowing&&U.length?U.buffer.head.data.length:U.length:(q>U.highWaterMark&&(U.highWaterMark=c(q)),q<=U.length?q:U.ended?U.length:(U.needReadable=!0,0))}function y(q,U){if(!U.ended){if(U.decoder){var Z=U.decoder.end();Z&&Z.length&&(U.buffer.push(Z),U.length+=U.objectMode?1:Z.length)}U.ended=!0,f(q)}}function f(q){var U=q._readableState;U.needReadable=!1,U.emittedReadable||(te("emitReadable",U.flowing),U.emittedReadable=!0,U.sync?Y.nextTick(E,q):E(q))}function E(q){te("emit readable"),q.emit("readable"),R(q)}function T(q,U){U.readingMore||(U.readingMore=!0,Y.nextTick(m,q,U))}function m(q,U){for(var Z=U.length;!U.reading&&!U.flowing&&!U.ended&&U.length<U.highWaterMark&&(te("maybeReadMore read 0"),q.read(0),Z!==U.length);)Z=U.length;U.readingMore=!1}function _(q){return function(){var U=q._readableState;te("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&L(q,"data")&&(U.flowing=!0,R(q))}}function C(q){te("readable nexttick read 0"),q.read(0)}function j(q,U){U.resumeScheduled||(U.resumeScheduled=!0,Y.nextTick(b,q,U))}function b(q,U){U.reading||(te("resume read 0"),q.read(0)),U.resumeScheduled=!1,U.awaitDrain=0,q.emit("resume"),R(q),U.flowing&&!U.reading&&q.read(0)}function R(q){var U=q._readableState;for(te("flow",U.flowing);U.flowing&&q.read()!==null;);}function P(q,U){if(U.length===0)return null;var Z;return U.objectMode?Z=U.buffer.shift():!q||q>=U.length?(Z=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.head.data:U.buffer.concat(U.length),U.buffer.clear()):Z=I(q,U.buffer,U.decoder),Z}function I(q,U,Z){var Q;return q<U.head.data.length?(Q=U.head.data.slice(0,q),U.head.data=U.head.data.slice(q)):Q=q===U.head.data.length?U.shift():Z?N(q,U):G(q,U),Q}function N(q,U){var Z=U.head,Q=1,se=Z.data;for(q-=se.length;Z=Z.next;){var k=Z.data,t=q>k.length?k.length:q;if(t===k.length?se+=k:se+=k.slice(0,q),(q-=t)===0){t===k.length?(++Q,Z.next?U.head=Z.next:U.head=U.tail=null):(U.head=Z,Z.data=k.slice(t));break}++Q}return U.length-=Q,se}function G(q,U){var Z=B.allocUnsafe(q),Q=U.head,se=1;for(Q.data.copy(Z),q-=Q.data.length;Q=Q.next;){var k=Q.data,t=q>k.length?k.length:q;if(k.copy(Z,Z.length-q,0,t),(q-=t)===0){t===k.length?(++se,Q.next?U.head=Q.next:U.head=U.tail=null):(U.head=Q,Q.data=k.slice(t));break}++se}return U.length-=se,Z}function V(q){var U=q._readableState;if(U.length>0)throw new Error('"endReadable()" called on non-empty stream');U.endEmitted||(U.ended=!0,Y.nextTick(H,U,q))}function H(q,U){q.endEmitted||q.length!==0||(q.endEmitted=!0,U.readable=!1,U.emit("end"))}function ie(q,U){for(var Z=0,Q=q.length;Z<Q;Z++)if(q[Z]===U)return Z;return-1}var F=n("babel-runtime/core-js/object/get-prototype-of"),re=function(q){return q&&q.__esModule?q:{default:q}}(F),Y=n("process-nextick-args");O.exports=e;var X,D=n("isarray");e.ReadableState=r;var L=(n("events").EventEmitter,function(q,U){return q.listeners(U).length}),M=n("./internal/streams/stream"),B=n("safe-buffer").Buffer,ee=v.Uint8Array||function(){},K=n("core-util-is");K.inherits=n("inherits");var oe=n("util"),te=void 0;te=oe&&oe.debuglog?oe.debuglog("stream"):function(){};var ae,pe=n("./internal/streams/BufferList"),J=n("./internal/streams/destroy");K.inherits(e,M);var $=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),e.prototype.destroy=J.destroy,e.prototype._undestroy=J.undestroy,e.prototype._destroy=function(q,U){this.push(null),U(q)},e.prototype.push=function(q,U){var Z,Q=this._readableState;return Q.objectMode?Z=!0:typeof q=="string"&&(U=U||Q.defaultEncoding,U!==Q.encoding&&(q=B.from(q,U),U=""),Z=!0),o(this,q,U,!1,Z)},e.prototype.unshift=function(q){return o(this,q,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(q){return ae||(ae=n("string_decoder/").StringDecoder),this._readableState.decoder=new ae(q),this._readableState.encoding=q,this};var ne=8388608;e.prototype.read=function(q){te("read",q),q=parseInt(q,10);var U=this._readableState,Z=q;if(q!==0&&(U.emittedReadable=!1),q===0&&U.needReadable&&(U.length>=U.highWaterMark||U.ended))return te("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?V(this):f(this),null;if((q=w(q,U))===0&&U.ended)return U.length===0&&V(this),null;var Q=U.needReadable;te("need readable",Q),(U.length===0||U.length-q<U.highWaterMark)&&(Q=!0,te("length less than watermark",Q)),U.ended||U.reading?(Q=!1,te("reading or ended",Q)):Q&&(te("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(q=w(Z,U)));var se;return se=q>0?P(q,U):null,se===null?(U.needReadable=!0,q=0):U.length-=q,U.length===0&&(U.ended||(U.needReadable=!0),Z!==q&&U.ended&&V(this)),se!==null&&this.emit("data",se),se},e.prototype._read=function(q){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(q,U){function Z(_e,be){te("onunpipe"),_e===x&&be&&be.hasUnpiped===!1&&(be.hasUnpiped=!0,se())}function Q(){te("onend"),q.end()}function se(){te("cleanup"),q.removeListener("close",u),q.removeListener("finish",A),q.removeListener("drain",ce),q.removeListener("error",t),q.removeListener("unpipe",Z),x.removeListener("end",Q),x.removeListener("end",g),x.removeListener("data",k),de=!0,!z.awaitDrain||q._writableState&&!q._writableState.needDrain||ce()}function k(_e){te("ondata"),he=!1,q.write(_e)!==!1||he||((z.pipesCount===1&&z.pipes===q||z.pipesCount>1&&ie(z.pipes,q)!==-1)&&!de&&(te("false write response, pause",x._readableState.awaitDrain),x._readableState.awaitDrain++,he=!0),x.pause())}function t(_e){te("onerror",_e),g(),q.removeListener("error",t),L(q,"error")===0&&q.emit("error",_e)}function u(){q.removeListener("finish",A),g()}function A(){te("onfinish"),q.removeListener("close",u),g()}function g(){te("unpipe"),x.unpipe(q)}var x=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=q;break;case 1:z.pipes=[z.pipes,q];break;default:z.pipes.push(q)}z.pipesCount+=1,te("pipe count=%d opts=%j",z.pipesCount,U);var W=(!U||U.end!==!1)&&q!==d.stdout&&q!==d.stderr,fe=W?Q:g;z.endEmitted?Y.nextTick(fe):x.once("end",fe),q.on("unpipe",Z);var ce=_(x);q.on("drain",ce);var de=!1,he=!1;return x.on("data",k),p(q,"error",t),q.once("close",u),q.once("finish",A),q.emit("pipe",x),z.flowing||(te("pipe resume"),x.resume()),q},e.prototype.unpipe=function(q){var U=this._readableState,Z={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return q&&q!==U.pipes?this:(q||(q=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,q&&q.emit("unpipe",this,Z),this);if(!q){var Q=U.pipes,se=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var k=0;k<se;k++)Q[k].emit("unpipe",this,Z);return this}var t=ie(U.pipes,q);return t===-1?this:(U.pipes.splice(t,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),q.emit("unpipe",this,Z),this)},e.prototype.on=function(q,U){var Z=M.prototype.on.call(this,q,U);if(q==="data")this._readableState.flowing!==!1&&this.resume();else if(q==="readable"){var Q=this._readableState;Q.endEmitted||Q.readableListening||(Q.readableListening=Q.needReadable=!0,Q.emittedReadable=!1,Q.reading?Q.length&&f(this):Y.nextTick(C,this))}return Z},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var q=this._readableState;return q.flowing||(te("resume"),q.flowing=!0,j(this,q)),this},e.prototype.pause=function(){return te("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(te("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(q){var U=this,Z=this._readableState,Q=!1;q.on("end",function(){if(te("wrapped end"),Z.decoder&&!Z.ended){var t=Z.decoder.end();t&&t.length&&U.push(t)}U.push(null)}),q.on("data",function(t){(te("wrapped data"),Z.decoder&&(t=Z.decoder.write(t)),(!Z.objectMode||t!=null)&&(Z.objectMode||t&&t.length))&&(U.push(t)||(Q=!0,q.pause()))});for(var se in q)this[se]===void 0&&typeof q[se]=="function"&&(this[se]=function(t){return function(){return q[t].apply(q,arguments)}}(se));for(var k=0;k<$.length;k++)q.on($[k],this.emit.bind(this,$[k]));return this._read=function(t){te("wrapped _read",t),Q&&(Q=!1,q.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=P}).call(this,n("_process"),typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(n,O,S){"use strict";function d(e,o){var s=this._transformState;s.transforming=!1;var l=s.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,o!=null&&this.push(o),l(e);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function v(e){if(!(this instanceof v))return new v(e);p.call(this,e),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;typeof this._flush=="function"?this._flush(function(o,s){i(e,o,s)}):i(this,null,null)}function i(e,o,s){if(o)return e.emit("error",o);if(s!=null&&e.push(s),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}O.exports=v;var p=n("./_stream_duplex"),r=n("core-util-is");r.inherits=n("inherits"),r.inherits(v,p),v.prototype.push=function(e,o){return this._transformState.needTransform=!1,p.prototype.push.call(this,e,o)},v.prototype._transform=function(e,o,s){throw new Error("_transform() is not implemented")},v.prototype._write=function(e,o,s){var l=this._transformState;if(l.writecb=s,l.writechunk=e,l.writeencoding=o,!l.transforming){var h=this._readableState;(l.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},v.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},v.prototype._destroy=function(e,o){var s=this;p.prototype._destroy.call(this,e,function(l){o(l),s.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,O,S){(function(d,v){"use strict";function a(J){return J&&J.__esModule?J:{default:J}}function i(J){var $=this;this.next=null,this.entry=null,this.finish=function(){N($,J)}}function p(J){return oe.from(J)}function r(J){return oe.isBuffer(J)||J instanceof te}function e(){}function o(J,$){L=L||n("./_stream_duplex"),J=J||{};var ne=$ instanceof L;this.objectMode=!!J.objectMode,ne&&(this.objectMode=this.objectMode||!!J.writableObjectMode);var q=J.highWaterMark,U=J.writableHighWaterMark,Z=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:ne&&(U||U===0)?U:Z,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 Q=J.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){T($,se)},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 i(this)}function s(J){if(L=L||n("./_stream_duplex"),!(pe.call(s,this)||this instanceof L))return new s(J);this._writableState=new o(J,this),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),K.call(this)}function l(J,$){var ne=new Error("write after end");J.emit("error",ne),D.nextTick($,ne)}function h(J,$,ne,q){var U=!0,Z=!1;return ne===null?Z=new TypeError("May not write null values to stream"):typeof ne=="string"||ne===void 0||$.objectMode||(Z=new TypeError("Invalid non-string/buffer chunk")),Z&&(J.emit("error",Z),D.nextTick(q,Z),U=!1),U}function c(J,$,ne){return J.objectMode||J.decodeStrings===!1||typeof $!="string"||($=oe.from($,ne)),$}function w(J,$,ne,q,U,Z){if(!ne){var Q=c($,q,U);q!==Q&&(ne=!0,U="buffer",q=Q)}var se=$.objectMode?1:q.length;$.length+=se;var k=$.length<$.highWaterMark;if(k||($.needDrain=!0),$.writing||$.corked){var t=$.lastBufferedRequest;$.lastBufferedRequest={chunk:q,encoding:U,isBuf:ne,callback:Z,next:null},t?t.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else y(J,$,!1,se,q,U,Z);return k}function y(J,$,ne,q,U,Z,Q){$.writelen=q,$.writecb=Q,$.writing=!0,$.sync=!0,ne?J._writev(U,$.onwrite):J._write(U,Z,$.onwrite),$.sync=!1}function f(J,$,ne,q,U){--$.pendingcb,ne?(D.nextTick(U,q),D.nextTick(P,J,$),J._writableState.errorEmitted=!0,J.emit("error",q)):(U(q),J._writableState.errorEmitted=!0,J.emit("error",q),P(J,$))}function E(J){J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0}function T(J,$){var ne=J._writableState,q=ne.sync,U=ne.writecb;if(E(ne),$)f(J,ne,q,$,U);else{var Z=j(ne);Z||ne.corked||ne.bufferProcessing||!ne.bufferedRequest||C(J,ne),q?M(m,J,ne,Z,U):m(J,ne,Z,U)}}function m(J,$,ne,q){ne||_(J,$),$.pendingcb--,q(),P(J,$)}function _(J,$){$.length===0&&$.needDrain&&($.needDrain=!1,J.emit("drain"))}function C(J,$){$.bufferProcessing=!0;var ne=$.bufferedRequest;if(J._writev&&ne&&ne.next){var q=$.bufferedRequestCount,U=new Array(q),Z=$.corkedRequestsFree;Z.entry=ne;for(var Q=0,se=!0;ne;)U[Q]=ne,ne.isBuf||(se=!1),ne=ne.next,Q+=1;U.allBuffers=se,y(J,$,!0,$.length,U,"",Z.finish),$.pendingcb++,$.lastBufferedRequest=null,Z.next?($.corkedRequestsFree=Z.next,Z.next=null):$.corkedRequestsFree=new i($),$.bufferedRequestCount=0}else{for(;ne;){var k=ne.chunk,t=ne.encoding,u=ne.callback;if(y(J,$,!1,$.objectMode?1:k.length,k,t,u),ne=ne.next,$.bufferedRequestCount--,$.writing)break}ne===null&&($.lastBufferedRequest=null)}$.bufferedRequest=ne,$.bufferProcessing=!1}function j(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function b(J,$){J._final(function(ne){$.pendingcb--,ne&&J.emit("error",ne),$.prefinished=!0,J.emit("prefinish"),P(J,$)})}function R(J,$){$.prefinished||$.finalCalled||(typeof J._final=="function"?($.pendingcb++,$.finalCalled=!0,D.nextTick(b,J,$)):($.prefinished=!0,J.emit("prefinish")))}function P(J,$){var ne=j($);return ne&&(R(J,$),$.pendingcb===0&&($.finished=!0,J.emit("finish"))),ne}function I(J,$,ne){$.ending=!0,P(J,$),ne&&($.finished?D.nextTick(ne):J.once("finish",ne)),$.ended=!0,J.writable=!1}function N(J,$,ne){var q=J.entry;for(J.entry=null;q;){var U=q.callback;$.pendingcb--,U(ne),q=q.next}$.corkedRequestsFree?$.corkedRequestsFree.next=J:$.corkedRequestsFree=J}var G=n("babel-runtime/core-js/object/define-property"),V=a(G),H=n("babel-runtime/core-js/symbol/has-instance"),ie=a(H),F=n("babel-runtime/core-js/symbol"),re=a(F),Y=n("babel-runtime/core-js/set-immediate"),X=a(Y),D=n("process-nextick-args");O.exports=s;var L,M=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?X.default:D.nextTick;s.WritableState=o;var B=n("core-util-is");B.inherits=n("inherits");var ee={deprecate:n("util-deprecate")},K=n("./internal/streams/stream"),oe=n("safe-buffer").Buffer,te=v.Uint8Array||function(){},ae=n("./internal/streams/destroy");B.inherits(s,K),o.prototype.getBuffer=function(){for(var J=this.bufferedRequest,$=[];J;)$.push(J),J=J.next;return $},function(){try{Object.defineProperty(o.prototype,"buffer",{get:ee.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(J){}}();var pe;typeof re.default=="function"&&ie.default&&typeof Function.prototype[ie.default]=="function"?(pe=Function.prototype[ie.default],(0,V.default)(s,ie.default,{value:function(J){return!!pe.call(this,J)||this===s&&J&&J._writableState instanceof o}})):pe=function(J){return J instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(J,$,ne){var q=this._writableState,U=!1,Z=!q.objectMode&&r(J);return Z&&!oe.isBuffer(J)&&(J=p(J)),typeof $=="function"&&(ne=$,$=null),Z?$="buffer":$||($=q.defaultEncoding),typeof ne!="function"&&(ne=e),q.ended?l(this,ne):(Z||h(this,q,J,ne))&&(q.pendingcb++,U=w(this,q,Z,J,$,ne)),U},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,J.writing||J.corked||J.finished||J.bufferProcessing||!J.bufferedRequest||C(this,J))},s.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=J.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((J+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(J,$,ne){ne(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(J,$,ne){var q=this._writableState;typeof J=="function"?(ne=J,J=null,$=null):typeof $=="function"&&(ne=$,$=null),J!=null&&this.write(J,$),q.corked&&(q.corked=1,this.uncork()),q.ending||q.finished||I(this,q,ne)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),s.prototype.destroy=ae.destroy,s.prototype._undestroy=ae.undestroy,s.prototype._destroy=function(J,$){this.end(),$(J)}}).call(this,n("_process"),typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(n,O,S){"use strict";function d(p,r){if(!(p instanceof r))throw new TypeError("Cannot call a class as a function")}function v(p,r,e){p.copy(r,e)}var a=n("safe-buffer").Buffer,i=n("util");O.exports=function(){function p(){d(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(r){var e={data:r,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},p.prototype.unshift=function(r){var e={data:r,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},p.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(r){if(this.length===0)return"";for(var e=this.head,o=""+e.data;e=e.next;)o+=r+e.data;return o},p.prototype.concat=function(r){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;for(var e=a.allocUnsafe(r>>>0),o=this.head,s=0;o;)v(o.data,e,s),s+=o.data.length,o=o.next;return e},p}(),i&&i.inspect&&i.inspect.custom&&(O.exports.prototype[i.inspect.custom]=function(){var p=i.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(n,O,S){"use strict";function d(p,r){var e=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(r?r(p):!p||this._writableState&&this._writableState.errorEmitted||i.nextTick(a,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(l){!r&&l?(i.nextTick(a,e,l),e._writableState&&(e._writableState.errorEmitted=!0)):r&&r(l)}),this)}function v(){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(p,r){p.emit("error",r)}var i=n("process-nextick-args");O.exports={destroy:d,undestroy:v}},{"process-nextick-args":172}],186:[function(n,O,S){"use strict";O.exports=n("events").EventEmitter},{events:158}],187:[function(n,O,S){O.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,O,S){S=O.exports=n("./lib/_stream_readable.js"),S.Stream=S,S.Readable=S,S.Writable=n("./lib/_stream_writable.js"),S.Duplex=n("./lib/_stream_duplex.js"),S.Transform=n("./lib/_stream_transform.js"),S.PassThrough=n("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(n,O,S){O.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,O,S){O.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,O,S){var d=function(){return this}()||Function("return this")(),v=d.regeneratorRuntime&&Object.getOwnPropertyNames(d).indexOf("regeneratorRuntime")>=0,a=v&&d.regeneratorRuntime;if(d.regeneratorRuntime=void 0,O.exports=n("./runtime"),v)d.regeneratorRuntime=a;else try{delete d.regeneratorRuntime}catch(i){d.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,O,S){!function(d){"use strict";function v(X,D,L,M){var B=D&&D.prototype instanceof i?D:i,ee=Object.create(B.prototype),K=new w(M||[]);return ee._invoke=s(X,L,K),ee}function a(X,D,L){try{return{type:"normal",arg:X.call(D,L)}}catch(M){return{type:"throw",arg:M}}}function i(){}function p(){}function r(){}function e(X){["next","throw","return"].forEach(function(D){X[D]=function(L){return this._invoke(D,L)}})}function o(X){function D(B,ee,K,oe){var te=a(X[B],X,ee);if(te.type!=="throw"){var ae=te.arg,pe=ae.value;return pe&&typeof pe=="object"&&m.call(pe,"__await")?Promise.resolve(pe.__await).then(function(J){D("next",J,K,oe)},function(J){D("throw",J,K,oe)}):Promise.resolve(pe).then(function(J){ae.value=J,K(ae)},oe)}oe(te.arg)}function L(B,ee){function K(){return new Promise(function(oe,te){D(B,ee,oe,te)})}return M=M?M.then(K,K):K()}var M;this._invoke=L}function s(X,D,L){var M=I;return function(B,ee){if(M===G)throw new Error("Generator is already running");if(M===V){if(B==="throw")throw ee;return f()}for(L.method=B,L.arg=ee;;){var K=L.delegate;if(K){var oe=l(K,L);if(oe){if(oe===H)continue;return oe}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(M===I)throw M=V,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);M=G;var te=a(X,D,L);if(te.type==="normal"){if(M=L.done?V:N,te.arg===H)continue;return{value:te.arg,done:L.done}}te.type==="throw"&&(M=V,L.method="throw",L.arg=te.arg)}}}function l(X,D){var L=X.iterator[D.method];if(L===E){if(D.delegate=null,D.method==="throw"){if(X.iterator.return&&(D.method="return",D.arg=E,l(X,D),D.method==="throw"))return H;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var M=a(L,X.iterator,D.arg);if(M.type==="throw")return D.method="throw",D.arg=M.arg,D.delegate=null,H;var B=M.arg;return B?B.done?(D[X.resultName]=B.value,D.next=X.nextLoc,D.method!=="return"&&(D.method="next",D.arg=E),D.delegate=null,H):B:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,H)}function h(X){var D={tryLoc:X[0]};1 in X&&(D.catchLoc=X[1]),2 in X&&(D.finallyLoc=X[2],D.afterLoc=X[3]),this.tryEntries.push(D)}function c(X){var D=X.completion||{};D.type="normal",delete D.arg,X.completion=D}function w(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(h,this),this.reset(!0)}function y(X){if(X){var D=X[C];if(D)return D.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var L=-1,M=function B(){for(;++L<X.length;)if(m.call(X,L))return B.value=X[L],B.done=!1,B;return B.value=E,B.done=!0,B};return M.next=M}}return{next:f}}function f(){return{value:E,done:!0}}var E,T=Object.prototype,m=T.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},C=_.iterator||"@@iterator",j=_.asyncIterator||"@@asyncIterator",b=_.toStringTag||"@@toStringTag",R=typeof O=="object",P=d.regeneratorRuntime;if(P)return void(R&&(O.exports=P));P=d.regeneratorRuntime=R?O.exports:{},P.wrap=v;var I="suspendedStart",N="suspendedYield",G="executing",V="completed",H={},ie={};ie[C]=function(){return this};var F=Object.getPrototypeOf,re=F&&F(F(y([])));re&&re!==T&&m.call(re,C)&&(ie=re);var Y=r.prototype=i.prototype=Object.create(ie);p.prototype=Y.constructor=r,r.constructor=p,r[b]=p.displayName="GeneratorFunction",P.isGeneratorFunction=function(X){var D=typeof X=="function"&&X.constructor;return!!D&&(D===p||(D.displayName||D.name)==="GeneratorFunction")},P.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,r):(X.__proto__=r,b in X||(X[b]="GeneratorFunction")),X.prototype=Object.create(Y),X},P.awrap=function(X){return{__await:X}},e(o.prototype),o.prototype[j]=function(){return this},P.AsyncIterator=o,P.async=function(X,D,L,M){var B=new o(v(X,D,L,M));return P.isGeneratorFunction(D)?B:B.next().then(function(ee){return ee.done?ee.value:B.next()})},e(Y),Y[b]="Generator",Y[C]=function(){return this},Y.toString=function(){return"[object Generator]"},P.keys=function(X){var D=[];for(var L in X)D.push(L);return D.reverse(),function M(){for(;D.length;){var B=D.pop();if(B in X)return M.value=B,M.done=!1,M}return M.done=!0,M}},P.values=y,w.prototype={constructor:w,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=E,this.done=!1,this.delegate=null,this.method="next",this.arg=E,this.tryEntries.forEach(c),!X)for(var D in this)D.charAt(0)==="t"&&m.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=E)},stop:function(){this.done=!0;var X=this.tryEntries[0],D=X.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(X){function D(te,ae){return ee.type="throw",ee.arg=X,L.next=te,ae&&(L.method="next",L.arg=E),!!ae}if(this.done)throw X;for(var L=this,M=this.tryEntries.length-1;M>=0;--M){var B=this.tryEntries[M],ee=B.completion;if(B.tryLoc==="root")return D("end");if(B.tryLoc<=this.prev){var K=m.call(B,"catchLoc"),oe=m.call(B,"finallyLoc");if(K&&oe){if(this.prev<B.catchLoc)return D(B.catchLoc,!0);if(this.prev<B.finallyLoc)return D(B.finallyLoc)}else if(K){if(this.prev<B.catchLoc)return D(B.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return D(B.finallyLoc)}}}},abrupt:function(X,D){for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L];if(M.tryLoc<=this.prev&&m.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var B=M;break}}B&&(X==="break"||X==="continue")&&B.tryLoc<=D&&D<=B.finallyLoc&&(B=null);var ee=B?B.completion:{};return ee.type=X,ee.arg=D,B?(this.method="next",this.next=B.finallyLoc,H):this.complete(ee)},complete:function(X,D){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&D&&(this.next=D),H},finish:function(X){for(var D=this.tryEntries.length-1;D>=0;--D){var L=this.tryEntries[D];if(L.finallyLoc===X)return this.complete(L.completion,L.afterLoc),c(L),H}},catch:function(X){for(var D=this.tryEntries.length-1;D>=0;--D){var L=this.tryEntries[D];if(L.tryLoc===X){var M=L.completion;if(M.type==="throw"){var B=M.arg;c(L)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(X,D,L){return this.delegate={iterator:y(X),resultName:D,nextLoc:L},this.method==="next"&&(this.arg=E),H}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,O,S){function d(p,r){for(var e in p)r[e]=p[e]}function v(p,r,e){return i(p,r,e)}var a=n("buffer"),i=a.Buffer;i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?O.exports=a:(d(a,S),S.Buffer=v),d(i,v),v.from=function(p,r,e){if(typeof p=="number")throw new TypeError("Argument must not be a number");return i(p,r,e)},v.alloc=function(p,r,e){if(typeof p!="number")throw new TypeError("Argument must be a number");var o=i(p);return r!==void 0?typeof e=="string"?o.fill(r,e):o.fill(r):o.fill(0),o},v.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return i(p)},v.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(p)}},{buffer:38}],194:[function(n,O,S){(function(d){"use strict";function v(f){return f&&f.__esModule?f:{default:f}}var a=n("babel-runtime/core-js/string/from-code-point"),i=v(a),p=n("babel-runtime/core-js/json/stringify"),r=v(p),e=n("babel-runtime/helpers/typeof"),o=v(e),s=n("babel-runtime/core-js/object/define-property"),l=v(s),h=n("babel-runtime/core-js/object/keys"),c=v(h),w=n("babel-runtime/core-js/object/create"),y=v(w);!function(f){function E(g,x){if(!(this instanceof E))return new E(g,x);var z=this;m(z),z.q=z.c="",z.bufferCheckPosition=f.MAX_BUFFER_LENGTH,z.opt=x||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!g,z.noscript=!(!g&&!z.opt.noscript),z.state=u.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?(0,y.default)(f.XML_ENTITIES):(0,y.default)(f.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=(0,y.default)(Z)),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),G(z,"onready")}function T(g){for(var x=Math.max(f.MAX_BUFFER_LENGTH,10),z=0,W=0,fe=ae.length;W<fe;W++){var ce=g[ae[W]].length;if(ce>x)switch(ae[W]){case"textNode":H(g);break;case"cdata":V(g,"oncdata",g.cdata),g.cdata="";break;case"script":V(g,"onscript",g.script),g.script="";break;default:F(g,"Max buffer length exceeded: "+ae[W])}z=Math.max(z,ce)}var de=f.MAX_BUFFER_LENGTH-z;g.bufferCheckPosition=de+g.position}function m(g){for(var x=0,z=ae.length;x<z;x++)g[ae[x]]=""}function _(g){H(g),g.cdata!==""&&(V(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(V(g,"onscript",g.script),g.script="")}function C(g,x){return new j(g,x)}function j(g,x){if(!(this instanceof j))return new j(g,x);pe.apply(this),this._parser=new E(g,x),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(W){z.emit("error",W),z._parser.error=null},this._decoder=null,J.forEach(function(W){(0,l.default)(z,"on"+W,{get:function(){return z._parser["on"+W]},set:function(fe){if(!fe)return z.removeAllListeners(W),z._parser["on"+W]=fe,fe;z.on(W,fe)},enumerable:!0,configurable:!1})})}function b(g){return g===" "||g===`
|
|
|
`||g==="\r"||g===" "}function R(g){return g==='"'||g==="'"}function P(g){return g===">"||b(g)}function I(g,x){return g.test(x)}function N(g,x){return!I(g,x)}function G(g,x,z){g[x]&&g[x](z)}function V(g,x,z){g.textNode&&H(g),G(g,x,z)}function H(g){g.textNode=ie(g.opt,g.textNode),g.textNode&&G(g,"ontext",g.textNode),g.textNode=""}function ie(g,x){return g.trim&&(x=x.trim()),g.normalize&&(x=x.replace(/\s+/g," ")),x}function F(g,x){return H(g),g.trackPosition&&(x+=`
|
|
|
Line: `+g.line+`
|
|
|
Column: `+g.column+`
|
|
|
Char: `+g.c),x=new Error(x),g.error=x,G(g,"onerror",x),g}function re(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==u.BEGIN&&g.state!==u.BEGIN_WHITESPACE&&g.state!==u.TEXT&&F(g,"Unexpected end"),H(g),g.c="",g.closed=!0,G(g,"onend"),E.call(g,g.strict,g.opt),g}function Y(g,x){if((g===void 0?"undefined":(0,o.default)(g))!=="object"||!(g instanceof E))throw new Error("bad call to strictFail");g.strict&&F(g,x)}function X(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var x=g.tags[g.tags.length-1]||g,z=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(z.ns=x.ns),g.attribList.length=0,V(g,"onopentagstart",z)}function D(g,x){var z=g.indexOf(":"),W=z<0?["",g]:g.split(":"),fe=W[0],ce=W[1];return x&&g==="xmlns"&&(fe="xmlns",ce=""),{prefix:fe,local:ce}}function L(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName))return void(g.attribName=g.attribValue="");if(g.opt.xmlns){var x=D(g.attribName,!0),z=x.prefix,W=x.local;if(z==="xmlns")if(W==="xml"&&g.attribValue!==q)Y(g,"xml: prefix must be bound to "+q+`
|
|
|
Actual: `+g.attribValue);else if(W==="xmlns"&&g.attribValue!==U)Y(g,"xmlns: prefix must be bound to "+U+`
|
|
|
Actual: `+g.attribValue);else{var fe=g.tag,ce=g.tags[g.tags.length-1]||g;fe.ns===ce.ns&&(fe.ns=(0,y.default)(ce.ns)),fe.ns[W]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,V(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function M(g,x){if(g.opt.xmlns){var z=g.tag,W=D(g.tagName);z.prefix=W.prefix,z.local=W.local,z.uri=z.ns[W.prefix]||"",z.prefix&&!z.uri&&(Y(g,"Unbound namespace prefix: "+(0,r.default)(g.tagName)),z.uri=W.prefix);var fe=g.tags[g.tags.length-1]||g;z.ns&&fe.ns!==z.ns&&(0,c.default)(z.ns).forEach(function(Te){V(g,"onopennamespace",{prefix:Te,uri:z.ns[Te]})});for(var ce=0,de=g.attribList.length;ce<de;ce++){var he=g.attribList[ce],_e=he[0],be=he[1],ue=D(_e,!0),ye=ue.prefix,we=ue.local,xe=ye===""?"":z.ns[ye]||"",ge={name:_e,value:be,prefix:ye,local:we,uri:xe};ye&&ye!=="xmlns"&&!xe&&(Y(g,"Unbound namespace prefix: "+(0,r.default)(ye)),ge.uri=ye),g.tag.attributes[_e]=ge,V(g,"onattribute",ge)}g.attribList.length=0}g.tag.isSelfClosing=!!x,g.sawRoot=!0,g.tags.push(g.tag),V(g,"onopentag",g.tag),x||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=u.TEXT:g.state=u.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function B(g){if(!g.tagName)return Y(g,"Weird empty close tag."),g.textNode+="</>",void(g.state=u.TEXT);if(g.script){if(g.tagName!=="script")return g.script+="</"+g.tagName+">",g.tagName="",void(g.state=u.SCRIPT);V(g,"onscript",g.script),g.script=""}var x=g.tags.length,z=g.tagName;g.strict||(z=z[g.looseCase]());for(var W=z;x--&&!(g.tags[x].name===W);)Y(g,"Unexpected close tag");if(x<0)return Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",void(g.state=u.TEXT);g.tagName=z;for(var fe=g.tags.length;fe-- >x;){var ce=g.tag=g.tags.pop();g.tagName=g.tag.name,V(g,"onclosetag",g.tagName);var de={};for(var he in ce.ns)de[he]=ce.ns[he];var _e=g.tags[g.tags.length-1]||g;g.opt.xmlns&&ce.ns!==_e.ns&&(0,c.default)(ce.ns).forEach(function(be){var ue=ce.ns[be];V(g,"onclosenamespace",{prefix:be,uri:ue})})}x===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=u.TEXT}function ee(g){var x,z=g.entity,W=z.toLowerCase(),fe="";return g.ENTITIES[z]?g.ENTITIES[z]:g.ENTITIES[W]?g.ENTITIES[W]:(z=W,z.charAt(0)==="#"&&(z.charAt(1)==="x"?(z=z.slice(2),x=parseInt(z,16),fe=x.toString(16)):(z=z.slice(1),x=parseInt(z,10),fe=x.toString(10))),z=z.replace(/^0+/,""),isNaN(x)||fe.toLowerCase()!==z?(Y(g,"Invalid character entity"),"&"+g.entity+";"):(0,i.default)(x))}function K(g,x){x==="<"?(g.state=u.OPEN_WAKA,g.startTagPosition=g.position):b(x)||(Y(g,"Non-whitespace before first tag."),g.textNode=x,g.state=u.TEXT)}function oe(g,x){var z="";return x<g.length&&(z=g.charAt(x)),z}function te(g){var x=this;if(this.error)throw this.error;if(x.closed)return F(x,"Cannot write after close. Assign an onready handler.");if(g===null)return re(x);(g===void 0?"undefined":(0,o.default)(g))==="object"&&(g=g.toString());for(var z=0,W="";!(W=oe(g,z++),x.c=W,!W);)switch(x.trackPosition&&(x.position++,W===`
|
|
|
`?(x.line++,x.column=0):x.column++),x.state){case u.BEGIN:if(x.state=u.BEGIN_WHITESPACE,W==="\uFEFF")continue;K(x,W);continue;case u.BEGIN_WHITESPACE:K(x,W);continue;case u.TEXT:if(x.sawRoot&&!x.closedRoot){for(var fe=z-1;W&&W!=="<"&&W!=="&";)(W=oe(g,z++))&&x.trackPosition&&(x.position++,W===`
|
|
|
`?(x.line++,x.column=0):x.column++);x.textNode+=g.substring(fe,z-1)}W!=="<"||x.sawRoot&&x.closedRoot&&!x.strict?(b(W)||x.sawRoot&&!x.closedRoot||Y(x,"Text data outside of root node."),W==="&"?x.state=u.TEXT_ENTITY:x.textNode+=W):(x.state=u.OPEN_WAKA,x.startTagPosition=x.position);continue;case u.SCRIPT:W==="<"?x.state=u.SCRIPT_ENDING:x.script+=W;continue;case u.SCRIPT_ENDING:W==="/"?x.state=u.CLOSE_TAG:(x.script+="<"+W,x.state=u.SCRIPT);continue;case u.OPEN_WAKA:if(W==="!")x.state=u.SGML_DECL,x.sgmlDecl="";else if(!b(W))if(I(Q,W))x.state=u.OPEN_TAG,x.tagName=W;else if(W==="/")x.state=u.CLOSE_TAG,x.tagName="";else if(W==="?")x.state=u.PROC_INST,x.procInstName=x.procInstBody="";else{if(Y(x,"Unencoded <"),x.startTagPosition+1<x.position){var ce=x.position-x.startTagPosition;W=new Array(ce).join(" ")+W}x.textNode+="<"+W,x.state=u.TEXT}continue;case u.SGML_DECL:(x.sgmlDecl+W).toUpperCase()===$?(V(x,"onopencdata"),x.state=u.CDATA,x.sgmlDecl="",x.cdata=""):x.sgmlDecl+W==="--"?(x.state=u.COMMENT,x.comment="",x.sgmlDecl=""):(x.sgmlDecl+W).toUpperCase()===ne?(x.state=u.DOCTYPE,(x.doctype||x.sawRoot)&&Y(x,"Inappropriately located doctype declaration"),x.doctype="",x.sgmlDecl=""):W===">"?(V(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=u.TEXT):(R(W)&&(x.state=u.SGML_DECL_QUOTED),x.sgmlDecl+=W);continue;case u.SGML_DECL_QUOTED:W===x.q&&(x.state=u.SGML_DECL,x.q=""),x.sgmlDecl+=W;continue;case u.DOCTYPE:W===">"?(x.state=u.TEXT,V(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=W,W==="["?x.state=u.DOCTYPE_DTD:R(W)&&(x.state=u.DOCTYPE_QUOTED,x.q=W));continue;case u.DOCTYPE_QUOTED:x.doctype+=W,W===x.q&&(x.q="",x.state=u.DOCTYPE);continue;case u.DOCTYPE_DTD:x.doctype+=W,W==="]"?x.state=u.DOCTYPE:R(W)&&(x.state=u.DOCTYPE_DTD_QUOTED,x.q=W);continue;case u.DOCTYPE_DTD_QUOTED:x.doctype+=W,W===x.q&&(x.state=u.DOCTYPE_DTD,x.q="");continue;case u.COMMENT:W==="-"?x.state=u.COMMENT_ENDING:x.comment+=W;continue;case u.COMMENT_ENDING:W==="-"?(x.state=u.COMMENT_ENDED,x.comment=ie(x.opt,x.comment),x.comment&&V(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+W,x.state=u.COMMENT);continue;case u.COMMENT_ENDED:W!==">"?(Y(x,"Malformed comment"),x.comment+="--"+W,x.state=u.COMMENT):x.state=u.TEXT;continue;case u.CDATA:W==="]"?x.state=u.CDATA_ENDING:x.cdata+=W;continue;case u.CDATA_ENDING:W==="]"?x.state=u.CDATA_ENDING_2:(x.cdata+="]"+W,x.state=u.CDATA);continue;case u.CDATA_ENDING_2:W===">"?(x.cdata&&V(x,"oncdata",x.cdata),V(x,"onclosecdata"),x.cdata="",x.state=u.TEXT):W==="]"?x.cdata+="]":(x.cdata+="]]"+W,x.state=u.CDATA);continue;case u.PROC_INST:W==="?"?x.state=u.PROC_INST_ENDING:b(W)?x.state=u.PROC_INST_BODY:x.procInstName+=W;continue;case u.PROC_INST_BODY:if(!x.procInstBody&&b(W))continue;W==="?"?x.state=u.PROC_INST_ENDING:x.procInstBody+=W;continue;case u.PROC_INST_ENDING:W===">"?(V(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=u.TEXT):(x.procInstBody+="?"+W,x.state=u.PROC_INST_BODY);continue;case u.OPEN_TAG:I(se,W)?x.tagName+=W:(X(x),W===">"?M(x):W==="/"?x.state=u.OPEN_TAG_SLASH:(b(W)||Y(x,"Invalid character in tag name"),x.state=u.ATTRIB));continue;case u.OPEN_TAG_SLASH:W===">"?(M(x,!0),B(x)):(Y(x,"Forward-slash in opening tag not followed by >"),x.state=u.ATTRIB);continue;case u.ATTRIB:if(b(W))continue;W===">"?M(x):W==="/"?x.state=u.OPEN_TAG_SLASH:I(Q,W)?(x.attribName=W,x.attribValue="",x.state=u.ATTRIB_NAME):Y(x,"Invalid attribute name");continue;case u.ATTRIB_NAME:W==="="?x.state=u.ATTRIB_VALUE:W===">"?(Y(x,"Attribute without value"),x.attribValue=x.attribName,L(x),M(x)):b(W)?x.state=u.ATTRIB_NAME_SAW_WHITE:I(se,W)?x.attribName+=W:Y(x,"Invalid attribute name");continue;case u.ATTRIB_NAME_SAW_WHITE:if(W==="=")x.state=u.ATTRIB_VALUE;else{if(b(W))continue;Y(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",V(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",W===">"?M(x):I(Q,W)?(x.attribName=W,x.state=u.ATTRIB_NAME):(Y(x,"Invalid attribute name"),x.state=u.ATTRIB)}continue;case u.ATTRIB_VALUE:if(b(W))continue;R(W)?(x.q=W,x.state=u.ATTRIB_VALUE_QUOTED):(Y(x,"Unquoted attribute value"),x.state=u.ATTRIB_VALUE_UNQUOTED,x.attribValue=W);continue;case u.ATTRIB_VALUE_QUOTED:if(W!==x.q){W==="&"?x.state=u.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=W;continue}L(x),x.q="",x.state=u.ATTRIB_VALUE_CLOSED;continue;case u.ATTRIB_VALUE_CLOSED:b(W)?x.state=u.ATTRIB:W===">"?M(x):W==="/"?x.state=u.OPEN_TAG_SLASH:I(Q,W)?(Y(x,"No whitespace between attributes"),x.attribName=W,x.attribValue="",x.state=u.ATTRIB_NAME):Y(x,"Invalid attribute name");continue;case u.ATTRIB_VALUE_UNQUOTED:if(!P(W)){W==="&"?x.state=u.ATTRIB_VALUE_ENTITY_U:x.attribValue+=W;continue}L(x),W===">"?M(x):x.state=u.ATTRIB;continue;case u.CLOSE_TAG:if(x.tagName)W===">"?B(x):I(se,W)?x.tagName+=W:x.script?(x.script+="</"+x.tagName,x.tagName="",x.state=u.SCRIPT):(b(W)||Y(x,"Invalid tagname in closing tag"),x.state=u.CLOSE_TAG_SAW_WHITE);else{if(b(W))continue;N(Q,W)?x.script?(x.script+="</"+W,x.state=u.SCRIPT):Y(x,"Invalid tagname in closing tag."):x.tagName=W}continue;case u.CLOSE_TAG_SAW_WHITE:if(b(W))continue;W===">"?B(x):Y(x,"Invalid characters in closing tag");continue;case u.TEXT_ENTITY:case u.ATTRIB_VALUE_ENTITY_Q:case u.ATTRIB_VALUE_ENTITY_U:var de,he;switch(x.state){case u.TEXT_ENTITY:de=u.TEXT,he="textNode";break;case u.ATTRIB_VALUE_ENTITY_Q:de=u.ATTRIB_VALUE_QUOTED,he="attribValue";break;case u.ATTRIB_VALUE_ENTITY_U:de=u.ATTRIB_VALUE_UNQUOTED,he="attribValue"}W===";"?(x[he]+=ee(x),x.entity="",x.state=de):I(x.entity.length?t:k,W)?x.entity+=W:(Y(x,"Invalid character in entity name"),x[he]+="&"+x.entity+W,x.entity="",x.state=de);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&T(x),x}f.parser=function(g,x){return new E(g,x)},f.SAXParser=E,f.SAXStream=j,f.createStream=C,f.MAX_BUFFER_LENGTH=65536;var ae=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];f.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],y.default||(Object.create=function(g){function x(){}return x.prototype=g,new x}),c.default||(Object.keys=function(g){var x=[];for(var z in g)g.hasOwnProperty(z)&&x.push(z);return x}),E.prototype={end:function(){re(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){_(this)}};var pe;try{pe=n("stream").Stream}catch(g){pe=function(){}}var J=f.EVENTS.filter(function(g){return g!=="error"&&g!=="end"});j.prototype=(0,y.default)(pe.prototype,{constructor:{value:j}}),j.prototype.write=function(g){if(typeof d=="function"&&typeof d.isBuffer=="function"&&d.isBuffer(g)){if(!this._decoder){var x=n("string_decoder").StringDecoder;this._decoder=new x("utf8")}g=this._decoder.write(g)}return this._parser.write(g.toString()),this.emit("data",g),!0},j.prototype.end=function(g){return g&&g.length&&this.write(g),this._parser.end(),!0},j.prototype.on=function(g,x){var z=this;return z._parser["on"+g]||J.indexOf(g)===-1||(z._parser["on"+g]=function(){var W=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,g),z.emit.apply(z,W)}),pe.prototype.on.call(z,g,x)};var $="[CDATA[",ne="DOCTYPE",q="http://www.w3.org/XML/1998/namespace",U="http://www.w3.org/2000/xmlns/",Z={xml:q,xmlns:U},Q=/[:_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]/,se=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,k=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,t=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,u=0;f.STATE={BEGIN:u++,BEGIN_WHITESPACE:u++,TEXT:u++,TEXT_ENTITY:u++,OPEN_WAKA:u++,SGML_DECL:u++,SGML_DECL_QUOTED:u++,DOCTYPE:u++,DOCTYPE_QUOTED:u++,DOCTYPE_DTD:u++,DOCTYPE_DTD_QUOTED:u++,COMMENT_STARTING:u++,COMMENT:u++,COMMENT_ENDING:u++,COMMENT_ENDED:u++,CDATA:u++,CDATA_ENDING:u++,CDATA_ENDING_2:u++,PROC_INST:u++,PROC_INST_BODY:u++,PROC_INST_ENDING:u++,OPEN_TAG:u++,OPEN_TAG_SLASH:u++,ATTRIB:u++,ATTRIB_NAME:u++,ATTRIB_NAME_SAW_WHITE:u++,ATTRIB_VALUE:u++,ATTRIB_VALUE_QUOTED:u++,ATTRIB_VALUE_CLOSED:u++,ATTRIB_VALUE_UNQUOTED:u++,ATTRIB_VALUE_ENTITY_Q:u++,ATTRIB_VALUE_ENTITY_U:u++,CLOSE_TAG:u++,CLOSE_TAG_SAW_WHITE:u++,SCRIPT:u++,SCRIPT_ENDING:u++},f.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},f.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,c.default)(f.ENTITIES).forEach(function(g){var x=f.ENTITIES[g],z=typeof x=="number"?String.fromCharCode(x):x;f.ENTITIES[g]=z});for(var A in f.STATE)f.STATE[f.STATE[A]]=A;u=f.STATE,i.default||function(){var g=String.fromCharCode,x=Math.floor,z=function(){var W,fe,ce=[],de=-1,he=arguments.length;if(!he)return"";for(var _e="";++de<he;){var be=Number(arguments[de]);if(!isFinite(be)||be<0||be>1114111||x(be)!==be)throw RangeError("Invalid code point: "+be);be<=65535?ce.push(be):(be-=65536,W=55296+(be>>10),fe=be%1024+56320,ce.push(W,fe)),(de+1===he||ce.length>16384)&&(_e+=g.apply(null,ce),ce.length=0)}return _e};l.default?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()}(S===void 0?(void 0).sax={}:S)}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(n,O,S){function d(){v.call(this)}O.exports=d;var v=n("events").EventEmitter;n("inherits")(d,v),d.Readable=n("readable-stream/readable.js"),d.Writable=n("readable-stream/writable.js"),d.Duplex=n("readable-stream/duplex.js"),d.Transform=n("readable-stream/transform.js"),d.PassThrough=n("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,i){function p(w){a.writable&&a.write(w)===!1&&h.pause&&h.pause()}function r(){h.readable&&h.resume&&h.resume()}function e(){c||(c=!0,a.end())}function o(){c||(c=!0,typeof a.destroy=="function"&&a.destroy())}function s(w){if(l(),v.listenerCount(this,"error")===0)throw w}function l(){h.removeListener("data",p),a.removeListener("drain",r),h.removeListener("end",e),h.removeListener("close",o),h.removeListener("error",s),a.removeListener("error",s),h.removeListener("end",l),h.removeListener("close",l),a.removeListener("close",l)}var h=this;h.on("data",p),a.on("drain",r),a._isStdio||i&&i.end===!1||(h.on("end",e),h.on("close",o));var c=!1;return h.on("error",s),a.on("error",s),h.on("end",l),h.on("close",l),a.on("close",l),a.emit("pipe",h),a}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(n,O,S){(function(d){var v=n("./lib/request"),a=n("./lib/response"),i=n("xtend"),p=n("builtin-status-codes"),r=n("url"),e=S;e.request=function(o,s){o=typeof o=="string"?r.parse(o):i(o);var l=d.location.protocol.search(/^https?:$/)===-1?"http:":"",h=o.protocol||l,c=o.hostname||o.host,w=o.port,y=o.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),o.url=(c?h+"//"+c:"")+(w?":"+w:"")+y,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var f=new v(o);return s&&f.on("response",s),f},e.get=function(o,s){var l=e.request(o,s);return l.end(),l},e.ClientRequest=v,e.IncomingMessage=a.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=p,e.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,O,S){(function(d){"use strict";function v(){if(p!==void 0)return p;if(d.XMLHttpRequest){p=new d.XMLHttpRequest;try{p.open("GET",d.XDomainRequest?"/":"https://example.com")}catch(o){p=null}}else p=null;return p}function a(o){var s=v();if(!s)return!1;try{return s.responseType=o,s.responseType===o}catch(l){}return!1}function i(o){return typeof o=="function"}S.fetch=i(d.fetch)&&i(d.ReadableStream),S.writableStream=i(d.WritableStream),S.abortController=i(d.AbortController),S.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),S.blobConstructor=!0}catch(o){}var p,r=d.ArrayBuffer!==void 0,e=r&&i(d.ArrayBuffer.prototype.slice);S.arraybuffer=S.fetch||r&&a("arraybuffer"),S.msstream=!S.fetch&&e&&a("ms-stream"),S.mozchunkedarraybuffer=!S.fetch&&r&&a("moz-chunked-arraybuffer"),S.overrideMimeType=S.fetch||!!v()&&i(v().overrideMimeType),S.vbArray=i(d.VBArray),p=null}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,O,S){(function(d,v,a){"use strict";function i(T,m){return o.fetch&&m?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&T?"arraybuffer":o.vbArray&&T?"text:vbarray":"text"}function p(T){try{var m=T.status;return m!==null&&m!==0}catch(_){return!1}}var r=n("babel-runtime/core-js/object/keys"),e=function(T){return T&&T.__esModule?T:{default:T}}(r),o=n("./capability"),s=n("inherits"),l=n("./response"),h=n("readable-stream"),c=n("to-arraybuffer"),w=l.IncomingMessage,y=l.readyStates,f=O.exports=function(T){var m=this;h.Writable.call(m),m._opts=T,m._body=[],m._headers={},T.auth&&m.setHeader("Authorization","Basic "+new a(T.auth).toString("base64")),(0,e.default)(T.headers).forEach(function(j){m.setHeader(j,T.headers[j])});var _,C=!0;if(T.mode==="disable-fetch"||"requestTimeout"in T&&!o.abortController)C=!1,_=!0;else if(T.mode==="prefer-streaming")_=!1;else if(T.mode==="allow-wrong-content-type")_=!o.overrideMimeType;else{if(T.mode&&T.mode!=="default"&&T.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}m._mode=i(_,C),m._fetchTimer=null,m.on("finish",function(){m._onFinish()})};s(f,h.Writable),f.prototype.setHeader=function(T,m){var _=this,C=T.toLowerCase();E.indexOf(C)===-1&&(_._headers[C]={name:T,value:m})},f.prototype.getHeader=function(T){var m=this._headers[T.toLowerCase()];return m?m.value:null},f.prototype.removeHeader=function(T){delete this._headers[T.toLowerCase()]},f.prototype._onFinish=function(){var T=this;if(!T._destroyed){var m=T._opts,_=T._headers,C=null;m.method!=="GET"&&m.method!=="HEAD"&&(C=o.arraybuffer?c(a.concat(T._body)):o.blobConstructor?new v.Blob(T._body.map(function(I){return c(I)}),{type:(_["content-type"]||{}).value||""}):a.concat(T._body).toString());var j=[];if((0,e.default)(_).forEach(function(I){var N=_[I].name,G=_[I].value;Array.isArray(G)?G.forEach(function(V){j.push([N,V])}):j.push([N,G])}),T._mode==="fetch"){var b=null;if(o.abortController){var R=new AbortController;b=R.signal,T._fetchAbortController=R,"requestTimeout"in m&&m.requestTimeout!==0&&(T._fetchTimer=v.setTimeout(function(){T.emit("requestTimeout"),T._fetchAbortController&&T._fetchAbortController.abort()},m.requestTimeout))}v.fetch(T._opts.url,{method:T._opts.method,headers:j,body:C||void 0,mode:"cors",credentials:m.withCredentials?"include":"same-origin",signal:b}).then(function(I){T._fetchResponse=I,T._connect()},function(I){v.clearTimeout(T._fetchTimer),T._destroyed||T.emit("error",I)})}else{var P=T._xhr=new v.XMLHttpRequest;try{P.open(T._opts.method,T._opts.url,!0)}catch(I){return void d.nextTick(function(){T.emit("error",I)})}"responseType"in P&&(P.responseType=T._mode.split(":")[0]),"withCredentials"in P&&(P.withCredentials=!!m.withCredentials),T._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in m&&(P.timeout=m.requestTimeout,P.ontimeout=function(){T.emit("requestTimeout")}),j.forEach(function(I){P.setRequestHeader(I[0],I[1])}),T._response=null,P.onreadystatechange=function(){switch(P.readyState){case y.LOADING:case y.DONE:T._onXHRProgress()}},T._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){T._onXHRProgress()}),P.onerror=function(){T._destroyed||T.emit("error",new Error("XHR error"))};try{P.send(C)}catch(I){return void d.nextTick(function(){T.emit("error",I)})}}}},f.prototype._onXHRProgress=function(){var T=this;p(T._xhr)&&!T._destroyed&&(T._response||T._connect(),T._response._onXHRProgress())},f.prototype._connect=function(){var T=this;T._destroyed||(T._response=new w(T._xhr,T._fetchResponse,T._mode,T._fetchTimer),T._response.on("error",function(m){T.emit("error",m)}),T.emit("response",T._response))},f.prototype._write=function(T,m,_){this._body.push(T),_()},f.prototype.abort=f.prototype.destroy=function(){var T=this;T._destroyed=!0,v.clearTimeout(T._fetchTimer),T._response&&(T._response._destroyed=!0),T._xhr?T._xhr.abort():T._fetchAbortController&&T._fetchAbortController.abort()},f.prototype.end=function(T,m,_){var C=this;typeof T=="function"&&(_=T,T=void 0),h.Writable.prototype.end.call(C,T,m,_)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var E=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,n("_process"),typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(n,O,S){(function(d,v,a){"use strict";var i=n("babel-runtime/core-js/promise"),p=function(h){return h&&h.__esModule?h:{default:h}}(i),r=n("./capability"),e=n("inherits"),o=n("readable-stream"),s=S.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=S.IncomingMessage=function(h,c,w,y){var f=this;if(o.Readable.call(f),f._mode=w,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){d.nextTick(function(){f.emit("close")})}),w==="fetch"){if(f._fetchResponse=c,f.url=c.url,f.statusCode=c.status,f.statusMessage=c.statusText,c.headers.forEach(function(C,j){f.headers[j.toLowerCase()]=C,f.rawHeaders.push(j,C)}),r.writableStream){var E=new WritableStream({write:function(C){return new p.default(function(j,b){f._destroyed?b():f.push(new a(C))?j():f._resumeFetch=j})},close:function(){v.clearTimeout(y),f._destroyed||f.push(null)},abort:function(C){f._destroyed||f.emit("error",C)}});try{return void c.body.pipeTo(E).catch(function(C){v.clearTimeout(y),f._destroyed||f.emit("error",C)})}catch(C){}}var T=c.body.getReader();!function C(){T.read().then(function(j){if(!f._destroyed){if(j.done)return v.clearTimeout(y),void f.push(null);f.push(new a(j.value)),C()}}).catch(function(j){v.clearTimeout(y),f._destroyed||f.emit("error",j)})}()}else if(f._xhr=h,f._pos=0,f.url=h.responseURL,f.statusCode=h.status,f.statusMessage=h.statusText,h.getAllResponseHeaders().split(/\r?\n/).forEach(function(C){var j=C.match(/^([^:]+):\s*(.*)/);if(j){var b=j[1].toLowerCase();b==="set-cookie"?(f.headers[b]===void 0&&(f.headers[b]=[]),f.headers[b].push(j[2])):f.headers[b]!==void 0?f.headers[b]+=", "+j[2]:f.headers[b]=j[2],f.rawHeaders.push(j[1],j[2])}}),f._charset="x-user-defined",!r.overrideMimeType){var m=f.rawHeaders["mime-type"];if(m){var _=m.match(/;\s*charset=([^;])(;|$)/);_&&(f._charset=_[1].toLowerCase())}f._charset||(f._charset="utf-8")}};e(l,o.Readable),l.prototype._read=function(){var h=this,c=h._resumeFetch;c&&(h._resumeFetch=null,c())},l.prototype._onXHRProgress=function(){var h=this,c=h._xhr,w=null;switch(h._mode){case"text:vbarray":if(c.readyState!==s.DONE)break;try{w=new v.VBArray(c.responseBody).toArray()}catch(m){}if(w!==null){h.push(new a(w));break}case"text":try{w=c.responseText}catch(m){h._mode="text:vbarray";break}if(w.length>h._pos){var y=w.substr(h._pos);if(h._charset==="x-user-defined"){for(var f=new a(y.length),E=0;E<y.length;E++)f[E]=255&y.charCodeAt(E);h.push(f)}else h.push(y,h._charset);h._pos=w.length}break;case"arraybuffer":if(c.readyState!==s.DONE||!c.response)break;w=c.response,h.push(new a(new Uint8Array(w)));break;case"moz-chunked-arraybuffer":if(w=c.response,c.readyState!==s.LOADING||!w)break;h.push(new a(new Uint8Array(w)));break;case"ms-stream":if(w=c.response,c.readyState!==s.LOADING)break;var T=new v.MSStreamReader;T.onprogress=function(){T.result.byteLength>h._pos&&(h.push(new a(new Uint8Array(T.result.slice(h._pos)))),h._pos=T.result.byteLength)},T.onload=function(){h.push(null)},T.readAsArrayBuffer(w)}h._xhr.readyState===s.DONE&&h._mode!=="ms-stream"&&h.push(null)}}).call(this,n("_process"),typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(n,O,S){"use strict";function d(m){if(!m)return"utf8";for(var _;;)switch(m){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return m;default:if(_)return;m=(""+m).toLowerCase(),_=!0}}function v(m){var _=d(m);if(typeof _!="string"&&(E.isEncoding===T||!T(m)))throw new Error("Unknown encoding: "+m);return _||m}function a(m){this.encoding=v(m);var _;switch(this.encoding){case"utf16le":this.text=l,this.end=h,_=4;break;case"utf8":this.fillLast=e,_=4;break;case"base64":this.text=c,this.end=w,_=3;break;default:return this.write=y,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=E.allocUnsafe(_)}function i(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function p(m,_,C){var j=_.length-1;if(j<C)return 0;var b=i(_[j]);return b>=0?(b>0&&(m.lastNeed=b-1),b):--j<C||b===-2?0:(b=i(_[j]))>=0?(b>0&&(m.lastNeed=b-2),b):--j<C||b===-2?0:(b=i(_[j]),b>=0?(b>0&&(b===2?b=0:m.lastNeed=b-3),b):0)}function r(m,_,C){if((192&_[0])!=128)return m.lastNeed=0,"\u951F\uFFFD";if(m.lastNeed>1&&_.length>1){if((192&_[1])!=128)return m.lastNeed=1,"\u951F\uFFFD";if(m.lastNeed>2&&_.length>2&&(192&_[2])!=128)return m.lastNeed=2,"\u951F\uFFFD"}}function e(m){var _=this.lastTotal-this.lastNeed,C=r(this,m,_);return C!==void 0?C:this.lastNeed<=m.length?(m.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,_,0,m.length),void(this.lastNeed-=m.length))}function o(m,_){var C=p(this,m,_);if(!this.lastNeed)return m.toString("utf8",_);this.lastTotal=C;var j=m.length-(C-this.lastNeed);return m.copy(this.lastChar,0,j),m.toString("utf8",_,j)}function s(m){var _=m&&m.length?this.write(m):"";return this.lastNeed?_+"\u951F\uFFFD":_}function l(m,_){if((m.length-_)%2==0){var C=m.toString("utf16le",_);if(C){var j=C.charCodeAt(C.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",_,m.length-1)}function h(m){var _=m&&m.length?this.write(m):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,C)}return _}function c(m,_){var C=(m.length-_)%3;return C===0?m.toString("base64",_):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",_,m.length-C))}function w(m){var _=m&&m.length?this.write(m):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function y(m){return m.toString(this.encoding)}function f(m){return m&&m.length?this.write(m):""}var E=n("safe-buffer").Buffer,T=E.isEncoding||function(m){switch((m=""+m)&&m.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};S.StringDecoder=a,a.prototype.write=function(m){if(m.length===0)return"";var _,C;if(this.lastNeed){if((_=this.fillLast(m))===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<m.length?_?_+this.text(m,C):this.text(m,C):_||""},a.prototype.end=s,a.prototype.text=o,a.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":193}],201:[function(n,O,S){(function(d,v){function a(s,l){this._id=s,this._clearFn=l}var i=n("process/browser.js").nextTick,p=Function.prototype.apply,r=Array.prototype.slice,e={},o=0;S.setTimeout=function(){return new a(p.call(setTimeout,window,arguments),clearTimeout)},S.setInterval=function(){return new a(p.call(setInterval,window,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(s){s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},S.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},S.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},S._unrefActive=S.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},S.setImmediate=typeof d=="function"?d:function(s){var l=o++,h=!(arguments.length<2)&&r.call(arguments,1);return e[l]=!0,i(function(){e[l]&&(h?s.apply(null,h):s.call(null),S.clearImmediate(l))}),l},S.clearImmediate=typeof v=="function"?v:function(s){delete e[s]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,O,S){var d=n("buffer").Buffer;O.exports=function(v){if(v instanceof Uint8Array){if(v.byteOffset===0&&v.byteLength===v.buffer.byteLength)return v.buffer;if(typeof v.buffer.slice=="function")return v.buffer.slice(v.byteOffset,v.byteOffset+v.byteLength)}if(d.isBuffer(v)){for(var a=new Uint8Array(v.length),i=v.length,p=0;p<i;p++)a[p]=v[p];return a.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,O,S){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function v(b,R,P){if(b&&e.isObject(b)&&b instanceof d)return b;var I=new d;return I.parse(b,R,P),I}function a(b){return e.isString(b)&&(b=v(b)),b instanceof d?b.format():d.prototype.format.call(b)}function i(b,R){return v(b,!1,!0).resolve(R)}function p(b,R){return b?v(b,!1,!0).resolveObject(R):R}var r=n("punycode"),e=n("./util");S.parse=v,S.resolve=i,S.resolveObject=p,S.format=a,S.Url=d;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(h),w=["'"].concat(c),y=["%","/","?",";","#"].concat(w),f=["/","?","#"],E=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},j=n("querystring");d.prototype.parse=function(b,R,P){if(!e.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var I=b.indexOf("?"),N=I!==-1&&I<b.indexOf("#")?"?":"#",G=b.split(N),V=/\\/g;G[0]=G[0].replace(V,"/"),b=G.join(N);var H=b;if(H=H.trim(),!P&&b.split("#").length===1){var ie=l.exec(H);if(ie)return this.path=H,this.href=H,this.pathname=ie[1],ie[2]?(this.search=ie[2],this.query=R?j.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var F=o.exec(H);if(F){F=F[0];var re=F.toLowerCase();this.protocol=re,H=H.substr(F.length)}if(P||F||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var Y=H.substr(0,2)==="//";!Y||F&&_[F]||(H=H.substr(2),this.slashes=!0)}if(!_[F]&&(Y||F&&!C[F])){for(var X=-1,D=0;D<f.length;D++){var L=H.indexOf(f[D]);L!==-1&&(X===-1||L<X)&&(X=L)}var M,B;B=X===-1?H.lastIndexOf("@"):H.lastIndexOf("@",X),B!==-1&&(M=H.slice(0,B),H=H.slice(B+1),this.auth=decodeURIComponent(M)),X=-1;for(var D=0;D<y.length;D++){var L=H.indexOf(y[D]);L!==-1&&(X===-1||L<X)&&(X=L)}X===-1&&(X=H.length),this.host=H.slice(0,X),H=H.slice(X),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var K=this.hostname.split(/\./),D=0,oe=K.length;D<oe;D++){var te=K[D];if(te&&!te.match(E)){for(var ae="",pe=0,J=te.length;pe<J;pe++)te.charCodeAt(pe)>127?ae+="x":ae+=te[pe];if(!ae.match(E)){var $=K.slice(0,D),ne=K.slice(D+1),q=te.match(T);q&&($.push(q[1]),ne.unshift(q[2])),ne.length&&(H="/"+ne.join(".")+H),this.hostname=$.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+U,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!m[re])for(var D=0,oe=w.length;D<oe;D++){var Q=w[D];if(H.indexOf(Q)!==-1){var se=encodeURIComponent(Q);se===Q&&(se=escape(Q)),H=H.split(Q).join(se)}}var k=H.indexOf("#");k!==-1&&(this.hash=H.substr(k),H=H.slice(0,k));var t=H.indexOf("?");if(t!==-1?(this.search=H.substr(t),this.query=H.substr(t+1),R&&(this.query=j.parse(this.query)),H=H.slice(0,t)):R&&(this.search="",this.query={}),H&&(this.pathname=H),C[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",u=this.search||"";this.path=U+u}return this.href=this.format(),this},d.prototype.format=function(){var b=this.auth||"";b&&(b=encodeURIComponent(b),b=b.replace(/%3A/i,":"),b+="@");var R=this.protocol||"",P=this.pathname||"",I=this.hash||"",N=!1,G="";this.host?N=b+this.host:this.hostname&&(N=b+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(G=j.stringify(this.query));var V=this.search||G&&"?"+G||"";return R&&R.substr(-1)!==":"&&(R+=":"),this.slashes||(!R||C[R])&&N!==!1?(N="//"+(N||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):N||(N=""),I&&I.charAt(0)!=="#"&&(I="#"+I),V&&V.charAt(0)!=="?"&&(V="?"+V),P=P.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),V=V.replace("#","%23"),R+N+P+V+I},d.prototype.resolve=function(b){return this.resolveObject(v(b,!1,!0)).format()},d.prototype.resolveObject=function(b){if(e.isString(b)){var R=new d;R.parse(b,!1,!0),b=R}for(var P=new d,I=Object.keys(this),N=0;N<I.length;N++){var G=I[N];P[G]=this[G]}if(P.hash=b.hash,b.href==="")return P.href=P.format(),P;if(b.slashes&&!b.protocol){for(var V=Object.keys(b),H=0;H<V.length;H++){var ie=V[H];ie!=="protocol"&&(P[ie]=b[ie])}return C[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(b.protocol&&b.protocol!==P.protocol){if(!C[b.protocol]){for(var F=Object.keys(b),re=0;re<F.length;re++){var Y=F[re];P[Y]=b[Y]}return P.href=P.format(),P}if(P.protocol=b.protocol,b.host||_[b.protocol])P.pathname=b.pathname;else{for(var oe=(b.pathname||"").split("/");oe.length&&!(b.host=oe.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),P.pathname=oe.join("/")}if(P.search=b.search,P.query=b.query,P.host=b.host||"",P.auth=b.auth,P.hostname=b.hostname||b.host,P.port=b.port,P.pathname||P.search){var X=P.pathname||"",D=P.search||"";P.path=X+D}return P.slashes=P.slashes||b.slashes,P.href=P.format(),P}var L=P.pathname&&P.pathname.charAt(0)==="/",M=b.host||b.pathname&&b.pathname.charAt(0)==="/",B=M||L||P.host&&b.pathname,ee=B,K=P.pathname&&P.pathname.split("/")||[],oe=b.pathname&&b.pathname.split("/")||[],te=P.protocol&&!C[P.protocol];if(te&&(P.hostname="",P.port=null,P.host&&(K[0]===""?K[0]=P.host:K.unshift(P.host)),P.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(oe[0]===""?oe[0]=b.host:oe.unshift(b.host)),b.host=null),B=B&&(oe[0]===""||K[0]==="")),M)P.host=b.host||b.host===""?b.host:P.host,P.hostname=b.hostname||b.hostname===""?b.hostname:P.hostname,P.search=b.search,P.query=b.query,K=oe;else if(oe.length)K||(K=[]),K.pop(),K=K.concat(oe),P.search=b.search,P.query=b.query;else if(!e.isNullOrUndefined(b.search)){if(te){P.hostname=P.host=K.shift();var ae=!!(P.host&&P.host.indexOf("@")>0)&&P.host.split("@");ae&&(P.auth=ae.shift(),P.host=P.hostname=ae.shift())}return P.search=b.search,P.query=b.query,e.isNull(P.pathname)&&e.isNull(P.search)||(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!K.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var pe=K.slice(-1)[0],J=(P.host||b.host||K.length>1)&&(pe==="."||pe==="..")||pe==="",$=0,ne=K.length;ne>=0;ne--)pe=K[ne],pe==="."?K.splice(ne,1):pe===".."?(K.splice(ne,1),$++):$&&(K.splice(ne,1),$--);if(!B&&!ee)for(;$--;$)K.unshift("..");!B||K[0]===""||K[0]&&K[0].charAt(0)==="/"||K.unshift(""),J&&K.join("/").substr(-1)!=="/"&&K.push("");var q=K[0]===""||K[0]&&K[0].charAt(0)==="/";if(te){P.hostname=P.host=q?"":K.length?K.shift():"";var ae=!!(P.host&&P.host.indexOf("@")>0)&&P.host.split("@");ae&&(P.auth=ae.shift(),P.host=P.hostname=ae.shift())}return B=B||P.host&&K.length,B&&!q&&K.unshift(""),K.length?P.pathname=K.join("/"):(P.pathname=null,P.path=null),e.isNull(P.pathname)&&e.isNull(P.search)||(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=b.auth||P.auth,P.slashes=P.slashes||b.slashes,P.href=P.format(),P},d.prototype.parseHost=function(){var b=this.host,R=s.exec(b);R&&(R=R[0],R!==":"&&(this.port=R.substr(1)),b=b.substr(0,b.length-R.length)),b&&(this.hostname=b)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,O,S){"use strict";O.exports={isString:function(d){return typeof d=="string"},isObject:function(d){return typeof d=="object"&&d!==null},isNull:function(d){return d===null},isNullOrUndefined:function(d){return d==null}}},{}],205:[function(n,O,S){(function(d){function v(i,p){function r(){if(!e){if(a("throwDeprecation"))throw new Error(p);a("traceDeprecation")?console.trace(p):console.warn(p),e=!0}return i.apply(this,arguments)}if(a("noDeprecation"))return i;var e=!1;return r}function a(i){try{if(!d.localStorage)return!1}catch(r){return!1}var p=d.localStorage[i];return p!=null&&String(p).toLowerCase()==="true"}O.exports=v}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,O,S){O.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],207:[function(n,O,S){(function(d,v){function a(D,L){var M={seen:[],stylize:p};return arguments.length>=3&&(M.depth=arguments[2]),arguments.length>=4&&(M.colors=arguments[3]),y(L)?M.showHidden=L:L&&S._extend(M,L),C(M.showHidden)&&(M.showHidden=!1),C(M.depth)&&(M.depth=2),C(M.colors)&&(M.colors=!1),C(M.customInspect)&&(M.customInspect=!0),M.colors&&(M.stylize=i),e(M,D,M.depth)}function i(D,L){var M=a.styles[L];return M?"["+a.colors[M][0]+"m"+D+"["+a.colors[M][1]+"m":D}function p(D,L){return D}function r(D){var L={};return D.forEach(function(M,B){L[M]=!0}),L}function e(D,L,M){if(D.customInspect&&L&&I(L.inspect)&&L.inspect!==S.inspect&&(!L.constructor||L.constructor.prototype!==L)){var B=L.inspect(M,D);return m(B)||(B=e(D,B,M)),B}var ee=o(D,L);if(ee)return ee;var K=Object.keys(L),oe=r(K);if(D.showHidden&&(K=Object.getOwnPropertyNames(L)),P(L)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return s(L);if(K.length===0){if(I(L)){var te=L.name?": "+L.name:"";return D.stylize("[Function"+te+"]","special")}if(j(L))return D.stylize(RegExp.prototype.toString.call(L),"regexp");if(R(L))return D.stylize(Date.prototype.toString.call(L),"date");if(P(L))return s(L)}var ae="",pe=!1,J=["{","}"];if((w(L)&&(pe=!0,J=["[","]"]),I(L))&&(ae=" [Function"+(L.name?": "+L.name:"")+"]"),j(L)&&(ae=" "+RegExp.prototype.toString.call(L)),R(L)&&(ae=" "+Date.prototype.toUTCString.call(L)),P(L)&&(ae=" "+s(L)),K.length===0&&(!pe||L.length==0))return J[0]+ae+J[1];if(M<0)return j(L)?D.stylize(RegExp.prototype.toString.call(L),"regexp"):D.stylize("[Object]","special");D.seen.push(L);var $;return $=pe?l(D,L,M,oe,K):K.map(function(ne){return h(D,L,M,oe,ne,pe)}),D.seen.pop(),c($,ae,J)}function o(D,L){if(C(L))return D.stylize("undefined","undefined");if(m(L)){var M="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(M,"string")}return T(L)?D.stylize(""+L,"number"):y(L)?D.stylize(""+L,"boolean"):f(L)?D.stylize("null","null"):void 0}function s(D){return"["+Error.prototype.toString.call(D)+"]"}function l(D,L,M,B,ee){for(var K=[],oe=0,te=L.length;oe<te;++oe)ie(L,String(oe))?K.push(h(D,L,M,B,String(oe),!0)):K.push("");return ee.forEach(function(ae){ae.match(/^\d+$/)||K.push(h(D,L,M,B,ae,!0))}),K}function h(D,L,M,B,ee,K){var oe,te,ae;if(ae=Object.getOwnPropertyDescriptor(L,ee)||{value:L[ee]},ae.get?te=ae.set?D.stylize("[Getter/Setter]","special"):D.stylize("[Getter]","special"):ae.set&&(te=D.stylize("[Setter]","special")),ie(B,ee)||(oe="["+ee+"]"),te||(D.seen.indexOf(ae.value)<0?(te=f(M)?e(D,ae.value,null):e(D,ae.value,M-1),te.indexOf(`
|
|
|
`)>-1&&(te=K?te.split(`
|
|
|
`).map(function(pe){return" "+pe}).join(`
|
|
|
`).substr(2):`
|
|
|
`+te.split(`
|
|
|
`).map(function(pe){return" "+pe}).join(`
|
|
|
`))):te=D.stylize("[Circular]","special")),C(oe)){if(K&&ee.match(/^\d+$/))return te;oe=JSON.stringify(""+ee),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=D.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=D.stylize(oe,"string"))}return oe+": "+te}function c(D,L,M){var B=0;return D.reduce(function(ee,K){return B++,K.indexOf(`
|
|
|
`)>=0&&B++,ee+K.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?M[0]+(L===""?"":L+`
|
|
|
`)+" "+D.join(`,
|
|
|
`)+" "+M[1]:M[0]+L+" "+D.join(", ")+" "+M[1]}function w(D){return Array.isArray(D)}function y(D){return typeof D=="boolean"}function f(D){return D===null}function E(D){return D==null}function T(D){return typeof D=="number"}function m(D){return typeof D=="string"}function _(D){return typeof D=="symbol"}function C(D){return D===void 0}function j(D){return b(D)&&G(D)==="[object RegExp]"}function b(D){return typeof D=="object"&&D!==null}function R(D){return b(D)&&G(D)==="[object Date]"}function P(D){return b(D)&&(G(D)==="[object Error]"||D instanceof Error)}function I(D){return typeof D=="function"}function N(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||D===void 0}function G(D){return Object.prototype.toString.call(D)}function V(D){return D<10?"0"+D.toString(10):D.toString(10)}function H(){var D=new Date,L=[V(D.getHours()),V(D.getMinutes()),V(D.getSeconds())].join(":");return[D.getDate(),X[D.getMonth()],L].join(" ")}function ie(D,L){return Object.prototype.hasOwnProperty.call(D,L)}var F=/%[sdj%]/g;S.format=function(D){if(!m(D)){for(var L=[],M=0;M<arguments.length;M++)L.push(a(arguments[M]));return L.join(" ")}for(var M=1,B=arguments,ee=B.length,K=String(D).replace(F,function(ae){if(ae==="%%")return"%";if(M>=ee)return ae;switch(ae){case"%s":return String(B[M++]);case"%d":return Number(B[M++]);case"%j":try{return JSON.stringify(B[M++])}catch(pe){return"[Circular]"}default:return ae}}),oe=B[M];M<ee;oe=B[++M])f(oe)||!b(oe)?K+=" "+oe:K+=" "+a(oe);return K},S.deprecate=function(D,L){function M(){if(!B){if(d.throwDeprecation)throw new Error(L);d.traceDeprecation?console.trace(L):console.error(L),B=!0}return D.apply(this,arguments)}if(C(v.process))return function(){return S.deprecate(D,L).apply(this,arguments)};if(d.noDeprecation===!0)return D;var B=!1;return M};var re,Y={};S.debuglog=function(D){if(C(re)&&(re=d.env.NODE_DEBUG||""),D=D.toUpperCase(),!Y[D])if(new RegExp("\\b"+D+"\\b","i").test(re)){var L=d.pid;Y[D]=function(){var M=S.format.apply(S,arguments);console.error("%s %d: %s",D,L,M)}}else Y[D]=function(){};return Y[D]},S.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=w,S.isBoolean=y,S.isNull=f,S.isNullOrUndefined=E,S.isNumber=T,S.isString=m,S.isSymbol=_,S.isUndefined=C,S.isRegExp=j,S.isObject=b,S.isDate=R,S.isError=P,S.isFunction=I,S.isPrimitive=N,S.isBuffer=n("./support/isBuffer");var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];S.log=function(){console.log("%s - %s",H(),S.format.apply(S,arguments))},S.inherits=n("inherits"),S._extend=function(D,L){if(!L||!b(L))return D;for(var M=Object.keys(L),B=M.length;B--;)D[M[B]]=L[M[B]];return D}}).call(this,n("_process"),typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,O,S){"use strict";(function(){S.stripBOM=function(d){return d[0]==="\uFEFF"?d.substring(1):d}}).call(void 0)},{}],209:[function(n,O,S){"use strict";function d(r){return r&&r.__esModule?r:{default:r}}var v=n("babel-runtime/helpers/typeof"),a=d(v),i=n("babel-runtime/core-js/object/keys"),p=d(i);(function(){var r,e,o,s,l,h={}.hasOwnProperty;r=n("xmlbuilder"),e=n("./defaults").defaults,s=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},l=function(c){return"<![CDATA["+o(c)+"]]>"},o=function(c){return c.replace("]]>","]]]]><![CDATA[>")},S.Builder=function(){function c(w){var y,f,E;this.options={},f=e[.2];for(y in f)h.call(f,y)&&(E=f[y],this.options[y]=E);for(y in w)h.call(w,y)&&(E=w[y],this.options[y]=E)}return c.prototype.buildObject=function(w){var y,f,E,T,m;return y=this.options.attrkey,f=this.options.charkey,(0,p.default)(w).length===1&&this.options.rootName===e[.2].rootName?(m=(0,p.default)(w)[0],w=w[m]):m=this.options.rootName,E=function(_){return function(C,j){var b,R,P,I,N,G;if((j===void 0?"undefined":(0,a.default)(j))!=="object")_.options.cdata&&s(j)?C.raw(l(j)):C.txt(j);else if(Array.isArray(j)){for(I in j)if(h.call(j,I)){R=j[I];for(N in R)P=R[N],C=E(C.ele(N),P).up()}}else for(N in j)if(h.call(j,N))if(R=j[N],N===y){if((R===void 0?"undefined":(0,a.default)(R))==="object")for(b in R)G=R[b],C=C.att(b,G)}else if(N===f)C=_.options.cdata&&s(R)?C.raw(l(R)):C.txt(R);else if(Array.isArray(R))for(I in R)h.call(R,I)&&(P=R[I],C=typeof P=="string"?_.options.cdata&&s(P)?C.ele(N).raw(l(P)).up():C.ele(N,P).up():E(C.ele(N),P).up());else(R===void 0?"undefined":(0,a.default)(R))==="object"?C=E(C.ele(N),R).up():typeof R=="string"&&_.options.cdata&&s(R)?C=C.ele(N).raw(l(R)).up():(R==null&&(R=""),C=C.ele(N,R.toString()).up());return C}}(this),T=r.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),E(T,w).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,O,S){"use strict";(function(){S.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(n,O,S){"use strict";function d(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-own-property-names"),a=d(v),i=n("babel-runtime/core-js/object/keys"),p=d(i),r=n("babel-runtime/helpers/typeof"),e=d(r);(function(){var o,s,l,h,c,w,y,f,E=function(_,C){return function(){return _.apply(C,arguments)}},T=function(_,C){function j(){this.constructor=_}for(var b in C)m.call(C,b)&&(_[b]=C[b]);return j.prototype=C.prototype,_.prototype=new j,_.__super__=C.prototype,_},m={}.hasOwnProperty;y=n("sax"),l=n("events"),o=n("./bom"),w=n("./processors"),f=n("timers").setImmediate,s=n("./defaults").defaults,h=function(_){return(_===void 0?"undefined":(0,e.default)(_))==="object"&&_!=null&&(0,p.default)(_).length===0},c=function(_,C,j){var b,R,P;for(b=0,R=_.length;b<R;b++)P=_[b],C=P(C,j);return C},S.Parser=function(_){function C(j){this.parseString=E(this.parseString,this),this.reset=E(this.reset,this),this.assignOrPush=E(this.assignOrPush,this),this.processAsync=E(this.processAsync,this);var b,R,P;if(!(this instanceof S.Parser))return new S.Parser(j);this.options={},R=s[.2];for(b in R)m.call(R,b)&&(P=R[b],this.options[b]=P);for(b in j)m.call(j,b)&&(P=j[b],this.options[b]=P);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(w.normalize)),this.reset()}return T(C,_),C.prototype.processAsync=function(){var j,b;try{return this.remaining.length<=this.options.chunkSize?(j=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(j),this.saxParser.close()):(j=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(j),f(this.processAsync))}catch(R){if(b=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(b)}},C.prototype.assignOrPush=function(j,b,R){return b in j?(j[b]instanceof Array||(j[b]=[j[b]]),j[b].push(R)):this.options.explicitArray?j[b]=[R]:j[b]=R},C.prototype.reset=function(){var j,b,R,P;return this.removeAllListeners(),this.saxParser=y.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(I){return function(N){if(I.saxParser.resume(),!I.saxParser.errThrown)return I.saxParser.errThrown=!0,I.emit("error",N)}}(this),this.saxParser.onend=function(I){return function(){if(!I.saxParser.ended)return I.saxParser.ended=!0,I.emit("end",I.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,P=[],j=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=function(I){return function(N){var G,V,H,ie,F;if(H={},H[b]="",!I.options.ignoreAttrs){F=N.attributes;for(G in F)m.call(F,G)&&(j in H||I.options.mergeAttrs||(H[j]={}),V=I.options.attrValueProcessors?c(I.options.attrValueProcessors,N.attributes[G],G):N.attributes[G],ie=I.options.attrNameProcessors?c(I.options.attrNameProcessors,G):G,I.options.mergeAttrs?I.assignOrPush(H,ie,V):H[j][ie]=V)}return H["#name"]=I.options.tagNameProcessors?c(I.options.tagNameProcessors,N.name):N.name,I.options.xmlns&&(H[I.options.xmlnskey]={uri:N.uri,local:N.local}),P.push(H)}}(this),this.saxParser.onclosetag=function(I){return function(){var N,G,V,H,ie,F,re,Y,X,D;if(F=P.pop(),ie=F["#name"],I.options.explicitChildren&&I.options.preserveChildrenOrder||delete F["#name"],F.cdata===!0&&(N=F.cdata,delete F.cdata),X=P[P.length-1],F[b].match(/^\s*$/)&&!N?(G=F[b],delete F[b]):(I.options.trim&&(F[b]=F[b].trim()),I.options.normalize&&(F[b]=F[b].replace(/\s{2,}/g," ").trim()),F[b]=I.options.valueProcessors?c(I.options.valueProcessors,F[b],ie):F[b],(0,p.default)(F).length===1&&b in F&&!I.EXPLICIT_CHARKEY&&(F=F[b])),h(F)&&(F=I.options.emptyTag!==""?I.options.emptyTag:G),I.options.validator!=null&&(D="/"+function(){var L,M,B;for(B=[],L=0,M=P.length;L<M;L++)H=P[L],B.push(H["#name"]);return B}().concat(ie).join("/"),function(){var L;try{F=I.options.validator(D,X&&X[ie],F)}catch(M){return L=M,I.emit("error",L)}}()),I.options.explicitChildren&&!I.options.mergeAttrs&&(F===void 0?"undefined":(0,e.default)(F))==="object")if(I.options.preserveChildrenOrder){if(X){X[I.options.childkey]=X[I.options.childkey]||[],re={};for(V in F)m.call(F,V)&&(re[V]=F[V]);X[I.options.childkey].push(re),delete F["#name"],(0,p.default)(F).length===1&&b in F&&!I.EXPLICIT_CHARKEY&&(F=F[b])}}else H={},I.options.attrkey in F&&(H[I.options.attrkey]=F[I.options.attrkey],delete F[I.options.attrkey]),!I.options.charsAsChildren&&I.options.charkey in F&&(H[I.options.charkey]=F[I.options.charkey],delete F[I.options.charkey]),(0,a.default)(F).length>0&&(H[I.options.childkey]=F),F=H;return P.length>0?I.assignOrPush(X,ie,F):(I.options.explicitRoot&&(Y=F,F={},F[ie]=Y),I.resultObject=F,I.saxParser.ended=!0,I.emit("end",I.resultObject))}}(this),R=function(I){return function(N){var G,V;if(V=P[P.length-1])return V[b]+=N,I.options.explicitChildren&&I.options.preserveChildrenOrder&&I.options.charsAsChildren&&(I.options.includeWhiteChars||N.replace(/\\n/g,"").trim()!=="")&&(V[I.options.childkey]=V[I.options.childkey]||[],G={"#name":"__text__"},G[b]=N,I.options.normalize&&(G[b]=G[b].replace(/\s{2,}/g," ").trim()),V[I.options.childkey].push(G)),V}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(I){return function(N){var G;if(G=R(N))return G.cdata=!0}}()},C.prototype.parseString=function(j,b){var R;b!=null&&typeof b=="function"&&(this.on("end",function(P){return this.reset(),b(null,P)}),this.on("error",function(P){return this.reset(),b(P)}));try{return j=j.toString(),j.trim()===""?(this.emit("end",null),!0):(j=o.stripBOM(j),this.options.async?(this.remaining=j,f(this.processAsync),this.saxParser):this.saxParser.write(j).close())}catch(P){if(R=P,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",R),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw R}},C}(l.EventEmitter),S.parseString=function(_,C,j){var b,R,P;return j!=null?(typeof j=="function"&&(b=j),(C===void 0?"undefined":(0,e.default)(C))==="object"&&(R=C)):(typeof C=="function"&&(b=C),R={}),P=new S.Parser(R),P.parseString(_,b)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(n,O,S){"use strict";(function(){var d;d=new RegExp(/(?!xmlns)^.*:/),S.normalize=function(v){return v.toLowerCase()},S.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},S.stripPrefix=function(v){return v.replace(d,"")},S.parseNumbers=function(v){return isNaN(v)||(v=v%1==0?parseInt(v,10):parseFloat(v)),v},S.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v=v.toLowerCase()==="true"),v}}).call(void 0)},{}],213:[function(n,O,S){"use strict";(function(){var d,v,a,i,p=function(e,o){function s(){this.constructor=e}for(var l in o)r.call(o,l)&&(e[l]=o[l]);return s.prototype=o.prototype,e.prototype=new s,e.__super__=o.prototype,e},r={}.hasOwnProperty;v=n("./defaults"),d=n("./builder"),a=n("./parser"),i=n("./processors"),S.defaults=v.defaults,S.processors=i,S.ValidationError=function(e){function o(s){this.message=s}return p(o,e),o}(Error),S.Builder=d.Builder,S.Parser=a.Parser,S.parseString=a.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,O,S){"use strict";function d(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-prototype-of"),a=d(v),i=n("babel-runtime/helpers/typeof"),p=d(i),r=n("babel-runtime/core-js/object/assign"),e=d(r);(function(){var o,s,l,h,c,w,y=[].slice,f={}.hasOwnProperty;o=function(){var E,T,m,_,C,j;if(j=arguments[0],C=2<=arguments.length?y.call(arguments,1):[],h(e.default))e.default.apply(null,arguments);else for(E=0,m=C.length;E<m;E++)if((_=C[E])!=null)for(T in _)f.call(_,T)&&(j[T]=_[T]);return j},h=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},c=function(E){var T;return!!E&&((T=E===void 0?"undefined":(0,p.default)(E))==="function"||T==="object")},s=function(E){return h(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},l=function(E){var T;if(s(E))return!E.length;for(T in E)if(f.call(E,T))return!1;return!0},w=function(E){var T,m;return c(E)&&(m=(0,a.default)(E))&&(T=m.constructor)&&typeof T=="function"&&T instanceof T&&Function.prototype.toString.call(T)===Function.prototype.toString.call(Object)},O.exports.assign=o,O.exports.isFunction=h,O.exports.isObject=c,O.exports.isArray=s,O.exports.isEmpty=l,O.exports.isPlainObject=w}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){O.exports=function(){function a(i,p,r){if(this.options=i.options,this.stringify=i.stringify,p==null)throw new Error("Missing attribute name of element "+i.name);if(r==null)throw new Error("Missing attribute value for attribute "+p+" of element "+i.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(r)}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(i){return this.options.writer.set(i).attribute(this)},a}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)p.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},p={}.hasOwnProperty;a=n("./XMLNode"),O.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)p.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},p={}.hasOwnProperty;a=n("./XMLNode"),O.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing comment text");this.text=this.stringify.comment(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,O,S){"use strict";(function(){var d,v=function(i,p){function r(){this.constructor=i}for(var e in p)a.call(p,e)&&(i[e]=p[e]);return r.prototype=p.prototype,i.prototype=new r,i.__super__=p.prototype,i},a={}.hasOwnProperty;d=n("./XMLNode"),O.exports=function(i){function p(r,e,o,s,l,h){if(p.__super__.constructor.call(this,r),e==null)throw new Error("Missing DTD element name");if(o==null)throw new Error("Missing DTD attribute name");if(!s)throw new Error("Missing DTD attribute type");if(!l)throw new Error("Missing DTD attribute default");if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(h&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(o),this.attributeType=this.stringify.dtdAttType(s),this.defaultValue=this.stringify.dtdAttDefault(h),this.defaultValueType=l}return v(p,i),p.prototype.toString=function(r){return this.options.writer.set(r).dtdAttList(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],219:[function(n,O,S){"use strict";(function(){var d,v=function(i,p){function r(){this.constructor=i}for(var e in p)a.call(p,e)&&(i[e]=p[e]);return r.prototype=p.prototype,i.prototype=new r,i.__super__=p.prototype,i},a={}.hasOwnProperty;d=n("./XMLNode"),O.exports=function(i){function p(r,e,o){if(p.__super__.constructor.call(this,r),e==null)throw new Error("Missing DTD element name");o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(o)}return v(p,i),p.prototype.toString=function(r){return this.options.writer.set(r).dtdElement(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],220:[function(n,O,S){"use strict";(function(){var d,v,a=function(p,r){function e(){this.constructor=p}for(var o in r)i.call(r,o)&&(p[o]=r[o]);return e.prototype=r.prototype,p.prototype=new e,p.__super__=r.prototype,p},i={}.hasOwnProperty;v=n("./Utility").isObject,d=n("./XMLNode"),O.exports=function(p){function r(e,o,s,l){if(r.__super__.constructor.call(this,e),s==null)throw new Error("Missing entity name");if(l==null)throw new Error("Missing entity value");if(this.pe=!!o,this.name=this.stringify.eleName(s),v(l)){if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity");if(l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(l)}return a(r,p),r.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},r}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,O,S){"use strict";(function(){var d,v=function(i,p){function r(){this.constructor=i}for(var e in p)a.call(p,e)&&(i[e]=p[e]);return r.prototype=p.prototype,i.prototype=new r,i.__super__=p.prototype,i},a={}.hasOwnProperty;d=n("./XMLNode"),O.exports=function(i){function p(r,e,o){if(p.__super__.constructor.call(this,r),e==null)throw new Error("Missing notation name");if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return v(p,i),p.prototype.toString=function(r){return this.options.writer.set(r).dtdNotation(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],222:[function(n,O,S){"use strict";(function(){var d,v,a=function(p,r){function e(){this.constructor=p}for(var o in r)i.call(r,o)&&(p[o]=r[o]);return e.prototype=r.prototype,p.prototype=new e,p.__super__=r.prototype,p},i={}.hasOwnProperty;v=n("./Utility").isObject,d=n("./XMLNode"),O.exports=function(p){function r(e,o,s,l){var h;r.__super__.constructor.call(this,e),v(o)&&(h=o,o=h.version,s=h.encoding,l=h.standalone),o||(o="1.0"),this.version=this.stringify.xmlVersion(o),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return a(r,p),r.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},r}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e=function(s,l){function h(){this.constructor=s}for(var c in l)o.call(l,c)&&(s[c]=l[c]);return h.prototype=l.prototype,s.prototype=new h,s.__super__=l.prototype,s},o={}.hasOwnProperty;r=n("./Utility").isObject,p=n("./XMLNode"),d=n("./XMLDTDAttList"),a=n("./XMLDTDEntity"),v=n("./XMLDTDElement"),i=n("./XMLDTDNotation"),O.exports=function(s){function l(h,c,w){var y,f;l.__super__.constructor.call(this,h),this.documentObject=h,r(c)&&(y=c,c=y.pubID,w=y.sysID),w==null&&(f=[c,w],w=f[0],c=f[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return e(l,s),l.prototype.element=function(h,c){var w;return w=new v(this,h,c),this.children.push(w),this},l.prototype.attList=function(h,c,w,y,f){var E;return E=new d(this,h,c,w,y,f),this.children.push(E),this},l.prototype.entity=function(h,c){var w;return w=new a(this,!1,h,c),this.children.push(w),this},l.prototype.pEntity=function(h,c){var w;return w=new a(this,!0,h,c),this.children.push(w),this},l.prototype.notation=function(h,c){var w;return w=new i(this,h,c),this.children.push(w),this},l.prototype.toString=function(h){return this.options.writer.set(h).docType(this)},l.prototype.ele=function(h,c){return this.element(h,c)},l.prototype.att=function(h,c,w,y,f){return this.attList(h,c,w,y,f)},l.prototype.ent=function(h,c){return this.entity(h,c)},l.prototype.pent=function(h,c){return this.pEntity(h,c)},l.prototype.not=function(h,c){return this.notation(h,c)},l.prototype.up=function(){return this.root()||this.documentObject},l}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,O,S){"use strict";(function(){var d,v,a,i,p=function(e,o){function s(){this.constructor=e}for(var l in o)r.call(o,l)&&(e[l]=o[l]);return s.prototype=o.prototype,e.prototype=new s,e.__super__=o.prototype,e},r={}.hasOwnProperty;i=n("./Utility").isPlainObject,d=n("./XMLNode"),a=n("./XMLStringifier"),v=n("./XMLStringWriter"),O.exports=function(e){function o(s){o.__super__.constructor.call(this,null),s||(s={}),s.writer||(s.writer=new v),this.options=s,this.stringify=new a(s),this.isDocument=!0}return p(o,e),o.prototype.end=function(s){var l;return s?i(s)&&(l=s,s=this.options.writer.set(l)):s=this.options.writer,s.document(this)},o.prototype.toString=function(s){return this.options.writer.set(s).document(this)},o}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e,o,s,l,h,c,w,y,f,E,T,m,_,C={}.hasOwnProperty;_=n("./Utility"),T=_.isObject,E=_.isFunction,m=_.isPlainObject,l=n("./XMLElement"),v=n("./XMLCData"),a=n("./XMLComment"),c=n("./XMLRaw"),f=n("./XMLText"),h=n("./XMLProcessingInstruction"),o=n("./XMLDeclaration"),s=n("./XMLDocType"),i=n("./XMLDTDAttList"),r=n("./XMLDTDEntity"),p=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),d=n("./XMLAttribute"),y=n("./XMLStringifier"),w=n("./XMLStringWriter"),O.exports=function(){function j(b,R,P){var I;b||(b={}),b.writer?m(b.writer)&&(I=b.writer,b.writer=new w(I)):b.writer=new w(b),this.options=b,this.writer=b.writer,this.stringify=new y(b),this.onDataCallback=R||function(){},this.onEndCallback=P||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return j.prototype.node=function(b,R,P){var I;if(b==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),b=b.valueOf(),R==null&&(R={}),R=R.valueOf(),T(R)||(I=[R,P],P=I[0],R=I[1]),this.currentNode=new l(this,b,R),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,P!=null&&this.text(P),this},j.prototype.element=function(b,R,P){return this.currentNode&&this.currentNode instanceof s?this.dtdElement.apply(this,arguments):this.node(b,R,P)},j.prototype.attribute=function(b,R){var P,I;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(b!=null&&(b=b.valueOf()),T(b))for(P in b)C.call(b,P)&&(I=b[P],this.attribute(P,I));else E(R)&&(R=R.apply()),this.options.skipNullAttributes&&R==null||(this.currentNode.attributes[b]=new d(this,b,R));return this},j.prototype.text=function(b){var R;return this.openCurrent(),R=new f(this,b),this.onData(this.writer.text(R,this.currentLevel+1)),this},j.prototype.cdata=function(b){var R;return this.openCurrent(),R=new v(this,b),this.onData(this.writer.cdata(R,this.currentLevel+1)),this},j.prototype.comment=function(b){var R;return this.openCurrent(),R=new a(this,b),this.onData(this.writer.comment(R,this.currentLevel+1)),this},j.prototype.raw=function(b){var R;return this.openCurrent(),R=new c(this,b),this.onData(this.writer.raw(R,this.currentLevel+1)),this},j.prototype.instruction=function(b,R){var P,I,N,G,V;if(this.openCurrent(),b!=null&&(b=b.valueOf()),R!=null&&(R=R.valueOf()),Array.isArray(b))for(P=0,G=b.length;P<G;P++)I=b[P],this.instruction(I);else if(T(b))for(I in b)C.call(b,I)&&(N=b[I],this.instruction(I,N));else E(R)&&(R=R.apply()),V=new h(this,b,R),this.onData(this.writer.processingInstruction(V,this.currentLevel+1));return this},j.prototype.declaration=function(b,R,P){var I;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return I=new o(this,b,R,P),this.onData(this.writer.declaration(I,this.currentLevel+1)),this},j.prototype.doctype=function(b,R,P){if(this.openCurrent(),b==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new s(this,R,P),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},j.prototype.dtdElement=function(b,R){var P;return this.openCurrent(),P=new p(this,b,R),this.onData(this.writer.dtdElement(P,this.currentLevel+1)),this},j.prototype.attList=function(b,R,P,I,N){var G;return this.openCurrent(),G=new i(this,b,R,P,I,N),this.onData(this.writer.dtdAttList(G,this.currentLevel+1)),this},j.prototype.entity=function(b,R){var P;return this.openCurrent(),P=new r(this,!1,b,R),this.onData(this.writer.dtdEntity(P,this.currentLevel+1)),this},j.prototype.pEntity=function(b,R){var P;return this.openCurrent(),P=new r(this,!0,b,R),this.onData(this.writer.dtdEntity(P,this.currentLevel+1)),this},j.prototype.notation=function(b,R){var P;return this.openCurrent(),P=new e(this,b,R),this.onData(this.writer.dtdNotation(P,this.currentLevel+1)),this},j.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},j.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},j.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},j.prototype.openNode=function(b){if(!b.isOpen)return!this.root&&this.currentLevel===0&&b instanceof l&&(this.root=b),this.onData(this.writer.openNode(b,this.currentLevel)),b.isOpen=!0},j.prototype.closeNode=function(b){if(!b.isClosed)return this.onData(this.writer.closeNode(b,this.currentLevel)),b.isClosed=!0},j.prototype.onData=function(b){return this.documentStarted=!0,this.onDataCallback(b)},j.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},j.prototype.ele=function(){return this.element.apply(this,arguments)},j.prototype.nod=function(b,R,P){return this.node(b,R,P)},j.prototype.txt=function(b){return this.text(b)},j.prototype.dat=function(b){return this.cdata(b)},j.prototype.com=function(b){return this.comment(b)},j.prototype.ins=function(b,R){return this.instruction(b,R)},j.prototype.dec=function(b,R,P){return this.declaration(b,R,P)},j.prototype.dtd=function(b,R,P){return this.doctype(b,R,P)},j.prototype.e=function(b,R,P){return this.element(b,R,P)},j.prototype.n=function(b,R,P){return this.node(b,R,P)},j.prototype.t=function(b){return this.text(b)},j.prototype.d=function(b){return this.cdata(b)},j.prototype.c=function(b){return this.comment(b)},j.prototype.r=function(b){return this.raw(b)},j.prototype.i=function(b,R){return this.instruction(b,R)},j.prototype.att=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},j.prototype.a=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},j.prototype.ent=function(b,R){return this.entity(b,R)},j.prototype.pent=function(b,R){return this.pEntity(b,R)},j.prototype.not=function(b,R){return this.notation(b,R)},j}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i,p,r,e,o=function(l,h){function c(){this.constructor=l}for(var w in h)s.call(h,w)&&(l[w]=h[w]);return c.prototype=h.prototype,l.prototype=new c,l.__super__=h.prototype,l},s={}.hasOwnProperty;e=n("./Utility"),r=e.isObject,p=e.isFunction,i=n("./XMLNode"),a=n("./XMLAttribute"),O.exports=function(l){function h(c,w,y){if(h.__super__.constructor.call(this,c),w==null)throw new Error("Missing element name");this.name=this.stringify.eleName(w),this.attributes={},y!=null&&this.attribute(y),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return o(h,l),h.prototype.clone=function(){var c,w,y,f;y=(0,v.default)(this),y.isRoot&&(y.documentObject=null),y.attributes={},f=this.attributes;for(w in f)s.call(f,w)&&(c=f[w],y.attributes[w]=c.clone());return y.children=[],this.children.forEach(function(E){var T;return T=E.clone(),T.parent=y,y.children.push(T)}),y},h.prototype.attribute=function(c,w){var y,f;if(c!=null&&(c=c.valueOf()),r(c))for(y in c)s.call(c,y)&&(f=c[y],this.attribute(y,f));else p(w)&&(w=w.apply()),this.options.skipNullAttributes&&w==null||(this.attributes[c]=new a(this,c,w));return this},h.prototype.removeAttribute=function(c){var w,y,f;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(y=0,f=c.length;y<f;y++)w=c[y],delete this.attributes[w];else delete this.attributes[c];return this},h.prototype.toString=function(c){return this.options.writer.set(c).element(this)},h.prototype.att=function(c,w){return this.attribute(c,w)},h.prototype.a=function(c,w){return this.attribute(c,w)},h}(i)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e,o,s,l,h,c,w={}.hasOwnProperty;c=n("./Utility"),h=c.isObject,l=c.isFunction,s=c.isEmpty,p=null,d=null,v=null,a=null,i=null,e=null,o=null,r=null,O.exports=function(){function y(f){this.parent=f,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=n("./XMLElement"),d=n("./XMLCData"),v=n("./XMLComment"),a=n("./XMLDeclaration"),i=n("./XMLDocType"),e=n("./XMLRaw"),o=n("./XMLText"),r=n("./XMLProcessingInstruction"))}return y.prototype.element=function(f,E,T){var m,_,C,j,b,R,P,I,N,G;if(R=null,E==null&&(E={}),E=E.valueOf(),h(E)||(N=[E,T],T=N[0],E=N[1]),f!=null&&(f=f.valueOf()),Array.isArray(f))for(C=0,P=f.length;C<P;C++)_=f[C],R=this.element(_);else if(l(f))R=this.element(f.apply());else if(h(f)){for(b in f)if(w.call(f,b))if(G=f[b],l(G)&&(G=G.apply()),h(G)&&s(G)&&(G=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&b.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(b.substr(this.stringify.convertAttKey.length),G);else if(!this.options.separateArrayItems&&Array.isArray(G))for(j=0,I=G.length;j<I;j++)_=G[j],m={},m[b]=_,R=this.element(m);else h(G)?(R=this.element(b),R.element(G)):R=this.element(b,G)}else R=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&f.indexOf(this.stringify.convertTextKey)===0?this.text(T):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&f.indexOf(this.stringify.convertCDataKey)===0?this.cdata(T):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&f.indexOf(this.stringify.convertCommentKey)===0?this.comment(T):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&f.indexOf(this.stringify.convertRawKey)===0?this.raw(T):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&f.indexOf(this.stringify.convertPIKey)===0?this.instruction(f.substr(this.stringify.convertPIKey.length),T):this.node(f,E,T);if(R==null)throw new Error("Could not create any elements with: "+f);return R},y.prototype.insertBefore=function(f,E,T){var m,_,C;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_),m=this.parent.element(f,E,T),Array.prototype.push.apply(this.parent.children,C),m},y.prototype.insertAfter=function(f,E,T){var m,_,C;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),C=this.parent.children.splice(_+1),m=this.parent.element(f,E,T),Array.prototype.push.apply(this.parent.children,C),m},y.prototype.remove=function(){var f;if(this.isRoot)throw new Error("Cannot remove the root element");return f=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[f,f-f+1].concat([])),this.parent},y.prototype.node=function(f,E,T){var m,_;return f!=null&&(f=f.valueOf()),E||(E={}),E=E.valueOf(),h(E)||(_=[E,T],T=_[0],E=_[1]),m=new p(this,f,E),T!=null&&m.text(T),this.children.push(m),m},y.prototype.text=function(f){var E;return E=new o(this,f),this.children.push(E),this},y.prototype.cdata=function(f){var E;return E=new d(this,f),this.children.push(E),this},y.prototype.comment=function(f){var E;return E=new v(this,f),this.children.push(E),this},y.prototype.commentBefore=function(f){var E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,T),this},y.prototype.commentAfter=function(f){var E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E+1),this.parent.comment(f),Array.prototype.push.apply(this.parent.children,T),this},y.prototype.raw=function(f){var E;return E=new e(this,f),this.children.push(E),this},y.prototype.instruction=function(f,E){var T,m,_,C,j;if(f!=null&&(f=f.valueOf()),E!=null&&(E=E.valueOf()),Array.isArray(f))for(C=0,j=f.length;C<j;C++)T=f[C],this.instruction(T);else if(h(f))for(T in f)w.call(f,T)&&(m=f[T],this.instruction(T,m));else l(E)&&(E=E.apply()),_=new r(this,f,E),this.children.push(_);return this},y.prototype.instructionBefore=function(f,E){var T,m;return T=this.parent.children.indexOf(this),m=this.parent.children.splice(T),this.parent.instruction(f,E),Array.prototype.push.apply(this.parent.children,m),this},y.prototype.instructionAfter=function(f,E){var T,m;return T=this.parent.children.indexOf(this),m=this.parent.children.splice(T+1),this.parent.instruction(f,E),Array.prototype.push.apply(this.parent.children,m),this},y.prototype.declaration=function(f,E,T){var m,_;return m=this.document(),_=new a(m,f,E,T),m.children[0]instanceof a?m.children[0]=_:m.children.unshift(_),m.root()||m},y.prototype.doctype=function(f,E){var T,m,_,C,j,b,R,P,I,N;for(m=this.document(),_=new i(m,f,E),I=m.children,C=j=0,R=I.length;j<R;C=++j)if((T=I[C])instanceof i)return m.children[C]=_,_;for(N=m.children,C=b=0,P=N.length;b<P;C=++b)if(T=N[C],T.isRoot)return m.children.splice(C,0,_),_;return m.children.push(_),_},y.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},y.prototype.root=function(){var f;for(f=this;f;){if(f.isDocument)return f.rootObject;if(f.isRoot)return f;f=f.parent}},y.prototype.document=function(){var f;for(f=this;f;){if(f.isDocument)return f;f=f.parent}},y.prototype.end=function(f){return this.document().end(f)},y.prototype.prev=function(){var f;if((f=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[f-1]},y.prototype.next=function(){var f;if((f=this.parent.children.indexOf(this))===-1||f===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[f+1]},y.prototype.importDocument=function(f){var E;return E=f.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},y.prototype.ele=function(f,E,T){return this.element(f,E,T)},y.prototype.nod=function(f,E,T){return this.node(f,E,T)},y.prototype.txt=function(f){return this.text(f)},y.prototype.dat=function(f){return this.cdata(f)},y.prototype.com=function(f){return this.comment(f)},y.prototype.ins=function(f,E){return this.instruction(f,E)},y.prototype.doc=function(){return this.document()},y.prototype.dec=function(f,E,T){return this.declaration(f,E,T)},y.prototype.dtd=function(f,E){return this.doctype(f,E)},y.prototype.e=function(f,E,T){return this.element(f,E,T)},y.prototype.n=function(f,E,T){return this.node(f,E,T)},y.prototype.t=function(f){return this.text(f)},y.prototype.d=function(f){return this.cdata(f)},y.prototype.c=function(f){return this.comment(f)},y.prototype.r=function(f){return this.raw(f)},y.prototype.i=function(f,E){return this.instruction(f,E)},y.prototype.u=function(){return this.up()},y.prototype.importXMLBuilder=function(f){return this.importDocument(f)},y}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)p.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},p={}.hasOwnProperty;a=n("./XMLNode"),O.exports=function(r){function e(o,s,l){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(s),l&&(this.value=this.stringify.insValue(l))}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)p.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},p={}.hasOwnProperty;a=n("./XMLNode"),O.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing raw text");this.value=this.stringify.raw(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).raw(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e,o,s,l,h,c,w,y=function(E,T){function m(){this.constructor=E}for(var _ in T)f.call(T,_)&&(E[_]=T[_]);return m.prototype=T.prototype,E.prototype=new m,E.__super__=T.prototype,E},f={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),d=n("./XMLCData"),v=n("./XMLComment"),s=n("./XMLElement"),h=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),a=n("./XMLDTDAttList"),i=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),r=n("./XMLDTDNotation"),w=n("./XMLWriterBase"),O.exports=function(E){function T(m,_){T.__super__.constructor.call(this,_),this.stream=m}return y(T,E),T.prototype.document=function(m){var _,C,j,b,R,P,I,N;for(P=m.children,C=0,b=P.length;C<b;C++)_=P[C],_.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,I=m.children,N=[],j=0,R=I.length;j<R;j++)switch(_=I[j],!1){case!(_ instanceof e):N.push(this.declaration(_));break;case!(_ instanceof o):N.push(this.docType(_));break;case!(_ instanceof v):N.push(this.comment(_));break;case!(_ instanceof l):N.push(this.processingInstruction(_));break;default:N.push(this.element(_))}return N},T.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},T.prototype.cdata=function(m,_){return this.stream.write(this.space(_)+"<![CDATA["+m.text+"]]>"+this.endline(m))},T.prototype.comment=function(m,_){return this.stream.write(this.space(_)+"<!-- "+m.text+" -->"+this.endline(m))},T.prototype.declaration=function(m,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},T.prototype.docType=function(m,_){var C,j,b,R;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),R=m.children,j=0,b=R.length;j<b;j++)switch(C=R[j],!1){case!(C instanceof a):this.dtdAttList(C,_+1);break;case!(C instanceof i):this.dtdElement(C,_+1);break;case!(C instanceof p):this.dtdEntity(C,_+1);break;case!(C instanceof r):this.dtdNotation(C,_+1);break;case!(C instanceof d):this.cdata(C,_+1);break;case!(C instanceof v):this.comment(C,_+1);break;case!(C instanceof l):this.processingInstruction(C,_+1);break;default:throw new Error("Unknown DTD node type: "+C.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},T.prototype.element=function(m,_){var C,j,b,R,P,I,N,G;_||(_=0),G=this.space(_),this.stream.write(G+"<"+m.name),I=m.attributes;for(P in I)f.call(I,P)&&(C=I[P],this.attribute(C));if(m.children.length===0||m.children.every(function(V){return V.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),N=m.children,b=0,R=N.length;b<R;b++)switch(j=N[b],!1){case!(j instanceof d):this.cdata(j,_+1);break;case!(j instanceof v):this.comment(j,_+1);break;case!(j instanceof s):this.element(j,_+1);break;case!(j instanceof h):this.raw(j,_+1);break;case!(j instanceof c):this.text(j,_+1);break;case!(j instanceof l):this.processingInstruction(j,_+1);break;default:throw new Error("Unknown XML node type: "+j.constructor.name)}this.stream.write(G+"</"+m.name+">")}return this.stream.write(this.endline(m))},T.prototype.processingInstruction=function(m,_){return this.stream.write(this.space(_)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},T.prototype.raw=function(m,_){return this.stream.write(this.space(_)+m.value+this.endline(m))},T.prototype.text=function(m,_){return this.stream.write(this.space(_)+m.value+this.endline(m))},T.prototype.dtdAttList=function(m,_){return this.stream.write(this.space(_)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},T.prototype.dtdElement=function(m,_){return this.stream.write(this.space(_)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},T.prototype.dtdEntity=function(m,_){return this.stream.write(this.space(_)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},T.prototype.dtdNotation=function(m,_){return this.stream.write(this.space(_)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},T.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},T}(w)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e,o,s,l,h,c,w,y=function(E,T){function m(){this.constructor=E}for(var _ in T)f.call(T,_)&&(E[_]=T[_]);return m.prototype=T.prototype,E.prototype=new m,E.__super__=T.prototype,E},f={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),d=n("./XMLCData"),v=n("./XMLComment"),s=n("./XMLElement"),h=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),a=n("./XMLDTDAttList"),i=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),r=n("./XMLDTDNotation"),w=n("./XMLWriterBase"),O.exports=function(E){function T(m){T.__super__.constructor.call(this,m)}return y(T,E),T.prototype.document=function(m){var _,C,j,b,R;for(this.textispresent=!1,b="",R=m.children,C=0,j=R.length;C<j;C++)_=R[C],b+=function(){switch(!1){case!(_ instanceof e):return this.declaration(_);case!(_ instanceof o):return this.docType(_);case!(_ instanceof v):return this.comment(_);case!(_ instanceof l):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&b.slice(-this.newline.length)===this.newline&&(b=b.slice(0,-this.newline.length)),b},T.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},T.prototype.cdata=function(m,_){return this.space(_)+"<![CDATA["+m.text+"]]>"+this.newline},T.prototype.comment=function(m,_){return this.space(_)+"<!-- "+m.text+" -->"+this.newline},T.prototype.declaration=function(m,_){var C;return C=this.space(_),C+='<?xml version="'+m.version+'"',m.encoding!=null&&(C+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(C+=' standalone="'+m.standalone+'"'),C+=this.spacebeforeslash+"?>",C+=this.newline},T.prototype.docType=function(m,_){var C,j,b,R,P;if(_||(_=0),R=this.space(_),R+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?R+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(R+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(R+=" [",R+=this.newline,P=m.children,j=0,b=P.length;j<b;j++)C=P[j],R+=function(){switch(!1){case!(C instanceof a):return this.dtdAttList(C,_+1);case!(C instanceof i):return this.dtdElement(C,_+1);case!(C instanceof p):return this.dtdEntity(C,_+1);case!(C instanceof r):return this.dtdNotation(C,_+1);case!(C instanceof d):return this.cdata(C,_+1);case!(C instanceof v):return this.comment(C,_+1);case!(C instanceof l):return this.processingInstruction(C,_+1);default:throw new Error("Unknown DTD node type: "+C.constructor.name)}}.call(this);R+="]"}return R+=this.spacebeforeslash+">",R+=this.newline},T.prototype.element=function(m,_){var C,j,b,R,P,I,N,G,V,H,ie,F,re;_||(_=0),re=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F=this.space(_),G="",G+=F+"<"+m.name,V=m.attributes;for(N in V)f.call(V,N)&&(C=V[N],G+=this.attribute(C));if(m.children.length===0||m.children.every(function(Y){return Y.value===""}))this.allowEmpty?G+="></"+m.name+">"+this.newline:G+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)G+=">",G+=m.children[0].value,G+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(H=m.children,b=0,P=H.length;b<P;b++)if(j=H[b],j.value!=null){this.textispresent++,re=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,F=this.space(_)),G+=">"+this.newline,ie=m.children,R=0,I=ie.length;R<I;R++)j=ie[R],G+=function(){switch(!1){case!(j instanceof d):return this.cdata(j,_+1);case!(j instanceof v):return this.comment(j,_+1);case!(j instanceof s):return this.element(j,_+1);case!(j instanceof h):return this.raw(j,_+1);case!(j instanceof c):return this.text(j,_+1);case!(j instanceof l):return this.processingInstruction(j,_+1);default:throw new Error("Unknown XML node type: "+j.constructor.name)}}.call(this);re&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),G+=F+"</"+m.name+">"+this.newline}return G},T.prototype.processingInstruction=function(m,_){var C;return C=this.space(_)+"<?"+m.target,m.value&&(C+=" "+m.value),C+=this.spacebeforeslash+"?>"+this.newline},T.prototype.raw=function(m,_){return this.space(_)+m.value+this.newline},T.prototype.text=function(m,_){return this.space(_)+m.value+this.newline},T.prototype.dtdAttList=function(m,_){var C;return C=this.space(_)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(C+=" "+m.defaultValueType),m.defaultValue&&(C+=' "'+m.defaultValue+'"'),C+=this.spacebeforeslash+">"+this.newline},T.prototype.dtdElement=function(m,_){return this.space(_)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},T.prototype.dtdEntity=function(m,_){var C;return C=this.space(_)+"<!ENTITY",m.pe&&(C+=" %"),C+=" "+m.name,m.value?C+=' "'+m.value+'"':(m.pubID&&m.sysID?C+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(C+=' SYSTEM "'+m.sysID+'"'),m.nData&&(C+=" NDATA "+m.nData)),C+=this.spacebeforeslash+">"+this.newline},T.prototype.dtdNotation=function(m,_){var C;return C=this.space(_)+"<!NOTATION "+m.name,m.pubID&&m.sysID?C+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?C+=' PUBLIC "'+m.pubID+'"':m.sysID&&(C+=' SYSTEM "'+m.sysID+'"'),C+=this.spacebeforeslash+">"+this.newline},T.prototype.openNode=function(m,_){var C,j,b,R;if(_||(_=0),m instanceof s){b=this.space(_)+"<"+m.name,R=m.attributes;for(j in R)f.call(R,j)&&(C=R[j],b+=this.attribute(C));return b+=(m.children?">":"/>")+this.newline}return b=this.space(_)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?b+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(b+=' SYSTEM "'+m.sysID+'"'),b+=(m.children?" [":">")+this.newline},T.prototype.closeNode=function(m,_){switch(_||(_=0),!1){case!(m instanceof s):return this.space(_)+"</"+m.name+">"+this.newline;case!(m instanceof o):return this.space(_)+"]>"+this.newline}},T}(w)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(n,O,S){"use strict";(function(){var d=function(a,i){return function(){return a.apply(i,arguments)}},v={}.hasOwnProperty;O.exports=function(){function a(i){this.assertLegalChar=d(this.assertLegalChar,this);var p,r,e;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,r=i.stringify||{};for(p in r)v.call(r,p)&&(e=r[p],this[p]=e)}return a.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},a.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},a.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},a.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},a.prototype.raw=function(i){return""+i||""},a.prototype.attName=function(i){return i=""+i||""},a.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},a.prototype.insTarget=function(i){return""+i||""},a.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return i},a.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},a.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return i},a.prototype.xmlStandalone=function(i){return i?"yes":"no"},a.prototype.dtdPubID=function(i){return""+i||""},a.prototype.dtdSysID=function(i){return""+i||""},a.prototype.dtdElementValue=function(i){return""+i||""},a.prototype.dtdAttType=function(i){return""+i||""},a.prototype.dtdAttDefault=function(i){return i!=null?""+i||"":i},a.prototype.dtdEntityValue=function(i){return""+i||""},a.prototype.dtdNData=function(i){return""+i||""},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(i){var p;if(p=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+i+" at index "+p.index);return i},a.prototype.elEscape=function(i){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},a.prototype.attEscape=function(i){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},a}()}).call(void 0)},{}],233:[function(n,O,S){"use strict";var d=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(d);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)p.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},p={}.hasOwnProperty;a=n("./XMLNode"),O.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing element text");this.value=this.stringify.eleText(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).text(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,O,S){"use strict";(function(){var d={}.hasOwnProperty;O.exports=function(){function v(a){var i,p,r,e,o,s,l,h,c;a||(a={}),this.pretty=a.pretty||!1,this.allowEmpty=(p=a.allowEmpty)!=null&&p,this.pretty?(this.indent=(r=a.indent)!=null?r:" ",this.newline=(e=a.newline)!=null?e:`
|
|
|
`,this.offset=(o=a.offset)!=null?o:0,this.dontprettytextnodes=(s=a.dontprettytextnodes)!=null?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(l=a.spacebeforeslash)!=null?l:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,h=a.writer||{};for(i in h)d.call(h,i)&&(c=h[i],this[i]=c)}return v.prototype.set=function(a){var i,p,r;a||(a={}),"pretty"in a&&(this.pretty=a.pretty),"allowEmpty"in a&&(this.allowEmpty=a.allowEmpty),this.pretty?(this.indent="indent"in a?a.indent:" ",this.newline="newline"in a?a.newline:`
|
|
|
`,this.offset="offset"in a?a.offset:0,this.dontprettytextnodes="dontprettytextnodes"in a?a.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in a?a.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=a.writer||{};for(i in p)d.call(p,i)&&(r=p[i],this[i]=r);return this},v.prototype.space=function(a){var i;return this.pretty?(i=(a||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},v}()}).call(void 0)},{}],235:[function(n,O,S){"use strict";(function(){var d,v,a,i,p,r,e;e=n("./Utility"),p=e.assign,r=e.isFunction,d=n("./XMLDocument"),v=n("./XMLDocumentCB"),i=n("./XMLStringWriter"),a=n("./XMLStreamWriter"),O.exports.create=function(o,s,l,h){var c,w;if(o==null)throw new Error("Root element needs a name");return h=p({},s,l,h),c=new d(h),w=c.element(o),h.headless||(c.declaration(h),h.pubID==null&&h.sysID==null||c.doctype(h)),w},O.exports.begin=function(o,s,l){var h;return r(o)&&(h=[o,s],s=h[0],l=h[1],o={}),s?new v(o,s,l):new d(o)},O.exports.stringWriter=function(o){return new i(o)},O.exports.streamWriter=function(o,s){return new a(o,s)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,O,S){function d(){for(var a={},i=0;i<arguments.length;i++){var p=arguments[i];for(var r in p)v.call(p,r)&&(a[r]=p[r])}return a}O.exports=d;var v=Object.prototype.hasOwnProperty},{}],237:[function(n,O,S){"use strict";function d(h,c,w){i.isBuffer(c)||(c=new i(c)),i.isBuffer(w)||(w=new i(w)),c.length>s?c=h(c):c.length<s&&(c=i.concat([c,l],s));for(var y=new i(s),f=new i(s),E=0;E<s;E++)y[E]=54^c[E],f[E]=92^c[E];var T=h(i.concat([y,w]));return h(i.concat([f,T]))}function v(h,c){h=h||"sha1";var w=o[h],y=[],f=0;return w||a("algorithm:",h,"is not yet supported"),{update:function(E){return i.isBuffer(E)||(E=new i(E)),y.push(E),f+=E.length,this},digest:function(E){var T=i.concat(y),m=c?d(w,c,T):w(T);return y=null,E?m.toString(E):m}}}function a(){var h=[].slice.call(arguments).join(" ");throw new Error([h,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var i=n("buffer").Buffer,p=n("./sha"),r=n("./sha256"),e=n("./md5"),o={sha1:p,sha256:r,md5:e},s=64,l=new i(s);l.fill(0),S.createHash=function(h){return v(h)},S.createHmac=function(h,c){return v(h,c)},function(h,c){for(var w in h)c(h[w],w)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(h){S[h]=function(){a("sorry,",h,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,O,S){"use strict";function d(o,s){if(o.length%p!=0){var l=o.length+(p-o.length%p);o=i.concat([o,r],l)}for(var h=[],c=s?o.readInt32BE:o.readInt32LE,w=0;w<o.length;w+=p)h.push(c.call(o,w));return h}function v(o,s,l){for(var h=new i(s),c=l?h.writeInt32BE:h.writeInt32LE,w=0;w<o.length;w++)c.call(h,o[w],4*w,!0);return h}function a(o,s,l,h){return i.isBuffer(o)||(o=new i(o)),v(s(d(o,h),o.length*e),l,h)}var i=n("buffer").Buffer,p=4,r=new i(p);r.fill(0);var e=8;O.exports={hash:a}},{buffer:38}],239:[function(n,O,S){"use strict";function d(l,h){l[h>>5]|=128<<h%32,l[14+(h+64>>>9<<4)]=h;for(var c=1732584193,w=-271733879,y=-1732584194,f=271733878,E=0;E<l.length;E+=16){var T=c,m=w,_=y,C=f;c=a(c,w,y,f,l[E+0],7,-680876936),f=a(f,c,w,y,l[E+1],12,-389564586),y=a(y,f,c,w,l[E+2],17,606105819),w=a(w,y,f,c,l[E+3],22,-1044525330),c=a(c,w,y,f,l[E+4],7,-176418897),f=a(f,c,w,y,l[E+5],12,1200080426),y=a(y,f,c,w,l[E+6],17,-1473231341),w=a(w,y,f,c,l[E+7],22,-45705983),c=a(c,w,y,f,l[E+8],7,1770035416),f=a(f,c,w,y,l[E+9],12,-1958414417),y=a(y,f,c,w,l[E+10],17,-42063),w=a(w,y,f,c,l[E+11],22,-1990404162),c=a(c,w,y,f,l[E+12],7,1804603682),f=a(f,c,w,y,l[E+13],12,-40341101),y=a(y,f,c,w,l[E+14],17,-1502002290),w=a(w,y,f,c,l[E+15],22,1236535329),c=i(c,w,y,f,l[E+1],5,-165796510),f=i(f,c,w,y,l[E+6],9,-1069501632),y=i(y,f,c,w,l[E+11],14,643717713),w=i(w,y,f,c,l[E+0],20,-373897302),c=i(c,w,y,f,l[E+5],5,-701558691),f=i(f,c,w,y,l[E+10],9,38016083),y=i(y,f,c,w,l[E+15],14,-660478335),w=i(w,y,f,c,l[E+4],20,-405537848),c=i(c,w,y,f,l[E+9],5,568446438),f=i(f,c,w,y,l[E+14],9,-1019803690),y=i(y,f,c,w,l[E+3],14,-187363961),w=i(w,y,f,c,l[E+8],20,1163531501),c=i(c,w,y,f,l[E+13],5,-1444681467),f=i(f,c,w,y,l[E+2],9,-51403784),y=i(y,f,c,w,l[E+7],14,1735328473),w=i(w,y,f,c,l[E+12],20,-1926607734),c=p(c,w,y,f,l[E+5],4,-378558),f=p(f,c,w,y,l[E+8],11,-2022574463),y=p(y,f,c,w,l[E+11],16,1839030562),w=p(w,y,f,c,l[E+14],23,-35309556),c=p(c,w,y,f,l[E+1],4,-1530992060),f=p(f,c,w,y,l[E+4],11,1272893353),y=p(y,f,c,w,l[E+7],16,-155497632),w=p(w,y,f,c,l[E+10],23,-1094730640),c=p(c,w,y,f,l[E+13],4,681279174),f=p(f,c,w,y,l[E+0],11,-358537222),y=p(y,f,c,w,l[E+3],16,-722521979),w=p(w,y,f,c,l[E+6],23,76029189),c=p(c,w,y,f,l[E+9],4,-640364487),f=p(f,c,w,y,l[E+12],11,-421815835),y=p(y,f,c,w,l[E+15],16,530742520),w=p(w,y,f,c,l[E+2],23,-995338651),c=r(c,w,y,f,l[E+0],6,-198630844),f=r(f,c,w,y,l[E+7],10,1126891415),y=r(y,f,c,w,l[E+14],15,-1416354905),w=r(w,y,f,c,l[E+5],21,-57434055),c=r(c,w,y,f,l[E+12],6,1700485571),f=r(f,c,w,y,l[E+3],10,-1894986606),y=r(y,f,c,w,l[E+10],15,-1051523),w=r(w,y,f,c,l[E+1],21,-2054922799),c=r(c,w,y,f,l[E+8],6,1873313359),f=r(f,c,w,y,l[E+15],10,-30611744),y=r(y,f,c,w,l[E+6],15,-1560198380),w=r(w,y,f,c,l[E+13],21,1309151649),c=r(c,w,y,f,l[E+4],6,-145523070),f=r(f,c,w,y,l[E+11],10,-1120210379),y=r(y,f,c,w,l[E+2],15,718787259),w=r(w,y,f,c,l[E+9],21,-343485551),c=e(c,T),w=e(w,m),y=e(y,_),f=e(f,C)}return Array(c,w,y,f)}function v(l,h,c,w,y,f){return e(o(e(e(h,l),e(w,f)),y),c)}function a(l,h,c,w,y,f,E){return v(h&c|~h&w,l,h,y,f,E)}function i(l,h,c,w,y,f,E){return v(h&w|c&~w,l,h,y,f,E)}function p(l,h,c,w,y,f,E){return v(h^c^w,l,h,y,f,E)}function r(l,h,c,w,y,f,E){return v(c^(h|~w),l,h,y,f,E)}function e(l,h){var c=(65535&l)+(65535&h);return(l>>16)+(h>>16)+(c>>16)<<16|65535&c}function o(l,h){return l<<h|l>>>32-h}var s=n("./helpers");O.exports=function(l){return s.hash(l,d,16)}},{"./helpers":238}],240:[function(n,O,S){"use strict";function d(e,o){e[o>>5]|=128<<24-o%32,e[15+(o+64>>9<<4)]=o;for(var s=Array(80),l=1732584193,h=-271733879,c=-1732584194,w=271733878,y=-1009589776,f=0;f<e.length;f+=16){for(var E=l,T=h,m=c,_=w,C=y,j=0;j<80;j++){s[j]=j<16?e[f+j]:p(s[j-3]^s[j-8]^s[j-14]^s[j-16],1);var b=i(i(p(l,5),v(j,h,c,w)),i(i(y,s[j]),a(j)));y=w,w=c,c=p(h,30),h=l,l=b}l=i(l,E),h=i(h,T),c=i(c,m),w=i(w,_),y=i(y,C)}return Array(l,h,c,w,y)}function v(e,o,s,l){return e<20?o&s|~o&l:e<40?o^s^l:e<60?o&s|o&l|s&l:o^s^l}function a(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(e,o){var s=(65535&e)+(65535&o);return(e>>16)+(o>>16)+(s>>16)<<16|65535&s}function p(e,o){return e<<o|e>>>32-o}var r=n("./helpers");O.exports=function(e){return r.hash(e,d,20,!0)}},{"./helpers":238}],241:[function(n,O,S){"use strict";var d=n("./helpers"),v=function(c,w){var y=(65535&c)+(65535&w);return(c>>16)+(w>>16)+(y>>16)<<16|65535&y},a=function(c,w){return c>>>w|c<<32-w},i=function(c,w){return c>>>w},p=function(c,w,y){return c&w^~c&y},r=function(c,w,y){return c&w^c&y^w&y},e=function(c){return a(c,2)^a(c,13)^a(c,22)},o=function(c){return a(c,6)^a(c,11)^a(c,25)},s=function(c){return a(c,7)^a(c,18)^i(c,3)},l=function(c){return a(c,17)^a(c,19)^i(c,10)},h=function(c,w){var y,f,E,T,m,_,C,j,b,R,P,I,N=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),G=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),V=new Array(64);c[w>>5]|=128<<24-w%32,c[15+(w+64>>9<<4)]=w;for(var b=0;b<c.length;b+=16){y=G[0],f=G[1],E=G[2],T=G[3],m=G[4],_=G[5],C=G[6],j=G[7];for(var R=0;R<64;R++)V[R]=R<16?c[R+b]:v(v(v(l(V[R-2]),V[R-7]),s(V[R-15])),V[R-16]),P=v(v(v(v(j,o(m)),p(m,_,C)),N[R]),V[R]),I=v(e(y),r(y,f,E)),j=C,C=_,_=m,m=v(T,P),T=E,E=f,f=y,y=v(P,I);G[0]=v(y,G[0]),G[1]=v(f,G[1]),G[2]=v(E,G[2]),G[3]=v(T,G[3]),G[4]=v(m,G[4]),G[5]=v(_,G[5]),G[6]=v(C,G[6]),G[7]=v(j,G[7])}return G};O.exports=function(c){return d.hash(c,h,32,!0)}},{"./helpers":238}],242:[function(n,O,S){(function(d){"use strict";function v(h){return h&&h.__esModule?h:{default:h}}var a=n("babel-runtime/core-js/object/create"),i=v(a),p=n("babel-runtime/helpers/classCallCheck"),r=v(p),e=n("babel-runtime/helpers/createClass"),o=v(e),s=n("babel-runtime/helpers/typeof"),l=v(s);!function(h){if((S===void 0?"undefined":(0,l.default)(S))==="object"&&O!==void 0)O.exports=h();else if(typeof le=="function"&&le.amd)le([],h);else{var c;c=typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:this,c.mime=h()}}(function(){return function h(c,w,y){function f(m,_){if(!w[m]){if(!c[m]){var C=typeof n=="function"&&n;if(!_&&C)return C(m,!0);if(E)return E(m,!0);var j=new Error("Cannot find module '"+m+"'");throw j.code="MODULE_NOT_FOUND",j}var b=w[m]={exports:{}};c[m][0].call(b.exports,function(R){var P=c[m][1][R];return f(P||R)},b,b.exports,h,c,w,y)}return w[m].exports}for(var E=typeof n=="function"&&n,T=0;T<y.length;T++)f(y[T]);return f}({1:[function(h,c,w){var y=function(){function f(){(0,r.default)(this,f),this._types=(0,i.default)(null),this._extensions=(0,i.default)(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E])}return(0,o.default)(f,[{key:"define",value:function(E,T){for(var m in E){for(var _=E[m],C=0;C<_.length;C++){var j=_[C];if(!T&&j in this._types)throw new Error('Attempt to change mapping for "'+j+'" extension from "'+this._types[j]+'" to "'+m+'". Pass `force=true` to allow this, otherwise remove "'+j+'" from the list of extensions for "'+m+'".');this._types[j]=m}!T&&this._extensions[m]||(this._extensions[m]=_[0])}}},{key:"getType",value:function(E){E=String(E);var T=E.replace(/^.*[\/\\]/,"").toLowerCase(),m=T.replace(/^.*\./,"").toLowerCase(),_=T.length<E.length;return(m.length<T.length-1||!_)&&this._types[m]||null}},{key:"getExtension",value:function(E){return(E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1)&&this._extensions[E.toLowerCase()]||null}}]),f}();c.exports=y},{}],2:[function(h,c,w){var y=h("./Mime");c.exports=new y(h("./types/standard"),h("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(h,c,w){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(h,c,w){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(n,O,S){"use strict";S.encodeURIComponent=function(d){try{return encodeURIComponent(d)}catch(v){return d}},S.escape=n("escape-html"),S.timestamp=function(d){if(d){var v=d;return typeof v=="string"&&(v=Number(v)),String(d).length===10&&(v*=1e3),new Date(v)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,O,S){(function(d,v){"use strict";function a(j){return j&&j.__esModule?j:{default:j}}function i(j,b){return j===void 0?b:j}function p(j,b){return function(R,P,I){if(R)return b(R);j({data:P,status:I.statusCode,headers:I.headers,res:I})}}var r,e=n("babel-runtime/core-js/json/stringify"),o=a(e),s=n("babel-runtime/helpers/typeof"),l=a(s),h=n("util"),c=n("url"),w=n("http"),y=n("https"),f=n("debug")("urllib"),E=n("humanize-ms"),T=0,m=Math.pow(2,31)-10,_=/^https?:\/\//i;S.TIMEOUTS=[E("300s"),E("300s")];var C=["json","text"];S.request=function(j,b,R){return arguments.length===2&&typeof b=="function"&&(R=b,b=null),typeof R=="function"?S.requestWithCallback(j,b,R):(r||(r=n("any-promise")),new r(function(P,I){S.requestWithCallback(j,b,p(P,I))}))},S.requestWithCallback=function(j,b,R){function P(){se&&(clearTimeout(se),se=null)}function I(){k&&(clearTimeout(k),k=null)}function N(ue,ye,we){if(I(),!R)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Y,d.pid,te.method,j),void(ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Y,d.pid,ue.name,ue.message,ue.stack));var xe=R;R=null;var ge={};if(we&&(x=we.statusCode,ge=we.headers),x===401&&ge["www-authenticate"]&&(!b.headers||!b.headers.Authorization)&&b.digestAuth){var Te=ge["www-authenticate"];if(Te.indexOf("Digest ")>=0)return f("Request#%d %s: got digest auth header WWW-Authenticate: %s",Y,j,Te),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(te.method,te.path,Te,b.digestAuth),f("Request#%d %s: auth with digest header: %s",Y,j,b.headers.Authorization),we.headers["set-cookie"]&&(b.headers.Cookie=we.headers["set-cookie"].join(";")),S.requestWithCallback(j,b,xe)}var Se=Date.now()-L;ce&&(ce.contentDownload=Se),f("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Se,g,x,te.method,te.host,te.path,A,ce);var Ae={status:x,statusCode:x,headers:ge,size:g,aborted:z,rt:Se,keepAliveSocket:A,data:ye,requestUrls:b.requestUrls,timing:ce,remoteAddress:W,remotePort:fe};if(ue){var Ce="";K&&typeof K.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,o.default)(K.getCurrentStatus())),ue.message+=", "+te.method+" "+j+" "+x+" (connected: "+u+", keepalive socket: "+A+Ce+`)
|
|
|
headers: `+(0,o.default)(ge),ue.data=ye,ue.path=te.path,ue.status=x,ue.headers=ge,ue.res=Ae}xe(ue,ye,b.streaming?we:Ae),b.emitter&&(X.url=j,X.socket=be&&be.connection,X.options=te,X.size=Z,b.emitter.emit("response",{requestId:Y,error:ue,ctx:b.ctx,req:X,res:Ae}))}function G(ue){var ye=null;if(b.followRedirect&&statuses.redirect[ue.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var we=ue.headers.location;if(we){if(!(b._followRedirectCount>b.maxRedirects)){var xe=b.formatRedirectUrl?b.formatRedirectUrl(j,we):c.resolve(j,we);f("Request#%d %s: `redirected` from %s to %s",Y,te.path,j,xe),I(),b.headers&&b.headers.Host&&_.test(we)&&(b.headers.Host=null);var ge=R;return R=null,S.requestWithCallback(xe,b,ge),{redirect:!0,error:null}}ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+j),ye.name="MaxRedirectError"}else ye=new Error("Got statusCode "+ue.statusCode+" but cannot resolve next location from headers"),ye.name="FollowRedirectError"}return{redirect:!1,error:ye}}function V(ue,ye,we){return we(null,ye,ue.headers["content-encoding"])}function H(ue){if(ce&&(ce.waiting=Date.now()-L),f("Request#%d %s `req response` event emit: status %d, headers: %j",Y,j,ue.statusCode,ue.headers),b.streaming){var ye=G(ue);return ye.redirect?void ue.resume():ye.error?(ue.resume(),N(ye.error,null,ue)):N(null,null,ue)}if(ue.on("close",function(){f("Request#%d %s: `res close` event emit, total size %d",Y,j,g)}),ue.on("error",function(){f("Request#%d %s: `res error` event emit, total size %d",Y,j,g)}),ue.on("aborted",function(){z=!0,f("Request#%d %s: `res aborted` event emit, total size %d",Y,j,g)}),de){var ye=G(ue);return ye.redirect?void ue.resume():ye.error?(ue.resume(),de.end(),N(ye.error,null,ue)):(b.consumeWriteStream===!1?ue.on("end",N.bind(null,null,null,ue)):isNode010||isNode012?first([[de,"close"],[ue,"aborted"]],function(ge,Te,Se){f("Request#%d %s: writeStream or res %s event emitted",Y,j,Se),N(t||null,null,ue)}):de.on("close",function(){f("Request#%d %s: writeStream close event emitted",Y,j),N(t||null,null,ue)}),ue.pipe(de))}var we=[];ue.on("data",function(xe){f("Request#%d %s: `res data` event emit, size %d",Y,j,xe.length),g+=xe.length,we.push(xe)}),ue.on("end",function(){var xe=v.concat(we,g);if(f("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Y,j,g,ue._dumped),t)return N(t,xe,ue);var ge=G(ue);if(ge.error)return N(ge.error,xe,ue);ge.redirect||V(ue,xe,function(Te,Se,Ae){if(Te)return N(Te,xe,ue);if(!Ae&&C.indexOf(b.dataType)>=0){try{Se=decodeBodyByCharset(Se,ue)}catch(Ie){return f("decodeBodyByCharset error: %s",Ie),N(null,Se,ue)}if(b.dataType==="json")if(g===0)Se=null;else{var Ce=parseJSON(Se,oe);Ce.error?Te=Ce.error:Se=Ce.data}}z&&f("Request#%d %s: Remote socket was terminated before `response.end()` was called",Y,j),N(Te,Se,ue)})})}function ie(){f("Response timer ticking, timeout: %d",_e),k=setTimeout(function(){k=null;var ue="Response timeout for "+_e+"ms";t=new Error(ue),t.name="ResponseTimeoutError",t.requestId=Y,f("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Y,j,t.name,ue,u),F()},_e)}function F(){f("Request#%d %s abort, connected: %s",Y,j,u),be.socket||(t.noSocket=!0,N(t)),be.abort()}if(!j||typeof j!="string"&&(j===void 0?"undefined":(0,l.default)(j))!=="object"){var re=h.format("expect request url to be a string or a http request options, but got %j",j);throw new Error(re)}arguments.length===2&&typeof b=="function"&&(R=b,b=null),b=b||{},T>=m&&(T=0);var Y=++T;b.requestUrls=b.requestUrls||[];var X={requestId:Y,url:j,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",X),b.timeout=b.timeout||S.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var D,L=Date.now();typeof j=="string"?(_.test(j)||(j="http://"+j),D=c.parse(j)):D=j;var M=(b.type||b.method||D.method||"GET").toUpperCase(),B=D.port||80,ee=w,K=i(b.agent,S.agent),oe=b.fixJSONCtlChars;D.protocol==="https:"&&(ee=y,K=i(b.httpsAgent,S.httpsAgent),D.port||(B=443));var te={host:D.hostname||D.host||"localhost",path:D.path||"/",method:M,port:B,agent:K,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?te.requestTimeout=b.timeout[b.timeout.length-1]:b.timeout!==void 0&&(te.requestTimeout=b.timeout);for(var ae=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],pe=0;pe<ae.length;pe++){var J=ae[pe];b.hasOwnProperty(J)&&(te[J]=b[J])}te.rejectUnauthorized!==!1||te.hasOwnProperty("secureOptions")||(te.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var $=b.auth||D.auth;$&&(te.auth=$);var ne=b.content||b.data,q=M==="GET"||M==="HEAD"||b.dataAsQueryString;if(!b.content&&ne&&typeof ne!="string"&&!v.isBuffer(ne))if(q)ne=b.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne);else{var U=te.headers["Content-Type"]||te.headers["content-type"];U||(U=b.contentType==="json"?"application/json":"application/x-www-form-urlencoded",te.headers["Content-Type"]=U),ne=parseContentType(U).type==="application/json"?(0,o.default)(ne):b.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne)}q&&ne&&(te.path+=(D.query?"&":"?")+ne,ne=null);var Z=0;if(ne){var Q=ne.length;v.isBuffer(ne)||(Q=v.byteLength(ne)),Z=te.headers["Content-Length"]=Q}b.dataType==="json"&&(te.headers.Accept="application/json"),typeof b.beforeRequest=="function"&&b.beforeRequest(te);var se=null,k=null,t=null,u=!1,A=!1,g=0,x=-1,z=!1,W="",fe="",ce=null;b.timing&&(ce={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),te.headers["User-Agent"]||te.headers["user-agent"]||(te.headers["User-Agent"]=navigator.userAgent),b.gzip&&(te.headers["Accept-Encoding"]||te.headers["accept-encoding"]||(te.headers["Accept-Encoding"]="gzip"));var de=b.writeStream;f("Request#%d %s %s with headers %j, options.path: %s",Y,M,j,te.headers,te.path),b.requestUrls.push(j);var he,_e;Array.isArray(b.timeout)?(he=E(b.timeout[0]),_e=E(b.timeout[1])):he=_e=E(b.timeout),f("ConnectTimeout: %d, ResponseTimeout: %d",he,_e);var be;try{be=ee.request(te,H)}catch(ue){return N(ue)}return typeof window=="undefined"?function(){f("Connect timer ticking, timeout: %d",he),se=setTimeout(function(){se=null,x===-1&&(x=-2);var ue="Connect timeout for "+he+"ms",ye="ConnectionTimeoutError";be.socket||(ye="SocketAssignTimeoutError",ue+=", working sockets is full"),t=new Error(ue),t.name=ye,t.requestId=Y,f("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Y,j,t.name,ue,u),F()},he)}():be.on("requestTimeout",function(){x===-1&&(x=-2);var ue="Connect timeout for "+he+"ms";t=new Error(ue),t.name="ConnectionTimeoutError",t.requestId=Y,F()}),ce&&be.on("finish",function(){ce.requestSent=Date.now()-L}),be.once("socket",function(ue){ce&&(ce.queuing=Date.now()-L),isNode010&&ue.socket&&(ue=ue.socket);var ye=ue.readyState;if(ye==="opening")return ue.once("lookup",function(we,xe,ge){f("Request#%d %s lookup: %s, %s, %s",Y,j,we,xe,ge),ce&&(ce.dnslookup=Date.now()-L),xe&&(W=xe)}),void ue.once("connect",function(){ce&&(ce.connected=Date.now()-L),P(),ie(),f("Request#%d %s new socket connected",Y,j),u=!0,W||(W=ue.remoteAddress),fe=ue.remotePort});f("Request#%d %s reuse socket connected, readyState: %s",Y,j,ye),u=!0,A=!0,W||(W=ue.remoteAddress),fe=ue.remotePort,P(),ie()}),be.on("error",function(ue){ue.name!=="Error"&&ue.name!=="TypeError"||(ue.name=u?"ResponseError":"RequestError"),ue.message+=' (req "error")',f("Request#%d %s `req error` event emit, %s: %s",Y,j,ue.name,ue.message),N(t||ue)}),de&&de.once("error",function(ue){ue.message+=' (writeStream "error")',t=ue,f("Request#%d %s `writeStream error` event emit, %s: %s",Y,j,ue.name,ue.message),F()}),b.stream?(b.stream.pipe(be),b.stream.once("error",function(ue){ue.message+=' (stream "error")',t=ue,f("Request#%d %s `readStream error` event emit, %s: %s",Y,j,ue.name,ue.message),F()})):be.end(ne),be.requestId=Y,be}}).call(this,n("_process"),n("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),!function(le){function n(S){if(O[S])return O[S].exports;var d=O[S]={i:S,l:!1,exports:{}};return le[S].call(d.exports,d,d.exports,n),d.l=!0,d.exports}var O={};n.m=le,n.c=O,n.d=function(S,d,v){n.o(S,d)||Object.defineProperty(S,d,{configurable:!1,enumerable:!0,get:v})},n.n=function(S){var d=S&&S.__esModule?function(){return S.default}:function(){return S};return n.d(d,"a",d),d},n.o=function(S,d){return Object.prototype.hasOwnProperty.call(S,d)},n.p="",n(n.s=12)}([function(le,n,O){!function(S,d){le.exports=n=d()}(0,function(){var S=S||function(d,v){var a=Object.create||function(){function y(){}return function(f){var E;return y.prototype=f,E=new y,y.prototype=null,E}}(),i={},p=i.lib={},r=p.Base=function(){return{extend:function(y){var f=a(this);return y&&f.mixIn(y),f.hasOwnProperty("init")&&this.init!==f.init||(f.init=function(){f.$super.init.apply(this,arguments)}),f.init.prototype=f,f.$super=this,f},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var f in y)y.hasOwnProperty(f)&&(this[f]=y[f]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=p.WordArray=r.extend({init:function(y,f){y=this.words=y||[],this.sigBytes=f!=null?f:4*y.length},toString:function(y){return(y||s).stringify(this)},concat:function(y){var f=this.words,E=y.words,T=this.sigBytes,m=y.sigBytes;if(this.clamp(),T%4)for(var _=0;_<m;_++){var C=E[_>>>2]>>>24-_%4*8&255;f[T+_>>>2]|=C<<24-(T+_)%4*8}else for(var _=0;_<m;_+=4)f[T+_>>>2]=E[_>>>2];return this.sigBytes+=m,this},clamp:function(){var y=this.words,f=this.sigBytes;y[f>>>2]&=4294967295<<32-f%4*8,y.length=d.ceil(f/4)},clone:function(){var y=r.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var f,E=[],T=0;T<y;T+=4){var m=function(_){var _=_,C=987654321,j=4294967295;return function(){C=36969*(65535&C)+(C>>16)&j,_=18e3*(65535&_)+(_>>16)&j;var b=(C<<16)+_&j;return b/=4294967296,(b+=.5)*(d.random()>.5?1:-1)}}(4294967296*(f||d.random()));f=987654071*m(),E.push(4294967296*m()|0)}return new e.init(E,y)}}),o=i.enc={},s=o.Hex={stringify:function(y){for(var f=y.words,E=y.sigBytes,T=[],m=0;m<E;m++){var _=f[m>>>2]>>>24-m%4*8&255;T.push((_>>>4).toString(16)),T.push((15&_).toString(16))}return T.join("")},parse:function(y){for(var f=y.length,E=[],T=0;T<f;T+=2)E[T>>>3]|=parseInt(y.substr(T,2),16)<<24-T%8*4;return new e.init(E,f/2)}},l=o.Latin1={stringify:function(y){for(var f=y.words,E=y.sigBytes,T=[],m=0;m<E;m++){var _=f[m>>>2]>>>24-m%4*8&255;T.push(String.fromCharCode(_))}return T.join("")},parse:function(y){for(var f=y.length,E=[],T=0;T<f;T++)E[T>>>2]|=(255&y.charCodeAt(T))<<24-T%4*8;return new e.init(E,f)}},h=o.Utf8={stringify:function(y){try{return decodeURIComponent(escape(l.stringify(y)))}catch(f){throw new Error("Malformed UTF-8 data")}},parse:function(y){return l.parse(unescape(encodeURIComponent(y)))}},c=p.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=h.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var f=this._data,E=f.words,T=f.sigBytes,m=this.blockSize,_=4*m,C=T/_;C=y?d.ceil(C):d.max((0|C)-this._minBufferSize,0);var j=C*m,b=d.min(4*j,T);if(j){for(var R=0;R<j;R+=m)this._doProcessBlock(E,R);var P=E.splice(0,j);f.sigBytes-=b}return new e.init(P,b)},clone:function(){var y=r.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0}),w=(p.Hasher=c.extend({cfg:r.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){return y&&this._append(y),this._doFinalize()},blockSize:16,_createHelper:function(y){return function(f,E){return new y.init(E).finalize(f)}},_createHmacHelper:function(y){return function(f,E){return new w.HMAC.init(y,E).finalize(f)}}}),i.algo={});return i}(Math);return S})},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"detectIEVersion",value:function(){for(var i=4,p=document.createElement("div"),r=p.getElementsByTagName("i");p.innerHTML="<!--[if gt IE "+i+"]><i></i><![endif]-->",r[0];)i++;return i>4&&i}},{key:"extend",value:function(i,p){for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&p[r]&&(i[r]=p[r])}},{key:"isArray",value:function(i){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(i){return i=i.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(i)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(i)?"audio":/.bmp|.jpg|.jpeg|.png/.test(i)?"img":"other"}},{key:"isImage",value:function(i){return i=i.toLowerCase(),!!/.jpg|.jpeg|.png/.test(i)}},{key:"ISODateString",value:function(i){function p(r){return r<10?"0"+r:r}return i.getUTCFullYear()+"-"+p(i.getUTCMonth()+1)+"-"+p(i.getUTCDate())+"T"+p(i.getUTCHours())+":"+p(i.getUTCMinutes())+":"+p(i.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(i){return!!/^\d+$/.test(i)}}]),a}();n.default=v},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return function(d){function v(w,y,f,E,T,m,_){var C=w+(y&f|~y&E)+T+_;return(C<<m|C>>>32-m)+y}function a(w,y,f,E,T,m,_){var C=w+(y&E|f&~E)+T+_;return(C<<m|C>>>32-m)+y}function i(w,y,f,E,T,m,_){var C=w+(y^f^E)+T+_;return(C<<m|C>>>32-m)+y}function p(w,y,f,E,T,m,_){var C=w+(f^(y|~E))+T+_;return(C<<m|C>>>32-m)+y}var r=S,e=r.lib,o=e.WordArray,s=e.Hasher,l=r.algo,h=[];!function(){for(var w=0;w<64;w++)h[w]=4294967296*d.abs(d.sin(w+1))|0}();var c=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,y){for(var f=0;f<16;f++){var E=y+f,T=w[E];w[E]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8)}var m=this._hash.words,_=w[y+0],C=w[y+1],j=w[y+2],b=w[y+3],R=w[y+4],P=w[y+5],I=w[y+6],N=w[y+7],G=w[y+8],V=w[y+9],H=w[y+10],ie=w[y+11],F=w[y+12],re=w[y+13],Y=w[y+14],X=w[y+15],D=m[0],L=m[1],M=m[2],B=m[3];D=v(D,L,M,B,_,7,h[0]),B=v(B,D,L,M,C,12,h[1]),M=v(M,B,D,L,j,17,h[2]),L=v(L,M,B,D,b,22,h[3]),D=v(D,L,M,B,R,7,h[4]),B=v(B,D,L,M,P,12,h[5]),M=v(M,B,D,L,I,17,h[6]),L=v(L,M,B,D,N,22,h[7]),D=v(D,L,M,B,G,7,h[8]),B=v(B,D,L,M,V,12,h[9]),M=v(M,B,D,L,H,17,h[10]),L=v(L,M,B,D,ie,22,h[11]),D=v(D,L,M,B,F,7,h[12]),B=v(B,D,L,M,re,12,h[13]),M=v(M,B,D,L,Y,17,h[14]),L=v(L,M,B,D,X,22,h[15]),D=a(D,L,M,B,C,5,h[16]),B=a(B,D,L,M,I,9,h[17]),M=a(M,B,D,L,ie,14,h[18]),L=a(L,M,B,D,_,20,h[19]),D=a(D,L,M,B,P,5,h[20]),B=a(B,D,L,M,H,9,h[21]),M=a(M,B,D,L,X,14,h[22]),L=a(L,M,B,D,R,20,h[23]),D=a(D,L,M,B,V,5,h[24]),B=a(B,D,L,M,Y,9,h[25]),M=a(M,B,D,L,b,14,h[26]),L=a(L,M,B,D,G,20,h[27]),D=a(D,L,M,B,re,5,h[28]),B=a(B,D,L,M,j,9,h[29]),M=a(M,B,D,L,N,14,h[30]),L=a(L,M,B,D,F,20,h[31]),D=i(D,L,M,B,P,4,h[32]),B=i(B,D,L,M,G,11,h[33]),M=i(M,B,D,L,ie,16,h[34]),L=i(L,M,B,D,Y,23,h[35]),D=i(D,L,M,B,C,4,h[36]),B=i(B,D,L,M,R,11,h[37]),M=i(M,B,D,L,N,16,h[38]),L=i(L,M,B,D,H,23,h[39]),D=i(D,L,M,B,re,4,h[40]),B=i(B,D,L,M,_,11,h[41]),M=i(M,B,D,L,b,16,h[42]),L=i(L,M,B,D,I,23,h[43]),D=i(D,L,M,B,V,4,h[44]),B=i(B,D,L,M,F,11,h[45]),M=i(M,B,D,L,X,16,h[46]),L=i(L,M,B,D,j,23,h[47]),D=p(D,L,M,B,_,6,h[48]),B=p(B,D,L,M,N,10,h[49]),M=p(M,B,D,L,Y,15,h[50]),L=p(L,M,B,D,P,21,h[51]),D=p(D,L,M,B,F,6,h[52]),B=p(B,D,L,M,b,10,h[53]),M=p(M,B,D,L,H,15,h[54]),L=p(L,M,B,D,C,21,h[55]),D=p(D,L,M,B,G,6,h[56]),B=p(B,D,L,M,X,10,h[57]),M=p(M,B,D,L,I,15,h[58]),L=p(L,M,B,D,re,21,h[59]),D=p(D,L,M,B,R,6,h[60]),B=p(B,D,L,M,ie,10,h[61]),M=p(M,B,D,L,j,15,h[62]),L=p(L,M,B,D,V,21,h[63]),m[0]=m[0]+D|0,m[1]=m[1]+L|0,m[2]=m[2]+M|0,m[3]=m[3]+B|0},_doFinalize:function(){var w=this._data,y=w.words,f=8*this._nDataBytes,E=8*w.sigBytes;y[E>>>5]|=128<<24-E%32;var T=d.floor(f/4294967296),m=f;y[15+(E+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),y[14+(E+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),w.sigBytes=4*(y.length+1),this._process();for(var _=this._hash,C=_.words,j=0;j<4;j++){var b=C[j];C[j]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8)}return _},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});r.MD5=s._createHelper(c),r.HmacMD5=s._createHmacHelper(c)}(Math),S.MD5})},function(le,n,O){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},n.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},n.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(le,n,O){"use strict";function S(c){return c&&c.__esModule?c:{default:c}}function d(c,w){if(!(c instanceof w))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function c(w,y){for(var f=0;f<y.length;f++){var E=y[f];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,y,f){return y&&c(w.prototype,y),f&&c(w,f),w}}(),a=O(5),i=S(a),p=O(25),r=S(p),e=O(6),o=S(e),s=O(7),l=S(s),h=function(){function c(w){d(this,c);var y=l.default.os.name,f=l.default.os.version||"",E=l.default.browser.name,T=l.default.browser.version||"",m=window.location.href,_="";m&&(_=l.default.getHost(m));var C="pc";l.default.os.ipad?C="pad":(l.default.os.iphone||l.default.os.android)&&(C="phone"),this._ri=i.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:o.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:y,ov:f,et:E,ev:T,uat:navigator.userAgent,app_n:_,tt:C,dm:"h5",ut:""}}return v(c,[{key:"log",value:function(w,y){y&&y.ri?(this._ri=y.ri,delete y.ri):this._ri=i.default.create(),y&&y.ut&&(this.initParam.ut=y.ut,delete y.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var f=[];if(y)for(var E in y)f.push(E+"="+y[E]);var T=f.join("&");this.initParam.args=encodeURIComponent(T==""?"0":T);var m=[];for(var E in this.initParam)m.push(E+"="+this.initParam[E]);var _=m.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(_):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+_}}],[{key:"getUuid",value:function(){var w=r.default.get("p_h5_upload_u");return w||(w=i.default.create(),r.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return r.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=i.default.create()),r.default.set("p_h5_upload_clientId",w,730),w}}]),c}();n.default=h},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"create",value:function(i,p){var r,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(p=p||e.length,i)for(r=0;r<i;r++)o[r]=e[0|Math.random()*p];else{var s;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",r=0;r<36;r++)o[r]||(s=0|16*Math.random(),o[r]=e[r==19?3&s|8:s])}return o.join("")}}]),a}();n.default=v},function(le,n,O){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var S={version:"1.5.0"};n.default=S},function(le,n,O){"use strict";function S(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function e(o,s){for(var l=0;l<s.length;l++){var h=s[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(o,h.key,h)}}return function(o,s,l){return s&&e(o.prototype,s),l&&e(o,l),o}}(),v=function(e){var o=navigator.userAgent,s="other";if(e.ios)return"iOS";if(e.android)return"android";if(o.indexOf("Baiduspider")>-1)return"Baiduspider";if(o.indexOf("PlayStation")>-1)return"PS4";var l=navigator.platform=="Win32"||navigator.platform=="Windows"||o.indexOf("Windows")>-1,h=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return h&&(s="macOS"),navigator.platform=="X11"&&!l&&!h&&(s="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(s="Linux"),l?"windows":s},a=function(){var e=navigator.userAgent,o="";return(e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1)&&(o="2000"),(e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1)&&(o="XP"),(e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1)&&(o="2003"),(e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1)&&(o="Vista"),(e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1)&&(o="7"),(e.indexOf("Windows NT 6.2")>-1||e.indexOf("Windows 8")>-1)&&(o="8"),(e.indexOf("Windows NT 6.3")>-1||e.indexOf("Windows 8.1")>-1)&&(o="8.1"),(e.indexOf("Windows NT 10")>-1||e.indexOf("Windows 10")>-1)&&(o="10"),o},i=function(e){var o=navigator.userAgent.toLowerCase();return e.chrome?"Chrome":e.firefox?"Firefox":e.safari?"Safari":e.webview?"webview":e.ie?/edge/.test(o)?"Edge":"IE":/baiduspider/.test(o)?"Baiduspider":/ucweb/.test(o)||/UCBrowser/.test(o)?"UC":/opera/.test(o)?"Opera":/ucweb/.test(o)?"UC":/360se/.test(o)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(o)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(o)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(o)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(o)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(o)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(o)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var e={},o={},s=navigator.userAgent,l=navigator.platform,h=s.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=s.match(/(Android);?[\s\/]+([\d.]+)?/),w=!!s.match(/\(Macintosh\; Intel /),y=s.match(/(iPad).*OS\s([\d_]+)/),f=s.match(/(iPod)(.*OS\s([\d_]+))?/),E=!y&&s.match(/(iPhone\sOS)\s([\d_]+)/),T=s.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),m=/Win\d{2}|Windows/.test(l),_=s.match(/Windows Phone ([\d.]+)/),C=T&&s.match(/TouchPad/),j=s.match(/Kindle\/([\d.]+)/),b=s.match(/Silk\/([\d._]+)/),R=s.match(/(BlackBerry).*Version\/([\d.]+)/),P=s.match(/(BB10).*Version\/([\d.]+)/),I=s.match(/(RIM\sTablet\sOS)\s([\d.]+)/),N=s.match(/PlayBook/),G=s.match(/Chrome\/([\d.]+)/)||s.match(/CriOS\/([\d.]+)/),V=s.match(/Firefox\/([\d.]+)/),H=s.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),ie=s.match(/MSIE\s([\d.]+)/)||s.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),F=!G&&s.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),re=F||s.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!h)&&(o.version=h[1]),c&&(e.android=!0,e.version=c[2]),E&&!f&&(e.ios=e.iphone=!0,e.version=E[2].replace(/_/g,".")),y&&(e.ios=e.ipad=!0,e.version=y[2].replace(/_/g,".")),f&&(e.ios=e.ipod=!0,e.version=f[3]?f[3].replace(/_/g,"."):null),_&&(e.wp=!0,e.version=_[1]),T&&(e.webos=!0,e.version=T[2]),C&&(e.touchpad=!0),R&&(e.blackberry=!0,e.version=R[2]),P&&(e.bb10=!0,e.version=P[2]),I&&(e.rimtabletos=!0,e.version=I[2]),N&&(o.playbook=!0),j&&(e.kindle=!0,e.version=j[1]),b&&(o.silk=!0,o.version=b[1]),!b&&e.android&&s.match(/Kindle Fire/)&&(o.silk=!0),G&&(o.chrome=!0,o.version=G[1]),V&&(o.firefox=!0,o.version=V[1]),H&&(e.firefoxos=!0,e.version=H[1]),ie&&(o.ie=!0,o.version=ie[1]),re&&(w||e.ios||m||c)&&(o.safari=!0,e.ios||(o.version=re[1])),F&&(o.webview=!0),w){var Y=s.match(/[\d]*_[\d]*_[\d]*/);Y&&Y.length>0&&Y[0]&&(e.version=Y[0].replace(/_/g,"."))}return e.tablet=!!(y||N||c&&!s.match(/Mobile/)||V&&s.match(/Tablet/)||ie&&!s.match(/Phone/)&&s.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||E||T||R||P||G&&s.match(/Android/)||G&&s.match(/CriOS\/([\d.]+)/)||V&&s.match(/Mobile/)||ie&&s.match(/Touch/))),e.pc=!e.tablet&&!e.phone,w?e.name="macOS":m?(e.name="windows",e.version=a()):e.name=v(e),o.name=i(o),{os:e,browser:o}}(),r=function(){function e(){S(this,e)}return d(e,null,[{key:"getHost",value:function(o){var s="";if(o===void 0||o==null||o=="")return"";var l=o.indexOf("//"),h=o;l>-1&&(h=o.substring(l+2));var s=h,c=h.split("/");return c&&c.length>0&&(s=c[0]),c=s.split(":"),c&&c.length>0&&(s=c[0]),s}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var o=p.browser;return o.name||(o.name=i()),o}}]),e}();n.default=r},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"get",value:function(i,p,r,e,o){var s;r=r||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(l){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(l){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(l){}throw new Error("This browser does not support XMLHttpRequest.")}),s=new XMLHttpRequest,s.onreadystatechange=function(){s.readyState===4&&(s.status===200?p(s.responseText):r(s.responseText))};try{e===void 0&&(e=!0),s.open("GET",i,e),o&&(s.withCredentials=!0)}catch(l){return void r(l)}try{s.send()}catch(l){r(l)}}}]),a}();n.default=v},function(le,n,O){"use strict";function S(p,r){if(!(p instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function p(r,e){for(var o=0;o<e.length;o++){var s=e[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,e,o){return e&&p(r.prototype,e),o&&p(r,o),r}}(),v=O(27),a=O(30),i=(O(10),function(){function p(){S(this,p)}return d(p,null,[{key:"randomUUID",value:function(){for(var r=[],e="0123456789abcdef",o=0;o<36;o++)r[o]=e.substr(Math.floor(16*Math.random()),1);return r[14]="4",r[19]=e.substr(3&r[19]|8,1),r[8]=r[13]=r[18]=r[23]="-",r.join("")}},{key:"aliyunEncodeURI",value:function(r){var e=encodeURIComponent(r);return e=e.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(r,e,o){if(!r)throw new Error("PrismPlayer Error: vid should not be null!");var s=[];for(var l in r)s.push(l);for(var h=s.sort(),c="",w=h.length,l=0;l<w;l++){var y=p.aliyunEncodeURI(h[l]),f=p.aliyunEncodeURI(r[h[l]]);c==""?c=y+e+f:c+=o+y+e+f}return c}},{key:"makeChangeSiga",value:function(r,e){if(!r)throw new Error("PrismPlayer Error: vid should not be null!");return a.stringify(v("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(r,"=","&")),e+"&"))}}]),p}());n.default=i},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return S.enc.Utf8})},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return S.enc.Hex})},function(le,n,O){le.exports=O(13)},function(le,n,O){"use strict";var S,d,v=(typeof Symbol=="function"&&Symbol.iterator,O(14)),a=function(p){return p&&p.__esModule?p:{default:p}}(v),i={Vod:a.default};S=[],(d=function(){return i}.apply(n,S))!==void 0&&(le.exports=d),window.AliyunUpload=i,ke.exports=AliyunUpload},function(le,n,O){"use strict";function S(P){return P&&P.__esModule?P:{default:P}}function d(P,I){if(!(P instanceof I))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function P(I,N){for(var G=0;G<N.length;G++){var V=N[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(I,V.key,V)}}return function(I,N,G){return N&&P(I.prototype,N),G&&P(I,G),I}}(),a=O(15),i=O(3),p=O(16),r=S(p),e=O(18),o=S(e),s=O(24),l=S(s),h=O(4),c=S(h),w=O(1),y=S(w),f=O(5),E=S(f),T=O(26),m=S(T),_=O(31),C=S(_),j=O(32),b=S(j),R=(O(2),function(){function P(I){d(this,P),this.options=I,this.options.partSize=this.options.partSize||i.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||i.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=a.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=a.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return v(P,[{key:"init",value:function(I,N,G,V){return this._retryCount=0,!(G&&!V||!G&&V)&&!(I&&!N||!I&&N)&&(this._ossCreditor.accessKeyId=I,this._ossCreditor.accessKeySecret=N,this._ossCreditor.securityToken=G,this._ossCreditor.expireTime=V,!0)}},{key:"addFile",value:function(I,N,G,V,H,ie){if(!I)return!1;if(I.size==0)try{this.options.onUploadFailed({file:I},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(X){console.log(X)}for(var F=(this.options,0);F<this._uploadList.length;F++)if(this._uploadList[F].file==I)return!1;var re=new Object;if(re.file=I,re._endpoint=N,re._bucket=G,re._object=V,re.state=a.UPLOADSTATE.INIT,re.isImage=y.default.isImage(I.name),!re.isImage&&this.options.enableUploadProgress){var Y=this;b.default.getMd5(I,function(X){re.fileHash=X;var D=Y._getCheckoutpoint(re);Y.options.localCheckpoint||D||Y._getCheckoutpointFromCloud(re,function(L){if(L.UploadPoint){var M=JSON.parse(L.UploadPoint);M.loaded!=1&&(re.checkpoint=M.checkpoint,re.loaded=M.loaded,re.videoId=L.VideoId,Y._saveCheckoutpoint(re,M.checkpoint))}},function(L){try{if((L=JSON.parse(L))&&L.Code=="InvalidParameter"&&L.Message.indexOf("UserId")>0){Y._invalidUserId=!0;var M=L.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(B){console.log(B)}})})}H&&(re.videoInfo=H?JSON.parse(H).Vod:{},re.userData=o.default.encode(H)),re.ri=E.default.create(),this._uploadList.push(re),this._reportLog("20001",re,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(re)}catch(X){console.log(X)}return!0}},{key:"deleteFile",value:function(I){return!!this.cancelFile(I)&&(this._uploadList.splice(I,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(I){if(this.options,I<0||I>=this._uploadList.length)return!1;var N=this._uploadList[I];if(I==this._curIndex&&N.state==a.UPLOADSTATE.UPLOADING){N.state=a.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(N);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=a.UPLOADSTATE.SUCCESS&&(N.state=a.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(I){if(this.options,I<0||I>=this._uploadList.length)return!1;var N=this._uploadList[I];return N.state==a.UPLOADSTATE.CANCELED&&(N.state=a.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(I){return this._getCheckoutpoint({file:I})}},{key:"startUpload",value:function(I){if(this._retryCount=0,this.options,this._state==a.VODSTATE.START||this._state==a.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=a.VODSTATE.END);var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=a.VODSTATE.START}},{key:"nextUpload",value:function(){var I=this.options;if(this._state==a.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N)}else{this._state=a.VODSTATE.END;try{I.onUploadEnd&&I.onUploadEnd(N)}catch(G){console.log(G)}}}},{key:"clear",value:function(I){for(var N=this.options,G=0,V=0;V<this._uploadList.length;V++)N.uploadList[V].state==a.UPLOADSTATE.SUCCESS&&G++,this._uploadList[V].state==I&&(N.uploadList.splice(V,1),V--);N.onClear&&N.onClear(N.uploadList.length,G)}},{key:"stopUpload",value:function(){if((this._state==a.VODSTATE.START||this._state==a.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var I=this._uploadList[this._curIndex];this._state=a.VODSTATE.STOP,I.state=a.UPLOADSTATE.STOPED,this._changeState(I,a.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(I){var N=this;if(!I)return!1;var G=JSON.parse(o.default.decode(I));return!!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration)&&N.resumeUploadWithToken(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration)}},{key:"resumeUploadWithToken",value:function(I,N,G,V){if(this.options,!(I&&N&&G&&V))return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var H="";return this._uploadList.length>this._curIndex&&(H=this._uploadList[this._curIndex]),H&&(this.init(I,N,G,V),this._state=a.VODSTATE.START,this._ossUpload=null,this._uploadCore(H,H.retry),H.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(I,N,G){if(this._curIndex==-1)return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var V=this._uploadList[this._curIndex];V.object?this._refreshSTSTokenUpload(V,I,N,G):this.setSTSToken(V,I,N,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(I,N,G,V,H){if(!(N&&G&&V&&H))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var ie=I;this.init(N,G,V,H),ie.endpoint=ie._endpoint,ie.bucket=ie._bucket,ie.object=ie._object,this._ossUpload=null,this._uploadCore(ie,I.retry),I.retry=!1}},{key:"setSTSToken",value:function(I,N,G,V){if(!N||!G||!V)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var H=I.videoInfo,ie={accessKeyId:N,securityToken:V,accessKeySecret:G,fileName:I.file.name,title:H.Title,requestId:I.ri,region:this.options.region};H.ImageType&&(ie.imageType=H.ImageType),H.ImageExt&&(ie.imageExt=H.ImageExt),H.FileSize&&(ie.fileSize=H.FileSize),H.Description&&(ie.description=H.Description),H.CateId&&(ie.cateId=H.CateId),H.Tags&&(ie.tags=H.Tags),H.TemplateGroupId&&(ie.templateGroupId=H.TemplateGroupId),H.StorageLocation&&(ie.storageLocation=H.StorageLocation),H.CoverURL&&(ie.coverUrl=H.CoverURL),H.TransCodeMode&&(ie.transCodeMode=H.TransCodeMode),H.UserData&&(ie.userData=H.UserData);var F=this,re="getUploadAuth";I.videoId?(ie.videoId=I.videoId,re="refreshUploadAuth"):I.isImage&&(re="getImageUploadAuth"),m.default[re](ie,function(Y){I.videoId=Y.VideoId?Y.VideoId:I.videoId,F.setUploadAuthAndAddress(I,Y.UploadAuth,Y.UploadAddress),F._state=a.VODSTATE.START},function(Y){F._error(I,{name:Y.Code,code:Y.Code,message:Y.Message,requestId:Y.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(I,N,G,V){if(!I||!N||!G)return!1;var H=JSON.parse(o.default.decode(N));if(!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration))return console.error("uploadauth is invalid"),!1;var ie={},F=I;if(G){if(ie=JSON.parse(o.default.decode(G)),!ie.Endpoint||!ie.Bucket||!ie.FileName)return console.error("uploadAddress is invalid"),!1}else ie.Endpoint=F.endpoint,ie.Bucket=F.bucket,ie.FileName=F.object;this._ut="vod",this._uploadWay="vod",this.options.region=H.Region||this.options.region,this.init(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration),F.endpoint=F._endpoint?F._endpoint:ie.Endpoint,F.bucket=F._bucket?F._bucket:ie.Bucket,F.object=F._object?F._object:ie.FileName,F.region=this.options.region,V&&(F.videoId=V),this._ossUpload=null,this._uploadCore(F,I.retry),I.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(I,N,G,V){if(!N||!G||!V)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var H={accessKeyId:N,securityToken:V,accessKeySecret:G,videoId:I.object,requestId:I.ri,region:this.options.region},ie=this,F="refreshUploadAuth";I.isImage&&(F="getImageUploadAuth"),m.default[F](H,function(re){ie.setUploadAuthAndAddress(I,re.UploadAuth,UploadAddress),ie._state=a.VODSTATE.START},function(re){ie._error(I,{name:re.Code,code:re.Code,message:re.Message,requestId:re.RequestId})})}},{key:"_upload",value:function(I){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(I.retry=N,G.onUploadstarted&&!N)try{var V=this._getCheckoutpoint(I);V&&V.state!=a.UPLOADSTATE.UPLOADING&&(I.checkpoint=V,I.videoId=V.videoId),G.onUploadstarted(I)}catch(H){console.log(H)}}},{key:"_uploadCore",value:function(I){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(I.state=a.UPLOADSTATE.UPLOADING,!this._ossUpload){I.endpoint=I.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new r.default({bucket:I.bucket,endpoint:I.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(Y,X){N._error.call(N,Y,X)},oncomplete:function(Y,X){N._complete.call(N,Y,X)},onprogress:function(Y,X,D){N._progress.call(N,Y,X,D)}})}var G=y.default.getFileType(I.file.name),V=this._getCheckoutpoint(I),H="",ie="";V&&V.checkpoint&&(ie=V.state,H=V.videoId,V=V.checkpoint),V&&H==I.videoId&&ie!=a.UPLOADSTATE.UPLOADING&&(V.file=I.file,I.checkpoint=V,V.uploadId);var F=this._adjustPartSize(I);this._reportLog("20002",I,{ft:G,fs:I.file.size,bu:I.bucket,ok:I.object,vid:I.videoId||"",fn:I.file.name,fw:null,fh:null,ps:F});var re={headers:{"x-oss-notification":I.userData?I.userData:""},partSize:F,parallel:this.options.parallel};this._ossUpload.upload(I,re)}},{key:"_findUploadIndex",value:function(){for(var I=-1,N=0;N<this._uploadList.length;N++)if(this._uploadList[N].state==a.UPLOADSTATE.INIT){I=N;break}return I}},{key:"_error",value:function(I,N){if(N.name=="cancel")try{this.options.onUploadCanceled(I,N)}catch(V){console.log(V)}else{if(N.message.indexOf("InvalidAccessKeyIdError")>0||N.name=="SignatureDoesNotMatchError"||N.code=="SecurityTokenExpired"||N.code=="InvalidSecurityToken.Expired"||N.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=a.VODSTATE.EXPIRE,I.state=a.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(I,N)}catch(V){console.log(V)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(I,!0)},1e3*G._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(I),this._handleError(I,N)}}},{key:"_handleError",value:function(I,N){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],V=a.UPLOADSTATE.FAIlURE;if(I.state!=a.UPLOADSTATE.CANCELED&&(I.state=a.UPLOADSTATE.FAIlURE,this._state=a.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(I,N.code,N.message)}catch(ie){console.log(ie)}if(G&&this._changeState(I,V),this._reportLog("20006",I,{code:N.name,message:N.message,requestId:N.requestId,fs:I.file.size,bu:I.bucket,ok:I.object,fn:I.file.name}),this._reportLog("20004",I,{requestId:N.requestId,fs:I.file.size,bu:I.bucket,ok:I.object,fn:I.file.name}),I.ri=E.default.create(),this._findUploadIndex()!=-1){var H=this;this._state=a.VODSTATE.START,setTimeout(function(){H.nextUpload()},100)}}},{key:"_complete",value:function(I,N){if(I.state=a.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(I)}catch(H){console.log(H)}var G=0;N&&N.res&&N.res.headers&&(G=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(I);var V=this;setTimeout(function(){V.nextUpload()},100),this._retryCount=0,this._reportLog("20003",I,{requestId:G})}},{key:"_progress",value:function(I,N,G){if(this.options.onUploadProgress)try{I.loaded=N.loaded,this.options.onUploadProgress(I,N.total,N.loaded)}catch(X){console.log(X)}var V=N.checkpoint,H=0;V&&(I.checkpoint=V,this._saveCheckoutpoint(I,V,a.UPLOADSTATE.UPLOADING),H=V.uploadId),this._retryCount=0;var ie=this._getPortNumber(V),F=0;if(G&&G.headers&&(F=G.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",I,{pn:ie,requestId:F}),N.loaded!=1&&this._reportLog("20005",I,{UploadId:H,pn:ie+1,pr:I.retry?1:0,fs:I.file.size,bu:I.bucket,ok:I.object,fn:I.file.name}),!this._invalidUserId&&!I.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var re={file:I.file,checkpoint:N,userId:this.options.userId,videoId:I.videoId,region:this.options.region,fileHash:I.fileHash};try{var Y=this;C.default.upload(re,function(){},function(X){if((X=JSON.parse(X))&&X.Code=="InvalidParameter"&&X.Message.indexOf("UserId")>0){Y._invalidUserId=!0;var D=X.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(D)}})}catch(X){console.log(X)}}}},{key:"_getPortNumber",value:function(I){if(I){var N=I.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(I){var N=this._getCheckoutpointKey(I);l.default.remove(N)}},{key:"_getCheckoutpoint",value:function(I){var N=this._getCheckoutpointKey(I),G=l.default.get(N);if(G)try{return JSON.parse(G)}catch(V){}return""}},{key:"_saveCheckoutpoint",value:function(I,N,G){if(N){var V=this._getCheckoutpointKey(I),H=I.file,ie={fileName:H.name,lastModified:H.lastModified,size:H.size,object:I.object,videoId:I.videoId,bucket:I.bucket,endpoint:I.endpoint,checkpoint:N,loaded:I.loaded,state:G};l.default.set(V,JSON.stringify(ie))}}},{key:"_changeState",value:function(I,N){var G=this._getCheckoutpoint(I);G&&((this._onbeforeunload=!0)&&(N=a.UPLOADSTATE.STOPED),this._saveCheckoutpoint(I,G.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(I){return"upload_"+I.file.lastModified+"_"+I.file.name+"_"+I.file.size}},{key:"_getCheckoutpointFromCloud",value:function(I,N,G){var V={userId:this.options.userId,uploadInfoList:[{FileName:I.file.name,FileSize:I.file.size,FileCreateTime:I.file.lastModified,FileHash:I.fileHash}],region:this.options.region};C.default.get(V,function(H){N(H)},G)}},{key:"_reportLog",value:function(I,N,G){G||(G={}),G.ri=N.ri,this._ut&&(G.ut=this._ut),this._log.log(I,G)}},{key:"_initEvent",value:function(){var I=this;window&&(window.onbeforeunload=function(N){if(I._onbeforeunload=!0,I._curIndex!=-1&&I._uploadList.length>I._curIndex){var G=I._uploadList[I._curIndex];I._changeState(G,a.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var I=0;I<this._uploadList.length;I++){var N=this._uploadList[I];N.state!=a.UPLOADSTATE.FAIlURE&&N.state!=a.UPLOADSTATE.STOPED||(N.state=a.UPLOADSTATE.INIT)}this._state=a.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(I){return I.file.size/this.options.partSize>1e4?I.file.size/9999:this.options.partSize}}]),P}());n.default=R},function(le,n,O){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},n.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(le,n,O){"use strict";function S(e){return e&&e.__esModule?e:{default:e}}function d(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function e(o,s){for(var l=0;l<s.length;l++){var h=s[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(o,h.key,h)}}return function(o,s,l){return s&&e(o.prototype,s),l&&e(o,l),o}}(),a=O(3),i=O(17),p=(S(i),O(1)),r=(S(p),function(){function e(o,s){if(d(this,e),o){this._config=o,this.create(this._config),this._uploadInfo=null,this._callback={};var l=function(){};this._callback.onerror=s.onerror||l,this._callback.oncomplete=s.oncomplete||l,this._callback.onprogress=s.onprogress||l}}return v(e,[{key:"create",value:function(o){if(o.endpoint=o.endpoint||this._config.endpoint,o.bucket=o.bucket||this._config.bucket,!(o.AccessKeyId&&o.AccessKeySecret&&o.endpoint&&o.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var s={accessKeyId:o.AccessKeyId,accessKeySecret:o.AccessKeySecret,stsToken:o.SecurityToken,endpoint:o.endpoint||this._config.endpoint,bucket:o.bucket||this._config.bucket,secure:!0,cname:o.cname};o.timeout&&(s.timeout=o.timeout),this.oss=new OSS.Wrapper(s)}},{key:"abort",value:function(o){if(o.checkpoint){var s=o.checkpoint.uploadId;this.oss.abortMultipartUpload(o.object,s)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(o,s){this._uploadInfo=o;var l=this,h=function(w,y,f){return function(E){l._progress(w,y,f),E()}},c={parallel:s.parallel||this._config.parallel||a.UPLOADDEFAULT.PARALLEL,partSize:s.partSize||this._config.partSize||a.UPLOADDEFAULT.PARTSIZE,progress:h};s.headers&&(c.headers=s.headers),o.checkpoint&&(c.checkpoint=o.checkpoint),o.bucket||(this.oss.options.bucket=o.bucket),o.endpoint||(this.oss.options.endpoint=o.endpoint),this.oss.multipartUpload(o.object,o.file,c).then(function(w,y){l._complete(w)}).catch(function(w){l.oss.cancel&&(l.oss&&l.oss.isCancel()?console.log("oss is cancel as error"):l.oss.cancel()),l._error(w)})}},{key:"header",value:function(o,s,l){this.oss.get(o.object).then(function(h){s(h)}).catch(function(h){l(h)})}},{key:"_progress",value:function(o,s,l){this._callback.onprogress(this._uploadInfo,{loaded:o,total:this._uploadInfo.file.size,checkpoint:s},l)}},{key:"_error",value:function(o){this._callback.onerror(this._uploadInfo,o)}},{key:"_complete",value:function(o){this._callback.oncomplete(this._uploadInfo,o)}}]),e}());n.default=r},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"format",value:function(i){if(arguments.length<2)return null;for(var p=arguments[1],r=1;r<arguments.length;r++){var e=new RegExp("\\{"+(r-1)+"\\}","gm");p=p.replace(e,arguments[r+1])}return{code:i,message:p}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),a}();n.default=v},function(le,n,O){"use strict";(function(S){function d(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function i(p,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(p,o.key,o)}}return function(p,r,e){return r&&i(p.prototype,r),e&&i(p,e),p}}(),a=function(){function i(){d(this,i)}return v(i,null,[{key:"encode",value:function(p){return new S(p).toString("base64")}},{key:"decode",value:function(p){return new S(p,"base64").toString()}}]),i}();n.default=a}).call(n,O(19).Buffer)},function(le,n,O){"use strict";(function(S){function d(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(k,t){if(d()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(t),k.__proto__=a.prototype):(k===null&&(k=new a(t)),k.length=t),k}function a(k,t,u){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(k,t,u);if(typeof k=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,k)}return i(this,k,t,u)}function i(k,t,u,A){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?l(k,t,u,A):typeof t=="string"?o(k,t,u):h(k,t)}function p(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function r(k,t,u,A){return p(t),t<=0?v(k,t):u!==void 0?typeof A=="string"?v(k,t).fill(u,A):v(k,t).fill(u):v(k,t)}function e(k,t){if(p(t),k=v(k,t<0?0:0|c(t)),!a.TYPED_ARRAY_SUPPORT)for(var u=0;u<t;++u)k[u]=0;return k}function o(k,t,u){if(typeof u=="string"&&u!==""||(u="utf8"),!a.isEncoding(u))throw new TypeError('"encoding" must be a valid string encoding');var A=0|y(t,u);k=v(k,A);var g=k.write(t,u);return g!==A&&(k=k.slice(0,g)),k}function s(k,t){var u=t.length<0?0:0|c(t.length);k=v(k,u);for(var A=0;A<u;A+=1)k[A]=255&t[A];return k}function l(k,t,u,A){if(t.byteLength,u<0||t.byteLength<u)throw new RangeError("'offset' is out of bounds");if(t.byteLength<u+(A||0))throw new RangeError("'length' is out of bounds");return t=u===void 0&&A===void 0?new Uint8Array(t):A===void 0?new Uint8Array(t,u):new Uint8Array(t,u,A),a.TYPED_ARRAY_SUPPORT?(k=t,k.__proto__=a.prototype):k=s(k,t),k}function h(k,t){if(a.isBuffer(t)){var u=0|c(t.length);return k=v(k,u),k.length===0||t.copy(k,0,0,u),k}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ne(t.length)?v(k,0):s(k,t);if(t.type==="Buffer"&&Z(t.data))return s(k,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(k){if(k>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|k}function w(k){return+k!=k&&(k=0),a.alloc(+k)}function y(k,t){if(a.isBuffer(k))return k.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var u=k.length;if(u===0)return 0;for(var A=!1;;)switch(t){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":case void 0:return te(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return J(k).length;default:if(A)return te(k).length;t=(""+t).toLowerCase(),A=!0}}function f(k,t,u){var A=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((u===void 0||u>this.length)&&(u=this.length),u<=0)return"";if(u>>>=0,t>>>=0,u<=t)return"";for(k||(k="utf8");;)switch(k){case"hex":return ie(this,t,u);case"utf8":case"utf-8":return N(this,t,u);case"ascii":return V(this,t,u);case"latin1":case"binary":return H(this,t,u);case"base64":return I(this,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,u);default:if(A)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),A=!0}}function E(k,t,u){var A=k[t];k[t]=k[u],k[u]=A}function T(k,t,u,A,g){if(k.length===0)return-1;if(typeof u=="string"?(A=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,isNaN(u)&&(u=g?0:k.length-1),u<0&&(u=k.length+u),u>=k.length){if(g)return-1;u=k.length-1}else if(u<0){if(!g)return-1;u=0}if(typeof t=="string"&&(t=a.from(t,A)),a.isBuffer(t))return t.length===0?-1:m(k,t,u,A,g);if(typeof t=="number")return t&=255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(k,t,u):Uint8Array.prototype.lastIndexOf.call(k,t,u):m(k,[t],u,A,g);throw new TypeError("val must be string, number or Buffer")}function m(k,t,u,A,g){function x(be,ue){return z===1?be[ue]:be.readUInt16BE(ue*z)}var z=1,W=k.length,fe=t.length;if(A!==void 0&&((A=String(A).toLowerCase())==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(k.length<2||t.length<2)return-1;z=2,W/=2,fe/=2,u/=2}var ce;if(g){var de=-1;for(ce=u;ce<W;ce++)if(x(k,ce)===x(t,de===-1?0:ce-de)){if(de===-1&&(de=ce),ce-de+1===fe)return de*z}else de!==-1&&(ce-=ce-de),de=-1}else for(u+fe>W&&(u=W-fe),ce=u;ce>=0;ce--){for(var he=!0,_e=0;_e<fe;_e++)if(x(k,ce+_e)!==x(t,_e)){he=!1;break}if(he)return ce}return-1}function _(k,t,u,A){u=Number(u)||0;var g=k.length-u;A?(A=Number(A))>g&&(A=g):A=g;var x=t.length;if(x%2!=0)throw new TypeError("Invalid hex string");A>x/2&&(A=x/2);for(var z=0;z<A;++z){var W=parseInt(t.substr(2*z,2),16);if(isNaN(W))return z;k[u+z]=W}return z}function C(k,t,u,A){return $(te(t,k.length-u),k,u,A)}function j(k,t,u,A){return $(ae(t),k,u,A)}function b(k,t,u,A){return j(k,t,u,A)}function R(k,t,u,A){return $(J(t),k,u,A)}function P(k,t,u,A){return $(pe(t,k.length-u),k,u,A)}function I(k,t,u){return t===0&&u===k.length?q.fromByteArray(k):q.fromByteArray(k.slice(t,u))}function N(k,t,u){u=Math.min(k.length,u);for(var A=[],g=t;g<u;){var x=k[g],z=null,W=x>239?4:x>223?3:x>191?2:1;if(g+W<=u){var fe,ce,de,he;switch(W){case 1:x<128&&(z=x);break;case 2:fe=k[g+1],(192&fe)==128&&(he=(31&x)<<6|63&fe)>127&&(z=he);break;case 3:fe=k[g+1],ce=k[g+2],(192&fe)==128&&(192&ce)==128&&(he=(15&x)<<12|(63&fe)<<6|63&ce)>2047&&(he<55296||he>57343)&&(z=he);break;case 4:fe=k[g+1],ce=k[g+2],de=k[g+3],(192&fe)==128&&(192&ce)==128&&(192&de)==128&&(he=(15&x)<<18|(63&fe)<<12|(63&ce)<<6|63&de)>65535&&he<1114112&&(z=he)}}z===null?(z=65533,W=1):z>65535&&(z-=65536,A.push(z>>>10&1023|55296),z=56320|1023&z),A.push(z),g+=W}return G(A)}function G(k){var t=k.length;if(t<=Q)return String.fromCharCode.apply(String,k);for(var u="",A=0;A<t;)u+=String.fromCharCode.apply(String,k.slice(A,A+=Q));return u}function V(k,t,u){var A="";u=Math.min(k.length,u);for(var g=t;g<u;++g)A+=String.fromCharCode(127&k[g]);return A}function H(k,t,u){var A="";u=Math.min(k.length,u);for(var g=t;g<u;++g)A+=String.fromCharCode(k[g]);return A}function ie(k,t,u){var A=k.length;(!t||t<0)&&(t=0),(!u||u<0||u>A)&&(u=A);for(var g="",x=t;x<u;++x)g+=oe(k[x]);return g}function F(k,t,u){for(var A=k.slice(t,u),g="",x=0;x<A.length;x+=2)g+=String.fromCharCode(A[x]+256*A[x+1]);return g}function re(k,t,u){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+t>u)throw new RangeError("Trying to access beyond buffer length")}function Y(k,t,u,A,g,x){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>g||t<x)throw new RangeError('"value" argument is out of bounds');if(u+A>k.length)throw new RangeError("Index out of range")}function X(k,t,u,A){t<0&&(t=65535+t+1);for(var g=0,x=Math.min(k.length-u,2);g<x;++g)k[u+g]=(t&255<<8*(A?g:1-g))>>>8*(A?g:1-g)}function D(k,t,u,A){t<0&&(t=4294967295+t+1);for(var g=0,x=Math.min(k.length-u,4);g<x;++g)k[u+g]=t>>>8*(A?g:3-g)&255}function L(k,t,u,A,g,x){if(u+A>k.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function M(k,t,u,A,g){return g||L(k,t,u,4,34028234663852886e22,-34028234663852886e22),U.write(k,t,u,A,23,4),u+4}function B(k,t,u,A,g){return g||L(k,t,u,8,17976931348623157e292,-17976931348623157e292),U.write(k,t,u,A,52,8),u+8}function ee(k){if(k=K(k).replace(se,""),k.length<2)return"";for(;k.length%4!=0;)k+="=";return k}function K(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function oe(k){return k<16?"0"+k.toString(16):k.toString(16)}function te(k,t){t=t||1/0;for(var u,A=k.length,g=null,x=[],z=0;z<A;++z){if((u=k.charCodeAt(z))>55295&&u<57344){if(!g){if(u>56319){(t-=3)>-1&&x.push(239,191,189);continue}if(z+1===A){(t-=3)>-1&&x.push(239,191,189);continue}g=u;continue}if(u<56320){(t-=3)>-1&&x.push(239,191,189),g=u;continue}u=65536+(g-55296<<10|u-56320)}else g&&(t-=3)>-1&&x.push(239,191,189);if(g=null,u<128){if((t-=1)<0)break;x.push(u)}else if(u<2048){if((t-=2)<0)break;x.push(u>>6|192,63&u|128)}else if(u<65536){if((t-=3)<0)break;x.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;x.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return x}function ae(k){for(var t=[],u=0;u<k.length;++u)t.push(255&k.charCodeAt(u));return t}function pe(k,t){for(var u,A,g,x=[],z=0;z<k.length&&!((t-=2)<0);++z)u=k.charCodeAt(z),A=u>>8,g=u%256,x.push(g),x.push(A);return x}function J(k){return q.toByteArray(ee(k))}function $(k,t,u,A){for(var g=0;g<A&&!(g+u>=t.length||g>=k.length);++g)t[g+u]=k[g];return g}function ne(k){return k!==k}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var q=O(21),U=O(22),Z=O(23);n.Buffer=a,n.SlowBuffer=w,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=S.TYPED_ARRAY_SUPPORT!==void 0?S.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=d(),a.poolSize=8192,a._augment=function(k){return k.__proto__=a.prototype,k},a.from=function(k,t,u){return i(null,k,t,u)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(k,t,u){return r(null,k,t,u)},a.allocUnsafe=function(k){return e(null,k)},a.allocUnsafeSlow=function(k){return e(null,k)},a.isBuffer=function(k){return!(k==null||!k._isBuffer)},a.compare=function(k,t){if(!a.isBuffer(k)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(k===t)return 0;for(var u=k.length,A=t.length,g=0,x=Math.min(u,A);g<x;++g)if(k[g]!==t[g]){u=k[g],A=t[g];break}return u<A?-1:A<u?1:0},a.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(k,t){if(!Z(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return a.alloc(0);var u;if(t===void 0)for(t=0,u=0;u<k.length;++u)t+=k[u].length;var A=a.allocUnsafe(t),g=0;for(u=0;u<k.length;++u){var x=k[u];if(!a.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(A,g),g+=x.length}return A},a.byteLength=y,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<k;t+=2)E(this,t,t+1);return this},a.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<k;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},a.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<k;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},a.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?N(this,0,k):f.apply(this,arguments)},a.prototype.equals=function(k){if(!a.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||a.compare(this,k)===0},a.prototype.inspect=function(){var k="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(k+=" ... ")),"<Buffer "+k+">"},a.prototype.compare=function(k,t,u,A,g){if(!a.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),u===void 0&&(u=k?k.length:0),A===void 0&&(A=0),g===void 0&&(g=this.length),t<0||u>k.length||A<0||g>this.length)throw new RangeError("out of range index");if(A>=g&&t>=u)return 0;if(A>=g)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,A>>>=0,g>>>=0,this===k)return 0;for(var x=g-A,z=u-t,W=Math.min(x,z),fe=this.slice(A,g),ce=k.slice(t,u),de=0;de<W;++de)if(fe[de]!==ce[de]){x=fe[de],z=ce[de];break}return x<z?-1:z<x?1:0},a.prototype.includes=function(k,t,u){return this.indexOf(k,t,u)!==-1},a.prototype.indexOf=function(k,t,u){return T(this,k,t,u,!0)},a.prototype.lastIndexOf=function(k,t,u){return T(this,k,t,u,!1)},a.prototype.write=function(k,t,u,A){if(t===void 0)A="utf8",u=this.length,t=0;else if(u===void 0&&typeof t=="string")A=t,u=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(u)?(u|=0,A===void 0&&(A="utf8")):(A=u,u=void 0)}var g=this.length-t;if((u===void 0||u>g)&&(u=g),k.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var x=!1;;)switch(A){case"hex":return _(this,k,t,u);case"utf8":case"utf-8":return C(this,k,t,u);case"ascii":return j(this,k,t,u);case"latin1":case"binary":return b(this,k,t,u);case"base64":return R(this,k,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,k,t,u);default:if(x)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),x=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;a.prototype.slice=function(k,t){var u=this.length;k=~~k,t=t===void 0?u:~~t,k<0?(k+=u)<0&&(k=0):k>u&&(k=u),t<0?(t+=u)<0&&(t=0):t>u&&(t=u),t<k&&(t=k);var A;if(a.TYPED_ARRAY_SUPPORT)A=this.subarray(k,t),A.__proto__=a.prototype;else{var g=t-k;A=new a(g,void 0);for(var x=0;x<g;++x)A[x]=this[x+k]}return A},a.prototype.readUIntLE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k],g=1,x=0;++x<t&&(g*=256);)A+=this[k+x]*g;return A},a.prototype.readUIntBE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k+--t],g=1;t>0&&(g*=256);)A+=this[k+--t]*g;return A},a.prototype.readUInt8=function(k,t){return t||re(k,1,this.length),this[k]},a.prototype.readUInt16LE=function(k,t){return t||re(k,2,this.length),this[k]|this[k+1]<<8},a.prototype.readUInt16BE=function(k,t){return t||re(k,2,this.length),this[k]<<8|this[k+1]},a.prototype.readUInt32LE=function(k,t){return t||re(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},a.prototype.readUInt32BE=function(k,t){return t||re(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},a.prototype.readIntLE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k],g=1,x=0;++x<t&&(g*=256);)A+=this[k+x]*g;return g*=128,A>=g&&(A-=Math.pow(2,8*t)),A},a.prototype.readIntBE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=t,g=1,x=this[k+--A];A>0&&(g*=256);)x+=this[k+--A]*g;return g*=128,x>=g&&(x-=Math.pow(2,8*t)),x},a.prototype.readInt8=function(k,t){return t||re(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},a.prototype.readInt16LE=function(k,t){t||re(k,2,this.length);var u=this[k]|this[k+1]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt16BE=function(k,t){t||re(k,2,this.length);var u=this[k+1]|this[k]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt32LE=function(k,t){return t||re(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},a.prototype.readInt32BE=function(k,t){return t||re(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},a.prototype.readFloatLE=function(k,t){return t||re(k,4,this.length),U.read(this,k,!0,23,4)},a.prototype.readFloatBE=function(k,t){return t||re(k,4,this.length),U.read(this,k,!1,23,4)},a.prototype.readDoubleLE=function(k,t){return t||re(k,8,this.length),U.read(this,k,!0,52,8)},a.prototype.readDoubleBE=function(k,t){return t||re(k,8,this.length),U.read(this,k,!1,52,8)},a.prototype.writeUIntLE=function(k,t,u,A){(k=+k,t|=0,u|=0,!A)&&Y(this,k,t,u,Math.pow(2,8*u)-1,0);var g=1,x=0;for(this[t]=255&k;++x<u&&(g*=256);)this[t+x]=k/g&255;return t+u},a.prototype.writeUIntBE=function(k,t,u,A){(k=+k,t|=0,u|=0,!A)&&Y(this,k,t,u,Math.pow(2,8*u)-1,0);var g=u-1,x=1;for(this[t+g]=255&k;--g>=0&&(x*=256);)this[t+g]=k/x&255;return t+u},a.prototype.writeUInt8=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[t]=255&k,t+1},a.prototype.writeUInt16LE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):X(this,k,t,!0),t+2},a.prototype.writeUInt16BE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):X(this,k,t,!1),t+2},a.prototype.writeUInt32LE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=k>>>24,this[t+2]=k>>>16,this[t+1]=k>>>8,this[t]=255&k):D(this,k,t,!0),t+4},a.prototype.writeUInt32BE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):D(this,k,t,!1),t+4},a.prototype.writeIntLE=function(k,t,u,A){if(k=+k,t|=0,!A){var g=Math.pow(2,8*u-1);Y(this,k,t,u,g-1,-g)}var x=0,z=1,W=0;for(this[t]=255&k;++x<u&&(z*=256);)k<0&&W===0&&this[t+x-1]!==0&&(W=1),this[t+x]=(k/z>>0)-W&255;return t+u},a.prototype.writeIntBE=function(k,t,u,A){if(k=+k,t|=0,!A){var g=Math.pow(2,8*u-1);Y(this,k,t,u,g-1,-g)}var x=u-1,z=1,W=0;for(this[t+x]=255&k;--x>=0&&(z*=256);)k<0&&W===0&&this[t+x+1]!==0&&(W=1),this[t+x]=(k/z>>0)-W&255;return t+u},a.prototype.writeInt8=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[t]=255&k,t+1},a.prototype.writeInt16LE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):X(this,k,t,!0),t+2},a.prototype.writeInt16BE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):X(this,k,t,!1),t+2},a.prototype.writeInt32LE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8,this[t+2]=k>>>16,this[t+3]=k>>>24):D(this,k,t,!0),t+4},a.prototype.writeInt32BE=function(k,t,u){return k=+k,t|=0,u||Y(this,k,t,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):D(this,k,t,!1),t+4},a.prototype.writeFloatLE=function(k,t,u){return M(this,k,t,!0,u)},a.prototype.writeFloatBE=function(k,t,u){return M(this,k,t,!1,u)},a.prototype.writeDoubleLE=function(k,t,u){return B(this,k,t,!0,u)},a.prototype.writeDoubleBE=function(k,t,u){return B(this,k,t,!1,u)},a.prototype.copy=function(k,t,u,A){if(u||(u=0),A||A===0||(A=this.length),t>=k.length&&(t=k.length),t||(t=0),A>0&&A<u&&(A=u),A===u)return 0;if(k.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),k.length-t<A-u&&(A=k.length-t+u);var g,x=A-u;if(this===k&&u<t&&t<A)for(g=x-1;g>=0;--g)k[g+t]=this[g+u];else if(x<1e3||!a.TYPED_ARRAY_SUPPORT)for(g=0;g<x;++g)k[g+t]=this[g+u];else Uint8Array.prototype.set.call(k,this.subarray(u,u+x),t);return x},a.prototype.fill=function(k,t,u,A){if(typeof k=="string"){if(typeof t=="string"?(A=t,t=0,u=this.length):typeof u=="string"&&(A=u,u=this.length),k.length===1){var g=k.charCodeAt(0);g<256&&(k=g)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!a.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof k=="number"&&(k&=255);if(t<0||this.length<t||this.length<u)throw new RangeError("Out of range index");if(u<=t)return this;t>>>=0,u=u===void 0?this.length:u>>>0,k||(k=0);var x;if(typeof k=="number")for(x=t;x<u;++x)this[x]=k;else{var z=a.isBuffer(k)?k:te(new a(k,A).toString()),W=z.length;for(x=0;x<u-t;++x)this[x+t]=z[x%W]}return this};var se=/[^+\/0-9A-Za-z-_]/g}).call(n,O(20))},function(le,n){var O;O=function(){return this}();try{O=O||Function("return this")()||(0,eval)("this")}catch(S){typeof window=="object"&&(O=window)}le.exports=O},function(le,n,O){"use strict";function S(c){var w=c.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[w-2]==="="?2:c[w-1]==="="?1:0}function d(c){return 3*c.length/4-S(c)}function v(c){var w,y,f,E,T,m=c.length;E=S(c),T=new o(3*m/4-E),y=E>0?m-4:m;var _=0;for(w=0;w<y;w+=4)f=e[c.charCodeAt(w)]<<18|e[c.charCodeAt(w+1)]<<12|e[c.charCodeAt(w+2)]<<6|e[c.charCodeAt(w+3)],T[_++]=f>>16&255,T[_++]=f>>8&255,T[_++]=255&f;return E===2?(f=e[c.charCodeAt(w)]<<2|e[c.charCodeAt(w+1)]>>4,T[_++]=255&f):E===1&&(f=e[c.charCodeAt(w)]<<10|e[c.charCodeAt(w+1)]<<4|e[c.charCodeAt(w+2)]>>2,T[_++]=f>>8&255,T[_++]=255&f),T}function a(c){return r[c>>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]}function i(c,w,y){for(var f,E=[],T=w;T<y;T+=3)f=(c[T]<<16)+(c[T+1]<<8)+c[T+2],E.push(a(f));return E.join("")}function p(c){for(var w,y=c.length,f=y%3,E="",T=[],m=0,_=y-f;m<_;m+=16383)T.push(i(c,m,m+16383>_?_:m+16383));return f===1?(w=c[y-1],E+=r[w>>2],E+=r[w<<4&63],E+="=="):f===2&&(w=(c[y-2]<<8)+c[y-1],E+=r[w>>10],E+=r[w>>4&63],E+=r[w<<2&63],E+="="),T.push(E),T.join("")}n.byteLength=d,n.toByteArray=v,n.fromByteArray=p;for(var r=[],e=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=s.length;l<h;++l)r[l]=s[l],e[s.charCodeAt(l)]=l;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(le,n){n.read=function(O,S,d,v,a){var i,p,r=8*a-v-1,e=(1<<r)-1,o=e>>1,s=-7,l=d?a-1:0,h=d?-1:1,c=O[S+l];for(l+=h,i=c&(1<<-s)-1,c>>=-s,s+=r;s>0;i=256*i+O[S+l],l+=h,s-=8);for(p=i&(1<<-s)-1,i>>=-s,s+=v;s>0;p=256*p+O[S+l],l+=h,s-=8);if(i===0)i=1-o;else{if(i===e)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,v),i-=o}return(c?-1:1)*p*Math.pow(2,i-v)},n.write=function(O,S,d,v,a,i){var p,r,e,o=8*i-a-1,s=(1<<o)-1,l=s>>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=v?0:i-1,w=v?1:-1,y=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(r=isNaN(S)?1:0,p=s):(p=Math.floor(Math.log(S)/Math.LN2),S*(e=Math.pow(2,-p))<1&&(p--,e*=2),S+=p+l>=1?h/e:h*Math.pow(2,1-l),S*e>=2&&(p++,e/=2),p+l>=s?(r=0,p=s):p+l>=1?(r=(S*e-1)*Math.pow(2,a),p+=l):(r=S*Math.pow(2,l-1)*Math.pow(2,a),p=0));a>=8;O[d+c]=255&r,c+=w,r/=256,a-=8);for(p=p<<a|r,o+=a;o>0;O[d+c]=255&p,c+=w,p/=256,o-=8);O[d+c-w]|=128*y}},function(le,n){var O={}.toString;le.exports=Array.isArray||function(S){return O.call(S)=="[object Array]"}},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"set",value:function(i,p){try{window.localStorage&&localStorage.setItem(i,p)}catch(r){window[i+"_localStorage"]=p}}},{key:"get",value:function(i){try{if(window.localStorage)return localStorage.getItem(i)}catch(p){return window[i+"_localStorage"]}return""}},{key:"remove",value:function(i){try{window.localStorage&&localStorage.removeItem(i)}catch(p){delete window[i+"_localStorage"]}}}]),a}();n.default=v},function(le,n,O){"use strict";function S(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function a(i,p){for(var r=0;r<p.length;r++){var e=p[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,p,r){return p&&a(i.prototype,p),r&&a(i,r),i}}(),v=function(){function a(){S(this,a)}return d(a,null,[{key:"get",value:function(i){for(var p=i+"",r=document.cookie.split(";"),e=0;e<r.length;e++){var o=r[e].trim();if(o.indexOf(p)==0)return unescape(o.substring(p.length+1,o.length))}return""}},{key:"set",value:function(i,p,r){var e=new Date;e.setTime(e.getTime()+24*r*60*60*1e3);var o="expires="+e.toGMTString();document.cookie=i+"="+escape(p)+"; "+o}}]),a}();n.default=v},function(le,n,O){"use strict";function S(o){return o&&o.__esModule?o:{default:o}}function d(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function o(s,l){for(var h=0;h<l.length;h++){var c=l[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(s,c.key,c)}}return function(s,l,h){return l&&o(s.prototype,l),h&&o(s,h),s}}(),a=O(8),i=S(a),p=O(9),r=S(p),e=function(){function o(){d(this,o)}return v(o,null,[{key:"refreshUploadAuth",value:function(s,l,h){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"RefreshUploadVideo",VideoId:s.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId},y=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),f="https://vod."+s.region+".aliyuncs.com/?"+y;i.default.get(f,function(E){var E=JSON.parse(E);l&&l(E)},function(E){if(h){var T=JSON.parse(E);h(T)}})}},{key:"getUploadAuth",value:function(s,l,h){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"CreateUploadVideo",Title:s.title,FileName:s.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId};s.fileSize&&(w.FileSize=s.fileSize),s.description&&(w.Description=s.description),s.cateId&&(w.CateId=s.cateId),s.tags&&(w.Tags=s.tags),s.templateGroupId&&(w.TemplateGroupId=s.templateGroupId),s.storageLocation&&(w.StorageLocation=s.storageLocation),s.coverUrl&&(w.CoverURL=s.coverUrl),s.transCodeMode&&(w.TransCodeMode=s.transCodeMode),s.userData&&(w.UserData=JSON.stringify(s.userData));var y=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),f="https://vod."+s.region+".aliyuncs.com/?"+y;i.default.get(f,function(E){try{E=JSON.parse(E)}catch(T){if(h)return void h({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}l&&l(E)},function(E){if(h){var T={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{T=JSON.parse(E)}catch(m){}h(T)}})}},{key:"getImageUploadAuth",value:function(s,l,h){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"CreateUploadImage",ImageType:s.imageType?s.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId};s.title&&(w.Title=s.title),s.imageExt&&(w.ImageExt=s.imageExt),s.tags&&(w.Tags=s.tags),s.storageLocation&&(w.StorageLocation=s.storageLocation);var y=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),f="https://vod."+s.region+".aliyuncs.com/?"+y;i.default.get(f,function(E){E=JSON.parse(E),l&&l(E)},function(E){if(h){var T=JSON.parse(E);h(T)}})}}]),o}();n.default=e},function(le,n,O){!function(S,d,v){le.exports=n=d(O(0),O(28),O(29))}(0,function(S){return S.HmacSHA1})},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return function(){var d=S,v=d.lib,a=v.WordArray,i=v.Hasher,p=d.algo,r=[],e=p.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,s){for(var l=this._hash.words,h=l[0],c=l[1],w=l[2],y=l[3],f=l[4],E=0;E<80;E++){if(E<16)r[E]=0|o[s+E];else{var T=r[E-3]^r[E-8]^r[E-14]^r[E-16];r[E]=T<<1|T>>>31}var m=(h<<5|h>>>27)+f+r[E];m+=E<20?1518500249+(c&w|~c&y):E<40?1859775393+(c^w^y):E<60?(c&w|c&y|w&y)-1894007588:(c^w^y)-899497514,f=y,y=w,w=c<<30|c>>>2,c=h,h=m}l[0]=l[0]+h|0,l[1]=l[1]+c|0,l[2]=l[2]+w|0,l[3]=l[3]+y|0,l[4]=l[4]+f|0},_doFinalize:function(){var o=this._data,s=o.words,l=8*this._nDataBytes,h=8*o.sigBytes;return s[h>>>5]|=128<<24-h%32,s[14+(h+64>>>9<<4)]=Math.floor(l/4294967296),s[15+(h+64>>>9<<4)]=l,o.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var o=i.clone.call(this);return o._hash=this._hash.clone(),o}});d.SHA1=i._createHelper(e),d.HmacSHA1=i._createHmacHelper(e)}(),S.SHA1})},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){!function(){var d=S,v=d.lib,a=v.Base,i=d.enc,p=i.Utf8,r=d.algo;r.HMAC=a.extend({init:function(e,o){e=this._hasher=new e.init,typeof o=="string"&&(o=p.parse(o));var s=e.blockSize,l=4*s;o.sigBytes>l&&(o=e.finalize(o)),o.clamp();for(var h=this._oKey=o.clone(),c=this._iKey=o.clone(),w=h.words,y=c.words,f=0;f<s;f++)w[f]^=1549556828,y[f]^=909522486;h.sigBytes=c.sigBytes=l,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var o=this._hasher,s=o.finalize(e);return o.reset(),o.finalize(this._oKey.clone().concat(s))}})}()})},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return function(){function d(r,e,o){for(var s=[],l=0,h=0;h<e;h++)if(h%4){var c=o[r.charCodeAt(h-1)]<<h%4*2,w=o[r.charCodeAt(h)]>>>6-h%4*2;s[l>>>2]|=(c|w)<<24-l%4*8,l++}return i.create(s,l)}var v=S,a=v.lib,i=a.WordArray,p=v.enc;p.Base64={stringify:function(r){var e=r.words,o=r.sigBytes,s=this._map;r.clamp();for(var l=[],h=0;h<o;h+=3)for(var c=e[h>>>2]>>>24-h%4*8&255,w=e[h+1>>>2]>>>24-(h+1)%4*8&255,y=e[h+2>>>2]>>>24-(h+2)%4*8&255,f=c<<16|w<<8|y,E=0;E<4&&h+.75*E<o;E++)l.push(s.charAt(f>>>6*(3-E)&63));var T=s.charAt(64);if(T)for(;l.length%4;)l.push(T);return l.join("")},parse:function(r){var e=r.length,o=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var l=0;l<o.length;l++)s[o.charCodeAt(l)]=l}var h=o.charAt(64);if(h){var c=r.indexOf(h);c!==-1&&(e=c)}return d(r,e,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),S.enc.Base64})},function(le,n,O){"use strict";function S(_){return _&&_.__esModule?_:{default:_}}function d(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function _(C,j){for(var b=0;b<j.length;b++){var R=j[b];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(C,R.key,R)}}return function(C,j,b){return j&&_(C.prototype,j),b&&_(C,b),C}}(),a=O(8),i=S(a),p=O(7),r=S(p),e=O(4),o=S(e),s=O(6),l=S(s),h=O(1),c=S(h),w=O(9),y=S(w),f=O(2),E=O(11),T=O(10),m=function(){function _(){d(this,_)}return v(_,null,[{key:"getAuthInfo",value:function(C,j,b){var R=C+"|f#Ylm&^1TppeRhLg|"+b;return j&&(R=C+"|"+j+"|f#Ylm&^1TppeRhLg|"+b),f(T.parse(R)).toString(E)}},{key:"upload",value:function(C,j,b){var R=c.default.ISODateString(new Date),P=Math.floor(new Date().valueOf()/1e3),I=o.default.getClientId();I=o.default.setClientId(I);var N=_.getAuthInfo(C.userId,I,P),G=y.default.randomUUID(),V={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:r.default.browser.name+(r.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:P,Timestamp:R,AuthInfo:N,FileName:C.file.name,FileSize:C.file.size,FileCreateTime:C.file.lastModified,FileHash:C.fileHash,UploadId:C.checkpoint.checkpoint.uploadId,PartSize:C.checkpoint.checkpoint.partSize,DonePartsCount:C.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(C.checkpoint),UploadRatio:C.checkpoint.loaded,UserId:C.userId,VideoId:C.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};I&&(V.ClientId=I);var H=y.default.makeUTF8sort(V,"=","&")+"&Signature="+y.default.aliyunEncodeURI(y.default.makeChangeSiga(V,C.accessKeySecret)),ie="https://vod."+C.region+".aliyuncs.com/?"+H;i.default.get(ie,function(F){j&&j()},function(F){F&&(b(F),console.log(F))})}},{key:"get",value:function(C,j,b){var R=c.default.ISODateString(new Date),P=Math.floor(new Date().valueOf()/1e3),I=o.default.getClientId(),N=_.getAuthInfo(C.userId,I,P),G=y.default.randomUUID(),V={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:r.default.browser.name+(r.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:P,Timestamp:R,AuthInfo:N,UserId:C.userId,UploadInfoList:JSON.stringify(C.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};I&&(V.ClientId=I);var H=y.default.makeUTF8sort(V,"=","&")+"&Signature="+y.default.aliyunEncodeURI(y.default.makeChangeSiga(V,C.accessKeySecret)),ie="https://vod."+C.region+".aliyuncs.com/?"+H;i.default.get(ie,function(F){var re={},Y=I;F=F?JSON.parse(F):{},F.UploadProgress&&F.UploadProgress.UploadProgressList&&F.UploadProgress.UploadProgressList.length>0&&(re=F.UploadProgress.UploadProgressList[0],Y=re.ClientId),o.default.setClientId(Y),j&&j(re)},function(F){F&&(b(F),console.log(F))})}}]),_}();n.default=m},function(le,n,O){"use strict";function S(p,r){if(!(p instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function p(r,e){for(var o=0;o<e.length;o++){var s=e[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,e,o){return e&&p(r.prototype,e),o&&p(r,o),r}}(),v=O(2),a=O(33),i=(O(11),function(){function p(){S(this,p)}return d(p,null,[{key:"getMd5",value:function(r,e,o){var s=new FileReader;s.onload=function(c){try{if(c&&c.target){var w=v(a.parse(c.target.result)),y=w.toString();e(y)}}catch(f){console.log(f)}},s.onerror=function(c){console.log(c),errorCallback(c)};var l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,h=l.call(r,0,1024);s.readAsBinaryString(h)}}]),p}());n.default=i},function(le,n,O){!function(S,d){le.exports=n=d(O(0))}(0,function(S){return S.enc.Latin1})}])}).call(this,me("IyRk"))},yG4R:function(ke,Oe){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgBAMAAAAnVGd6AAAAJFBMVEVHcExMrf9Orf9Nrf90uv9MrP////95wP/M5//z+v+x2/9cs//eVCejAAAABXRSTlMA10ycBa32wqwAAAFsSURBVFjD7dk/TsMwFMfxJ8QNIHsHOABDduAGJXoyUnZTsmcoByg3KANz/0i9AHA6YruBIjXPr/6hLrWlLlXy0dcZrPSViOj+puCENb64Ir/Okm73xMjdf15y8qpuO+COgXXZASUCVN0TYGiNsB24PVxjwAP2CNxDKDBgjAMMrgxkIANHAr5aDPiwtoWAubVPCPBobSxBBmYOeEsHfIB9bpMBHxBJoGhAJIHiAXICxQPkBFIEiAmkCBATSBMgJZAmQEogMWDiPnMxgcSAlQOmYgJJAY1xgBETSApYeIDFBJICOABiAkkBW0BM2A8sQ0APhIR3PVBvA3ogJDR6wPTX94BPmBwILHYAn3AA4A7jhncBM3g87wemIeAX+PlGCdTrFf8FeP2acqybwa1nIAMZODWgHjyMtW+qM/BNlT+HjkItUL9s8i+WDGTgSECB3f8Ps7QSAyp8IAmPROGhLDwWxgfT8GgcHs6Dfw98A1V0Ca+XaA0MAAAAAElFTkSuQmCC"}}]);
|