>>=b=y>>>24,p-=b,0===(b=y>>>16&255))T[a++]=65535&y;else{if(!(16&b)){if(64&b){if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}y=v[(65535&y)+(f&(1<>>=b,p-=b),p<15&&(f+=C[r++]<>>=b=y>>>24,p-=b,16&(b=y>>>16&255)){if(x=65535&y,p<(b&=15)&&(f+=C[r++]<
l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,x>(b=a-o)){if((b=x-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,k=h,0===d){if(S+=u-b,b2;)T[a++]=k[S++],T[a++]=k[S++],T[a++]=k[S++],w-=3;w&&(T[a++]=k[S++],w>1&&(T[a++]=k[S++]))}else{S=a-x;do{T[a++]=T[S++],T[a++]=T[S++],T[a++]=T[S++],w-=3}while(w>2);w&&(T[a++]=T[S++],w>1&&(T[a++]=T[S++]))}break}if(64&b){e.msg="invalid distance code",n.mode=30;break e}y=g[(65535&y)+(f&(1<>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r=1&&0===O[w];w--);if(x>w&&(x=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b0&&(0===e||1!==w))return-1;for(L[1]=0,_=1;_852||2===e&&T>592)return 1;for(;;){p=_-k,o[y]f?(v=z[N+o[y]],g=M[E+o[y]]):(v=96,g=0),l=1<<_-k,b=u=1<>k)+(u-=l)]=p<<24|v<<16|g}while(0!==u);for(l=1<<_-1;A&l;)l>>=1;if(0!==l?(A&=l-1,A+=l):A=0,y++,0==--O[_]){if(_===w)break;_=t[n+o[y]]}if(_>x&&(A&d)!==c){for(0===k&&(k=x),h+=b,C=1<<(S=_-k);S+k852||2===e&&T>592)return 1;i[c=A&d]=x<<24|S<<16|h-a}}return 0!==A&&(i[h+A]=_-k<<24|64<<16),s.bits=x,0},ef=1,tf=2,nf=0,rf=-2,af=1,of=12,sf=30,lf=852,uf=592;function cf(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function df(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Zh.Buf16(320),this.work=new Zh.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function hf(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=af,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Zh.Buf32(lf),t.distcode=t.distdyn=new Zh.Buf32(uf),t.sane=1,t.back=-1,nf):rf}function ff(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,hf(e)):rf}function pf(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?rf:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ff(e))):rf}function vf(e,t){var n,r;return e?(r=new df,e.state=r,r.window=null,(n=pf(e,t))!==nf&&(e.state=null),n):rf}var gf,mf,_f=!0;function yf(e){if(_f){var t;for(gf=new Zh.Buf32(512),mf=new Zh.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Qh(ef,e.lens,0,288,gf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Qh(tf,e.lens,0,32,mf,0,e.work,{bits:5}),_f=!1}e.lencode=gf,e.lenbits=9,e.distcode=mf,e.distbits=5}function bf(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(Zh.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),Zh.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(Zh.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=Kh(n.check,A,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=sf;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=sf;break}if(c-=4,x=8+(15&(u>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=sf;break}n.dmax=1<>8&1),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Kh(n.check,A,2,0)),u=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,n.check=Kh(n.check,A,4,0)),u=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=r[a++]<>8),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Kh(n.check,A,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,u+=r[a++]<>>8&255,n.check=Kh(n.check,A,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Zh.arraySet(n.head.extra,r,a,f,x)),512&n.flags&&(n.check=Kh(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;f=0;do{x=r[a+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=of;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=r[a++]<>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===s)break e;s--,u+=r[a++]<>>=1)){case 0:n.mode=14;break;case 1:if(yf(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=sf}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=r[a++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=sf;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Zh.arraySet(i,r,a,f,o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=of;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=r[a++]<>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=sf;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,c-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},S=Qh(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid code lengths set",n.mode=sf;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,_=65535&T,!((g=T>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<>>=g,c-=g,n.lens[n.have++]=_;else{if(16===_){for(C=g+2;c>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=sf;break}x=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===_){for(C=g+3;c>>=g)),u>>>=3,c-=3}else{for(C=g+7;c>>=g)),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=sf;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===sf)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=sf;break}if(n.lenbits=9,k={bits:n.lenbits},S=Qh(ef,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid literal/lengths set",n.mode=sf;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},S=Qh(tf,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,S){e.msg="invalid distances set",n.mode=sf;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Jh(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===of&&(n.back=-1);break}for(n.back=0;m=(T=n.lencode[u&(1<>>16&255,_=65535&T,!((g=T>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<>y)])>>>16&255,_=65535&T,!(y+(g=T>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,n.length=_,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=of;break}if(64&m){e.msg="invalid literal/length code",n.mode=sf;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(C=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(T=n.distcode[u&(1<>>16&255,_=65535&T,!((g=T>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<>y)])>>>16&255,_=65535&T,!(y+(g=T>>>24)<=c);){if(0===s)break e;s--,u+=r[a++]<>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=sf;break}n.offset=_,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(C=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=sf;break}n.mode=25;case 25:if(0===l)break e;if(f=h-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=sf;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[o++]=v[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===s)break e;s--,u|=r[a++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Af,this.strm.avail_out=0;var n=xf.inflateInit2(this.strm,t.windowBits);if(n!==Cf.Z_OK)throw new Error(Tf[n]);if(this.header=new Mf,xf.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=kf.string2buf(t.dictionary):"[object ArrayBuffer]"===Ef.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=xf.inflateSetDictionary(this.strm,t.dictionary))!==Cf.Z_OK))throw new Error(Tf[n])}function Lf(e,t){var n=new Of(t);if(n.push(e,!0),n.err)throw n.msg||Tf[n.err];return n.result}Of.prototype.push=function(e,t){var n,r,i,a,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?Cf.Z_FINISH:Cf.Z_NO_FLUSH,"string"==typeof e?s.input=kf.binstring2buf(e):"[object ArrayBuffer]"===Ef.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Sf.Buf8(l),s.next_out=0,s.avail_out=l),(n=xf.inflate(s,Cf.Z_NO_FLUSH))===Cf.Z_NEED_DICT&&u&&(n=xf.inflateSetDictionary(this.strm,u)),n===Cf.Z_BUF_ERROR&&!0===c&&(n=Cf.Z_OK,c=!1),n!==Cf.Z_STREAM_END&&n!==Cf.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==Cf.Z_STREAM_END&&(0!==s.avail_in||r!==Cf.Z_FINISH&&r!==Cf.Z_SYNC_FLUSH)||("string"===this.options.to?(i=kf.utf8border(s.output,s.next_out),a=s.next_out-i,o=kf.buf2string(s.output,i),s.next_out=a,s.avail_out=l-a,a&&Sf.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(Sf.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==Cf.Z_STREAM_END);return n===Cf.Z_STREAM_END&&(r=Cf.Z_FINISH),r===Cf.Z_FINISH?(n=xf.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Cf.Z_OK):r!==Cf.Z_SYNC_FLUSH||(this.onEnd(Cf.Z_OK),s.avail_out=0,!0)},Of.prototype.onData=function(e){this.chunks.push(e)},Of.prototype.onEnd=function(e){e===Cf.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Sf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},jh.Inflate=Of,jh.inflate=Lf,jh.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Lf(e,t)},jh.ungzip=Lf;var zf={};(0,Cc.assign)(zf,Tc,jh,wf);var Nf=zf,If=!1,Pf=0,Df=0,Bf=960,Rf=375,Ff=750;function qf(e,t){var n=Number(e);return isNaN(n)?t:n}var jf=_c(0,((e,t)=>{var n;if(0===Pf&&(!function(){var{windowWidth:e,pixelRatio:t,platform:n}=yc();Pf=e,Df=t,If="ios"===n}(),n=__uniConfig.globalStyle||{},Bf=qf(n.rpxCalcMaxDeviceWidth,960),Rf=qf(n.rpxCalcBaseDeviceWidth,375),Ff=qf(n.rpxCalcBaseDeviceWidth,750)),0===(e=Number(e)))return 0;var r=t||Pf,i=e/750*(r=e===Ff||r<=Bf?r:Rf);return i<0&&(i=-i),0===(i=Math.floor(i+1e-4))&&(i=1!==Df&&If?.5:1),e<0?-i:i})),Vf={};Vf.f={}.propertyIsEnumerable;var $f,Hf=E,Wf=Ve,Uf=Z,Yf=Vf.f,Xf=($f=!1,function(e){for(var t,n=Uf(e),r=Wf(n),i=r.length,a=0,o=[];i>a;)t=r[a++],Hf&&!Yf.call(n,t)||o.push($f?[t,n[t]]:n[t]);return o});be(be.S,"Object",{values:function(e){return Xf(e)}});var Zf="setPageMeta",Gf="loadFontFace",Kf="pageScrollTo",Jf=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=i(e);t;)t=i(e=t.ownerDocument);return e}(),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&g>=0&&{top:l,bottom:c,left:h,right:p,width:v,height:g}||null),!m)break;_=_&&f(_)}return m}},o.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=u(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i{var[r,[i,a]]=e;n[t(r)]=[t(i),a]})),n}(t.w,e)),un(t,"s")&&(t.s=e(t.s)),un(t,"t")&&(t.t=e(t.t)),t}var rp=new Map;function ip(e){return rp.get(e)}function ap(e){return rp.delete(e)}var op=new Set;function sp(e,t){op.add(function(e,t){return e.priority=t,e}(e,t))}function lp(e,t){var n=window["__"+ar],r=n&&n[e];return r||(t&&t.__renderjsInstances?t.__renderjsInstances[e]:void 0)}var up=6;function cp(e,t,n){var[r,i,a,o]=hp(t),s=dp(e,r);if(cn(n)||cn(o)){var[l,u]=a.split(".");return fp(s,i,l,u,o)}return function(e,t,n){var r=lp(t,e);if(!r)return console.error(pr("wxs","module "+n+" not found"));return hr(r,n.slice(n.indexOf(".")+1))}(s,i,a)}function dp(e,t){if(e.__ownerId===t)return e;for(var n=e.parentElement;n;){if(n.__ownerId===t)return n;n=n.parentElement}return e}function hp(e){return JSON.parse(e.slice(up))}function fp(e,t,n,r,i){var a=lp(t,e);if(!a)return console.error(pr("wxs","module "+n+" not found"));var o=a[r];return fn(o)?o.apply(a,i):console.error(n+"."+r+" is not a function")}function pp(e,t,n){var r=n;return n=>{try{!function(e,t,n,r){var[i,a,o]=hp(e),s=dp(t,i),[l,u]=o.split(".");fp(s,a,l,u,[n,r,nc(ic(s)),nc(ic(t))])}(t,e.$,n,r)}catch(i){console.error(i)}r=n}}function vp(e,t){var n=ic(t);return Object.defineProperty(e,"instance",{get:()=>nc(n)}),e}function gp(e,t){Object.keys(t).forEach((n=>{!function(e,t){var n=function(e){var t=window["__"+or],n=t&&t[e];if(!n)return console.error(pr("renderjs",e+" not found"));return n}(t);if(!n)return;var r=e.$;(r.__renderjsInstances||(r.__renderjsInstances={}))[t]=function(e,t){return t=t.default||t,t.render=()=>{},pu(t).mixin({mounted(){this.$ownerInstance=nc(ic(e))}}).mount(document.createElement("div"))}(r,n)}(e,t[n])}))}function mp(e,t){return pn(e)?(0===e.indexOf(ir)?e=JSON.parse(e.slice(7)):0===e.indexOf(rr)&&(e=cp(t,e)),e):e}function _p(e){return 0===e.indexOf("--")}class yp{constructor(e,t,n,r){this.isMounted=!1,this.isUnmounted=!1,this.$hasWxsProps=!1,this.$children=[],this.id=e,this.tag=t,this.pid=n,r&&(this.$=r),this.$wxsProps=new Map;var i=this.$parent=function(e){return rp.get(e)}(n);i&&i.appendUniChild(this)}init(e){un(e,"t")&&(this.$.textContent=e.t)}setText(e){this.$.textContent=e,this.updateView()}insert(e,t,n){n&&this.init(n,!1);var r=this.$,i=ip(e);-1===t?i.appendChild(r):i.insertBefore(r,ip(t).$),this.isMounted=!0}remove(){this.removeUniParent();var{$:e}=this;e.parentNode.removeChild(e),this.isUnmounted=!0,ap(this.id),function(e){var{__renderjsInstances:t}=e.$;t&&Object.keys(t).forEach((e=>{t[e].$.appContext.app.unmount()}))}(this),this.removeUniChildren(),this.updateView()}appendChild(e){var t=this.$.appendChild(e);return this.updateView(!0),t}insertBefore(e,t){var n=this.$.insertBefore(e,t);return this.updateView(!0),n}appendUniChild(e){this.$children.push(e)}removeUniChild(e){var t=this.$children.indexOf(e);t>=0&&this.$children.splice(t,1)}removeUniParent(){var{$parent:e}=this;e&&(e.removeUniChild(this),this.$parent=void 0)}removeUniChildren(){for(var e=this.$children.length-1;e>=0;e--)this.$children[e].remove();this.$children.length=0}setWxsProps(e){Object.keys(e).forEach((t=>{if(0===t.indexOf(Or)){var n=t.replace(Or,""),r=mp(e[n]),i=pp(this,e[t],r);sp((()=>i(r)),4),this.$wxsProps.set(t,i),delete e[t],delete e[n],this.$hasWxsProps=!0}}))}addWxsEvents(e){Object.keys(e).forEach((t=>{var[n,r]=e[t];this.addWxsEvent(t,n,r)}))}addWxsEvent(e,t,n){}wxsPropsInvoke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.$hasWxsProps&&this.$wxsProps.get(Or+e);if(r)return sp((()=>n?yo((()=>r(t))):r(t)),4),!0}updateView(e){(this.isMounted||e)&&window.dispatchEvent(new CustomEvent("updateview"))}}function bp(e,t){var{__wxsAddClass:n,__wxsRemoveClass:r}=e;r&&r.length&&(t=t.split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),n&&n.length&&(t=t+" "+n.join(" ")),e.className=t}function wp(e){return Tp(Lp(e))}var xp,Sp,kp,Cp=/url\(\s*'?"?([a-zA-Z0-9\.\-\_\/]+\.(jpg|gif|png))"?'?\s*\)/,Tp=e=>{if(pn(e)&&-1!==e.indexOf("url(")){var t=e.match(Cp);t&&3===t.length&&(e=e.replace(t[1],bc(t[1])))}return e},{unit:Ap,unitRatio:Mp,unitPrecision:Ep}={unit:"rem",unitRatio:10/320,unitPrecision:5},Op=(xp=Ap,Sp=Mp,kp=Ep,e=>e.replace(_r,((e,t)=>{if(!t)return e;if(1===Sp)return"".concat(t).concat(xp);var n,r,i,a,o=(n=parseFloat(t)*Sp,r=kp,i=Math.pow(10,r+1),a=Math.floor(n*i),10*Math.round(a/10)/i);return 0===o?"0":"".concat(o).concat(xp)}))),Lp=e=>pn(e)?Op(e):e,zp=["Webkit"],Np={};function Ip(e,t){var n=Np[t];if(n)return n;var r=Tn(t);if("filter"!==r&&r in e)return Np[t]=r;r=En(r);for(var i=0;iBp(e,t,n)));else if(n=wp(n),t.startsWith("--"))e.setProperty(t,n);else{var r=Ip(e,t);Dp.test(n)?e.setProperty(Mn(r),n.replace(Dp,""),"important"):e[r]=n}}function Rp(e,t){var n=e.__listeners[t];n&&e.removeEventListener(t,n)}function Fp(e,t){if(e.__listeners[t])return!0}function qp(e,t,n){var[r,i]=Sr(t);-1===n?Rp(e,r):Fp(e,r)||e.addEventListener(r,e.__listeners[r]=jp(e.__id,n,i),i)}function jp(e,t,n){var r=t=>{var[r]=uc(t);r.type=function(e,t){return t&&(t.capture&&(e+="Capture"),t.once&&(e+="Once"),t.passive&&(e+="Passive")),"on".concat(En(Tn(e)))}(t.type,n),UniViewJSBridge.publishHandler(fc,[[$r,e,r]])};return t?hu(r,Vp(t)):r}function Vp(e){var t=[];return e&kr.prevent&&t.push("prevent"),e&kr.self&&t.push("self"),e&kr.stop&&t.push("stop"),t}function $p(e,t,n){var r=n=>{!function(e,t,n){var[r,i,a]=hp(t),[o,s]=a.split("."),l=dp(e,r);fp(l,i,o,s,[vp(n,e),nc(ic(l))])}(function(e){return!!e.addWxsEvent}(e)?e.$:e,t,uc(n)[0])};return n?hu(r,Vp(n)):r}function Hp(e,t){e._vod="none"===e.style.display?"":e.style.display,e.style.display=t?e._vod:"none"}class Wp extends yp{constructor(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];super(e,t.tagName,n,t),this.$props=Fa({}),this.$.__id=e,this.$.__listeners=Object.create(null),this.$propNames=a,this._update=this.update.bind(this),this.init(i),this.insert(n,r)}init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];un(e,"a")&&this.setAttrs(e.a),un(e,"s")&&this.setAttr("style",e.s),un(e,"e")&&this.addEvents(e.e),un(e,"w")&&this.addWxsEvents(e.w),super.init(e),t&&(jo(this.$props,(()=>{sp(this._update,1)}),{flush:"sync"}),this.update(!0))}setAttrs(e){this.setWxsProps(e),Object.keys(e).forEach((t=>{this.setAttr(t,e[t])}))}addEvents(e){Object.keys(e).forEach((t=>{this.addEvent(t,e[t])}))}addWxsEvent(e,t,n){!function(e,t,n,r){var[i,a]=Sr(t);-1===r?Rp(e,i):Fp(e,i)||e.addEventListener(i,e.__listeners[i]=$p(e,n,r),a)}(this.$,e,t,n)}addEvent(e,t){qp(this.$,e,t)}removeEvent(e){qp(this.$,e,-1)}setAttr(e,t){e===Cr?bp(this.$,t):e===Tr?Pp(this.$,t):e===Ar?Hp(this.$,t):e===Mr?this.$.__ownerId=t:e===Er?sp((()=>gp(this,t)),3):"innerHTML"===e?this.$.innerHTML=t:"textContent"===e?this.setText(t):this.setAttribute(e,t),this.updateView()}removeAttr(e){e===Cr?bp(this.$,""):e===Tr?Pp(this.$,""):this.removeAttribute(e),this.updateView()}setAttribute(e,t){t=mp(t,this.$),-1!==this.$propNames.indexOf(e)?this.$props[e]=t:_p(e)?this.$.style.setProperty(e,wp(t)):this.wxsPropsInvoke(e,t)||this.$.setAttribute(e,t)}removeAttribute(e){-1!==this.$propNames.indexOf(e)?delete this.$props[e]:_p(e)?this.$.style.removeProperty(e):this.$.removeAttribute(e)}update(){}}function Up(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>"".concat(uni.upx2px(parseFloat(t)),"px"))):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function Yp(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,r=t.actions,i=t.actions.length;setTimeout((()=>{a()}),0)}function a(){var t=r[n],o=t.option.transition,s=function(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],i=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,l={},u=[];return a.forEach((e=>{var a=e.type,o=[...e.args];if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((e=>parseFloat(e)+"deg")):a.startsWith("translate")&&(o=o.map(Up)),n.indexOf(a)>=0&&(o.length=1),u.push("".concat(a,"(").concat(o.join(","),")"));else if(r.concat(i).includes(o[0])){a=o[0];var s=o[1];l[a]=i.includes(a)?Up(s):s}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>"".concat(function(e){return e.replace(/[A-Z]/g,(e=>"-".concat(e.toLowerCase()))).replace("webkit","-webkit")}(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms"))).join(","),l.transformOrigin=l.webkitTransformOrigin=o.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),(n+=1){e.__reserved=!0;var{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Xp),Gp(e)},Gp=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Xo(e));function Kp(e){return e.__wwe=!0,e}function Jp(e,t){return(n,r,i)=>{e.value&&t(n,function(e,t,n,r){var i;return i=br(n),{type:r.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:r}}(n,r,e.value,i||{}))}}function Qp(e){var t,n,r=eo(!1),i=!1;function a(){requestAnimationFrame((()=>{clearTimeout(n),n=setTimeout((()=>{r.value=!1}),parseInt(e.hoverStayTime))}))}function o(n){n._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(n._hoverPropagationStopped=!0),i=!0,t=setTimeout((()=>{r.value=!0,i||a()}),parseInt(e.hoverStartTime)))}function s(){i=!1,r.value&&a()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:r,binding:{onTouchstartPassive:Kp((function(e){e.touches.length>1||o(e)})),onMousedown:Kp((function(e){i||(o(e),window.addEventListener("mouseup",l))})),onTouchend:Kp((function(){s()})),onMouseup:Kp((function(){i&&l()})),onTouchcancel:Kp((function(){i=!1,r.value=!1,clearTimeout(t)}))}}}function ev(e,t){return pn(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}var tv=Mu("uf");const nv=Zp({name:"Form",emits:["submit","reset"],setup(e,t){var n,r,{slots:i,emit:a}=t,o=eo(null);return n=Jp(o,a),r=[],Is(tv,{addField(e){r.push(e)},removeField(e){r.splice(r.indexOf(e),1)},submit(e){n("submit",e,{value:r.reduce(((e,t)=>{if(t.submit){var[n,r]=t.submit();n&&(e[n]=r)}return e}),Object.create(null))})},reset(e){r.forEach((e=>e.reset&&e.reset())),n("reset",e)}}),()=>gl("uni-form",{ref:o},[gl("span",null,[i.default&&i.default()])],512)}});var rv={for:{type:String,default:""}},iv=Mu("ul");const av=Zp({name:"Label",props:rv,setup(e,t){var{slots:n}=t,r=eo(null),i=Du(),a=function(){var e=[];return Is(iv,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),o=ql((()=>e.for||n.default&&n.default.length)),s=Kp((t=>{var n=t.target,r=/^uni-(checkbox|radio|switch)-/.test(n.className);r||(r=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),r||(e.for?UniViewJSBridge.emit("uni-label-click-"+i+"-"+e.for,t,!0):a.length&&a[0](t,!0))}));return()=>gl("uni-label",{ref:r,class:{"uni-label-pointer":o},onClick:s},[n.default&&n.default()],10,["onClick"])}});function ov(e,t){sv(e.id,t),jo((()=>e.id),((e,n)=>{lv(n,t,!0),sv(e,t,!0)})),ls((()=>{lv(e.id,t)}))}function sv(e,t,n){var r=Du();n&&!e||wn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}function lv(e,t,n){var r=Du();n&&!e||wn(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i]):0===i.indexOf("uni-")?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off("uni-".concat(i,"-").concat(r,"-").concat(e),t[i])}))}const uv=Zp({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,t){var{slots:n}=t,r=eo(null);hi();var i=Ps(tv,!1),{hovering:a,binding:o}=Qp(e),{t:s}=ui(),l=Kp(((t,n)=>{if(e.disabled)return t.stopImmediatePropagation();n&&r.value.click();var a=e.formType;if(a){if(!i)return;"submit"===a?i.submit(t):"reset"===a&&i.reset(t)}else{var o,l,u;"feedback"===e.openType&&(o=s("uni.button.feedback.title"),l=s("uni.button.feedback.send"),(u=plus.webview.create("https://service.dcloud.net.cn/uniapp/feedback.html","feedback",{titleNView:{titleText:o,autoBackButton:!0,backgroundColor:"#F7F7F7",titleColor:"#007aff",buttons:[{text:l,color:"#007aff",fontSize:"16px",fontWeight:"bold",onclick:function(){u.evalJS('typeof mui !== "undefined" && mui.trigger(document.getElementById("submit"),"tap")')}}]}})).show("slide-in-right"))}})),u=Ps(iv,!1);return u&&(u.addHandler(l),ss((()=>{u.removeHandler(l)}))),ov(e,{"label-click":l}),()=>{var t=e.hoverClass,i=ev(e,"disabled"),s=ev(e,"loading"),u=ev(e,"plain"),c=t&&"none"!==t;return gl("uni-button",xl({ref:r,onClick:l,id:e.id,class:c&&a.value?t:""},c&&o,i,s,u),[n.default&&n.default()],16,["onClick","id"])}}});const cv=Zp({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,t){var{emit:n}=t,r=eo(null),i=function(e){return()=>{var{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(r),a=function(e,t,n){var r=Fa({width:-1,height:-1});return jo((()=>on({},r)),(e=>t("resize",e))),()=>{var t=e.value;t&&(r.width=t.offsetWidth,r.height=t.offsetHeight,n())}}(r,n,i);return function(e,t,n,r){Ko(r),is((()=>{t.initial&&yo(n);var i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||r()}))}(r,e,a,i),()=>gl("uni-resize-sensor",{ref:r,onAnimationstartOnce:a},[gl("div",{onScroll:a},[gl("div",null,null)],40,["onScroll"]),gl("div",{onScroll:a},[gl("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});var dv=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function hv(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?dv:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}var fv=!1;var pv,vv=dr((()=>function(){if(!fv){fv=!0;var e=CanvasRenderingContext2D.prototype;e.drawImageByCanvas=function(e){return function(t,n,r,i,a,o,s,l,u,c){if(!this.__hidpi__)return e.apply(this,arguments);n*=dv,r*=dv,i*=dv,a*=dv,o*=dv,s*=dv,l=c?l*dv:l,u=c?u*dv:u,e.call(this,t,n,r,i,a,o,s,l,u)}}(e.drawImage),1!==dv&&(function(e,t){for(var n in e)un(e,n)&&t(e[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(t,n){e[n]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map((function(e){return e*dv}));else if(Array.isArray(t))for(var r=0;r{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}function yv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return pv||(pv=document.createElement("canvas")),pv.width=e,pv.height=t,pv}const bv=Zp({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,t){var{emit:n,slots:r}=t;vv();var i=eo(null),a=eo(null),o=eo(null),s=eo(!1),l=function(e){return(t,n)=>{e(t,cc(n))}}(n),{$attrs:u,$excludeAttrs:c,$listeners:d}=jg({excludeListeners:!0}),{_listeners:h}=function(e,t,n){var r=ql((()=>{var r=["onTouchstart","onTouchmove","onTouchend"],i=t.value,a=on({},(()=>{var e={};for(var t in i)if(un(i,t)){var n=i[t];e[t]=n}return e})());return r.forEach((t=>{var r=[];a[t]&&r.push(Kp((e=>{var r=e.currentTarget.getBoundingClientRect();_v(r,e.touches),_v(r,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&r.push(Cu),a[t]=r})),a}));return{_listeners:r}}(e,d,l),{_handleSubscribe:f,_resize:p}=function(e,t,n){var r=[],i={},a=ql((()=>e.hidpi?dv:1));function o(n){var r=t.value;if(!n||r.width!==Math.floor(n.width*a.value)||r.height!==Math.floor(n.height*a.value))if(r.width>0&&r.height>0){var i=r.getContext("2d"),o=i.getImageData(0,0,r.width,r.height);hv(r,e.hidpi),i.putImageData(o,0,0)}else hv(r,e.hidpi)}function s(e,a){var{actions:o,reserve:s}=e;if(o)if(n.value)r.push([o,s]);else{var c=t.value,d=c.getContext("2d");s||(d.fillStyle="#000000",d.strokeStyle="#000000",d.shadowColor="#000000",d.shadowBlur=0,d.shadowOffsetX=0,d.shadowOffsetY=0,d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,c.width,c.height)),l(o);for(var h=function(e){var t=o[e],n=t.method,r=t.data,s=r[0];if(/^set/.test(n)&&"setTransform"!==n){var l,c=n[3].toLowerCase()+n.slice(4);if("fillStyle"===c||"strokeStyle"===c){if("normal"===s)l=mv(r[1]);else if("linear"===s){var h=d.createLinearGradient(...r[1]);r[2].forEach((function(e){var t=e[0],n=mv(e[1]);h.addColorStop(t,n)})),l=h}else if("radial"===s){var f=r[1],p=f[0],v=f[1],g=f[2],m=d.createRadialGradient(p,v,0,p,v,g);r[2].forEach((function(e){var t=e[0],n=mv(e[1]);m.addColorStop(t,n)})),l=m}else if("pattern"===s){return u(r[1],o.slice(e+1),a,(function(e){e&&(d[c]=d.createPattern(e,r[2]))}))?"continue":"break"}d[c]=l}else if("globalAlpha"===c)d[c]=Number(s)/255;else if("shadow"===c){var _=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach((function(e,t){d[_[t]]="shadowColor"===_[t]?mv(e):e}))}else if("fontSize"===c){var y=d.__font__||d.font;d.__font__=d.font=y.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===c?(d.setLineDash(s),d.lineDashOffset=r[1]||0):"textBaseline"===c?("normal"===s&&(r[0]="alphabetic"),d[c]=s):"font"===c?d.__font__=d.font=s:d[c]=s}else if("fillPath"===n||"strokePath"===n)n=n.replace(/Path/,""),d.beginPath(),r.forEach((function(e){d[e.method].apply(d,e.data)})),d[n]();else if("fillText"===n)d.fillText.apply(d,r);else if("drawImage"===n){if("break"===function(){var t=[...r],n=t[0],s=t.slice(1);if(i=i||{},!u(n,o.slice(e+1),a,(function(e){e&&d.drawImage.apply(d,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))})))return"break"}())return"break"}else"clip"===n?(r.forEach((function(e){d[e.method].apply(d,e.data)})),d.clip()):d[n].apply(d,r)},f=0;f{e.src=t})).catch((()=>{e.src=r}))}"drawImage"===t?(r=gv(r=n[0]),n[0]=r):"setFillStyle"===t&&"pattern"===n[0]&&(r=gv(r=n[1]),n[1]=r),r&&!i[r]&&a()}))}function u(e,t,a,o){var l=i[e];return l.ready?(o(l),!0):(r.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,o(l),n.value=!1;var e=r.slice(0);r=[];for(var t=e.shift();t;)s({actions:t[0],reserve:t[1]},a),t=e.shift()},!1)}function c(e,n){var r,{x:i=0,y:o=0,width:s,height:l,destWidth:u,destHeight:c,hidpi:d=!0,dataType:h,quality:f=1,type:p="png"}=e,v=t.value,g=v.offsetWidth-i;s=s?Math.min(s,g):g;var m=v.offsetHeight-o;l=l?Math.min(l,m):m,d?(u=s,c=l):u||c?u?c||(c=Math.round(l/s*u)):(c||(c=Math.round(l*a.value)),u=Math.round(s/l*c)):(u=Math.round(s*a.value),c=Math.round(l*a.value));var _,y=yv(u,c),b=y.getContext("2d");"jpeg"!==p&&"jpg"!==p||(p="jpeg",b.fillStyle="#fff",b.fillRect(0,0,u,c)),b.__hidpi__=!0,b.drawImageByCanvas(v,i,o,s,l,0,0,u,c,!1);try{var w;if("base64"===h)r=y.toDataURL("image/".concat(p),f);else{var x=b.getImageData(0,0,u,c);r=Nf.deflateRaw(x.data,{to:"string"}),w=!0}_={data:r,compressed:w,width:u,height:c}}catch(S){_={errMsg:"canvasGetImageData:fail ".concat(S)}}if(y.height=y.width=0,b.__hidpi__=!1,!n)return _;n(_)}function d(e,n){var{data:r,x:i,y:a,width:o,height:s,compressed:l}=e;try{l&&(r=Nf.inflateRaw(r)),s||(s=Math.round(r.length/4/o));var u=yv(o,s);u.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(r),o,s),0,0),t.value.getContext("2d").drawImage(u,i,a,o,s),u.height=u.width=0}catch(c){return void n({errMsg:"canvasPutImageData:fail"})}n({errMsg:"canvasPutImageData:ok"})}function h(e,t){var{x:n=0,y:r=0,width:i,height:a,destWidth:o,destHeight:s,fileType:l,quality:u,dirname:d}=e,h=c({x:n,y:r,width:i,height:a,destWidth:o,destHeight:s,hidpi:!1,dataType:"base64",type:l,quality:u});h.errMsg?t({errMsg:h.errMsg.replace("canvasPutImageData","toTempFilePath")}):function(e,t,n){var r="".concat(Date.now()).concat(xc++),i=e.split(","),a=i[0],o=i[1],s=(a.match(/data:image\/(\S+?);/)||["","png"])[1].replace("jpeg","jpg"),l="".concat(r,".").concat(s),u="".concat(t,"/").concat(l),c=t.indexOf("/"),d=t.substring(0,c),h=t.substring(c+1);plus.io.resolveLocalFileSystemURL(d,(function(e){e.getDirectory(h,{create:!0,exclusive:!1},(function(e){e.getFile(l,{create:!0,exclusive:!1},(function(e){e.createWriter((function(e){e.onwrite=function(){n(null,u)},e.onerror=n,e.seek(0),e.writeAsBinary(o)}),n)}),n)}),n)}),n)}(h.data,d,((e,n)=>{var r="toTempFilePath:".concat(e?"fail":"ok");e&&(r+=" ".concat(e.message)),t({errMsg:r,tempFilePath:n})}))}var f={actionsChanged:s,getImageData:c,putImageData:d,toTempFilePath:h};function p(e,t,n){var r=f[e];0!==e.indexOf("_")&&fn(r)&&r(t,n)}return on(f,{_resize:o,_handleSubscribe:p})}(e,a,s);return o_(f,l_(e.canvasId)),is((()=>{p()})),()=>{var{canvasId:t,disableScroll:n}=e;return gl("uni-canvas",xl({ref:i,"canvas-id":t,"disable-scroll":n},u.value,c.value,h.value),[gl("canvas",{ref:a,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),gl("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[r.default&&r.default()]),gl(cv,{ref:o,onResize:p},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});var wv=Mu("ucg");const xv=Zp({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,t){var{emit:n,slots:r}=t,i=eo(null);return function(e,t){var n=[],r=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);Is(wv,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:r()})}});var i=Ps(tv,!1);i&&i.addField({submit:()=>{var t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}})}(e,Jp(i,n)),()=>gl("uni-checkbox-group",{ref:i},[r.default&&r.default()],512)}});const Sv=Zp({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,t){var{slots:n}=t,r=eo(null),i=eo(e.checked),a=ql((()=>"true"===i.value||!0===i.value)),o=eo(e.value);var s=ql((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};var n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(a.value)));jo([()=>e.checked,()=>e.value],(e=>{var[t,n]=e;i.value=t,o.value=n}));var{uniCheckGroup:l,uniLabel:u}=function(e,t,n){var r=ql((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},a=Ps(wv,!1);a&&a.addField(r);var o=Ps(tv,!1);o&&o.addField(i);var s=Ps(iv,!1);return ss((()=>{a&&a.removeField(r),o&&o.removeField(i)})),{uniCheckGroup:a,uniForm:o,uniLabel:s}}(i,o,(()=>{i.value=!1})),c=t=>{e.disabled||(i.value=!i.value,l&&l.checkboxChange(t),t.stopPropagation())};return u&&(u.addHandler(c),ss((()=>{u.removeHandler(c)}))),ov(e,{"label-click":c}),()=>{var t,a=ev(e,"disabled");return t=i.value,gl("uni-checkbox",xl(a,{id:e.id,onClick:c,ref:r}),[gl("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[gl("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[t?Pu(Nu,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),n.default&&n.default()],4)],16,["id","onClick"])}}});var kv,Cv,Tv,Av,Mv,Ev;function Ov(){}function Lv(e,t,n){wr((()=>{var r="adjustResize",i="adjustPan",a=plus.webview.currentWebview(),o=Ev||a.getStyle()||{},s={mode:n||o.softinputMode===r?r:e.adjustPosition?i:"nothing",position:{top:0,height:0}};if(s.mode===i){var l=t.getBoundingClientRect();s.position.top=l.top,s.position.height=l.height+(Number(e.cursorSpacing)||0)}a.setSoftinputTemporary(s)}))}wr((()=>{Cv="Android"===plus.os.name,Tv=plus.os.version||""})),document.addEventListener("keyboardchange",(function(e){Av=e.height,Mv&&Mv()}),!1);var zv={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},Nv=["keyboardheightchange"];function Iv(e,t,n){var r={};function i(t){var i,a=ql((()=>0===String(navigator.vendor).indexOf("Apple"))),o=()=>{n("keyboardheightchange",{},{height:Av,duration:.25}),i&&0===Av&&Lv(e,t),e.autoBlur&&i&&0===Av&&(Cv||parseInt(Tv)>=13)&&document.activeElement.blur()};t.addEventListener("focus",(()=>{i=!0,clearTimeout(kv),document.addEventListener("click",Ov,!1),Mv=o,Av&&n("keyboardheightchange",{},{height:Av,duration:0}),function(e,t){"auto"!==e.showConfirmBar?wr((()=>{var n=plus.webview.currentWebview(),{softinputNavBar:r}=n.getStyle()||{};"none"!==r!==e.showConfirmBar?(t.softinputNavBar=r||"auto",n.setStyle({softinputNavBar:e.showConfirmBar?"auto":"none"})):delete t.softinputNavBar})):delete t.softinputNavBar}(e,r),Lv(e,t)})),Cv&&t.addEventListener("click",(()=>{e.disabled||e.readOnly||!i||0!==Av||Lv(e,t)})),Cv||(parseInt(Tv)<12&&t.addEventListener("touchstart",(()=>{e.disabled||e.readOnly||i||Lv(e,t)})),parseFloat(Tv)>=14.6&&!Ev&&wr((()=>{var e=plus.webview.currentWebview();Ev=e.getStyle()||{}})));var s=()=>{document.removeEventListener("click",Ov,!1),Mv=null,Av&&n("keyboardheightchange",{},{height:0,duration:0}),function(e){var t=e.softinputNavBar;t&&wr((()=>{plus.webview.currentWebview().setStyle({softinputNavBar:t})}))}(r),Cv&&(kv=setTimeout((()=>{Lv(e,t,!0)}),300)),a.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};t.addEventListener("blur",(()=>{a.value&&t.blur(),i=!1,s()}))}jo((()=>t.value),(e=>e&&i(e)))}var Pv=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Dv=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Bv=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Rv=Wv("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Fv=Wv("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),qv=Wv("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),jv=Wv("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Vv=Wv("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),$v=Wv("script,style");function Hv(e,t){var n,r,i,a=[],o=e;for(a.last=function(){return this[this.length-1]};e;){if(r=!0,a.last()&&$v[a.last()])e=e.replace(new RegExp("([\\s\\S]*?)"+a.last()+"[^>]*>"),(function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""})),u("",a.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1):0==e.indexOf("")?(i=e.match(Dv))&&(e=e.substring(i[0].length),i[0].replace(Dv,u),r=!1):0==e.indexOf("<")&&(i=e.match(Pv))&&(e=e.substring(i[0].length),i[0].replace(Pv,l),r=!1),r){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==o)throw"Parse Error: "+e;o=e}function l(e,n,r,i){if(n=n.toLowerCase(),Fv[n])for(;a.last()&&qv[a.last()];)u("",a.last());if(jv[n]&&a.last()==n&&u("",n),(i=Rv[n]||!!i)||a.push(n),t.start){var o=[];r.replace(Bv,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Vv[t]?t:"";o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,i)}}function u(e,n){if(n)for(r=a.length-1;r>=0&&a[r]!=n;r--);else var r=0;if(r>=0){for(var i=a.length-1;i>=r;i--)t.end&&t.end(a[i]);a.length=r}}u()}function Wv(e){for(var t={},n=e.split(","),r=0;re())),delete Uv[t]}}r.push(n)}}function Xv(e){var t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function Zv(e){var t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function Gv(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",r)}}function Kv(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",r)}}function Jv(e){var t=e.import("parchment"),n=e.import("blots/container"),r=e.import("formats/list/item");class i extends n{static create(e){var t="ordered"===e?"OL":"UL",n=super.create(t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}static formats(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}constructor(e){super(e);e.addEventListener("click",(n=>{if(n.target.parentNode===e){var r=this.statics.formats(e),i=t.find(n.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}}))}format(e,t){this.children.length>0&&this.children.tail.format(e,t)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(e,t){if(e instanceof r)super.insertBefore(e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}optimize(e){super.optimize(e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}replace(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}super.replace(e)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[r],{"formats/list":i}}function Qv(e){var{Scope:t}=e.import("parchment");return{"formats/backgroundColor":new(e.import("formats/background").constructor)("backgroundColor","background-color",{scope:t.INLINE})}}function eg(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.BLOCK},i={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((e=>{i["formats/".concat(e)]=new n.Style(e,Mn(e),r)})),i}function tg(e){var{Scope:t,Attributor:n}=e.import("parchment"),r={scope:t.INLINE},i={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((e=>{i["formats/".concat(e)]=new n.Style(e,Mn(e),r)})),i}function ng(e){var{Scope:t,Attributor:n}=e.import("parchment"),r=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return r.forEach((e=>{var{name:t,scope:r}=e;i["formats/".concat(t)]=new n.Style(t,Mn(t),{scope:r})})),i}function rg(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=e=>e?bc(e):e,t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var r=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):r.call(this,e,t)}}function ig(e){var t=e.import("formats/link");t.sanitize=e=>{var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(r)>-1?e:t.SANITIZED_URL}}function ag(e,t,n){var r,i,a;function o(){return{html:a.root.innerHTML,text:a.getText(),delta:a.getContents()}}function s(e){var t="data-placeholder",n=a.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)}jo((()=>e.readOnly),(e=>{r&&(a.enable(!e),e||a.blur())})),jo((()=>e.placeholder),(e=>{r&&s(e)}));var l={};function u(e){var t=e?a.getFormat(e):{},r=Object.keys(t);(r.length!==Object.keys(l).length||r.find((e=>t[e]!==l[e])))&&(l=t,n("statuschange",{},t))}function c(){n("input",{},o())}function d(l){var d=window.Quill;!function(e){var t={divider:Xv,ins:Zv,align:Gv,direction:Kv,list:Jv,background:Qv,box:eg,font:tg,text:ng,image:rg,link:ig},n={};Object.values(t).forEach((t=>on(n,t(e)))),e.register(n,!0)}(d);var h={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};l.length&&(d.register("modules/ImageResize",window.ImageResize.default),h.modules={ImageResize:{modules:l}});var f=t.value,p=(a=new d(f,h)).root;["focus","blur","input"].forEach((t=>{p.addEventListener(t,(r=>{var i=o();if("input"===t){if("ios"===yc().platform){var a=(i.html.match(/([\s\S]*)<\/span>/)||[])[1];s(a&&a.replace(/\s/g,"")?"":e.placeholder)}r.stopPropagation()}else n(t,r,i)}))})),a.on("text-change",c),a.on("selection-change",u),a.on("scroll-optimize",(()=>{u(a.selection.getRange()[0])})),a.clipboard.addMatcher(Node.ELEMENT_NODE,((e,t)=>(i||t.ops&&(t.ops=t.ops.filter((e=>{var{insert:t}=e;return pn(t)})).map((e=>{var{insert:t}=e;return{insert:t}}))),t))),r=!0,n("ready",{},{})}o_(((e,t,n)=>{var s,l,d,{options:h,callbackId:f}=t;if(r){var p=window.Quill;switch(e){case"format":var{name:v="",value:g=!1}=h;l=a.getSelection(!0);var m=a.getFormat(l)[v]||!1;if(["bold","italic","underline","strike","ins"].includes(v))g=!m;else if("direction"===v){g=("rtl"!==g||!m)&&g;var _=a.getFormat(l).align;"rtl"!==g||_?g||"right"!==_||a.format("align",!1,"user"):a.format("align","right","user")}else if("indent"===v){g="+1"===g,"rtl"===a.getFormat(l).direction&&(g=!g),g=g?"+1":"-1"}else"list"===v&&(g="check"===g?"unchecked":g,m="checked"===m?"unchecked":m),g=m&&m!==(g||!1)||!m&&g?g:!m;a.format(v,g,"user");break;case"insertDivider":l=a.getSelection(!0),a.insertText(l.index,Jn,"user"),a.insertEmbed(l.index+1,"divider",!0,"user"),a.setSelection(l.index+2,0,"silent");break;case"insertImage":l=a.getSelection(!0);var{src:y="",alt:b="",width:w="",height:x="",extClass:S="",data:k={}}=h,C=bc(y);a.insertEmbed(l.index,"image",C,"silent");var T=!!/^(file|blob):/.test(C)&&C;a.formatText(l.index,1,"data-local",T,"silent"),a.formatText(l.index,1,"alt",b,"silent"),a.formatText(l.index,1,"width",w,"silent"),a.formatText(l.index,1,"height",x,"silent"),a.formatText(l.index,1,"class",S,"silent"),a.formatText(l.index,1,"data-custom",Object.keys(k).map((e=>"".concat(e,"=").concat(k[e]))).join("&"),"silent"),a.setSelection(l.index+1,0,"silent"),a.scrollIntoView(),setTimeout((()=>{c()}),1e3);break;case"insertText":l=a.getSelection(!0);var{text:A=""}=h;a.insertText(l.index,A,"user"),a.setSelection(l.index+A.length,0,"silent");break;case"setContents":var{delta:M,html:E}=h;"object"==typeof M?a.setContents(M,"silent"):pn(E)?a.setContents(function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],r="";Hv(e,{start:function(e,i,a){if(n.includes(e)){t=!1;var o=i.map((e=>{var{name:t,value:n}=e;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");r+=s}else t=!a},end:function(e){t||(r+="".concat(e,">"))},chars:function(e){t||(r+=e)}}),i=!0;var o=a.clipboard.convert(r);return i=!1,o}(E),"silent"):d="contents is missing";break;case"getContents":s=o();break;case"clear":a.setText("");break;case"removeFormat":l=a.getSelection(!0);var O=p.import("parchment");l.length?a.removeFormat(l.index,l.length,"user"):Object.keys(a.getFormat(l)).forEach((e=>{O.query(e,O.Scope.INLINE)&&a.format(e,!1)}));break;case"undo":a.history.undo();break;case"redo":a.history.redo();break;case"blur":a.blur();break;case"getSelectionText":s={text:""},(l=a.selection.savedRange)&&0!==l.length&&(s.text=a.getText(l.index,l.length));break;case"scrollIntoView":a.scrollIntoView()}u(l)}else d="not ready";f&&n({callbackId:f,data:on({},s,{errMsg:"".concat(e,":").concat(d?"fail "+d:"ok")})})}),l_()),is((()=>{var t=[];e.showImgSize&&t.push("DisplaySize"),e.showImgToolbar&&t.push("Toolbar"),e.showImgResize&&t.push("Resize");Yv(window.Quill,"./__uniappquill.js",(()=>{if(t.length){Yv(window.ImageResize,"./__uniappquillimageresize.js",(()=>{d(t)}))}else d(t)}))}))}const og=Zp({name:"Editor",props:on({},zv,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...Nv],setup(e,t){var{emit:n}=t,r=eo(null),i=Jp(r,n);return ag(e,r,i),Iv(e,r,i),()=>gl("uni-editor",{ref:r,id:e.id,class:"ql-container"},null,8,["id"])}});var sg="#10aeff",lg="#b2b2b2",ug={success:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",c:er},success_no_circle:{d:Nu,c:er},info:{d:"M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",c:sg},warn:{d:"M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",c:"#f76260"},waiting:{d:"M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",c:sg},cancel:{d:"M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",c:"#f43530"},download:{d:"M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",c:er},search:{d:"M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",c:lg},clear:{d:"M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",c:lg}};const cg=Zp({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){var t=eo(null),n=ql((()=>ug[e.type]));return()=>{var{value:r}=n;return gl("uni-icon",{ref:t},[r&&r.d&&Pu(r.d,e.color||r.c,Ou(e.size))],512)}}});var dg={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},hg={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},fg={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]};const pg=Zp({name:"Image",props:dg,setup(e,t){var{emit:n}=t,r=eo(null),i=function(e,t){var n=eo(""),r=ql((()=>{var e="auto",r="",i=fg[t.mode];return i?(i[0]&&(r=i[0]),i[1]&&(e=i[1])):(r="0% 0%",e="100% 100%"),"background-image:".concat(n.value?'url("'+n.value+'")':"none",";background-position:").concat(r,";background-size:").concat(e,";")})),i=Fa({rootEl:e,src:ql((()=>t.src?bc(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:r,imgSrc:n});return is((()=>{var t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0})),i}(r,e),a=Jp(r,n),{fixSize:o}=function(e,t,n){var r=()=>{var{mode:r}=t,i=hg[r];if(i){var{origWidth:a,origHeight:o}=n,s=a&&o?a/o:0;if(s){var l=e.value,u=l[i[0]];u&&(l.style[i[1]]=function(e){vg&&e>10&&(e=2*Math.round(e/2));return e}(i[2](u,s))+"px"),window.dispatchEvent(new CustomEvent("updateview"))}}},i=()=>{var{style:t}=e.value,{origStyle:{width:r,height:i}}=n;t.width=r,t.height=i};return jo((()=>t.mode),((e,t)=>{hg[t]&&i(),hg[e]&&r()})),{fixSize:r,resetSize:i}}(r,e,i);return function(e,t,n,r,i){var a,o,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.origWidth=t,e.origHeight=n,e.imgSrc=r},l=l=>{if(!l)return u(),void s();(a=a||new Image).onload=e=>{var{width:c,height:d}=a;s(c,d,l),yo((()=>{r()})),a.draggable=t.draggable,o&&o.remove(),o=a,n.value.appendChild(a),u(),i("load",e,{width:c,height:d})},a.onerror=t=>{s(),u(),i("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},a.src=l},u=()=>{a&&(a.onload=null,a.onerror=null,a=null)};jo((()=>e.src),(e=>l(e))),jo((()=>e.imgSrc),(e=>{!e&&o&&(o.remove(),o=null)})),is((()=>l(e.src))),ss((()=>u()))}(i,e,r,o,a),()=>gl("uni-image",{ref:r},[gl("div",{style:i.modeStyle},null,4),hg[e.mode]?gl(cv,{onResize:o},null,8,["onResize"]):gl("span",null,null)],512)}});var vg="Google Inc."===navigator.vendor;var gg=yr(!0),mg=[],_g=0,yg=!1,bg=e=>mg.forEach((t=>t.userAction=e));function wg(){var e=Fa({userAction:!1});return is((()=>{!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userAction:!1};yg||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!_g&&bg(!0),_g++,setTimeout((()=>{! --_g&&bg(!1)}),0)}),gg)})),yg=!0);mg.push(e)}(e)})),ss((()=>{var t,n;t=e,(n=mg.indexOf(t))>=0&&mg.splice(n,1)})),{state:e}}function xg(){var e=Fa({attrs:{}});return is((()=>{for(var t=El();t;){var n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Sg(e,t){var n=document.activeElement;if(!n)return t({});var r={};["input","textarea"].includes(n.tagName.toLowerCase())&&(r.start=n.selectionStart,r.end=n.selectionEnd),t(r)}var kg,Cg=200;function Tg(e,t,n){return"number"===t&&isNaN(Number(e))&&(e=""),null==e?"":String(e)}var Ag=["none","text","decimal","numeric","tel","search","email","url"],Mg=on({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Ag.indexOf(e)},cursorColor:{type:String,default:""}},zv),Eg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...Nv];function Og(e,t,n,r){var i=null;jo((()=>e.modelValue),i=Hr((n=>{t.value=Tg(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout})),jo((()=>e.value),i);var a=function(e,t){var n,r,i=0,a=function(){for(var a=arguments.length,o=new Array(a),s=0;s