(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-dream-view~pages-user-index"],{"07ad":function(t,i,e){"use strict";e.r(i);var n=e("43d1"),s=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=s.a},1690:function(t,i,e){"use strict";e.r(i);var n=e("aec3"),s=e("07ad");for(var a in s)"default"!==a&&function(t){e.d(i,t,(function(){return s[t]}))}(a);e("314a");var r,o=e("f0c5"),h=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"305b6fde",null,!1,n["a"],r);i["default"]=h.exports},"1da1":function(t,i,e){"use strict";function n(t,i,e,n,s,a,r){try{var o=t[a](r),h=o.value}catch(c){return void e(c)}o.done?i(h):Promise.resolve(h).then(n,s)}function s(t){return function(){var i=this,e=arguments;return new Promise((function(s,a){var r=t.apply(i,e);function o(t){n(r,s,a,o,h,"next",t)}function h(t){n(r,s,a,o,h,"throw",t)}o(void 0)}))}}e("d3b7"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=s},"314a":function(t,i,e){"use strict";var n=e("420e"),s=e.n(n);s.a},"420e":function(t,i,e){var n=e("8b9c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("50ff0b47",n,!0,{sourceMap:!1,shadowMode:!1})},"43d1":function(t,i,e){"use strict";var n=e("4ea4");e("c975"),e("a15b"),e("ace4"),e("d3b7"),e("acd8"),e("e25e"),e("ac1f"),e("25f0"),e("3ca3"),e("466d"),e("1276"),e("498a"),e("5cc6"),e("8a59"),e("9a8c"),e("a975"),e("735e"),e("c1ac"),e("d139"),e("3a7b"),e("d5d6"),e("82f8"),e("e91f"),e("60bd"),e("5f96"),e("3280"),e("3fcc"),e("ca91"),e("25a1"),e("cd26"),e("3c5d"),e("2954"),e("649e"),e("219c"),e("170b"),e("b39a"),e("72f7"),e("ddb0"),e("2b3d"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("96cf");var s=n(e("1da1")),a=n(e("b85c")),r=50,o={name:"yq-avatar",data:function(){return{csH:"0px",sD:"none",sT:"-10000px",pT:"-10000px",iS:{},sS:{},sO:!0,bW:"19%",bD:"flex",tp:0,imgSrc:{imgSrc:""}}},watch:{avatarSrc:function(){this.imgSrc.imgSrc=this.avatarSrc}},props:{avatarSrc:"",avatarStyle:"",selWidth:"",selHeight:"",expWidth:"",expHeight:"",minScale:"",maxScale:"",canScale:"",canRotate:"",lockWidth:"",lockHeight:"",stretch:"",lock:"",fileType:"",noTab:"",inner:"",quality:"",index:"",bgImage:""},created:function(){var t=this;this.cc=uni.createCanvasContext("avatar-canvas",this),this.cco=uni.createCanvasContext("oper-canvas",this),this.ccp=uni.createCanvasContext("prv-canvas",this),this.qlty=parseFloat(this.quality)||1,this.imgSrc.imgSrc=this.avatarSrc,this.letRotate=!1===this.canRotate||!0===this.inner||"true"===this.inner||"false"===this.canRotate?0:1,this.letScale=!1===this.canScale||"false"===this.canScale?0:1,this.isin=!0===this.inner||"true"===this.inner?1:0,this.indx=this.index||void 0,this.mnScale=parseFloat(this.minScale)||.3,this.mxScale=parseFloat(this.maxScale)||4,this.noBar=!0===this.noTab||"true"===this.noTab?1:0,this.stc=this.stretch,this.lck=this.lock,this.fType="jpg"===this.fileType?"jpg":"png",this.isin||!this.letRotate?(this.bW="24%",this.bD="none"):(this.bW="19%",this.bD="flex"),this.noBar?this.fWindowResize():uni.showTabBar({fail:function(){t.noBar=1},success:function(){t.noBar=0},complete:function(i){t.fWindowResize()}})},methods:{fWindowResize:function(){var t=uni.getSystemInfoSync();this.platform=t.platform,this.wW=t.windowWidth,this.drawTop=t.windowTop,this.wH=t.windowHeight,this.noBar||(this.wH+=r),this.csH=this.wH-r+"px",this.tp=this.csH,this.tp=t.windowTop+parseInt(this.csH)+"px",this.pxRatio=this.wW/750;var i=this.avatarStyle;if(i&&!0!==i&&(i=i.trim())){i=i.split(";");var e,n={},s=(0,a.default)(i);try{for(s.s();!(e=s.n()).done;){var o=e.value;if(o){if(o=o.trim().split(":"),o[1].toString().indexOf("upx")>=0){var h=o[1].trim().split(" ");for(var c in h)h[c]&&h[c].toString().indexOf("upx")>=0&&(h[c]=parseFloat(h[c])*this.pxRatio+"px");o[1]=h.join(" ")}n[o[0].trim()]=o[1].trim()}}}catch(l){s.e(l)}finally{s.f()}this.iS=n}this.expWidth&&(this.eW=this.expWidth.toString().indexOf("upx")>=0?parseInt(this.expWidth)*this.pxRatio:parseInt(this.expWidth)),this.expHeight&&(this.eH=this.expHeight.toString().indexOf("upx")>=0?parseInt(this.expHeight)*this.pxRatio:parseInt(this.expHeight)),"flex"===this.sD&&this.fDrawInit(!0),this.fHideImg()},fSelect:function(){var t=this;this.fSelecting||(this.fSelecting=!0,setTimeout((function(){t.fSelecting=!1}),500),uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(i){uni.showLoading({title:"加载中...",mask:!0});var e=t.imgPath=i.tempFilePaths[0];uni.getImageInfo({src:e,success:function(i){if(t.imgWidth=i.width,t.imgHeight=i.height,t.path=e,!t.hasSel){var n=t.sS||{};if(!t.selWidth||!t.selHeight)return void uni.showModal({title:"裁剪框的宽或高没有设置",showCancel:!1});var s=t.selWidth.toString().indexOf("upx")>=0?parseInt(t.selWidth)*t.pxRatio:parseInt(t.selWidth),a=t.selHeight.toString().indexOf("upx")>=0?parseInt(t.selHeight)*t.pxRatio:parseInt(t.selHeight);n.width=s+"px",n.height=a+"px",n.top=(t.wH-a-r|0)/2+"px",n.left=(t.wW-s|0)/2+"px",t.sS=n}t.noBar?t.fDrawInit(!0):uni.hideTabBar({complete:function(){t.fDrawInit(!0)}})},fail:function(){uni.showToast({title:"请选择正确图片",duration:2e3})},complete:function(){uni.hideLoading()}})}}))},fUpload:function(){var t=this;if(!this.fUploading){this.fUploading=!0,setTimeout((function(){t.fUploading=!1}),1e3);var i=this.sS,e=parseInt(i.left),n=parseInt(i.top),s=parseInt(i.width),a=parseInt(i.height),r=this.eW||s*this.pixelRatio,o=this.eH||a*this.pixelRatio;uni.showLoading({title:"加载中...",mask:!0}),this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),uni.canvasToTempFilePath({x:e,y:n,width:s,height:a,destWidth:r,destHeight:o,canvasId:"avatar-canvas",fileType:this.fType,quality:this.qlty,success:function(i){i=i.tempFilePath,t.btop(i).then((function(i){t.$emit("upload",{avatar:t.imgSrc,path:i,index:t.indx,data:t.rtn,base64:t.base64||null})}))},fail:function(t){uni.showToast({title:"error1",duration:2e3})},complete:function(){uni.hideLoading(),t.noBar||uni.showTabBar(),t.$emit("end")}},this)}},fPrvUpload:function(){var t=this;if(!this.fPrvUploading){this.fPrvUploading=!0,setTimeout((function(){t.fPrvUploading=!1}),1e3);var i=this.sS,e=(parseInt(i.width),parseInt(i.height),this.prvX),n=this.prvY,s=this.prvWidth,a=this.prvHeight,r=this.eW||parseInt(i.width)*this.pixelRatio,o=this.eH||parseInt(i.height)*this.pixelRatio;uni.showLoading({title:"加载中...",mask:!0}),this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),uni.canvasToTempFilePath({x:e,y:n,width:s,height:a,destWidth:r,destHeight:o,canvasId:"prv-canvas",fileType:this.fType,quality:this.qlty,success:function(i){i=i.tempFilePath,t.btop(i).then((function(i){t.$emit("upload",{avatar:t.imgSrc,path:i,index:t.indx,data:t.rtn,base64:t.base64||null})}))},fail:function(){uni.showToast({title:"error_prv",duration:2e3})},complete:function(){uni.hideLoading(),t.noBar||uni.showTabBar(),t.$emit("end")}},this)}},fDrawInit:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.wW,n=this.wH,s=this.imgWidth,a=this.imgHeight,o=s/a,h=e-40,c=n-r-80,l=h/c,f=parseInt(this.sS.width),u=parseInt(this.sS.height);switch(this.fixWidth=0,this.fixHeight=0,this.lckWidth=0,this.lckHeight=0,this.stc){case"x":this.fixWidth=1;break;case"y":this.fixHeight=1;break;case"long":o>1?this.fixWidth=1:this.fixHeight=1;break;case"short":o>1?this.fixHeight=1:this.fixWidth=1;break;case"longSel":f>u?this.fixWidth=1:this.fixHeight=1;break;case"shortSel":f>u?this.fixHeight=1:this.fixWidth=1;break}switch(this.lck){case"x":this.lckWidth=1;break;case"y":this.lckHeight=1;break;case"long":o>1?this.lckWidth=1:this.lckHeight=1;break;case"short":o>1?this.lckHeight=1:this.lckWidth=1;break;case"longSel":f>u?this.lckWidth=1:this.lckHeight=1;break;case"shortSel":f>u?this.lckHeight=1:this.lckWidth=1;break}this.fixWidth?(h=f,c=h/o):this.fixHeight?(c=u,h=c*o):o0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(i){var n=i.selWidth,s=i.selHeight,a=i.expWidth,o=i.expHeight,h=i.quality,c=i.canRotate,l=i.canScale,f=i.minScale,u=i.maxScale,p=i.stretch,d=i.fileType,v=i.inner,g=i.lock;a&&(this.eW=a.toString().indexOf("upx")>=0?parseInt(a)*this.pxRatio:parseInt(a)),o&&(this.eH=o.toString().indexOf("upx")>=0?parseInt(o)*this.pxRatio:parseInt(o)),this.letRotate=!1===c||!0===v||"true"===v||"false"===c?0:1,this.letScale=!1===l||"false"===l?0:1,this.qlty=parseFloat(h)||1,this.mnScale=parseFloat(f)||.3,this.mxScale=parseFloat(u)||4,this.stc=p,this.isin=!0===v||"true"===v?1:0,this.fType="jpg"===d?"jpg":"png",this.lck=g,this.isin||!this.letRotate?(this.bW="24%",this.bD="none"):(this.bW="19%",this.bD="flex"),n&&s&&(n=n.toString().indexOf("upx")>=0?parseInt(n)*this.pxRatio:parseInt(n),s=s.toString().indexOf("upx")>=0?parseInt(s)*this.pxRatio:parseInt(s),this.sS.width=n+"px",this.sS.height=s+"px",this.sS.top=(this.wH-s-r|0)/2+"px",this.sS.left=(this.wW-n|0)/2+"px",this.hasSel=!0)}this.rtn=e,this.indx=t,this.fSelect()},fRotate:function(){this.rotateDeg+=90-this.rotateDeg%90,this.fDrawImage()},fStart:function(t){var i=t.touches,e=i[0],n=i[1];if(this.touch0=e,this.touch1=n,n){var s=n.x-e.x,a=n.y-e.y;this.fgDistance=Math.sqrt(s*s+a*a)}},fMove:function(t){var i=t.touches,e=i[0],n=i[1];if(n){var s=n.x-e.x,a=n.y-e.y,r=Math.sqrt(s*s+a*a),o=.005*(r-this.fgDistance),h=this.scaleSize+o;do{if(!this.letScale)break;if(hthis.mxScale)break;var c=this.useWidth*o/2,l=this.useHeight*o/2;if(this.isin){var f=this.useWidth*h,u=this.useHeight*h,p=(this.posWidth,this.posHeight,parseInt(this.sS.left)),d=parseInt(this.sS.top),v=parseInt(this.sS.width),g=parseInt(this.sS.height),w=p+v,x=d+g,b=void 0,y=void 0;if(f<=v||u<=g)break;this.cx=b=this.focusX*h-this.focusX,this.cy=y=this.focusY*h-this.focusY,this.posWidth-=c,this.posHeight-=l,this.posWidth-b>p&&(this.posWidth=p+b),this.posWidth+f-bd&&(this.posHeight=d+y),this.posHeight+u-yP-W?this.posWidth=_-T+W:(this.posWidth=S,this.focusX-=m)),!this.lckHeight&&Math.abs(k)<100&&(jE-H?(this.focusY-=z+H-(this.posHeight+R),this.posHeight=z-R+H):(this.posHeight=I,this.focusY-=k))}else Math.abs(m)<100&&!this.lckWidth&&(this.posWidth=S),Math.abs(k)<100&&!this.lckHeight&&(this.posHeight=I),this.focusX-=m,this.focusY-=k;this.touch0=e,this.fDrawImage()}},fEnd:function(t){var i=t.touches,e=i&&i[0];i&&i[1];e?this.touch0=e:(this.touch0=null,this.touch1=null)},fHideImg:function(){this.prvImg="",this.pT="-10000px",this.sO=!0,this.prvImgData=null,this.target=null},fClose:function(){this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),this.noBar||uni.showTabBar(),this.$emit("end")},fGetImgData:function(){var t=this;return new Promise((function(i,e){var n=t.prvX,s=t.prvY,a=t.prvWidth,r=t.prvHeight;uni.canvasGetImageData({canvasId:"prv-canvas",x:n,y:s,width:a,height:r,success:function(t){i(t.data)},fail:function(t){e(t)}},t)}))},fColorChange:function(t){var i=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var n,s,a,r,o,h,c,l,f,u,p,d,v,g,w,x,b,y,m,k,S,I,W,H,T,R,D;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Date.now(),!(n-i.prvTm<100)){e.next=3;break}return e.abrupt("return");case 3:if(i.prvTm=n,uni.showLoading({title:"加载中...",mask:!0}),i.prvImgData){e.next=11;break}return e.next=8,i.fGetImgData().catch((function(){uni.showToast({title:"error_read",duration:2e3})}));case 8:if(i.prvImgData=e.sent){e.next=10;break}return e.abrupt("return");case 10:i.target=new Uint8ClampedArray(i.prvImgData.length);case 11:if(s=i.prvImgData,a=i.target,r=t.detail.value,0===r)a=s;else for(r=(r+100)/200,r<.005&&(r=0),r>.995&&(r=1),S=s.length-1;S>=0;S-=4)o=s[S-3]/255,h=s[S-2]/255,c=s[S-1]/255,x=Math.max(o,h,c),w=Math.min(o,h,c),d=x-w,x===w?f=0:x===o&&h>=c?f=(h-c)/d*60:x===o&&h.5&&(u=d/(2-2*p)),s[S]&&(l=s[S]),r<.5?u=u*r/.5:r>.5&&(u=2*u+2*r-u*r/.5-1),0===u?o=h=c=Math.round(255*p):(p<.5?g=p*(1+u):p>=.5&&(g=p+u-p*u),v=2*p-g,b=f/360,y=b+1/3,m=b,k=b-1/3,I=function(t){return t<0?t+1:t>1?t-1:t},W=function(t){return t<1/6?v+6*(g-v)*t:t>=1/6&&t<.5?g:t>=.5&&t<2/3?v+6*(g-v)*(2/3-t):v},o=y=Math.round(255*W(I(y))),h=m=Math.round(255*W(I(m))),c=k=Math.round(255*W(I(k)))),l&&(a[S]=l),a[S-3]=o,a[S-2]=h,a[S-1]=c;H=i.prvX,T=i.prvY,R=i.prvWidth,D=i.prvHeight,uni.canvasPutImageData({canvasId:"prv-canvas",x:H,y:T,width:R,height:D,data:a,fail:function(){uni.showToast({title:"error_put",duration:2e3})},complete:function(){uni.hideLoading()}},i);case 15:case"end":return e.stop()}}),e)})))()},btop:function(t){return this.base64=t,new Promise((function(i,e){var n=t.split(","),s=n[0].match(/:(.*?);/)[1],a=atob(n[1]),r=a.length,o=new Uint8Array(r);while(r--)o[r]=a.charCodeAt(r);return i((window.URL||window.webkitURL).createObjectURL(new Blob([o],{type:s})))}))}}};i.default=o},"8b9c":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,".my-canvas[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;position:fixed!important;background:#000;left:0;z-index:100000;width:100%}.my-avatar[data-v-305b6fde]{width:%?150?%;height:%?150?%;border-radius:100%}.oper-canvas[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;position:fixed!important;left:0;z-index:100001;width:100%}.prv-canvas[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;position:fixed!important;background:#000;left:0;z-index:200000;width:100%}.oper-wrapper[data-v-305b6fde]{height:50px;position:fixed!important;box-sizing:border-box;border:1px solid #f1f1f1;background:#fff;width:100%;left:0;bottom:0;z-index:100009;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.oper[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:%?10?% %?20?%;width:100%;height:100%;box-sizing:border-box;-webkit-align-self:center;align-self:center}.btn-wrapper[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n\n\nheight:50px;\n-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.btn-wrapper uni-view[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:16px;color:#333;border:1px solid #f1f1f1;border-radius:6%}.hover[data-v-305b6fde]{background:#f1f1f1;border-radius:6%}.clr-wrapper[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.clr-wrapper uni-view[data-v-305b6fde]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:16px;color:#333;border:1px solid #f1f1f1;border-radius:6%}.my-slider[data-v-305b6fde]{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}",""]),t.exports=i},"96cf":function(t,i){!function(i){"use strict";var e,n=Object.prototype,s=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag",c="object"===typeof t,l=i.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=i.regeneratorRuntime=c?t.exports:{},l.wrap=y;var f="suspendedStart",u="suspendedYield",p="executing",d="completed",v={},g={};g[r]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(E([])));x&&x!==n&&s.call(x,r)&&(g=x);var b=I.prototype=k.prototype=Object.create(g);S.prototype=b.constructor=I,I.constructor=S,I[h]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var i="function"===typeof t&&t.constructor;return!!i&&(i===S||"GeneratorFunction"===(i.displayName||i.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,I):(t.__proto__=I,h in t||(t[h]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},W(H.prototype),H.prototype[o]=function(){return this},l.AsyncIterator=H,l.async=function(t,i,e,n){var s=new H(y(t,i,e,n));return l.isGeneratorFunction(i)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},W(b),b[h]="Generator",b[r]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var i=[];for(var e in t)i.push(e);return i.reverse(),function e(){while(i.length){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},l.values=E,P.prototype={constructor:P,reset:function(t){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(L),!t)for(var i in this)"t"===i.charAt(0)&&s.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],i=t.completion;if("throw"===i.type)throw i.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function n(n,s){return o.type="throw",o.arg=t,i.next=n,s&&(i.method="next",i.arg=e),!!s}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var h=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(h&&c){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),v}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var s=n.arg;L(e)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:E(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),v}}}function y(t,i,e,n){var s=i&&i.prototype instanceof k?i:k,a=Object.create(s.prototype),r=new P(n||[]);return a._invoke=T(t,e,r),a}function m(t,i,e){try{return{type:"normal",arg:t.call(i,e)}}catch(n){return{type:"throw",arg:n}}}function k(){}function S(){}function I(){}function W(t){["next","throw","return"].forEach((function(i){t[i]=function(t){return this._invoke(i,t)}}))}function H(t){function i(e,n,a,r){var o=m(t[e],t,n);if("throw"!==o.type){var h=o.arg,c=h.value;return c&&"object"===typeof c&&s.call(c,"__await")?Promise.resolve(c.__await).then((function(t){i("next",t,a,r)}),(function(t){i("throw",t,a,r)})):Promise.resolve(c).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,r)}))}r(o.arg)}var e;function n(t,n){function s(){return new Promise((function(e,s){i(t,n,e,s)}))}return e=e?e.then(s,s):s()}this._invoke=n}function T(t,i,e){var n=f;return function(s,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===s)throw a;return O()}e.method=s,e.arg=a;while(1){var r=e.delegate;if(r){var o=R(r,e);if(o){if(o===v)continue;return o}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var h=m(t,i,e);if("normal"===h.type){if(n=e.done?d:u,h.arg===v)continue;return{value:h.arg,done:e.done}}"throw"===h.type&&(n=d,e.method="throw",e.arg=h.arg)}}}function R(t,i){var n=t.iterator[i.method];if(n===e){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=e,R(t,i),"throw"===i.method))return v;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var s=m(n,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,v;var a=s.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,v):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function D(t){var i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),this.tryEntries.push(i)}function L(t){var i=t.completion||{};i.type="normal",delete i.arg,t.completion=i}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function E(t){if(t){var i=t[r];if(i)return i.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function i(){while(++n