@emqx/shared-ui-utils 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -3
- package/dist/index.js +3805 -4684
- package/dist/index.umd.cjs +35 -35
- package/dist/tools.d.ts +43 -0
- package/dist/useLocale.d.ts +1 -0
- package/package.json +1 -1
- package/dist/rule/ruleField.json.d.ts +0 -32
- package/dist/rule/ruleFunc.json.d.ts +0 -1219
- package/dist/rule/useRuleFunc.d.ts +0 -76
package/dist/index.umd.cjs
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
(function(Oe,qt){typeof exports=="object"&&typeof module<"u"?qt(exports):typeof define=="function"&&define.amd?define(["exports"],qt):(Oe=typeof globalThis<"u"?globalThis:Oe||self,qt(Oe["@emqx/shared-ui-utils"]={}))})(this,function(Oe){"use strict";const qt=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const r of Object.keys(e))qt(e[r],t.concat(r),n);else n[t.join(".")]=e;return n},Ka=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const r in e){let i=n,s="",a;for(;a=t.exec(r);)i=i[s]||(i[s]=a[2]?[]:{}),s=a[2]||a[1];i[s]=e[r]}}catch(r){console.error(r)}return n[""]||n},Ya=e=>Object.keys(e).length===0;var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}},cs={exports:{}},us={exports:{}};(function(e){(function(t){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",u=1e14,p=14,O=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,I=1e9;function H(L){var P,_,h,T=W.prototype={constructor:W,toString:null,valueOf:null},j=new W(1),q=20,K=4,oe=-7,pe=21,me=-1e7,ee=1e7,ce=!1,z=1,_e=0,re={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function W(c,d){var E,A,m,v,D,y,b,R,l=this;if(!(l instanceof W))return new W(c,d);if(d==null){if(c&&c._isBigNumber===!0){l.s=c.s,!c.c||c.e>ee?l.c=l.e=null:c.e<me?l.c=[l.e=0]:(l.e=c.e,l.c=c.c.slice());return}if((y=typeof c=="number")&&c*0==0){if(l.s=1/c<0?(c=-c,-1):1,c===~~c){for(v=0,D=c;D>=10;D/=10,v++);v>ee?l.c=l.e=null:(l.e=v,l.c=[c]);return}R=String(c)}else{if(!r.test(R=String(c)))return h(l,R,y);l.s=R.charCodeAt(0)==45?(R=R.slice(1),-1):1}(v=R.indexOf("."))>-1&&(R=R.replace(".","")),(D=R.search(/e/i))>0?(v<0&&(v=D),v+=+R.slice(D+1),R=R.substring(0,D)):v<0&&(v=R.length)}else{if(V(d,2,Z.length,"Base"),d==10&&X)return l=new W(c),te(l,q+l.e+1,K);if(R=String(c),y=typeof c=="number"){if(c*0!=0)return h(l,R,y,d);if(l.s=1/c<0?(R=R.slice(1),-1):1,W.DEBUG&&R.replace(/^0\.0*|\./,"").length>15)throw Error(o+c)}else l.s=R.charCodeAt(0)===45?(R=R.slice(1),-1):1;for(E=Z.slice(0,d),v=D=0,b=R.length;D<b;D++)if(E.indexOf(A=R.charAt(D))<0){if(A=="."){if(D>v){v=b;continue}}else if(!m&&(R==R.toUpperCase()&&(R=R.toLowerCase())||R==R.toLowerCase()&&(R=R.toUpperCase()))){m=!0,D=-1,v=0;continue}return h(l,String(c),y,d)}y=!1,R=_(R,d,10,l.s),(v=R.indexOf("."))>-1?R=R.replace(".",""):v=R.length}for(D=0;R.charCodeAt(D)===48;D++);for(b=R.length;R.charCodeAt(--b)===48;);if(R=R.slice(D,++b)){if(b-=D,y&&W.DEBUG&&b>15&&(c>O||c!==s(c)))throw Error(o+l.s*c);if((v=v-D-1)>ee)l.c=l.e=null;else if(v<me)l.c=[l.e=0];else{if(l.e=v,l.c=[],D=(v+1)%p,v<0&&(D+=p),D<b){for(D&&l.c.push(+R.slice(0,D)),b-=p;D<b;)l.c.push(+R.slice(D,D+=p));D=p-(R=R.slice(D)).length}else D-=b;for(;D--;R+="0");l.c.push(+R)}}else l.c=[l.e=0]}W.clone=H,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(c){var d,E;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(d="DECIMAL_PLACES")&&(E=c[d],V(E,0,I,d),q=E),c.hasOwnProperty(d="ROUNDING_MODE")&&(E=c[d],V(E,0,8,d),K=E),c.hasOwnProperty(d="EXPONENTIAL_AT")&&(E=c[d],E&&E.pop?(V(E[0],-I,0,d),V(E[1],0,I,d),oe=E[0],pe=E[1]):(V(E,-I,I,d),oe=-(pe=E<0?-E:E))),c.hasOwnProperty(d="RANGE"))if(E=c[d],E&&E.pop)V(E[0],-I,-1,d),V(E[1],1,I,d),me=E[0],ee=E[1];else if(V(E,-I,I,d),E)me=-(ee=E<0?-E:E);else throw Error(a+d+" cannot be zero: "+E);if(c.hasOwnProperty(d="CRYPTO"))if(E=c[d],E===!!E)if(E)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ce=E;else throw ce=!E,Error(a+"crypto unavailable");else ce=E;else throw Error(a+d+" not true or false: "+E);if(c.hasOwnProperty(d="MODULO_MODE")&&(E=c[d],V(E,0,9,d),z=E),c.hasOwnProperty(d="POW_PRECISION")&&(E=c[d],V(E,0,I,d),_e=E),c.hasOwnProperty(d="FORMAT"))if(E=c[d],typeof E=="object")re=E;else throw Error(a+d+" not an object: "+E);if(c.hasOwnProperty(d="ALPHABET"))if(E=c[d],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))X=E.slice(0,10)=="0123456789",Z=E;else throw Error(a+d+" invalid: "+E)}else throw Error(a+"Object expected: "+c);return{DECIMAL_PLACES:q,ROUNDING_MODE:K,EXPONENTIAL_AT:[oe,pe],RANGE:[me,ee],CRYPTO:ce,MODULO_MODE:z,POW_PRECISION:_e,FORMAT:re,ALPHABET:Z}},W.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!W.DEBUG)return!0;var d,E,A=c.c,m=c.e,v=c.s;e:if({}.toString.call(A)=="[object Array]"){if((v===1||v===-1)&&m>=-I&&m<=I&&m===s(m)){if(A[0]===0){if(m===0&&A.length===1)return!0;break e}if(d=(m+1)%p,d<1&&(d+=p),String(A[0]).length==d){for(d=0;d<A.length;d++)if(E=A[d],E<0||E>=u||E!==s(E))break e;if(E!==0)return!0}}}else if(A===null&&m===null&&(v===null||v===1||v===-1))return!0;throw Error(a+"Invalid BigNumber: "+c)},W.maximum=W.max=function(){return ye(arguments,-1)},W.minimum=W.min=function(){return ye(arguments,1)},W.random=function(){var c=9007199254740992,d=Math.random()*c&2097151?function(){return s(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var A,m,v,D,y,b=0,R=[],l=new W(j);if(E==null?E=q:V(E,0,I),D=i(E/p),ce)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(D*=2));b<D;)y=A[b]*131072+(A[b+1]>>>11),y>=9e15?(m=crypto.getRandomValues(new Uint32Array(2)),A[b]=m[0],A[b+1]=m[1]):(R.push(y%1e14),b+=2);b=D/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(D*=7);b<D;)y=(A[b]&31)*281474976710656+A[b+1]*1099511627776+A[b+2]*4294967296+A[b+3]*16777216+(A[b+4]<<16)+(A[b+5]<<8)+A[b+6],y>=9e15?crypto.randomBytes(7).copy(A,b):(R.push(y%1e14),b+=7);b=D/7}else throw ce=!1,Error(a+"crypto unavailable");if(!ce)for(;b<D;)y=d(),y<9e15&&(R[b++]=y%1e14);for(D=R[--b],E%=p,D&&E&&(y=g[p-E],R[b]=s(D/y)*y);R[b]===0;R.pop(),b--);if(b<0)R=[v=0];else{for(v=-1;R[0]===0;R.splice(0,1),v-=p);for(b=1,y=R[0];y>=10;y/=10,b++);b<p&&(v-=p-b)}return l.e=v,l.c=R,l}}(),W.sum=function(){for(var c=1,d=arguments,E=new W(d[0]);c<d.length;)E=E.plus(d[c++]);return E},_=function(){var c="0123456789";function d(E,A,m,v){for(var D,y=[0],b,R=0,l=E.length;R<l;){for(b=y.length;b--;y[b]*=A);for(y[0]+=v.indexOf(E.charAt(R++)),D=0;D<y.length;D++)y[D]>m-1&&(y[D+1]==null&&(y[D+1]=0),y[D+1]+=y[D]/m|0,y[D]%=m)}return y.reverse()}return function(E,A,m,v,D){var y,b,R,l,f,C,B,Y,J=E.indexOf("."),Q=q,w=K;for(J>=0&&(l=_e,_e=0,E=E.replace(".",""),Y=new W(A),C=Y.pow(E.length-J),_e=l,Y.c=d(F(x(C.c),C.e,"0"),10,m,c),Y.e=Y.c.length),B=d(E,A,m,D?(y=Z,c):(y=c,Z)),R=l=B.length;B[--l]==0;B.pop());if(!B[0])return y.charAt(0);if(J<0?--R:(C.c=B,C.e=R,C.s=v,C=P(C,Y,Q,w,m),B=C.c,f=C.r,R=C.e),b=R+Q+1,J=B[b],l=m/2,f=f||b<0||B[b+1]!=null,f=w<4?(J!=null||f)&&(w==0||w==(C.s<0?3:2)):J>l||J==l&&(w==4||f||w==6&&B[b-1]&1||w==(C.s<0?8:7)),b<1||!B[0])E=f?F(y.charAt(1),-Q,y.charAt(0)):y.charAt(0);else{if(B.length=b,f)for(--m;++B[--b]>m;)B[b]=0,b||(++R,B=[1].concat(B));for(l=B.length;!B[--l];);for(J=0,E="";J<=l;E+=y.charAt(B[J++]));E=F(E,R,y.charAt(0))}return E}}(),P=function(){function c(A,m,v){var D,y,b,R,l=0,f=A.length,C=m%N,B=m/N|0;for(A=A.slice();f--;)b=A[f]%N,R=A[f]/N|0,D=B*b+R*C,y=C*b+D%N*N+l,l=(y/v|0)+(D/N|0)+B*R,A[f]=y%v;return l&&(A=[l].concat(A)),A}function d(A,m,v,D){var y,b;if(v!=D)b=v>D?1:-1;else for(y=b=0;y<v;y++)if(A[y]!=m[y]){b=A[y]>m[y]?1:-1;break}return b}function E(A,m,v,D){for(var y=0;v--;)A[v]-=y,y=A[v]<m[v]?1:0,A[v]=y*D+A[v]-m[v];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,m,v,D,y){var b,R,l,f,C,B,Y,J,Q,w,U,ne,Ee,Fe,Me,Le,We,tt=A.s==m.s?1:-1,Ue=A.c,we=m.c;if(!Ue||!Ue[0]||!we||!we[0])return new W(!A.s||!m.s||(Ue?we&&Ue[0]==we[0]:!we)?NaN:Ue&&Ue[0]==0||!we?tt*0:tt/0);for(J=new W(tt),Q=J.c=[],R=A.e-m.e,tt=v+R+1,y||(y=u,R=M(A.e/p)-M(m.e/p),tt=tt/p|0),l=0;we[l]==(Ue[l]||0);l++);if(we[l]>(Ue[l]||0)&&R--,tt<0)Q.push(1),f=!0;else{for(Fe=Ue.length,Le=we.length,l=0,tt+=2,C=s(y/(we[0]+1)),C>1&&(we=c(we,C,y),Ue=c(Ue,C,y),Le=we.length,Fe=Ue.length),Ee=Le,w=Ue.slice(0,Le),U=w.length;U<Le;w[U++]=0);We=we.slice(),We=[0].concat(We),Me=we[0],we[1]>=y/2&&Me++;do{if(C=0,b=d(we,w,Le,U),b<0){if(ne=w[0],Le!=U&&(ne=ne*y+(w[1]||0)),C=s(ne/Me),C>1)for(C>=y&&(C=y-1),B=c(we,C,y),Y=B.length,U=w.length;d(B,w,Y,U)==1;)C--,E(B,Le<Y?We:we,Y,y),Y=B.length,b=1;else C==0&&(b=C=1),B=we.slice(),Y=B.length;if(Y<U&&(B=[0].concat(B)),E(w,B,U,y),U=w.length,b==-1)for(;d(we,w,Le,U)<1;)C++,E(w,Le<U?We:we,U,y),U=w.length}else b===0&&(C++,w=[0]);Q[l++]=C,w[0]?w[U++]=Ue[Ee]||0:(w=[Ue[Ee]],U=1)}while((Ee++<Fe||w[0]!=null)&&tt--);f=w[0]!=null,Q[0]||Q.splice(0,1)}if(y==u){for(l=1,tt=Q[0];tt>=10;tt/=10,l++);te(J,v+(J.e=l+R*p-1)+1,D,f)}else J.e=R,J.r=+f;return J}}();function ge(c,d,E,A){var m,v,D,y,b;if(E==null?E=K:V(E,0,8),!c.c)return c.toString();if(m=c.c[0],D=c.e,d==null)b=x(c.c),b=A==1||A==2&&(D<=oe||D>=pe)?k(b,D):F(b,D,"0");else if(c=te(new W(c),d,E),v=c.e,b=x(c.c),y=b.length,A==1||A==2&&(d<=v||v<=oe)){for(;y<d;b+="0",y++);b=k(b,v)}else if(d-=D,b=F(b,v,"0"),v+1>y){if(--d>0)for(b+=".";d--;b+="0");}else if(d+=v-y,d>0)for(v+1==y&&(b+=".");d--;b+="0");return c.s<0&&m?"-"+b:b}function ye(c,d){for(var E,A,m=1,v=new W(c[0]);m<c.length;m++)A=new W(c[m]),(!A.s||(E=$(v,A))===d||E===0&&v.s===d)&&(v=A);return v}function De(c,d,E){for(var A=1,m=d.length;!d[--m];d.pop());for(m=d[0];m>=10;m/=10,A++);return(E=A+E*p-1)>ee?c.c=c.e=null:E<me?c.c=[c.e=0]:(c.e=E,c.c=d),c}h=function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,E=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,m=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(v,D,y,b){var R,l=y?D:D.replace(m,"");if(A.test(l))v.s=isNaN(l)?null:l<0?-1:1;else{if(!y&&(l=l.replace(c,function(f,C,B){return R=(B=B.toLowerCase())=="x"?16:B=="b"?2:8,!b||b==R?C:f}),b&&(R=b,l=l.replace(d,"$1").replace(E,"0.$1")),D!=l))return new W(l,R);if(W.DEBUG)throw Error(a+"Not a"+(b?" base "+b:"")+" number: "+D);v.s=null}v.c=v.e=null}}();function te(c,d,E,A){var m,v,D,y,b,R,l,f=c.c,C=g;if(f){e:{for(m=1,y=f[0];y>=10;y/=10,m++);if(v=d-m,v<0)v+=p,D=d,b=f[R=0],l=s(b/C[m-D-1]%10);else if(R=i((v+1)/p),R>=f.length)if(A){for(;f.length<=R;f.push(0));b=l=0,m=1,v%=p,D=v-p+1}else break e;else{for(b=y=f[R],m=1;y>=10;y/=10,m++);v%=p,D=v-p+m,l=D<0?0:s(b/C[m-D-1]%10)}if(A=A||d<0||f[R+1]!=null||(D<0?b:b%C[m-D-1]),A=E<4?(l||A)&&(E==0||E==(c.s<0?3:2)):l>5||l==5&&(E==4||A||E==6&&(v>0?D>0?b/C[m-D]:0:f[R-1])%10&1||E==(c.s<0?8:7)),d<1||!f[0])return f.length=0,A?(d-=c.e+1,f[0]=C[(p-d%p)%p],c.e=-d||0):f[0]=c.e=0,c;if(v==0?(f.length=R,y=1,R--):(f.length=R+1,y=C[p-v],f[R]=D>0?s(b/C[m-D]%C[D])*y:0),A)for(;;)if(R==0){for(v=1,D=f[0];D>=10;D/=10,v++);for(D=f[0]+=y,y=1;D>=10;D/=10,y++);v!=y&&(c.e++,f[0]==u&&(f[0]=1));break}else{if(f[R]+=y,f[R]!=u)break;f[R--]=0,y=1}for(v=f.length;f[--v]===0;f.pop());}c.e>ee?c.c=c.e=null:c.e<me&&(c.c=[c.e=0])}return c}function ie(c){var d,E=c.e;return E===null?c.toString():(d=x(c.c),d=E<=oe||E>=pe?k(d,E):F(d,E,"0"),c.s<0?"-"+d:d)}return T.absoluteValue=T.abs=function(){var c=new W(this);return c.s<0&&(c.s=1),c},T.comparedTo=function(c,d){return $(this,new W(c,d))},T.decimalPlaces=T.dp=function(c,d){var E,A,m,v=this;if(c!=null)return V(c,0,I),d==null?d=K:V(d,0,8),te(new W(v),c+v.e+1,d);if(!(E=v.c))return null;if(A=((m=E.length-1)-M(this.e/p))*p,m=E[m])for(;m%10==0;m/=10,A--);return A<0&&(A=0),A},T.dividedBy=T.div=function(c,d){return P(this,new W(c,d),q,K)},T.dividedToIntegerBy=T.idiv=function(c,d){return P(this,new W(c,d),0,1)},T.exponentiatedBy=T.pow=function(c,d){var E,A,m,v,D,y,b,R,l,f=this;if(c=new W(c),c.c&&!c.isInteger())throw Error(a+"Exponent not an integer: "+ie(c));if(d!=null&&(d=new W(d)),y=c.e>14,!f.c||!f.c[0]||f.c[0]==1&&!f.e&&f.c.length==1||!c.c||!c.c[0])return l=new W(Math.pow(+ie(f),y?c.s*(2-S(c)):+ie(c))),d?l.mod(d):l;if(b=c.s<0,d){if(d.c?!d.c[0]:!d.s)return new W(NaN);A=!b&&f.isInteger()&&d.isInteger(),A&&(f=f.mod(d))}else{if(c.e>9&&(f.e>0||f.e<-1||(f.e==0?f.c[0]>1||y&&f.c[1]>=24e7:f.c[0]<8e13||y&&f.c[0]<=9999975e7)))return v=f.s<0&&S(c)?-0:0,f.e>-1&&(v=1/v),new W(b?1/v:v);_e&&(v=i(_e/p+2))}for(y?(E=new W(.5),b&&(c.s=1),R=S(c)):(m=Math.abs(+ie(c)),R=m%2),l=new W(j);;){if(R){if(l=l.times(f),!l.c)break;v?l.c.length>v&&(l.c.length=v):A&&(l=l.mod(d))}if(m){if(m=s(m/2),m===0)break;R=m%2}else if(c=c.times(E),te(c,c.e+1,1),c.e>14)R=S(c);else{if(m=+ie(c),m===0)break;R=m%2}f=f.times(f),v?f.c&&f.c.length>v&&(f.c.length=v):A&&(f=f.mod(d))}return A?l:(b&&(l=j.div(l)),d?l.mod(d):v?te(l,_e,K,D):l)},T.integerValue=function(c){var d=new W(this);return c==null?c=K:V(c,0,8),te(d,d.e+1,c)},T.isEqualTo=T.eq=function(c,d){return $(this,new W(c,d))===0},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(c,d){return $(this,new W(c,d))>0},T.isGreaterThanOrEqualTo=T.gte=function(c,d){return(d=$(this,new W(c,d)))===1||d===0},T.isInteger=function(){return!!this.c&&M(this.e/p)>this.c.length-2},T.isLessThan=T.lt=function(c,d){return $(this,new W(c,d))<0},T.isLessThanOrEqualTo=T.lte=function(c,d){return(d=$(this,new W(c,d)))===-1||d===0},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&this.c[0]==0},T.minus=function(c,d){var E,A,m,v,D=this,y=D.s;if(c=new W(c,d),d=c.s,!y||!d)return new W(NaN);if(y!=d)return c.s=-d,D.plus(c);var b=D.e/p,R=c.e/p,l=D.c,f=c.c;if(!b||!R){if(!l||!f)return l?(c.s=-d,c):new W(f?D:NaN);if(!l[0]||!f[0])return f[0]?(c.s=-d,c):new W(l[0]?D:K==3?-0:0)}if(b=M(b),R=M(R),l=l.slice(),y=b-R){for((v=y<0)?(y=-y,m=l):(R=b,m=f),m.reverse(),d=y;d--;m.push(0));m.reverse()}else for(A=(v=(y=l.length)<(d=f.length))?y:d,y=d=0;d<A;d++)if(l[d]!=f[d]){v=l[d]<f[d];break}if(v&&(m=l,l=f,f=m,c.s=-c.s),d=(A=f.length)-(E=l.length),d>0)for(;d--;l[E++]=0);for(d=u-1;A>y;){if(l[--A]<f[A]){for(E=A;E&&!l[--E];l[E]=d);--l[E],l[A]+=u}l[A]-=f[A]}for(;l[0]==0;l.splice(0,1),--R);return l[0]?De(c,l,R):(c.s=K==3?-1:1,c.c=[c.e=0],c)},T.modulo=T.mod=function(c,d){var E,A,m=this;return c=new W(c,d),!m.c||!c.s||c.c&&!c.c[0]?new W(NaN):!c.c||m.c&&!m.c[0]?new W(m):(z==9?(A=c.s,c.s=1,E=P(m,c,0,3),c.s=A,E.s*=A):E=P(m,c,0,z),c=m.minus(E.times(c)),!c.c[0]&&z==1&&(c.s=m.s),c)},T.multipliedBy=T.times=function(c,d){var E,A,m,v,D,y,b,R,l,f,C,B,Y,J,Q,w=this,U=w.c,ne=(c=new W(c,d)).c;if(!U||!ne||!U[0]||!ne[0])return!w.s||!c.s||U&&!U[0]&&!ne||ne&&!ne[0]&&!U?c.c=c.e=c.s=null:(c.s*=w.s,!U||!ne?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(A=M(w.e/p)+M(c.e/p),c.s*=w.s,b=U.length,f=ne.length,b<f&&(Y=U,U=ne,ne=Y,m=b,b=f,f=m),m=b+f,Y=[];m--;Y.push(0));for(J=u,Q=N,m=f;--m>=0;){for(E=0,C=ne[m]%Q,B=ne[m]/Q|0,D=b,v=m+D;v>m;)R=U[--D]%Q,l=U[D]/Q|0,y=B*R+l*C,R=C*R+y%Q*Q+Y[v]+E,E=(R/J|0)+(y/Q|0)+B*l,Y[v--]=R%J;Y[v]=E}return E?++A:Y.splice(0,1),De(c,Y,A)},T.negated=function(){var c=new W(this);return c.s=-c.s||null,c},T.plus=function(c,d){var E,A=this,m=A.s;if(c=new W(c,d),d=c.s,!m||!d)return new W(NaN);if(m!=d)return c.s=-d,A.minus(c);var v=A.e/p,D=c.e/p,y=A.c,b=c.c;if(!v||!D){if(!y||!b)return new W(m/0);if(!y[0]||!b[0])return b[0]?c:new W(y[0]?A:m*0)}if(v=M(v),D=M(D),y=y.slice(),m=v-D){for(m>0?(D=v,E=b):(m=-m,E=y),E.reverse();m--;E.push(0));E.reverse()}for(m=y.length,d=b.length,m-d<0&&(E=b,b=y,y=E,d=m),m=0;d;)m=(y[--d]=y[d]+b[d]+m)/u|0,y[d]=u===y[d]?0:y[d]%u;return m&&(y=[m].concat(y),++D),De(c,y,D)},T.precision=T.sd=function(c,d){var E,A,m,v=this;if(c!=null&&c!==!!c)return V(c,1,I),d==null?d=K:V(d,0,8),te(new W(v),c,d);if(!(E=v.c))return null;if(m=E.length-1,A=m*p+1,m=E[m]){for(;m%10==0;m/=10,A--);for(m=E[0];m>=10;m/=10,A++);}return c&&v.e+1>A&&(A=v.e+1),A},T.shiftedBy=function(c){return V(c,-O,O),this.times("1e"+c)},T.squareRoot=T.sqrt=function(){var c,d,E,A,m,v=this,D=v.c,y=v.s,b=v.e,R=q+4,l=new W("0.5");if(y!==1||!D||!D[0])return new W(!y||y<0&&(!D||D[0])?NaN:D?v:1/0);if(y=Math.sqrt(+ie(v)),y==0||y==1/0?(d=x(D),(d.length+b)%2==0&&(d+="0"),y=Math.sqrt(+d),b=M((b+1)/2)-(b<0||b%2),y==1/0?d="5e"+b:(d=y.toExponential(),d=d.slice(0,d.indexOf("e")+1)+b),E=new W(d)):E=new W(y+""),E.c[0]){for(b=E.e,y=b+R,y<3&&(y=0);;)if(m=E,E=l.times(m.plus(P(v,m,R,1))),x(m.c).slice(0,y)===(d=x(E.c)).slice(0,y))if(E.e<b&&--y,d=d.slice(y-3,y+1),d=="9999"||!A&&d=="4999"){if(!A&&(te(m,m.e+q+2,0),m.times(m).eq(v))){E=m;break}R+=4,y+=4,A=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(te(E,E.e+q+2,1),c=!E.times(E).eq(v));break}}return te(E,E.e+q+1,K,c)},T.toExponential=function(c,d){return c!=null&&(V(c,0,I),c++),ge(this,c,d,1)},T.toFixed=function(c,d){return c!=null&&(V(c,0,I),c=c+this.e+1),ge(this,c,d)},T.toFormat=function(c,d,E){var A,m=this;if(E==null)c!=null&&d&&typeof d=="object"?(E=d,d=null):c&&typeof c=="object"?(E=c,c=d=null):E=re;else if(typeof E!="object")throw Error(a+"Argument not an object: "+E);if(A=m.toFixed(c,d),m.c){var v,D=A.split("."),y=+E.groupSize,b=+E.secondaryGroupSize,R=E.groupSeparator||"",l=D[0],f=D[1],C=m.s<0,B=C?l.slice(1):l,Y=B.length;if(b&&(v=y,y=b,b=v,Y-=v),y>0&&Y>0){for(v=Y%y||y,l=B.substr(0,v);v<Y;v+=y)l+=R+B.substr(v,y);b>0&&(l+=R+B.slice(v)),C&&(l="-"+l)}A=f?l+(E.decimalSeparator||"")+((b=+E.fractionGroupSize)?f.replace(new RegExp("\\d{"+b+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):f):l}return(E.prefix||"")+A+(E.suffix||"")},T.toFraction=function(c){var d,E,A,m,v,D,y,b,R,l,f,C,B=this,Y=B.c;if(c!=null&&(y=new W(c),!y.isInteger()&&(y.c||y.s!==1)||y.lt(j)))throw Error(a+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+ie(y));if(!Y)return new W(B);for(d=new W(j),R=E=new W(j),A=b=new W(j),C=x(Y),v=d.e=C.length-B.e-1,d.c[0]=g[(D=v%p)<0?p+D:D],c=!c||y.comparedTo(d)>0?v>0?d:R:y,D=ee,ee=1/0,y=new W(C),b.c[0]=0;l=P(y,d,0,1),m=E.plus(l.times(A)),m.comparedTo(c)!=1;)E=A,A=m,R=b.plus(l.times(m=R)),b=m,d=y.minus(l.times(m=d)),y=m;return m=P(c.minus(E),A,0,1),b=b.plus(m.times(R)),E=E.plus(m.times(A)),b.s=R.s=B.s,v=v*2,f=P(R,A,v,K).minus(B).abs().comparedTo(P(b,E,v,K).minus(B).abs())<1?[R,A]:[b,E],ee=D,f},T.toNumber=function(){return+ie(this)},T.toPrecision=function(c,d){return c!=null&&V(c,1,I),ge(this,c,d,2)},T.toString=function(c){var d,E=this,A=E.s,m=E.e;return m===null?A?(d="Infinity",A<0&&(d="-"+d)):d="NaN":(c==null?d=m<=oe||m>=pe?k(x(E.c),m):F(x(E.c),m,"0"):c===10&&X?(E=te(new W(E),q+m+1,K),d=F(x(E.c),E.e,"0")):(V(c,2,Z.length,"Base"),d=_(F(x(E.c),m,"0"),10,c,A,!0)),A<0&&E.c[0]&&(d="-"+d)),d},T.valueOf=T.toJSON=function(){return ie(this)},T._isBigNumber=!0,L!=null&&W.set(L),W}function M(L){var P=L|0;return L>0||L===P?P:P-1}function x(L){for(var P,_,h=1,T=L.length,j=L[0]+"";h<T;){for(P=L[h++]+"",_=p-P.length;_--;P="0"+P);j+=P}for(T=j.length;j.charCodeAt(--T)===48;);return j.slice(0,T+1||1)}function $(L,P){var _,h,T=L.c,j=P.c,q=L.s,K=P.s,oe=L.e,pe=P.e;if(!q||!K)return null;if(_=T&&!T[0],h=j&&!j[0],_||h)return _?h?0:-K:q;if(q!=K)return q;if(_=q<0,h=oe==pe,!T||!j)return h?0:!T^_?1:-1;if(!h)return oe>pe^_?1:-1;for(K=(oe=T.length)<(pe=j.length)?oe:pe,q=0;q<K;q++)if(T[q]!=j[q])return T[q]>j[q]^_?1:-1;return oe==pe?0:oe>pe^_?1:-1}function V(L,P,_,h){if(L<P||L>_||L!==s(L))throw Error(a+(h||"Argument")+(typeof L=="number"?L<P||L>_?" out of range: ":" not an integer: ":" not a primitive number: ")+String(L))}function S(L){var P=L.c.length-1;return M(L.e/p)==P&&L.c[P]%2!=0}function k(L,P){return(L.length>1?L.charAt(0)+"."+L.slice(1):L)+(P<0?"e":"e+")+P}function F(L,P,_){var h,T;if(P<0){for(T=_+".";++P;T+=_);L=T+L}else if(h=L.length,++P>h){for(T=_,P-=h;--P;T+=_);L+=T}else P<h&&(L=L.slice(0,P)+"."+L.slice(P));return L}n=H(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(os)})(us);var fs=us.exports;(function(e){var t=fs,n=e.exports;(function(){var r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;function u(O){return r.lastIndex=0,r.test(O)?'"'+O.replace(r,function(g){var N=a[g];return typeof N=="string"?N:"\\u"+("0000"+g.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+O+'"'}function p(O,g){var N,I,H,M,x=i,$,V=g[O],S=V!=null&&(V instanceof t||t.isBigNumber(V));switch(V&&typeof V=="object"&&typeof V.toJSON=="function"&&(V=V.toJSON(O)),typeof o=="function"&&(V=o.call(g,O,V)),typeof V){case"string":return S?V:u(V);case"number":return isFinite(V)?String(V):"null";case"boolean":case"null":case"bigint":return String(V);case"object":if(!V)return"null";if(i+=s,$=[],Object.prototype.toString.apply(V)==="[object Array]"){for(M=V.length,N=0;N<M;N+=1)$[N]=p(N,V)||"null";return H=$.length===0?"[]":i?`[
|
|
2
|
-
`+i
|
|
1
|
+
(function(le,Bt){typeof exports=="object"&&typeof module<"u"?Bt(exports):typeof define=="function"&&define.amd?define(["exports"],Bt):(le=typeof globalThis<"u"?globalThis:le||self,Bt(le["@emqx/shared-ui-utils"]={}))})(this,function(le){"use strict";const Bt=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const r of Object.keys(e))Bt(e[r],t.concat(r),n);else n[t.join(".")]=e;return n},na=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const r in e){let i=n,s="",o;for(;o=t.exec(r);)i=i[s]||(i[s]=o[2]?[]:{}),s=o[2]||o[1];i[s]=e[r]}}catch(r){console.error(r)}return n[""]||n},ra=e=>Object.keys(e).length===0;var fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bn={exports:{}},ps={exports:{}},ms={exports:{}};(function(e){(function(t){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",f=1e14,m=14,y=9007199254740991,E=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,D=1e9;function H(I){var P,_,h,b=W.prototype={constructor:W,toString:null,valueOf:null},j=new W(1),$=20,q=4,ae=-7,me=21,_e=-1e7,ee=1e7,ue=!1,z=1,he=0,re={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function W(c,d){var g,w,p,T,S,O,v,R,l=this;if(!(l instanceof W))return new W(c,d);if(d==null){if(c&&c._isBigNumber===!0){l.s=c.s,!c.c||c.e>ee?l.c=l.e=null:c.e<_e?l.c=[l.e=0]:(l.e=c.e,l.c=c.c.slice());return}if((O=typeof c=="number")&&c*0==0){if(l.s=1/c<0?(c=-c,-1):1,c===~~c){for(T=0,S=c;S>=10;S/=10,T++);T>ee?l.c=l.e=null:(l.e=T,l.c=[c]);return}R=String(c)}else{if(!r.test(R=String(c)))return h(l,R,O);l.s=R.charCodeAt(0)==45?(R=R.slice(1),-1):1}(T=R.indexOf("."))>-1&&(R=R.replace(".","")),(S=R.search(/e/i))>0?(T<0&&(T=S),T+=+R.slice(S+1),R=R.substring(0,S)):T<0&&(T=R.length)}else{if(V(d,2,Z.length,"Base"),d==10&&X)return l=new W(c),te(l,$+l.e+1,q);if(R=String(c),O=typeof c=="number"){if(c*0!=0)return h(l,R,O,d);if(l.s=1/c<0?(R=R.slice(1),-1):1,W.DEBUG&&R.replace(/^0\.0*|\./,"").length>15)throw Error(a+c)}else l.s=R.charCodeAt(0)===45?(R=R.slice(1),-1):1;for(g=Z.slice(0,d),T=S=0,v=R.length;S<v;S++)if(g.indexOf(w=R.charAt(S))<0){if(w=="."){if(S>T){T=v;continue}}else if(!p&&(R==R.toUpperCase()&&(R=R.toLowerCase())||R==R.toLowerCase()&&(R=R.toUpperCase()))){p=!0,S=-1,T=0;continue}return h(l,String(c),O,d)}O=!1,R=_(R,d,10,l.s),(T=R.indexOf("."))>-1?R=R.replace(".",""):T=R.length}for(S=0;R.charCodeAt(S)===48;S++);for(v=R.length;R.charCodeAt(--v)===48;);if(R=R.slice(S,++v)){if(v-=S,O&&W.DEBUG&&v>15&&(c>y||c!==s(c)))throw Error(a+l.s*c);if((T=T-S-1)>ee)l.c=l.e=null;else if(T<_e)l.c=[l.e=0];else{if(l.e=T,l.c=[],S=(T+1)%m,T<0&&(S+=m),S<v){for(S&&l.c.push(+R.slice(0,S)),v-=m;S<v;)l.c.push(+R.slice(S,S+=m));S=m-(R=R.slice(S)).length}else S-=v;for(;S--;R+="0");l.c.push(+R)}}else l.c=[l.e=0]}W.clone=H,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(c){var d,g;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(d="DECIMAL_PLACES")&&(g=c[d],V(g,0,D,d),$=g),c.hasOwnProperty(d="ROUNDING_MODE")&&(g=c[d],V(g,0,8,d),q=g),c.hasOwnProperty(d="EXPONENTIAL_AT")&&(g=c[d],g&&g.pop?(V(g[0],-D,0,d),V(g[1],0,D,d),ae=g[0],me=g[1]):(V(g,-D,D,d),ae=-(me=g<0?-g:g))),c.hasOwnProperty(d="RANGE"))if(g=c[d],g&&g.pop)V(g[0],-D,-1,d),V(g[1],1,D,d),_e=g[0],ee=g[1];else if(V(g,-D,D,d),g)_e=-(ee=g<0?-g:g);else throw Error(o+d+" cannot be zero: "+g);if(c.hasOwnProperty(d="CRYPTO"))if(g=c[d],g===!!g)if(g)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ue=g;else throw ue=!g,Error(o+"crypto unavailable");else ue=g;else throw Error(o+d+" not true or false: "+g);if(c.hasOwnProperty(d="MODULO_MODE")&&(g=c[d],V(g,0,9,d),z=g),c.hasOwnProperty(d="POW_PRECISION")&&(g=c[d],V(g,0,D,d),he=g),c.hasOwnProperty(d="FORMAT"))if(g=c[d],typeof g=="object")re=g;else throw Error(o+d+" not an object: "+g);if(c.hasOwnProperty(d="ALPHABET"))if(g=c[d],typeof g=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(g))X=g.slice(0,10)=="0123456789",Z=g;else throw Error(o+d+" invalid: "+g)}else throw Error(o+"Object expected: "+c);return{DECIMAL_PLACES:$,ROUNDING_MODE:q,EXPONENTIAL_AT:[ae,me],RANGE:[_e,ee],CRYPTO:ue,MODULO_MODE:z,POW_PRECISION:he,FORMAT:re,ALPHABET:Z}},W.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!W.DEBUG)return!0;var d,g,w=c.c,p=c.e,T=c.s;e:if({}.toString.call(w)=="[object Array]"){if((T===1||T===-1)&&p>=-D&&p<=D&&p===s(p)){if(w[0]===0){if(p===0&&w.length===1)return!0;break e}if(d=(p+1)%m,d<1&&(d+=m),String(w[0]).length==d){for(d=0;d<w.length;d++)if(g=w[d],g<0||g>=f||g!==s(g))break e;if(g!==0)return!0}}}else if(w===null&&p===null&&(T===null||T===1||T===-1))return!0;throw Error(o+"Invalid BigNumber: "+c)},W.maximum=W.max=function(){return be(arguments,-1)},W.minimum=W.min=function(){return be(arguments,1)},W.random=function(){var c=9007199254740992,d=Math.random()*c&2097151?function(){return s(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(g){var w,p,T,S,O,v=0,R=[],l=new W(j);if(g==null?g=$:V(g,0,D),S=i(g/m),ue)if(crypto.getRandomValues){for(w=crypto.getRandomValues(new Uint32Array(S*=2));v<S;)O=w[v]*131072+(w[v+1]>>>11),O>=9e15?(p=crypto.getRandomValues(new Uint32Array(2)),w[v]=p[0],w[v+1]=p[1]):(R.push(O%1e14),v+=2);v=S/2}else if(crypto.randomBytes){for(w=crypto.randomBytes(S*=7);v<S;)O=(w[v]&31)*281474976710656+w[v+1]*1099511627776+w[v+2]*4294967296+w[v+3]*16777216+(w[v+4]<<16)+(w[v+5]<<8)+w[v+6],O>=9e15?crypto.randomBytes(7).copy(w,v):(R.push(O%1e14),v+=7);v=S/7}else throw ue=!1,Error(o+"crypto unavailable");if(!ue)for(;v<S;)O=d(),O<9e15&&(R[v++]=O%1e14);for(S=R[--v],g%=m,S&&g&&(O=E[m-g],R[v]=s(S/O)*O);R[v]===0;R.pop(),v--);if(v<0)R=[T=0];else{for(T=-1;R[0]===0;R.splice(0,1),T-=m);for(v=1,O=R[0];O>=10;O/=10,v++);v<m&&(T-=m-v)}return l.e=T,l.c=R,l}}(),W.sum=function(){for(var c=1,d=arguments,g=new W(d[0]);c<d.length;)g=g.plus(d[c++]);return g},_=function(){var c="0123456789";function d(g,w,p,T){for(var S,O=[0],v,R=0,l=g.length;R<l;){for(v=O.length;v--;O[v]*=w);for(O[0]+=T.indexOf(g.charAt(R++)),S=0;S<O.length;S++)O[S]>p-1&&(O[S+1]==null&&(O[S+1]=0),O[S+1]+=O[S]/p|0,O[S]%=p)}return O.reverse()}return function(g,w,p,T,S){var O,v,R,l,u,C,B,Q,J=g.indexOf("."),Y=$,L=q;for(J>=0&&(l=he,he=0,g=g.replace(".",""),Q=new W(w),C=Q.pow(g.length-J),he=l,Q.c=d(F(x(C.c),C.e,"0"),10,p,c),Q.e=Q.c.length),B=d(g,w,p,S?(O=Z,c):(O=c,Z)),R=l=B.length;B[--l]==0;B.pop());if(!B[0])return O.charAt(0);if(J<0?--R:(C.c=B,C.e=R,C.s=T,C=P(C,Q,Y,L,p),B=C.c,u=C.r,R=C.e),v=R+Y+1,J=B[v],l=p/2,u=u||v<0||B[v+1]!=null,u=L<4?(J!=null||u)&&(L==0||L==(C.s<0?3:2)):J>l||J==l&&(L==4||u||L==6&&B[v-1]&1||L==(C.s<0?8:7)),v<1||!B[0])g=u?F(O.charAt(1),-Y,O.charAt(0)):O.charAt(0);else{if(B.length=v,u)for(--p;++B[--v]>p;)B[v]=0,v||(++R,B=[1].concat(B));for(l=B.length;!B[--l];);for(J=0,g="";J<=l;g+=O.charAt(B[J++]));g=F(g,R,O.charAt(0))}return g}}(),P=function(){function c(w,p,T){var S,O,v,R,l=0,u=w.length,C=p%N,B=p/N|0;for(w=w.slice();u--;)v=w[u]%N,R=w[u]/N|0,S=B*v+R*C,O=C*v+S%N*N+l,l=(O/T|0)+(S/N|0)+B*R,w[u]=O%T;return l&&(w=[l].concat(w)),w}function d(w,p,T,S){var O,v;if(T!=S)v=T>S?1:-1;else for(O=v=0;O<T;O++)if(w[O]!=p[O]){v=w[O]>p[O]?1:-1;break}return v}function g(w,p,T,S){for(var O=0;T--;)w[T]-=O,O=w[T]<p[T]?1:0,w[T]=O*S+w[T]-p[T];for(;!w[0]&&w.length>1;w.splice(0,1));}return function(w,p,T,S,O){var v,R,l,u,C,B,Q,J,Y,L,U,ne,Ne,ke,Me,Le,He,et=w.s==p.s?1:-1,Ue=w.c,we=p.c;if(!Ue||!Ue[0]||!we||!we[0])return new W(!w.s||!p.s||(Ue?we&&Ue[0]==we[0]:!we)?NaN:Ue&&Ue[0]==0||!we?et*0:et/0);for(J=new W(et),Y=J.c=[],R=w.e-p.e,et=T+R+1,O||(O=f,R=k(w.e/m)-k(p.e/m),et=et/m|0),l=0;we[l]==(Ue[l]||0);l++);if(we[l]>(Ue[l]||0)&&R--,et<0)Y.push(1),u=!0;else{for(ke=Ue.length,Le=we.length,l=0,et+=2,C=s(O/(we[0]+1)),C>1&&(we=c(we,C,O),Ue=c(Ue,C,O),Le=we.length,ke=Ue.length),Ne=Le,L=Ue.slice(0,Le),U=L.length;U<Le;L[U++]=0);He=we.slice(),He=[0].concat(He),Me=we[0],we[1]>=O/2&&Me++;do{if(C=0,v=d(we,L,Le,U),v<0){if(ne=L[0],Le!=U&&(ne=ne*O+(L[1]||0)),C=s(ne/Me),C>1)for(C>=O&&(C=O-1),B=c(we,C,O),Q=B.length,U=L.length;d(B,L,Q,U)==1;)C--,g(B,Le<Q?He:we,Q,O),Q=B.length,v=1;else C==0&&(v=C=1),B=we.slice(),Q=B.length;if(Q<U&&(B=[0].concat(B)),g(L,B,U,O),U=L.length,v==-1)for(;d(we,L,Le,U)<1;)C++,g(L,Le<U?He:we,U,O),U=L.length}else v===0&&(C++,L=[0]);Y[l++]=C,L[0]?L[U++]=Ue[Ne]||0:(L=[Ue[Ne]],U=1)}while((Ne++<ke||L[0]!=null)&&et--);u=L[0]!=null,Y[0]||Y.splice(0,1)}if(O==f){for(l=1,et=Y[0];et>=10;et/=10,l++);te(J,T+(J.e=l+R*m-1)+1,S,u)}else J.e=R,J.r=+u;return J}}();function Ee(c,d,g,w){var p,T,S,O,v;if(g==null?g=q:V(g,0,8),!c.c)return c.toString();if(p=c.c[0],S=c.e,d==null)v=x(c.c),v=w==1||w==2&&(S<=ae||S>=me)?M(v,S):F(v,S,"0");else if(c=te(new W(c),d,g),T=c.e,v=x(c.c),O=v.length,w==1||w==2&&(d<=T||T<=ae)){for(;O<d;v+="0",O++);v=M(v,T)}else if(d-=S,v=F(v,T,"0"),T+1>O){if(--d>0)for(v+=".";d--;v+="0");}else if(d+=T-O,d>0)for(T+1==O&&(v+=".");d--;v+="0");return c.s<0&&p?"-"+v:v}function be(c,d){for(var g,w,p=1,T=new W(c[0]);p<c.length;p++)w=new W(c[p]),(!w.s||(g=G(T,w))===d||g===0&&T.s===d)&&(T=w);return T}function De(c,d,g){for(var w=1,p=d.length;!d[--p];d.pop());for(p=d[0];p>=10;p/=10,w++);return(g=w+g*m-1)>ee?c.c=c.e=null:g<_e?c.c=[c.e=0]:(c.e=g,c.c=d),c}h=function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,g=/^\.([^.]+)$/,w=/^-?(Infinity|NaN)$/,p=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(T,S,O,v){var R,l=O?S:S.replace(p,"");if(w.test(l))T.s=isNaN(l)?null:l<0?-1:1;else{if(!O&&(l=l.replace(c,function(u,C,B){return R=(B=B.toLowerCase())=="x"?16:B=="b"?2:8,!v||v==R?C:u}),v&&(R=v,l=l.replace(d,"$1").replace(g,"0.$1")),S!=l))return new W(l,R);if(W.DEBUG)throw Error(o+"Not a"+(v?" base "+v:"")+" number: "+S);T.s=null}T.c=T.e=null}}();function te(c,d,g,w){var p,T,S,O,v,R,l,u=c.c,C=E;if(u){e:{for(p=1,O=u[0];O>=10;O/=10,p++);if(T=d-p,T<0)T+=m,S=d,v=u[R=0],l=s(v/C[p-S-1]%10);else if(R=i((T+1)/m),R>=u.length)if(w){for(;u.length<=R;u.push(0));v=l=0,p=1,T%=m,S=T-m+1}else break e;else{for(v=O=u[R],p=1;O>=10;O/=10,p++);T%=m,S=T-m+p,l=S<0?0:s(v/C[p-S-1]%10)}if(w=w||d<0||u[R+1]!=null||(S<0?v:v%C[p-S-1]),w=g<4?(l||w)&&(g==0||g==(c.s<0?3:2)):l>5||l==5&&(g==4||w||g==6&&(T>0?S>0?v/C[p-S]:0:u[R-1])%10&1||g==(c.s<0?8:7)),d<1||!u[0])return u.length=0,w?(d-=c.e+1,u[0]=C[(m-d%m)%m],c.e=-d||0):u[0]=c.e=0,c;if(T==0?(u.length=R,O=1,R--):(u.length=R+1,O=C[m-T],u[R]=S>0?s(v/C[p-S]%C[S])*O:0),w)for(;;)if(R==0){for(T=1,S=u[0];S>=10;S/=10,T++);for(S=u[0]+=O,O=1;S>=10;S/=10,O++);T!=O&&(c.e++,u[0]==f&&(u[0]=1));break}else{if(u[R]+=O,u[R]!=f)break;u[R--]=0,O=1}for(T=u.length;u[--T]===0;u.pop());}c.e>ee?c.c=c.e=null:c.e<_e&&(c.c=[c.e=0])}return c}function ie(c){var d,g=c.e;return g===null?c.toString():(d=x(c.c),d=g<=ae||g>=me?M(d,g):F(d,g,"0"),c.s<0?"-"+d:d)}return b.absoluteValue=b.abs=function(){var c=new W(this);return c.s<0&&(c.s=1),c},b.comparedTo=function(c,d){return G(this,new W(c,d))},b.decimalPlaces=b.dp=function(c,d){var g,w,p,T=this;if(c!=null)return V(c,0,D),d==null?d=q:V(d,0,8),te(new W(T),c+T.e+1,d);if(!(g=T.c))return null;if(w=((p=g.length-1)-k(this.e/m))*m,p=g[p])for(;p%10==0;p/=10,w--);return w<0&&(w=0),w},b.dividedBy=b.div=function(c,d){return P(this,new W(c,d),$,q)},b.dividedToIntegerBy=b.idiv=function(c,d){return P(this,new W(c,d),0,1)},b.exponentiatedBy=b.pow=function(c,d){var g,w,p,T,S,O,v,R,l,u=this;if(c=new W(c),c.c&&!c.isInteger())throw Error(o+"Exponent not an integer: "+ie(c));if(d!=null&&(d=new W(d)),O=c.e>14,!u.c||!u.c[0]||u.c[0]==1&&!u.e&&u.c.length==1||!c.c||!c.c[0])return l=new W(Math.pow(+ie(u),O?c.s*(2-A(c)):+ie(c))),d?l.mod(d):l;if(v=c.s<0,d){if(d.c?!d.c[0]:!d.s)return new W(NaN);w=!v&&u.isInteger()&&d.isInteger(),w&&(u=u.mod(d))}else{if(c.e>9&&(u.e>0||u.e<-1||(u.e==0?u.c[0]>1||O&&u.c[1]>=24e7:u.c[0]<8e13||O&&u.c[0]<=9999975e7)))return T=u.s<0&&A(c)?-0:0,u.e>-1&&(T=1/T),new W(v?1/T:T);he&&(T=i(he/m+2))}for(O?(g=new W(.5),v&&(c.s=1),R=A(c)):(p=Math.abs(+ie(c)),R=p%2),l=new W(j);;){if(R){if(l=l.times(u),!l.c)break;T?l.c.length>T&&(l.c.length=T):w&&(l=l.mod(d))}if(p){if(p=s(p/2),p===0)break;R=p%2}else if(c=c.times(g),te(c,c.e+1,1),c.e>14)R=A(c);else{if(p=+ie(c),p===0)break;R=p%2}u=u.times(u),T?u.c&&u.c.length>T&&(u.c.length=T):w&&(u=u.mod(d))}return w?l:(v&&(l=j.div(l)),d?l.mod(d):T?te(l,he,q,S):l)},b.integerValue=function(c){var d=new W(this);return c==null?c=q:V(c,0,8),te(d,d.e+1,c)},b.isEqualTo=b.eq=function(c,d){return G(this,new W(c,d))===0},b.isFinite=function(){return!!this.c},b.isGreaterThan=b.gt=function(c,d){return G(this,new W(c,d))>0},b.isGreaterThanOrEqualTo=b.gte=function(c,d){return(d=G(this,new W(c,d)))===1||d===0},b.isInteger=function(){return!!this.c&&k(this.e/m)>this.c.length-2},b.isLessThan=b.lt=function(c,d){return G(this,new W(c,d))<0},b.isLessThanOrEqualTo=b.lte=function(c,d){return(d=G(this,new W(c,d)))===-1||d===0},b.isNaN=function(){return!this.s},b.isNegative=function(){return this.s<0},b.isPositive=function(){return this.s>0},b.isZero=function(){return!!this.c&&this.c[0]==0},b.minus=function(c,d){var g,w,p,T,S=this,O=S.s;if(c=new W(c,d),d=c.s,!O||!d)return new W(NaN);if(O!=d)return c.s=-d,S.plus(c);var v=S.e/m,R=c.e/m,l=S.c,u=c.c;if(!v||!R){if(!l||!u)return l?(c.s=-d,c):new W(u?S:NaN);if(!l[0]||!u[0])return u[0]?(c.s=-d,c):new W(l[0]?S:q==3?-0:0)}if(v=k(v),R=k(R),l=l.slice(),O=v-R){for((T=O<0)?(O=-O,p=l):(R=v,p=u),p.reverse(),d=O;d--;p.push(0));p.reverse()}else for(w=(T=(O=l.length)<(d=u.length))?O:d,O=d=0;d<w;d++)if(l[d]!=u[d]){T=l[d]<u[d];break}if(T&&(p=l,l=u,u=p,c.s=-c.s),d=(w=u.length)-(g=l.length),d>0)for(;d--;l[g++]=0);for(d=f-1;w>O;){if(l[--w]<u[w]){for(g=w;g&&!l[--g];l[g]=d);--l[g],l[w]+=f}l[w]-=u[w]}for(;l[0]==0;l.splice(0,1),--R);return l[0]?De(c,l,R):(c.s=q==3?-1:1,c.c=[c.e=0],c)},b.modulo=b.mod=function(c,d){var g,w,p=this;return c=new W(c,d),!p.c||!c.s||c.c&&!c.c[0]?new W(NaN):!c.c||p.c&&!p.c[0]?new W(p):(z==9?(w=c.s,c.s=1,g=P(p,c,0,3),c.s=w,g.s*=w):g=P(p,c,0,z),c=p.minus(g.times(c)),!c.c[0]&&z==1&&(c.s=p.s),c)},b.multipliedBy=b.times=function(c,d){var g,w,p,T,S,O,v,R,l,u,C,B,Q,J,Y,L=this,U=L.c,ne=(c=new W(c,d)).c;if(!U||!ne||!U[0]||!ne[0])return!L.s||!c.s||U&&!U[0]&&!ne||ne&&!ne[0]&&!U?c.c=c.e=c.s=null:(c.s*=L.s,!U||!ne?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(w=k(L.e/m)+k(c.e/m),c.s*=L.s,v=U.length,u=ne.length,v<u&&(Q=U,U=ne,ne=Q,p=v,v=u,u=p),p=v+u,Q=[];p--;Q.push(0));for(J=f,Y=N,p=u;--p>=0;){for(g=0,C=ne[p]%Y,B=ne[p]/Y|0,S=v,T=p+S;T>p;)R=U[--S]%Y,l=U[S]/Y|0,O=B*R+l*C,R=C*R+O%Y*Y+Q[T]+g,g=(R/J|0)+(O/Y|0)+B*l,Q[T--]=R%J;Q[T]=g}return g?++w:Q.splice(0,1),De(c,Q,w)},b.negated=function(){var c=new W(this);return c.s=-c.s||null,c},b.plus=function(c,d){var g,w=this,p=w.s;if(c=new W(c,d),d=c.s,!p||!d)return new W(NaN);if(p!=d)return c.s=-d,w.minus(c);var T=w.e/m,S=c.e/m,O=w.c,v=c.c;if(!T||!S){if(!O||!v)return new W(p/0);if(!O[0]||!v[0])return v[0]?c:new W(O[0]?w:p*0)}if(T=k(T),S=k(S),O=O.slice(),p=T-S){for(p>0?(S=T,g=v):(p=-p,g=O),g.reverse();p--;g.push(0));g.reverse()}for(p=O.length,d=v.length,p-d<0&&(g=v,v=O,O=g,d=p),p=0;d;)p=(O[--d]=O[d]+v[d]+p)/f|0,O[d]=f===O[d]?0:O[d]%f;return p&&(O=[p].concat(O),++S),De(c,O,S)},b.precision=b.sd=function(c,d){var g,w,p,T=this;if(c!=null&&c!==!!c)return V(c,1,D),d==null?d=q:V(d,0,8),te(new W(T),c,d);if(!(g=T.c))return null;if(p=g.length-1,w=p*m+1,p=g[p]){for(;p%10==0;p/=10,w--);for(p=g[0];p>=10;p/=10,w++);}return c&&T.e+1>w&&(w=T.e+1),w},b.shiftedBy=function(c){return V(c,-y,y),this.times("1e"+c)},b.squareRoot=b.sqrt=function(){var c,d,g,w,p,T=this,S=T.c,O=T.s,v=T.e,R=$+4,l=new W("0.5");if(O!==1||!S||!S[0])return new W(!O||O<0&&(!S||S[0])?NaN:S?T:1/0);if(O=Math.sqrt(+ie(T)),O==0||O==1/0?(d=x(S),(d.length+v)%2==0&&(d+="0"),O=Math.sqrt(+d),v=k((v+1)/2)-(v<0||v%2),O==1/0?d="5e"+v:(d=O.toExponential(),d=d.slice(0,d.indexOf("e")+1)+v),g=new W(d)):g=new W(O+""),g.c[0]){for(v=g.e,O=v+R,O<3&&(O=0);;)if(p=g,g=l.times(p.plus(P(T,p,R,1))),x(p.c).slice(0,O)===(d=x(g.c)).slice(0,O))if(g.e<v&&--O,d=d.slice(O-3,O+1),d=="9999"||!w&&d=="4999"){if(!w&&(te(p,p.e+$+2,0),p.times(p).eq(T))){g=p;break}R+=4,O+=4,w=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(te(g,g.e+$+2,1),c=!g.times(g).eq(T));break}}return te(g,g.e+$+1,q,c)},b.toExponential=function(c,d){return c!=null&&(V(c,0,D),c++),Ee(this,c,d,1)},b.toFixed=function(c,d){return c!=null&&(V(c,0,D),c=c+this.e+1),Ee(this,c,d)},b.toFormat=function(c,d,g){var w,p=this;if(g==null)c!=null&&d&&typeof d=="object"?(g=d,d=null):c&&typeof c=="object"?(g=c,c=d=null):g=re;else if(typeof g!="object")throw Error(o+"Argument not an object: "+g);if(w=p.toFixed(c,d),p.c){var T,S=w.split("."),O=+g.groupSize,v=+g.secondaryGroupSize,R=g.groupSeparator||"",l=S[0],u=S[1],C=p.s<0,B=C?l.slice(1):l,Q=B.length;if(v&&(T=O,O=v,v=T,Q-=T),O>0&&Q>0){for(T=Q%O||O,l=B.substr(0,T);T<Q;T+=O)l+=R+B.substr(T,O);v>0&&(l+=R+B.slice(T)),C&&(l="-"+l)}w=u?l+(g.decimalSeparator||"")+((v=+g.fractionGroupSize)?u.replace(new RegExp("\\d{"+v+"}\\B","g"),"$&"+(g.fractionGroupSeparator||"")):u):l}return(g.prefix||"")+w+(g.suffix||"")},b.toFraction=function(c){var d,g,w,p,T,S,O,v,R,l,u,C,B=this,Q=B.c;if(c!=null&&(O=new W(c),!O.isInteger()&&(O.c||O.s!==1)||O.lt(j)))throw Error(o+"Argument "+(O.isInteger()?"out of range: ":"not an integer: ")+ie(O));if(!Q)return new W(B);for(d=new W(j),R=g=new W(j),w=v=new W(j),C=x(Q),T=d.e=C.length-B.e-1,d.c[0]=E[(S=T%m)<0?m+S:S],c=!c||O.comparedTo(d)>0?T>0?d:R:O,S=ee,ee=1/0,O=new W(C),v.c[0]=0;l=P(O,d,0,1),p=g.plus(l.times(w)),p.comparedTo(c)!=1;)g=w,w=p,R=v.plus(l.times(p=R)),v=p,d=O.minus(l.times(p=d)),O=p;return p=P(c.minus(g),w,0,1),v=v.plus(p.times(R)),g=g.plus(p.times(w)),v.s=R.s=B.s,T=T*2,u=P(R,w,T,q).minus(B).abs().comparedTo(P(v,g,T,q).minus(B).abs())<1?[R,w]:[v,g],ee=S,u},b.toNumber=function(){return+ie(this)},b.toPrecision=function(c,d){return c!=null&&V(c,1,D),Ee(this,c,d,2)},b.toString=function(c){var d,g=this,w=g.s,p=g.e;return p===null?w?(d="Infinity",w<0&&(d="-"+d)):d="NaN":(c==null?d=p<=ae||p>=me?M(x(g.c),p):F(x(g.c),p,"0"):c===10&&X?(g=te(new W(g),$+p+1,q),d=F(x(g.c),g.e,"0")):(V(c,2,Z.length,"Base"),d=_(F(x(g.c),p,"0"),10,c,w,!0)),w<0&&g.c[0]&&(d="-"+d)),d},b.valueOf=b.toJSON=function(){return ie(this)},b._isBigNumber=!0,I!=null&&W.set(I),W}function k(I){var P=I|0;return I>0||I===P?P:P-1}function x(I){for(var P,_,h=1,b=I.length,j=I[0]+"";h<b;){for(P=I[h++]+"",_=m-P.length;_--;P="0"+P);j+=P}for(b=j.length;j.charCodeAt(--b)===48;);return j.slice(0,b+1||1)}function G(I,P){var _,h,b=I.c,j=P.c,$=I.s,q=P.s,ae=I.e,me=P.e;if(!$||!q)return null;if(_=b&&!b[0],h=j&&!j[0],_||h)return _?h?0:-q:$;if($!=q)return $;if(_=$<0,h=ae==me,!b||!j)return h?0:!b^_?1:-1;if(!h)return ae>me^_?1:-1;for(q=(ae=b.length)<(me=j.length)?ae:me,$=0;$<q;$++)if(b[$]!=j[$])return b[$]>j[$]^_?1:-1;return ae==me?0:ae>me^_?1:-1}function V(I,P,_,h){if(I<P||I>_||I!==s(I))throw Error(o+(h||"Argument")+(typeof I=="number"?I<P||I>_?" out of range: ":" not an integer: ":" not a primitive number: ")+String(I))}function A(I){var P=I.c.length-1;return k(I.e/m)==P&&I.c[P]%2!=0}function M(I,P){return(I.length>1?I.charAt(0)+"."+I.slice(1):I)+(P<0?"e":"e+")+P}function F(I,P,_){var h,b;if(P<0){for(b=_+".";++P;b+=_);I=b+I}else if(h=I.length,++P>h){for(b=_,P-=h;--P;b+=_);I+=b}else P<h&&(I=I.slice(0,P)+"."+I.slice(P));return I}n=H(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(fs)})(ms);var _s=ms.exports;(function(e){var t=_s,n=e.exports;(function(){var r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},a;function f(y){return r.lastIndex=0,r.test(y)?'"'+y.replace(r,function(E){var N=o[E];return typeof N=="string"?N:"\\u"+("0000"+E.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+y+'"'}function m(y,E){var N,D,H,k,x=i,G,V=E[y],A=V!=null&&(V instanceof t||t.isBigNumber(V));switch(V&&typeof V=="object"&&typeof V.toJSON=="function"&&(V=V.toJSON(y)),typeof a=="function"&&(V=a.call(E,y,V)),typeof V){case"string":return A?V:f(V);case"number":return isFinite(V)?String(V):"null";case"boolean":case"null":case"bigint":return String(V);case"object":if(!V)return"null";if(i+=s,G=[],Object.prototype.toString.apply(V)==="[object Array]"){for(k=V.length,N=0;N<k;N+=1)G[N]=m(N,V)||"null";return H=G.length===0?"[]":i?`[
|
|
2
|
+
`+i+G.join(`,
|
|
3
3
|
`+i)+`
|
|
4
|
-
`+x+"]":"["
|
|
5
|
-
`+i
|
|
4
|
+
`+x+"]":"["+G.join(",")+"]",i=x,H}if(a&&typeof a=="object")for(k=a.length,N=0;N<k;N+=1)typeof a[N]=="string"&&(D=a[N],H=m(D,V),H&&G.push(f(D)+(i?": ":":")+H));else Object.keys(V).forEach(function(M){var F=m(M,V);F&&G.push(f(M)+(i?": ":":")+F)});return H=G.length===0?"{}":i?`{
|
|
5
|
+
`+i+G.join(`,
|
|
6
6
|
`+i)+`
|
|
7
|
-
`+x+"}":"{"
|
|
8
|
-
`,r:"\r",t:" "},s,
|
|
7
|
+
`+x+"}":"{"+G.join(",")+"}",i=x,H}}typeof n.stringify!="function"&&(n.stringify=function(y,E,N){var D;if(i="",s="",typeof N=="number")for(D=0;D<N;D+=1)s+=" ";else typeof N=="string"&&(s=N);if(a=E,E&&typeof E!="function"&&(typeof E!="object"||typeof E.length!="number"))throw new Error("JSON.stringify");return m("",{"":y})})})()})(ps);var sa=ps.exports,yn=null;const ia=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,oa=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var aa=function(e){var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
8
|
+
`,r:"\r",t:" "},s,o=function(k){throw{name:"SyntaxError",message:k,at:n,text:s}},a=function(k){return k&&k!==r&&o("Expected '"+k+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r},f=function(){var k,x="";for(r==="-"&&(x="-",a("-"));r>="0"&&r<="9";)x+=r,a();if(r===".")for(x+=".";a()&&r>="0"&&r<="9";)x+=r;if(r==="e"||r==="E")for(x+=r,a(),(r==="-"||r==="+")&&(x+=r,a());r>="0"&&r<="9";)x+=r,a();if(k=+x,!isFinite(k))o("Bad number");else return yn==null&&(yn=_s),x.length>15?t.storeAsString?x:t.useNativeBigInt?BigInt(x):new yn(x):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(k):new yn(k):k},m=function(){var k,x,G="",V;if(r==='"')for(var A=n;a();){if(r==='"')return n-1>A&&(G+=s.substring(A,n-1)),a(),G;if(r==="\\"){if(n-1>A&&(G+=s.substring(A,n-1)),a(),r==="u"){for(V=0,x=0;x<4&&(k=parseInt(a(),16),!!isFinite(k));x+=1)V=V*16+k;G+=String.fromCharCode(V)}else if(typeof i[r]=="string")G+=i[r];else break;A=n}}o("Bad string")},y=function(){for(;r&&r<=" ";)a()},E=function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o("Unexpected '"+r+"'")},N,D=function(){var k=[];if(r==="["){if(a("["),y(),r==="]")return a("]"),k;for(;r;){if(k.push(N()),y(),r==="]")return a("]"),k;a(","),y()}}o("Bad array")},H=function(){var k,x=Object.create(null);if(r==="{"){if(a("{"),y(),r==="}")return a("}"),x;for(;r;){if(k=m(),y(),a(":"),t.strict===!0&&Object.hasOwnProperty.call(x,k)&&o('Duplicate key "'+k+'"'),ia.test(k)===!0?t.protoAction==="error"?o("Object contains forbidden prototype property"):t.protoAction==="ignore"?N():x[k]=N():oa.test(k)===!0?t.constructorAction==="error"?o("Object contains forbidden constructor property"):t.constructorAction==="ignore"?N():x[k]=N():x[k]=N(),y(),r==="}")return a("}"),x;a(","),y()}}o("Bad object")};return N=function(){switch(y(),r){case"{":return H();case"[":return D();case'"':return m();case"-":return f();default:return r>="0"&&r<="9"?f():E()}},function(k,x){var G;return s=k+"",n=0,r=" ",G=N(),y(),r&&o("Syntax error"),typeof x=="function"?function V(A,M){var F,I=A[M];return I&&typeof I=="object"&&Object.keys(I).forEach(function(P){F=V(I,P),F!==void 0?I[P]=F:delete I[P]}),x.call(A,M,I)}({"":G},""):G}},la=aa,hs=sa.stringify,gs=la;bn.exports=function(e){return{parse:gs(e),stringify:hs}},bn.exports.parse=gs(),bn.exports.stringify=hs;var ca=bn.exports;const Es=ds(ca),ua=e=>{try{return JSON.parse(e)}catch{console.error("An error occurred while parsing the JSON string")}},fa=(e,t)=>{try{return typeof e=="string"?e:JSON.stringify(e,null,t)}catch(n){return console.error(n),"stringify error"}},da=e=>{if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}},Ns=Es,Ts=Es({useNativeBigInt:!0}),pa=(e,t)=>{try{return Ts.parse(e,t)}catch{try{return Ns.parse(e,t)}catch{return JSON.parse(e,t)}}},ma=(e,t,n)=>{try{return Ts.stringify(e,t,n)}catch{return Ns.stringify(e,t,n)}},_a=e=>{if(typeof e!="number"||isNaN(e)||e<0)throw new Error("Invalid input: input should be a non-negative number");if(e===0)return"0 Bytes";const t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(1)} ${t[n]}`};var Zn=(e=>(e[e.ms=1]="ms",e[e.s=1e3]="s",e[e.m=6e4]="m",e[e.h=36e5]="h",e[e.d=864e5]="d",e[e.B=1]="B",e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e))(Zn||{});const ha=(e,t)=>{if(!(t in Zn))throw new Error(`Invalid unit: ${t}`);return e*Zn[t]},vs=(e,t)=>{const n=document.createElement("a");n.style.display="none",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},Os=(e,t)=>{const n=window.URL.createObjectURL(new Blob([e]));vs(n,t),window.URL.revokeObjectURL(n)};var bs={exports:{}};/* @license
|
|
9
9
|
Papa Parse
|
|
10
10
|
v5.5.3
|
|
11
11
|
https://github.com/mholt/PapaParse
|
|
12
12
|
License: MIT
|
|
13
|
-
*/(function(e,t){((n,r)=>{e.exports=r()})(
|
|
14
|
-
`),
|
|
15
|
-
`;for(var
|
|
16
|
-
`&&
|
|
17
|
-
`:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function
|
|
18
|
-
`&&
|
|
19
|
-
`&&(
|
|
20
|
-
`);var z=0,
|
|
21
|
-
`,
|
|
22
|
-
`,'"',
|
|
13
|
+
*/(function(e,t){((n,r)=>{e.exports=r()})(fs,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,s=!r.document&&!!r.postMessage,o=r.IS_PAPA_WORKER||!1,a={},f=0,m={};function y(_){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(h){var b=F(h);b.chunkSize=parseInt(b.chunkSize),h.step||h.chunk||(b.chunkSize=null),this._handle=new k(b),(this._handle.streamer=this)._config=b}).call(this,_),this.parseChunk=function(h,b){var j=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<j){let q=this._config.newline;q||($=this._config.quoteChar||'"',q=this._handle.guessLineEndings(h,$)),h=[...h.split(q).slice(j)].join(q)}this.isFirstChunk&&P(this._config.beforeFirstChunk)&&($=this._config.beforeFirstChunk(h))!==void 0&&(h=$),this.isFirstChunk=!1,this._halted=!1;var j=this._partialLine+h,$=(this._partialLine="",this._handle.parse(j,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(h=$.meta.cursor,j=(this._finished||(this._partialLine=j.substring(h-this._baseIndex),this._baseIndex=h),$&&$.data&&(this._rowCount+=$.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)r.postMessage({results:$,workerId:m.WORKER_ID,finished:j});else if(P(this._config.chunk)&&!b){if(this._config.chunk($,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=$=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat($.data),this._completeResults.errors=this._completeResults.errors.concat($.errors),this._completeResults.meta=$.meta),this._completed||!j||!P(this._config.complete)||$&&$.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),j||$&&$.meta.paused||this._nextChunk(),$}this._halted=!0},this._sendError=function(h){P(this._config.error)?this._config.error(h):o&&this._config.error&&r.postMessage({workerId:m.WORKER_ID,error:h,finished:!1})}}function E(_){var h;(_=_||{}).chunkSize||(_.chunkSize=m.RemoteChunkSize),y.call(this,_),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(b){this._input=b,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(h=new XMLHttpRequest,this._config.withCredentials&&(h.withCredentials=this._config.withCredentials),s||(h.onload=I(this._chunkLoaded,this),h.onerror=I(this._chunkError,this)),h.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var b,j=this._config.downloadRequestHeaders;for(b in j)h.setRequestHeader(b,j[b])}var $;this._config.chunkSize&&($=this._start+this._config.chunkSize-1,h.setRequestHeader("Range","bytes="+this._start+"-"+$));try{h.send(this._config.downloadRequestBody)}catch(q){this._chunkError(q.message)}s&&h.status===0&&this._chunkError()}},this._chunkLoaded=function(){h.readyState===4&&(h.status<200||400<=h.status?this._chunkError():(this._start+=this._config.chunkSize||h.responseText.length,this._finished=!this._config.chunkSize||this._start>=(b=>(b=b.getResponseHeader("Content-Range"))!==null?parseInt(b.substring(b.lastIndexOf("/")+1)):-1)(h),this.parseChunk(h.responseText)))},this._chunkError=function(b){b=h.statusText||b,this._sendError(new Error(b))}}function N(_){(_=_||{}).chunkSize||(_.chunkSize=m.LocalChunkSize),y.call(this,_);var h,b,j=typeof FileReader<"u";this.stream=function($){this._input=$,b=$.slice||$.webkitSlice||$.mozSlice,j?((h=new FileReader).onload=I(this._chunkLoaded,this),h.onerror=I(this._chunkError,this)):h=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var $=this._input,q=(this._config.chunkSize&&(q=Math.min(this._start+this._config.chunkSize,this._input.size),$=b.call($,this._start,q)),h.readAsText($,this._config.encoding));j||this._chunkLoaded({target:{result:q}})},this._chunkLoaded=function($){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk($.target.result)},this._chunkError=function(){this._sendError(h.error)}}function D(_){var h;y.call(this,_=_||{}),this.stream=function(b){return h=b,this._nextChunk()},this._nextChunk=function(){var b,j;if(!this._finished)return b=this._config.chunkSize,h=b?(j=h.substring(0,b),h.substring(b)):(j=h,""),this._finished=!h,this.parseChunk(j)}}function H(_){y.call(this,_=_||{});var h=[],b=!0,j=!1;this.pause=function(){y.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){y.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function($){this._input=$,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){j&&h.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),h.length?this.parseChunk(h.shift()):b=!0},this._streamData=I(function($){try{h.push(typeof $=="string"?$:$.toString(this._config.encoding)),b&&(b=!1,this._checkIsFinished(),this.parseChunk(h.shift()))}catch(q){this._streamError(q)}},this),this._streamError=I(function($){this._streamCleanUp(),this._sendError($)},this),this._streamEnd=I(function(){this._streamCleanUp(),j=!0,this._streamData("")},this),this._streamCleanUp=I(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function k(_){var h,b,j,$,q=Math.pow(2,53),ae=-q,me=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,_e=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ee=this,ue=0,z=0,he=!1,re=!1,Z=[],X={data:[],errors:[],meta:{}};function W(te){return _.skipEmptyLines==="greedy"?te.join("").trim()==="":te.length===1&&te[0].length===0}function Ee(){if(X&&j&&(De("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+m.DefaultDelimiter+"'"),j=!1),_.skipEmptyLines&&(X.data=X.data.filter(function(d){return!W(d)})),be()){let d=function(g,w){P(_.transformHeader)&&(g=_.transformHeader(g,w)),Z.push(g)};if(X)if(Array.isArray(X.data[0])){for(var te=0;be()&&te<X.data.length;te++)X.data[te].forEach(d);X.data.splice(0,1)}else X.data.forEach(d)}function ie(d,g){for(var w=_.header?{}:[],p=0;p<d.length;p++){var T=p,S=d[p],S=((O,v)=>(R=>(_.dynamicTypingFunction&&_.dynamicTyping[R]===void 0&&(_.dynamicTyping[R]=_.dynamicTypingFunction(R)),(_.dynamicTyping[R]||_.dynamicTyping)===!0))(O)?v==="true"||v==="TRUE"||v!=="false"&&v!=="FALSE"&&((R=>{if(me.test(R)&&(R=parseFloat(R),ae<R&&R<q))return 1})(v)?parseFloat(v):_e.test(v)?new Date(v):v===""?null:v):v)(T=_.header?p>=Z.length?"__parsed_extra":Z[p]:T,S=_.transform?_.transform(S,T):S);T==="__parsed_extra"?(w[T]=w[T]||[],w[T].push(S)):w[T]=S}return _.header&&(p>Z.length?De("FieldMismatch","TooManyFields","Too many fields: expected "+Z.length+" fields but parsed "+p,z+g):p<Z.length&&De("FieldMismatch","TooFewFields","Too few fields: expected "+Z.length+" fields but parsed "+p,z+g)),w}var c;X&&(_.header||_.dynamicTyping||_.transform)&&(c=1,!X.data.length||Array.isArray(X.data[0])?(X.data=X.data.map(ie),c=X.data.length):X.data=ie(X.data,0),_.header&&X.meta&&(X.meta.fields=Z),z+=c)}function be(){return _.header&&Z.length===0}function De(te,ie,c,d){te={type:te,code:ie,message:c},d!==void 0&&(te.row=d),X.errors.push(te)}P(_.step)&&($=_.step,_.step=function(te){X=te,be()?Ee():(Ee(),X.data.length!==0&&(ue+=te.data.length,_.preview&&ue>_.preview?b.abort():(X.data=X.data[0],$(X,ee))))}),this.parse=function(te,ie,c){var d=_.quoteChar||'"',d=(_.newline||(_.newline=this.guessLineEndings(te,d)),j=!1,_.delimiter?P(_.delimiter)&&(_.delimiter=_.delimiter(te),X.meta.delimiter=_.delimiter):((d=((g,w,p,T,S)=>{var O,v,R,l;S=S||[","," ","|",";",m.RECORD_SEP,m.UNIT_SEP];for(var u=0;u<S.length;u++){for(var C,B=S[u],Q=0,J=0,Y=0,L=(R=void 0,new G({comments:T,delimiter:B,newline:w,preview:10}).parse(g)),U=0;U<L.data.length;U++)p&&W(L.data[U])?Y++:(C=L.data[U].length,J+=C,R===void 0?R=C:0<C&&(Q+=Math.abs(C-R),R=C));0<L.data.length&&(J/=L.data.length-Y),(v===void 0||Q<=v)&&(l===void 0||l<J)&&1.99<J&&(v=Q,O=B,l=J)}return{successful:!!(_.delimiter=O),bestDelimiter:O}})(te,_.newline,_.skipEmptyLines,_.comments,_.delimitersToGuess)).successful?_.delimiter=d.bestDelimiter:(j=!0,_.delimiter=m.DefaultDelimiter),X.meta.delimiter=_.delimiter),F(_));return _.preview&&_.header&&d.preview++,h=te,b=new G(d),X=b.parse(h,ie,c),Ee(),he?{meta:{paused:!0}}:X||{meta:{paused:!1}}},this.paused=function(){return he},this.pause=function(){he=!0,b.abort(),h=P(_.chunk)?"":h.substring(b.getCharIndex())},this.resume=function(){ee.streamer._halted?(he=!1,ee.streamer.parseChunk(h,!0)):setTimeout(ee.resume,3)},this.aborted=function(){return re},this.abort=function(){re=!0,b.abort(),X.meta.aborted=!0,P(_.complete)&&_.complete(X),h=""},this.guessLineEndings=function(g,d){g=g.substring(0,1048576);var d=new RegExp(x(d)+"([^]*?)"+x(d),"gm"),c=(g=g.replace(d,"")).split("\r"),d=g.split(`
|
|
14
|
+
`),g=1<d.length&&d[0].length<c[0].length;if(c.length===1||g)return`
|
|
15
|
+
`;for(var w=0,p=0;p<c.length;p++)c[p][0]===`
|
|
16
|
+
`&&w++;return w>=c.length/2?`\r
|
|
17
|
+
`:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G(_){var h=(_=_||{}).delimiter,b=_.newline,j=_.comments,$=_.step,q=_.preview,ae=_.fastMode,me=null,_e=!1,ee=_.quoteChar==null?'"':_.quoteChar,ue=ee;if(_.escapeChar!==void 0&&(ue=_.escapeChar),(typeof h!="string"||-1<m.BAD_DELIMITERS.indexOf(h))&&(h=","),j===h)throw new Error("Comment character same as delimiter");j===!0?j="#":(typeof j!="string"||-1<m.BAD_DELIMITERS.indexOf(j))&&(j=!1),b!==`
|
|
18
|
+
`&&b!=="\r"&&b!==`\r
|
|
19
|
+
`&&(b=`
|
|
20
|
+
`);var z=0,he=!1;this.parse=function(re,Z,X){if(typeof re!="string")throw new Error("Input must be a string");var W=re.length,Ee=h.length,be=b.length,De=j.length,te=P($),ie=[],c=[],d=[],g=z=0;if(!re)return Q();if(ae||ae!==!1&&re.indexOf(ee)===-1){for(var w=re.split(b),p=0;p<w.length;p++){if(d=w[p],z+=d.length,p!==w.length-1)z+=b.length;else if(X)return Q();if(!j||d.substring(0,De)!==j){if(te){if(ie=[],l(d.split(h)),J(),he)return Q()}else l(d.split(h));if(q&&q<=p)return ie=ie.slice(0,q),Q(!0)}}return Q()}for(var T=re.indexOf(h,z),S=re.indexOf(b,z),O=new RegExp(x(ue)+x(ee),"g"),v=re.indexOf(ee,z);;)if(re[z]===ee)for(v=z,z++;;){if((v=re.indexOf(ee,v+1))===-1)return X||c.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:z}),C();if(v===W-1)return C(re.substring(z,v).replace(O,ee));if(ee===ue&&re[v+1]===ue)v++;else if(ee===ue||v===0||re[v-1]!==ue){T!==-1&&T<v+1&&(T=re.indexOf(h,v+1));var R=u((S=S!==-1&&S<v+1?re.indexOf(b,v+1):S)===-1?T:Math.min(T,S));if(re.substr(v+1+R,Ee)===h){d.push(re.substring(z,v).replace(O,ee)),re[z=v+1+R+Ee]!==ee&&(v=re.indexOf(ee,z)),T=re.indexOf(h,z),S=re.indexOf(b,z);break}if(R=u(S),re.substring(v+1+R,v+1+R+be)===b){if(d.push(re.substring(z,v).replace(O,ee)),B(v+1+R+be),T=re.indexOf(h,z),v=re.indexOf(ee,z),te&&(J(),he))return Q();if(q&&ie.length>=q)return Q(!0);break}c.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:z}),v++}}else if(j&&d.length===0&&re.substring(z,z+De)===j){if(S===-1)return Q();z=S+be,S=re.indexOf(b,z),T=re.indexOf(h,z)}else if(T!==-1&&(T<S||S===-1))d.push(re.substring(z,T)),z=T+Ee,T=re.indexOf(h,z);else{if(S===-1)break;if(d.push(re.substring(z,S)),B(S+be),te&&(J(),he))return Q();if(q&&ie.length>=q)return Q(!0)}return C();function l(Y){ie.push(Y),g=z}function u(Y){var L=0;return L=Y!==-1&&(Y=re.substring(v+1,Y))&&Y.trim()===""?Y.length:L}function C(Y){return X||(Y===void 0&&(Y=re.substring(z)),d.push(Y),z=W,l(d),te&&J()),Q()}function B(Y){z=Y,l(d),d=[],S=re.indexOf(b,z)}function Q(Y){if(_.header&&!Z&&ie.length&&!_e){var L=ie[0],U=Object.create(null),ne=new Set(L);let Ne=!1;for(let ke=0;ke<L.length;ke++){let Me=L[ke];if(U[Me=P(_.transformHeader)?_.transformHeader(Me,ke):Me]){let Le,He=U[Me];for(;Le=Me+"_"+He,He++,ne.has(Le););ne.add(Le),L[ke]=Le,U[Me]++,Ne=!0,(me=me===null?{}:me)[Le]=Me}else U[Me]=1,L[ke]=Me;ne.add(Me)}Ne&&console.warn("Duplicate headers found and renamed."),_e=!0}return{data:ie,errors:c,meta:{delimiter:h,linebreak:b,aborted:he,truncated:!!Y,cursor:g+(Z||0),renamedHeaders:me}}}function J(){$(Q()),ie=[],c=[]}},this.abort=function(){he=!0},this.getCharIndex=function(){return z}}function V(_){var h=_.data,b=a[h.workerId],j=!1;if(h.error)b.userError(h.error,h.file);else if(h.results&&h.results.data){var $={abort:function(){j=!0,A(h.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:M,resume:M};if(P(b.userStep)){for(var q=0;q<h.results.data.length&&(b.userStep({data:h.results.data[q],errors:h.results.errors,meta:h.results.meta},$),!j);q++);delete h.results}else P(b.userChunk)&&(b.userChunk(h.results,$,h.file),delete h.results)}h.finished&&!j&&A(h.workerId,h.results)}function A(_,h){var b=a[_];P(b.userComplete)&&b.userComplete(h),b.terminate(),delete a[_]}function M(){throw new Error("Not implemented.")}function F(_){if(typeof _!="object"||_===null)return _;var h,b=Array.isArray(_)?[]:{};for(h in _)b[h]=F(_[h]);return b}function I(_,h){return function(){_.apply(h,arguments)}}function P(_){return typeof _=="function"}return m.parse=function(_,h){var b=(h=h||{}).dynamicTyping||!1;if(P(b)&&(h.dynamicTypingFunction=b,b={}),h.dynamicTyping=b,h.transform=!!P(h.transform)&&h.transform,!h.worker||!m.WORKERS_SUPPORTED)return b=null,m.NODE_STREAM_INPUT,typeof _=="string"?(_=(j=>j.charCodeAt(0)!==65279?j:j.slice(1))(_),b=new(h.download?E:D)(h)):_.readable===!0&&P(_.read)&&P(_.on)?b=new H(h):(r.File&&_ instanceof File||_ instanceof Object)&&(b=new N(h)),b.stream(_);(b=(()=>{var j;return!!m.WORKERS_SUPPORTED&&(j=(()=>{var $=r.URL||r.webkitURL||null,q=n.toString();return m.BLOB_URL||(m.BLOB_URL=$.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",q,")();"],{type:"text/javascript"})))})(),(j=new r.Worker(j)).onmessage=V,j.id=f++,a[j.id]=j)})()).userStep=h.step,b.userChunk=h.chunk,b.userComplete=h.complete,b.userError=h.error,h.step=P(h.step),h.chunk=P(h.chunk),h.complete=P(h.complete),h.error=P(h.error),delete h.worker,b.postMessage({input:_,config:h,workerId:b.id})},m.unparse=function(_,h){var b=!1,j=!0,$=",",q=`\r
|
|
21
|
+
`,ae='"',me=ae+ae,_e=!1,ee=null,ue=!1,z=((()=>{if(typeof h=="object"){if(typeof h.delimiter!="string"||m.BAD_DELIMITERS.filter(function(Z){return h.delimiter.indexOf(Z)!==-1}).length||($=h.delimiter),typeof h.quotes!="boolean"&&typeof h.quotes!="function"&&!Array.isArray(h.quotes)||(b=h.quotes),typeof h.skipEmptyLines!="boolean"&&typeof h.skipEmptyLines!="string"||(_e=h.skipEmptyLines),typeof h.newline=="string"&&(q=h.newline),typeof h.quoteChar=="string"&&(ae=h.quoteChar),typeof h.header=="boolean"&&(j=h.header),Array.isArray(h.columns)){if(h.columns.length===0)throw new Error("Option columns is empty");ee=h.columns}h.escapeChar!==void 0&&(me=h.escapeChar+ae),h.escapeFormulae instanceof RegExp?ue=h.escapeFormulae:typeof h.escapeFormulae=="boolean"&&h.escapeFormulae&&(ue=/^[=+\-@\t\r].*$/)}})(),new RegExp(x(ae),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return he(null,_,_e);if(typeof _[0]=="object")return he(ee||Object.keys(_[0]),_,_e)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||ee),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),he(_.fields||[],_.data||[],_e);throw new Error("Unable to serialize unrecognized input");function he(Z,X,W){var Ee="",be=(typeof Z=="string"&&(Z=JSON.parse(Z)),typeof X=="string"&&(X=JSON.parse(X)),Array.isArray(Z)&&0<Z.length),De=!Array.isArray(X[0]);if(be&&j){for(var te=0;te<Z.length;te++)0<te&&(Ee+=$),Ee+=re(Z[te],te);0<X.length&&(Ee+=q)}for(var ie=0;ie<X.length;ie++){var c=(be?Z:X[ie]).length,d=!1,g=be?Object.keys(X[ie]).length===0:X[ie].length===0;if(W&&!be&&(d=W==="greedy"?X[ie].join("").trim()==="":X[ie].length===1&&X[ie][0].length===0),W==="greedy"&&be){for(var w=[],p=0;p<c;p++){var T=De?Z[p]:p;w.push(X[ie][T])}d=w.join("").trim()===""}if(!d){for(var S=0;S<c;S++){0<S&&!g&&(Ee+=$);var O=be&&De?Z[S]:S;Ee+=re(X[ie][O],S)}ie<X.length-1&&(!W||0<c&&!g)&&(Ee+=q)}}return Ee}function re(Z,X){var W,Ee;return Z==null?"":Z.constructor===Date?JSON.stringify(Z).slice(1,25):(Ee=!1,ue&&typeof Z=="string"&&ue.test(Z)&&(Z="'"+Z,Ee=!0),W=Z.toString().replace(z,me),(Ee=Ee||b===!0||typeof b=="function"&&b(Z,X)||Array.isArray(b)&&b[X]||((be,De)=>{for(var te=0;te<De.length;te++)if(-1<be.indexOf(De[te]))return!0;return!1})(W,m.BAD_DELIMITERS)||-1<W.indexOf($)||W.charAt(0)===" "||W.charAt(W.length-1)===" ")?ae+W+ae:W)}},m.RECORD_SEP=String.fromCharCode(30),m.UNIT_SEP=String.fromCharCode(31),m.BYTE_ORDER_MARK="\uFEFF",m.BAD_DELIMITERS=["\r",`
|
|
22
|
+
`,'"',m.BYTE_ORDER_MARK],m.WORKERS_SUPPORTED=!s&&!!r.Worker,m.NODE_STREAM_INPUT=1,m.LocalChunkSize=10485760,m.RemoteChunkSize=5242880,m.DefaultDelimiter=",",m.Parser=G,m.ParserHandle=k,m.NetworkStreamer=E,m.FileStreamer=N,m.StringStreamer=D,m.ReadableStreamStreamer=H,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var h=_.config||{},b=[];return this.each(function(q){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var ae=0;ae<this.files.length;ae++)b.push({file:this.files[ae],inputElem:this,instanceConfig:i.extend({},h)})}),j(),this;function j(){if(b.length===0)P(_.complete)&&_.complete();else{var q,ae,me,_e,ee=b[0];if(P(_.before)){var ue=_.before(ee.file,ee.inputElem);if(typeof ue=="object"){if(ue.action==="abort")return q="AbortError",ae=ee.file,me=ee.inputElem,_e=ue.reason,void(P(_.error)&&_.error({name:q},ae,me,_e));if(ue.action==="skip")return void $();typeof ue.config=="object"&&(ee.instanceConfig=i.extend(ee.instanceConfig,ue.config))}else if(ue==="skip")return void $()}var z=ee.instanceConfig.complete;ee.instanceConfig.complete=function(he){P(z)&&z(he,ee.file,ee.inputElem),$()},m.parse(ee.file,ee.instanceConfig)}}function $(){b.splice(0,1),j()}}),o&&(r.onmessage=function(_){_=_.data,m.WORKER_ID===void 0&&_&&(m.WORKER_ID=_.workerId),typeof _.input=="string"?r.postMessage({workerId:m.WORKER_ID,results:m.parse(_.input,_.config),finished:!0}):(r.File&&_.input instanceof File||_.input instanceof Object)&&(_=m.parse(_.input,_.config))&&r.postMessage({workerId:m.WORKER_ID,results:_,finished:!0})}),(E.prototype=Object.create(y.prototype)).constructor=E,(N.prototype=Object.create(y.prototype)).constructor=N,(D.prototype=Object.create(D.prototype)).constructor=D,(H.prototype=Object.create(y.prototype)).constructor=H,m})})(bs);var ga=bs.exports;const Ea=ds(ga);/*!
|
|
23
23
|
* shared v9.14.4
|
|
24
24
|
* (c) 2025 kazuya kawaguchi
|
|
25
25
|
* Released under the MIT License.
|
|
26
|
-
*/const ot=typeof window<"u";let
|
|
27
|
-
`)}function
|
|
26
|
+
*/const ot=typeof window<"u";let tt,At;if(process.env.NODE_ENV!=="production"){const e=ot&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(tt=t=>{e.mark(t)},At=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Na=/\{([0-9a-zA-Z]+)\}/g;function er(e,...t){return t.length===1&&fe(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Na,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const ft=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ta=(e,t,n)=>va({l:e,k:t,s:n}),va=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ae=e=>typeof e=="number"&&isFinite(e),Oa=e=>Ls(e)==="[object Date]",Ot=e=>Ls(e)==="[object RegExp]",Sn=e=>oe(e)&&Object.keys(e).length===0,$e=Object.assign,ba=Object.create,Te=(e=null)=>ba(e);let ys;const ht=()=>ys||(ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Te());function Ss(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ya=Object.prototype.hasOwnProperty;function at(e,t){return ya.call(e,t)}const Oe=Array.isArray,ve=e=>typeof e=="function",K=e=>typeof e=="string",ce=e=>typeof e=="boolean",fe=e=>e!==null&&typeof e=="object",Sa=e=>fe(e)&&ve(e.then)&&ve(e.catch),Is=Object.prototype.toString,Ls=e=>Is.call(e),oe=e=>{if(!fe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Ia=e=>e==null?"":Oe(e)||oe(e)&&e.toString===Is?JSON.stringify(e,null,2):String(e);function La(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Ds=2;function Da(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const s=[];for(let o=0;o<r.length;o++)if(i+=r[o].length+1,i>=t){for(let a=o-Ds;a<=o+Ds||n>i;a++){if(a<0||a>=r.length)continue;const f=a+1;s.push(`${f}${" ".repeat(3-String(f).length)}| ${r[a]}`);const m=r[a].length;if(a===o){const y=t-(i-m)+1,E=Math.max(1,n>i?m-y:n-t);s.push(" | "+" ".repeat(y)+"^".repeat(E))}else if(a>o){if(n>i){const y=Math.max(Math.min(n-i,m),1);s.push(" | "+"^".repeat(y))}i+=m+1}}break}return s.join(`
|
|
27
|
+
`)}function In(e){let t=e;return()=>++t}function Pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ws={};function As(e){ws[e]||(ws[e]=!0,Pe(e))}function tr(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const Ln=e=>!fe(e)||Oe(e);function Dn(e,t){if(Ln(e)||Ln(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(fe(r[s])&&!fe(i[s])&&(i[s]=Array.isArray(r[s])?[]:Te()),Ln(i[s])||Ln(r[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]}))})}}/*!
|
|
28
28
|
* message-compiler v9.14.4
|
|
29
29
|
* (c) 2025 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/function
|
|
32
|
-
`,Ro=String.fromCharCode(8232),Co=String.fromCharCode(8233);function Po(e){const t=e;let n=0,r=1,i=1,s=0;const a=P=>t[P]===Ao&&t[P+1]===He,o=P=>t[P]===He,u=P=>t[P]===Co,p=P=>t[P]===Ro,O=P=>a(P)||o(P)||u(P)||p(P),g=()=>n,N=()=>r,I=()=>i,H=()=>s,M=P=>a(P)||u(P)||p(P)?He:t[P],x=()=>M(n),$=()=>M(n+s);function V(){return s=0,O(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+s)&&s++,s++,t[n+s]}function k(){n=0,r=1,i=1,s=0}function F(P=0){s=P}function L(){const P=n+s;for(;P!==n;)V();s=0}return{index:g,line:N,column:I,peekOffset:H,charAt:M,currentChar:x,currentPeek:$,next:V,peek:S,reset:k,resetPeek:F,skipToPeek:L}}const Ot=void 0,ko=".",Rs="'",Fo="tokenizer";function Mo(e,t={}){const n=t.location!==!1,r=Po(e),i=()=>r.index(),s=()=>bo(r.line(),r.column(),r.index()),a=s(),o=i(),u={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:O}=t;function g(l,f,C,...B){const Y=p();if(f.column+=C,f.offset+=C,O){const J=n?wn(Y.startLoc,f):null,Q=Bt(l,J,{domain:Fo,args:B});O(Q)}}function N(l,f,C){l.endLoc=s(),l.currentType=f;const B={type:f};return n&&(B.loc=wn(l.startLoc,l.endLoc)),C!=null&&(B.value=C),B}const I=l=>N(l,14);function H(l,f){return l.currentChar()===f?(l.next(),f):(g(se.EXPECTED_TOKEN,s(),0,f),"")}function M(l){let f="";for(;l.currentPeek()===gt||l.currentPeek()===He;)f+=l.currentPeek(),l.peek();return f}function x(l){const f=M(l);return l.skipToPeek(),f}function $(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function V(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=48&&f<=57}function S(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function k(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()==="-"?l.peek():l.currentPeek(),Y=V(B);return l.resetPeek(),Y}function F(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()===Rs;return l.resetPeek(),B}function L(l,f){const{currentType:C}=f;if(C!==8)return!1;M(l);const B=l.currentPeek()===".";return l.resetPeek(),B}function P(l,f){const{currentType:C}=f;if(C!==9)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function _(l,f){const{currentType:C}=f;if(!(C===8||C===12))return!1;M(l);const B=l.currentPeek()===":";return l.resetPeek(),B}function h(l,f){const{currentType:C}=f;if(C!==10)return!1;const B=()=>{const J=l.currentPeek();return J==="{"?$(l.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===gt||!J?!1:J===He?(l.peek(),B()):q(l,!1)},Y=B();return l.resetPeek(),Y}function T(l){M(l);const f=l.currentPeek()==="|";return l.resetPeek(),f}function j(l){const f=M(l),C=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:C,hasSpace:f.length>0}}function q(l,f=!0){const C=(Y=!1,J="",Q=!1)=>{const w=l.currentPeek();return w==="{"?J==="%"?!1:Y:w==="@"||!w?J==="%"?!0:Y:w==="%"?(l.peek(),C(Y,"%",!0)):w==="|"?J==="%"||Q?!0:!(J===gt||J===He):w===gt?(l.peek(),C(!0,gt,Q)):w===He?(l.peek(),C(!0,He,Q)):!0},B=C();return f&&l.resetPeek(),B}function K(l,f){const C=l.currentChar();return C===Ot?Ot:f(C)?(l.next(),C):null}function oe(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function pe(l){return K(l,oe)}function me(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function ee(l){return K(l,me)}function ce(l){const f=l.charCodeAt(0);return f>=48&&f<=57}function z(l){return K(l,ce)}function _e(l){const f=l.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function re(l){return K(l,_e)}function Z(l){let f="",C="";for(;f=z(l);)C+=f;return C}function X(l){x(l);const f=l.currentChar();return f!=="%"&&g(se.EXPECTED_TOKEN,s(),0,f),l.next(),"%"}function W(l){let f="";for(;;){const C=l.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if(q(l))f+=C,l.next();else break;else if(C===gt||C===He)if(q(l))f+=C,l.next();else{if(T(l))break;f+=C,l.next()}else f+=C,l.next()}return f}function ge(l){x(l);let f="",C="";for(;f=ee(l);)C+=f;return l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ye(l){x(l);let f="";return l.currentChar()==="-"?(l.next(),f+=`-${Z(l)}`):f+=Z(l),l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f}function De(l){return l!==Rs&&l!==He}function te(l){x(l),H(l,"'");let f="",C="";for(;f=K(l,De);)f==="\\"?C+=ie(l):C+=f;const B=l.currentChar();return B===He||B===Ot?(g(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),B===He&&(l.next(),H(l,"'")),C):(H(l,"'"),C)}function ie(l){const f=l.currentChar();switch(f){case"\\":case"'":return l.next(),`\\${f}`;case"u":return c(l,f,4);case"U":return c(l,f,6);default:return g(se.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function c(l,f,C){H(l,f);let B="";for(let Y=0;Y<C;Y++){const J=re(l);if(!J){g(se.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${B}${l.currentChar()}`);break}B+=J}return`\\${f}${B}`}function d(l){return l!=="{"&&l!=="}"&&l!==gt&&l!==He}function E(l){x(l);let f="",C="";for(;f=K(l,d);)C+=f;return C}function A(l){let f="",C="";for(;f=pe(l);)C+=f;return C}function m(l){const f=C=>{const B=l.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===gt?C:(C+=B,l.next(),f(C))};return f("")}function v(l){x(l);const f=H(l,"|");return x(l),f}function D(l,f){let C=null;switch(l.currentChar()){case"{":return f.braceNest>=1&&g(se.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),C=N(f,2,"{"),x(l),f.braceNest++,C;case"}":return f.braceNest>0&&f.currentType===2&&g(se.EMPTY_PLACEHOLDER,s(),0),l.next(),C=N(f,3,"}"),f.braceNest--,f.braceNest>0&&x(l),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),C;case"@":return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=y(l,f)||I(f),f.braceNest=0,C;default:{let Y=!0,J=!0,Q=!0;if(T(l))return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,b(l,f);if(Y=S(l,f))return C=N(f,5,ge(l)),x(l),C;if(J=k(l,f))return C=N(f,6,ye(l)),x(l),C;if(Q=F(l,f))return C=N(f,7,te(l)),x(l),C;if(!Y&&!J&&!Q)return C=N(f,13,E(l)),g(se.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),x(l),C;break}}return C}function y(l,f){const{currentType:C}=f;let B=null;const Y=l.currentChar();switch((C===8||C===9||C===12||C===10)&&(Y===He||Y===gt)&&g(se.INVALID_LINKED_FORMAT,s(),0),Y){case"@":return l.next(),B=N(f,8,"@"),f.inLinked=!0,B;case".":return x(l),l.next(),N(f,9,".");case":":return x(l),l.next(),N(f,10,":");default:return T(l)?(B=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,B):L(l,f)||_(l,f)?(x(l),y(l,f)):P(l,f)?(x(l),N(f,12,A(l))):h(l,f)?(x(l),Y==="{"?D(l,f)||B:N(f,11,m(l))):(C===8&&g(se.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,b(l,f))}}function b(l,f){let C={type:14};if(f.braceNest>0)return D(l,f)||I(f);if(f.inLinked)return y(l,f)||I(f);switch(l.currentChar()){case"{":return D(l,f)||I(f);case"}":return g(se.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(f,3,"}");case"@":return y(l,f)||I(f);default:{if(T(l))return C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;const{isModulo:Y,hasSpace:J}=j(l);if(Y)return J?N(f,0,W(l)):N(f,4,X(l));if(q(l))return N(f,0,W(l));break}}return C}function R(){const{currentType:l,offset:f,startLoc:C,endLoc:B}=u;return u.lastType=l,u.lastOffset=f,u.lastStartLoc=C,u.lastEndLoc=B,u.offset=i(),u.startLoc=s(),r.currentChar()===Ot?N(u,14):b(r,u)}return{nextToken:R,currentOffset:i,currentPosition:s,context:p}}const Vo="parser",xo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Uo(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function $o(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,n){const h=t?wn(F,_):null,T=Bt(k,h,{domain:Vo,args:P});n(T)}}function s(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,r){const h=t?wn(F,_):null;r(Io(k,h,P))}}function a(S,k,F){const L={type:S};return t&&(L.start=k,L.end=k,L.loc={start:F,end:F}),L}function o(S,k,F,L){L&&(S.type=L),t&&(S.end=k,S.loc&&(S.loc.end=F))}function u(S,k){const F=S.context(),L=a(3,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function p(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(5,L,P);return _.index=parseInt(k,10),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function O(S,k,F){const L=S.context(),{lastOffset:P,lastStartLoc:_}=L,h=a(4,P,_);return h.key=k,F===!0&&(h.modulo=!0),S.nextToken(),o(h,S.currentOffset(),S.currentPosition()),h}function g(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(9,L,P);return _.value=k.replace(xo,Uo),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function N(S){const k=S.nextToken(),F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(8,L,P);return k.type!==12?(i(S,se.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),_.value="",o(_,L,P),{nextConsumeToken:k,node:_}):(k.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,ct(k)),_.value=k.value||"",o(_,S.currentOffset(),S.currentPosition()),{node:_})}function I(S,k){const F=S.context(),L=a(7,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function H(S){const k=S.context(),F=a(6,k.offset,k.startLoc);let L=S.nextToken();if(L.type===9){const P=N(S);F.modifier=P.node,L=P.nextConsumeToken||S.nextToken()}switch(L.type!==10&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),L=S.nextToken(),L.type===2&&(L=S.nextToken()),L.type){case 11:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=I(S,L.value||"");break;case 5:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=O(S,L.value||"");break;case 6:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=p(S,L.value||"");break;case 7:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=g(S,L.value||"");break;default:{i(S,se.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const P=S.context(),_=a(7,P.offset,P.startLoc);return _.value="",o(_,P.offset,P.startLoc),F.key=_,o(F,P.offset,P.startLoc),{nextConsumeToken:L,node:F}}}return o(F,S.currentOffset(),S.currentPosition()),{node:F}}function M(S){const k=S.context(),F=k.currentType===1?S.currentOffset():k.offset,L=k.currentType===1?k.endLoc:k.startLoc,P=a(2,F,L);P.items=[];let _=null,h=null;do{const q=_||S.nextToken();switch(_=null,q.type){case 0:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(u(S,q.value||""));break;case 6:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(p(S,q.value||""));break;case 4:h=!0;break;case 5:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(O(S,q.value||"",!!h)),h&&(s(S,An.USE_MODULO_SYNTAX,k.lastStartLoc,0,ct(q)),h=null);break;case 7:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(g(S,q.value||""));break;case 8:{const K=H(S);P.items.push(K.node),_=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const T=k.currentType===1?k.lastOffset:S.currentOffset(),j=k.currentType===1?k.lastEndLoc:S.currentPosition();return o(P,T,j),P}function x(S,k,F,L){const P=S.context();let _=L.items.length===0;const h=a(1,k,F);h.cases=[],h.cases.push(L);do{const T=M(S);_||(_=T.items.length===0),h.cases.push(T)}while(P.currentType!==14);return _&&i(S,se.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),o(h,S.currentOffset(),S.currentPosition()),h}function $(S){const k=S.context(),{offset:F,startLoc:L}=k,P=M(S);return k.currentType===14?P:x(S,F,L,P)}function V(S){const k=Mo(S,Ds({},e)),F=k.context(),L=a(0,F.offset,F.startLoc);return t&&L.loc&&(L.loc.source=S),L.body=$(k),e.onCacheKey&&(L.cacheKey=e.onCacheKey(S)),F.currentType!==14&&i(k,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,S[F.offset]||""),o(L,k.currentOffset(),k.currentPosition()),L}return{parse:V}}function ct(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function qo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Cs(e,t){for(let n=0;n<e.length;n++)nr(e[n],t)}function nr(e,t){switch(e.type){case 1:Cs(e.cases,t),t.helper("plural");break;case 2:Cs(e.items,t);break;case 6:{nr(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Bo(e,t={}){const n=qo(e);n.helper("normalize"),e.body&&nr(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Wo(e){const t=e.body;return t.type===2?Ps(t):t.cases.forEach(n=>Ps(n)),e}function Ps(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=As(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ho="minifier";function Wt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Wt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Wt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Wt(t.key),t.k=t.key,delete t.key,t.modifier&&(Wt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Bt(se.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ho,args:[e.type]})}delete e.type}const jo="parser";function Go(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,a=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const u=()=>o;function p(x,$){o.code+=x}function O(x,$=!0){const V=$?i:"";p(s?V+" ".repeat(x):V)}function g(x=!0){const $=++o.indentLevel;x&&O($)}function N(x=!0){const $=--o.indentLevel;x&&O($)}function I(){O(o.indentLevel)}return{context:u,push:p,indent:g,deindent:N,newline:I,helper:x=>`_${x}`,needIndent:()=>o.needIndent}}function Ko(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ht(e,t.key),t.modifier?(e.push(", "),Ht(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yo(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Ht(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Qo(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Ht(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Xo(e,t){t.body?Ht(e,t.body):e.push("null")}function Ht(e,t){const{helper:n}=e;switch(t.type){case 0:Xo(e,t);break;case 1:Qo(e,t);break;case 2:Yo(e,t);break;case 6:Ko(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Bt(se.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jo,args:[t.type]})}}const Jo=(e,t={})=>{const n=ws(t.mode)?t.mode:"normal",r=ws(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
33
|
-
`,
|
|
31
|
+
*/function wa(e,t,n){return{line:e,column:t,offset:n}}function wn(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const Aa=/\{([0-9a-zA-Z]+)\}/g;function Rs(e,...t){return t.length===1&&Ra(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Aa,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Cs=Object.assign,Ps=e=>typeof e=="string",Ra=e=>e!==null&&typeof e=="object";function Fs(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const An={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ca={[An.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Pa(e,t,...n){const r=Rs(Ca[e]||"",...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const se={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Fa={[se.EXPECTED_TOKEN]:"Expected token: '{0}'",[se.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[se.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[se.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[se.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[se.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[se.EMPTY_PLACEHOLDER]:"Empty placeholder",[se.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[se.INVALID_LINKED_FORMAT]:"Invalid linked format",[se.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[se.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[se.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[se.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[se.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[se.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Wt(e,t,n={}){const{domain:r,messages:i,args:s}=n,o=Rs((i||Fa)[e]||"",...s||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function ka(e){throw e}const Ma=/<\/?[\w\s="/.':;#-\/]+>/,xa=e=>Ma.test(e),gt=" ",Va="\r",Ge=`
|
|
32
|
+
`,Ua=String.fromCharCode(8232),$a=String.fromCharCode(8233);function Ba(e){const t=e;let n=0,r=1,i=1,s=0;const o=P=>t[P]===Va&&t[P+1]===Ge,a=P=>t[P]===Ge,f=P=>t[P]===$a,m=P=>t[P]===Ua,y=P=>o(P)||a(P)||f(P)||m(P),E=()=>n,N=()=>r,D=()=>i,H=()=>s,k=P=>o(P)||f(P)||m(P)?Ge:t[P],x=()=>k(n),G=()=>k(n+s);function V(){return s=0,y(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function A(){return o(n+s)&&s++,s++,t[n+s]}function M(){n=0,r=1,i=1,s=0}function F(P=0){s=P}function I(){const P=n+s;for(;P!==n;)V();s=0}return{index:E,line:N,column:D,peekOffset:H,charAt:k,currentChar:x,currentPeek:G,next:V,peek:A,reset:M,resetPeek:F,skipToPeek:I}}const bt=void 0,Wa=".",ks="'",Ha="tokenizer";function Ga(e,t={}){const n=t.location!==!1,r=Ba(e),i=()=>r.index(),s=()=>wa(r.line(),r.column(),r.index()),o=s(),a=i(),f={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},m=()=>f,{onError:y}=t;function E(l,u,C,...B){const Q=m();if(u.column+=C,u.offset+=C,y){const J=n?wn(Q.startLoc,u):null,Y=Wt(l,J,{domain:Ha,args:B});y(Y)}}function N(l,u,C){l.endLoc=s(),l.currentType=u;const B={type:u};return n&&(B.loc=wn(l.startLoc,l.endLoc)),C!=null&&(B.value=C),B}const D=l=>N(l,14);function H(l,u){return l.currentChar()===u?(l.next(),u):(E(se.EXPECTED_TOKEN,s(),0,u),"")}function k(l){let u="";for(;l.currentPeek()===gt||l.currentPeek()===Ge;)u+=l.currentPeek(),l.peek();return u}function x(l){const u=k(l);return l.skipToPeek(),u}function G(l){if(l===bt)return!1;const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function V(l){if(l===bt)return!1;const u=l.charCodeAt(0);return u>=48&&u<=57}function A(l,u){const{currentType:C}=u;if(C!==2)return!1;k(l);const B=G(l.currentPeek());return l.resetPeek(),B}function M(l,u){const{currentType:C}=u;if(C!==2)return!1;k(l);const B=l.currentPeek()==="-"?l.peek():l.currentPeek(),Q=V(B);return l.resetPeek(),Q}function F(l,u){const{currentType:C}=u;if(C!==2)return!1;k(l);const B=l.currentPeek()===ks;return l.resetPeek(),B}function I(l,u){const{currentType:C}=u;if(C!==8)return!1;k(l);const B=l.currentPeek()===".";return l.resetPeek(),B}function P(l,u){const{currentType:C}=u;if(C!==9)return!1;k(l);const B=G(l.currentPeek());return l.resetPeek(),B}function _(l,u){const{currentType:C}=u;if(!(C===8||C===12))return!1;k(l);const B=l.currentPeek()===":";return l.resetPeek(),B}function h(l,u){const{currentType:C}=u;if(C!==10)return!1;const B=()=>{const J=l.currentPeek();return J==="{"?G(l.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===gt||!J?!1:J===Ge?(l.peek(),B()):$(l,!1)},Q=B();return l.resetPeek(),Q}function b(l){k(l);const u=l.currentPeek()==="|";return l.resetPeek(),u}function j(l){const u=k(l),C=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:C,hasSpace:u.length>0}}function $(l,u=!0){const C=(Q=!1,J="",Y=!1)=>{const L=l.currentPeek();return L==="{"?J==="%"?!1:Q:L==="@"||!L?J==="%"?!0:Q:L==="%"?(l.peek(),C(Q,"%",!0)):L==="|"?J==="%"||Y?!0:!(J===gt||J===Ge):L===gt?(l.peek(),C(!0,gt,Y)):L===Ge?(l.peek(),C(!0,Ge,Y)):!0},B=C();return u&&l.resetPeek(),B}function q(l,u){const C=l.currentChar();return C===bt?bt:u(C)?(l.next(),C):null}function ae(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function me(l){return q(l,ae)}function _e(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function ee(l){return q(l,_e)}function ue(l){const u=l.charCodeAt(0);return u>=48&&u<=57}function z(l){return q(l,ue)}function he(l){const u=l.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function re(l){return q(l,he)}function Z(l){let u="",C="";for(;u=z(l);)C+=u;return C}function X(l){x(l);const u=l.currentChar();return u!=="%"&&E(se.EXPECTED_TOKEN,s(),0,u),l.next(),"%"}function W(l){let u="";for(;;){const C=l.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if($(l))u+=C,l.next();else break;else if(C===gt||C===Ge)if($(l))u+=C,l.next();else{if(b(l))break;u+=C,l.next()}else u+=C,l.next()}return u}function Ee(l){x(l);let u="",C="";for(;u=ee(l);)C+=u;return l.currentChar()===bt&&E(se.UNTERMINATED_CLOSING_BRACE,s(),0),C}function be(l){x(l);let u="";return l.currentChar()==="-"?(l.next(),u+=`-${Z(l)}`):u+=Z(l),l.currentChar()===bt&&E(se.UNTERMINATED_CLOSING_BRACE,s(),0),u}function De(l){return l!==ks&&l!==Ge}function te(l){x(l),H(l,"'");let u="",C="";for(;u=q(l,De);)u==="\\"?C+=ie(l):C+=u;const B=l.currentChar();return B===Ge||B===bt?(E(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),B===Ge&&(l.next(),H(l,"'")),C):(H(l,"'"),C)}function ie(l){const u=l.currentChar();switch(u){case"\\":case"'":return l.next(),`\\${u}`;case"u":return c(l,u,4);case"U":return c(l,u,6);default:return E(se.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function c(l,u,C){H(l,u);let B="";for(let Q=0;Q<C;Q++){const J=re(l);if(!J){E(se.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${B}${l.currentChar()}`);break}B+=J}return`\\${u}${B}`}function d(l){return l!=="{"&&l!=="}"&&l!==gt&&l!==Ge}function g(l){x(l);let u="",C="";for(;u=q(l,d);)C+=u;return C}function w(l){let u="",C="";for(;u=me(l);)C+=u;return C}function p(l){const u=C=>{const B=l.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===gt?C:(C+=B,l.next(),u(C))};return u("")}function T(l){x(l);const u=H(l,"|");return x(l),u}function S(l,u){let C=null;switch(l.currentChar()){case"{":return u.braceNest>=1&&E(se.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),C=N(u,2,"{"),x(l),u.braceNest++,C;case"}":return u.braceNest>0&&u.currentType===2&&E(se.EMPTY_PLACEHOLDER,s(),0),l.next(),C=N(u,3,"}"),u.braceNest--,u.braceNest>0&&x(l),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),C;case"@":return u.braceNest>0&&E(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=O(l,u)||D(u),u.braceNest=0,C;default:{let Q=!0,J=!0,Y=!0;if(b(l))return u.braceNest>0&&E(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=N(u,1,T(l)),u.braceNest=0,u.inLinked=!1,C;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return E(se.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,v(l,u);if(Q=A(l,u))return C=N(u,5,Ee(l)),x(l),C;if(J=M(l,u))return C=N(u,6,be(l)),x(l),C;if(Y=F(l,u))return C=N(u,7,te(l)),x(l),C;if(!Q&&!J&&!Y)return C=N(u,13,g(l)),E(se.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),x(l),C;break}}return C}function O(l,u){const{currentType:C}=u;let B=null;const Q=l.currentChar();switch((C===8||C===9||C===12||C===10)&&(Q===Ge||Q===gt)&&E(se.INVALID_LINKED_FORMAT,s(),0),Q){case"@":return l.next(),B=N(u,8,"@"),u.inLinked=!0,B;case".":return x(l),l.next(),N(u,9,".");case":":return x(l),l.next(),N(u,10,":");default:return b(l)?(B=N(u,1,T(l)),u.braceNest=0,u.inLinked=!1,B):I(l,u)||_(l,u)?(x(l),O(l,u)):P(l,u)?(x(l),N(u,12,w(l))):h(l,u)?(x(l),Q==="{"?S(l,u)||B:N(u,11,p(l))):(C===8&&E(se.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,v(l,u))}}function v(l,u){let C={type:14};if(u.braceNest>0)return S(l,u)||D(u);if(u.inLinked)return O(l,u)||D(u);switch(l.currentChar()){case"{":return S(l,u)||D(u);case"}":return E(se.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(u,3,"}");case"@":return O(l,u)||D(u);default:{if(b(l))return C=N(u,1,T(l)),u.braceNest=0,u.inLinked=!1,C;const{isModulo:Q,hasSpace:J}=j(l);if(Q)return J?N(u,0,W(l)):N(u,4,X(l));if($(l))return N(u,0,W(l));break}}return C}function R(){const{currentType:l,offset:u,startLoc:C,endLoc:B}=f;return f.lastType=l,f.lastOffset=u,f.lastStartLoc=C,f.lastEndLoc=B,f.offset=i(),f.startLoc=s(),r.currentChar()===bt?N(f,14):v(r,f)}return{nextToken:R,currentOffset:i,currentPosition:s,context:m}}const ja="parser",Ka=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function qa(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Qa(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(A,M,F,I,...P){const _=A.currentPosition();if(_.offset+=I,_.column+=I,n){const h=t?wn(F,_):null,b=Wt(M,h,{domain:ja,args:P});n(b)}}function s(A,M,F,I,...P){const _=A.currentPosition();if(_.offset+=I,_.column+=I,r){const h=t?wn(F,_):null;r(Pa(M,h,P))}}function o(A,M,F){const I={type:A};return t&&(I.start=M,I.end=M,I.loc={start:F,end:F}),I}function a(A,M,F,I){I&&(A.type=I),t&&(A.end=M,A.loc&&(A.loc.end=F))}function f(A,M){const F=A.context(),I=o(3,F.offset,F.startLoc);return I.value=M,a(I,A.currentOffset(),A.currentPosition()),I}function m(A,M){const F=A.context(),{lastOffset:I,lastStartLoc:P}=F,_=o(5,I,P);return _.index=parseInt(M,10),A.nextToken(),a(_,A.currentOffset(),A.currentPosition()),_}function y(A,M,F){const I=A.context(),{lastOffset:P,lastStartLoc:_}=I,h=o(4,P,_);return h.key=M,F===!0&&(h.modulo=!0),A.nextToken(),a(h,A.currentOffset(),A.currentPosition()),h}function E(A,M){const F=A.context(),{lastOffset:I,lastStartLoc:P}=F,_=o(9,I,P);return _.value=M.replace(Ka,qa),A.nextToken(),a(_,A.currentOffset(),A.currentPosition()),_}function N(A){const M=A.nextToken(),F=A.context(),{lastOffset:I,lastStartLoc:P}=F,_=o(8,I,P);return M.type!==12?(i(A,se.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),_.value="",a(_,I,P),{nextConsumeToken:M,node:_}):(M.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,lt(M)),_.value=M.value||"",a(_,A.currentOffset(),A.currentPosition()),{node:_})}function D(A,M){const F=A.context(),I=o(7,F.offset,F.startLoc);return I.value=M,a(I,A.currentOffset(),A.currentPosition()),I}function H(A){const M=A.context(),F=o(6,M.offset,M.startLoc);let I=A.nextToken();if(I.type===9){const P=N(A);F.modifier=P.node,I=P.nextConsumeToken||A.nextToken()}switch(I.type!==10&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt(I)),I=A.nextToken(),I.type===2&&(I=A.nextToken()),I.type){case 11:I.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt(I)),F.key=D(A,I.value||"");break;case 5:I.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt(I)),F.key=y(A,I.value||"");break;case 6:I.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt(I)),F.key=m(A,I.value||"");break;case 7:I.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt(I)),F.key=E(A,I.value||"");break;default:{i(A,se.UNEXPECTED_EMPTY_LINKED_KEY,M.lastStartLoc,0);const P=A.context(),_=o(7,P.offset,P.startLoc);return _.value="",a(_,P.offset,P.startLoc),F.key=_,a(F,P.offset,P.startLoc),{nextConsumeToken:I,node:F}}}return a(F,A.currentOffset(),A.currentPosition()),{node:F}}function k(A){const M=A.context(),F=M.currentType===1?A.currentOffset():M.offset,I=M.currentType===1?M.endLoc:M.startLoc,P=o(2,F,I);P.items=[];let _=null,h=null;do{const $=_||A.nextToken();switch(_=null,$.type){case 0:$.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt($)),P.items.push(f(A,$.value||""));break;case 6:$.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt($)),P.items.push(m(A,$.value||""));break;case 4:h=!0;break;case 5:$.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt($)),P.items.push(y(A,$.value||"",!!h)),h&&(s(A,An.USE_MODULO_SYNTAX,M.lastStartLoc,0,lt($)),h=null);break;case 7:$.value==null&&i(A,se.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,lt($)),P.items.push(E(A,$.value||""));break;case 8:{const q=H(A);P.items.push(q.node),_=q.nextConsumeToken||null;break}}}while(M.currentType!==14&&M.currentType!==1);const b=M.currentType===1?M.lastOffset:A.currentOffset(),j=M.currentType===1?M.lastEndLoc:A.currentPosition();return a(P,b,j),P}function x(A,M,F,I){const P=A.context();let _=I.items.length===0;const h=o(1,M,F);h.cases=[],h.cases.push(I);do{const b=k(A);_||(_=b.items.length===0),h.cases.push(b)}while(P.currentType!==14);return _&&i(A,se.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),a(h,A.currentOffset(),A.currentPosition()),h}function G(A){const M=A.context(),{offset:F,startLoc:I}=M,P=k(A);return M.currentType===14?P:x(A,F,I,P)}function V(A){const M=Ga(A,Cs({},e)),F=M.context(),I=o(0,F.offset,F.startLoc);return t&&I.loc&&(I.loc.source=A),I.body=G(M),e.onCacheKey&&(I.cacheKey=e.onCacheKey(A)),F.currentType!==14&&i(M,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,A[F.offset]||""),a(I,M.currentOffset(),M.currentPosition()),I}return{parse:V}}function lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ya(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Ms(e,t){for(let n=0;n<e.length;n++)nr(e[n],t)}function nr(e,t){switch(e.type){case 1:Ms(e.cases,t),t.helper("plural");break;case 2:Ms(e.items,t);break;case 6:{nr(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Xa(e,t={}){const n=Ya(e);n.helper("normalize"),e.body&&nr(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Ja(e){const t=e.body;return t.type===2?xs(t):t.cases.forEach(n=>xs(n)),e}function xs(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Fs(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const za="minifier";function Ht(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ht(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Ht(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Ht(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ht(t.key),t.k=t.key,delete t.key,t.modifier&&(Ht(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Wt(se.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:za,args:[e.type]})}delete e.type}const Za="parser";function el(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const f=()=>a;function m(x,G){a.code+=x}function y(x,G=!0){const V=G?i:"";m(s?V+" ".repeat(x):V)}function E(x=!0){const G=++a.indentLevel;x&&y(G)}function N(x=!0){const G=--a.indentLevel;x&&y(G)}function D(){y(a.indentLevel)}return{context:f,push:m,indent:E,deindent:N,newline:D,helper:x=>`_${x}`,needIndent:()=>a.needIndent}}function tl(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Gt(e,t.key),t.modifier?(e.push(", "),Gt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function nl(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Gt(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function rl(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Gt(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function sl(e,t){t.body?Gt(e,t.body):e.push("null")}function Gt(e,t){const{helper:n}=e;switch(t.type){case 0:sl(e,t);break;case 1:rl(e,t);break;case 2:nl(e,t);break;case 6:tl(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Wt(se.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Za,args:[t.type]})}}const il=(e,t={})=>{const n=Ps(t.mode)?t.mode:"normal",r=Ps(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
33
|
+
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],f=el(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:o});f.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),f.indent(o),a.length>0&&(f.push(`const { ${Fs(a.map(E=>`${E}: _${E}`),", ")} } = ctx`),f.newline()),f.push("return "),Gt(f,e),f.deindent(o),f.push("}"),delete e.helpers;const{code:m,map:y}=f.context();return{ast:e,code:m,map:y?y.toJSON():void 0}};function ol(e,t={}){const n=Cs({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,a=Qa(n).parse(e);return r?(s&&Ja(a),i&&Ht(a),{ast:a,code:""}):(Xa(a,n),il(a,n))}/*!
|
|
34
34
|
* core-base v9.14.4
|
|
35
35
|
* (c) 2025 kazuya kawaguchi
|
|
36
36
|
* Released under the MIT License.
|
|
37
|
-
*/function Zo(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return ue(e)&&rr(e)===0&&(lt(e,"b")||lt(e,"body"))}const ks=["b","body"];function el(e){return Tt(e,ks)}const Fs=["c","cases"];function tl(e){return Tt(e,Fs,[])}const Ms=["s","static"];function nl(e){return Tt(e,Ms)}const Vs=["i","items"];function rl(e){return Tt(e,Vs,[])}const xs=["t","type"];function rr(e){return Tt(e,xs)}const Us=["v","value"];function Rn(e,t){const n=Tt(e,Us);if(n!=null)return n;throw on(t)}const $s=["m","modifier"];function sl(e){return Tt(e,$s)}const qs=["k","key"];function il(e){const t=Tt(e,qs);if(t)return t;throw on(6)}function Tt(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(lt(e,i)&&e[i]!=null)return e[i]}return n}const Bs=[...ks,...Fs,...Ms,...Vs,...qs,...$s,...Us,...xs];function on(e){return new Error(`unhandled node type: ${e}`)}const It=[];It[0]={w:[0],i:[3,0],"[":[4],o:[7]},It[1]={w:[1],".":[2],"[":[4],o:[7]},It[2]={w:[2],i:[3,0],0:[3,0]},It[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},It[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},It[5]={"'":[4,0],o:8,l:[5,0]},It[6]={'"':[4,0],o:8,l:[6,0]};const al=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ol(e){return al.test(e)}function ll(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function cl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ul(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ol(t)?ll(t):"*"+t}function fl(e){const t=[];let n=-1,r=0,i=0,s,a,o,u,p,O,g;const N=[];N[0]=()=>{a===void 0?a=o:a+=o},N[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},N[2]=()=>{N[0](),i++},N[3]=()=>{if(i>0)i--,r=4,N[0]();else{if(i=0,a===void 0||(a=ul(a),a===!1))return!1;N[1]()}};function I(){const H=e[n+1];if(r===5&&H==="'"||r===6&&H==='"')return n++,o="\\"+H,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(u=cl(s),g=It[r],p=g[u]||g.l||8,p===8||(r=p[0],p[1]!==void 0&&(O=N[p[1]],O&&(o=s,O()===!1))))return;if(r===7)return t}}const Ws=new Map;function dl(e,t){return ue(e)?e[t]:null}function pl(e,t){if(!ue(e))return null;let n=Ws.get(t);if(n||(n=fl(t),n&&Ws.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const a=n[s];if(Bs.includes(a)&&rt(i))return null;const o=i[a];if(o===void 0||ve(i))return null;i=o,s++}return i}const ml=e=>e,_l=e=>"",hl="text",gl=e=>e.length===0?"":No(e),El=Eo;function Hs(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Nl(e){const t=Ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ae(e.named.count)||Ae(e.named.n))?Ae(e.named.count)?e.named.count:Ae(e.named.n)?e.named.n:t:t}function vl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function bl(e={}){const t=e.locale,n=Nl(e),r=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?e.pluralRules[t]:Hs,i=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?Hs:void 0,s=$=>$[r(n,$.length,i)],a=e.list||[],o=$=>a[$],u=e.named||Ne();Ae(e.pluralIndex)&&vl(n,u);const p=$=>u[$];function O($){const V=ve(e.messages)?e.messages($):ue(e.messages)?e.messages[$]:!1;return V||(e.parent?e.parent.message($):_l)}const g=$=>e.modifiers?e.modifiers[$]:ml,N=ae(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:gl,I=ae(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:El,H=ae(e.processor)&&G(e.processor.type)?e.processor.type:hl,x={list:o,named:p,plural:s,linked:($,...V)=>{const[S,k]=V;let F="text",L="";V.length===1?ue(S)?(L=S.modifier||L,F=S.type||F):G(S)&&(L=S||L):V.length===2&&(G(S)&&(L=S||L),G(k)&&(F=k||F));const P=O($)(x),_=F==="vnode"&&be(P)&&L?P[0]:P;return L?g(L)(_,F):_},message:O,type:H,interpolate:I,normalize:N,values:$e(Ne(),a,u)};return x}let ln=null;function yl(e){ln=e}function Ol(e,t,n){ln&&ln.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Tl=Il("function:translate");function Il(e){return t=>ln&&ln.emit(e,t)}const js=An.__EXTEND_POINT__,Rt=Sn(js),je={NOT_FOUND_KEY:js,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Sl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ct(e,...t){return er(Sl[e],...t)}const Gs=se.__EXTEND_POINT__,Pt=Sn(Gs),Ve={INVALID_ARGUMENT:Gs,INVALID_DATE_ARGUMENT:Pt(),INVALID_ISO_DATE_ARGUMENT:Pt(),NOT_SUPPORT_NON_STRING_MESSAGE:Pt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Pt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Pt(),NOT_SUPPORT_LOCALE_TYPE:Pt(),__EXTEND_POINT__:Pt()};function pt(e){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Ll}:void 0)}const Ll={[Ve.INVALID_ARGUMENT]:"Invalid arguments",[Ve.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ve.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ve.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ve.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sr(e,t){return t.locale!=null?Ks(t.locale):Ks(e.locale)}let ir;function Ks(e){if(G(e))return e;if(ve(e)){if(e.resolvedOnce&&ir!=null)return ir;if(e.constructor.name==="Function"){const t=e();if(go(t))throw pt(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ir=t}else throw pt(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Ve.NOT_SUPPORT_LOCALE_TYPE)}function Dl(e,t,n){return[...new Set([n,...be(t)?t:ue(t)?Object.keys(t):G(t)?[t]:[n]])]}function Ys(e,t,n){const r=G(n)?n:jt,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;be(a);)a=Qs(s,a,t);const o=be(t)||!ae(t)?t:t.default?t.default:null;a=G(o)?[o]:o,be(a)&&Qs(s,a,!1),i.__localeChainCache.set(r,s)}return s}function Qs(e,t,n){let r=!0;for(let i=0;i<t.length&&le(r);i++){const s=t[i];G(s)&&(r=wl(e,t[i],n))}return r}function wl(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Al(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Al(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(be(n)||ae(n))&&n[i]&&(r=n[i])}return r}const Rl="9.14.4",Cn=-1,jt="en-US",Pn="",Xs=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Cl(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Xs(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Xs(e.children):e}}let Js;function zs(e){Js=e}let Zs;function Pl(e){Zs=e}let ei;function kl(e){ei=e}let ti=null;const Fl=e=>{ti=e},Ml=()=>ti;let ni=null;const ri=e=>{ni=e},Vl=()=>ni;let si=0;function xl(e={}){const t=ve(e.onWarn)?e.onWarn:Pe,n=G(e.version)?e.version:Rl,r=G(e.locale)||ve(e.locale)?e.locale:jt,i=ve(r)?jt:r,s=be(e.fallbackLocale)||ae(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=ae(e.messages)?e.messages:ar(i),o=ae(e.datetimeFormats)?e.datetimeFormats:ar(i),u=ae(e.numberFormats)?e.numberFormats:ar(i),p=$e(Ne(),e.modifiers,Cl()),O=e.pluralRules||Ne(),g=ve(e.missing)?e.missing:null,N=le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,I=le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,H=!!e.fallbackFormat,M=!!e.unresolving,x=ve(e.postTranslation)?e.postTranslation:null,$=ae(e.processor)?e.processor:null,V=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,k=ve(e.messageCompiler)?e.messageCompiler:Js;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&Ss(Ct(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const F=ve(e.messageResolver)?e.messageResolver:Zs||dl,L=ve(e.localeFallbacker)?e.localeFallbacker:ei||Dl,P=ue(e.fallbackContext)?e.fallbackContext:void 0,_=e,h=ue(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,T=ue(_.__numberFormatters)?_.__numberFormatters:new Map,j=ue(_.__meta)?_.__meta:{};si++;const q={version:n,cid:si,locale:r,fallbackLocale:s,messages:a,modifiers:p,pluralRules:O,missing:g,missingWarn:N,fallbackWarn:I,fallbackFormat:H,unresolving:M,postTranslation:x,processor:$,warnHtmlMessage:V,escapeParameter:S,messageCompiler:k,messageResolver:F,localeFallbacker:L,fallbackContext:P,onWarn:t,__meta:j};return q.datetimeFormats=o,q.numberFormats=u,q.__datetimeFormatters=h,q.__numberFormatters=T,process.env.NODE_ENV!=="production"&&(q.__v_emitter=_.__v_emitter!=null?_.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ol(q,n,j),q}const ar=e=>({[e]:Ne()});function kn(e,t){return e instanceof RegExp?e.test(t):e}function ii(e,t){return e instanceof RegExp?e.test(t):e}function or(e,t,n,r,i){const{missing:s,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(s!==null){const o=s(e,n,t,i);return G(o)?o:t}else return process.env.NODE_ENV!=="production"&&ii(r,t)&&a(Ct(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ai(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ul(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ai(e,t[r]))return!0;return!1}function lr(e){return n=>$l(n,e)}function $l(e,t){const n=el(t);if(n==null)throw on(0);if(rr(n)===1){const s=tl(n);return e.plural(s.reduce((a,o)=>[...a,oi(e,o)],[]))}else return oi(e,n)}function oi(e,t){const n=nl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=rl(t).reduce((i,s)=>[...i,cr(e,s)],[]);return e.normalize(r)}}function cr(e,t){const n=rr(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(lt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(lt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw on(n)}case 5:{const r=t;if(lt(r,"i")&&Ae(r.i))return e.interpolate(e.list(r.i));if(lt(r,"index")&&Ae(r.index))return e.interpolate(e.list(r.index));throw on(n)}case 6:{const r=t,i=sl(r),s=il(r);return e.linked(cr(e,s),i?cr(e,i):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ql="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function li(e,t){t&&wo(e)&&Pe(er(ql,{source:e}))}const ci=e=>e;let Gt=Ne();function ui(e){e.code===An.USE_MODULO_SYNTAX&&Pe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
37
|
+
*/function al(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function nt(e){return fe(e)&&rr(e)===0&&(at(e,"b")||at(e,"body"))}const Vs=["b","body"];function ll(e){return yt(e,Vs)}const Us=["c","cases"];function cl(e){return yt(e,Us,[])}const $s=["s","static"];function ul(e){return yt(e,$s)}const Bs=["i","items"];function fl(e){return yt(e,Bs,[])}const Ws=["t","type"];function rr(e){return yt(e,Ws)}const Hs=["v","value"];function Rn(e,t){const n=yt(e,Hs);if(n!=null)return n;throw an(t)}const Gs=["m","modifier"];function dl(e){return yt(e,Gs)}const js=["k","key"];function pl(e){const t=yt(e,js);if(t)return t;throw an(6)}function yt(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(at(e,i)&&e[i]!=null)return e[i]}return n}const Ks=[...Vs,...Us,...$s,...Bs,...js,...Gs,...Hs,...Ws];function an(e){return new Error(`unhandled node type: ${e}`)}const St=[];St[0]={w:[0],i:[3,0],"[":[4],o:[7]},St[1]={w:[1],".":[2],"[":[4],o:[7]},St[2]={w:[2],i:[3,0],0:[3,0]},St[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},St[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},St[5]={"'":[4,0],o:8,l:[5,0]},St[6]={'"':[4,0],o:8,l:[6,0]};const ml=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function _l(e){return ml.test(e)}function hl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function gl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function El(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:_l(t)?hl(t):"*"+t}function Nl(e){const t=[];let n=-1,r=0,i=0,s,o,a,f,m,y,E;const N=[];N[0]=()=>{o===void 0?o=a:o+=a},N[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},N[2]=()=>{N[0](),i++},N[3]=()=>{if(i>0)i--,r=4,N[0]();else{if(i=0,o===void 0||(o=El(o),o===!1))return!1;N[1]()}};function D(){const H=e[n+1];if(r===5&&H==="'"||r===6&&H==='"')return n++,a="\\"+H,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&D())){if(f=gl(s),E=St[r],m=E[f]||E.l||8,m===8||(r=m[0],m[1]!==void 0&&(y=N[m[1]],y&&(a=s,y()===!1))))return;if(r===7)return t}}const qs=new Map;function Tl(e,t){return fe(e)?e[t]:null}function vl(e,t){if(!fe(e))return null;let n=qs.get(t);if(n||(n=Nl(t),n&&qs.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const o=n[s];if(Ks.includes(o)&&nt(i))return null;const a=i[o];if(a===void 0||ve(i))return null;i=a,s++}return i}const Ol=e=>e,bl=e=>"",yl="text",Sl=e=>e.length===0?"":La(e),Il=Ia;function Qs(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ll(e){const t=Ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ae(e.named.count)||Ae(e.named.n))?Ae(e.named.count)?e.named.count:Ae(e.named.n)?e.named.n:t:t}function Dl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function wl(e={}){const t=e.locale,n=Ll(e),r=fe(e.pluralRules)&&K(t)&&ve(e.pluralRules[t])?e.pluralRules[t]:Qs,i=fe(e.pluralRules)&&K(t)&&ve(e.pluralRules[t])?Qs:void 0,s=G=>G[r(n,G.length,i)],o=e.list||[],a=G=>o[G],f=e.named||Te();Ae(e.pluralIndex)&&Dl(n,f);const m=G=>f[G];function y(G){const V=ve(e.messages)?e.messages(G):fe(e.messages)?e.messages[G]:!1;return V||(e.parent?e.parent.message(G):bl)}const E=G=>e.modifiers?e.modifiers[G]:Ol,N=oe(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:Sl,D=oe(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:Il,H=oe(e.processor)&&K(e.processor.type)?e.processor.type:yl,x={list:a,named:m,plural:s,linked:(G,...V)=>{const[A,M]=V;let F="text",I="";V.length===1?fe(A)?(I=A.modifier||I,F=A.type||F):K(A)&&(I=A||I):V.length===2&&(K(A)&&(I=A||I),K(M)&&(F=M||F));const P=y(G)(x),_=F==="vnode"&&Oe(P)&&I?P[0]:P;return I?E(I)(_,F):_},message:y,type:H,interpolate:D,normalize:N,values:$e(Te(),o,f)};return x}let ln=null;function Al(e){ln=e}function Rl(e,t,n){ln&&ln.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cl=Pl("function:translate");function Pl(e){return t=>ln&&ln.emit(e,t)}const Ys=An.__EXTEND_POINT__,Rt=In(Ys),je={NOT_FOUND_KEY:Ys,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Fl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ct(e,...t){return er(Fl[e],...t)}const Xs=se.__EXTEND_POINT__,Pt=In(Xs),xe={INVALID_ARGUMENT:Xs,INVALID_DATE_ARGUMENT:Pt(),INVALID_ISO_DATE_ARGUMENT:Pt(),NOT_SUPPORT_NON_STRING_MESSAGE:Pt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Pt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Pt(),NOT_SUPPORT_LOCALE_TYPE:Pt(),__EXTEND_POINT__:Pt()};function dt(e){return Wt(e,null,process.env.NODE_ENV!=="production"?{messages:kl}:void 0)}const kl={[xe.INVALID_ARGUMENT]:"Invalid arguments",[xe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[xe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[xe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[xe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sr(e,t){return t.locale!=null?Js(t.locale):Js(e.locale)}let ir;function Js(e){if(K(e))return e;if(ve(e)){if(e.resolvedOnce&&ir!=null)return ir;if(e.constructor.name==="Function"){const t=e();if(Sa(t))throw dt(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ir=t}else throw dt(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw dt(xe.NOT_SUPPORT_LOCALE_TYPE)}function Ml(e,t,n){return[...new Set([n,...Oe(t)?t:fe(t)?Object.keys(t):K(t)?[t]:[n]])]}function zs(e,t,n){const r=K(n)?n:jt,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;Oe(o);)o=Zs(s,o,t);const a=Oe(t)||!oe(t)?t:t.default?t.default:null;o=K(a)?[a]:a,Oe(o)&&Zs(s,o,!1),i.__localeChainCache.set(r,s)}return s}function Zs(e,t,n){let r=!0;for(let i=0;i<t.length&&ce(r);i++){const s=t[i];K(s)&&(r=xl(e,t[i],n))}return r}function xl(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Vl(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Vl(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Oe(n)||oe(n))&&n[i]&&(r=n[i])}return r}const Ul="9.14.4",Cn=-1,jt="en-US",Pn="",ei=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function $l(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&fe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&fe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?ei(e):t==="vnode"&&fe(e)&&"__v_isVNode"in e?ei(e.children):e}}let ti;function ni(e){ti=e}let ri;function Bl(e){ri=e}let si;function Wl(e){si=e}let ii=null;const Hl=e=>{ii=e},Gl=()=>ii;let oi=null;const ai=e=>{oi=e},jl=()=>oi;let li=0;function Kl(e={}){const t=ve(e.onWarn)?e.onWarn:Pe,n=K(e.version)?e.version:Ul,r=K(e.locale)||ve(e.locale)?e.locale:jt,i=ve(r)?jt:r,s=Oe(e.fallbackLocale)||oe(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=oe(e.messages)?e.messages:or(i),a=oe(e.datetimeFormats)?e.datetimeFormats:or(i),f=oe(e.numberFormats)?e.numberFormats:or(i),m=$e(Te(),e.modifiers,$l()),y=e.pluralRules||Te(),E=ve(e.missing)?e.missing:null,N=ce(e.missingWarn)||Ot(e.missingWarn)?e.missingWarn:!0,D=ce(e.fallbackWarn)||Ot(e.fallbackWarn)?e.fallbackWarn:!0,H=!!e.fallbackFormat,k=!!e.unresolving,x=ve(e.postTranslation)?e.postTranslation:null,G=oe(e.processor)?e.processor:null,V=ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter,M=ve(e.messageCompiler)?e.messageCompiler:ti;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&As(Ct(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const F=ve(e.messageResolver)?e.messageResolver:ri||Tl,I=ve(e.localeFallbacker)?e.localeFallbacker:si||Ml,P=fe(e.fallbackContext)?e.fallbackContext:void 0,_=e,h=fe(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,b=fe(_.__numberFormatters)?_.__numberFormatters:new Map,j=fe(_.__meta)?_.__meta:{};li++;const $={version:n,cid:li,locale:r,fallbackLocale:s,messages:o,modifiers:m,pluralRules:y,missing:E,missingWarn:N,fallbackWarn:D,fallbackFormat:H,unresolving:k,postTranslation:x,processor:G,warnHtmlMessage:V,escapeParameter:A,messageCompiler:M,messageResolver:F,localeFallbacker:I,fallbackContext:P,onWarn:t,__meta:j};return $.datetimeFormats=a,$.numberFormats=f,$.__datetimeFormatters=h,$.__numberFormatters=b,process.env.NODE_ENV!=="production"&&($.__v_emitter=_.__v_emitter!=null?_.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Rl($,n,j),$}const or=e=>({[e]:Te()});function Fn(e,t){return e instanceof RegExp?e.test(t):e}function ci(e,t){return e instanceof RegExp?e.test(t):e}function ar(e,t,n,r,i){const{missing:s,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const a=e.__v_emitter;a&&a.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(s!==null){const a=s(e,n,t,i);return K(a)?a:t}else return process.env.NODE_ENV!=="production"&&ci(r,t)&&o(Ct(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ui(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ql(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ui(e,t[r]))return!0;return!1}function lr(e){return n=>Ql(n,e)}function Ql(e,t){const n=ll(t);if(n==null)throw an(0);if(rr(n)===1){const s=cl(n);return e.plural(s.reduce((o,a)=>[...o,fi(e,a)],[]))}else return fi(e,n)}function fi(e,t){const n=ul(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=fl(t).reduce((i,s)=>[...i,cr(e,s)],[]);return e.normalize(r)}}function cr(e,t){const n=rr(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(at(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(at(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw an(n)}case 5:{const r=t;if(at(r,"i")&&Ae(r.i))return e.interpolate(e.list(r.i));if(at(r,"index")&&Ae(r.index))return e.interpolate(e.list(r.index));throw an(n)}case 6:{const r=t,i=dl(r),s=pl(r);return e.linked(cr(e,s),i?cr(e,i):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Yl="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function di(e,t){t&&xa(e)&&Pe(er(Yl,{source:e}))}const pi=e=>e;let Kt=Te();function mi(e){e.code===An.USE_MODULO_SYNTAX&&Pe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
38
38
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
39
|
-
(message compiler warning message: ${e.message})`)}function
|
|
40
|
-
${
|
|
39
|
+
(message compiler warning message: ${e.message})`)}function _i(e,t={}){let n=!1;const r=t.onError||ka;return t.onError=i=>{n=!0,r(i)},{...ol(e,t),detectError:n}}const Xl=(e,t)=>{if(!K(e))throw dt(xe.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=mi);{const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&di(e,n);const i=(t.onCacheKey||pi)(e),s=Kt[i];if(s)return s;const{code:o,detectError:a}=_i(e,t),f=new Function(`return ${o}`)();return a?f:Kt[i]=f}};function Jl(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=mi),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&K(e)){const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&di(e,n);const i=(t.onCacheKey||pi)(e),s=Kt[i];if(s)return s;const{ast:o,detectError:a}=_i(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=lr(o);return a?f:Kt[i]=f}else{if(process.env.NODE_ENV!=="production"&&!nt(e))return Pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Kt[n];return r||(Kt[n]=lr(e))}else return lr(e)}}const hi=()=>"",rt=e=>ve(e);function gi(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=e,[f,m]=ur(...t),y=ce(m.missingWarn)?m.missingWarn:e.missingWarn,E=ce(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,N=ce(m.escapeParameter)?m.escapeParameter:e.escapeParameter,D=!!m.resolvedMessage,H=K(m.default)||ce(m.default)?ce(m.default)?s?f:()=>f:m.default:n?s?f:()=>f:"",k=n||H!=="",x=sr(e,m);N&&zl(m);let[G,V,A]=D?[f,x,a[x]||Te()]:Ei(e,f,x,o,E,y),M=G,F=f;if(!D&&!(K(M)||nt(M)||rt(M))&&k&&(M=H,F=M),!D&&(!(K(M)||nt(M)||rt(M))||!K(V)))return i?Cn:f;if(process.env.NODE_ENV!=="production"&&K(M)&&e.messageCompiler==null)return Pe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let I=!1;const P=()=>{I=!0},_=rt(M)?M:Ni(e,f,V,M,F,P);if(I)return M;const h=nc(e,V,A,m),b=wl(h),j=Zl(e,_,b),$=r?r(j,f):j;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const q={timestamp:Date.now(),key:K(f)?f:rt(M)?M.key:"",locale:V||(rt(M)?M.locale:""),format:K(M)?M:rt(M)?M.source:"",message:$};q.meta=$e({},e.__meta,Gl()||{}),Cl(q)}return $}function zl(e){Oe(e.list)?e.list=e.list.map(t=>K(t)?Ss(t):t):fe(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=Ss(e.named[t]))})}function Ei(e,t,n,r,i,s){const{messages:o,onWarn:a,messageResolver:f,localeFallbacker:m}=e,y=m(e,r,n);let E=Te(),N,D=null,H=n,k=null;const x="translate";for(let G=0;G<y.length;G++){if(N=k=y[G],process.env.NODE_ENV!=="production"&&n!==N&&!ui(n,N)&&Fn(i,t)&&a(Ct(je.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const F=e.__v_emitter;F&&F.emit("fallback",{type:x,key:t,from:H,to:k,groupId:`${x}:${t}`})}E=o[N]||Te();let V=null,A,M;if(process.env.NODE_ENV!=="production"&&ot&&(V=window.performance.now(),A="intlify-message-resolve-start",M="intlify-message-resolve-end",tt&&tt(A)),(D=f(E,t))===null&&(D=E[t]),process.env.NODE_ENV!=="production"&&ot){const F=window.performance.now(),I=e.__v_emitter;I&&V&&D&&I.emit("message-resolve",{type:"message-resolve",key:t,message:D,time:F-V,groupId:`${x}:${t}`}),A&&M&&tt&&At&&(tt(M),At("intlify message resolve",A,M))}if(K(D)||nt(D)||rt(D))break;if(!ql(N,y)){const F=ar(e,t,N,s,x);F!==t&&(D=F)}H=k}return[D,N,E]}function Ni(e,t,n,r,i,s){const{messageCompiler:o,warnHtmlMessage:a}=e;if(rt(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(o==null){const N=()=>r;return N.locale=n,N.key=t,N}let f=null,m,y;process.env.NODE_ENV!=="production"&&ot&&(f=window.performance.now(),m="intlify-message-compilation-start",y="intlify-message-compilation-end",tt&&tt(m));const E=o(r,ec(e,n,i,r,a,s));if(process.env.NODE_ENV!=="production"&&ot){const N=window.performance.now(),D=e.__v_emitter;D&&f&&D.emit("message-compilation",{type:"message-compilation",message:r,time:N-f,groupId:`translate:${t}`}),m&&y&&tt&&At&&(tt(y),At("intlify message compilation",m,y))}return E.locale=n,E.key=t,E.source=r,E}function Zl(e,t,n){let r=null,i,s;process.env.NODE_ENV!=="production"&&ot&&(r=window.performance.now(),i="intlify-message-evaluation-start",s="intlify-message-evaluation-end",tt&&tt(i));const o=t(n);if(process.env.NODE_ENV!=="production"&&ot){const a=window.performance.now(),f=e.__v_emitter;f&&r&&f.emit("message-evaluation",{type:"message-evaluation",value:o,time:a-r,groupId:`translate:${t.key}`}),i&&s&&tt&&At&&(tt(s),At("intlify message evaluation",i,s))}return o}function ur(...e){const[t,n,r]=e,i=Te();if(!K(t)&&!Ae(t)&&!rt(t)&&!nt(t))throw dt(xe.INVALID_ARGUMENT);const s=Ae(t)?String(t):(rt(t),t);return Ae(n)?i.plural=n:K(n)?i.default=n:oe(n)&&!Sn(n)?i.named=n:Oe(n)&&(i.list=n),Ae(r)?i.plural=r:K(r)?i.default=r:oe(r)&&$e(i,r),[s,i]}function ec(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const a=tc(r),f=`Message compilation error: ${o.message}`,m=o.location&&a&&Da(a,o.location.start.offset,o.location.end.offset),y=e.__v_emitter;y&&a&&y.emit("compile-error",{message:a,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${f}
|
|
40
|
+
${m}`:f)}else throw o},onCacheKey:o=>Ta(t,n,o)}}function tc(e){if(K(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function nc(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:f,missingWarn:m,fallbackContext:y}=e,N={locale:t,modifiers:i,pluralRules:s,messages:D=>{let H=o(n,D);if(H==null&&y){const[,,k]=Ei(y,D,t,a,f,m);H=o(k,D)}if(K(H)||nt(H)){let k=!1;const G=Ni(e,D,t,H,D,()=>{k=!0});return k?hi:G}else return rt(H)?H:hi}};return e.processor&&(N.processor=e.processor),r.list&&(N.list=r.list),r.named&&(N.named=r.named),Ae(r.plural)&&(N.pluralIndex=r.plural),N}const Ti=typeof Intl<"u",vi={dateTimeFormat:Ti&&typeof Intl.DateTimeFormat<"u",numberFormat:Ti&&typeof Intl.NumberFormat<"u"};function Oi(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!vi.dateTimeFormat)return s(Ct(je.CANNOT_FORMAT_DATE)),Pn;const[f,m,y,E]=fr(...t),N=ce(y.missingWarn)?y.missingWarn:e.missingWarn,D=ce(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn,H=!!y.part,k=sr(e,y),x=o(e,i,k);if(!K(f)||f==="")return new Intl.DateTimeFormat(k,E).format(m);let G={},V,A=null,M=k,F=null;const I="datetime format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&k!==V&&Fn(D,f)&&s(Ct(je.FALLBACK_TO_DATE_FORMAT,{key:f,target:V})),process.env.NODE_ENV!=="production"&&k!==V){const b=e.__v_emitter;b&&b.emit("fallback",{type:I,key:f,from:M,to:F,groupId:`${I}:${f}`})}if(G=n[V]||{},A=G[f],oe(A))break;ar(e,f,V,N,I),M=F}if(!oe(A)||!K(V))return r?Cn:f;let P=`${V}__${f}`;Sn(E)||(P=`${P}__${JSON.stringify(E)}`);let _=a.get(P);return _||(_=new Intl.DateTimeFormat(V,$e({},A,E)),a.set(P,_)),H?_.formatToParts(m):_.format(m)}const bi=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fr(...e){const[t,n,r,i]=e,s=Te();let o=Te(),a;if(K(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw dt(xe.INVALID_ISO_DATE_ARGUMENT);const m=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();a=new Date(m);try{a.toISOString()}catch{throw dt(xe.INVALID_ISO_DATE_ARGUMENT)}}else if(Oa(t)){if(isNaN(t.getTime()))throw dt(xe.INVALID_DATE_ARGUMENT);a=t}else if(Ae(t))a=t;else throw dt(xe.INVALID_ARGUMENT);return K(n)?s.key=n:oe(n)&&Object.keys(n).forEach(f=>{bi.includes(f)?o[f]=n[f]:s[f]=n[f]}),K(r)?s.locale=r:oe(r)&&(o=r),oe(i)&&(o=i),[s.key||"",a,s,o]}function yi(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Si(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!vi.numberFormat)return s(Ct(je.CANNOT_FORMAT_NUMBER)),Pn;const[f,m,y,E]=dr(...t),N=ce(y.missingWarn)?y.missingWarn:e.missingWarn,D=ce(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn,H=!!y.part,k=sr(e,y),x=o(e,i,k);if(!K(f)||f==="")return new Intl.NumberFormat(k,E).format(m);let G={},V,A=null,M=k,F=null;const I="number format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&k!==V&&Fn(D,f)&&s(Ct(je.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:V})),process.env.NODE_ENV!=="production"&&k!==V){const b=e.__v_emitter;b&&b.emit("fallback",{type:I,key:f,from:M,to:F,groupId:`${I}:${f}`})}if(G=n[V]||{},A=G[f],oe(A))break;ar(e,f,V,N,I),M=F}if(!oe(A)||!K(V))return r?Cn:f;let P=`${V}__${f}`;Sn(E)||(P=`${P}__${JSON.stringify(E)}`);let _=a.get(P);return _||(_=new Intl.NumberFormat(V,$e({},A,E)),a.set(P,_)),H?_.formatToParts(m):_.format(m)}const Ii=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dr(...e){const[t,n,r,i]=e,s=Te();let o=Te();if(!Ae(t))throw dt(xe.INVALID_ARGUMENT);const a=t;return K(n)?s.key=n:oe(n)&&Object.keys(n).forEach(f=>{Ii.includes(f)?o[f]=n[f]:s[f]=n[f]}),K(r)?s.locale=r:oe(r)&&(o=r),oe(i)&&(o=i),[s.key||"",a,s,o]}function Li(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}al();/**
|
|
41
41
|
* @vue/shared v3.5.17
|
|
42
42
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
43
43
|
* @license MIT
|
|
44
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
44
|
+
**//*! #__NO_SIDE_EFFECTS__ */function rc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const st=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ft=()=>{},sc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ye=Object.assign,ic=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oc=Object.prototype.hasOwnProperty,Re=(e,t)=>oc.call(e,t),ye=Array.isArray,qt=e=>kn(e)==="[object Map]",ac=e=>kn(e)==="[object Set]",Ce=e=>typeof e=="function",ct=e=>typeof e=="string",un=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",lc=e=>(Ke(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),cc=Object.prototype.toString,kn=e=>cc.call(e),Di=e=>kn(e).slice(8,-1),uc=e=>kn(e)==="[object Object]",pr=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ai=wi(e=>e.charAt(0).toUpperCase()+e.slice(1)),fc=wi(e=>e?`on${Ai(e)}`:""),It=(e,t)=>!Object.is(e,t),dc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Ri;const Mn=()=>Ri||(Ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mr(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ct(r)?hc(r):mr(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ct(e)||Ke(e))return e}const pc=/;(?![^(]*\))/g,mc=/:([^]+)/,_c=/\/\*[^]*?\*\//g;function hc(e){const t={};return e.replace(_c,"").split(pc).forEach(n=>{if(n){const r=n.split(mc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _r(e){let t="";if(ct(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){const r=_r(e[n]);r&&(t+=r+" ")}else if(Ke(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
|
|
45
45
|
* @vue/reactivity v3.5.17
|
|
46
46
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
47
47
|
* @license MIT
|
|
48
|
-
**/function mt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Je;class cc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}else process.env.NODE_ENV!=="production"&&mt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Je,Je=this)}off(){this._on>0&&--this._on===0&&(Je=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function uc(e){return new cc(e)}function fc(){return Je}let he;const hr=new WeakSet;class dc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&Je.active&&Je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hr.has(this)&&(hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ki(this),Ai(this);const t=he,n=ft;he=this,ft=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&he!==this&&mt("Active effect was not restored correctly - this is likely a Vue internal bug."),Ri(this),he=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vr(t);this.deps=this.depsTail=void 0,ki(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let Di=0,fn,dn;function wi(e,t=!1){if(e.flags|=8,t){e.next=dn,dn=e;return}e.next=fn,fn=e}function gr(){Di++}function Er(){if(--Di>0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fn;){let t=fn;for(fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ri(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),vr(r),pc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nr(e))))return;e.flags|=2;const t=e.dep,n=he,r=ft;he=e,ft=!0;try{Ai(e);const i=e.fn(e._value);(t.version===0||St(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{he=n,ft=r,Ri(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Pi=[];function Yt(){Pi.push(ft),ft=!1}function Qt(){const e=Pi.pop();ft=e===void 0?!0:e}function ki(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let pn=0;class mc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class br{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!he||!ft||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new mc(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Fi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return process.env.NODE_ENV!=="production"&&he.onTrack&&he.onTrack(Xe({effect:he},t)),n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){gr();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Xe({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Er()}}}function Fi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const yr=new WeakMap,Ft=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Or=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),mn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function xe(e,t,n){if(ft&&he){let r=yr.get(e);r||yr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new br),i.map=r,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Lt(e,t,n,r,i,s){const a=yr.get(e);if(!a){pn++;return}const o=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}):u.trigger())};if(gr(),t==="clear")a.forEach(o);else{const u=Te(e),p=u&&pr(n);if(u&&n==="length"){const O=Number(r);a.forEach((g,N)=>{(N==="length"||N===mn||!un(N)&&N>=O)&&o(g)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),p&&o(a.get(mn)),t){case"add":u?p&&o(a.get("length")):(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"delete":u||(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"set":Kt(e)&&o(a.get(Ft));break}}Er()}function Xt(e){const t=fe(e);return t===e?t:(xe(t,"iterate",mn),ze(e)?t:t.map(Ke))}function Tr(e){return xe(e=fe(e),"iterate",mn),e}const _c={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Ke)},concat(...e){return Xt(this).concat(...e.map(t=>Te(t)?Xt(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Ke(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ke),arguments)},find(e,t){return Et(this,"find",e,t,Ke,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ke,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sr(this,"includes",e)},indexOf(...e){return Sr(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return Sr(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return _n(this,"pop")},push(...e){return _n(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return _n(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return _n(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return _n(this,"unshift",e)},values(){return Ir(this,"values",Ke)}};function Ir(e,t,n){const r=Tr(e),i=r[t]();return r!==e&&!ze(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const hc=Array.prototype;function Et(e,t,n,r,i,s){const a=Tr(e),o=a!==e&&!ze(e),u=a[t];if(u!==hc[t]){const g=u.apply(e,s);return o?Ke(g):g}let p=n;a!==e&&(o?p=function(g,N){return n.call(this,Ke(g),N,e)}:n.length>2&&(p=function(g,N){return n.call(this,g,N,e)}));const O=u.call(a,p,r);return o&&i?i(O):O}function Mi(e,t,n,r){const i=Tr(e);let s=n;return i!==e&&(ze(e)?n.length>3&&(s=function(a,o,u){return n.call(this,a,o,u,e)}):s=function(a,o,u){return n.call(this,a,Ke(o),u,e)}),i[t](s,...r)}function Sr(e,t,n){const r=fe(e);xe(r,"iterate",mn);const i=r[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=fe(n[0]),r[t](...n)):i}function _n(e,t,n=[]){Yt(),gr();const r=fe(e)[t].apply(e,n);return Er(),Qt(),r}const gc=Ql("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un));function Ec(e){un(e)||(e=String(e));const t=fe(this);return xe(t,"has",e),t.hasOwnProperty(e)}class xi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Wi:Bi:s?Dc:qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Te(t);if(!i){let u;if(a&&(u=_c[n]))return u;if(n==="hasOwnProperty")return Ec}const o=Reflect.get(t,n,qe(t)?t:r);return(un(n)?Vi.has(n):gc(n))||(i||xe(t,"get",n),s)?o:qe(o)?a&&pr(n)?o:o.value:Ge(o)?i?ji(o):Hi(o):o}}class Nc extends xi{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=Nt(s);if(!ze(r)&&!Nt(r)&&(s=fe(s),r=fe(r)),!Te(t)&&qe(s)&&!qe(r))return u?!1:(s.value=r,!0)}const a=Te(t)&&pr(n)?Number(n)<t.length:Re(t,n),o=Reflect.set(t,n,r,qe(t)?t:i);return t===fe(i)&&(a?St(r,s)&&Lt(t,"set",n,r,s):Lt(t,"add",n,r)),o}deleteProperty(t,n){const r=Re(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!un(n)||!Vi.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",Te(t)?"length":Ft),Reflect.ownKeys(t)}}class Ui extends xi{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&mt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&mt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const vc=new Nc,bc=new Ui,yc=new Ui(!0),Lr=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Oc(e,t,n){return function(...r){const i=this.__v_raw,s=fe(i),a=Kt(s),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,p=i[e](...r),O=n?Lr:t?Ar:Ke;return!t&&xe(s,"iterate",u?Or:Ft),{next(){const{value:g,done:N}=p.next();return N?{value:g,done:N}:{value:o?[O(g[0]),O(g[1])]:O(g),done:N}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";mt(`${Si(e)} operation ${n}failed: target is readonly.`,fe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Tc(e,t){const n={get(i){const s=this.__v_raw,a=fe(s),o=fe(i);e||(St(i,o)&&xe(a,"get",i),xe(a,"get",o));const{has:u}=Vn(a),p=t?Lr:e?Ar:Ke;if(u.call(a,i))return p(s.get(i));if(u.call(a,o))return p(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!e&&xe(fe(i),"iterate",Ft),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,a=fe(s),o=fe(i);return e||(St(i,o)&&xe(a,"has",i),xe(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,u=fe(o),p=t?Lr:e?Ar:Ke;return!e&&xe(u,"iterate",Ft),o.forEach((O,g)=>i.call(s,p(O),p(g),a))}};return Xe(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(i){!t&&!ze(i)&&!Nt(i)&&(i=fe(i));const s=fe(this);return Vn(s).has.call(s,i)||(s.add(i),Lt(s,"add",i,i)),this},set(i,s){!t&&!ze(s)&&!Nt(s)&&(s=fe(s));const a=fe(this),{has:o,get:u}=Vn(a);let p=o.call(a,i);p?process.env.NODE_ENV!=="production"&&$i(a,o,i):(i=fe(i),p=o.call(a,i));const O=u.call(a,i);return a.set(i,s),p?St(s,O)&&Lt(a,"set",i,s,O):Lt(a,"add",i,s),this},delete(i){const s=fe(this),{has:a,get:o}=Vn(s);let u=a.call(s,i);u?process.env.NODE_ENV!=="production"&&$i(s,a,i):(i=fe(i),u=a.call(s,i));const p=o?o.call(s,i):void 0,O=s.delete(i);return u&&Lt(s,"delete",i,void 0,p),O},clear(){const i=fe(this),s=i.size!==0,a=process.env.NODE_ENV!=="production"?Kt(i)?new Map(i):new Set(i):void 0,o=i.clear();return s&&Lt(i,"clear",void 0,void 0,a),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Oc(i,e,t)}),n}function Dr(e,t){const n=Tc(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Re(n,i)&&i in r?n:r,i,s)}const Ic={get:Dr(!1,!1)},Sc={get:Dr(!0,!1)},Lc={get:Dr(!0,!0)};function $i(e,t,n){const r=fe(n);if(r!==n&&t.call(e,r)){const i=Ti(e);mt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const qi=new WeakMap,Dc=new WeakMap,Bi=new WeakMap,Wi=new WeakMap;function wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:wc(Ti(e))}function Hi(e){return Nt(e)?e:wr(e,!1,vc,Ic,qi)}function ji(e){return wr(e,!0,bc,Sc,Bi)}function Un(e){return wr(e,!0,yc,Lc,Wi)}function wr(e,t,n,r,i){if(!Ge(e))return process.env.NODE_ENV!=="production"&&mt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Ac(e);if(s===0)return e;const a=i.get(e);if(a)return a;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function Jt(e){return Nt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Rc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&sc(e,"__v_skip",!0),e}const Ke=e=>Ge(e)?Hi(e):e,Ar=e=>Ge(e)?ji(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function zt(e){return Ki(e,!1)}function Gi(e){return Ki(e,!0)}function Ki(e,t){return qe(e)?e:new Cc(e,t)}class Cc{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:Ke(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ze(t)||Nt(t);t=r?t:fe(t),St(t,n)&&(this._rawValue=t,this._value=r?t:Ke(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Pc(e){return qe(e)?e.value:e}const kc={get:(e,t,n)=>t==="__v_raw"?e:Pc(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qe(i)&&!qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fc(e){return Jt(e)?e:new Proxy(e,kc)}class Mc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return wi(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&mt("Write operation failed: computed value is readonly")}}function Vc(e,t,n=!1){let r,i;Ce(e)?r=e:(r=e.get,i=e.set);const s=new Mc(r,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const qn={},Bn=new WeakMap;let Mt;function xc(e,t=!1,n=Mt){if(n){let r=Bn.get(n);r||Bn.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Uc(e,t,n=it){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:u}=n,p=F=>{(n.onWarn||mt)("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},O=F=>i?F:ze(F)||i===!1||i===0?Dt(F,1):Dt(F);let g,N,I,H,M=!1,x=!1;if(qe(e)?(N=()=>e.value,M=ze(e)):Jt(e)?(N=()=>O(e),M=!0):Te(e)?(x=!0,M=e.some(F=>Jt(F)||ze(F)),N=()=>e.map(F=>{if(qe(F))return F.value;if(Jt(F))return O(F);if(Ce(F))return u?u(F,2):F();process.env.NODE_ENV!=="production"&&p(F)})):Ce(e)?t?N=u?()=>u(e,2):e:N=()=>{if(I){Yt();try{I()}finally{Qt()}}const F=Mt;Mt=g;try{return u?u(e,3,[H]):e(H)}finally{Mt=F}}:(N=kt,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const F=N,L=i===!0?1/0:i;N=()=>Dt(F(),L)}const $=fc(),V=()=>{g.stop(),$&&$.active&&Jl($.effects,g)};if(s&&t){const F=t;t=(...L)=>{F(...L),V()}}let S=x?new Array(e.length).fill(qn):qn;const k=F=>{if(!(!(g.flags&1)||!g.dirty&&!F))if(t){const L=g.run();if(i||M||(x?L.some((P,_)=>St(P,S[_])):St(L,S))){I&&I();const P=Mt;Mt=g;try{const _=[L,S===qn?void 0:x&&S[0]===qn?[]:S,H];S=L,u?u(t,3,_):t(..._)}finally{Mt=P}}}else g.run()};return o&&o(k),g=new dc(N),g.scheduler=a?()=>a(k,!1):k,H=F=>xc(F,!1,g),I=g.onStop=()=>{const F=Bn.get(g);if(F){if(u)u(F,4);else for(const L of F)L();Bn.delete(g)}},process.env.NODE_ENV!=="production"&&(g.onTrack=n.onTrack,g.onTrigger=n.onTrigger),t?r?k(!0):S=g.run():a?a(k.bind(null,!0),!0):g.run(),V.pause=g.pause.bind(g),V.resume=g.resume.bind(g),V.stop=V,V}function Dt(e,t=1/0,n){if(t<=0||!Ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))Dt(e.value,t,n);else if(Te(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n);else if(Zl(e)||Kt(e))e.forEach(r=>{Dt(r,t,n)});else if(nc(e)){for(const r in e)Dt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Dt(e[r],t,n)}return e}/**
|
|
48
|
+
**/function pt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Xe;class gc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}else process.env.NODE_ENV!=="production"&&pt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){this._on>0&&--this._on===0&&(Xe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ec(e){return new gc(e)}function Nc(){return Xe}let ge;const hr=new WeakSet;class Tc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Xe&&Xe.active&&Xe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hr.has(this)&&(hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vi(this),Fi(this);const t=ge,n=ut;ge=this,ut=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&ge!==this&&pt("Active effect was not restored correctly - this is likely a Vue internal bug."),ki(this),ge=t,ut=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Tr(t);this.deps=this.depsTail=void 0,Vi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let Ci=0,fn,dn;function Pi(e,t=!1){if(e.flags|=8,t){e.next=dn,dn=e;return}e.next=fn,fn=e}function gr(){Ci++}function Er(){if(--Ci>0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fn;){let t=fn;for(fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Fi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ki(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Tr(r),vc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Mi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Mi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nr(e))))return;e.flags|=2;const t=e.dep,n=ge,r=ut;ge=e,ut=!0;try{Fi(e);const i=e.fn(e._value);(t.version===0||It(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ge=n,ut=r,ki(e),e.flags&=-3}}function Tr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Tr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function vc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ut=!0;const xi=[];function Qt(){xi.push(ut),ut=!1}function Yt(){const e=xi.pop();ut=e===void 0?!0:e}function Vi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let pn=0;class Oc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!ge||!ut||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new Oc(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,Ui(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=r)}return process.env.NODE_ENV!=="production"&&ge.onTrack&&ge.onTrack(Ye({effect:ge},t)),n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){gr();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Ye({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Er()}}}function Ui(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ui(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Or=new WeakMap,kt=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),br=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),mn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function Ve(e,t,n){if(ut&&ge){let r=Or.get(e);r||Or.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new vr),i.map=r,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Lt(e,t,n,r,i,s){const o=Or.get(e);if(!o){pn++;return}const a=f=>{f&&(process.env.NODE_ENV!=="production"?f.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}):f.trigger())};if(gr(),t==="clear")o.forEach(a);else{const f=ye(e),m=f&&pr(n);if(f&&n==="length"){const y=Number(r);o.forEach((E,N)=>{(N==="length"||N===mn||!un(N)&&N>=y)&&a(E)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),m&&a(o.get(mn)),t){case"add":f?m&&a(o.get("length")):(a(o.get(kt)),qt(e)&&a(o.get(br)));break;case"delete":f||(a(o.get(kt)),qt(e)&&a(o.get(br)));break;case"set":qt(e)&&a(o.get(kt));break}}Er()}function Xt(e){const t=de(e);return t===e?t:(Ve(t,"iterate",mn),Je(e)?t:t.map(qe))}function yr(e){return Ve(e=de(e),"iterate",mn),e}const bc={__proto__:null,[Symbol.iterator](){return Sr(this,Symbol.iterator,qe)},concat(...e){return Xt(this).concat(...e.map(t=>ye(t)?Xt(t):t))},entries(){return Sr(this,"entries",e=>(e[1]=qe(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(qe),arguments)},find(e,t){return Et(this,"find",e,t,qe,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,qe,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ir(this,"includes",e)},indexOf(...e){return Ir(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return Ir(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return _n(this,"pop")},push(...e){return _n(this,"push",e)},reduce(e,...t){return $i(this,"reduce",e,t)},reduceRight(e,...t){return $i(this,"reduceRight",e,t)},shift(){return _n(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return _n(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return _n(this,"unshift",e)},values(){return Sr(this,"values",qe)}};function Sr(e,t,n){const r=yr(e),i=r[t]();return r!==e&&!Je(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const yc=Array.prototype;function Et(e,t,n,r,i,s){const o=yr(e),a=o!==e&&!Je(e),f=o[t];if(f!==yc[t]){const E=f.apply(e,s);return a?qe(E):E}let m=n;o!==e&&(a?m=function(E,N){return n.call(this,qe(E),N,e)}:n.length>2&&(m=function(E,N){return n.call(this,E,N,e)}));const y=f.call(o,m,r);return a&&i?i(y):y}function $i(e,t,n,r){const i=yr(e);let s=n;return i!==e&&(Je(e)?n.length>3&&(s=function(o,a,f){return n.call(this,o,a,f,e)}):s=function(o,a,f){return n.call(this,o,qe(a),f,e)}),i[t](s,...r)}function Ir(e,t,n){const r=de(e);Ve(r,"iterate",mn);const i=r[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=de(n[0]),r[t](...n)):i}function _n(e,t,n=[]){Qt(),gr();const r=de(e)[t].apply(e,n);return Er(),Yt(),r}const Sc=rc("__proto__,__v_isRef,__isVue"),Bi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un));function Ic(e){un(e)||(e=String(e));const t=de(this);return Ve(t,"has",e),t.hasOwnProperty(e)}class Wi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?qi:Ki:s?Mc:ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ye(t);if(!i){let f;if(o&&(f=bc[n]))return f;if(n==="hasOwnProperty")return Ic}const a=Reflect.get(t,n,Be(t)?t:r);return(un(n)?Bi.has(n):Sc(n))||(i||Ve(t,"get",n),s)?a:Be(a)?o&&pr(n)?a:a.value:Ke(a)?i?Yi(a):Qi(a):a}}class Lc extends Wi{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const f=Nt(s);if(!Je(r)&&!Nt(r)&&(s=de(s),r=de(r)),!ye(t)&&Be(s)&&!Be(r))return f?!1:(s.value=r,!0)}const o=ye(t)&&pr(n)?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,r,Be(t)?t:i);return t===de(i)&&(o?It(r,s)&&Lt(t,"set",n,r,s):Lt(t,"add",n,r)),a}deleteProperty(t,n){const r=Re(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!un(n)||!Bi.has(n))&&Ve(t,"has",n),r}ownKeys(t){return Ve(t,"iterate",ye(t)?"length":kt),Reflect.ownKeys(t)}}class Hi extends Wi{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&pt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&pt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Dc=new Lc,wc=new Hi,Ac=new Hi(!0),Lr=e=>e,xn=e=>Reflect.getPrototypeOf(e);function Rc(e,t,n){return function(...r){const i=this.__v_raw,s=de(i),o=qt(s),a=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,m=i[e](...r),y=n?Lr:t?Ar:qe;return!t&&Ve(s,"iterate",f?br:kt),{next(){const{value:E,done:N}=m.next();return N?{value:E,done:N}:{value:a?[y(E[0]),y(E[1])]:y(E),done:N}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";pt(`${Ai(e)} operation ${n}failed: target is readonly.`,de(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Cc(e,t){const n={get(i){const s=this.__v_raw,o=de(s),a=de(i);e||(It(i,a)&&Ve(o,"get",i),Ve(o,"get",a));const{has:f}=xn(o),m=t?Lr:e?Ar:qe;if(f.call(o,i))return m(s.get(i));if(f.call(o,a))return m(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&Ve(de(i),"iterate",kt),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,o=de(s),a=de(i);return e||(It(i,a)&&Ve(o,"has",i),Ve(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,f=de(a),m=t?Lr:e?Ar:qe;return!e&&Ve(f,"iterate",kt),a.forEach((y,E)=>i.call(s,m(y),m(E),o))}};return Ye(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!Je(i)&&!Nt(i)&&(i=de(i));const s=de(this);return xn(s).has.call(s,i)||(s.add(i),Lt(s,"add",i,i)),this},set(i,s){!t&&!Je(s)&&!Nt(s)&&(s=de(s));const o=de(this),{has:a,get:f}=xn(o);let m=a.call(o,i);m?process.env.NODE_ENV!=="production"&&Gi(o,a,i):(i=de(i),m=a.call(o,i));const y=f.call(o,i);return o.set(i,s),m?It(s,y)&&Lt(o,"set",i,s,y):Lt(o,"add",i,s),this},delete(i){const s=de(this),{has:o,get:a}=xn(s);let f=o.call(s,i);f?process.env.NODE_ENV!=="production"&&Gi(s,o,i):(i=de(i),f=o.call(s,i));const m=a?a.call(s,i):void 0,y=s.delete(i);return f&&Lt(s,"delete",i,void 0,m),y},clear(){const i=de(this),s=i.size!==0,o=process.env.NODE_ENV!=="production"?qt(i)?new Map(i):new Set(i):void 0,a=i.clear();return s&&Lt(i,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Rc(i,e,t)}),n}function Dr(e,t){const n=Cc(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Re(n,i)&&i in r?n:r,i,s)}const Pc={get:Dr(!1,!1)},Fc={get:Dr(!0,!1)},kc={get:Dr(!0,!0)};function Gi(e,t,n){const r=de(n);if(r!==n&&t.call(e,r)){const i=Di(e);pt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ji=new WeakMap,Mc=new WeakMap,Ki=new WeakMap,qi=new WeakMap;function xc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vc(e){return e.__v_skip||!Object.isExtensible(e)?0:xc(Di(e))}function Qi(e){return Nt(e)?e:wr(e,!1,Dc,Pc,ji)}function Yi(e){return wr(e,!0,wc,Fc,Ki)}function Un(e){return wr(e,!0,Ac,kc,qi)}function wr(e,t,n,r,i){if(!Ke(e))return process.env.NODE_ENV!=="production"&&pt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Vc(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function Jt(e){return Nt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Uc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&dc(e,"__v_skip",!0),e}const qe=e=>Ke(e)?Qi(e):e,Ar=e=>Ke(e)?Yi(e):e;function Be(e){return e?e.__v_isRef===!0:!1}function zt(e){return Ji(e,!1)}function Xi(e){return Ji(e,!0)}function Ji(e,t){return Be(e)?e:new $c(e,t)}class $c{constructor(t,n){this.dep=new vr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:qe(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Je(t)||Nt(t);t=r?t:de(t),It(t,n)&&(this._rawValue=t,this._value=r?t:qe(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Bc(e){return Be(e)?e.value:e}const Wc={get:(e,t,n)=>t==="__v_raw"?e:Bc(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Be(i)&&!Be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Hc(e){return Jt(e)?e:new Proxy(e,Wc)}class Gc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new vr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Pi(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Mi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&pt("Write operation failed: computed value is readonly")}}function jc(e,t,n=!1){let r,i;Ce(e)?r=e:(r=e.get,i=e.set);const s=new Gc(r,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const Bn={},Wn=new WeakMap;let Mt;function Kc(e,t=!1,n=Mt){if(n){let r=Wn.get(n);r||Wn.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&pt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function qc(e,t,n=st){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:f}=n,m=F=>{(n.onWarn||pt)("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},y=F=>i?F:Je(F)||i===!1||i===0?Dt(F,1):Dt(F);let E,N,D,H,k=!1,x=!1;if(Be(e)?(N=()=>e.value,k=Je(e)):Jt(e)?(N=()=>y(e),k=!0):ye(e)?(x=!0,k=e.some(F=>Jt(F)||Je(F)),N=()=>e.map(F=>{if(Be(F))return F.value;if(Jt(F))return y(F);if(Ce(F))return f?f(F,2):F();process.env.NODE_ENV!=="production"&&m(F)})):Ce(e)?t?N=f?()=>f(e,2):e:N=()=>{if(D){Qt();try{D()}finally{Yt()}}const F=Mt;Mt=E;try{return f?f(e,3,[H]):e(H)}finally{Mt=F}}:(N=Ft,process.env.NODE_ENV!=="production"&&m(e)),t&&i){const F=N,I=i===!0?1/0:i;N=()=>Dt(F(),I)}const G=Nc(),V=()=>{E.stop(),G&&G.active&&ic(G.effects,E)};if(s&&t){const F=t;t=(...I)=>{F(...I),V()}}let A=x?new Array(e.length).fill(Bn):Bn;const M=F=>{if(!(!(E.flags&1)||!E.dirty&&!F))if(t){const I=E.run();if(i||k||(x?I.some((P,_)=>It(P,A[_])):It(I,A))){D&&D();const P=Mt;Mt=E;try{const _=[I,A===Bn?void 0:x&&A[0]===Bn?[]:A,H];A=I,f?f(t,3,_):t(..._)}finally{Mt=P}}}else E.run()};return a&&a(M),E=new Tc(N),E.scheduler=o?()=>o(M,!1):M,H=F=>Kc(F,!1,E),D=E.onStop=()=>{const F=Wn.get(E);if(F){if(f)f(F,4);else for(const I of F)I();Wn.delete(E)}},process.env.NODE_ENV!=="production"&&(E.onTrack=n.onTrack,E.onTrigger=n.onTrigger),t?r?M(!0):A=E.run():o?o(M.bind(null,!0),!0):E.run(),V.pause=E.pause.bind(E),V.resume=E.resume.bind(E),V.stop=V,V}function Dt(e,t=1/0,n){if(t<=0||!Ke(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Be(e))Dt(e.value,t,n);else if(ye(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n);else if(ac(e)||qt(e))e.forEach(r=>{Dt(r,t,n)});else if(uc(e)){for(const r in e)Dt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Dt(e[r],t,n)}return e}/**
|
|
49
49
|
* @vue/runtime-core v3.5.17
|
|
50
50
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
51
51
|
* @license MIT
|
|
52
|
-
**/const
|
|
52
|
+
**/const xt=[];function Qc(e){xt.push(e)}function Yc(){xt.pop()}let Rr=!1;function Se(e,...t){if(Rr)return;Rr=!0,Qt();const n=xt.length?xt[xt.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Xc();if(r)Hn(r,n,11,[e+t.map(s=>{var o,a;return(a=(o=s.toString)==null?void 0:o.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${vo(n,s.type)}>`).join(`
|
|
53
53
|
`),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
|
|
54
|
-
`,...
|
|
55
|
-
`],...Hc(n))}),t}function Hc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${ha(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...jc(e.props),s]:[i+s]}function jc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Yi(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Yi(e,t,n){return ut(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Yi(e,fe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=fe(t),n?t:[`${e}=`,t])}const Cr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Wn(e,t,n,r){try{return r?e(...r):e()}catch(i){kr(i,t,n)}}function Pr(e,t,n,r){if(Ce(e)){const i=Wn(e,t,n,r);return i&&ec(i)&&i.catch(s=>{kr(s,t,n)}),i}if(Te(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Pr(e[s],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function kr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||it;if(t){let o=t.parent;const u=t.proxy,p=process.env.NODE_ENV!=="production"?Cr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const O=o.ec;if(O){for(let g=0;g<O.length;g++)if(O[g](e,u,p)===!1)return}o=o.parent}if(s){Yt(),Wn(s,null,10,[e,u,p]),Qt();return}}Gc(e,n,i,r,a)}function Gc(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!=="production"){const s=Cr[t];if(n&&$c(n),Ie(`Unhandled error${s?` during execution of ${s}`:""}`),n&&qc(),r)throw e;console.error(e)}else{if(i)throw e;console.error(e)}}const at=[];let vt=-1;const Zt=[];let wt=null,en=0;const Qi=Promise.resolve();let Hn=null;const Kc=100;function Yc(e){const t=Hn||Qi;return e?t.then(this?e.bind(this):e):t}function Qc(e){let t=vt+1,n=at.length;for(;t<n;){const r=t+n>>>1,i=at[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Fr(e){if(!(e.flags&1)){const t=hn(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=hn(n)?at.push(e):at.splice(Qc(t),0,e),e.flags|=1,Xi()}}function Xi(){Hn||(Hn=Qi.then(zi))}function Ji(e){Te(e)?Zt.push(...e):wt&&e.id===-1?wt.splice(en+1,0,e):e.flags&1||(Zt.push(e),e.flags|=1),Xi()}function Xc(e){if(Zt.length){const t=[...new Set(Zt)].sort((n,r)=>hn(n)-hn(r));if(Zt.length=0,wt){wt.push(...t);return}for(wt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),en=0;en<wt.length;en++){const n=wt[en];process.env.NODE_ENV!=="production"&&Zi(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}wt=null,en=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>Zi(e,n):kt;try{for(vt=0;vt<at.length;vt++){const n=at[vt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Wn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;vt<at.length;vt++){const n=at[vt];n&&(n.flags&=-2)}vt=-1,at.length=0,Xc(e),Hn=null,(at.length||Zt.length)&&zi(e)}}function Zi(e,t){const n=e.get(t)||0;if(n>Kc){const r=t.i,i=r&&_a(r.type);return kr(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Mr=new Map;process.env.NODE_ENV!=="production"&&(Mn().__VUE_HMR_RUNTIME__={createRecord:Vr(Jc),rerender:Vr(zc),reload:Vr(Zc)});const jn=new Map;function Jc(e,t){return jn.has(e)?!1:(jn.set(e,{initialDef:Gn(t),instances:new Set}),!0)}function Gn(e){return ga(e)?e.__vccOpts:e}function zc(e,t){const n=jn.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Gn(r.type).render=t),r.renderCache=[],r.update()}))}function Zc(e,t){const n=jn.get(e);if(!n)return;t=Gn(t),ea(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const s=r[i],a=Gn(s.type);let o=Mr.get(a);o||(a!==n.initialDef&&ea(a,t),Mr.set(a,o=new Set)),o.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(o.add(s),s.ceReload(t.styles),o.delete(s)):s.parent?Fr(()=>{s.parent.update(),o.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(a)}Ji(()=>{Mr.clear()})}function ea(e,t){Xe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Vr(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn,Kn=[];function ta(e,t){var n,r;tn=e,tn?(tn.enabled=!0,Kn.forEach(({event:i,args:s})=>tn.emit(i,...s)),Kn=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{ta(s,t)}),setTimeout(()=>{tn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kn=[])},3e3)):Kn=[]}let _t=null,eu=null;const tu=e=>e.__isTeleport;function na(e,t){e.shapeFlag&6&&e.component?(e.transition=t,na(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function xr(e,t){return Ce(e)?(()=>Xe({name:e.name},t,{setup:e}))():e}Mn().requestIdleCallback,Mn().cancelIdleCallback;function nu(e,t,n=xt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Yt();const o=ma(n),u=Pr(t,n,e,a);return o(),Qt(),u});return r?i.unshift(s):i.push(s),s}else if(process.env.NODE_ENV!=="production"){const i=rc(Cr[e].replace(/ hook$/,""));Ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ur=e=>(t,n=xt)=>{(!Nn||e==="sp")&&nu(e,(...r)=>t(...r),n)},ru=Ur("bm"),su=Ur("m"),iu=Ur("um"),au=Symbol.for("v-ndc"),$r=e=>e?wu(e)?Au(e):$r(e.parent):null,gn=Xe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Un(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Un(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Un(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Un(e.refs):e.refs,$parent:e=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?uu(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Fr(e.update)}),$nextTick:e=>e.n||(e.n=Yc.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Nu.bind(e):kt}),ou=e=>e==="_"||e==="$",qr=(e,t)=>e!==it&&!e.__isScriptSetup&&Re(e,t),lu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:u}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const I=a[t];if(I!==void 0)switch(I){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(qr(r,t))return a[t]=1,r[t];if(i!==it&&Re(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Re(p,t))return a[t]=3,s[t];if(n!==it&&Re(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||cu)&&(a[t]=0)}}const O=gn[t];let g,N;if(O)return t==="$attrs"?(xe(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&xe(e,"get",t),O(e);if((g=o.__cssModules)&&(g=g[t]))return g;if(n!==it&&Re(n,t))return a[t]=4,n[t];if(N=u.config.globalProperties,Re(N,t))return N[t];process.env.NODE_ENV!=="production"&&_t&&(!ut(t)||t.indexOf("__v")!==0)&&(i!==it&&ou(t[0])&&Re(i,t)?Ie(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===_t&&Ie(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return qr(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,t)?(Ie(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==it&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||e!==it&&Re(e,a)||qr(t,a)||(o=s[0])&&Re(o,a)||Re(r,a)||Re(gn,a)||Re(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(lu.ownKeys=e=>(Ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ra(e){return Te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cu=!0;function uu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let u;return o?u=o:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(p=>Yn(u,p,a,!0)),Yn(u,t,a)),Ge(t)&&s.set(t,u),u}function Yn(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yn(e,s,n,!0),i&&i.forEach(a=>Yn(e,a,n,!0));for(const a in t)if(r&&a==="expose")process.env.NODE_ENV!=="production"&&Ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=fu[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const fu={data:sa,props:aa,emits:aa,methods:En,computed:En,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:En,directives:En,watch:pu,provide:sa,inject:du};function sa(e,t){return t?e?function(){return Xe(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function du(e,t){return En(ia(e),ia(t))}function ia(e){if(Te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Xe(Object.create(null),e,t):t}function aa(e,t){return e?Te(e)&&Te(t)?[...new Set([...e,...t])]:Xe(Object.create(null),ra(e),ra(t??{})):t}function pu(e,t){if(!e)return t;if(!t)return e;const n=Xe(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}let mu=null;function oa(e,t,n=!1){const r=xt||_t;if(r||mu){let i=r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Ie(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Ie("inject() can only be used inside setup() or functional components.")}const _u={},la=e=>Object.getPrototypeOf(e)===_u,hu=yu,gu=Symbol.for("v-scx"),Eu=()=>{{const e=oa(gu);return e||process.env.NODE_ENV!=="production"&&Ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Br(e,t,n){return process.env.NODE_ENV!=="production"&&!Ce(t)&&Ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ca(e,t,n)}function ca(e,t,n=it){const{immediate:r,deep:i,flush:s,once:a}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&Ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&Ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const o=Xe({},n);process.env.NODE_ENV!=="production"&&(o.onWarn=Ie);const u=t&&r||!t&&s!=="post";let p;if(Nn){if(s==="sync"){const I=Eu();p=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=kt,I.resume=kt,I.pause=kt,I}}const O=xt;o.call=(I,H,M)=>Pr(I,O,H,M);let g=!1;s==="post"?o.scheduler=I=>{hu(I,O&&O.suspense)}:s!=="sync"&&(g=!0,o.scheduler=(I,H)=>{H?I():Fr(I)}),o.augmentJob=I=>{t&&(I.flags|=4),g&&(I.flags|=2,O&&(I.id=O.uid,I.i=O))};const N=Uc(e,t,o);return Nn&&(p?p.push(N):u&&N()),N}function Nu(e,t,n){const r=this.proxy,i=ut(e)?e.includes(".")?vu(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=ma(this),o=ca(i,s.bind(r),n);return a(),o}function vu(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qf(){}const bu=e=>e.__isSuspense;function yu(e,t){t&&t.pendingBranch?Te(e)?t.effects.push(...e):t.effects.push(e):Ji(e)}const Qn=Symbol.for("v-fgt"),ua=Symbol.for("v-txt"),Ou=Symbol.for("v-cmt");let nn=null;function Wr(e){return e?e.__v_isVNode===!0:!1}const Tu=(...e)=>da(...e),fa=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||qe(e)||Ce(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function Iu(e,t=null,n=null,r=0,i=null,s=e===Qn?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fa(t),ref:t&&Xn(t),scopeId:eu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_t};return o?(Hr(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ut(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&Ie("VNode created with invalid key (NaN). VNode type:",u.type),!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const rn=process.env.NODE_ENV!=="production"?Tu:da;function da(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===au)&&(process.env.NODE_ENV!=="production"&&!e&&Ie(`Invalid vnode type when creating vnode: ${e}.`),e=Ou),Wr(e)){const o=Jn(e,t,!0);return n&&Hr(o,n),!s&&nn&&(o.shapeFlag&6?nn[nn.indexOf(e)]=o:nn.push(o)),o.patchFlag=-2,o}if(ga(e)&&(e=e.__vccOpts),t){t=Su(t);let{class:o,style:u}=t;o&&!ut(o)&&(t.class=_r(o)),Ge(u)&&($n(u)&&!Te(u)&&(u=Xe({},u)),t.style=mr(u))}const a=ut(e)?1:bu(e)?128:tu(e)?64:Ge(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&$n(e)&&(e=fe(e),Ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
56
|
-
Component that was made reactive: `,e)),
|
|
54
|
+
`,...Jc(i)),console.warn(...s)}Yt(),Rr=!1}function Xc(){let e=xt[xt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Jc(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
55
|
+
`],...zc(n))}),t}function zc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${vo(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...Zc(e.props),s]:[i+s]}function Zc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...zi(r,e[r]))}),n.length>3&&t.push(" ..."),t}function zi(e,t,n){return ct(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Be(t)?(t=zi(e,de(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=de(t),n?t:[`${e}=`,t])}const Cr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Fr(i,t,n)}}function Pr(e,t,n,r){if(Ce(e)){const i=Hn(e,t,n,r);return i&&lc(i)&&i.catch(s=>{Fr(s,t,n)}),i}if(ye(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Pr(e[s],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Se(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Fr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||st;if(t){let a=t.parent;const f=t.proxy,m=process.env.NODE_ENV!=="production"?Cr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const y=a.ec;if(y){for(let E=0;E<y.length;E++)if(y[E](e,f,m)===!1)return}a=a.parent}if(s){Qt(),Hn(s,null,10,[e,f,m]),Yt();return}}eu(e,n,i,r,o)}function eu(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!=="production"){const s=Cr[t];if(n&&Qc(n),Se(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Yc(),r)throw e;console.error(e)}else{if(i)throw e;console.error(e)}}const it=[];let Tt=-1;const Zt=[];let wt=null,en=0;const Zi=Promise.resolve();let Gn=null;const tu=100;function nu(e){const t=Gn||Zi;return e?t.then(this?e.bind(this):e):t}function ru(e){let t=Tt+1,n=it.length;for(;t<n;){const r=t+n>>>1,i=it[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function kr(e){if(!(e.flags&1)){const t=hn(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=hn(n)?it.push(e):it.splice(ru(t),0,e),e.flags|=1,eo()}}function eo(){Gn||(Gn=Zi.then(no))}function to(e){ye(e)?Zt.push(...e):wt&&e.id===-1?wt.splice(en+1,0,e):e.flags&1||(Zt.push(e),e.flags|=1),eo()}function su(e){if(Zt.length){const t=[...new Set(Zt)].sort((n,r)=>hn(n)-hn(r));if(Zt.length=0,wt){wt.push(...t);return}for(wt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),en=0;en<wt.length;en++){const n=wt[en];process.env.NODE_ENV!=="production"&&ro(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}wt=null,en=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function no(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>ro(e,n):Ft;try{for(Tt=0;Tt<it.length;Tt++){const n=it[Tt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Hn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Tt<it.length;Tt++){const n=it[Tt];n&&(n.flags&=-2)}Tt=-1,it.length=0,su(e),Gn=null,(it.length||Zt.length)&&no(e)}}function ro(e,t){const n=e.get(t)||0;if(n>tu){const r=t.i,i=r&&To(r.type);return Fr(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Mr=new Map;process.env.NODE_ENV!=="production"&&(Mn().__VUE_HMR_RUNTIME__={createRecord:xr(iu),rerender:xr(ou),reload:xr(au)});const jn=new Map;function iu(e,t){return jn.has(e)?!1:(jn.set(e,{initialDef:Kn(t),instances:new Set}),!0)}function Kn(e){return Oo(e)?e.__vccOpts:e}function ou(e,t){const n=jn.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Kn(r.type).render=t),r.renderCache=[],r.update()}))}function au(e,t){const n=jn.get(e);if(!n)return;t=Kn(t),so(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const s=r[i],o=Kn(s.type);let a=Mr.get(o);a||(o!==n.initialDef&&so(o,t),Mr.set(o,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?kr(()=>{s.parent.update(),a.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(o)}to(()=>{Mr.clear()})}function so(e,t){Ye(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function xr(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn,qn=[];function io(e,t){var n,r;tn=e,tn?(tn.enabled=!0,qn.forEach(({event:i,args:s})=>tn.emit(i,...s)),qn=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{io(s,t)}),setTimeout(()=>{tn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qn=[])},3e3)):qn=[]}let mt=null,lu=null;const cu=e=>e.__isTeleport;function oo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,oo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Vr(e,t){return Ce(e)?(()=>Ye({name:e.name},t,{setup:e}))():e}Mn().requestIdleCallback,Mn().cancelIdleCallback;function uu(e,t,n=Vt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Qt();const a=No(n),f=Pr(t,n,e,o);return a(),Yt(),f});return r?i.unshift(s):i.push(s),s}else if(process.env.NODE_ENV!=="production"){const i=fc(Cr[e].replace(/ hook$/,""));Se(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ur=e=>(t,n=Vt)=>{(!Nn||e==="sp")&&uu(e,(...r)=>t(...r),n)},fu=Ur("bm"),du=Ur("m"),pu=Ur("um"),mu=Symbol.for("v-ndc"),$r=e=>e?Mu(e)?xu(e):$r(e.parent):null,gn=Ye(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Un(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Un(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Un(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Un(e.refs):e.refs,$parent:e=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Eu(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{kr(e.update)}),$nextTick:e=>e.n||(e.n=nu.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Iu.bind(e):Ft}),_u=e=>e==="_"||e==="$",Br=(e,t)=>e!==st&&!e.__isScriptSetup&&Re(e,t),hu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:f}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let m;if(t[0]!=="$"){const D=o[t];if(D!==void 0)switch(D){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Br(r,t))return o[t]=1,r[t];if(i!==st&&Re(i,t))return o[t]=2,i[t];if((m=e.propsOptions[0])&&Re(m,t))return o[t]=3,s[t];if(n!==st&&Re(n,t))return o[t]=4,n[t];(!__VUE_OPTIONS_API__||gu)&&(o[t]=0)}}const y=gn[t];let E,N;if(y)return t==="$attrs"?(Ve(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&Ve(e,"get",t),y(e);if((E=a.__cssModules)&&(E=E[t]))return E;if(n!==st&&Re(n,t))return o[t]=4,n[t];if(N=f.config.globalProperties,Re(N,t))return N[t];process.env.NODE_ENV!=="production"&&mt&&(!ct(t)||t.indexOf("__v")!==0)&&(i!==st&&_u(t[0])&&Re(i,t)?Se(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===mt&&Se(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Br(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,t)?(Se(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==st&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)?(process.env.NODE_ENV!=="production"&&Se(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Se(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==st&&Re(e,o)||Br(t,o)||(a=s[0])&&Re(a,o)||Re(r,o)||Re(gn,o)||Re(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(hu.ownKeys=e=>(Se("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ao(e){return ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let gu=!0;function Eu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let f;return a?f=a:!i.length&&!n&&!r?f=t:(f={},i.length&&i.forEach(m=>Qn(f,m,o,!0)),Qn(f,t,o)),Ke(t)&&s.set(t,f),f}function Qn(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Qn(e,s,n,!0),i&&i.forEach(o=>Qn(e,o,n,!0));for(const o in t)if(r&&o==="expose")process.env.NODE_ENV!=="production"&&Se('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Nu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Nu={data:lo,props:uo,emits:uo,methods:En,computed:En,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:En,directives:En,watch:vu,provide:lo,inject:Tu};function lo(e,t){return t?e?function(){return Ye(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return En(co(e),co(t))}function co(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Ye(Object.create(null),e,t):t}function uo(e,t){return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:Ye(Object.create(null),ao(e),ao(t??{})):t}function vu(e,t){if(!e)return t;if(!t)return e;const n=Ye(Object.create(null),e);for(const r in t)n[r]=Qe(e[r],t[r]);return n}let Wr=null;function fo(e,t,n=!1){const r=Vt||mt;if(r||Wr){let i=Wr?Wr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Se(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Se("inject() can only be used inside setup() or functional components.")}const Ou={},po=e=>Object.getPrototypeOf(e)===Ou,bu=wu,yu=Symbol.for("v-scx"),Su=()=>{{const e=fo(yu);return e||process.env.NODE_ENV!=="production"&&Se("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Hr(e,t,n){return process.env.NODE_ENV!=="production"&&!Ce(t)&&Se("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),mo(e,t,n)}function mo(e,t,n=st){const{immediate:r,deep:i,flush:s,once:o}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&Se('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Se('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Se('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Ye({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=Se);const f=t&&r||!t&&s!=="post";let m;if(Nn){if(s==="sync"){const D=Su();m=D.__watcherHandles||(D.__watcherHandles=[])}else if(!f){const D=()=>{};return D.stop=Ft,D.resume=Ft,D.pause=Ft,D}}const y=Vt;a.call=(D,H,k)=>Pr(D,y,H,k);let E=!1;s==="post"?a.scheduler=D=>{bu(D,y&&y.suspense)}:s!=="sync"&&(E=!0,a.scheduler=(D,H)=>{H?D():kr(D)}),a.augmentJob=D=>{t&&(D.flags|=4),E&&(D.flags|=2,y&&(D.id=y.uid,D.i=y))};const N=qc(e,t,a);return Nn&&(m?m.push(N):f&&N()),N}function Iu(e,t,n){const r=this.proxy,i=ct(e)?e.includes(".")?Lu(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const o=No(this),a=mo(i,s.bind(r),n);return o(),a}function Lu(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function bd(){}const Du=e=>e.__isSuspense;function wu(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):to(e)}const Yn=Symbol.for("v-fgt"),_o=Symbol.for("v-txt"),Au=Symbol.for("v-cmt");let nn=null;function Gr(e){return e?e.__v_isVNode===!0:!1}const Ru=(...e)=>go(...e),ho=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||Be(e)||Ce(e)?{i:mt,r:e,k:t,f:!!n}:e:null);function Cu(e,t=null,n=null,r=0,i=null,s=e===Yn?0:1,o=!1,a=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ho(t),ref:t&&Xn(t),scopeId:lu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:mt};return a?(jr(f,n),s&128&&e.normalize(f)):n&&(f.shapeFlag|=ct(n)?8:16),process.env.NODE_ENV!=="production"&&f.key!==f.key&&Se("VNode created with invalid key (NaN). VNode type:",f.type),!o&&nn&&(f.patchFlag>0||s&6)&&f.patchFlag!==32&&nn.push(f),f}const rn=process.env.NODE_ENV!=="production"?Ru:go;function go(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===mu)&&(process.env.NODE_ENV!=="production"&&!e&&Se(`Invalid vnode type when creating vnode: ${e}.`),e=Au),Gr(e)){const a=Jn(e,t,!0);return n&&jr(a,n),!s&&nn&&(a.shapeFlag&6?nn[nn.indexOf(e)]=a:nn.push(a)),a.patchFlag=-2,a}if(Oo(e)&&(e=e.__vccOpts),t){t=Pu(t);let{class:a,style:f}=t;a&&!ct(a)&&(t.class=_r(a)),Ke(f)&&($n(f)&&!ye(f)&&(f=Ye({},f)),t.style=mr(f))}const o=ct(e)?1:Du(e)?128:cu(e)?64:Ke(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&$n(e)&&(e=de(e),Se("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
56
|
+
Component that was made reactive: `,e)),Cu(e,t,n,r,i,o,s,!0)}function Pu(e){return e?$n(e)||po(e)?Ye({},e):e:null}function Jn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:f}=e,m=t?ku(i||{},t):i,y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&ho(m),ref:t&&t.ref?n&&s?ye(s)?s.concat(Xn(t)):[s,Xn(t)]:Xn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&ye(a)?a.map(Eo):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Yn?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jn(e.ssContent),ssFallback:e.ssFallback&&Jn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&r&&oo(y,f.clone(y)),y}function Eo(e){const t=Jn(e);return ye(e.children)&&(t.children=e.children.map(Eo)),t}function Fu(e=" ",t=0){return rn(_o,null,e,t)}function jr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ye(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),jr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!po(t)?t._ctx=mt:i===3&&mt&&(mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:mt},n=32):(t=String(t),r&64?(n=16,t=[Fu(t)]):n=8);e.children=t,e.shapeFlag|=n}function ku(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=_r([t.class,r.class]));else if(i==="style")t.style=mr([t.style,r.style]);else if(sc(i)){const s=t[i],o=r[i];o&&s!==o&&!(ye(s)&&s.includes(o))&&(t[i]=s?[].concat(s,o):o)}else i!==""&&(t[i]=r[i])}return t}let Vt=null;const sn=()=>Vt||mt;let Kr;{const e=Mn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Kr=t("__VUE_INSTANCE_SETTERS__",n=>Vt=n),t("__VUE_SSR_SETTERS__",n=>Nn=n)}const No=e=>{const t=Vt;return Kr(e),e.scope.on(),()=>{e.scope.off(),Kr(t)}};function Mu(e){return e.vnode.shapeFlag&4}let Nn=!1;process.env.NODE_ENV;function xu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hc(Uc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}const Vu=/(?:^|[-_])(\w)/g,Uu=e=>e.replace(Vu,t=>t.toUpperCase()).replace(/[-_]/g,"");function To(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function vo(e,t,n=!1){let r=To(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const o in s)if(s[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Uu(r):n?"App":"Anonymous"}function Oo(e){return Ce(e)&&"__vccOpts"in e}const _t=(e,t)=>{const n=jc(e,t,Nn);if(process.env.NODE_ENV!=="production"){const r=sn();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function bo(e,t,n){const r=arguments.length;return r===2?Ke(t)&&!ye(t)?Gr(t)?rn(e,null,[t]):rn(e,t):rn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Gr(n)&&(n=[n]),rn(e,t,n))}function $u(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},i={__vue_custom_formatter:!0,header(E){if(!Ke(E))return null;if(E.__isVue)return["div",e,"VueInstance"];if(Be(E)){Qt();const N=E.value;return Yt(),["div",{},["span",e,y(E)],"<",a(N),">"]}else{if(Jt(E))return["div",{},["span",e,Je(E)?"ShallowReactive":"Reactive"],"<",a(E),`>${Nt(E)?" (readonly)":""}`];if(Nt(E))return["div",{},["span",e,Je(E)?"ShallowReadonly":"Readonly"],"<",a(E),">"]}return null},hasBody(E){return E&&E.__isVue},body(E){if(E&&E.__isVue)return["div",{},...s(E.$)]}};function s(E){const N=[];E.type.props&&E.props&&N.push(o("props",de(E.props))),E.setupState!==st&&N.push(o("setup",E.setupState)),E.data!==st&&N.push(o("data",de(E.data)));const D=f(E,"computed");D&&N.push(o("computed",D));const H=f(E,"inject");return H&&N.push(o("injected",H)),N.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:E}]]),N}function o(E,N){return N=Ye({},N),Object.keys(N).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},E],["div",{style:"padding-left:1.25em"},...Object.keys(N).map(D=>["div",{},["span",r,D+": "],a(N[D],!1)])]]:["span",{}]}function a(E,N=!0){return typeof E=="number"?["span",t,E]:typeof E=="string"?["span",n,JSON.stringify(E)]:typeof E=="boolean"?["span",r,E]:Ke(E)?["object",{object:N?de(E):E}]:["span",n,String(E)]}function f(E,N){const D=E.type;if(Ce(D))return;const H={};for(const k in E.ctx)m(D,k,N)&&(H[k]=E.ctx[k]);return H}function m(E,N,D){const H=E[D];if(ye(H)&&H.includes(N)||Ke(H)&&N in H||E.extends&&m(E.extends,N,D)||E.mixins&&E.mixins.some(k=>m(k,N,D)))return!0}function y(E){return Je(E)?"ShallowRef":E.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
57
57
|
* vue v3.5.17
|
|
58
58
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
59
59
|
* @license MIT
|
|
60
|
-
**/function
|
|
60
|
+
**/function Bu(){$u()}process.env.NODE_ENV!=="production"&&Bu();function Wu(){return yo().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yo(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Hu=typeof Proxy=="function",Gu="devtools-plugin:setup",ju="plugin:settings:set";let on,qr;function Ku(){var e;return on!==void 0||(typeof window<"u"&&window.performance?(on=!0,qr=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(on=!0,qr=globalThis.perf_hooks.performance):on=!1),on}function qu(){return Ku()?qr.now():Date.now()}class Qu{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}s=o},now(){return qu()}},n&&n.on(ju,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...f)=>{this.onQueue.push({method:a,args:f})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...f)=>(this.targetQueue.push({method:a,args:f,resolve:()=>{}}),this.fallbacks[a](...f)):(...f)=>new Promise(m=>{this.targetQueue.push({method:a,args:f,resolve:m})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Yu(e,t){const n=e,r=yo(),i=Wu(),s=Hu&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(Gu,e,t);else{const o=s?new Qu(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
61
61
|
* vue-i18n v9.14.4
|
|
62
62
|
* (c) 2025 kazuya kawaguchi
|
|
63
63
|
* Released under the MIT License.
|
|
64
|
-
*/const Wu="9.14.4";function Hu(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const va=je.__EXTEND_POINT__,bt=Sn(va),Se={FALLBACK_TO_ROOT:va,NOT_SUPPORTED_PRESERVE:bt(),NOT_SUPPORTED_FORMATTER:bt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:bt(),NOT_SUPPORTED_GET_CHOICE_INDEX:bt(),COMPONENT_NAME_LEGACY_COMPATIBLE:bt(),NOT_FOUND_PARENT_SCOPE:bt(),IGNORE_OBJ_FLATTEN:bt(),NOTICE_DROP_ALLOW_COMPOSITION:bt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:bt()},ju={[Se.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Se.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Se.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Se.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Se.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Se.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Se.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Se.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ze(e,...t){return er(ju[e],...t)}const ba=Ve.__EXTEND_POINT__,et=Sn(ba),de={UNEXPECTED_RETURN_TYPE:ba,INVALID_ARGUMENT:et(),MUST_BE_CALL_SETUP_TOP:et(),NOT_INSTALLED:et(),NOT_AVAILABLE_IN_LEGACY_MODE:et(),REQUIRED_VALUE:et(),INVALID_VALUE:et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:et(),NOT_INSTALLED_WITH_PROVIDE:et(),UNEXPECTED_ERROR:et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:et(),BRIDGE_SUPPORT_VUE_2_ONLY:et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:et(),__EXTEND_POINT__:et()};function ke(e,...t){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Gu,args:t}:void 0)}const Gu={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Kr=dt("__translateVNode"),Yr=dt("__datetimeParts"),Qr=dt("__numberParts"),Ut=dt("__enableEmitter"),vn=dt("__disableEmitter"),ya=dt("__setPluralRules"),Oa=dt("__injectWithOption"),Xr=dt("__dispose");function bn(e){if(!ue(e)||rt(e))return e;for(const t in e)if(lt(e,t))if(!t.includes("."))ue(e[t])&&bn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Ne()),!ue(i[n[a]])){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}i=i[n[a]]}if(s||(rt(i)?Bs.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!rt(i)){const a=i[n[r]];ue(a)&&bn(a)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,a=ae(n)?n:be(r)?Ne():{[e]:Ne()};if(be(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:p}=o;u?(a[u]=a[u]||Ne(),Dn(p,a[u])):Dn(p,a)}else G(o)&&Dn(JSON.parse(o),a)}),i==null&&s)for(const o in a)lt(a,o)&&bn(a[o]);return a}function Ta(e){return e.type}function Ia(e,t,n){let r=ue(t.messages)?t.messages:Ne();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ue(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ue(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Sa(e){return rn(ua,null,e,0)}const La="__INTLIFY_META__",Da=()=>[],Ku=()=>!1;let wa=0;function Aa(e){return(t,n,r,i)=>e(n,r,sn()||void 0,i)}const Yu=()=>{const e=sn();let t=null;return e&&(t=Ta(e)[La])?{[La]:t}:null};function Jr(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,a=ot?zt:Gi,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&Ss(Ze(Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=le(e.inheritLocale)?e.inheritLocale:!0;const p=a(n&&u?n.locale.value:G(e.locale)?e.locale:jt),O=a(n&&u?n.fallbackLocale.value:G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:p.value),g=a(zn(p.value,e)),N=a(ae(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),I=a(ae(e.numberFormats)?e.numberFormats:{[p.value]:{}});let H=n?n.missingWarn:le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,M=n?n.fallbackWarn:le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,$=!!e.fallbackFormat,V=ve(e.missing)?e.missing:null,S=ve(e.missing)?Aa(e.missing):null,k=ve(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const P=n?n.modifiers:ae(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,h;h=(()=>{i&&ri(null);const w={version:Wu,locale:p.value,fallbackLocale:O.value,messages:g.value,modifiers:P,pluralRules:_,missing:S===null?void 0:S,missingWarn:H,fallbackWarn:M,fallbackFormat:$,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:F,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};w.datetimeFormats=N.value,w.numberFormats=I.value,w.__datetimeFormatters=ae(h)?h.__datetimeFormatters:void 0,w.__numberFormatters=ae(h)?h.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(w.__v_emitter=ae(h)?h.__v_emitter:void 0);const U=xl(w);return i&&ri(U),U})(),cn(h,p.value,O.value);function j(){return[p.value,O.value,g.value,N.value,I.value]}const q=Qe({get:()=>p.value,set:w=>{p.value=w,h.locale=p.value}}),K=Qe({get:()=>O.value,set:w=>{O.value=w,h.fallbackLocale=O.value,cn(h,p.value,w)}}),oe=Qe(()=>g.value),pe=Qe(()=>N.value),me=Qe(()=>I.value);function ee(){return ve(k)?k:null}function ce(w){k=w,h.postTranslation=w}function z(){return V}function _e(w){w!==null&&(S=Aa(w)),V=w,h.missing=S}function re(w,U){return w!=="translate"||!U.resolvedMessage}const Z=(w,U,ne,Ee,Fe,Me)=>{j();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=n?Vl():void 0),Le=w(h)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=void 0)}if(ne!=="translate exists"&&Ae(Le)&&Le===Cn||ne==="translate exists"&&!Le){const[We,tt]=U();if(process.env.NODE_ENV!=="production"&&n&&G(We)&&re(ne,tt)&&(x&&(kn(M,We)||ii(H,We))&&Pe(Ze(Se.FALLBACK_TO_ROOT,{key:We,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ue}=h;Ue&&x&&Ue.emit("fallback",{type:ne,key:We,to:"global",groupId:`${ne}:${We}`})}return n&&x?Ee(n):Fe(We)}else{if(Me(Le))return Le;throw ke(de.UNEXPECTED_RETURN_TYPE)}};function X(...w){return Z(U=>Reflect.apply(pi,null,[U,...w]),()=>ur(...w),"translate",U=>Reflect.apply(U.t,U,[...w]),U=>U,U=>G(U))}function W(...w){const[U,ne,Ee]=w;if(Ee&&!ue(Ee))throw ke(de.INVALID_ARGUMENT);return X(U,ne,$e({resolvedMessage:!0},Ee||{}))}function ge(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>Reflect.apply(U.d,U,[...w]),()=>Pn,U=>G(U))}function ye(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>Reflect.apply(U.n,U,[...w]),()=>Pn,U=>G(U))}function De(w){return w.map(U=>G(U)||Ae(U)||le(U)?Sa(String(U)):U)}const ie={normalize:De,interpolate:w=>w,type:"vnode"};function c(...w){return Z(U=>{let ne;const Ee=U;try{Ee.processor=ie,ne=Reflect.apply(pi,null,[Ee,...w])}finally{Ee.processor=null}return ne},()=>ur(...w),"translate",U=>U[Kr](...w),U=>[Sa(U)],U=>be(U))}function d(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>U[Qr](...w),Da,U=>G(U)||be(U))}function E(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>U[Yr](...w),Da,U=>G(U)||be(U))}function A(w){_=w,h.pluralRules=_}function m(w,U){return Z(()=>{if(!w)return!1;const ne=G(U)?U:p.value,Ee=y(ne),Fe=h.messageResolver(Ee,w);return o?Fe!=null:rt(Fe)||st(Fe)||G(Fe)},()=>[w],"translate exists",ne=>Reflect.apply(ne.te,ne,[w,U]),Ku,ne=>le(ne))}function v(w){let U=null;const ne=Ys(h,O.value,p.value);for(let Ee=0;Ee<ne.length;Ee++){const Fe=g.value[ne[Ee]]||{},Me=h.messageResolver(Fe,w);if(Me!=null){U=Me;break}}return U}function D(w){const U=v(w);return U??(n?n.tm(w)||{}:{})}function y(w){return g.value[w]||{}}function b(w,U){if(s){const ne={[w]:U};for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w]}g.value[w]=U,h.messages=g.value}function R(w,U){g.value[w]=g.value[w]||{};const ne={[w]:U};if(s)for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w],Dn(U,g.value[w]),h.messages=g.value}function l(w){return N.value[w]||{}}function f(w,U){N.value[w]=U,h.datetimeFormats=N.value,vi(h,w,U)}function C(w,U){N.value[w]=$e(N.value[w]||{},U),h.datetimeFormats=N.value,vi(h,w,U)}function B(w){return I.value[w]||{}}function Y(w,U){I.value[w]=U,h.numberFormats=I.value,Oi(h,w,U)}function J(w,U){I.value[w]=$e(I.value[w]||{},U),h.numberFormats=I.value,Oi(h,w,U)}wa++,n&&ot&&(Br(n.locale,w=>{u&&(p.value=w,h.locale=w,cn(h,p.value,O.value))}),Br(n.fallbackLocale,w=>{u&&(O.value=w,h.fallbackLocale=w,cn(h,p.value,O.value))}));const Q={id:wa,locale:q,fallbackLocale:K,get inheritLocale(){return u},set inheritLocale(w){u=w,w&&n&&(p.value=n.locale.value,O.value=n.fallbackLocale.value,cn(h,p.value,O.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:oe,get modifiers(){return P},get pluralRules(){return _||{}},get isGlobal(){return i},get missingWarn(){return H},set missingWarn(w){H=w,h.missingWarn=H},get fallbackWarn(){return M},set fallbackWarn(w){M=w,h.fallbackWarn=M},get fallbackRoot(){return x},set fallbackRoot(w){x=w},get fallbackFormat(){return $},set fallbackFormat(w){$=w,h.fallbackFormat=$},get warnHtmlMessage(){return F},set warnHtmlMessage(w){F=w,h.warnHtmlMessage=w},get escapeParameter(){return L},set escapeParameter(w){L=w,h.escapeParameter=w},t:X,getLocaleMessage:y,setLocaleMessage:b,mergeLocaleMessage:R,getPostTranslationHandler:ee,setPostTranslationHandler:ce,getMissingHandler:z,setMissingHandler:_e,[ya]:A};return Q.datetimeFormats=pe,Q.numberFormats=me,Q.rt=W,Q.te=m,Q.tm=D,Q.d=ge,Q.n=ye,Q.getDateTimeFormat=l,Q.setDateTimeFormat=f,Q.mergeDateTimeFormat=C,Q.getNumberFormat=B,Q.setNumberFormat=Y,Q.mergeNumberFormat=J,Q[Oa]=r,Q[Kr]=c,Q[Yr]=E,Q[Qr]=d,process.env.NODE_ENV!=="production"&&(Q[Ut]=w=>{h.__v_emitter=w},Q[vn]=()=>{h.__v_emitter=void 0}),Q}function Qu(e){const t=G(e.locale)?e.locale:jt,n=G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ve(e.missing)?e.missing:void 0,i=le(e.silentTranslationWarn)||yt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=le(e.silentFallbackWarn)||yt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=le(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,u=ae(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,O=ve(e.postTranslation)?e.postTranslation:void 0,g=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,I=le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let H=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;H=Object.keys(L).reduce((_,h)=>{const T=_[h]||(_[h]={});return $e(T,L[h]),_},H||{})}const{__i18n:M,__root:x,__injectWithOption:$}=e,V=e.datetimeFormats,S=e.numberFormats,k=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:H,flatJson:k,datetimeFormats:V,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:a,fallbackFormat:o,modifiers:u,pluralRules:p,postTranslation:O,warnHtmlMessage:g,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:I,translateExistCompatible:F,__i18n:M,__root:x,__injectWithOption:$}}function zr(e={},t){{const n=Jr(Qu(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return le(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=le(s)?!s:s},get silentFallbackWarn(){return le(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=le(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[a,o,u]=s,p={};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:be(o)?O=o:ae(o)&&(g=o),be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[a,o,u]=s,p={plural:1};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:Ae(o)?p.plural=o:be(o)?O=o:ae(o)&&(g=o),G(u)?p.locale=u:be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},te(s,a){return n.te(s,a)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,a){n.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){n.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,a){n.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){n.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,a){n.setNumberFormat(s,a)},mergeNumberFormat(s,a){n.mergeNumberFormat(s,a)},getChoiceIndex(s,a){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=s=>{const a=n;a[Ut]&&a[Ut](s)},i.__disableEmitter=()=>{const s=n;s[vn]&&s[vn]()}),i}}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xu({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Qn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Ne())}function Ra(e){return Qn}const es=xr({name:"i18n-t",props:$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ae(e)||!isNaN(e)}},Zr),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ss({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(g=>g!=="_"),a=Ne();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=G(e.plural)?+e.plural:e.plural);const o=Xu(t,s),u=i[Kr](e.keypath,o,a),p=$e(Ne(),r),O=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(O,p,u)}}});function Ju(e){return be(e)&&!G(e[0])}function Ca(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const a={part:!0};let o=Ne();e.locale&&(a.locale=e.locale),G(e.format)?a.key=e.format:ue(e.format)&&(G(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((N,I)=>n.includes(I)?$e(Ne(),N,{[I]:e.format[I]}):N,Ne()));const u=r(e.value,a,o);let p=[a.key];be(u)?p=u.map((N,I)=>{const H=i[N.type],M=H?H({[N.type]:N.value,index:I,parts:u}):[N.value];return Ju(M)&&(M[0].key=`${N.type}-${I}`),M}):G(u)&&(p=[u]);const O=$e(Ne(),s),g=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(g,O,p)}}const Pa=xr({name:"i18n-n",props:$e({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,yi,(...r)=>n[Qr](...r))}}),ka=xr({name:"i18n-d",props:$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,Ni,(...r)=>n[Yr](...r))}});function zu(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Zu(e){const t=a=>{const{instance:o,modifiers:u,value:p}=a;if(!o||!o.$)throw ke(de.UNEXPECTED_ERROR);const O=zu(e,o.$);process.env.NODE_ENV!=="production"&&u.preserve&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE));const g=Fa(p);return[Reflect.apply(O.t,O,[...Ma(g)]),O]};return{created:(a,o)=>{const[u,p]=t(o);ot&&e.global===p&&(a.__i18nWatcher=Br(p.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=p,a.textContent=u},unmounted:a=>{ot&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const u=a.__composer,p=Fa(o);a.textContent=Reflect.apply(u.t,u,[...Ma(p)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function Fa(e){if(G(e))return{path:e};if(ae(e)){if(!("path"in e))throw ke(de.REQUIRED_VALUE,"path");return e}else throw ke(de.INVALID_VALUE)}function Ma(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,a={},o=r||{};return G(n)&&(a.locale=n),Ae(i)&&(a.plural=i),Ae(s)&&(a.plural=s),[t,o,a]}function ef(e,t,...n){const r=ae(n[0])?n[0]:{},i=!!r.useI18nComponentName,s=le(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&Pe(Ze(Se.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:es.name})),s&&([i?"i18n":es.name,"I18nT"].forEach(a=>e.component(a,es)),[Pa.name,"I18nN"].forEach(a=>e.component(a,Pa)),[ka.name,"I18nD"].forEach(a=>e.component(a,ka))),e.directive("t",Zu(t))}const ts={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},tf={"vue-i18n-resource-inspector":"Search for scopes ..."},nf={"vue-i18n-timeline":16764185},Va="vue-i18n: composer properties";let ns;async function rf(e,t){return new Promise((n,r)=>{try{Bu({id:"vue-devtools-plugin-vue-i18n",label:ts["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Va],app:e},i=>{ns=i,i.on.visitComponentTree(({componentInstance:a,treeNode:o})=>{sf(a,o,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:o})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&Ua(o,a.vnode.el.__VUE_I18N__):Ua(o,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ts["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:tf["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&uf(a,t)});const s=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),df(a,t),a.nodeId==="global"){if(!s.has(a.app)){const[o]=await i.getComponentInstances(a.app);s.set(a.app,o)}i.highlightElement(s.get(a.app))}else{const o=ff(a.nodeId,t);o&&i.highlightElement(o)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&mf(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ts["vue-i18n-timeline"],color:nf["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function xa(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function sf(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${xa(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Ua(e,t){const n=Va;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:rs(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function rs(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ve(r)&&"source"in r?t[n]=cf(r):rt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:ue(r)?t[n]=rs(r):t[n]=r}),t}const af={"<":"<",">":">",'"':""","&":"&"};function of(e){return e.replace(/[<>"&]/g,lf)}function lf(e){return af[e]||e}function cf(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${of(e.source)}")`:"(?)"}`}}}function uf(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const s=t.mode==="composition"?i:i.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${xa(r)} Scope`})}}function ff(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function $a(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function df(e,t){const n=$a(e.nodeId,t);return n&&(e.state=pf(n)),null}function pf(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:rs(e.messages.value)}];t[i]=s;{const a="Datetime formats info",o=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=o;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function yn(e,t){if(ns){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ns.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function mf(e,t){const n=$a(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&G(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(G(e.state.value)||be(e.state.value)||ue(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&le(e.state.value)&&(n.inheritLocale=e.state.value)}}function _f(e,t,n){return{beforeCreate(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qa(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=zr(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qa(e,i);else{this.$i18n=zr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ia(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=tr();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",yn)}},unmounted(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yn),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qa(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ya](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const hf=dt("global-vue-i18n");function Ba(e={},t){const n=__VUE_I18N_LEGACY_API__&&le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=le(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[a,o]=gf(e,n),u=dt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Pe(Ze(Se.NOTICE_DROP_ALLOW_COMPOSITION));function p(N){return s.get(N)||null}function O(N,I){s.set(N,I)}function g(N){s.delete(N)}{const N={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(I,...H){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=N),I.__VUE_I18N_SYMBOL__=u,I.provide(I.__VUE_I18N_SYMBOL__,N),ae(H[0])){const $=H[0];N.__composerExtend=$.__composerExtend,N.__vueI18nExtend=$.__vueI18nExtend}let M=null;!n&&r&&(M=Sf(I,N.global)),__VUE_I18N_FULL_INSTALL__&&ef(I,N,...H),__VUE_I18N_LEGACY_API__&&n&&I.mixin(_f(o,o.__composer,N));const x=I.unmount;if(I.unmount=()=>{M&&M(),N.dispose(),x()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await rf(I,N))throw ke(de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const V=tr();if(n){const S=o;S.__enableEmitter&&S.__enableEmitter(V)}else{const S=o;S[Ut]&&S[Ut](V)}V.on("*",yn)}},get global(){return o},dispose(){a.stop()},__instances:s,__getInstance:p,__setInstance:O,__deleteInstance:g};return N}}function ss(e={}){const t=sn();if(t==null)throw ke(de.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ke(de.NOT_INSTALLED);const n=Ef(t),r=vf(n),i=Ta(t),s=Nf(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ke(de.NOT_AVAILABLE_IN_LEGACY_MODE);return Tf(t,s,r,e)}if(s==="global")return Ia(r,e,i),r;if(s==="parent"){let u=bf(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let o=a.__getInstance(t);if(o==null){const u=$e({},e);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),o=Jr(u),a.__composerExtend&&(o[Xr]=a.__composerExtend(o)),Of(a,t,o),a.__setInstance(t,o)}return o}function gf(e,t,n){const r=uc();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>zr(e)):r.run(()=>Jr(e));if(i==null)throw ke(de.UNEXPECTED_ERROR);return[r,i]}}function Ef(e){{const t=oa(e.isCE?hf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ke(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return t}}function Nf(e,t){return In(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vf(e){return e.mode==="composition"?e.global:e.global.__composer}function bf(e,t,n=!1){let r=null;const i=t.root;let s=yf(t,n);for(;s!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(s);o!=null&&(r=o.__composer,n&&r&&!r[Oa]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function yf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Of(e,t,n){let r=null;su(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=tr();const i=n;i[Ut]&&i[Ut](r),r.on("*",yn)}},t),iu(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",yn),i[vn]&&i[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=i[Xr];s&&(s(),delete i[Xr])},t)}function Tf(e,t,n,r={}){const i=t==="local",s=Gi(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ke(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=le(r.inheritLocale)?r.inheritLocale:!G(r.locale),o=zt(!i||a?n.locale.value:G(r.locale)?r.locale:jt),u=zt(!i||a?n.fallbackLocale.value:G(r.fallbackLocale)||be(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),p=zt(zn(o.value,r)),O=zt(ae(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),g=zt(ae(r.numberFormats)?r.numberFormats:{[o.value]:{}}),N=i?n.missingWarn:le(r.missingWarn)||yt(r.missingWarn)?r.missingWarn:!0,I=i?n.fallbackWarn:le(r.fallbackWarn)||yt(r.fallbackWarn)?r.fallbackWarn:!0,H=i?n.fallbackRoot:le(r.fallbackRoot)?r.fallbackRoot:!0,M=!!r.fallbackFormat,x=ve(r.missing)?r.missing:null,$=ve(r.postTranslation)?r.postTranslation:null,V=i?n.warnHtmlMessage:le(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,k=i?n.modifiers:ae(r.modifiers)?r.modifiers:{},F=r.pluralRules||i&&n.pluralRules;function L(){return[o.value,u.value,p.value,O.value,g.value]}const P=Qe({get:()=>s.value?s.value.locale.value:o.value,set:m=>{s.value&&(s.value.locale.value=m),o.value=m}}),_=Qe({get:()=>s.value?s.value.fallbackLocale.value:u.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),u.value=m}}),h=Qe(()=>s.value?s.value.messages.value:p.value),T=Qe(()=>O.value),j=Qe(()=>g.value);function q(){return s.value?s.value.getPostTranslationHandler():$}function K(m){s.value&&s.value.setPostTranslationHandler(m)}function oe(){return s.value?s.value.getMissingHandler():x}function pe(m){s.value&&s.value.setMissingHandler(m)}function me(m){return L(),m()}function ee(...m){return s.value?me(()=>Reflect.apply(s.value.t,null,[...m])):me(()=>"")}function ce(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function z(...m){return s.value?me(()=>Reflect.apply(s.value.d,null,[...m])):me(()=>"")}function _e(...m){return s.value?me(()=>Reflect.apply(s.value.n,null,[...m])):me(()=>"")}function re(m){return s.value?s.value.tm(m):{}}function Z(m,v){return s.value?s.value.te(m,v):!1}function X(m){return s.value?s.value.getLocaleMessage(m):{}}function W(m,v){s.value&&(s.value.setLocaleMessage(m,v),p.value[m]=v)}function ge(m,v){s.value&&s.value.mergeLocaleMessage(m,v)}function ye(m){return s.value?s.value.getDateTimeFormat(m):{}}function De(m,v){s.value&&(s.value.setDateTimeFormat(m,v),O.value[m]=v)}function te(m,v){s.value&&s.value.mergeDateTimeFormat(m,v)}function ie(m){return s.value?s.value.getNumberFormat(m):{}}function c(m,v){s.value&&(s.value.setNumberFormat(m,v),g.value[m]=v)}function d(m,v){s.value&&s.value.mergeNumberFormat(m,v)}const E={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:_,messages:h,datetimeFormats:T,numberFormats:j,get inheritLocale(){return s.value?s.value.inheritLocale:a},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(p.value)},get modifiers(){return s.value?s.value.modifiers:k},get pluralRules(){return s.value?s.value.pluralRules:F},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:N},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:I},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:H},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:M},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:V},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:ee,getPostTranslationHandler:q,setPostTranslationHandler:K,getMissingHandler:oe,setMissingHandler:pe,rt:ce,d:z,n:_e,tm:re,te:Z,getLocaleMessage:X,setLocaleMessage:W,mergeLocaleMessage:ge,getDateTimeFormat:ye,setDateTimeFormat:De,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:c,mergeNumberFormat:d};function A(m){m.locale.value=o.value,m.fallbackLocale.value=u.value,Object.keys(p.value).forEach(v=>{m.mergeLocaleMessage(v,p.value[v])}),Object.keys(O.value).forEach(v=>{m.mergeDateTimeFormat(v,O.value[v])}),Object.keys(g.value).forEach(v=>{m.mergeNumberFormat(v,g.value[v])}),m.escapeParameter=S,m.fallbackFormat=M,m.fallbackRoot=H,m.fallbackWarn=I,m.missingWarn=N,m.warnHtmlMessage=V}return ru(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ke(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(o.value=m.locale.value,u.value=m.fallbackLocale.value,p.value=m.messages.value,O.value=m.datetimeFormats.value,g.value=m.numberFormats.value):i&&A(m)}),E}const If=["locale","fallbackLocale","availableLocales"],Wa=["t","rt","d","n","tm","te"];function Sf(e,t){const n=Object.create(null);return If.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw ke(de.UNEXPECTED_ERROR);const a=qe(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,Wa.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw ke(de.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Wa.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Hu(),__INTLIFY_JIT_COMPILATION__?zs(Wl):zs(Bl),Pl(pl),kl(Ys),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,yl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Lf=(e="en")=>{const t=Ba({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,r={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},i={tdengine:`Field,Value,Char Value,Remarks (Optional)
|
|
64
|
+
*/const Xu="9.14.4";function Ju(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const So=je.__EXTEND_POINT__,vt=In(So),Ie={FALLBACK_TO_ROOT:So,NOT_SUPPORTED_PRESERVE:vt(),NOT_SUPPORTED_FORMATTER:vt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:vt(),NOT_SUPPORTED_GET_CHOICE_INDEX:vt(),COMPONENT_NAME_LEGACY_COMPATIBLE:vt(),NOT_FOUND_PARENT_SCOPE:vt(),IGNORE_OBJ_FLATTEN:vt(),NOTICE_DROP_ALLOW_COMPOSITION:vt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:vt()},zu={[Ie.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ie.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ie.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ie.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ie.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ie.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ie.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ie.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ie.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Ie.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ze(e,...t){return er(zu[e],...t)}const Io=xe.__EXTEND_POINT__,Ze=In(Io),pe={UNEXPECTED_RETURN_TYPE:Io,INVALID_ARGUMENT:Ze(),MUST_BE_CALL_SETUP_TOP:Ze(),NOT_INSTALLED:Ze(),NOT_AVAILABLE_IN_LEGACY_MODE:Ze(),REQUIRED_VALUE:Ze(),INVALID_VALUE:Ze(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ze(),NOT_INSTALLED_WITH_PROVIDE:Ze(),UNEXPECTED_ERROR:Ze(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ze(),BRIDGE_SUPPORT_VUE_2_ONLY:Ze(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ze(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ze(),__EXTEND_POINT__:Ze()};function Fe(e,...t){return Wt(e,null,process.env.NODE_ENV!=="production"?{messages:Zu,args:t}:void 0)}const Zu={[pe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[pe.INVALID_ARGUMENT]:"Invalid argument",[pe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[pe.NOT_INSTALLED]:"Need to install with `app.use` function",[pe.UNEXPECTED_ERROR]:"Unexpected error",[pe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[pe.REQUIRED_VALUE]:"Required in value: {0}",[pe.INVALID_VALUE]:"Invalid value",[pe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[pe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[pe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[pe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qr=ft("__translateVNode"),Yr=ft("__datetimeParts"),Xr=ft("__numberParts"),Ut=ft("__enableEmitter"),Tn=ft("__disableEmitter"),Lo=ft("__setPluralRules"),Do=ft("__injectWithOption"),Jr=ft("__dispose");function vn(e){if(!fe(e)||nt(e))return e;for(const t in e)if(at(e,t))if(!t.includes("."))fe(e[t])&&vn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in i||(i[n[o]]=Te()),!fe(i[n[o]])){process.env.NODE_ENV!=="production"&&Pe(ze(Ie.IGNORE_OBJ_FLATTEN,{key:n[o]})),s=!0;break}i=i[n[o]]}if(s||(nt(i)?Ks.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!nt(i)){const o=i[n[r]];fe(o)&&vn(o)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,o=oe(n)?n:Oe(r)?Te():{[e]:Te()};if(Oe(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:f,resource:m}=a;f?(o[f]=o[f]||Te(),Dn(m,o[f])):Dn(m,o)}else K(a)&&Dn(JSON.parse(a),o)}),i==null&&s)for(const a in o)at(o,a)&&vn(o[a]);return o}function wo(e){return e.type}function Ao(e,t,n){let r=fe(t.messages)?t.messages:Te();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(fe(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(fe(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Ro(e){return rn(_o,null,e,0)}const Co="__INTLIFY_META__",Po=()=>[],ef=()=>!1;let Fo=0;function ko(e){return(t,n,r,i)=>e(n,r,sn()||void 0,i)}const tf=()=>{const e=sn();let t=null;return e&&(t=wo(e)[Co])?{[Co]:t}:null};function zr(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,o=ot?zt:Xi,a=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&As(ze(Ie.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let f=ce(e.inheritLocale)?e.inheritLocale:!0;const m=o(n&&f?n.locale.value:K(e.locale)?e.locale:jt),y=o(n&&f?n.fallbackLocale.value:K(e.fallbackLocale)||Oe(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:m.value),E=o(zn(m.value,e)),N=o(oe(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),D=o(oe(e.numberFormats)?e.numberFormats:{[m.value]:{}});let H=n?n.missingWarn:ce(e.missingWarn)||Ot(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:ce(e.fallbackWarn)||Ot(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:ce(e.fallbackRoot)?e.fallbackRoot:!0,G=!!e.fallbackFormat,V=ve(e.missing)?e.missing:null,A=ve(e.missing)?ko(e.missing):null,M=ve(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const P=n?n.modifiers:oe(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,h;h=(()=>{i&&ai(null);const L={version:Xu,locale:m.value,fallbackLocale:y.value,messages:E.value,modifiers:P,pluralRules:_,missing:A===null?void 0:A,missingWarn:H,fallbackWarn:k,fallbackFormat:G,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:F,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=N.value,L.numberFormats=D.value,L.__datetimeFormatters=oe(h)?h.__datetimeFormatters:void 0,L.__numberFormatters=oe(h)?h.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(L.__v_emitter=oe(h)?h.__v_emitter:void 0);const U=Kl(L);return i&&ai(U),U})(),cn(h,m.value,y.value);function j(){return[m.value,y.value,E.value,N.value,D.value]}const $=_t({get:()=>m.value,set:L=>{m.value=L,h.locale=m.value}}),q=_t({get:()=>y.value,set:L=>{y.value=L,h.fallbackLocale=y.value,cn(h,m.value,L)}}),ae=_t(()=>E.value),me=_t(()=>N.value),_e=_t(()=>D.value);function ee(){return ve(M)?M:null}function ue(L){M=L,h.postTranslation=L}function z(){return V}function he(L){L!==null&&(A=ko(L)),V=L,h.missing=A}function re(L,U){return L!=="translate"||!U.resolvedMessage}const Z=(L,U,ne,Ne,ke,Me)=>{j();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=n?jl():void 0),Le=L(h)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=void 0)}if(ne!=="translate exists"&&Ae(Le)&&Le===Cn||ne==="translate exists"&&!Le){const[He,et]=U();if(process.env.NODE_ENV!=="production"&&n&&K(He)&&re(ne,et)&&(x&&(Fn(k,He)||ci(H,He))&&Pe(ze(Ie.FALLBACK_TO_ROOT,{key:He,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ue}=h;Ue&&x&&Ue.emit("fallback",{type:ne,key:He,to:"global",groupId:`${ne}:${He}`})}return n&&x?Ne(n):ke(He)}else{if(Me(Le))return Le;throw Fe(pe.UNEXPECTED_RETURN_TYPE)}};function X(...L){return Z(U=>Reflect.apply(gi,null,[U,...L]),()=>ur(...L),"translate",U=>Reflect.apply(U.t,U,[...L]),U=>U,U=>K(U))}function W(...L){const[U,ne,Ne]=L;if(Ne&&!fe(Ne))throw Fe(pe.INVALID_ARGUMENT);return X(U,ne,$e({resolvedMessage:!0},Ne||{}))}function Ee(...L){return Z(U=>Reflect.apply(Oi,null,[U,...L]),()=>fr(...L),"datetime format",U=>Reflect.apply(U.d,U,[...L]),()=>Pn,U=>K(U))}function be(...L){return Z(U=>Reflect.apply(Si,null,[U,...L]),()=>dr(...L),"number format",U=>Reflect.apply(U.n,U,[...L]),()=>Pn,U=>K(U))}function De(L){return L.map(U=>K(U)||Ae(U)||ce(U)?Ro(String(U)):U)}const ie={normalize:De,interpolate:L=>L,type:"vnode"};function c(...L){return Z(U=>{let ne;const Ne=U;try{Ne.processor=ie,ne=Reflect.apply(gi,null,[Ne,...L])}finally{Ne.processor=null}return ne},()=>ur(...L),"translate",U=>U[Qr](...L),U=>[Ro(U)],U=>Oe(U))}function d(...L){return Z(U=>Reflect.apply(Si,null,[U,...L]),()=>dr(...L),"number format",U=>U[Xr](...L),Po,U=>K(U)||Oe(U))}function g(...L){return Z(U=>Reflect.apply(Oi,null,[U,...L]),()=>fr(...L),"datetime format",U=>U[Yr](...L),Po,U=>K(U)||Oe(U))}function w(L){_=L,h.pluralRules=_}function p(L,U){return Z(()=>{if(!L)return!1;const ne=K(U)?U:m.value,Ne=O(ne),ke=h.messageResolver(Ne,L);return a?ke!=null:nt(ke)||rt(ke)||K(ke)},()=>[L],"translate exists",ne=>Reflect.apply(ne.te,ne,[L,U]),ef,ne=>ce(ne))}function T(L){let U=null;const ne=zs(h,y.value,m.value);for(let Ne=0;Ne<ne.length;Ne++){const ke=E.value[ne[Ne]]||{},Me=h.messageResolver(ke,L);if(Me!=null){U=Me;break}}return U}function S(L){const U=T(L);return U??(n?n.tm(L)||{}:{})}function O(L){return E.value[L]||{}}function v(L,U){if(s){const ne={[L]:U};for(const Ne in ne)at(ne,Ne)&&vn(ne[Ne]);U=ne[L]}E.value[L]=U,h.messages=E.value}function R(L,U){E.value[L]=E.value[L]||{};const ne={[L]:U};if(s)for(const Ne in ne)at(ne,Ne)&&vn(ne[Ne]);U=ne[L],Dn(U,E.value[L]),h.messages=E.value}function l(L){return N.value[L]||{}}function u(L,U){N.value[L]=U,h.datetimeFormats=N.value,yi(h,L,U)}function C(L,U){N.value[L]=$e(N.value[L]||{},U),h.datetimeFormats=N.value,yi(h,L,U)}function B(L){return D.value[L]||{}}function Q(L,U){D.value[L]=U,h.numberFormats=D.value,Li(h,L,U)}function J(L,U){D.value[L]=$e(D.value[L]||{},U),h.numberFormats=D.value,Li(h,L,U)}Fo++,n&&ot&&(Hr(n.locale,L=>{f&&(m.value=L,h.locale=L,cn(h,m.value,y.value))}),Hr(n.fallbackLocale,L=>{f&&(y.value=L,h.fallbackLocale=L,cn(h,m.value,y.value))}));const Y={id:Fo,locale:$,fallbackLocale:q,get inheritLocale(){return f},set inheritLocale(L){f=L,L&&n&&(m.value=n.locale.value,y.value=n.fallbackLocale.value,cn(h,m.value,y.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:ae,get modifiers(){return P},get pluralRules(){return _||{}},get isGlobal(){return i},get missingWarn(){return H},set missingWarn(L){H=L,h.missingWarn=H},get fallbackWarn(){return k},set fallbackWarn(L){k=L,h.fallbackWarn=k},get fallbackRoot(){return x},set fallbackRoot(L){x=L},get fallbackFormat(){return G},set fallbackFormat(L){G=L,h.fallbackFormat=G},get warnHtmlMessage(){return F},set warnHtmlMessage(L){F=L,h.warnHtmlMessage=L},get escapeParameter(){return I},set escapeParameter(L){I=L,h.escapeParameter=L},t:X,getLocaleMessage:O,setLocaleMessage:v,mergeLocaleMessage:R,getPostTranslationHandler:ee,setPostTranslationHandler:ue,getMissingHandler:z,setMissingHandler:he,[Lo]:w};return Y.datetimeFormats=me,Y.numberFormats=_e,Y.rt=W,Y.te=p,Y.tm=S,Y.d=Ee,Y.n=be,Y.getDateTimeFormat=l,Y.setDateTimeFormat=u,Y.mergeDateTimeFormat=C,Y.getNumberFormat=B,Y.setNumberFormat=Q,Y.mergeNumberFormat=J,Y[Do]=r,Y[Qr]=c,Y[Yr]=g,Y[Xr]=d,process.env.NODE_ENV!=="production"&&(Y[Ut]=L=>{h.__v_emitter=L},Y[Tn]=()=>{h.__v_emitter=void 0}),Y}function nf(e){const t=K(e.locale)?e.locale:jt,n=K(e.fallbackLocale)||Oe(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ve(e.missing)?e.missing:void 0,i=ce(e.silentTranslationWarn)||Ot(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=ce(e.silentFallbackWarn)||Ot(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ce(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,f=oe(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,y=ve(e.postTranslation)?e.postTranslation:void 0,E=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,D=ce(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Pe(ze(Ie.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Pe(ze(Ie.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let H=e.messages;if(oe(e.sharedMessages)){const I=e.sharedMessages;H=Object.keys(I).reduce((_,h)=>{const b=_[h]||(_[h]={});return $e(b,I[h]),_},H||{})}const{__i18n:k,__root:x,__injectWithOption:G}=e,V=e.datetimeFormats,A=e.numberFormats,M=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:H,flatJson:M,datetimeFormats:V,numberFormats:A,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:f,pluralRules:m,postTranslation:y,warnHtmlMessage:E,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:D,translateExistCompatible:F,__i18n:k,__root:x,__injectWithOption:G}}function Zr(e={},t){{const n=zr(nf(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return ce(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=ce(s)?!s:s},get silentFallbackWarn(){return ce(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=ce(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,a,f]=s,m={};let y=null,E=null;if(!K(o))throw Fe(pe.INVALID_ARGUMENT);const N=o;return K(a)?m.locale=a:Oe(a)?y=a:oe(a)&&(E=a),Oe(f)?y=f:oe(f)&&(E=f),Reflect.apply(n.t,n,[N,y||E||{},m])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,a,f]=s,m={plural:1};let y=null,E=null;if(!K(o))throw Fe(pe.INVALID_ARGUMENT);const N=o;return K(a)?m.locale=a:Ae(a)?m.plural=a:Oe(a)?y=a:oe(a)&&(E=a),K(f)?m.locale=f:Oe(f)?y=f:oe(f)&&(E=f),Reflect.apply(n.t,n,[N,y||E||{},m])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=s=>{const o=n;o[Ut]&&o[Ut](s)},i.__disableEmitter=()=>{const s=n;s[Tn]&&s[Tn]()}),i}}const es={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rf({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Yn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Te())}function Mo(e){return Yn}const ts=Vr({name:"i18n-t",props:$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ae(e)||!isNaN(e)}},es),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||is({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(E=>E!=="_"),o=Te();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=K(e.plural)?+e.plural:e.plural);const a=rf(t,s),f=i[Qr](e.keypath,a,o),m=$e(Te(),r),y=K(e.tag)||fe(e.tag)?e.tag:Mo();return bo(y,m,f)}}});function sf(e){return Oe(e)&&!K(e[0])}function xo(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const o={part:!0};let a=Te();e.locale&&(o.locale=e.locale),K(e.format)?o.key=e.format:fe(e.format)&&(K(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((N,D)=>n.includes(D)?$e(Te(),N,{[D]:e.format[D]}):N,Te()));const f=r(e.value,o,a);let m=[o.key];Oe(f)?m=f.map((N,D)=>{const H=i[N.type],k=H?H({[N.type]:N.value,index:D,parts:f}):[N.value];return sf(k)&&(k[0].key=`${N.type}-${D}`),k}):K(f)&&(m=[f]);const y=$e(Te(),s),E=K(e.tag)||fe(e.tag)?e.tag:Mo();return bo(E,y,m)}}const Vo=Vr({name:"i18n-n",props:$e({value:{type:Number,required:!0},format:{type:[String,Object]}},es),setup(e,t){const n=e.i18n||is({useScope:e.scope,__useComponent:!0});return xo(e,t,Ii,(...r)=>n[Xr](...r))}}),Uo=Vr({name:"i18n-d",props:$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},es),setup(e,t){const n=e.i18n||is({useScope:e.scope,__useComponent:!0});return xo(e,t,bi,(...r)=>n[Yr](...r))}});function of(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function af(e){const t=o=>{const{instance:a,modifiers:f,value:m}=o;if(!a||!a.$)throw Fe(pe.UNEXPECTED_ERROR);const y=of(e,a.$);process.env.NODE_ENV!=="production"&&f.preserve&&Pe(ze(Ie.NOT_SUPPORTED_PRESERVE));const E=$o(m);return[Reflect.apply(y.t,y,[...Bo(E)]),y]};return{created:(o,a)=>{const[f,m]=t(a);ot&&e.global===m&&(o.__i18nWatcher=Hr(m.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=m,o.textContent=f},unmounted:o=>{ot&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const f=o.__composer,m=$o(a);o.textContent=Reflect.apply(f.t,f,[...Bo(m)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $o(e){if(K(e))return{path:e};if(oe(e)){if(!("path"in e))throw Fe(pe.REQUIRED_VALUE,"path");return e}else throw Fe(pe.INVALID_VALUE)}function Bo(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,o={},a=r||{};return K(n)&&(o.locale=n),Ae(i)&&(o.plural=i),Ae(s)&&(o.plural=s),[t,a,o]}function lf(e,t,...n){const r=oe(n[0])?n[0]:{},i=!!r.useI18nComponentName,s=ce(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&Pe(ze(Ie.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ts.name})),s&&([i?"i18n":ts.name,"I18nT"].forEach(o=>e.component(o,ts)),[Vo.name,"I18nN"].forEach(o=>e.component(o,Vo)),[Uo.name,"I18nD"].forEach(o=>e.component(o,Uo))),e.directive("t",af(t))}const ns={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},cf={"vue-i18n-resource-inspector":"Search for scopes ..."},uf={"vue-i18n-timeline":16764185},Wo="vue-i18n: composer properties";let rs;async function ff(e,t){return new Promise((n,r)=>{try{Yu({id:"vue-devtools-plugin-vue-i18n",label:ns["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Wo],app:e},i=>{rs=i,i.on.visitComponentTree(({componentInstance:o,treeNode:a})=>{df(o,a,t)}),i.on.inspectComponent(({componentInstance:o,instanceData:a})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&a&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Go(a,o.vnode.el.__VUE_I18N__):Go(a,o.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ns["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:cf["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&gf(o,t)});const s=new Map;i.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),Nf(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[a]=await i.getComponentInstances(o.app);s.set(o.app,a)}i.highlightElement(s.get(o.app))}else{const a=Ef(o.nodeId,t);a&&i.highlightElement(a)}}),i.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&vf(o,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ns["vue-i18n-timeline"],color:uf["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function Ho(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function df(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${Ho(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Go(e,t){const n=Wo;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ss(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ss(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ve(r)&&"source"in r?t[n]=hf(r):nt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:fe(r)?t[n]=ss(r):t[n]=r}),t}const pf={"<":"<",">":">",'"':""","&":"&"};function mf(e){return e.replace(/[<>"&]/g,_f)}function _f(e){return pf[e]||e}function hf(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${mf(e.source)}")`:"(?)"}`}}}function gf(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const s=t.mode==="composition"?i:i.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Ho(r)} Scope`})}}function Ef(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function jo(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Nf(e,t){const n=jo(e.nodeId,t);return n&&(e.state=Tf(n)),null}function Tf(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:ss(e.messages.value)}];t[i]=s;{const o="Datetime formats info",a=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=a;const f="Datetime formats info",m=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=m}return t}function On(e,t){if(rs){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),rs.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function vf(e,t){const n=jo(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&K(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(K(e.state.value)||Oe(e.state.value)||fe(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ce(e.state.value)&&(n.inheritLocale=e.state.value)}}function Of(e,t,n){return{beforeCreate(){const r=sn();if(!r)throw Fe(pe.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=Ko(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Zr(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Ko(e,i);else{this.$i18n=Zr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ao(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=tr();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",On)}},unmounted(){const r=sn();if(!r)throw Fe(pe.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",On),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Ko(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Lo](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const bf=ft("global-vue-i18n");function qo(e={},t){const n=__VUE_I18N_LEGACY_API__&&ce(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ce(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,a]=yf(e,n),f=ft(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Pe(ze(Ie.NOTICE_DROP_ALLOW_COMPOSITION));function m(N){return s.get(N)||null}function y(N,D){s.set(N,D)}function E(N){s.delete(N)}{const N={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(D,...H){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(D.__VUE_I18N__=N),D.__VUE_I18N_SYMBOL__=f,D.provide(D.__VUE_I18N_SYMBOL__,N),oe(H[0])){const G=H[0];N.__composerExtend=G.__composerExtend,N.__vueI18nExtend=G.__vueI18nExtend}let k=null;!n&&r&&(k=Pf(D,N.global)),__VUE_I18N_FULL_INSTALL__&&lf(D,N,...H),__VUE_I18N_LEGACY_API__&&n&&D.mixin(Of(a,a.__composer,N));const x=D.unmount;if(D.unmount=()=>{k&&k(),N.dispose(),x()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await ff(D,N))throw Fe(pe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const V=tr();if(n){const A=a;A.__enableEmitter&&A.__enableEmitter(V)}else{const A=a;A[Ut]&&A[Ut](V)}V.on("*",On)}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:m,__setInstance:y,__deleteInstance:E};return N}}function is(e={}){const t=sn();if(t==null)throw Fe(pe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fe(pe.NOT_INSTALLED);const n=Sf(t),r=Lf(n),i=wo(t),s=If(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Fe(pe.NOT_AVAILABLE_IN_LEGACY_MODE);return Rf(t,s,r,e)}if(s==="global")return Ao(r,e,i),r;if(s==="parent"){let f=Df(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&Pe(ze(Ie.NOT_FOUND_PARENT_SCOPE)),f=r),f}const o=n;let a=o.__getInstance(t);if(a==null){const f=$e({},e);"__i18n"in i&&(f.__i18n=i.__i18n),r&&(f.__root=r),a=zr(f),o.__composerExtend&&(a[Jr]=o.__composerExtend(a)),Af(o,t,a),o.__setInstance(t,a)}return a}function yf(e,t,n){const r=Ec();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Zr(e)):r.run(()=>zr(e));if(i==null)throw Fe(pe.UNEXPECTED_ERROR);return[r,i]}}function Sf(e){{const t=fo(e.isCE?bf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fe(e.isCE?pe.NOT_INSTALLED_WITH_PROVIDE:pe.UNEXPECTED_ERROR);return t}}function If(e,t){return Sn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Lf(e){return e.mode==="composition"?e.global:e.global.__composer}function Df(e,t,n=!1){let r=null;const i=t.root;let s=wf(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Do]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function wf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Af(e,t,n){let r=null;du(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=tr();const i=n;i[Ut]&&i[Ut](r),r.on("*",On)}},t),pu(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",On),i[Tn]&&i[Tn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=i[Jr];s&&(s(),delete i[Jr])},t)}function Rf(e,t,n,r={}){const i=t==="local",s=Xi(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Fe(pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=ce(r.inheritLocale)?r.inheritLocale:!K(r.locale),a=zt(!i||o?n.locale.value:K(r.locale)?r.locale:jt),f=zt(!i||o?n.fallbackLocale.value:K(r.fallbackLocale)||Oe(r.fallbackLocale)||oe(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),m=zt(zn(a.value,r)),y=zt(oe(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),E=zt(oe(r.numberFormats)?r.numberFormats:{[a.value]:{}}),N=i?n.missingWarn:ce(r.missingWarn)||Ot(r.missingWarn)?r.missingWarn:!0,D=i?n.fallbackWarn:ce(r.fallbackWarn)||Ot(r.fallbackWarn)?r.fallbackWarn:!0,H=i?n.fallbackRoot:ce(r.fallbackRoot)?r.fallbackRoot:!0,k=!!r.fallbackFormat,x=ve(r.missing)?r.missing:null,G=ve(r.postTranslation)?r.postTranslation:null,V=i?n.warnHtmlMessage:ce(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,M=i?n.modifiers:oe(r.modifiers)?r.modifiers:{},F=r.pluralRules||i&&n.pluralRules;function I(){return[a.value,f.value,m.value,y.value,E.value]}const P=_t({get:()=>s.value?s.value.locale.value:a.value,set:p=>{s.value&&(s.value.locale.value=p),a.value=p}}),_=_t({get:()=>s.value?s.value.fallbackLocale.value:f.value,set:p=>{s.value&&(s.value.fallbackLocale.value=p),f.value=p}}),h=_t(()=>s.value?s.value.messages.value:m.value),b=_t(()=>y.value),j=_t(()=>E.value);function $(){return s.value?s.value.getPostTranslationHandler():G}function q(p){s.value&&s.value.setPostTranslationHandler(p)}function ae(){return s.value?s.value.getMissingHandler():x}function me(p){s.value&&s.value.setMissingHandler(p)}function _e(p){return I(),p()}function ee(...p){return s.value?_e(()=>Reflect.apply(s.value.t,null,[...p])):_e(()=>"")}function ue(...p){return s.value?Reflect.apply(s.value.rt,null,[...p]):""}function z(...p){return s.value?_e(()=>Reflect.apply(s.value.d,null,[...p])):_e(()=>"")}function he(...p){return s.value?_e(()=>Reflect.apply(s.value.n,null,[...p])):_e(()=>"")}function re(p){return s.value?s.value.tm(p):{}}function Z(p,T){return s.value?s.value.te(p,T):!1}function X(p){return s.value?s.value.getLocaleMessage(p):{}}function W(p,T){s.value&&(s.value.setLocaleMessage(p,T),m.value[p]=T)}function Ee(p,T){s.value&&s.value.mergeLocaleMessage(p,T)}function be(p){return s.value?s.value.getDateTimeFormat(p):{}}function De(p,T){s.value&&(s.value.setDateTimeFormat(p,T),y.value[p]=T)}function te(p,T){s.value&&s.value.mergeDateTimeFormat(p,T)}function ie(p){return s.value?s.value.getNumberFormat(p):{}}function c(p,T){s.value&&(s.value.setNumberFormat(p,T),E.value[p]=T)}function d(p,T){s.value&&s.value.mergeNumberFormat(p,T)}const g={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:_,messages:h,datetimeFormats:b,numberFormats:j,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(p){s.value&&(s.value.inheritLocale=p)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(m.value)},get modifiers(){return s.value?s.value.modifiers:M},get pluralRules(){return s.value?s.value.pluralRules:F},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:N},set missingWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackWarn(){return s.value?s.value.fallbackWarn:D},set fallbackWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackRoot(){return s.value?s.value.fallbackRoot:H},set fallbackRoot(p){s.value&&(s.value.fallbackRoot=p)},get fallbackFormat(){return s.value?s.value.fallbackFormat:k},set fallbackFormat(p){s.value&&(s.value.fallbackFormat=p)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:V},set warnHtmlMessage(p){s.value&&(s.value.warnHtmlMessage=p)},get escapeParameter(){return s.value?s.value.escapeParameter:A},set escapeParameter(p){s.value&&(s.value.escapeParameter=p)},t:ee,getPostTranslationHandler:$,setPostTranslationHandler:q,getMissingHandler:ae,setMissingHandler:me,rt:ue,d:z,n:he,tm:re,te:Z,getLocaleMessage:X,setLocaleMessage:W,mergeLocaleMessage:Ee,getDateTimeFormat:be,setDateTimeFormat:De,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:c,mergeNumberFormat:d};function w(p){p.locale.value=a.value,p.fallbackLocale.value=f.value,Object.keys(m.value).forEach(T=>{p.mergeLocaleMessage(T,m.value[T])}),Object.keys(y.value).forEach(T=>{p.mergeDateTimeFormat(T,y.value[T])}),Object.keys(E.value).forEach(T=>{p.mergeNumberFormat(T,E.value[T])}),p.escapeParameter=A,p.fallbackFormat=k,p.fallbackRoot=H,p.fallbackWarn=D,p.missingWarn=N,p.warnHtmlMessage=V}return fu(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Fe(pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=p.locale.value,f.value=p.fallbackLocale.value,m.value=p.messages.value,y.value=p.datetimeFormats.value,E.value=p.numberFormats.value):i&&w(p)}),g}const Cf=["locale","fallbackLocale","availableLocales"],Qo=["t","rt","d","n","tm","te"];function Pf(e,t){const n=Object.create(null);return Cf.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw Fe(pe.UNEXPECTED_ERROR);const o=Be(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Qo.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw Fe(pe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Qo.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Ju(),__INTLIFY_JIT_COMPILATION__?ni(Jl):ni(Xl),Bl(vl),Wl(zs),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,Al(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ff=(e="en")=>{const t=qo({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,r={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},i={tdengine:`Field,Value,Char Value,Remarks (Optional)
|
|
65
65
|
ts,now,FALSE,Example Remark
|
|
66
66
|
msgid,\${id},TRUE,
|
|
67
67
|
mqtt_topic,\${topic},TRUE,
|
|
@@ -82,6 +82,6 @@ precip,\${payload.precip}i,"${n("influxdbTemplateRemark")}"
|
|
|
82
82
|
temp,\${payload.temp},
|
|
83
83
|
hum,\${payload.hum},
|
|
84
84
|
precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
85
|
-
`};return{filenameMap:r,templateContentMap:i,handleDownloadTemp:(
|
|
86
|
-
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},
|
|
87
|
-
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Rf={access:"Permission",topic:"Topic",username:"Username",password:"Password",cancel:"Cancel",back:"Back",generate:"Generate"},Cf={access:"是否允许",topic:"主题",username:"用户名",password:"密码",cancel:"取消",back:"返回",generate:"生成"},Pf={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード",cancel:"キャンセル",back:"戻り",generate:"生成"},kf={generateSQLByAIBtn:"SQL Generator",generateSQLWithAI:"Generate SQL with AI",taskDescPlaceholder:'Enter a natural language task description, e.g., "Select all fields from t/#"',taskDesc:"Task Description",relatedTopics:"Related Topics",relatedTopicsDesc:'Supports a single topic, or multiple topics (comma-separated, with +/# support), e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'Please enter related topics, e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"Input Example (JSON)",sqlExampleInputDesc:"Provide an example JSON for the input message",sqlExampleOutput:"Output Example (JSON)",sqlExampleOutputDesc:"Provide an example JSON for the output result",applySQL:"Apply SQL",generatedSQLOutputTitle:"Generated SQL",generatedSQLOutputDesc:"Please review the AI-generated SQL. You can apply it directly, or return to modify the description and regenerate."},Ff={generateSQLByAIBtn:"SQL 生成器",generateSQLWithAI:"使用 AI 生成 SQL",taskDescPlaceholder:'请输入自然语言的任务描述,例如:"从 t/# 主题选择所有字段"',taskDesc:"任务描述",relatedTopics:"相关主题",relatedTopicsDesc:'支持单个主题,或多个主题(请使用逗号分隔,支持 +/#),例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'请输入相关主题,例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"输入示例(JSON)",sqlExampleInputDesc:"提供一个输入消息的 JSON 示例",sqlExampleOutput:"输出示例(JSON)",sqlExampleOutputDesc:"提供一个输出结果的 JSON 示例",applySQL:"应用 SQL",generatedSQLOutputTitle:"生成的 SQL",generatedSQLOutputDesc:"请检查 AI 生成的 SQL。可直接应用,或返回修改描述并重新生成。"},Mf={generateSQLByAIBtn:"SQL ジェネレーター",generateSQLWithAI:"AI で SQL を生成",taskDescPlaceholder:"自然言語でタスク説明を入力してください。例:「t/# からすべてのフィールドを選択」",taskDesc:"タスク説明",relatedTopics:"関連トピック",relatedTopicsDesc:"単一トピックまたは複数トピック(カンマ区切り、+/# をサポート)を指定できます。例:「t/a」または「t/a, t/b/#, t/c/+/d」",relatedTopicsPlaceholder:"関連トピックを入力してください。例:「t/a」または「t/a, t/b/#, t/c/+/d」",sqlExampleInput:"入力例(JSON)",sqlExampleInputDesc:"入力メッセージのサンプル JSON を指定してください",sqlExampleOutput:"出力例(JSON)",sqlExampleOutputDesc:"出力結果のサンプル JSON を指定してください",applySQL:"SQL を適用",generatedSQLOutputTitle:"生成された SQL",generatedSQLOutputDesc:"AI が生成した SQL を確認してください。直接適用することも、説明を修正して再生成することもできます。"},is=e=>{const{t}=Ba({mode:"composition",locale:e,messages:{en:{streaming:Df,common:Rf,ruleSQL:kf},zh:{streaming:wf,common:Cf,ruleSQL:Ff},ja:{streaming:Af,common:Pf,ruleSQL:Mf}}}).global;return{t}};var Be=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(Be||{}),as=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(as||{}),$t=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))($t||{});const Vf=e=>{const{t}=is(e),n=[{label:t("streaming.allow"),value:as.Allow},{label:t("streaming.deny"),value:as.Deny}],r=[{label:t("common.topic"),value:$t.Topic},{label:t("streaming.consumerGroupType"),value:$t.Group},{label:t("streaming.clusterType"),value:$t.Cluster}],i=Object.values(Be).map(o=>({label:t(`streaming.aclOperationLabelDic.${o}`),value:o})),s={[$t.Topic]:[Be.All,Be.Read,Be.Write,Be.Describe,Be.Create,Be.Delete],[$t.Group]:[Be.All,Be.Read,Be.Describe,Be.Delete],[$t.Cluster]:[Be.All,Be.Read,Be.Describe,Be.Alter]};return{permissionOptions:n,resourceTypeOptions:r,operationOptions:i,getValidOperations:o=>(s[o]||[]).map(p=>({label:t(`streaming.aclOperationLabelDic.${p}`),value:p}))}},Ha=[{groupLabel:"mathFunc",list:[{name:"abs",args:[{name:"Value",type:"number",required:!0}]},{name:"cos",args:[{name:"Value",type:"number",required:!0}]},{name:"cosh",args:[{name:"Value",type:"number",required:!0}]},{name:"acos",args:[{name:"Value",type:"number",required:!0}]},{name:"acosh",args:[{name:"Value",type:"number",required:!0}]},{name:"sin",args:[{name:"Value",type:"number",required:!0}]},{name:"sinh",args:[{name:"Value",type:"number",required:!0}]},{name:"asin",args:[{name:"Value",type:"number",required:!0}]},{name:"asinh",args:[{name:"Value",type:"number",required:!0}]},{name:"tan",args:[{name:"Value",type:"number",required:!0}]},{name:"tanh",args:[{name:"Value",type:"number",required:!0}]},{name:"atan",args:[{name:"Value",type:"number",required:!0}]},{name:"atanh",args:[{name:"Value",type:"number",required:!0}]},{name:"ceil",args:[{name:"Value",type:"number",required:!0}]},{name:"floor",args:[{name:"Value",type:"number",required:!0}]},{name:"round",args:[{name:"Value",type:"number",required:!0}]},{name:"exp",args:[{name:"Value",type:"number",required:!0}]},{name:"power",args:[{name:"Base",type:"number",required:!0},{name:"Exponent",type:"number",required:!0}]},{name:"sqrt",args:[{name:"Value",type:"number",required:!0}]},{name:"fmod",args:[{name:"Numer",type:"number",required:!0},{name:"Denom",type:"number",required:!0}]},{name:"log",args:[{name:"Value",type:"number",required:!0}]},{name:"log10",args:[{name:"Value",type:"number",required:!0}]},{name:"log2",args:[{name:"Value",type:"number",required:!0}]}]},{groupLabel:"dataTypeJudgmentFunc",list:[{name:"is_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_not_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_str",args:[{name:"Value",type:"any",required:!0}]},{name:"is_bool",args:[{name:"Value",type:"any",required:!0}]},{name:"is_int",args:[{name:"Value",type:"any",required:!0}]},{name:"is_float",args:[{name:"Value",type:"any",required:!0}]},{name:"is_num",args:[{name:"Value",type:"any",required:!0}]},{name:"is_map",args:[{name:"Value",type:"any",required:!0}]},{name:"is_array",args:[{name:"Value",type:"any",required:!0}]},{name:"is_empty",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"dataTypeConversionFunc",list:[{name:"str",args:[{name:"Value",type:"any",required:!0}]},{name:"str_utf8",args:[{name:"Value",type:"any",required:!0}]},{name:"bool",args:[{name:"Value",type:"any",required:!0}]},{name:"int",args:[{name:"Value",type:"any",required:!0}]},{name:"float",args:[{name:"Value",type:"any",required:!0}]},{name:"float2str",args:[{name:"Value",type:"float",required:!0},{name:"Precision",type:"integer",default:2,range:[0,32],required:!0}]},{name:"map",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"stringFunc",list:[{name:"lower",args:[{name:"String",type:"string",required:!0}]},{name:"upper",args:[{name:"String",type:"string",required:!0}]},{name:"trim",args:[{name:"String",type:"string",required:!0}]},{name:"ltrim",args:[{name:"String",type:"string",required:!0}]},{name:"rtrim",args:[{name:"String",type:"string",required:!0}]},{name:"reverse",args:[{name:"String",type:"string",required:!0}]},{name:"strlen",args:[{name:"String",type:"string",required:!0}]},{name:"substr",args:[{name:"String",type:"string",required:!0},{name:"StartPosition",type:"number",required:!0},{name:"Length",type:"number",required:!1}]},{name:"split",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"Direction",required:!1,type:"enum",optionalValues:["leading","trailing"]}]},{name:"concat",args:[{name:"String1",type:"string",required:!0},{name:"String2",type:"string",required:!0}]},{name:"tokens",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"PreserveCRLF",type:"enum",optionalValues:["nocrlf"],required:!1}]},{name:"sprintf",args:[]},{name:"pad",args:[{name:"String",type:"string",required:!0},{name:"TotalLength",type:"integer",required:!0},{name:"PaddingDirection",type:"enum",optionalValues:["both","leading","trailing"],required:!1},{name:"PaddingString",type:"string",required:!1}]},{name:"replace",args:[{name:"String",type:"string",required:!0},{name:"OldSubStr",type:"string",required:!0},{name:"Replacement",type:"string",required:!0},{name:"ReplaceCount",type:"enum",optionalValues:["all","trailing","leading"],required:!1}]},{name:"regex_match",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0}]},{name:"regex_replace",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0},{name:"Replacement",type:"string",required:!0}]},{name:"ascii",args:[{name:"Character",type:"string",required:!0}]},{name:"find",args:[{name:"String",type:"string",required:!0},{name:"SubstringToBeFound",type:"string",required:!0},{name:"DirectionToFind",type:"enum",optionalValues:["leading","trailing"],required:!1}]}]},{groupLabel:"mapFunc",list:[{name:"map_get",args:[{name:"Key",type:"string",required:!0},{name:"Map",type:"object",required:!0},{name:"DefaultValue",type:"any",required:!1}]},{name:"map_put",args:[{name:"Key",type:"string",required:!0},{name:"Value",type:"any",required:!0},{name:"Map",type:"object",required:!0}]},{name:"map_size",args:[{name:"Map",type:"object",required:!0}]}]},{groupLabel:"arrFunc",list:[{name:"nth",args:[{name:"Index",type:"integer",range:[1,null],required:!0},{name:"Array",type:"array",required:!0}]},{name:"length",args:[{name:"Array",type:"array",required:!0}]},{name:"sublist",args:[{name:"StartIndex",type:"integer",range:[1,null],required:!1},{name:"Length",type:"integer",required:!0},{name:"Array",type:"array",required:!0}]},{name:"first",args:[{name:"Array",type:"array",required:!0}]},{name:"last",args:[{name:"Array",type:"array",required:!0}]},{name:"contains",args:[{name:"Value",type:"any",required:!0},{name:"Array",type:"array",required:!0}]}]},{groupLabel:"hashFunc",list:[{name:"md5",args:[{name:"Value",type:"string",required:!0}]},{name:"sha",args:[{name:"Value",type:"string",required:!0}]},{name:"sha256",args:[{name:"Value",type:"string",required:!0}]}]},{groupLabel:"compressesAndUncompressesFunc",list:[{name:"gzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"gunzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip",args:[{name:"Value",type:"binary",required:!0}]},{name:"unzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_compress",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_uncompress",args:[{name:"Value",type:"binary",required:!0}]}]},{groupLabel:"bitFunc",list:[{name:"subbits",args:[{name:"BinaryData",type:"binary",required:!0},{name:"BinaryStartIndex",type:"integer",required:!1},{name:"Length",type:"integer",required:!0},{name:"DataType",type:"enum",optionalValues:["integer","float","bits"],required:!1},{name:"Signedness",type:"enum",optionalValues:["unsigned","signed"],required:!1},{name:"Endian",type:"enum",optionalValues:["big","little"],required:!1}]}]},{groupLabel:"decodingAndEncodingFunc",list:[{name:"base64_encode",args:[{name:"Value",type:"binary",required:!0}]},{name:"base64_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_encode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"bin2hexstr",args:[{name:"Value",type:"binary",required:!0}]},{name:"hexstr2bin",args:[{name:"Value",type:"string",required:!0}]},{name:"str_utf16_le",args:[{name:"Data",type:"string",required:!0}]},{name:"sqlserver_bin2hexstr",args:[{name:"Data",type:"string",required:!0}]}]},{groupLabel:"timeAndDateFunc",list:[{name:"now_timestamp",args:[]},{name:"now_rfc3339",args:[]},{name:"unix_ts_to_rfc3339",args:[{name:"UnixTimestamp",type:"integer",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"rfc3339_to_unix_ts",args:[{name:"RFC3339String",type:"string",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"format_date",args:[{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!0},{name:"TimeOffset",type:"string",required:!0},{name:"DateFormat",type:"string",required:!0},{name:"Timestamp",type:"number",required:!1}]},{name:"date_to_unix_ts",args:[]}]},{groupLabel:"schemaRegistry",list:[{name:"schema_decode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Bin",type:"binary",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_encode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_check",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0}]}]}];var ja=(e=>(e.Number="number",e.Any="any",e.Float="float",e.Integer="integer",e.String="string",e.Enum="enum",e.Object="object",e.Array="array",e.Binary="binary",e))(ja||{});const xf=e=>{const{t}=is(e),n=Ha.map(({groupLabel:o,list:u})=>({groupLabel:o,name:t(`ruleFunction.${o}`),value:o,list:u.filter(p=>p.args.length)})),r=o=>{for(const{list:u}of n)for(const p of u)if(p.name===o)return p;return null},i=o=>{for(const{groupLabel:u,list:p}of n)for(const O of p)if(O.name===o)return u;return null},s={stringFunc:"string",mapFunc:"object",arrFunc:"array"};return{funcOptList:n,getFuncItemByName:r,getFuncGroupByName:i,getArgIndex:(o,u)=>{var N;const p=s[u];let O=-1;const g=(N=o.args)==null?void 0:N.findIndex(({isReference:I})=>I);return p?O=o.args.findIndex(I=>I.type===p):/time/i.test(u)?O=o.args.findIndex(I=>/timestamp/i.test(I.name)):g>-1&&(O=g),O=O>-1?O:0,O}}},Ga=["number","float","integer"],Uf=(e,t,n)=>{const{funcOptList:r,getFuncItemByName:i,getFuncGroupByName:s,getArgIndex:a}=xf(n),o=Qe({get(){return e.modelValue},set($){t("update:modelValue",$)}}),u=($,{groupLabel:V,func:S})=>{const k=a(S,V);return S.args.map((F,L)=>L===k?$:"")},p=Qe(()=>{var V,S;const $=(S=(V=o.value)==null?void 0:V.func)==null?void 0:S.name;return $?i($):null}),O=Qe(()=>p.value?p.value.args:[]),g=Qe(()=>!(O.value.length===0||O.value.length===1&&O.value[0].required)),N=$=>{if(!$){o.value.func.args=[];return}const V=s($);!V||!p.value||(g.value?o.value.func.args=u(o.value.field,{groupLabel:V,func:p.value}):o.value.func.args=[o.value.field])},I=Qe(()=>e.availableFields.map($=>({value:$})));return{record:o,getFieldList:($,V)=>{$||V(I.value);const S=I.value.filter(({value:k})=>k.includes($));V(S)},handleFieldChanged:$=>{O.value.length&&!g.value&&(o.value.func.args=[$])},funcOptList:r,args:O,handleSelectFunc:N,handleArgChanged:($,V,S)=>{Ga.includes(S)&&$!==""&&!Number.isNaN(Number($))&&(o.value.func.args[V]=Number($))}}},$f=["connection_accepted","unacceptable_protocol_version","client_identifier_not_valid","server_unavailable","malformed_username_or_password","unauthorized_client","success","unspecified_error","malformed_packet","protocol_error","implementation_specific_error","unsupported_protocol_version","bad_username_or_password","not_authorized","server_unavailable","server_busy","banned","bad_authentication_method","topic_name_invalid","packet_too_large","quota_exceeded","retain_not_supported","qos_not_supported","use_another_server","server_moved","connection_rate_exceeded","is_cache"];Oe.ArgumentType=ja,Oe.RuleField=$f,Oe.RuleFunc=Ha,Oe.createDownloadBlobLink=Es,Oe.downloadFile=gs,Oe.flattenObject=qt,Oe.formatSizeUnit=ao,Oe.formatValueToMinUnit=oo,Oe.isEmptyObj=Ya,Oe.isJSONString=ro,Oe.jsonBigIntParse=so,Oe.jsonBigIntStringify=io,Oe.numberArgTypes=Ga,Oe.parseJSONSafely=to,Oe.stringifyObjSafely=no,Oe.unflattenObject=Ka,Oe.useBatchSettings=Lf,Oe.useFunctionItemData=Uf,Oe.useLocale=is,Oe.useStreamingAuth=Vf,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
|
|
85
|
+
`};return{filenameMap:r,templateContentMap:i,handleDownloadTemp:(y,E)=>{if(y){const N=new Blob([y],{type:"text/csv"});Os(N,`${E}_template.csv`)}else console.error("Template is empty")},readFileAndParse:async(y,E)=>new Promise((N,D)=>{const H=new FileReader;H.onload=k=>{if(!k.target)return D(new Error("FileReader event target is null"));const x=k.target.result,G=Ea.parse(x,{skipEmptyLines:"greedy"});G.errors.length>0&&D(new Error("Failed to parse CSV data: "+G.errors[0].message)),G.data.length>E+1?D(new Error(n("uploadMaxRowsError",{max:E}))):N(G.data)},H.onerror=()=>{D(new Error("An error occurred while reading the file"))},H.onabort=()=>{D(new Error("File reading was aborted"))},H.readAsText(y)}),processIoTDBData:y=>new Promise((E,N)=>{try{const D=["boolean","int32","int64","float","double","text"],H=y.slice(1).filter(k=>k.length>=4&&k.slice(0,4).every(x=>x&&x.trim()!=="")).map(k=>{const[x,G,V,A]=k;if(!D.includes(V))throw new Error(`Invalid data type: ${V}`);return{timestamp:x,measurement:G,data_type:V,value:A}});E(H)}catch(D){N(D)}}),processTDengineData:y=>new Promise((E,N)=>{try{const D="<table>",H=[],k=[];for(let G=1;G<y.length;G++){const[V,A,M]=y[G];if(!V||!A)continue;H.push(V);const F=["true","TRUE","1","",void 0].includes(M==null?void 0:M.trim()),I=["false","FALSE","0"].includes(M==null?void 0:M.trim());if(F)k.push(`'${A}'`);else if(I)k.push(A);else throw new Error(n("invalidIsCharFlag",{isChar:M}))}const x=`insert into ${D}(${H.join(", ")}) values (${k.join(", ")})`;E(x)}catch(D){N(D)}}),processInfluxDBData:y=>new Promise((E,N)=>{try{const D=[];for(let H=1;H<y.length;H++){const[k,x]=y[H];!k||!x||D.push({key:k,value:x})}E(D)}catch(D){N(D)}})}},kf={title:"Streaming (beta)",streams:"Streams",streamName:"Stream Name",partitionNum:"Number of Partitions",mqttTopic:"MQTT Topic Filter",mqttTopicTip:"MQTT messages matching this topic filter are saved to the corresponding default type Stream. The free type Stream is not associated with an MQTT topic filter.",streamNameTip:"The Kafka topic for a Kafka client is the same as the Stream name.",retention:"Retention Period",consumerGroups:"Consumer Groups",groupID:"Group ID",streamNum:"Number of Streams",consumerNum:"Number of Consumers",protocol:"Protocol",consumers:"Consumers",consumerID:"Consumer ID",partition:"Partition",startOffset:"Start Offset",endOffset:"End Offset",partitions:"Partitions",newStream:"New Stream",streamNameFormatTip:"Start with a letter or number and can include letters, numbers, _, . and -, up to 64 characters",maxStreamsTip:"Up to {num} streams can be created",summary:"EMQX Streaming is an innovative feature of EMQX Platform that allows users to persistently store MQTT messages as data streams and consume them directly using Kafka clients.",enableStreaming:"Enable Streaming (beta)",usingStreaming:"With EMQX Streaming, you can:",streamingBenefits:["Reliably store large amounts of MQTT message data","Directly use Kafka clients for historical data replay and real-time subscription","Seamlessly integrate with existing backend applications and big data systems","Directly interface with stream processors like Flink for data processing"],betaTip:"This feature is in beta.",needVPCTip:"Streaming requires intranet access, please create a {vpc} first.",mqttTopicFormatTip:"Can contain letters, numbers, special characters (_, -, /, +, #, $, %, {'@'}, &, :, {'{'}{'}'} and .) and mid-string spaces (no leading/trailing spaces), up to 128 characters",streamType:"Stream Type",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"The default type Stream is associated with an MQTT topic filter, and MQTT messages matching the topic filter are saved to the Stream. The free type Stream is not associated with an MQTT topic filter.",authType:"Authentication Mechanism",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"Resource Type",aclResourceName:"Resource Selector",aclOperation:"Operation",prefixed:"Prefix",consumerGroupType:"Consumer Group",clusterType:"Cluster",literal:"Literal",matchAll:"All",allow:"Allow",deny:"Deny",aclOperationLabelDic:{ALL:"All",READ:"Read",WRITE:"Write",DESCRIBE:"Describe",CREATE:"Create",DELETE:"Delete",ALTER:"Alter"},usernameRule:"Can contain letters, numbers and some special characters (_, -, /, +, #, $, %, {'@'}, & and .), up to 128 characters",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
|
|
86
|
+
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Mf={title:"Streaming (beta)",streams:"Streams",streamName:"Stream 名称",partitionNum:"分区数量",mqttTopic:"MQTT 主题过滤器",mqttTopicTip:"匹配主题过滤器的 MQTT 消息会被保存到对应的 Default 类型的 Stream 中。Free 类型的 Stream 不与 MQTT 主题过滤器关联。",streamNameTip:"Kafka 客户端看到的 Kafka Topic 的名称和 Stream 名称相同。",retention:"保留天数",consumerGroups:"消费者组",groupID:"组 ID",streamNum:"Stream 数量",consumerNum:"消费者数量",protocol:"协议",consumers:"消费者列表",consumerID:"消费者 ID",partition:"分区",startOffset:"起始偏移量",endOffset:"结束偏移量",partitions:"分区列表",newStream:"新建 Stream",streamNameFormatTip:"以字母或数字开头,可包含字母、数字、下划线(_)、连字符(-)和点号(.),最长 64 个字符",maxStreamsTip:"最多可创建 {num} 个 Stream",summary:"EMQX Streaming 是 EMQX Platform 的一项创新特性,它允许用户将 MQTT 消息持久化存储为数据流,并直接使用 Kafka 客户端进行消费。",enableStreaming:"开通 Streaming (beta)",usingStreaming:"使用 EMQX Streaming,您可以:",streamingBenefits:["可靠地存储大量的 MQTT 消息数据","直接使用 Kafka 客户端进行历史数据回放和实时订阅","无缝集成现有的后端应用程序和大数据系统","直接与 Flink 等流处理器对接进行实时数据处理"],betaTip:"此功能目前处于公测阶段。",needVPCTip:"Streaming 功能需要内网访问,在开通前请先创建 {vpc}。",mqttTopicFormatTip:"可包含字母、数字、部分特殊字符(_、-、/、+、#、$、%、{'@'}、&、:、{'{'}{'}'} 和 .)及中间空格(无首尾空格),最长 128 个字符",streamType:"Stream 类型",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"Default 类型的 Stream 关联 MQTT 主题过滤器,且匹配主题过滤器的 MQTT 消息会被保存到 Stream 中。Free 类型的 Stream 不关联 MQTT 主题过滤器。",authType:"认证方式",host:"Host",hostTip:"填写 Host IP 地址或者使用 <code>*</code> 匹配所有 Host。<br/>如果您选择了 <code>精确匹配</code> 模式,则应提供一个 Host IP 地址。",aclResourceType:"资源类型",aclResourceName:"目标值",aclOperation:"操作类型",prefixed:"前缀匹配",consumerGroupType:"消费者组",clusterType:"集群",literal:"精确匹配",matchAll:"匹配所有",allow:"允许",deny:"不允许",aclOperationLabelDic:{ALL:"全部操作",READ:"读",WRITE:"写",DESCRIBE:"查看详情",CREATE:"创建",DELETE:"删除",ALTER:"更改"},usernameRule:"可包含字母、数字和部分特殊字符(_、-、/、+、#、$、%、{'@'}、& 和 .),最长 128 个字符",aclDescription:"是指对 Kafka 客户端所能操作的资源,包括主题、消费者组和集群等的权限控制。采用白名单模式,即只有在白名单中的条目才能通过,未在白名单中的则默认被拒绝。",networkType:"网络类型",securityProtocol:"安全协议",metricTitleDic:{stream_count:"Stream 数",partition_count:"分区数",group_count:"消费者组数",total_messages_in_rate:"消息流入速率",total_messages_out_rate:"消息流出速率"}},xf={title:"ストリーミング(ベータ)",streams:"ストリーム",streamName:"ストリーム名",partitionNum:"パーティション数",mqttTopic:"MQTT トピックフィルタ",mqttTopicTip:"このトピックフィルターに一致する MQTT メッセージは、対応する「Default」タイプのストリームに保存されます。「Free」タイプのストリームは MQTT トピックフィルターと関連付けられていません。",streamNameTip:"Kafka クライアントで使用する Kafka トピックは、ストリーム名と同じです。",retention:"保持期間",consumerGroups:"コンシューマーグループ",groupID:"グループ ID",streamNum:"ストリーム数",consumerNum:"コンシューマー数",protocol:"プロトコル",consumers:"コンシューマー",consumerID:"コンシューマー ID",partition:"パーティション",startOffset:"開始オフセット",endOffset:"終了オフセット",partitions:"パーティション",newStream:"新規ストリーム",streamNameFormatTip:"文字または数字で始まり、文字、数字、「_」、「.」、「-」を含む最大 64 文字",maxStreamsTip:"最大 {num} 個のストリームを作成できます",summary:"「EMQX Streaming」は、EMQX プラットフォームの革新的な機能で、MQTT メッセージをデータストリームとして永続的に保存し、Kafka クライアントから直接コンシュームできます。",enableStreaming:"ストリーミングを有効にする(ベータ)",usingStreaming:"「EMQX Streaming」を使用すると、以下のことが可能です:",streamingBenefits:["大量の MQTT メッセージデータを確実に保存","Kafka クライアントを直接使用して履歴データの再生とリアルタイムサブスクリプション","既存のバックエンドアプリケーションやビッグデータシステムとのシームレスな統合","Flink などのストリームプロセッサとの直接インターフェース"],betaTip:"この機能はベータ版です。",needVPCTip:"ストリーミングを利用するには内部ネットワークへのアクセスが必要です。まず{vpc}を作成してください。",mqttTopicFormatTip:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」、「:」、「{'{'}{'}'}」、中間の空白、および「.」のみ使え、最長 128 文字です",streamType:"ストリームタイプ",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"「Default」タイプのストリームは MQTT トピックフィルターと関連付けられており、そのフィルターに一致する MQTT メッセージがストリームに保存されます。Kafka クライアントからの「Free」タイプのストリームのは MQTT トピックフィルターと関連付けられていません。",authType:"認証方式",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"リソースタイプ",aclResourceName:"リソース値",aclOperation:"操作",prefixed:"プレフィックス",consumerGroupType:"コンシューマーグループ",clusterType:"クラスタ",literal:"リテラル",matchAll:"すべて",allow:"許可",deny:"拒否",aclOperationLabelDic:{ALL:"すべて",READ:"読み取り",WRITE:"書き込み",DESCRIBE:"説明",CREATE:"作成",DELETE:"削除",ALTER:"変更する"},usernameRule:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」および「.」のみ使え、最長 128 文字です",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
|
|
87
|
+
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Vf={access:"Permission",topic:"Topic",username:"Username",password:"Password",cancel:"Cancel",back:"Back",generate:"Generate",field:"Field",pleaseChoose:"Required",pleaseEnter:"Required",add:"Add",actions:"Actions",transform:"Transform",alias:"Alias",name:"Name",colon:": "},Uf={access:"是否允许",topic:"主题",username:"用户名",password:"密码",cancel:"取消",back:"返回",generate:"生成",field:"字段",pleaseChoose:"请选择",pleaseEnter:"请输入",add:"添加",actions:"操作",transform:"转换",alias:"别名",name:"名称",colon:":"},$f={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード",cancel:"キャンセル",back:"戻り",generate:"生成",field:"フィールド",pleaseChoose:"選択してください",pleaseEnter:"入力してください",add:"追加",actions:"操作",transform:"変換",alias:"エイリアス",name:"名称",colon:":"},Bf={mathFunc:"Mathematical Functions",dataTypeJudgmentFunc:"Data Type Judgment Functions",dataTypeConversionFunc:"Data Type Conversion Functions",stringFunc:"String Functions",mapFunc:"Map Functions",arrFunc:"Array Functions",hashFunc:"Hash Functions",compressesAndUncompressesFunc:"Compression and Decompression Functions",bitFunc:"Bit Functions",decodingAndEncodingFunc:"Decoding and Encoding Functions",timeAndDateFunc:"Time and Date Functions",schemaRegistry:"Schema Registry",Value:"Value",Base:"Base",Exponent:"Exponent",Numer:"Numer",Denom:"Denom",Precision:"Precision",String:"String",StartPosition:"Start Position",Separator:"Separator",Direction:"Direction",String1:"String1",String2:"String2",PreserveCRLF:"Preserve CRLF",TotalLength:"Total Length",PaddingDirection:"Padding Direction",PaddingString:"Padding String",OldSubStr:"Old Sub Str",Replacement:"Replacement",ReplaceCount:"Replace Count",Pattern:"Pattern",Character:"Character",SubstringToBeFound:"Substring To Be Found",DirectionToFind:"Direction To Find",Key:"Key",Map:"Map",DefaultValue:"Default Value",Index:"Index",Array:"Array",StartIndex:"Start Index",Length:"Length",UnixTimestamp:"Unix Timestamp",TimeUnit:"Time Unit",RFC3339String:"RFC3339 Time String",TimeOffset:"Time Offset",DateFormat:"Date Format",Timestamp:"Timestamp",BinaryData:"Binary Data",BinaryStartIndex:"Start Index",DataType:"Data Type",Signedness:"Signedness",Endian:"Endian",SchemaName:"Schema",Data:"Data",Type:"Message Type",aliasDesc:"If the alias contains characters other than letters, numbers, and underscores, or starts with a number, or is a SQL keyword, please add double quotes to the alias",inputFieldRequiredError:"{name} is required",unusedField:"Unused field",aliasRequired:"Need to specify an alias",aliasFormatError:"Invalid alias format"},Wf={mathFunc:"数学函数",dataTypeJudgmentFunc:"数据类型判断函数",dataTypeConversionFunc:"数据类型转换函数",stringFunc:"字符串函数",mapFunc:"Map 函数",arrFunc:"数组函数",hashFunc:"哈希函数",compressesAndUncompressesFunc:"压缩解压缩函数",bitFunc:"比特操作函数",decodingAndEncodingFunc:"编解码函数",timeAndDateFunc:"时间与日期函数",schemaRegistry:"编解码",Value:"值",Base:"基数",Exponent:"指数",Numer:"分子",Denom:"分母",Precision:"精度",String:"字符串",StartPosition:"起始位置",Separator:"分割符",Direction:"方向",String1:"左字符串",String2:"右字符串",PreserveCRLF:"是否保留换行符",TotalLength:"字符总长度",PaddingDirection:"补足方向",PaddingString:"补足字符",OldSubStr:"需要替换的字符串",Replacement:"替换值",ReplaceCount:"替换位置",Pattern:"正则表达式",Character:"字符",SubstringToBeFound:"要查找的子串",DirectionToFind:"查找方向",Key:"键",Map:"Map",DefaultValue:"默认值",Index:"索引",Array:"数组",StartIndex:"起始索引",Length:"截取长度",UnixTimestamp:"Unix 时间戳",TimeUnit:"时间单位",RFC3339String:"RFC 3339 时间字符串",TimeOffset:"时区偏移",DateFormat:"日期格式",Timestamp:"时间戳",BinaryData:"二进制数据",BinaryStartIndex:"起始位置的下标",DataType:"数据类型",Signedness:"符号性",Endian:"字节序",SchemaName:"Schema",Data:"数据",Type:"消息类型",aliasDesc:"别名如包含除字母、数字和下划线以外的字符,或以数字开头,或为 SQL 关键字时,请为别名加上双引号",inputFieldRequiredError:"请输入{name}",unusedField:"未被使用的字段",aliasRequired:"需指定一个别名",aliasFormatError:"格式错误的别名"},Hf={mathFunc:"数学関数",dataTypeJudgmentFunc:"データ型判定関数",dataTypeConversionFunc:"データ型変換関数",stringFunc:"文字列関数",mapFunc:"マップ関数",arrFunc:"配列関数",hashFunc:"ハッシュ関数",compressesAndUncompressesFunc:"圧縮・展開関数",bitFunc:"ビット関数",decodingAndEncodingFunc:"デコード・エンコード関数",timeAndDateFunc:"日時関数",schemaRegistry:"スキーマレジストリ",Value:"値",Base:"基数",Exponent:"指数",Numer:"分子",Denom:"分母",Precision:"精度",String:"文字列",StartPosition:"開始位置",Separator:"区切り文字",Direction:"方向",String1:"文字列 1",String2:"文字列 2",PreserveCRLF:"改行保持(CRLF)",TotalLength:"全体の長さ",PaddingDirection:"パディング方向",PaddingString:"パディング文字",OldSubStr:"元の部分文字列",Replacement:"置換後の文字列",ReplaceCount:"置換回数",Pattern:"パターン",Character:"文字",SubstringToBeFound:"検索対象の部分文字列",DirectionToFind:"検索方向",Key:"キー",Map:"マップ",DefaultValue:"デフォルト値",Index:"インデックス",Array:"配列",StartIndex:"開始インデックス",Length:"長さ",UnixTimestamp:"Unix タイムスタンプ",TimeUnit:"時間単位",RFC3339String:"RFC3339 形式の時間文字列",TimeOffset:"時間オフセット",DateFormat:"日付形式",Timestamp:"タイムスタンプ",BinaryData:"バイナリデータ",BinaryStartIndex:"開始インデックス",DataType:"データ型",Signedness:"符号の有無",Endian:"エンディアン",SchemaName:"スキーマ",Data:"データ",Type:"メッセージタイプ",aliasDesc:"エイリアスに英数字とアンダースコア以外の文字が含まれる場合、数字で始まる場合、または SQL キーワードの場合は、エイリアスを二重引用符で囲んでください",inputFieldRequiredError:"{name} は必須項目です",unusedField:"未使用のフィールド",aliasRequired:"エイリアスを指定する必要があります",aliasFormatError:"エイリアスの形式が正しくありません"},Gf={generateSQLByAIBtn:"SQL Generator",generateSQLWithAI:"Generate SQL with AI",taskDescPlaceholder:'Enter a natural language task description, e.g., "Select all fields from t/#"',taskDesc:"Task Description",relatedTopics:"Related Topics",relatedTopicsDesc:'Supports a single topic, or multiple topics (comma-separated, with +/# support), e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'Please enter related topics, e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"Input Example (JSON)",sqlExampleInputDesc:"Provide an example JSON for the input message",sqlExampleOutput:"Output Example (JSON)",sqlExampleOutputDesc:"Provide an example JSON for the output result",applySQL:"Apply SQL",generatedSQLOutputTitle:"Generated SQL",generatedSQLOutputDesc:"Please review the AI-generated SQL. You can apply it directly, or return to modify the description and regenerate."},jf={generateSQLByAIBtn:"SQL 生成器",generateSQLWithAI:"使用 AI 生成 SQL",taskDescPlaceholder:'请输入自然语言的任务描述,例如:"从 t/# 主题选择所有字段"',taskDesc:"任务描述",relatedTopics:"相关主题",relatedTopicsDesc:'支持单个主题,或多个主题(请使用逗号分隔,支持 +/#),例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'请输入相关主题,例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"输入示例(JSON)",sqlExampleInputDesc:"提供一个输入消息的 JSON 示例",sqlExampleOutput:"输出示例(JSON)",sqlExampleOutputDesc:"提供一个输出结果的 JSON 示例",applySQL:"应用 SQL",generatedSQLOutputTitle:"生成的 SQL",generatedSQLOutputDesc:"请检查 AI 生成的 SQL。可直接应用,或返回修改描述并重新生成。"},Kf={generateSQLByAIBtn:"SQL ジェネレーター",generateSQLWithAI:"AI で SQL を生成",taskDescPlaceholder:"自然言語でタスク説明を入力してください。例:「t/# からすべてのフィールドを選択」",taskDesc:"タスク説明",relatedTopics:"関連トピック",relatedTopicsDesc:"単一トピックまたは複数トピック(カンマ区切り、+/# をサポート)を指定できます。例:「t/a」または「t/a, t/b/#, t/c/+/d」",relatedTopicsPlaceholder:"関連トピックを入力してください。例:「t/a」または「t/a, t/b/#, t/c/+/d」",sqlExampleInput:"入力例(JSON)",sqlExampleInputDesc:"入力メッセージのサンプル JSON を指定してください",sqlExampleOutput:"出力例(JSON)",sqlExampleOutputDesc:"出力結果のサンプル JSON を指定してください",applySQL:"SQL を適用",generatedSQLOutputTitle:"生成された SQL",generatedSQLOutputDesc:"AI が生成した SQL を確認してください。直接適用することも、説明を修正して再生成することもできます。"},Yo={systemTitle:"Log Analysis AI Assistant",noMCPServers:"No MCP server is available, please configure the MCP server gateway.",configMCPServerGateway:"Configure MCP Server Gateway",mcpServerGatewayConfigs:"MCP Server Gateway Configurations",cancel:"Cancel",save:"Save",mqttHost:"MQTT Host",mqttPort:"MQTT Port",mqttUsername:"MQTT Username",mqttPassword:"MQTT Password",mqttClientId:"MQTT Client ID",mqttAppId:"MQTT App ID",saveSuccess:"Saved successfully",parseUserIntention:"Parse User Intention",loadLogEntries:"Load Log Entries",generalConversation:"General Conversation",extractAndExplainLogEntries:"Extract and Explain Log Entries",queryEmqxContext:"Query EMQX Context",genAnalysisReport:"Generate Analysis Report",completeReport:"Complete Report",funcCall:"Function Call",analysisResultTip:"The following is the report content:",responseConfirm:"Please confirm the result is ok?",yes:"Yes",no:"No",refreshConfirm:"There is a conversation in progress, confirm to clear the conversation and start a new one?",confirm:"Confirm",guidanceText:"Welcome to the Log Analysis AI Assistant. I will leverage technologies such as LLM and RAG,as well as utilize the MCP tool to query system status, to help you analyze EMQX-related logs and quickly identify and resolve issues. Here are some example questions you can ask,",querySample1:"Query the error/warning log messages from the past 5 minutes.",querySample2:"Query the latest 5 error/warning log messages.",querySample3:"Analyze log: ",noConfigStatus:"MCP server gateway not configured. Please configure the server gateway and connect to the server before proceeding with the analysis of server logs.",disconnectedStatus:"Cannot connect to your MCP servers, please check your settings or network.",selectServerRequired:"Please select the MCP server to connect.",funcName:"Function Name",funcArgs:"Function Arguments",funcOutput:"Function Output",permissionRequest:'Tool "{tool}" requires permission to access system resources.',deny:"Deny",allowOnce:"Allow Once",allowAlways:"Allow Always",reportGenerationCompleted:"Report generation completed.",userCancelled:"User cancelled the operation."},qf={systemTitle:"日志分析 AI 助手",noMCPServers:"暂无可用 MCP 服务器,请先配置 MCP 服务器网关。",configMCPServerGateway:"配置 MCP 服务器网关",mcpServerGatewayConfigs:"MCP 服务器网关配置",cancel:"取消",save:"保存",mqttHost:"MQTT 主机",mqttPort:"MQTT 端口",mqttUsername:"MQTT 用户名",mqttPassword:"MQTT 密码",mqttClientId:"MQTT 客户端 ID",mqttAppId:"MQTT 应用 ID",saveSuccess:"保存成功",parseUserIntention:"分析用户意图",loadLogEntries:"加载日志条目",generalConversation:"通用对话",extractAndExplainLogEntries:"查找并解释日志数据",queryEmqxContext:"查询 EMQX 上下文",genAnalysisReport:"生成分析报告",completeReport:"完成报告",funcCall:"函数调用",analysisResultTip:"以下是报告内容:",responseConfirm:"请确认结果是否正确?",yes:"正确",no:"不正确",refreshConfirm:"当前页面有正在进行的对话,是否确认清空记录并开始新的对话?",confirm:"确认",guidanceText:"欢迎使用日志分析 AI 助手。我将利用 LLM 和 RAG 等技术,以及 MCP 工具查询系统状态,帮助您分析 EMQX 相关日志并快速识别和解决问题。以下是一些您可以询问的问题:",querySample1:"查询过去 5 分钟内的错误/警告日志消息。",querySample2:"查询最新的 5 条错误/警告日志消息。",querySample3:"分析日志:",noConfigStatus:"未配置 MCP 服务器网关,如需分析服务器日志,请先配置服务器网关,并连接服务器后再进行操作。",disconnectedStatus:"无法连接到 MCP 服务器,请检查您的设置或网络。",selectServerRequired:"请选择需要连接的 MCP 服务器。",funcName:"函数名称",funcArgs:"函数参数",funcOutput:"函数输出",permissionRequest:'工具 "{tool}" 需要权限访问系统资源。',deny:"拒绝",allowOnce:"允许一次",allowAlways:"始终允许",reportGenerationCompleted:"报告生成完成。",userCancelled:"用户取消操作。"},Qf={guideSourceNodeLabel:"Source",guideSourceNodeDesc:"拖拽多个节点以选择消息与事件输入",guideProcessingNodeLabel:"Processing(可选)",guideProcessingNodeDesc:"拖拽节点以处理和过滤数据",guideSinkNodeLabel:"Sink",guideSinkNodeDesc:"拖拽多个节点以输出数据到外部数据集成",guideFallbackNodeLabel:"Fallback(可选)",guideFallbackNodeDesc:"拖拽节点以作为备选动作",actionAvailable:"可用",actionUnavailable:"不可用",connecting:"连接中",inconsistent:"集群中各节点不一致",disconnected:"已断开",message:"消息",event:"事件",dataProcessing:"数据处理",filter:"过滤器",consoleOutput:"控制台输出",republish:"消息重发布",condition:"个条件",systemPrompt:"系统消息",consoleFallbackWrong:"Console 不可作为备选动作",incorrectConnection:"错误的连线",filterFunctionsWrongOrder:"函数节点必须放置在过滤器节点之前,请调整节点位置。",flowEmptyError:"无法保存,Flow 中需要有至少一个 Sink 节点和一个 Source 节点",flowIntegrityError:"无法保存,Flow 中需要有至少一个 {missing} 节点",isolatedNodeError:"Flow 中有未连接的节点,请先连接或将其删除|Flow 中有未连接的节点,请先连接或将其删除",multipleFlowError:"每次仅允许创建一个 Flow",multipleFallbackWrong:"Flow 暂不支持编辑多层级备选动作",incorrectInputOutputConnection:"请确认所有 Source 节点均正确连接到同一数据处理节点",incorrectOutputNodeConnection:"请确认所有 Sink 节点均由同一数据处理节点输出",incorrectDefaultNodeConnection:"请确认所有数据处理节点均按照顺序首尾相连"},Yf={guideSourceNodeLabel:"Source",guideSourceNodeDesc:"Drag in multiple nodes to select message and event inputs",guideProcessingNodeLabel:"Processing (optional)",guideProcessingNodeDesc:"Drag nodes to transform and filter data",guideSinkNodeLabel:"Sink",guideSinkNodeDesc:"Drag in multiple nodes to output data to external integrations",guideFallbackNodeLabel:"Fallback (optional)",guideFallbackNodeDesc:"Drag nodes as fallback actions",actionAvailable:"Available",actionUnavailable:"Unavailable",connecting:"Connecting",inconsistent:"Inconsistent for nodes in the cluster",disconnected:"Disconnected",message:"Message",event:"Event",dataProcessing:"Data Processing",filter:"Filter",consoleOutput:"Console Output",republish:"Republish",condition:"condition | conditions",systemPrompt:"System Message",consoleFallbackWrong:"Console cannot be used as a fallback action",incorrectConnection:"Incorrect connection",filterFunctionsWrongOrder:"Function nodes must be placed before filter nodes. Please adjust node positions.",flowEmptyError:"Unable to save, there must be at least one Sink node and one Source node in the Flow",flowIntegrityError:"Unable to save, at least one {missing} node is required in the Flow",isolatedNodeError:"There are unconnected node in the flow. Please connect or delete them.|There are unconnected nodes in the flow. Please connect or delete them.",multipleFlowError:"Only one flow can be created at a time",multipleFallbackWrong:"Flow does not support editing multi-level fallback actions",incorrectInputOutputConnection:"Please confirm that all source nodes are correctly connected to the same data processing node",incorrectOutputNodeConnection:"Please confirm that all sink nodes are output from the same data processing node",incorrectDefaultNodeConnection:"Please confirm that all data processing nodes are connected in sequence from start to end"},Xf={guideSourceNodeLabel:"ソース",guideSourceNodeDesc:"複数のノードをドラッグしてメッセージとイベント入力を選択",guideProcessingNodeLabel:"処理(任意)",guideProcessingNodeDesc:"ノードをドラッグしてデータを変換・フィルター",guideSinkNodeLabel:"シンク",guideSinkNodeDesc:"複数のノードをドラッグして外部連携にデータを出力",guideFallbackNodeLabel:"フォールバック(任意)",guideFallbackNodeDesc:"ノードをドラッグしてフォールバックアクションとして設定します",actionAvailable:"利用可能",actionUnavailable:"利用不可",connecting:"接続中",inconsistent:"クラスタ内のノードで不一致",disconnected:"切断",message:"メッセージ",event:"イベント",dataProcessing:"データ処理",filter:"フィルター",consoleOutput:"Console Output",republish:"再パブリッシュ(Republish)",condition:"条件",systemPrompt:"システムメッセージ",consoleFallbackWrong:"Console cannot be used as a fallback action",incorrectConnection:"不正な接続",filterFunctionsWrongOrder:"関数ノードはフィルターノードより前に配置する必要があります。ノードの位置を調整してください。",flowEmptyError:"保存できません。フローには少なくとも1つのシンクノードと1つのソースノードが必要です。",flowIntegrityError:"保存できません。フローには少なくとも 1 つの{missing}ノードが必要です。",isolatedNodeError:"フローに未接続のノードがあります。接続するか削除してください。",multipleFlowError:"一度に作成できるフローは1つだけです。",multipleFallbackWrong:"フローは多段階のフォールバックアクションの編集をサポートしていません",incorrectInputOutputConnection:"すべてのソースノードが同じデータ処理ノードに正しく接続されていることを確認してください",incorrectOutputNodeConnection:"すべてのシンクノードが同じデータ処理ノードから出力されていることを確認してください",incorrectDefaultNodeConnection:"すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください"},Xo=e=>{const{t,te:n}=qo({mode:"composition",locale:e,messages:{en:{streaming:kf,common:Vf,ruleSQL:Gf,aiLog:Yo,ruleFunction:Bf,flow:Yf},zh:{streaming:Mf,common:Uf,ruleSQL:jf,aiLog:qf,ruleFunction:Wf,flow:Qf},ja:{streaming:xf,common:$f,ruleSQL:Kf,aiLog:Yo,ruleFunction:Hf,flow:Xf}}}).global;return{t,te:n}};var We=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(We||{}),os=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(os||{}),$t=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))($t||{}),as=(e=>(e.Webhook="http",e.MQTT="mqtt",e.InfluxDB="influxdb",e.MySQL="mysql",e.KafkaProducer="kafka_producer",e.KafkaConsumer="kafka_consumer",e.Redis="redis",e.GCPProducer="gcp_pubsub_producer",e.GCPConsumer="gcp_pubsub_consumer",e.MongoDB="mongodb",e.PgSQL="pgsql",e.TimescaleDB="timescale",e.MatrixDB="matrix",e.TDengine="tdengine",e.ClickHouse="clickhouse",e.DynamoDB="dynamo",e.Cassandra="cassandra",e.MicrosoftSQLServer="sqlserver",e.RocketMQ="rocketmq",e.IoTDB="iotdb",e.OpenTSDB="opents",e.OracleDatabase="oracle",e.RabbitMQ="rabbitmq",e.Pulsar="pulsar",e.HStream="hstreamdb",e.AzureEventHubs="azure_event_hub_producer",e.AmazonKinesis="kinesis",e.GreptimeDB="greptimedb",e.Confluent="confluent_producer",e.SysKeeperProxy="syskeeper_proxy",e.SysKeeperForwarder="syskeeper_forwarder",e.Elasticsearch="elasticsearch",e.S3="s3",e.AzureBlobStorage="azure_blob_storage",e.Couchbase="couchbase",e.Datalayers="datalayers",e.Snowflake="snowflake",e.Tablestore="tablestore",e.DiskLog="disk_log",e.S3Tables="s3tables",e.Doris="doris",e))(as||{}),ls=(e=>(e.Message="message",e.Event="event",e))(ls||{});const Jf="$bridges/",zf="ai_completion";as.MQTT,as.RabbitMQ,ls.Event,ls.Message;const Zf=new RegExp(`${zf}\\('(?<name>.+)'\\,\\s*(?<input>.+)\\)\\s+AS\\s+(?<alias>.+)`,"i"),ed=/^FOREACH/i,td=e=>{const{t}=Xo(e),n=[{label:t("streaming.allow"),value:os.Allow},{label:t("streaming.deny"),value:os.Deny}],r=[{label:t("common.topic"),value:$t.Topic},{label:t("streaming.consumerGroupType"),value:$t.Group},{label:t("streaming.clusterType"),value:$t.Cluster}],i=Object.values(We).map(a=>({label:t(`streaming.aclOperationLabelDic.${a}`),value:a})),s={[$t.Topic]:[We.All,We.Read,We.Write,We.Describe,We.Create,We.Delete],[$t.Group]:[We.All,We.Read,We.Describe,We.Delete],[$t.Cluster]:[We.All,We.Read,We.Describe,We.Alter]};return{permissionOptions:n,resourceTypeOptions:r,operationOptions:i,getValidOperations:a=>(s[a]||[]).map(m=>({label:t(`streaming.aclOperationLabelDic.${m}`),value:m}))}},nd=(e=100)=>new Promise(t=>{window.setTimeout(()=>{t(!0)},e)}),rd=48,sd=97,Jo=String.fromCharCode(...new Array(10).fill(rd).map((e,t)=>e+t).concat(new Array(26).fill(sd).map((e,t)=>e+t))),id=(e=8)=>{const t=Jo.length;return new Array(e).fill("").reduce(n=>{const r=Math.floor(Math.random()*t);return n+Jo.substring(r,r+1)},"")},od=e=>e==null?void 0:e.replace(/(^\s+)|(\s+$)/g,"").replace(/(^\n+)|(\n+$)/g,""),zo=(e,t)=>{const n=[];let r=!1,i=!1;const s=[""];for(let o=0;o<e.length;o++){const a=e[o];if(a==="(")n.push(a);else if(a===")")n.length>0&&n.pop();else if(a==="'")r=!r;else if(a==='"')i=!i;else if(a===t&&n.length===0&&!r&&!i){s.push("");continue}s[s.length-1]+=a}return s},ad=e=>e?zo(e,","):[],Zo=/\sas\s(\S+)/,ea=new RegExp(`.+${Zo.source}`),ld=e=>{if(ea.test(e)){const[,n=""]=e.match(ea)||[];return n}},cd=/^\w+\((.|\n)+\)$/,ud=e=>cd.test(e),fd=(e,t=3)=>parseFloat(e.toFixed(t)),dd=(e,t)=>(e.splice(t,1),e),pd=e=>e.replace(/(^[a-z])|(\s[a-z])/g,t=>t.toUpperCase()),md=/^(?<type>\w+):(?<name>.+)$/,cs=e=>{const t=e.match(md);if(!t)throw new Error("invalid key");const{type:n,name:r}=t.groups||{};return{type:n,name:r}},_d=e=>e.replace(Jf,""),hd=e=>cs(e).type,gd=e=>cs(e).name,us=/(?:[^"']|"[^"]*"|'[^']*')/,ta=new RegExp(`^SELECT(?<select>${us.source}+?)[\\s\\n]FROM(?<from>${us.source}+)`,"i"),Ed=new RegExp(`${ta.source}([\\s\\n]WHERE(?<where>${us.source}+))`,"i"),Nd=e=>{const t=e.trim();let n,r,i,s=null;if(ed.test(t)?s=t.match(/(?<foreach>(.|\n)+)FROM(?<from>(.|\n)+)/):s=t.match(Ed)||t.match(ta),s){const{groups:o}=s,{foreach:a="",select:f="",from:m="",where:y=""}=o||{};n=a||f.trim(),r=m.trim(),y&&(i=y.trim())}return{fieldStr:n,fromStr:r,whereStr:i}},Td=e=>Zf.test(e),vd=({type:e,name:t})=>`${e}:${t}`,Od=e=>e||e===void 0;le.checkNeedRequestAPI=Od,le.createDownloadBlobLink=Os,le.createRandomString=id,le.downloadFile=vs,le.flattenObject=Bt,le.formatSizeUnit=_a,le.formatValueToMinUnit=ha,le.getBridgeIdFromInput=_d,le.getBridgeKey=vd,le.getBridgeNameFromId=gd,le.getBridgeTypeFromId=hd,le.getKeyPartsFromSQL=Nd,le.getRuleSelectionAlias=ld,le.getTypeAndNameFromKey=cs,le.isContainsAIExpression=Td,le.isEmptyObj=ra,le.isJSONString=da,le.jsonBigIntParse=pa,le.jsonBigIntStringify=ma,le.judgeRuleSelectionWithFunc=ud,le.numToFixed=fd,le.parseJSONSafely=ua,le.removeFromArr=dd,le.ruleSelectionAliasPartReg=Zo,le.splitOnComma=ad,le.splitOnSymbol=zo,le.stringifyObjSafely=fa,le.titleCase=pd,le.trimSpacesAndLFs=od,le.unflattenObject=na,le.useBatchSettings=Ff,le.useLocale=Xo,le.useStreamingAuth=td,le.waitAMoment=nd,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
|