jobsys-newbie
Version:
Enhanced component based on ant-design-vue
6 lines • 155 kB
JavaScript
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require("vue");u=l(u,1);let d=require("ant-design-vue"),f=require("dayjs");f=l(f,1);let p=require("lodash-es"),m=require("axios");m=l(m,1);var h=typeof globalThis==`object`&&`crypto`in globalThis?globalThis.crypto:void 0;function g(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function _(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, got `+e)}function v(e,...t){if(!g(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function y(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.createHasher`);_(e.outputLen),_(e.blockLen)}function b(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function x(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}var S=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,C=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function w(e){if(v(e),S)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=C[e[n]];return t}var T={_0:48,_9:57,A:65,F:70,a:97,f:102};function E(e){if(e>=T._0&&e<=T._9)return e-T._0;if(e>=T.A&&e<=T.F)return e-(T.A-10);if(e>=T.a&&e<=T.f)return e-(T.a-10)}function ee(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(S)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=E(e.charCodeAt(i)),a=E(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}function D(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function te(e){return typeof e==`string`&&(e=D(e)),v(e),e}function ne(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];v(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}var re=class{};function ie(e=32){if(h&&typeof h.getRandomValues==`function`)return h.getRandomValues(new Uint8Array(e));if(h&&typeof h.randomBytes==`function`)return Uint8Array.from(h.randomBytes(e));throw Error(`crypto.getRandomValues must be defined`)}var ae=BigInt(0),oe=BigInt(1);function se(e,t=``){if(typeof e!=`boolean`){let n=t&&`"${t}"`;throw Error(n+`expected boolean, got type=`+typeof e)}return e}function O(e,t,n=``){let r=g(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`;throw Error(o+`expected Uint8Array`+s+`, got `+c)}return e}function ce(e){let t=e.toString(16);return t.length&1?`0`+t:t}function le(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);return e===``?ae:BigInt(`0x`+e)}function ue(e){return le(w(e))}function de(e){return v(e),le(w(Uint8Array.from(e).reverse()))}function fe(e,t){return ee(e.toString(16).padStart(t*2,`0`))}function pe(e,t){return fe(e,t).reverse()}function k(e,t,n){let r;if(typeof t==`string`)try{r=ee(t)}catch(t){throw Error(e+` must be hex string or Uint8Array, cause: `+t)}else if(g(t))r=Uint8Array.from(t);else throw Error(e+` must be hex string or Uint8Array`);let i=r.length;if(typeof n==`number`&&i!==n)throw Error(e+` of length `+n+` expected, got `+i);return r}var me=e=>typeof e==`bigint`&&ae<=e;function he(e,t,n){return me(e)&&me(t)&&me(n)&&t<=e&&e<n}function ge(e,t,n,r){if(!he(t,n,r))throw Error(`expected valid `+e+`: `+n+` <= n < `+r+`, got `+t)}function _e(e){let t;for(t=0;e>ae;e>>=oe,t+=1);return t}var ve=e=>(oe<<BigInt(e))-oe;function ye(e,t,n){if(typeof e!=`number`||e<2)throw Error(`hashLen must be a number`);if(typeof t!=`number`||t<2)throw Error(`qByteLen must be a number`);if(typeof n!=`function`)throw Error(`hmacFn must be a function`);let r=e=>new Uint8Array(e),i=e=>Uint8Array.of(e),a=r(e),o=r(e),s=0,c=()=>{a.fill(1),o.fill(0),s=0},l=(...e)=>n(o,a,...e),u=(e=r(0))=>{o=l(i(0),e),a=l(),e.length!==0&&(o=l(i(1),e),a=l())},d=()=>{if(s++>=1e3)throw Error(`drbg: tried 1000 values`);let e=0,n=[];for(;e<t;){a=l();let t=a.slice();n.push(t),e+=a.length}return ne(...n)};return(e,t)=>{c(),u(e);let n;for(;!(n=t(d()));)u();return c(),n}}function be(e,t,n={}){if(!e||typeof e!=`object`)throw Error(`expected valid options object`);function r(t,n,r){let i=e[t];if(r&&i===void 0)return;let a=typeof i;if(a!==n||i===null)throw Error(`param "${t}" is invalid: expected ${n}, got ${a}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))}function xe(e){let t=new WeakMap;return(n,...r)=>{let i=t.get(n);if(i!==void 0)return i;let a=e(n,...r);return t.set(n,a),a}}var Se=w,Ce=ne,A=ce,j=le,we=fe,Te=class extends re{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,y(e);let n=te(t);if(this.iHash=e.create(),typeof this.iHash.update!=`function`)throw Error(`Expected instance of class which extends utils.Hash`);this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),x(i)}update(e){return b(this),this.iHash.update(e),this}digestInto(e){b(this),v(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},Ee=(e,t,n)=>new Te(e,t).update(n).digest();Ee.create=(e,t)=>new Te(e,t);var M=BigInt(0),N=BigInt(1),De=BigInt(2),Oe=BigInt(3),ke=BigInt(4),Ae=BigInt(5),je=BigInt(7),Me=BigInt(8),Ne=BigInt(9),Pe=BigInt(16);function Fe(e,t){let n=e%t;return n>=M?n:t+n}function Ie(e,t){if(e===M)throw Error(`invert: expected non-zero number`);if(t<=M)throw Error(`invert: expected positive modulus, got `+t);let n=Fe(e,t),r=t,i=M,a=N,o=N,s=M;for(;n!==M;){let e=r/n,t=r%n,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}if(r!==N)throw Error(`invert: does not exist`);return Fe(i,t)}function Le(e,t,n){if(!e.eql(e.sqr(t),n))throw Error(`Cannot find square root`)}function Re(e,t){let n=(e.ORDER+N)/ke,r=e.pow(t,n);return Le(e,r,t),r}function ze(e,t){let n=(e.ORDER-Ae)/Me,r=e.mul(t,De),i=e.pow(r,n),a=e.mul(t,i),o=e.mul(e.mul(a,De),i),s=e.mul(a,e.sub(o,e.ONE));return Le(e,s,t),s}function Be(e){let t=Ye(e),n=Ve(e),r=n(t,t.neg(t.ONE)),i=n(t,r),a=n(t,t.neg(r)),o=(e+je)/Pe;return(e,t)=>{let n=e.pow(t,o),s=e.mul(n,r),c=e.mul(n,i),l=e.mul(n,a),u=e.eql(e.sqr(s),t),d=e.eql(e.sqr(c),t);n=e.cmov(n,s,u),s=e.cmov(l,c,d);let f=e.eql(e.sqr(s),t),p=e.cmov(n,s,f);return Le(e,p,t),p}}function Ve(e){if(e<Oe)throw Error(`sqrt is not defined for small field`);let t=e-N,n=0;for(;t%De===M;)t/=De,n++;let r=De,i=Ye(e);for(;qe(i,r)===1;)if(r++>1e3)throw Error(`Cannot find square root: probably non-prime P`);if(n===1)return Re;let a=i.pow(r,t),o=(t+N)/De;return function(e,r){if(e.is0(r))return r;if(qe(e,r)!==1)throw Error(`Cannot find square root`);let i=n,s=e.mul(e.ONE,a),c=e.pow(r,t),l=e.pow(r,o);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error(`Cannot find square root`);let r=N<<BigInt(i-t-1),a=e.pow(s,r);i=t,s=e.sqr(a),c=e.mul(c,s),l=e.mul(l,a)}return l}}function He(e){return e%ke===Oe?Re:e%Me===Ae?ze:e%Pe===Ne?Be(e):Ve(e)}var Ue=[`create`,`isValid`,`is0`,`neg`,`inv`,`sqrt`,`sqr`,`eql`,`add`,`sub`,`mul`,`pow`,`div`,`addN`,`subN`,`mulN`,`sqrN`];function We(e){return be(e,Ue.reduce((e,t)=>(e[t]=`function`,e),{ORDER:`bigint`,MASK:`bigint`,BYTES:`number`,BITS:`number`})),e}function Ge(e,t,n){if(n<M)throw Error(`invalid exponent, negatives unsupported`);if(n===M)return e.ONE;if(n===N)return t;let r=e.ONE,i=t;for(;n>M;)n&N&&(r=e.mul(r,i)),i=e.sqr(i),n>>=N;return r}function Ke(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),a=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),a),r}function qe(e,t){let n=(e.ORDER-N)/De,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),o=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!o)throw Error(`invalid Legendre symbol result`);return i?1:a?0:-1}function Je(e,t){t!==void 0&&_(t);let n=t===void 0?e.toString(2).length:t;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Ye(e,t,n=!1,r={}){if(e<=M)throw Error(`invalid field: expected ORDER > 0, got `+e);let i,a,o=!1,s;if(typeof t==`object`&&t){if(r.sqrt||n)throw Error(`cannot specify opts in two arguments`);let e=t;e.BITS&&(i=e.BITS),e.sqrt&&(a=e.sqrt),typeof e.isLE==`boolean`&&(n=e.isLE),typeof e.modFromBytes==`boolean`&&(o=e.modFromBytes),s=e.allowedLengths}else typeof t==`number`&&(i=t),r.sqrt&&(a=r.sqrt);let{nBitLength:c,nByteLength:l}=Je(e,i);if(l>2048)throw Error(`invalid field: expected ORDER of <= 2048 bytes`);let u,d=Object.freeze({ORDER:e,isLE:n,BITS:c,BYTES:l,MASK:ve(c),ZERO:M,ONE:N,allowedLengths:s,create:t=>Fe(t,e),isValid:t=>{if(typeof t!=`bigint`)throw Error(`invalid field element: expected bigint, got `+typeof t);return M<=t&&t<e},is0:e=>e===M,isValidNot0:e=>!d.is0(e)&&d.isValid(e),isOdd:e=>(e&N)===N,neg:t=>Fe(-t,e),eql:(e,t)=>e===t,sqr:t=>Fe(t*t,e),add:(t,n)=>Fe(t+n,e),sub:(t,n)=>Fe(t-n,e),mul:(t,n)=>Fe(t*n,e),pow:(e,t)=>Ge(d,e,t),div:(t,n)=>Fe(t*Ie(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Ie(t,e),sqrt:a||(t=>(u||=He(e),u(d,t))),toBytes:e=>n?pe(e,l):fe(e,l),fromBytes:(t,r=!0)=>{if(s){if(!s.includes(t.length)||t.length>l)throw Error(`Field.fromBytes: expected `+s+` bytes, got `+t.length);let e=new Uint8Array(l);e.set(t,n?0:e.length-t.length),t=e}if(t.length!==l)throw Error(`Field.fromBytes: expected `+l+` bytes, got `+t.length);let i=n?de(t):ue(t);if(o&&(i=Fe(i,e)),!r&&!d.isValid(i))throw Error(`invalid field element: outside of range 0..ORDER`);return i},invertBatch:e=>Ke(d,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(d)}function Xe(e){if(typeof e!=`bigint`)throw Error(`field order must be bigint`);let t=e.toString(2).length;return Math.ceil(t/8)}function Ze(e){let t=Xe(e);return t+Math.ceil(t/2)}function Qe(e,t,n=!1){let r=e.length,i=Xe(t),a=Ze(t);if(r<16||r<a||r>1024)throw Error(`expected `+a+`-1024 bytes of input, got `+r);let o=Fe(n?de(e):ue(e),t-N)+N;return n?pe(o,i):fe(o,i)}var $e=BigInt(0),et=BigInt(1);function tt(e,t){let n=t.negate();return e?n:t}function nt(e,t){let n=Ke(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function rt(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error(`invalid window size, expected [1..`+t+`], got W=`+e)}function it(e,t){rt(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:ve(e),maxNumber:i,shiftBy:BigInt(e)}}function at(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),c=e>>o;s>r&&(s-=a,c+=et);let l=t*r,u=l+Math.abs(s)-1,d=s===0,f=s<0,p=t%2!=0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:p,offsetF:l}}function ot(e,t){if(!Array.isArray(e))throw Error(`array expected`);e.forEach((e,n)=>{if(!(e instanceof t))throw Error(`invalid point at index `+n)})}function st(e,t){if(!Array.isArray(e))throw Error(`array of scalars expected`);e.forEach((e,n)=>{if(!t.isValid(e))throw Error(`invalid scalar at index `+n)})}var ct=new WeakMap,lt=new WeakMap;function ut(e){return lt.get(e)||1}function dt(e){if(e!==$e)throw Error(`invalid wNAF`)}var ft=class{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>$e;)t&et&&(n=n.add(r)),r=r.double(),t>>=et;return n}precomputeWindow(e,t){let{windows:n,windowSize:r}=it(t,this.bits),i=[],a=e,o=a;for(let e=0;e<n;e++){o=a,i.push(o);for(let e=1;e<r;e++)o=o.add(a),i.push(o);a=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw Error(`invalid scalar`);let r=this.ZERO,i=this.BASE,a=it(e,this.bits);for(let e=0;e<a.windows;e++){let{nextN:o,offset:s,isZero:c,isNeg:l,isNegF:u,offsetF:d}=at(n,e,a);n=o,c?i=i.add(tt(u,t[d])):r=r.add(tt(l,t[s]))}return dt(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){let i=it(e,this.bits);for(let e=0;e<i.windows&&n!==$e;e++){let{nextN:a,offset:o,isZero:s,isNeg:c}=at(n,e,i);if(n=a,!s){let e=t[o];r=r.add(c?e.negate():e)}}return dt(n),r}getPrecomputes(e,t,n){let r=ct.get(t);return r||(r=this.precomputeWindow(t,e),e!==1&&(typeof n==`function`&&(r=n(r)),ct.set(t,r))),r}cached(e,t,n){let r=ut(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){let i=ut(e);return i===1?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){rt(t,this.bits),lt.set(e,t),ct.delete(e)}hasCache(e){return ut(e)!==1}};function pt(e,t,n,r){let i=t,a=e.ZERO,o=e.ZERO;for(;n>$e||r>$e;)n&et&&(a=a.add(i)),r&et&&(o=o.add(i)),i=i.double(),n>>=et,r>>=et;return{p1:a,p2:o}}function mt(e,t,n,r){ot(n,e),st(r,t);let i=n.length,a=r.length;if(i!==a)throw Error(`arrays of points and scalars must have equal length`);let o=e.ZERO,s=_e(BigInt(i)),c=1;s>12?c=s-3:s>4?c=s-2:s>0&&(c=2);let l=ve(c),u=Array(Number(l)+1).fill(o),d=Math.floor((t.BITS-1)/c)*c,f=o;for(let e=d;e>=0;e-=c){u.fill(o);for(let t=0;t<a;t++){let i=r[t],a=Number(i>>BigInt(e)&l);u[a]=u[a].add(n[t])}let t=o;for(let e=u.length-1,n=o;e>0;e--)n=n.add(u[e]),t=t.add(n);if(f=f.add(t),e!==0)for(let e=0;e<c;e++)f=f.double()}return f}function ht(e,t,n){if(t){if(t.ORDER!==e)throw Error(`Field.ORDER must match order: Fp == p, Fn == n`);return We(t),t}else return Ye(e,{isLE:n})}function gt(e,t,n={},r){if(r===void 0&&(r=e===`edwards`),!t||typeof t!=`object`)throw Error(`expected valid ${e} CURVE object`);for(let e of[`p`,`n`,`h`]){let n=t[e];if(!(typeof n==`bigint`&&n>$e))throw Error(`CURVE.${e} must be positive bigint`)}let i=ht(t.p,n.Fp,r),a=ht(t.n,n.Fn,r),o=[`Gx`,`Gy`,`a`,e===`weierstrass`?`b`:`d`];for(let e of o)if(!i.isValid(t[e]))throw Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:i,Fn:a}}var _t=(e,t)=>(e+(e>=0?t:-t)/wt)/t;function vt(e,t,n){let[[r,i],[a,o]]=t,s=_t(o*e,n),c=_t(-i*e,n),l=e-s*r-c*a,u=-s*i-c*o,d=l<St,f=u<St;d&&(l=-l),f&&(u=-u);let p=ve(Math.ceil(_e(n)/2))+Ct;if(l<St||l>=p||u<St||u>=p)throw Error(`splitScalar (endomorphism): failed, k=`+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}function yt(e){if(![`compact`,`recovered`,`der`].includes(e))throw Error(`Signature format must be "compact", "recovered", or "der"`);return e}function bt(e,t){let n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return se(n.lowS,`lowS`),se(n.prehash,`prehash`),n.format!==void 0&&yt(n.format),n}var xt={Err:class extends Error{constructor(e=``){super(e)}},_tlv:{encode:(e,t)=>{let{Err:n}=xt;if(e<0||e>256)throw new n(`tlv.encode: wrong tag`);if(t.length&1)throw new n(`tlv.encode: unpadded data`);let r=t.length/2,i=ce(r);if(i.length/2&128)throw new n(`tlv.encode: long form length too big`);let a=r>127?ce(i.length/2|128):``;return ce(e)+a+i+t},decode(e,t){let{Err:n}=xt,r=0;if(e<0||e>256)throw new n(`tlv.encode: wrong tag`);if(t.length<2||t[r++]!==e)throw new n(`tlv.decode: wrong tlv`);let i=t[r++],a=!!(i&128),o=0;if(!a)o=i;else{let e=i&127;if(!e)throw new n(`tlv.decode(long): indefinite length not supported`);if(e>4)throw new n(`tlv.decode(long): byte length is too big`);let a=t.subarray(r,r+e);if(a.length!==e)throw new n(`tlv.decode: length bytes not complete`);if(a[0]===0)throw new n(`tlv.decode(long): zero leftmost byte`);for(let e of a)o=o<<8|e;if(r+=e,o<128)throw new n(`tlv.decode(long): not minimal encoding`)}let s=t.subarray(r,r+o);if(s.length!==o)throw new n(`tlv.decode: wrong value length`);return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=xt;if(e<St)throw new t(`integer: negative integers are not allowed`);let n=ce(e);if(Number.parseInt(n[0],16)&8&&(n=`00`+n),n.length&1)throw new t(`unexpected DER parsing assertion: unpadded hex`);return n},decode(e){let{Err:t}=xt;if(e[0]&128)throw new t(`invalid signature integer: negative`);if(e[0]===0&&!(e[1]&128))throw new t(`invalid signature integer: unnecessary leading zero`);return ue(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=xt,i=k(`signature`,e),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t(`invalid signature: left bytes after parsing`);let{v:s,l:c}=r.decode(2,a),{v:l,l:u}=r.decode(2,c);if(u.length)throw new t(`invalid signature: left bytes after parsing`);return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){let{_tlv:t,_int:n}=xt,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},St=BigInt(0),Ct=BigInt(1),wt=BigInt(2),Tt=BigInt(3),Et=BigInt(4);function Dt(e,t){let{BYTES:n}=e,r;if(typeof t==`bigint`)r=t;else{let i=k(`private key`,t);try{r=e.fromBytes(i)}catch{throw Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw Error(`invalid private key: out of range [1..N-1]`);return r}function Ot(e,t={}){let n=gt(`weierstrass`,e,t),{Fp:r,Fn:i}=n,a=n.CURVE,{h:o,n:s}=a;be(t,{},{allowInfinityPoint:`boolean`,clearCofactor:`function`,isTorsionFree:`function`,fromBytes:`function`,toBytes:`function`,endo:`object`,wrapPrivateKey:`boolean`});let{endo:c}=t;if(c&&(!r.is0(a.a)||typeof c.beta!=`bigint`||!Array.isArray(c.basises)))throw Error(`invalid endo: expected "beta": bigint and "basises": array`);let l=At(r,i);function u(){if(!r.isOdd)throw Error(`compression is not supported: Field does not have .isOdd()`)}function d(e,t,n){let{x:i,y:a}=t.toAffine(),o=r.toBytes(i);return se(n,`isCompressed`),n?(u(),ne(kt(!r.isOdd(a)),o)):ne(Uint8Array.of(4),o,r.toBytes(a))}function f(e){O(e,void 0,`Point`);let{publicKey:t,publicKeyUncompressed:n}=l,i=e.length,a=e[0],o=e.subarray(1);if(i===t&&(a===2||a===3)){let e=r.fromBytes(o);if(!r.isValid(e))throw Error(`bad point: is not on curve, wrong x`);let t=h(e),n;try{n=r.sqrt(t)}catch(e){let t=e instanceof Error?`: `+e.message:``;throw Error(`bad point: is not on curve, sqrt error`+t)}u();let i=r.isOdd(n);return(a&1)==1!==i&&(n=r.neg(n)),{x:e,y:n}}else if(i===n&&a===4){let e=r.BYTES,t=r.fromBytes(o.subarray(0,e)),n=r.fromBytes(o.subarray(e,e*2));if(!g(t,n))throw Error(`bad point: is not on curve`);return{x:t,y:n}}else throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}let p=t.toBytes||d,m=t.fromBytes||f;function h(e){let t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,a.a)),a.b)}function g(e,t){let n=r.sqr(t),i=h(e);return r.eql(n,i)}if(!g(a.Gx,a.Gy))throw Error(`bad curve params: generator point`);let _=r.mul(r.pow(a.a,Tt),Et),v=r.mul(r.sqr(a.b),BigInt(27));if(r.is0(r.add(_,v)))throw Error(`bad curve params: a or b`);function y(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw Error(`bad point coordinate ${e}`);return t}function b(e){if(!(e instanceof E))throw Error(`ProjectivePoint expected`)}function x(e){if(!c||!c.basises)throw Error(`no endo`);return vt(e,c.basises,i.ORDER)}let S=xe((e,t)=>{let{X:n,Y:i,Z:a}=e;if(r.eql(a,r.ONE))return{x:n,y:i};let o=e.is0();t??=o?r.ONE:r.inv(a);let s=r.mul(n,t),c=r.mul(i,t),l=r.mul(a,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error(`invZ was invalid`);return{x:s,y:c}}),C=xe(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw Error(`bad point: ZERO`)}let{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw Error(`bad point: x or y not field elements`);if(!g(n,i))throw Error(`bad point: equation left != right`);if(!e.isTorsionFree())throw Error(`bad point: not in prime-order subgroup`);return!0});function T(e,t,n,i,a){return n=new E(r.mul(n.X,e),n.Y,n.Z),t=tt(i,t),n=tt(a,n),t.add(n)}class E{constructor(e,t,n){this.X=y(`x`,e),this.Y=y(`y`,t,!0),this.Z=y(`z`,n),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(`invalid affine point`);if(e instanceof E)throw Error(`projective point not allowed`);return r.is0(t)&&r.is0(n)?E.ZERO:new E(t,n,r.ONE)}static fromBytes(e){let t=E.fromAffine(m(O(e,void 0,`point`)));return t.assertValidity(),t}static fromHex(e){return E.fromBytes(k(`pointHex`,e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return D.createCache(this,e),t||this.multiply(Tt),this}assertValidity(){C(this)}hasEvenY(){let{y:e}=this.toAffine();if(!r.isOdd)throw Error(`Field doesn't support isOdd`);return!r.isOdd(e)}equals(e){b(e);let{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:s}=e,c=r.eql(r.mul(t,s),r.mul(a,i)),l=r.eql(r.mul(n,s),r.mul(o,i));return c&&l}negate(){return new E(this.X,r.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,n=r.mul(t,Tt),{X:i,Y:o,Z:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),p=r.mul(s,s),m=r.mul(i,o);return m=r.add(m,m),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(n,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),l=r.add(l,d),p=r.mul(o,s),p=r.add(p,p),d=r.mul(p,m),c=r.sub(c,d),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new E(c,l,u)}add(e){b(e);let{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,f=a.a,p=r.mul(a.b,Tt),m=r.mul(t,o),h=r.mul(n,s),g=r.mul(i,c),_=r.add(t,n),v=r.add(o,s);_=r.mul(_,v),v=r.add(m,h),_=r.sub(_,v),v=r.add(t,i);let y=r.add(o,c);return v=r.mul(v,y),y=r.add(m,g),v=r.sub(v,y),y=r.add(n,i),l=r.add(s,c),y=r.mul(y,l),l=r.add(h,g),y=r.sub(y,l),d=r.mul(f,v),l=r.mul(p,g),d=r.add(l,d),l=r.sub(h,d),d=r.add(h,d),u=r.mul(l,d),h=r.add(m,m),h=r.add(h,m),g=r.mul(f,g),v=r.mul(p,v),h=r.add(h,g),g=r.sub(m,g),g=r.mul(f,g),v=r.add(v,g),m=r.mul(h,v),u=r.add(u,m),m=r.mul(y,v),l=r.mul(_,l),l=r.sub(l,m),m=r.mul(_,h),d=r.mul(y,d),d=r.add(d,m),new E(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(E.ZERO)}multiply(e){let{endo:n}=t;if(!i.isValidNot0(e))throw Error(`invalid scalar: out of range`);let r,a,o=e=>D.cached(this,e,e=>nt(E,e));if(n){let{k1neg:t,k1:i,k2neg:s,k2:c}=x(e),{p:l,f:u}=o(i),{p:d,f}=o(c);a=u.add(f),r=T(n.beta,l,d,t,s)}else{let{p:t,f:n}=o(e);r=t,a=n}return nt(E,[r,a])[0]}multiplyUnsafe(e){let{endo:n}=t,r=this;if(!i.isValid(e))throw Error(`invalid scalar: out of range`);if(e===St||r.is0())return E.ZERO;if(e===Ct)return r;if(D.hasCache(this))return this.multiply(e);if(n){let{k1neg:t,k1:i,k2neg:a,k2:o}=x(e),{p1:s,p2:c}=pt(E,r,i,o);return T(n.beta,s,c,t,a)}else return D.unsafe(r,e)}multiplyAndAddUnsafe(e,t,n){let r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return S(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return o===Ct?!0:e?e(E,this):D.unsafe(this,s).is0()}clearCofactor(){let{clearCofactor:e}=t;return o===Ct?this:e?e(E,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return se(e,`isCompressed`),this.assertValidity(),p(E,this,e)}toHex(e=!0){return w(this.toBytes(e))}toString(){return`<Point ${this.is0()?`ZERO`:this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return nt(E,e)}static msm(e,t){return mt(E,i,e,t)}static fromPrivateKey(e){return E.BASE.multiply(Dt(i,e))}}E.BASE=new E(a.Gx,a.Gy,r.ONE),E.ZERO=new E(r.ZERO,r.ONE,r.ZERO),E.Fp=r,E.Fn=i;let ee=i.BITS,D=new ft(E,t.endo?Math.ceil(ee/2):ee);return E.BASE.precompute(8),E}function kt(e){return Uint8Array.of(e?2:3)}function At(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function jt(e,t={}){let{Fn:n}=e,r=t.randomBytes||ie,i=Object.assign(At(e.Fp,n),{seed:Ze(n.ORDER)});function a(e){try{return!!Dt(n,e)}catch{return!1}}function o(t,n){let{publicKey:r,publicKeyUncompressed:a}=i;try{let i=t.length;return n===!0&&i!==r||n===!1&&i!==a?!1:!!e.fromBytes(t)}catch{return!1}}function s(e=r(i.seed)){return Qe(O(e,i.seed,`seed`),n.ORDER)}function c(t,r=!0){return e.BASE.multiply(Dt(n,t)).toBytes(r)}function l(e){let t=s(e);return{secretKey:t,publicKey:c(t)}}function u(t){if(typeof t==`bigint`)return!1;if(t instanceof e)return!0;let{secretKey:r,publicKey:a,publicKeyUncompressed:o}=i;if(n.allowedLengths||r===a)return;let s=k(`key`,t).length;return s===a||s===o}function d(t,r,i=!0){if(u(t)===!0)throw Error(`first arg must be private key`);if(u(r)===!1)throw Error(`second arg must be public key`);let a=Dt(n,t);return e.fromHex(r).multiply(a).toBytes(i)}return Object.freeze({getPublicKey:c,getSharedSecret:d,keygen:l,Point:e,utils:{isValidSecretKey:a,isValidPublicKey:o,randomSecretKey:s,isValidPrivateKey:a,randomPrivateKey:s,normPrivateKeyToScalar:e=>Dt(n,e),precompute(t=8,n=e.BASE){return n.precompute(t,!1)}},lengths:i})}function Mt(e,t,n={}){y(t),be(n,{},{hmac:`function`,lowS:`boolean`,randomBytes:`function`,bits2int:`function`,bits2int_modN:`function`});let r=n.randomBytes||ie,i=n.hmac||((e,...n)=>Ee(t,e,ne(...n))),{Fp:a,Fn:o}=e,{ORDER:s,BITS:c}=o,{keygen:l,getPublicKey:u,getSharedSecret:d,utils:f,lengths:p}=jt(e,n),m={prehash:!1,lowS:typeof n.lowS==`boolean`?n.lowS:!1,format:void 0,extraEntropy:!1},h=`compact`;function _(e){return e>s>>Ct}function v(e,t){if(!o.isValidNot0(t))throw Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}function b(e,t){yt(t);let n=p.signature;return O(e,t===`compact`?n:t===`recovered`?n+1:void 0,`${t} signature`)}class x{constructor(e,t,n){this.r=v(`r`,e),this.s=v(`s`,t),n!=null&&(this.recovery=n),Object.freeze(this)}static fromBytes(e,t=h){b(e,t);let n;if(t===`der`){let{r:t,s:n}=xt.toSig(O(e));return new x(t,n)}t===`recovered`&&(n=e[0],t=`compact`,e=e.subarray(1));let r=o.BYTES,i=e.subarray(0,r),a=e.subarray(r,r*2);return new x(o.fromBytes(i),o.fromBytes(a),n)}static fromHex(e,t){return this.fromBytes(ee(e),t)}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(t){let n=a.ORDER,{r,s:i,recovery:c}=this;if(c==null||![0,1,2,3].includes(c))throw Error(`recovery id invalid`);if(s*wt<n&&c>1)throw Error(`recovery id is ambiguous for h>1 curve`);let l=c===2||c===3?r+s:r;if(!a.isValid(l))throw Error(`recovery id 2 or 3 invalid`);let u=a.toBytes(l),d=e.fromBytes(ne(kt((c&1)==0),u)),f=o.inv(l),p=C(k(`msgHash`,t)),m=o.create(-p*f),h=o.create(i*f),g=e.BASE.multiplyUnsafe(m).add(d.multiplyUnsafe(h));if(g.is0())throw Error(`point at infinify`);return g.assertValidity(),g}hasHighS(){return _(this.s)}toBytes(e=h){if(yt(e),e===`der`)return ee(xt.hexFromSig(this));let t=o.toBytes(this.r),n=o.toBytes(this.s);if(e===`recovered`){if(this.recovery==null)throw Error(`recovery bit must be present`);return ne(Uint8Array.of(this.recovery),t,n)}return ne(t,n)}toHex(e){return w(this.toBytes(e))}assertValidity(){}static fromCompact(e){return x.fromBytes(k(`sig`,e),`compact`)}static fromDER(e){return x.fromBytes(k(`sig`,e),`der`)}normalizeS(){return this.hasHighS()?new x(this.r,o.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes(`der`)}toDERHex(){return w(this.toBytes(`der`))}toCompactRawBytes(){return this.toBytes(`compact`)}toCompactHex(){return w(this.toBytes(`compact`))}}let S=n.bits2int||function(e){if(e.length>8192)throw Error(`input is too large`);let t=ue(e),n=e.length*8-c;return n>0?t>>BigInt(n):t},C=n.bits2int_modN||function(e){return o.create(S(e))},T=ve(c);function E(e){return ge(`num < 2^`+c,e,St,T),o.toBytes(e)}function D(e,n){return O(e,void 0,`message`),n?O(t(e),void 0,`prehashed message`):e}function te(t,n,i){if([`recovered`,`canonical`].some(e=>e in i))throw Error(`sign() legacy options not supported`);let{lowS:a,prehash:s,extraEntropy:c}=bt(i,m);t=D(t,s);let l=C(t),u=Dt(o,n),d=[E(u),E(l)];if(c!=null&&c!==!1){let e=c===!0?r(p.secretKey):c;d.push(k(`extraEntropy`,e))}let f=ne(...d),h=l;function g(t){let n=S(t);if(!o.isValidNot0(n))return;let r=o.inv(n),i=e.BASE.multiply(n).toAffine(),s=o.create(i.x);if(s===St)return;let c=o.create(r*o.create(h+s*u));if(c===St)return;let l=(i.x===s?0:2)|Number(i.y&Ct),d=c;return a&&_(c)&&(d=o.neg(c),l^=1),new x(s,d,l)}return{seed:f,k2sig:g}}function re(e,n,r={}){e=k(`message`,e);let{seed:a,k2sig:s}=te(e,n,r);return ye(t.outputLen,o.BYTES,i)(a,s)}function ae(e){let t,n=typeof e==`string`||g(e),r=!n&&typeof e==`object`&&!!e&&typeof e.r==`bigint`&&typeof e.s==`bigint`;if(!n&&!r)throw Error(`invalid signature, expected Uint8Array, hex string or Signature instance`);if(r)t=new x(e.r,e.s);else if(n){try{t=x.fromBytes(k(`sig`,e),`der`)}catch(e){if(!(e instanceof xt.Err))throw e}if(!t)try{t=x.fromBytes(k(`sig`,e),`compact`)}catch{return!1}}return t||!1}function oe(t,n,r,i={}){let{lowS:a,prehash:s,format:c}=bt(i,m);if(r=k(`publicKey`,r),n=D(k(`message`,n),s),`strict`in i)throw Error(`options.strict was renamed to lowS`);let l=c===void 0?ae(t):x.fromBytes(k(`sig`,t),c);if(l===!1)return!1;try{let t=e.fromBytes(r);if(a&&l.hasHighS())return!1;let{r:i,s}=l,c=C(n),u=o.inv(s),d=o.create(c*u),f=o.create(i*u),p=e.BASE.multiplyUnsafe(d).add(t.multiplyUnsafe(f));return p.is0()?!1:o.create(p.x)===i}catch{return!1}}function se(e,t,n={}){let{prehash:r}=bt(n,m);return t=D(t,r),x.fromBytes(e,`recovered`).recoverPublicKey(t).toBytes()}return Object.freeze({keygen:l,getPublicKey:u,getSharedSecret:d,utils:f,lengths:p,Point:e,sign:re,verify:oe,recoverPublicKey:se,Signature:x,hash:t})}function Nt(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:Ye(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}function Pt(e){let{CURVE:t,curveOpts:n}=Nt(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function Ft(e,t){let n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,Je(n.Fn.ORDER,n.Fn.BITS))})}function It(e){let{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:i}=Pt(e);return Ft(e,Mt(Ot(t,n),r,i))}function Lt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function Rt(e,...t){if(!Lt(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function zt(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Bt(e,t){Rt(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function Vt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Ht(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ut(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Wt(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function Gt(e){if(typeof e==`string`)e=Wt(e);else if(Lt(e))e=qt(e);else throw Error(`Uint8Array expected, got `+typeof e);return e}function Kt(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}function qt(e){return Uint8Array.from(e)}var Jt=16,Yt=new Uint8Array(16),Xt=Vt(Yt),Zt=225,Qt=(e,t,n,r)=>{let i=r&1;return{s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^Zt<<24&-(i&1)}},$t=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;function en(e){e.reverse();let t=e[15]&1,n=0;for(let t=0;t<e.length;t++){let r=e[t];e[t]=r>>>1|n,n=(r&1)<<7}return e[0]^=-t&225,e}var tn=e=>e>64*1024?8:e>1024?4:2,nn=class{constructor(e,t){this.blockLen=Jt,this.outputLen=Jt,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=Gt(e),Rt(e,16);let n=Ut(e),r=n.getUint32(0,!1),i=n.getUint32(4,!1),a=n.getUint32(8,!1),o=n.getUint32(12,!1),s=[];for(let e=0;e<128;e++)s.push({s0:$t(r),s1:$t(i),s2:$t(a),s3:$t(o)}),{s0:r,s1:i,s2:a,s3:o}=Qt(r,i,a,o);let c=tn(t||1024);if(![1,2,4,8].includes(c))throw Error(`ghash: invalid window size, expected 2, 4 or 8`);this.W=c;let l=128/c,u=this.windowSize=2**c,d=[];for(let e=0;e<l;e++)for(let t=0;t<u;t++){let n=0,r=0,i=0,a=0;for(let o=0;o<c;o++){if(!(t>>>c-o-1&1))continue;let{s0:l,s1:u,s2:d,s3:f}=s[c*e+o];n^=l,r^=u,i^=d,a^=f}d.push({s0:n,s1:r,s2:i,s3:a})}this.t=d}_updateBlock(e,t,n,r){e^=this.s0,t^=this.s1,n^=this.s2,r^=this.s3;let{W:i,t:a,windowSize:o}=this,s=0,c=0,l=0,u=0,d=(1<<i)-1,f=0;for(let p of[e,t,n,r])for(let e=0;e<4;e++){let t=p>>>8*e&255;for(let e=8/i-1;e>=0;e--){let n=t>>>i*e&d,{s0:r,s1:p,s2:m,s3:h}=a[f*o+n];s^=r,c^=p,l^=m,u^=h,f+=1}}this.s0=s,this.s1=c,this.s2=l,this.s3=u}update(e){zt(this),e=Gt(e),Rt(e);let t=Vt(e),n=Math.floor(e.length/Jt),r=e.length%Jt;for(let e=0;e<n;e++)this._updateBlock(t[e*4+0],t[e*4+1],t[e*4+2],t[e*4+3]);return r&&(Yt.set(e.subarray(n*Jt)),this._updateBlock(Xt[0],Xt[1],Xt[2],Xt[3]),Ht(Xt)),this}destroy(){let{t:e}=this;for(let t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){zt(this),Bt(e,this),this.finished=!0;let{s0:t,s1:n,s2:r,s3:i}=this,a=Vt(e);return a[0]=t,a[1]=n,a[2]=r,a[3]=i,e}digest(){let e=new Uint8Array(Jt);return this.digestInto(e),this.destroy(),e}},rn=class extends nn{constructor(e,t){e=Gt(e),Rt(e);let n=en(qt(e));super(n,t),Ht(n)}update(e){e=Gt(e),zt(this);let t=Vt(e),n=e.length%Jt,r=Math.floor(e.length/Jt);for(let e=0;e<r;e++)this._updateBlock($t(t[e*4+3]),$t(t[e*4+2]),$t(t[e*4+1]),$t(t[e*4+0]));return n&&(Yt.set(e.subarray(r*Jt)),this._updateBlock($t(Xt[3]),$t(Xt[2]),$t(Xt[1]),$t(Xt[0])),Ht(Xt)),this}digestInto(e){zt(this),Bt(e,this),this.finished=!0;let{s0:t,s1:n,s2:r,s3:i}=this,a=Vt(e);return a[0]=t,a[1]=n,a[2]=r,a[3]=i,e.reverse()}};function an(e){let t=(t,n)=>e(n,t.length).update(Gt(t)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(t,n)=>e(t,n),t}var on=an((e,t)=>new nn(e,t));an((e,t)=>new rn(e,t));var sn=Object.defineProperty,cn=(e,t,n)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ln=(e,t)=>{for(var n in t)sn(e,n,{get:t[n],enumerable:!0})},P=(e,t,n)=>(cn(e,typeof t==`symbol`?t:t+``,n),n),un={};ln(un,{EmptyArray:()=>Cr,arrayToHex:()=>ur,arrayToUtf8:()=>dr,calculateSharedKey:()=>yr,comparePublicKeyHex:()=>pr,compressPublicKeyHex:()=>cr,doDecrypt:()=>Tr,doEncrypt:()=>wr,doSignature:()=>Er,doVerifySignature:()=>Dr,ecdh:()=>br,generateKeyPairHex:()=>sr,getHash:()=>kr,getPoint:()=>Mr,getPublicKeyFromPrivateKey:()=>jr,getZ:()=>Or,hexToArray:()=>L,initRNGPool:()=>kn,leftPad:()=>I,precomputePublicKey:()=>Ar,utf8ToHex:()=>lr,verifyPublicKey:()=>fr});var dn=BigInt(0),fn=BigInt(1),pn=BigInt(2);function mn(e){let t=e.toString(16);if(t[0]!==`-`)t.length%2==1?t=`0`+t:t.match(/^[0-7]/)||(t=`00`+t);else{t=t.substring(1);let n=t.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);let r=``;for(let e=0;e<n;e++)r+=`f`;t=((j(r)^e)+fn).toString(16).replace(/^-/,``)}return t}var hn=class{constructor(e=null,t=`00`,n=`00`,r=``){this.tlv=e,this.t=t,this.l=n,this.v=r}getEncodedHex(){return this.tlv||=(this.v=this.getValue(),this.l=this.getLength(),this.t+this.l+this.v),this.tlv}getLength(){let e=this.v.length/2,t=e.toString(16);return t.length%2==1&&(t=`0`+t),e<128?t:(128+t.length/2).toString(16)+t}getValue(){return``}},gn=class extends hn{constructor(e){super(),this.t=`02`,e&&(this.v=mn(e))}getValue(){return this.v}},_n=class extends hn{constructor(e){super(),this.s=e,P(this,`hV`,``),this.t=`04`,e&&(this.v=e.toLowerCase())}getValue(){return this.v}},vn=class extends hn{constructor(e){super(),this.asn1Array=e,P(this,`t`,`30`)}getValue(){return this.v=this.asn1Array.map(e=>e.getEncodedHex()).join(``),this.v}};function yn(e,t){if(+e[t+2]<8)return 1;let n=e.slice(t+2,t+6).slice(0,2);return 1+(parseInt(n,16)-128)}function bn(e,t){let n=yn(e,t),r=e.substring(t+2,t+2+n*2);return r?+(+r[0]<8?j(r):j(r.substring(2))).toString():-1}function xn(e,t){return t+(yn(e,t)+1)*2}function Sn(e,t){return new vn([new gn(e),new gn(t)]).getEncodedHex()}function Cn(e,t,n,r){return new vn([new gn(e),new gn(t),new _n(n),new _n(r)]).getEncodedHex()}function wn(e){let t=xn(e,0),n=xn(e,t),r=bn(e,t),i=e.substring(n,n+r*2),a=n+i.length,o=xn(e,a),s=bn(e,a),c=e.substring(o,o+s*2);return{r:j(i),s:j(c)}}function Tn(e){function t(e,t){let n=xn(e,t),r=bn(e,t),i=e.substring(n,n+r*2);return{value:i,nextStart:n+i.length}}let{value:n,nextStart:r}=t(e,xn(e,0)),{value:i,nextStart:a}=t(e,r),{value:o,nextStart:s}=t(e,a),{value:c}=t(e,s);return{x:j(n),y:j(i),hash:o,cipher:c}}var En=16384,Dn=new Uint8Array,On;async function kn(){if(`crypto`in globalThis){On=globalThis.crypto;return}if(!(Dn.length>En/2))if(`wx`in globalThis&&`getRandomValues`in globalThis.wx)Dn=await new Promise(e=>{wx.getRandomValues({length:En,success(t){e(new Uint8Array(t.randomValues))}})});else try{On=globalThis.crypto?globalThis.crypto:(await Promise.resolve().then(()=>l(require("./__vite-browser-external-C-0ohPQu.cjs").default,1))).webcrypto;let e=new Uint8Array(En);On.getRandomValues(e),Dn=e}catch{throw Error(`no available csprng, abort.`)}}kn();function An(e){if(Dn.length>e){let t=Dn.slice(0,e);return Dn=Dn.slice(e),kn(),t}else throw Error(`random number pool is not ready or insufficient, prevent getting too long random values or too often.`)}function jn(e=0){let t=new Uint8Array(e);return On?On.getRandomValues(t):An(e)}var Mn=e=>e instanceof Uint8Array,Nn=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(new Uint8Array(new Uint32Array([287454020]).buffer)[0]!==68)throw Error(`Non little-endian hardware is not supported`);var Pn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function Fn(e){if(!Mn(e))throw Error(`Uint8Array expected`);let t=``;for(let n=0;n<e.length;n++)t+=Pn[e[n]];return t}var In=typeof TextEncoder<`u`&&new TextEncoder,Ln=(e,t,n)=>((t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Uint8Array(e.subarray(t,n)));function Rn(e){if(In)return In.encode(e);let t=e.length,n=new Uint8Array(e.length+(e.length>>1)),r=0,i=e=>{n[r++]=e};for(let a=0;a<t;++a){if(r+5>n.length){let e=new Uint8Array(r+8+(t-a<<1));e.set(n),n=e}let o=e.charCodeAt(a);o<128?i(o):o<2048?(i(192|o>>6),i(128|o&63)):o>55295&&o<57344?(o=65536+(o&1047552)|e.charCodeAt(++a)&1023,i(240|o>>18),i(128|o>>12&63),i(128|o>>6&63),i(128|o&63)):(i(224|o>>12),i(128|o>>6&63),i(128|o&63))}return Ln(n,0,r)}function zn(e){if(typeof e==`string`&&(e=Rn(e)),!Mn(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}var Bn=class{clone(){return this._cloneInto()}};function Vn(e){let t=t=>e().update(zn(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}var Hn=(e,t,n)=>e&t|e&n|t&n,Un=(e,t,n)=>e^t^n,Wn=(e,t,n)=>e&t|~e&n;function Gn(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}function Kn(e,t){let n=t&31;return e<<n|e>>>32-n}function qn(e){return e^Kn(e,9)^Kn(e,17)}function Jn(e){return e^Kn(e,15)^Kn(e,23)}var Yn=class extends Bn{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,P(this,`buffer`),P(this,`view`),P(this,`finished`,!1),P(this,`length`,0),P(this,`pos`,0),P(this,`destroyed`,!1),this.buffer=new Uint8Array(e),this.view=Nn(this.buffer)}update(e){let{view:t,buffer:n,blockLen:r}=this;e=zn(e);let i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=Nn(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;Gn(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=Nn(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen should be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}},Xn=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),Zn=new Uint32Array(68),Qn=new Uint32Array(64),$n=2043430169,er=2055708042,tr=class extends Yn{constructor(){super(64,32,8,!1),P(this,`A`,Xn[0]|0),P(this,`B`,Xn[1]|0),P(this,`C`,Xn[2]|0),P(this,`D`,Xn[3]|0),P(this,`E`,Xn[4]|0),P(this,`F`,Xn[5]|0),P(this,`G`,Xn[6]|0),P(this,`H`,Xn[7]|0)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)Zn[n]=e.getUint32(t,!1);for(let e=16;e<68;e++)Zn[e]=Jn(Zn[e-16]^Zn[e-9]^Kn(Zn[e-3],15))^Kn(Zn[e-13],7)^Zn[e-6];for(let e=0;e<64;e++)Qn[e]=Zn[e]^Zn[e+4];let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=e>=0&&e<=15,u=t?$n:er,d=Kn(Kn(n,12)+o+Kn(u,e),7),f=d^Kn(n,12),p=(t?Un(n,r,i):Hn(n,r,i))+a+f+Qn[e]|0,m=(t?Un(o,s,c):Wn(o,s,c))+l+d+Zn[e]|0;a=i,i=Kn(r,9),r=n,n=p,l=c,c=Kn(s,19),s=o,o=qn(m)}n=n^this.A|0,r=r^this.B|0,i=i^this.C|0,a=a^this.D|0,o=o^this.E|0,s=s^this.F|0,c=c^this.G|0,l=l^this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){Zn.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},nr=Vn(()=>new tr),rr=class extends Bn{constructor(e,t){super(),P(this,`oHash`),P(this,`iHash`),P(this,`blockLen`),P(this,`outputLen`),P(this,`finished`,!1),P(this,`destroyed`,!1);let n=zn(t);if(this.iHash=e.create(),typeof this.iHash.update!=`function`)throw Error(`Expected instance of class which extends utils.Hash`);this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return this.iHash.update(e),this}digestInto(e){this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},ir=(e,t,n)=>new rr(e,t).update(n).digest();ir.create=(e,t)=>new rr(e,t);var ar=Ye(BigInt(`115792089210356248756420345214020892766250353991924191454421193933289684991999`)),F=It({a:BigInt(`115792089210356248756420345214020892766250353991924191454421193933289684991996`),b:BigInt(`18505919022281880113072981827955639221458448578012075254857346196103069175443`),Fp:ar,h:fn,n:BigInt(`115792089210356248756420345214020892766061623724957744567843809356293439045923`),Gx:BigInt(`22963146547237050559479531362550074578802567295341616970375194840604139615431`),Gy:BigInt(`85132369209828568825618990617112496413088388631904505083283536607588877201568`),hash:nr,hmac:(e,...t)=>ir(nr,e,Ce(...t)),randomBytes:jn}),or=Ye(BigInt(F.CURVE.n));function sr(e){let t=e?we(Fe(BigInt(e),fn)+fn,32):F.utils.randomPrivateKey(),n=F.getPublicKey(t,!1);return{privateKey:I(Se(t),64),publicKey:I(Se(n),64)}}function cr(e){if(e.length!==130)throw Error(`Invalid public key to compress`);let t=(e.length-2)/2,n=e.substring(2,2+t),r=j(e.substring(t+2,t+t+2)),i=`03`;return Fe(r,pn)===dn&&(i=`02`),i+n}function lr(e){return Se(Rn(e))}function I(e,t){return e.length>=t?e:Array(t-e.length+1).join(`0`)+e}function ur(e){return e.map(e=>{let t=e.toString(16);return t.length===1?`0`+t:t}).join(``)}function dr(e){let t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(t.push(String.fromCodePoint(((e[n]&7)<<18)+((e[n+1]&63)<<12)+((e[n+2]&63)<<6)+(e[n+3]&63))),n+=3):e[n]>=224&&e[n]<=239?(t.push(String.fromCodePoint(((e[n]&15)<<12)+((e[n+1]&63)<<6)+(e[n+2]&63))),n+=2):e[n]>=192&&e[n]<=223?(t.push(String.fromCodePoint(((e[n]&31)<<6)+(e[n+1]&63))),n++):t.push(String.fromCodePoint(e[n]));return t.join(``)}function L(e){let t=e.length;t%2!=0&&(e=I(e,t+1)),t=e.length;let n=t/2,r=new Uint8Array(n);for(let t=0;t<n;t++)r[t]=parseInt(e.substring(t*2,t*2+2),16);return r}function fr(e){let t=F.ProjectivePoint.fromHex(e);if(!t)return!1;try{return t.assertValidity(),!0}catch{return!1}}function pr(e,t){let n=F.ProjectivePoint.fromHex(e);if(!n)return!1;let r=F.ProjectivePoint.fromHex(t);return r?n.equals(r):!1}function mr(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e.codePointAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>>6),t.push(128|r&63);else if(r<=55295||r>=57344&&r<=65535)t.push(224|r>>>12),t.push(128|r>>>6&63),t.push(128|r&63);else if(r>=65536&&r<=1114111)n++,t.push(240|r>>>18&28),t.push(128|r>>>12&63),t.push(128|r>>>6&63),t.push(128|r&63);else throw t.push(r),Error(`input is not supported`)}return new Uint8Array(t)}function hr(e,t){if(e=typeof e==`string`?mr(e):e,t){if((t.mode||`hmac`)!==`hmac`)throw Error(`invalid mode`);let n=t.key;if(!n)throw Error(`invalid key`);return n=typeof n==`string`?L(n):n,Fn(ir(nr,n,e))}return Fn(nr(e))}function gr(e,t,n){e=typeof e==`string`?mr(e):e;let r=n==null?Cr:typeof n==`string`?mr(n):n,i=new Uint8Array(t),a=1,o=0,s=Cr,c=new Uint8Array(4),l=()=>{c[0]=a>>24&255,c[1]=a>>16&255,c[2]=a>>8&255,c[3]=a&255,s=nr(Ce(e,c,r)),a++,o=0};l();for(let e=0,t=i.length;e<t;e++)o===s.length&&l(),i[e]=s[o++]&255;return i}var _r=j(`80000000000000000000000000000000`),vr=j(`7fffffffffffffffffffffffffffffff`);function yr(e,t,n,r,i,a=!1,o=`1234567812345678`,s=`1234567812345678`){let c=F.ProjectivePoint.fromHex(t.publicKey),l=F.ProjectivePoint.fromHex(r),u=F.ProjectivePoint.fromHex(n),d=Or(e.publicKey,o),f=Or(n,s);a&&([d,f]=[f,d]);let p=j(t.privateKey),m=j(e.privateKey),h=_r+(c.x&vr),g=or.add(m,or.mulN(h,p)),_=l.x,v=or.add(_r,_&vr),y=l.multiply(v).add(u).multiply(g);return gr(Ce(L(I(A(y.x),64)),L(I(A(y.y),64)),d,f),i)}var{getSharedSecret:br}=F;function xr(e,t,n){let r=gr(Ce(e,t),n.length);for(let e=0,t=n.length;e<t;e++)n[e]^=r[e]&255}var Sr=0,Cr=new Uint8Array;function wr(e,t,n=1,r){let i=typeof e==`string`?L(lr(e)):Uint8Array.from(e),a=typeof t==`string`?F.ProjectivePoint.fromHex(t):t,o=sr(),s=j(o.privateKey),c=o.publicKey;c.length>128&&(c=c.substring(c.length-128));let l=a.multiply(s),u=L(I(A(l.x),64)),d=L(I(A(l.y),64)),f=Fn(nr(Ce(u,i,d)));xr(u,d,i);let p=Fn(i);if(r?.asn1){let e=F.ProjectivePoint.fromHex(o.publicKey);return n===Sr?Cn(e.x,e.y,p,f):Cn(e.x,e.y,f,p)}return n===Sr?c+p+f:c+f+p}function Tr(e,t,n=1,r){let{output:i=`string`,asn1:a=!1}=r||{},o=j(t),s,c,l;if(a){let{x:t,y:r,cipher:i,hash:a}=Tn(e);s=F.ProjectivePoint.fromAffine({x:t,y:r}),l=a,c=i,n===Sr&&([c,l]=[l,c])}else s=F.ProjectivePoint.fromHex(`04`+e.substring(0,128)),l=e.substring(128,192),c=e.substring(192),n===Sr&&(l=e.substring(e.length-64),c=e.substring(128,e.length-64));let u=L(c),d=s.multiply(o),f=L(I(A(d.x),64)),p=L(I(A(d.y),64));return xr(f,p,u),ur(Array.from(nr(Ce(f,u,p))))===l.toLowerCase()?i===`array`?u:dr(u):i===`array`?[]:``}function Er(e,t,n={}){let{pointPool:r,der:i,hash:a,publicKey:o,userId:s}=n,c=typeof e==`string`?lr(e):ur(Array.from(e));a&&(o||=jr(t),c=kr(c,o,s));let l=j(t),u=j(c),d=null,f=null,p=null;do{do{let e;e=r&&r.length?r.pop():Mr(),d=e.k,f=or.add(u,e.x1)}while(f===dn||f+d===F.CURVE.n);p=or.mul(or.inv(or.addN(l,fn)),or.subN(d,or.mulN(f,l)))}while(p===dn);return i?Sn(f,p):I(A(f),64)+I(A(p),64)}function Dr(e,t,n,r={}){let i,{hash:a,der:o,userId:s}=r,c=typeof n==`string`?n:n.toHex(!1);i=a?kr(typeof e==`string`?lr(e):e,c,s):typeof e==`string`?lr(e):ur(Array.from(e));let l,u;if(o){let e=wn(t);l=e.r,u=e.s}else l=j(t.substring(0,64)),u=j(t.substring(64));let d=typeof n==`string`?F.ProjectivePoint.fromHex(n):n,f=j(i),p=or.add(l,u);if(p===dn)return!1;let m=F.ProjectivePoint.BASE.multiply(u).add(d.multiply(p)),h=or.add(f,m.x);return l===h}function Or(e,t=`1234567812345678`){t=lr(t);let n=I(A(F.CURVE.a),64),r=I(A(F.CURVE.b),64),i=I(A(F.ProjectivePoint.BASE.x),64),a=I(A(F.ProjectivePoint.BASE.y),64),o,s;if(e.length===128)o=e.substring(0,64),s=e.substring(64,128);else{let t=F.ProjectivePoint.fromHex(e);o=I(A(t.x),64),s=I(A(t.y),64)}let c=L(t+n+r+i+a+o+s),l=t.length*4;return nr(Ce(new Uint8Array([l>>8&255,l&255]),c))}function kr(e,t,n=`1234567812345678`){return Fn(nr(Ce(Or(t,n),typeof e==`string`?L(e):e)))}function Ar(e,t){let n=F.ProjectivePoint.fromHex(e);return F.utils.precompute(t,n)}function jr(e){return I(Se(F.getPublicKey(e,!1)),64)}function Mr(){let e=sr(),t=F.ProjectivePoint.fromHex(e.publicKey),n=j(e.privateKey);return{...e,k:n,x1:t.x}}var Nr={};ln(Nr,{decrypt:()=>Kr,encrypt:()=>Gr,sm4:()=>Wr});var R=0,Pr=32,Fr=16,Ir=Uint8Array.from([214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]),Lr=new Uint32Array([462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257]);function Rr(e){return(Ir[e>>>24&255]&255)<<24|(Ir[e>>>16&255]&255)<<16|(Ir[e>>>8&255]&255)<<8|Ir[e&255]&255}function zr(e,t,n){let r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0;s=e[0]&255,c=e[1]&255,l=e[2]&255,u=e[3]&255,r=s<<24|c<<16|l<<8|u,s=e[4]&255,c=e[5]&255,l=e[6]&255,u=e[7]&255,i=s<<24|c<<16|l<<8|u,s=e[8]&255,c=e[9]&255,l=e[10]&255,u=e[11]&255,a=s<<24|c<<16|l<<8|u,s=e[12]&255,c=e[13]&255,l=e[14]&255,u=e[15]&255,o=s<<24|c<<16|l<<8|u;for(let e=0;e<32;e+=4)s=i^a^o^n[e],s=Rr(s),r^=s^(s<<2|s>>>30)^(s<<10|s>>>22)^(s<<18|s>>>14)^(s<<24|s>>>8),c=a^o^r^n[e+1],c=Rr(c),i^=c^(c<<2|c>>>30)^(c<<10|c>>>22)^(c<<18|c>>>14)^(c<<24|c>>>8),l=o^r^i^n[e+2],l=Rr(l),a^=l^(l<<2|l>>>30)^(l<<10|l>>>22)^(l<<18|l>>>14)^(l<<24|l>>>8),u=r^i^a^n[e+3],u=Rr(u),o^=u^(u<<2|u>>>30)^(u<<10|u>>>22)^(u<<18|u>>>14)^(u<<24|u>>>8);t[0]=o>>>24&255,t[1]=o>>>16&255,t[2]=o>>>8&255,t[3]=o&255,t[4]=a>>>24&255,t[5]=a>>>16&255,t[6]=a>>>8&255,t[7]=a&255,t[8]=i>>>24&255,t[9]=i>>>16&255,t[10]=i>>>8&255,t[11]=i&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255}function Br(e,t,n){let r=0,i=0,a=0,o=0,s=0;r=(e[0]&255)<<24|(e[1]&255)<<16|(e[2]&255)<<8|e[3]&255,i=(e[4]&255)<<24|(e[5]&255)<<16|(e[6]&255)<<8|e[7]&255,a=(e[8]&255)<<24|(e[9]&255)<<16|(e[10]&255)<<8|e[11]&255,o=(e[12]&255)<<24|(e[13]&255)<<16|(e[14]&255)<<8|e[15]&255,r^=2746333894,i^=1453994832,a^=1736282519,o^=2993693404;for(let e=0;e<32;e+=4)s=i^a^o^Lr[e+0],s=Rr(s),r^=s^(s<<13|s>>>19)^(s<<23|s>>>9),t[e+0]=r,s=a^o^r^Lr[e+1],s=Rr(s),i^=s^(s<<13|s>>>19)^(s<<23|s>>>9),t[e+1]=i,s=o^r^i^Lr[e+2],s=Rr(s),a^=s^(s<<13|s>>>19)^(s<<23|s>>>9),t[e+2]=a,s=r^i^a^Lr[e+3],s=Rr(s),o^=s^(s<<13|s>>>19)^(s<<23|s>>>9),t[e+3]=o;if(n===R)for(let e=0;e<16;e++)[t[e],t[31-e]]=[t[31-e],t[e]]}function Vr(e){for(let t=e.length-1;t>=0&&(e[t]++,e[t]===0);t--);}function Hr(e,t,n,r,i,a){function o(){let e=new Uint32Array(Pr);Br(t,e,1);let r=new Uint8Array(16).fill(0),i=new Uint8Array(16);zr(r,i,e);let a;if(n.length===12)a=new Uint8Array(16),a.set(n,0),a[15]=1;else{let e=on.create(i);e.update(n);let t=new Uint8Array(16);Kt(Ut(t),8,BigInt(n.length*8),!1),e.update(t),a=e.digest()}let o=new Uint8Array(a);Vr(o);let s=new Uint8Array(16);return zr(a,s,e),{roundKey:e,h:i,j0:a,counter:o,tagMask:s}}function s(e,t){let n=r.length,i=t.length,a=on.create(e);n>0&&a.update(r),a.update(t);let o=new Uint8Array(16),s=Ut(o);return Kt(s,0,BigInt(n*8),!1),Kt(s,8,BigInt(i*8),!1),a.update(o),a.digest()}let{roundKey:c,h:l,j0:u,counter:d,tagMask:f}=o();if(i===R&&a){let t=s(l,e);for(let e=0;e<16;e++)t[e]^=f[e];let n=0;for(let e=0;e<16;e++)n|=t[e]^a[e];if(n!==0)throw Error(`authentication tag mismatch`)}let p=new Uint8Array(e.length),m=0,h=e.length;for(;h>=Fr;){let t=new Uint8Array(Fr);zr(d,t,c);for(let n=0;n<Fr&&n<h;n++)p[m+n]=e[m+n]^t[n];Vr(d),m+=Fr,h-=Fr}if(h>0){let t=new Uint8Array(Fr);zr(d,t,c);for(let n=0;n<h;n++)p[m+n]=e[m+n]^t[n]}if(i!==R){let e=s(l,p);for(let t=0;t<16;t++)e[t]^=f[t];return{output:p,tag:e}}return{output:p}}var Ur=new Uint8Array(16);function Wr(e,t,n,r={}){let{padding:i=`pkcs#7`,mode:a,iv:o=new Uint8Array(16),output:s,associatedData:c,outputTag:l,tag:u}=r;if(a===`gcm`){let r=typeof t==`string`?L(t):Uint8Array.from(t),i=typeof o==`string`?L(o):Uint8Array.from(o),a=c?typeof c==`string`?L(c):Uint8Array.from(c):new Uint8Array,d;d=typeof e==`string`?n===R?L(e):mr(e):Uint8Array.from(e);let f=u?typeof u==`string`?L(u):Uint8Array.from(u):void 0,p=Hr(d,r,i,a,n,f);return s===`array`?l&&n!==R?p:p.output:l&&n!==R||n!==R?{output:Fn(p.output),tag:p.tag?Fn(p.tag):void 0}:dr(p.output)}if(a===`cbc`&&(typeof o==`string`&&(o=L(o)),o.length!==128/8))throw Error(`iv is invalid`);if(typeof t==`string`&&(t=L(t)),t.length!==128/8)throw Error(`key is invalid`);if(e=typeof e==`string`?n===R?L(e):mr(e):Uint8Array.from(e),(i===`pkcs#5`||i===`pkcs#7`)&&n!==R){let t=Fr-e.length%Fr,n=new Uint8Array(e.length+t);n.set(e,0);for(let r=0;r<t;r++)n[e.length+r]=t;e=n}let d=new Uint32Array(Pr);Br(t,d,n);let f=new Uint8Array(e.length),p=o,m=e.length,h=0;for(;m>=Fr;){let t=e.subarray(h,h+16);if(a===`cbc`)for(let e=0;e<Fr;e++)n!==R&&(t[e]^=p[e]);zr(t,Ur,d);for(let e=0;e<Fr;e++)a===`cbc`&&n===R&&(Ur[e]^=p[e]),f[h+e]=Ur[e];a===`cbc`&&(p=n===R?t:Ur),m-=Fr,h+=Fr}if((i===`pkcs#5`||i===`pkcs#7`)&&n===R){let e=f.length,t=f[e-1];for(let n=1;n<=t;n++)if(f[e-n]!==t)throw Error(`padding is invalid`);f=f.slice(0,e-t)}return s===`array`?f:n===R?dr(f):Fn(f)}function Gr(e,t,n={}){return Wr(e,t,1,n)}function Kr(e,t,n={}){return Wr(e,t,0,n)}function qr(){return un}function Jr(e,t){return hr(e,t)}function Yr(e,t,n){return Nr.encrypt(e,t,n)}function Xr(e,t,n){return Nr.encrypt(e,t,n)}function Zr(e,t){return e&&/^\d+$/.test(e)&&String(e).length<=10&&(e=parseInt(`${e}000`)),t?(0,f.default)(e,t):(0,f.default)(e)}function Qr(e,t){return e?(f.default.isDayjs(e)||(e=Zr(e)),e.format(t||`YYYY-MM-DD HH:mm`)):``}function $r(e){return e?(f.default.isDayjs(e)||(e=Zr(e)),e.unix()):``}var ei={STATE_CODE_SUCCESS:`SUCCESS`,STATE_CODE_FAIL:`FAIL`,STATE_CODE_NOT_FOUND:`NOT_FOUND`,STATE_CODE_INFO_NOT_COMPLETE:`INCOMPLETE`,STATE_CODE_NOT_ALLOWED:`NOT_ALLOWED`};function ti(e){Object.keys(e).forEach(t=>{ei[t]=e[t]})}function ni(e){return e||={},e.loading=!0,{get(t,n){return new Promise((r,i)=>{m.default.get(t,n).then(e=>{r(e)}).catch(e=>{i(e)}).finally(()=>{e.loading=!1})})},post(t,n,r){return new Promise((i,a)=>{m.default.post(t,n,r).then(e=>{i(e)}).catch(e=>{a(e)}).finally(()=>{e.loading=!1})})}}}async function ri(e,t,n){if(e.finishedText=e.finishedText||`加载完毕`,e.loading=!0,!e.uri)return console.error(`URI is required in pagination`),e;let r={};try{r=await m.default.get(e.uri,{params:{...e.params,page:t||!e.page?1:e.page+1}})}catch(t){return console.error(t),e.loading=!1,e.finished=!1,e.error=!0,e}if(r.status!==ei.STATE_CODE_SUCCESS)return e.loading=!1,e.error=!0,e.errorText=r.result,e;let i;i=n?n(r):r.result;let a=i.data;!t&&e.items&&(a=e.items.concat(a));let o=i.current_page||i.current||i.page||1,s=i.last_page||i.lastPage||i.pages||0,c=i.total_size||i.totalSize||i.total||0;return e.loading=!1,e.error=!1,e.page=o,e.items=a,e.finished=s===0||s===o,e.empty=c===0,e}var{STATE_CODE_FAIL:ii,STATE_CODE_INFO_NOT_COMPLETE:ai,STATE_CODE_NOT_FOUND:oi,STATE_CODE_NOT_ALLOWED:si,STATE_CODE_SUCCESS:ci}=ei;function li(e){let{url:t,csrfToken:n}=e,{method:r,data:i}=e;r||=`post`,i||={};let a=document.createElement(`form`);if(a.action=t,a.method=r,a.target=`_blank`,a.style.display=`none`,Object.keys(i).forEach(e=>{let t=document.createElement(`input`);t.type=`hidden`,t.name=e,t.value=i[e],a.appendChild(t)}),!n){let e=document.createElement(`input`);e.type=`hidden`,e.name=`_token`,e.value=document.querySelector(`meta[name="csrf-token"]`)?.getAttribute(`content`),a.appendChild(e)}return document.body.appendChild(a),a}function ui(e,t){let{status:n}=e,r=e.result,i={};i.default=`请求失败, 请检查数据并重试`,i[ii]=`系统错误,请稍候再试`,i[oi]=`请求的内容不存在`,i[ai]=`信息不完整`,i[si]=`没有权限`;let a={[ci]:`success`},o=t[n]||t[a[n]]||i[n]||i.def;(0,p.isString)(o)?n===ci?d.message.success(o):d.message.error(r||o):(0,p.isFunction)(o)&&o()}function di(e,t){ui(e,{success:t})}function fi(e){e&&e.errorFields?e.errorFields.forEach(e=>{d.message.error(e.errors.join(` `))}):e&&e.response||d.message.error(`请检查填写项`)}var pi={commonLabelCol:{span:8,xxl:6},commonWrapperCol:{span:12,xxl:14},commonWrapperOffset:{xs:{offset:8,span:12},xxl:{offset:6,span:14}},commonLabelFullCol:{span:8,xxl:6},commonWrapperFullCol:{span:16,xxl:18},commonWrapperFullOffset:{xs:{offset:8,span:16},xxl:{offset:6,span:18}},commonLabelPartCol:{span:4,xxl:3},commonWrapperPartCol:{span:20,xxl:21},commonWrapperPartOffset:{xs:{offset:4,span:20},xxl:{offset:3,span:21}}};function mi(e,t){let n=(0,p.cloneDeep)(e);t||={};let r=e=>{for(let n in e){let i;if(f.default.isDayjs(e[n])?i=e[n]:Object.prototype.toString.call(e[n])===`[object Date]`&&(i=(0,f.default)(e[n])),i&&t.date){(0,p.isString)(t.date)?e[n]=i.format(t.date):(0,p.isFunction)(t.date)?e[n]=t.date(i):e[n]=e[n].unix();continue}if((0,p.isBoolean)(e[n])&&t.boolean){t.boolean===!0?e[n]=+!!e[n]:Array.isArray(t.boolean)&&(e[n]=e[n]?t.boolean?.[0]||1:t.boolean?.[1]||0);continue}if(t.attachment){let r=t.attachment;if((0,p.isObject)(e[n])&&e[n]._type===`file`&&(0,p.isString)(r)&&!(0,p.isUndefined)(e[n][r])){e[n]=e[n][r];continue}else if((0,p.isObject)(e[n])&&e[n]._type===`file`&&(0,p.isFunction)(r)){e[n]=r(e[n]);continue}}(0,p.isArray)(e[n])&&(e[n]=r(e[n]))}return e};return r(n)}function hi(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var gi={};function _i(e){gi[e]||(gi[e]=!0,hi(e))}var vi=typeof window<`u`,yi,bi;if(process.env.NODE_ENV!==`production`){let e=vi&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(yi=t=>{e.mark(t)},bi=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}var xi=/\{([0-9a-zA-Z]+)\}/g;function Si(e,...t){return t.length===1&&K(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(xi,(e,n)=>t.hasOwnProperty(n)?t[n]:``)}var Ci=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wi=(e,t,n)=>Ti({l:e,k:t,s:n}),Ti=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),z=e=>typeof e==`number`&&isFinite(e),Ei=e=>Wi(e)===`[object Date]`,Di=e=>Wi(e)===`[object RegExp]`,Oi=e=>q(e)&&Object.keys(e).length===0,B=Object.assign,ki=Object.create,V=(e=null)=>ki(e),Ai,ji=()=>Ai||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:V();function Mi(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Ni(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Pi=/^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i,Fi=/^(?:href|src|action|formaction)$/i;function Ii(e){return Pi.test(e)}function Li(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=Ii(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function Ri(e,t){return Fi.test(e)&&Ii(t)?`about:blank`:Ni(e.toLowerCase()===`style`?Li(t):t)}function zi(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Ri(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Ri(t,n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!==`production`&&hi(`Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.`),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(e,t,n)=>Ii(n)?`${t}about:blank`:e),e}var Bi=Object.prototype.hasOwnProperty;function Vi(e,t){return Bi.call(e,t)}var H=Array.isArray,U=e=>typeof e==`function`,W=e=>typeof e==`string`,G=e=>typeof e==`boolean`,K=e=>typeof e==`object`&&!!e,Hi=e=>K(e)&&U(e.then)&&U(e.catch),Ui=Object.prototype.toString,Wi=e=>Ui.call(e),q=e=>Wi(e)===`[object Object]`,Gi=e=>e==null?``:H(e)||q(e)&&e.toString===Ui?JSON.stringify(e,null,2):String(e);function Ki(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var qi=2;function Ji(e,t=0,n=e.length){let r=e.split(/\r?\n/),i=0,a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let o=e-qi;o<=e+qi||n>i;o++){if(o<0||o>=r.length)continue;let s=o+1;a.push(`${s}${` `.repeat(3-String(s).length)}| ${r[o]}`);let c=r[o].length;if(o===e){let e=t-(i-c)+1,r=Math.max(1,n>i?c-e:n-t);a.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(o>e){if(n>i){let e=Math.max(Math.min(n-i,c),1);a.push(` | `+`^`.repeat(e))}i+=c+1}}break}return a.join(`
`)}function Yi(){let e=new Map;return{events:e,on(t,n){let r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){let r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get(`*`)||[]).slice().map(e=>e(t,n))}}}var Xi=e=>!K(e)||H(e);function Zi(e,t){if(Xi(e)||Xi(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(K(e[r])&&!K(t[r])&&(t[r]=Array.isArray(e[r])?[]:V()),Xi(t[r])||Xi(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function Qi(e,t,n){return{line:e,column:t,offset:n}}function $i(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var J={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},ea={[J.EXPECTED_TOKEN]:`Expected token: '{0}'`,[J.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[J.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[J.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[J.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[J.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[J.EMPTY_PLACEHOLDER]:`Empty placeholder`,[J.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[J.INVALID_LINKED_FORMAT]:`Invalid linked format`,[J.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[J.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[J.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[J.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[J.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[J.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function ta(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=process.env.NODE_ENV===`production`?e:Si((i||ea)[e]||``,...a||[]),s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function na(e){throw e}var ra=/<\/?[\w\s="/.':;#-\/]+>/,ia=e=>ra.test(e),aa=` `,oa=`\r`,Y=`
`,sa=`\u2028`,ca=`\u2029`;function la(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===oa&&t[e+1]===Y,s=e=>t[e]===Y,c=e=>t[e]===ca,l=e=>t[e]===sa,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Y:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var ua=void 0,da=`'`,fa=`tokenizer`;function pa(e,t={}){let n=t.location!==!1,r=la(e),i=()=>r.index(),a=()=>Qi(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=ta(e,n?$i(a.startLoc,t):null,{domain:fa,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=$i(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(J.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===aa||e.currentPeek()===Y;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===ua)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===ua)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===da;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===aa||!t?!1:t===Y?(e.peek(),r()):ee(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function ee(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===aa||r===Y):i===aa?(e.peek(),n(!0,aa)):i===Y?(e.peek(),n(!0,Y)):!0},r=n();return t&&e.resetPeek(),r}function D(e,t){let n=e.currentChar();if(n!==ua)return t(n)?(e.next(),n):null}function te(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ne(e){return D(e,te)}function re(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ie(e){return D(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function oe(e){return D(e,ae)}function se(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return D(e,se)}function ce(e){let t=``,n=``;for(;t=oe(e);)n+=t;return n}function le(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===aa||n===Y)if(ee(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function ue(e){g(e);let t=``,n=``;for(;t=ie(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==ua&&r!==aa&&r!==Y&&r!==` `){let t=ge(e);return d(J.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===ua&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n}function de(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${ce(e)}`):t+=ce(e),e.currentChar()===ua&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),t}function fe(e){return e!==da&&e!==Y}function pe(e){g(e),m(e,`'`);let t=``,n=``;for(;t=D(e,fe);)t===`\\`?n+=k(e):n+=t;let r=e.currentChar();return r===Y||r===ua?(d(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Y&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function k(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return me(e,t,4);case`U`:return me(e,t,6);default:return d(J.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function me(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=O(e);if(!n){d(J.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function he(e){return e!==`{`&&e!==`}`&&e!==aa&&e!==Y}function ge(e){g(e);let t=``,n=``;for(;t=D(e,he);)n+=t;return n}function _e(e){let t=``,n=``;for(;t=ne(e);)n+=t;return n}function ve(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===aa?n:(n+=r,e.next(),t(n))};return t(``)}function ye(e){g(e);let t=m(e,`|`);return g(e),t}function be(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(J.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(J.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n=xe(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(J.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,Se(e,t);if(r=y(e,t))return n=f(t,4,ue(e)),g(e),n;if(i=b(e,t))return n=f(t,5,de(e)),g(e),n;if(o=x(e,t))return n=f(t,6,pe(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,ge(e)),d(J.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function xe(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===Y||i===aa)&&d(J.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),xe(e,t)):C(e,t)?(g(e),f(t,11,_e(e))):T(e,t)?(g(e),i===`{`?be(e,t)||r:f(t,10,ve(e))):(n===7&&d(J.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,Se(e,t))}}function Se(e,t){let n={type:13};if(t.braceNest>0)return be(e,t)||p(t);if(t.inLinked)return xe(e,t)||p(t);switch(e.currentChar()){case`{`:return be(e,t)||p(t);case`}`:return d(J.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return xe(e,t)||p(t);default:if(E(e))return n=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,n;if(ee(e))return f(t,0,le(e));break}return n}function Ce(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===ua?f(c,13):Se(r,c)}return{nextToken:Ce,currentOffset:i,currentPosition:a,context:l}}var ma=`parser`,ha=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,ga=/\\([\\@{}|])/g;function _a(e,t){return t}function va(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function ya(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=ta(r,t?$i(i,s):null,{domain:ma,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(ga,_a),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(ha,va),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,ba(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,J.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(o)),n.key=l(e,o.value||``);break;default:{r(e,J.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ba(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,J.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=pa(n,B({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,J.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function ba(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function xa(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Sa(e,t){for(let n=0;n<e.length;n++)Ca(e[n],t)}function Ca(e,t){switch(e.type){case 1:Sa(e.cases,t),t.helper(`plural`);break;case 2:Sa(e.items,t);break;case 6:Ca(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 wa(e,t={}){let n=xa(e);n.helper(`normalize`),e.body&&Ca(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Ta(e){let t=e.body;return t.type===2?Ea(t):t.cases.forEach(e=>Ea(e)),e}function Ea(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let 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=Ki(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}var Da=`minifier`;function Oa(e){switch(e.t=e.type,e.type){case 0:{let t=e;Oa(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)Oa(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)Oa(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;Oa(t.key),t.k=t.key,delete t.key,t.modifier&&(Oa(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!==`production`)throw ta(J.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Da,args:[e.type]})}delete e.type}var ka=`parser`;function Aa(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function ja(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),Fa(e,t.key),t.modifier?(e.push(`, `),Fa(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Ma(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(Fa(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function Na(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(Fa(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Pa(e,t){t.body?Fa(e,t.body):e.push(`null`)}function Fa(e,t){let{helper:n}=e;switch(t.type){case 0:Pa(e,t);break;case 1:Na(e,t);break;case 2:Ma(e,t);break;case 6:ja(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:if(process.env.NODE_ENV!==`production`)throw ta(J.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ka,args:[t.type]})}}var Ia=(e,t={})=>{let n=W(t.mode)?t.mode:`normal`,r=W(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Aa(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Ki(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),Fa(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function La(e,t={}){let n=B({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=ya(n).parse(e);return r?(a&&Ta(o),i&&Oa(o),{ast:o,code:``}):(wa(o,n),Ia(o,n))}function Ra(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(ji().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(ji().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function za(e){return K(e)&&Ya(e)===0&&(Vi(e,`b`)||Vi(e,`body`))}var Ba=[`b`,`body`];function Va(e){return no(e,Ba)}var Ha=[`c`,`cases`];function Ua(e){return no(e,Ha,[])}var Wa=[`s`,`static`];function Ga(e){return no(e,Wa)}var Ka=[`i`,`items`];function qa(e){return no(e,Ka,[])}var Ja=[`t`,`type`];function Ya(e){return no(e,Ja)}var Xa=[`v`,`value`];function Za(e,t){let n=no(e,Xa);if(n!=null)return n;throw io(t)}var Qa=[`m`,`modifier`];function $a(e){return no(e,Qa)}var eo=[`k`,`key`];function to(e){let t=no(e,eo);if(t)return t;throw io(6)}function no(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Vi(e,r)&&e[r]!=null)return e[r]}return n}var ro=[...Ba,...Ha,...Wa,...Ka,...eo,...Qa,...Xa,...Ja];function io(e){return Error(`unhandled node type: ${e}`)}function ao(e){return t=>oo(t,e)}function oo(e,t){let n=Va(t);if(n==null)throw io(0);if(Ya(n)===1){let t=Ua(n);return e.plural(t.reduce((t,n)=>[...t,so(e,n)],[]))}else return so(e,n)}function so(e,t){let n=Ga(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=qa(t).reduce((t,n)=>[...t,co(e,n)],[]);return e.normalize(n)}}function co(e,t){let n=Ya(t);switch(n){case 3:return Za(t,n);case 9:return Za(t,n);case 4:{let r=t;if(Vi(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Vi(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw io(n)}case 5:{let r=t;if(Vi(r,`i`)&&z(r.i))return e.interpolate(e.list(r.i));if(Vi(r,`index`)&&z(r.index))return e.interpolate(e.list(r.index));throw io(n)}case 6:{let n=t,r=$a(n),i=to(n);return e.linked(co(e,i),r?co(e,r):void 0,e.type)}case 7:return Za(t,n);case 8:return Za(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var lo=`Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;function uo(e,t){t&&ia(e)&&hi(Si(lo,{source:e}))}var fo=e=>e,po=V();function mo(e,t={}){let n=!1,r=t.onError||na;return t.onError=e=>{n=!0,r(e)},{...La(e,t),detectError:n}}function ho(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){let n=G(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!==`production`&&uo(e,n);let r=(t.onCacheKey||fo)(e),i=po[r];if(i)return i;let{ast:a,detectError:o}=mo(e,{...t,location:process.env.NODE_ENV!==`production`,jit:!0}),s=ao(a);return o?s:po[r]=s}else{if(process.env.NODE_ENV!==`production`&&!za(e))return hi(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);let n=e.cacheKey;return n?po[n]||(po[n]=ao(e)):ao(e)}}var go=null;function _o(e){go=e}function vo(e,t,n){go&&go.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var yo=bo(`function:translate`);function bo(e){return t=>go&&go.emit(e,t)}var X={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function xo(e){return ta(e,null,process.env.NODE_ENV===`production`?void 0:{messages:So})}var So={[X.INVALID_ARGUMENT]:`Invalid arguments`,[X.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[X.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[X.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[X.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[X.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[X.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function Co(e,t){return t.locale==null?To(e.locale):To(t.locale)}var wo;function To(e){if(W(e))return e;if(U(e)){if(e.resolvedOnce&&wo!=null)return wo;if(e.constructor.name===`Function`){let t=e();if(Hi(t))throw xo(X.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return wo=t}else throw xo(X.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xo(X.NOT_SUPPORT_LOCALE_TYPE)}function Eo(e,t,n){return[...new Set([n,...H(t)?t:K(t)?Object.keys(t):W(t)?[t]:[n]])]}function Do(e,t,n){let r=W(n)?n:Wo,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;H(e);)e=Oo(a,e,t);let o=H(t)||!q(t)?t:t.default?t.default:null;e=W(o)?[o]:o,H(e)&&Oo(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Oo(e,t,n){let r=!0;for(let i=0;i<t.length&&G(r);i++){let a=t[i];W(a)&&(r=ko(e,t[i],n))}return r}function ko(e,t,n){let r,i=t.split(`-`);do r=Ao(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Ao(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(H(n)||q(n))&&n[i]&&(r=n[i])}return r}var jo=[];jo[0]={w:[0],i:[3,0],"[":[4],o:[7]},jo[1]={w:[1],".":[2],"[":[4],o:[7]},jo[2]={w:[2],i:[3,0],0:[3,0]},jo[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},jo[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},jo[5]={"'":[4,0],o:8,l:[5,0]},jo[6]={'"':[4,0],o:8,l:[6,0]};var Mo=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function No(e){return Mo.test(e)}function Po(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Fo(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 Io(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:No(t)?Po(t):`*`+t}function Lo(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Io(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Fo(a),d=jo[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Ro=new Map;function zo(e,t){return K(e)?e[t]:null}function Bo(e,t){if(!K(e))return null;let n=Ro.get(t);if(n||(n=Lo(t),n&&Ro.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(ro.includes(e)&&za(i)||!K(i)||!Vi(i,e))return null;let t=i[e];if(t===void 0||U(i))return null;i=t,a++}return i}var Z={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},Vo={[Z.NOT_FOUND_KEY]:`Not found '{key}' key in '{locale}' locale messages.`,[Z.FALLBACK_TO_TRANSLATE]:`Fall back to translate '{key}' key with '{target}' locale.`,[Z.CANNOT_FORMAT_NUMBER]:`Cannot format a number value due to not supported Intl.NumberFormat.`,[Z.FALLBACK_TO_NUMBER_FORMAT]:`Fall back to number format '{key}' key with '{target}' locale.`,[Z.CANNOT_FORMAT_DATE]:`Cannot format a date value due to not supported Intl.DateTimeFormat.`,[Z.FALLBACK_TO_DATE_FORMAT]:`Fall back to datetime format '{key}' key with '{target}' locale.`,[Z.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.`,[Z.INVALID_NUMBER_ARGUMENT]:`Invalid argument for number formatting: expected a number but received '{value}'.`,[Z.INVALID_DATE_ARGUMENT]:`Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'.`};function Ho(e,...t){return Si(Vo[e],...t)}var Uo=`11.4.6`,Wo=`en-US`,Go=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ko(){return{upper:(e,t)=>t===`text`&&W(e)?e.toUpperCase():t===`vnode`&&K(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&W(e)?e.toLowerCase():t===`vnode`&&K(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&W(e)?Go(e):t===`vnode`&&K(e)&&`__v_isVNode`in e?Go(e.children):e}}var qo;function Jo(e){qo=e}var Yo;function Xo(e){Yo=e}var Zo;function Qo(e){Zo=e}var $o=null,es=()=>$o,ts=null,ns=e=>{ts=e},rs=()=>ts,is=0;function as(e={}){let t=U(e.onWarn)?e.onWarn:hi,n=W(e.version)?e.version:Uo,r=W(e.locale)||U(e.locale)?e.locale:Wo,i=U(r)?Wo:r,a=H(e.fallbackLocale)||q(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=q(e.messages)?e.messages:os(i),s=q(e.datetimeFormats)?e.datetimeFormats:os(i),c=q(e.numberFormats)?e.numberFormats:os(i),l=B(V(),e.modifiers,Ko()),u=e.pluralRules||V(),d=U(e.missing)?e.missing:null,f=G(e.missingWarn)||Di(e.missingWarn)?e.missingWarn:!0,p=G(e.fallbackWarn)||Di(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=U(e.postTranslation)?e.postTranslation:null,_=q(e.processor)?e.processor:null,v=G(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=U(e.messageCompiler)?e.messageCompiler:qo;process.env.NODE_ENV!==`production`&&U(e.messageCompiler)&&_i(Ho(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));let x=U(e.messageResolver)?e.messageResolver:Yo||zo,S=U(e.localeFallbacker)?e.localeFallbacker:Zo||Eo,C=K(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=K(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=K(w.__numberFormatters)?w.__numberFormatters:new Map,ee=K(w.__meta)?w.__meta:{};is++;let D={version:n,cid:is,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:ee};return D.datetimeFormats=s,D.numberFormats=c,D.__datetimeFormatters=T,D.__numberFormatters=E,process.env.NODE_ENV!==`production`&&(D.__v_emitter=w.__v_emitter==null?void 0:w.__v_emitter),(process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__)&&vo(D,n,ee),D}var os=e=>({[e]:V()});function ss(e,t){return e instanceof RegExp?e.test(t):e}function cs(e,t){return e instanceof RegExp?e.test(t):e}function ls(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!==`production`){let r=e.__v_emitter;r&&r.emit(`missing`,{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){let r=a(e,n,t,i);return W(r)?r:t}else return process.env.NODE_ENV!==`production`&&cs(r,t)&&o(Ho(Z.NOT_FOUND_KEY,{key:t,locale:n})),t}function us(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ds(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function fs(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ds(e,t[r]))return!0;return!1}var ps=typeof Intl<`u`,ms={dateTimeFormat:ps&&Intl.DateTimeFormat!==void 0,numberFormat:ps&&Intl.NumberFormat!==void 0};function hs(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!ms.dateTimeFormat)return a(Ho(Z.CANNOT_FORMAT_DATE)),``;if(!W(t[0])&&!Ei(t[0])&&!z(t[0]))return process.env.NODE_ENV!==`production`&&a(Ho(Z.INVALID_DATE_ARGUMENT,{value:String(t[0])})),``;let[c,l,u,d]=_s(...t),f=G(u.missingWarn)?u.missingWarn:e.missingWarn,p=G(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Co(e,u),g=o(e,i,h);if(!W(c)||c===``){let e=new Intl.DateTimeFormat(h.replace(/!/g,``),d);return m?e.formatToParts(l):e.format(l)}let _={},v,y=null,b=h,x=null,S=`datetime format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&ss(p,c)&&a(Ho(Z.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],q(y))break;ls(e,c,v,f,S),b=x}if(!q(y)||!W(v))return r?-1:c;let C=`${v}__${c}`;Oi(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.DateTimeFormat(v,B({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var gs=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function _s(...e){let[t,n,r,i]=e,a=V(),o=V(),s;if(W(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw xo(X.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw xo(X.INVALID_ISO_DATE_ARGUMENT)}}else if(Ei(t)){if(isNaN(t.getTime()))throw xo(X.INVALID_DATE_ARGUMENT);s=t}else if(z(t))s=t;else throw xo(X.INVALID_ARGUMENT);return W(n)?a.key=n:q(n)&&Object.keys(n).forEach(e=>{gs.includes(e)?o[e]=n[e]:a[e]=n[e]}),W(r)?a.locale=r:q(r)&&(o=r),q(i)&&(o=i),[a.key||``,s,a,o]}function vs(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function ys(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!ms.numberFormat)return a(Ho(Z.CANNOT_FORMAT_NUMBER)),``;if(!z(t[0]))return process.env.NODE_ENV!==`production`&&a(Ho(Z.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),``;let[c,l,u,d]=xs(...t),f=G(u.missingWarn)?u.missingWarn:e.missingWarn,p=G(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Co(e,u),g=o(e,i,h);if(!W(c)||c===``){let e=new Intl.NumberFormat(h.replace(/!/g,``),d);return m?e.formatToParts(l):e.format(l)}let _={},v,y=null,b=h,x=null,S=`number format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&ss(p,c)&&a(Ho(Z.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],q(y))break;ls(e,c,v,f,S),b=x}if(!q(y)||!W(v))return r?-1:c;let C=`${v}__${c}`;Oi(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.NumberFormat(v,B({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var bs=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function xs(...e){let[t,n,r,i]=e,a=V(),o=V();if(!z(t))throw xo(X.INVALID_ARGUMENT);let s=t;return W(n)?a.key=n:q(n)&&Object.keys(n).forEach(e=>{bs.includes(e)?o[e]=n[e]:a[e]=n[e]}),W(r)?a.locale=r:q(r)&&(o=r),q(i)&&(o=i),[a.key||``,s,a,o]}function Ss(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var Cs=e=>e,ws=e=>``,Ts=`text`,Es=e=>e.length===0?``:Ki(e),Ds=Gi;function Os(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function ks(e){let t=z(e.pluralIndex)?e.pluralIndex:-1;return z(e.named?.count)?e.named.count:z(e.named?.n)?e.named.n:t}function As(e={}){let t=e.locale,n=ks(e),r=W(t)&&U(e.pluralRules?.[t])?e.pluralRules[t]:Os,i=r===Os?void 0:Os,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||V();z(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(U(e.messages)?e.messages(t,!!n):K(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):ws)}let d=t=>e.modifiers?e.modifiers[t]:Cs,f=U(e.processor?.normalize)?e.processor.normalize:Es,p=U(e.processor?.interpolate)?e.processor.interpolate:Ds,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?K(n)?(a=n.modifier||a,i=n.type||i):W(n)&&(a=n||a):t.length===2&&(W(n)&&(a=n||a),W(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&H(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:W(e.processor?.type)?e.processor.type:Ts,interpolate:p,normalize:f,values:B(V(),o,c)};return m}var js=()=>``,Ms=e=>U(e);function Ns(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Rs(...t),u=G(l.missingWarn)?l.missingWarn:e.missingWarn,d=G(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=G(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=W(l.default)||G(l.default)?G(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(W(m)||U(m)),g=Co(e,l);f&&Ps(l);let[_,v,y]=p?[c,g,s[g]||V()]:Fs(e,c,g,o,d,u),b=_,x=c;if(!p&&!(W(b)||za(b)||Ms(b))&&h&&(b=m,x=b),!p&&(!(W(b)||za(b)||Ms(b))||!W(v)))return i?-1:c;if(process.env.NODE_ENV!==`production`&&W(b)&&e.messageCompiler==null)return hi(`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 '${c}'.`),c;let S=!1,C=Ms(b)?b:Is(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=Ls(e,C,As(Vs(e,v,y,l))),T=r?r(w,c):w;if(f&&W(T)&&(T=zi(T)),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:W(c)?c:Ms(b)?b.key:``,locale:v||(Ms(b)?b.locale:``),format:W(b)?b:Ms(b)?b.source:``,message:T};t.meta=B({},e.__meta,es()||{}),yo(t)}return T}function Ps(e){H(e.list)?e.list=e.list.map(e=>W(e)?Mi(e):e):K(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Mi(e.named[t]))})}function Fs(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=V(),f,p=null,m=n,h=null,g=`translate`;for(let r=0;r<u.length;r++){f=h=u[r],process.env.NODE_ENV!==`production`&&n!==f&&!ds(n,f)&&ss(i,t)&&s(Ho(Z.FALLBACK_TO_TRANSLATE,{key:t,target:f}));let l=process.env.NODE_ENV===`production`?void 0:e.__v_emitter;process.env.NODE_ENV!==`production`&&n!==f&&l&&l.emit(`fallback`,{type:g,key:t,from:m,to:h,groupId:`${g}:${t}`}),d=o[f]||V();let _=null,v,y;if(process.env.NODE_ENV!==`production`&&vi&&l&&(_=window.performance.now(),v=`intlify-message-resolve-start`,y=`intlify-message-resolve-end`,yi&&yi(v)),(p=c(d,t))===null&&(p=d[t]),process.env.NODE_ENV!==`production`&&vi&&l){let e=window.performance.now();l&&_&&p&&l.emit(`message-resolve`,{type:`message-resolve`,key:t,message:p,time:e-_,groupId:`${g}:${t}`}),v&&y&&yi&&bi&&(yi(y),bi(`intlify message resolve`,v,y))}if(W(p)||za(p)||Ms(p))break;if(!fs(f,u)){let n=ls(e,t,f,a,g);n!==t&&(p=n)}m=h}return[p,f,d]}function Is(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Ms(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=process.env.NODE_ENV===`production`?void 0:e.__v_emitter,l=null,u,d;process.env.NODE_ENV!==`production`&&vi&&c&&(l=window.performance.now(),u=`intlify-message-compilation-start`,d=`intlify-message-compilation-end`,yi&&yi(u));let f=o(r,zs(e,n,i,r,s,a));if(process.env.NODE_ENV!==`production`&&vi&&c){let e=window.performance.now();c&&l&&c.emit(`message-compilation`,{type:`message-compilation`,message:r,time:e-l,groupId:`translate:${t}`}),u&&d&&yi&&bi&&(yi(d),bi(`intlify message compilation`,u,d))}return f.locale=n,f.key=t,f.source=r,f}function Ls(e,t,n){let r=process.env.NODE_ENV===`production`?void 0:e.__v_emitter,i=null,a,o;process.env.NODE_ENV!==`production`&&vi&&r&&(i=window.performance.now(),a=`intlify-message-evaluation-start`,o=`intlify-message-evaluation-end`,yi&&yi(a));let s=t(n);if(process.env.NODE_ENV!==`production`&&vi&&r){let e=window.performance.now();r&&i&&r.emit(`message-evaluation`,{type:`message-evaluation`,value:s,time:e-i,groupId:`translate:${t.key}`}),a&&o&&yi&&bi&&(yi(o),bi(`intlify message evaluation`,a,o))}return s}function Rs(...e){let[t,n,r]=e,i=V();if(!W(t)&&!z(t)&&!Ms(t)&&!za(t))throw xo(X.INVALID_ARGUMENT);let a=z(t)?String(t):(Ms(t),t);return z(n)?i.plural=n:W(n)?i.default=n:q(n)&&!Oi(n)?i.named=n:H(n)&&(i.list=n),z(r)?i.plural=r:W(r)?i.default=r:q(r)&&B(i,r),[a,i]}function zs(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{if(a&&a(t),process.env.NODE_ENV!==`production`){let i=Bs(r),a=t.location&&i&&Ji(i,t.location.start.offset,t.location.end.offset),o=e.__v_emitter;o&&i&&o.emit(`compile-error`,{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`});let s=`Message compilation error: ${t.message}`;throw SyntaxError(a?`${s}\n${a}`:s)}throw t},onCacheKey:e=>wi(t,n,e)}}function Bs(e){if(W(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Vs(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=Fs(u||e,r,t,s,c,l);a=n??o(i,r)}if(W(a)||za(a)){let n=!1,i=Is(e,r,t,a,r,()=>{n=!0});return n?js:i}else if(Ms(a))return a;else return js}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),z(r.plural)&&(d.pluralIndex=r.plural),d}Ra();function Hs(){return Us().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Us(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}var Ws=typeof Proxy==`function`,Gs=`devtools-plugin:setup`,Ks=`plugin:settings:set`,qs,Js;function Ys(){return qs===void 0&&(typeof window<`u`&&window.performance?(qs=!0,Js=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(qs=!0,Js=globalThis.perf_hooks.performance):qs=!1),qs}function Xs(){return Ys()?Js.now():Date.now()}var Zs=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings)n[t]=e.settings[t].defaultValue;let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return Xs()}},t&&t.on(Ks,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function Qs(e,t){let n=e,r=Us(),i=Hs(),a=Ws&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(Gs,e,t);else{let e=a?new Zs(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var $s=`11.4.6`;function ec(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(ji().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(ji().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(ji().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(ji().__INTLIFY_PROD_DEVTOOLS__=!1)}var Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function $(e,...t){return ta(e,null,process.env.NODE_ENV===`production`?void 0:{messages:tc,args:t})}var tc={[Q.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[Q.INVALID_ARGUMENT]:`Invalid argument`,[Q.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Q.NOT_INSTALLED]:"Need to install with `app.use` function",[Q.UNEXPECTED_ERROR]:`Unexpected error`,[Q.REQUIRED_VALUE]:`Required in value: {0}`,[Q.INVALID_VALUE]:`Invalid value`,[Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[Q.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Q.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`},nc=Ci(`__translateVNode`),rc=Ci(`__datetimeParts`),ic=Ci(`__numberParts`),ac=Ci(`__enableEmitter`),oc=Ci(`__disableEmitter`),sc=Ci(`__setPluralRules`);Ci(`__intlifyMeta`);var cc=Ci(`__injectWithOption`),lc=Ci(`__dispose`),uc={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15},dc={[uc.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[uc.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[uc.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[uc.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[uc.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`,[uc.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function fc(e,...t){return Si(dc[e],...t)}function pc(e){if(!K(e)||za(e))return e;for(let t in e)if(Vi(e,t))if(!t.includes(`.`))K(e[t])&&pc(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=V()),!K(i[n[e]])){process.env.NODE_ENV!==`production`&&hi(fc(uc.IGNORE_OBJ_FLATTEN,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||(za(i)?ro.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!za(i)){let e=i[n[r]];K(e)&&pc(e)}}return e}function mc(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=q(n)?n:H(r)?V():{[e]:V()};if(H(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||V(),Zi(n,o[t])):Zi(n,o)}else W(e)&&Zi(JSON.parse(e),o)}),i==null&&a)for(let e in o)Vi(o,e)&&pc(o[e]);return o}function hc(e){return e.type}function gc(e,t,n){let r=K(t.messages)?t.messages:V();`__i18nGlobal`in n&&(r=mc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),K(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(K(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function _c(e){return(0,u.createVNode)(u.Text,null,e,0)}function vc(){let e=`currentInstance`;return e in u?u[e]:u.getCurrentInstance()}var yc=()=>[],bc=()=>!1,xc=0;function Sc(e){return((t,n,r,i)=>e(n,r,vc()||void 0,i))}function Cc(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=vi?u.ref:u.shallowRef,o=G(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:W(e.locale)?e.locale:Wo),c=a(t&&o?t.fallbackLocale.value:W(e.fallbackLocale)||H(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(mc(s.value,e)),d=a(q(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(q(e.numberFormats)?e.numberFormats:{[s.value]:{}}),p=t?t.missingWarn:G(e.missingWarn)||Di(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:G(e.fallbackWarn)||Di(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:G(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,_=U(e.missing)?e.missing:null,v=U(e.missing)?Sc(e.missing):null,y=U(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:G(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,S=t?t.modifiers:q(e.modifiers)?e.modifiers:{},C=e.pluralRules||t&&t.pluralRules,w;w=(()=>{r&&ns(null);let t={version:$s,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:S,pluralRules:C,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=d.value,t.numberFormats=f.value,t.__datetimeFormatters=q(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=q(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!==`production`&&(t.__v_emitter=q(w)?w.__v_emitter:void 0);let n=as(t);return r&&ns(n),n})(),us(w,s.value,c.value);function T(){return[s.value,c.value,l.value,d.value,f.value]}let E=(0,u.computed)({get:()=>s.value,set:e=>{w.locale=e,s.value=e}}),ee=(0,u.computed)({get:()=>c.value,set:e=>{w.fallbackLocale=e,c.value=e,us(w,s.value,e)}}),D=(0,u.computed)(()=>l.value),te=(0,u.computed)(()=>d.value),ne=(0,u.computed)(()=>f.value);function re(){return U(y)?y:null}function ie(e){y=e,w.postTranslation=e}function ae(){return _}function oe(e){e!==null&&(v=Sc(e)),_=e,w.missing=v}function se(e,t){return e!==`translate`||!t.resolvedMessage}let O=(e,n,i,a,o,s)=>{T();let c;try{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,r||(w.fallbackContext=t?rs():void 0),c=e(w)}finally{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,r||(w.fallbackContext=void 0)}if(i!==`translate exists`&&z(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();if(process.env.NODE_ENV!==`production`&&t&&W(e)&&se(i,r)&&(h&&(ss(m,e)||cs(p,e))&&hi(fc(uc.FALLBACK_TO_ROOT,{key:e,type:i})),process.env.NODE_ENV!==`production`)){let{__v_emitter:t}=w;t&&h&&t.emit(`fallback`,{type:i,key:e,to:`global`,groupId:`${i}:${e}`})}return t&&h?a(t):o(e)}else if(s(c))return c;else throw $(Q.UNEXPECTED_RETURN_TYPE)};function ce(...e){return O(t=>Reflect.apply(Ns,null,[t,...e]),()=>Rs(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>W(e))}function le(...e){let[t,n,r]=e;if(r&&!K(r))throw $(Q.INVALID_ARGUMENT);return ce(t,n,B({resolvedMessage:!0},r||{}))}function ue(...e){return O(t=>Reflect.apply(hs,null,[t,...e]),()=>_s(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>W(e)||H(e))}function de(...e){return O(t=>Reflect.apply(ys,null,[t,...e]),()=>xs(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>W(e)||H(e))}function fe(e){return e.map(e=>W(e)||z(e)||G(e)?_c(String(e)):e)}let pe={normalize:fe,interpolate:e=>e,type:`vnode`};function k(...e){return O(t=>{let n,r=t;try{r.processor=pe,n=Reflect.apply(Ns,null,[r,...e])}finally{r.processor=null}return n},()=>Rs(...e),`translate`,t=>t[nc](...e),e=>[_c(e)],e=>H(e))}function me(...e){return O(t=>Reflect.apply(ys,null,[t,...e]),()=>xs(...e),`number format`,t=>t[ic](...e),yc,e=>W(e)||H(e))}function he(...e){return O(t=>Reflect.apply(hs,null,[t,...e]),()=>_s(...e),`datetime format`,t=>t[rc](...e),yc,e=>W(e)||H(e))}function ge(e){C=e,w.pluralRules=C}function _e(e,t){return O(()=>{if(!e)return!1;let n=W(t)?t:s.value,r=W(t)?[n]:Do(w,c.value,n);for(let t=0;t<r.length;t++){let n=be(r[t]),i=w.messageResolver(n,e);if(i===null&&(i=n[e]),za(i)||Ms(i)||W(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),bc,e=>G(e))}function ve(e){let t=null,n=Do(w,c.value,s.value);for(let r=0;r<n.length;r++){let i=l.value[n[r]]||{},a=w.messageResolver(i,e);if(a!=null){t=a;break}}return t}function ye(e){return ve(e)??(t&&t.tm(e)||{})}function be(e){return l.value[e]||{}}function xe(e,t){if(i){let n={[e]:t};for(let e in n)Vi(n,e)&&pc(n[e]);t=n[e]}l.value[e]=t,w.messages=l.value}function Se(e,t){l.value[e]=l.value[e]||{};let n={[e]:t};if(i)for(let e in n)Vi(n,e)&&pc(n[e]);t=n[e],Zi(t,l.value[e]),w.messages=l.value}function Ce(e){return d.value[e]||{}}function A(e,t){d.value[e]=t,w.datetimeFormats=d.value,vs(w,e,t)}function j(e,t){d.value[e]=B(d.value[e]||{},t),w.datetimeFormats=d.value,vs(w,e,t)}function we(e){return f.value[e]||{}}function Te(e,t){f.value[e]=t,w.numberFormats=f.value,Ss(w,e,t)}function Ee(e,t){f.value[e]=B(f.value[e]||{},t),w.numberFormats=f.value,Ss(w,e,t)}xc++,t&&vi&&((0,u.watch)(t.locale,e=>{o&&(s.value=e,w.locale=e,us(w,s.value,c.value))}),(0,u.watch)(t.fallbackLocale,e=>{o&&(c.value=e,w.fallbackLocale=e,us(w,s.value,c.value))}));let M={id:xc,locale:E,fallbackLocale:ee,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,us(w,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:D,get modifiers(){return S},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(e){p=e,w.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(e){m=e,w.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,w.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,w.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,w.escapeParameter=e},t:ce,getLocaleMessage:be,setLocaleMessage:xe,mergeLocaleMessage:Se,getPostTranslationHandler:re,setPostTranslationHandler:ie,getMissingHandler:ae,setMissingHandler:oe,[sc]:ge};return M.datetimeFormats=te,M.numberFormats=ne,M.rt=le,M.te=_e,M.tm=ye,M.d=ue,M.n=de,M.getDateTimeFormat=Ce,M.setDateTimeFormat=A,M.mergeDateTimeFormat=j,M.getNumberFormat=we,M.setNumberFormat=Te,M.mergeNumberFormat=Ee,M[cc]=n,M[nc]=k,M[rc]=he,M[ic]=me,process.env.NODE_ENV!==`production`&&(M[ac]=e=>{w.__v_emitter=e},M[oc]=()=>{w.__v_emitter=void 0}),M}var wc=`vue-i18n: composer properties`,Tc={"vue-devtools-plugin-vue-i18n":`Vue I18n DevTools`,"vue-i18n-resource-inspector":`Vue I18n DevTools`,"vue-i18n-timeline":`Vue I18n`},Ec={"vue-i18n-resource-inspector":`Search for scopes ...`},Dc={"vue-i18n-timeline":16764185},Oc;async function kc(e,t){return new Promise((n,r)=>{try{Qs({id:`vue-devtools-plugin-vue-i18n`,label:Tc[`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:[wc],app:e},r=>{Oc=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{jc(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.__VUE_I18N__&&n&&(t.mode===`legacy`?e.__VUE_I18N__!==t.global.__composer&&Mc(n,e.__VUE_I18N__):Mc(n,e.__VUE_I18N__))}),r.addInspector({id:`vue-i18n-resource-inspector`,label:Tc[`vue-i18n-resource-inspector`],icon:`language`,treeFilterPlaceholder:Ec[`vue-i18n-resource-inspector`]}),r.on.getInspectorTree(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&Rc(n,t)});let i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`)if(r.unhighlightElement(),Vc(n,t),n.nodeId===`global`){if(!i.has(n.app)){let[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{let e=zc(n.nodeId,t);e&&r.highlightElement(e)}}),r.on.editInspectorState(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&Wc(n,t)}),r.addTimelineLayer({id:`vue-i18n-timeline`,label:Tc[`vue-i18n-timeline`],color:Dc[`vue-i18n-timeline`]}),n(!0)})}catch(e){console.error(e),r(!1)}})}function Ac(e){return e.type.name||e.type.displayName||e.type.__file||`Anonymous`}function jc(e,t,n){let r=n.mode===`composition`?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){let n={label:`i18n (${Ac(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function Mc(e,t){let n=wc;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:Nc(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 Nc(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];U(r)&&`source`in r?t[n]=Lc(r):za(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:K(r)?t[n]=Nc(r):t[n]=r}),t}var Pc={"<":`<`,">":`>`,'"':`"`,"&":`&`};function Fc(e){return e.replace(/[<>"&]/g,Ic)}function Ic(e){return Pc[e]||e}function Lc(e){return{_custom:{type:`function`,display:`<span>ƒ</span> ${e.source?`("${Fc(e.source)}")`:`(?)`}`}}}function Rc(e,t){e.rootNodes.push({id:`global`,label:`Global Scope`});let n=t.mode===`composition`?t.global:t.global.__composer;for(let[r,i]of t.__instances){let a=t.mode===`composition`?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${Ac(r)} Scope`})}}function zc(e,t){let n=null;if(e!==`global`){for(let[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function Bc(e,t){if(e===`global`)return t.mode===`composition`?t.global:t.global.__composer;{let n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?t.mode===`composition`?n:n.__composer:null}}function Vc(e,t){let n=Bc(e.nodeId,t);return n&&(e.state=Hc(n)),null}function Hc(e){let t={},n=`Locale related info`;t[n]=[{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}];let r=`Locale messages info`;t[r]=[{type:r,key:`messages`,editable:!1,value:Nc(e.messages.value)}];{let n=`Datetime formats info`;t[n]=[{type:n,key:`datetimeFormats`,editable:!1,value:e.datetimeFormats.value}];let r=`Datetime formats info`;t[r]=[{type:r,key:`numberFormats`,editable:!1,value:e.numberFormats.value}]}return t}function Uc(e,t){if(Oc){let n;t&&`groupId`in t&&(n=t.groupId,delete t.groupId),Oc.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 Wc(e,t){let n=Bc(e.nodeId,t);if(n){let[t]=e.path;t===`locale`&&W(e.state.value)?n.locale.value=e.state.value:t===`fallbackLocale`&&(W(e.state.value)||H(e.state.value)||K(e.state.value))?n.fallbackLocale.value=e.state.value:t===`inheritLocale`&&G(e.state.value)&&(n.inheritLocale=e.state.value)}}function Gc(e){let t=W(e.locale)?e.locale:Wo,n=W(e.fallbackLocale)||H(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=U(e.missing)?e.missing:void 0,i=G(e.silentTranslationWarn)||Di(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=G(e.silentFallbackWarn)||Di(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=G(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=q(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=U(e.postTranslation)?e.postTranslation:void 0,d=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=G(e.sync)?e.sync:!0,m=e.messages;if(q(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(B(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function Kc(e={}){let t=Cc(Gc(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return G(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=G(e)?!e:e},get silentFallbackWarn(){return G(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=G(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,process.env.NODE_ENV!==`production`&&(r.__enableEmitter=e=>{let n=t;n[ac]&&n[ac](e)},r.__disableEmitter=()=>{let e=t;e[oc]&&e[oc]()}),r}function qc(e,t,n){return{beforeCreate(){let r=vc();if(!r)throw $(Q.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Jc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Kc(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Jc(e,i);else{this.$i18n=Kc({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&gc(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!==`production`&&this.$i18n){let e=vc();if(!e)return;let t=this.$i18n;e.__VUE_I18N__=t.__composer;let n=this.__v_emitter=Yi();t.__enableEmitter&&t.__enableEmitter(n),n.on(`*`,Uc)}},unmounted(){let e=vc();if(!e)throw $(Q.UNEXPECTED_ERROR);let t=this.$i18n;process.env.NODE_ENV!==`production`&&e.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off(`*`,Uc),delete this.__v_emitter),t&&(t.__disableEmitter&&t.__disableEmitter(),delete e.__VUE_I18N__)),t&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t?.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n)}}}function Jc(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[sc](t.pluralizationRules||e.pluralizationRules);let n=mc(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var Yc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function Xc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===u.Fragment?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},V())}function Zc(){return u.Fragment}var Qc=(0,u.defineComponent)({name:`i18n-t`,props:B({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>z(e)||!isNaN(e)}},Yc),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||ll({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=V();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=W(e.plural)?+e.plural:e.plural);let o=Xc(t,r);return i[nc](e.keypath,o,a)},o=B(V(),r),s=W(e.tag)||K(e.tag)?e.tag:Zc();return K(s)?(0,u.h)(s,o,{default:a}):(0,u.h)(s,o,a())}}});function $c(e){return H(e)&&!W(e[0])}function el(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=V();e.locale&&(t.locale=e.locale),W(e.format)?t.key=e.format:K(e.format)&&(W(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?B(V(),t,{[r]:e.format[r]}):t,V()));let o=r(e.value,t,a),s=[t.key];return H(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return $c(r)&&(r[0].key=`${e.type}-${t}`),r}):W(o)&&(s=[o]),s},o=B(V(),a),s=W(e.tag)||K(e.tag)?e.tag:Zc();return K(s)?(0,u.h)(s,o,{default:t}):(0,u.h)(s,o,t())}}var tl=(0,u.defineComponent)({name:`i18n-n`,props:B({value:{type:Number,required:!0},format:{type:[String,Object]}},Yc),setup(e,t){let n=e.i18n||ll({useScope:e.scope,__useComponent:!0});return el(e,t,bs,(...e)=>n[ic](...e))}});function nl(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function rl(e){let t=t=>{process.env.NODE_ENV!==`production`&&_i(fc(uc.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));let{instance:n,value:r}=t;if(!n||!n.$)throw $(Q.UNEXPECTED_ERROR);let i=nl(e,n.$),a=il(r);return[Reflect.apply(i.t,i,[...al(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);vi&&(e.__i18nWatcher=(0,u.watch)(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{vi&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=il(t);e.textContent=Reflect.apply(n.t,n,[...al(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function il(e){if(W(e))return{path:e};if(q(e)){if(!(`path`in e))throw $(Q.REQUIRED_VALUE,`path`);return e}else throw $(Q.INVALID_VALUE)}function al(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return W(n)&&(o.locale=n),z(i)&&(o.plural=i),z(a)&&(o.plural=a),[t,s,o]}function ol(e,t,...n){let r=q(n[0])?n[0]:{};(!G(r.globalInstall)||r.globalInstall)&&([Qc.name,`I18nT`].forEach(t=>e.component(t,Qc)),[tl.name,`I18nN`].forEach(t=>e.component(t,tl)),[bl.name,`I18nD`].forEach(t=>e.component(t,bl))),e.directive(`t`,rl(t))}var sl=Ci(`global-vue-i18n`);function cl(e={}){let t=__VUE_I18N_LEGACY_API__&&G(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!==`production`&&t&&_i(fc(uc.DEPRECATE_LEGACY_MODE));let n=G(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=ul(e,t),o=Ci(process.env.NODE_ENV===`production`?``:`vue-i18n`);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(process.env.NODE_ENV!==`production`&&(e.__VUE_I18N__=u),e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),q(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=yl(e,u.global)),__VUE_I18N_FULL_INSTALL__&&ol(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(qc(a,a.__composer,u));let s=e.unmount;if(e.unmount=()=>{i&&i(),u.dispose(),s()},process.env.NODE_ENV!==`production`){if(!await kc(e,u))throw $(Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);let n=Yi();if(t){let e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{let e=a;e[ac]&&e[ac](n)}n.on(`*`,Uc)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function ll(e={}){let t=vc();if(t==null)throw $(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $(Q.NOT_INSTALLED);let n=dl(t),r=pl(n),i=hc(t),a=fl(e,i);if(a===`global`)return gc(r,e,i),r;if(a===`parent`){let i=ml(n,t,e.__useComponent);return i??=(process.env.NODE_ENV!==`production`&&hi(fc(uc.NOT_FOUND_PARENT_SCOPE)),r),i}if(a===`isolated`){if(n.mode!==`composition`)throw $(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let i=n,a=B({},e);a.__root=ml(n,t)||r;let o=Cc(a);i.__composerExtend&&(o[lc]=i.__composerExtend(o));let s=null;if(process.env.NODE_ENV!==`production`){s=Yi();let e=o;e[ac]&&e[ac](s),s.on(`*`,Uc)}return(0,u.getCurrentScope)()&&(0,u.onScopeDispose)(()=>{if(process.env.NODE_ENV!==`production`){s&&s.off(`*`,Uc);let e=o;e[oc]&&e[oc]()}let e=o[lc];e&&(e(),delete o[lc])}),o}let o=n,s=o.__getInstance(t);if(s==null){let n=B({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Cc(n),o.__composerExtend&&(s[lc]=o.__composerExtend(s)),gl(o,t,s),o.__setInstance(t,s)}else process.env.NODE_ENV!==`production`&&a===`local`&&hi(fc(uc.DUPLICATE_USE_I18N_CALLING));return s}function ul(e,t){let n=(0,u.effectScope)(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Kc(e)):n.run(()=>Cc(e));if(r==null)throw $(Q.UNEXPECTED_ERROR);return[n,r]}function dl(e){let t=(0,u.inject)(e.isCE?sl:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function fl(e,t){return Oi(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function pl(e){return e.mode===`composition`?e.global:e.global.__composer}function ml(e,t,n=!1){let r=null,i=t.root,a=hl(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[cc]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function hl(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gl(e,t,n){let r=null;(0,u.onMounted)(()=>{if(process.env.NODE_ENV!==`production`){t.__VUE_I18N__=n,r=Yi();let e=n;e[ac]&&e[ac](r),r.on(`*`,Uc)}},t),(0,u.onUnmounted)(()=>{let i=n;process.env.NODE_ENV!==`production`&&(r&&r.off(`*`,Uc),i[oc]&&i[oc](),delete t.__VUE_I18N__),e.__deleteInstance(t);let a=i[lc];a&&(a(),delete i[lc])},t)}var _l=[`locale`,`fallbackLocale`,`availableLocales`],vl=[`t`,`rt`,`d`,`n`,`tm`,`te`];function yl(e,t){let n=Object.create(null);return _l.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw $(Q.UNEXPECTED_ERROR);let i=(0,u.isRef)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,vl.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw $(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,vl.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var bl=(0,u.defineComponent)({name:`i18n-d`,props:B({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yc),setup(e,t){let n=e.i18n||ll({useScope:e.scope,__useComponent:!0});return el(e,t,gs,(...e)=>n[rc](...e))}});if(ec(),Jo(ho),Xo(Bo),Qo(Do),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let e=ji();e.__INTLIFY__=!0,_o(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var xl=cl({legacy:!1,locale:`zh_CN`,fallbackLocale:`zh_CN`,messages:{zh_CN:{common:{yes:`是`,no:`否`,actions:`操作`,add:`添加`,delete:`删除`,edit:`编辑`,save:`保存`,confirm:`确定`,cancel:`取消`,close:`关闭`,clear:`清除`,more:`更多`,"action-prompt":`操作提示`,"close-confirm":`确定关闭吗?`,"delete-confirm":`确定删除吗?`,"cancel-confirm":`确定取消吗?`,"edit-confirm":`确定编辑吗?`,"save-confirm":`确定保存吗?`,"save-success":`保存成功`,"save-error":`保存失败`,"delete-success":`删除成功`,"delete-error":`删除失败`,success:`成功`,error:`错误`,fail:`失败`,loading:`加载中`,"loading-finished":`数据加载完毕`,data:`数据`,"no-data":`暂无数据`,content:`内容`,"no-content":`暂无内容`,search:`搜索`,start:`开始`,end:`结束`},form:{"please-select":`请选择{title}`,"please-input":`请填写{title}`,"please-upload":`请上传{title}`,"search-placeholder":`请输入搜索内容`,upload:`上传`,"upload-fail":`上传失败,请稍后再试`,"upload-size-limit":`超过服务器上传附件的大小限制`,"upload-size-max":`上传文件大小不能超过{size}MB`,"upload-num-max":`最多只能上传{num}个文件`,options:`选项`,title:`标题`,"row-title":`行标题`,scale:`分值`,attachment:`附件`},search:{equal:`等于`,"not-equal":`不等于`,include:`包含`,exclude:`不包含`,"include-sub":`包括子级`,"less-than":`小于`,"greater-than":`大于`,between:`介于`,null:`为空`,"not-null":`不为空`,"multiple-choice-available":`可多选`,"start-time":`开始时间`,"end-time":`结束时间`,"last-week":`上周`,"last-month":`上个月`,"past-week":`过去一周`,"past-two-weeks":`过去两周`,"past-month":`过去一个月`,"past-days":`过去{days}天`,"textarea-placeholder":`搜索{title},每行一个`,"sort-setting":`排序设置`,"toggle-more":`展示/关闭更多搜索选项`,collapse:`收起`,"clear-all-search-items":`清除所有搜索项`,"search-items":`搜索条件`,"item-unit":`项`,"items-unit":`项`,"sortable-items":`可排序项`,"sorted-items":`已排序项`,"select-sorting-item":`请选择排序项`,ascending:`升序排序`,descending:`降序排序`,"remove-item":`移除当前项`,"restore-title":`上次查询条件已保存`,"restore-apply":`应用`,"restore-last":`上次查询`,"restore-dismiss":`忽略`},table:{editable:`可编辑`,total:`共 {total} 条`,custom:`自定义列`,"select-all":`全选`,"unselect-all":`取消全选`,attachment:`查看附件 {title}`,"copy-success":`复制成功`},"signature-pad":{agreement:`请先同意协议`}},en_US:{common:{yes:`Yes`,no:`No`,actions:`Actions`,add:`Add`,delete:`Delete`,edit:`Edit`,save:`Save`,confirm:`Confirm`,cancel:`Cancel`,close:`Close`,clear:`Clear`,more:`More`,"action-prompt":`Tips`,"close-confirm":`Are you sure you want to close?`,"delete-confirm":`Are you sure you want to delete this item?`,"cancel-confirm":`Are you sure you want to cancel this action?`,"edit-confirm":`Are you sure you want to edit this item?`,"save-confirm":`Are you sure you want to save this item?`,"save-success":`Save success`,"save-error":`Save error`,"delete-success":`Delete success`,"delete-error":`Delete error`,success:`Success`,error:`Error`,fail:`Fail`,loading:`Loading`,"loading-finished":`Finished`,data:`Data`,"no-data":`No data`,content:`Content`,"no-content":`No content`,search:`Search`,start:`Start`,end:`End`},form:{"please-select":`Please select {title}`,"please-input":`Please input {title}`,"please-upload":`Please upload {title}`,"search-placeholder":`Please enter search content`,upload:`Upload`,"upload-fail":`Upload fail`,"upload-size-limit":`Exceeded the server upload attachment size limit`,"upload-size-max":`The maximum file size you can upload is {size}MB`,"upload-num-max":`You can only upload up to {num} files`,options:`Options`,title:`Title`,"row-title":`Row title`,scale:`Scale`,attachment:`Attachment`},search:{equal:`Equal to`,"not-equal":`Not equal to`,include:`Include`,exclude:`Exclude`,"include-sub":`Include sub-level`,"less-than":`Less than`,"greater-than":`Greater than`,between:`Between`,null:`Null`,"not-null":`Not null`,"multiple-choice-available":`Multiple choice available`,"start-time":`Start time`,"end-time":`End time`,"last-week":`Last week`,"last-month":`Last month`,"past-week":`Past week`,"past-two-weeks":`Past two weeks`,"past-month":`Past month`,"past-days":`Past {days} days`,"textarea-placeholder":`Search {title},one per line`,"sort-setting":`Sort setting`,"toggle-more":`Show/Hide More Search Options`,collapse:`Collapse`,"clear-all-search-items":`Clear all search items`,"search-items":`Search`,"item-unit":`item`,"items-unit":`items`,"sortable-items":`Sortable items`,"sorted-items":`Sorted items`,"select-sorting-item":`Please select sorting items`,ascending:`Ascending`,descending:`Descending`,"remove-item":`Remove sorting item`,"restore-title":`Previous search conditions saved`,"restore-apply":`Apply`,"restore-last":`Last query`,"restore-dismiss":`Dismiss`},table:{editable:`Editable`,total:`Total {total}`,custom:`Custom`,"select-all":`Select all`,"unselect-all":`Unselect all`,attachment:`Attachment {title}`,"copy-success":`Copy success`},"signature-pad":{agreement:`Please check the agreement`}}}});function Sl(e,t,n,r){let i=d.Modal.confirm({title:xl.global.t(`common.action-prompt`),content:e||``,onOk:()=>(t&&(0,p.isFunction)(t)&&t(),n?(i.update({okButtonProps:{loading:!0}}),new Promise(()=>{})):null),onCancel:()=>{r&&(0,p.isFunction)(r)&&r()}});return i}function Cl(e,t){if(!t)return``;let n=t.find(t=>t.value===e);return n?n.label:``}function wl(e,t,n){n||={value:`value`,label:`label`,children:`children`};let r=[];function i(e){t.includes(e[n.value])&&r.push(e[n.label]),e[n.children]?.length&&e[n.children].forEach(e=>{i(e)})}return e.forEach(e=>{i(e)}),r}function Tl(e,t,n){n||={value:`value`,label:`label`,children:`children`};for(let r of e){if(r[n.value]===t)return r;if(r[n.children]&&r[n.children].length){let e=Tl(r[n.children],t,n);if(e)return e}}return null}function El(e,t,n){n||={value:`value`,label:`label`,children:`children`};let r=[];return(0,p.reduce)(t,(e,t)=>{let i=(0,p.find)(e,{[n.value]:t});if(i)return r.push(i[n.label]),i[n.children]},e),r}function Dl(e,t,n){n||={value:`value`,label:`label`,children:`children`};let r=[];function i(e,t,r){for(let a of e)if(a[n.value]===t){r.unshift(a[n.label]);break}else if(a[n.children]&&i(a[n.children],t,r).length>0){r.unshift(a[n.label]);break}return r}return i(e,t,r)}function Ol(e,t,n){n||={value:`value`,label:`label`,children:`children`};let r=[];function i(e,t,r){for(let a of e)if(a[n.value]===t){r.unshift(a[n.value]);break}else if(a[n.children]&&i(a[n.children],t,r).length>0){r.unshift(a[n.value]);break}return r}return i(e,t,r)}function kl(e,t,n){return(0,p.flatMapDeep)(e,(e,r)=>r===t?e:r===n?kl(e,t,n):[])}var Al={},jl={setItem(e,t){Al[e]=t},getItem(e){return Al[e]},removeItem(e){delete Al[e]}};function Ml(e,t){let n=t||jl,r=!!t;return{get(t){let i=n.getItem(e);return(0,p.isNull)(i)||(0,p.isUndefined)(i)?t:r?JSON.parse(i):i},set(t){n.setItem(e,r?JSON.stringify(t):t)},remove(){n.removeItem(e)}}}function Nl(e,t=2){if(typeof e!=`number`&&isNaN(e))return 0;let n=10**t;return Math.round(e*n)/n}function Pl(e,t={}){let{storage:n=`memory`}=t,r=n===`local`;function i(t){return[`nbp`,e,t].filter(Boolean).join(`_`)}function a(e,t){Ml(i(e)).set(t)}function o(e){return Ml(i(e)).get()}function s(e,t){!r||typeof window>`u`||Ml(i(e),window.localStorage).set(t)}function c(e){if(!(!r||typeof window>`u`))return Ml(i(e),window.localStorage).get()}function l(e){!r||typeof window>`u`||Ml(i(e),window.localStorage).remove()}return{save(e,t){a(e,t),s(e,t)},load(e,t=void 0){let n=o(e);return!(0,p.isNull)(n)&&!(0,p.isUndefined)(n)?n:t},loadWithFallback(e,t){let n=o(e);return!(0,p.isNull)(n)&&!(0,p.isUndefined)(n)?n:r&&(n=c(e),!(0,p.isNull)(n)&&!(0,p.isUndefined)(n))?(a(e,n),n):t},loadLocal(e,t=void 0){if(!r)return t;let n=c(e);return!(0,p.isNull)(n)&&!(0,p.isUndefined)(n)?n:t},hasLocalData(e){if(!r||typeof window>`u`)return!1;let t=Ml(i(e),window.localStorage).get();return!(0,p.isNull)(t)&&!(0,p.isUndefined)(t)},hasData(e){let t=o(e);return!(0,p.isNull)(t)&&!(0,p.isUndefined)(t)},remove(e){Ml(i(e)).remove(),l(e)},clear(e=[`form`,`sort`]){e.forEach(e=>this.remove(e))}}}function Fl(e){return e?e===!0?{enabled:!0,storage:`memory`,key:null}:typeof e==`string`?{enabled:!0,storage:`memory`,key:e}:typeof e==`object`&&e?{enabled:!0,storage:e.storage===`local`?`local`:`memory`,key:e.key||null}:{enabled:!1,storage:`memory`,key:null}:{enabled:!1,storage:`memory`,key:null}}function Il(e,t){t||={};let n={};switch(e){case`email`:n.pattern=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,n.message=t.message||`请填写正确的邮箱地址`;break;case`phone`:t.mode===`strict`?n.pattern=/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1|8|9]))\d{8}$/:n.pattern=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,n.message=t.message||`请填写正确的手机号码`;break;case`tel`:case`telephone`:t.strict===`strict`?n.pattern=/^\d{3}-\d{8}$|^\d{4}-\d{7,8}$/:n.pattern=/^(?:\d{3}-)?\d{8}$|^(?:\d{4}-)?\d{7,8}$/,n.message=t.message||`请填写正确的座机号码`;break;case`ID`:case`id`:!t.mode||[`china`,`cn`].includes(t.mode?.toLowerCase())?t.version?.toLowerCase()===`v1`?n.pattern=/^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/:t.version?.toLowerCase()===`v2`?n.pattern=/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/:n.pattern=/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/:[`hk`,`hongkong`,`xg`,`xianggang`].includes(t.mode.toLowerCase())||[`macau`,`macao`,`mo`,`aomen`,`am`].includes(t.mode.toLowerCase())?n.pattern=/^[a-zA-Z]\d{6}\([\dA]\)$/:[`taiwan`,`tw`].includes(t.mode.toLowerCase())&&(n.pattern=/^[a-zA-Z][0-9]{9}$/),n.message=t.message||`请填写正确的证件号码`;break;case`passport`:n.pattern=/(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)/,n.message=t.message||`请填写正确的护照号码`;break;case`credit-code`:case`uscc`:n.pattern=/^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/,n.message=t.message||`请填写正确的统一社会信用代码`;break;case`bank-account`:case`bank`:n.pattern=/^[1-9]\d{9,29}$/,n.message=t.message||`请填写正确的银行账号`;break;case`stock`:n.pattern=/^(s[hz]|S[HZ])(000[\d]{3}|002[\d]{3}|300[\d]{3}|600[\d]{3}|60[\d]{4})$/,n.message=t.message||`请填写正确的股票代码`;break;case`url`:t.mode===`image`?n.pattern=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i:t.mode===`video`?n.pattern=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i:n.pattern=/^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/,n.message=t.message||`请填写正确的链接`;break;case`md5`:n.pattern=/^([a-f\d]{32}|[A-F\d]{32})$/,n.message=t.message||`请填写正确的md5值`;break;case`base64`:n.pattern=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i,n.message=t.message||`请填写正确的base64值`;break;case`currency`:case`money`:t.mode===`positive`?n.pattern=/^\d+(,\d{3})*(\.\d{1,2})?$/:n.pattern=/^-?\d+(,\d{3})*(\.\d{1,2})?$/,n.message=t.message||`请填写正确的货币金额`;break;case`chinese`:n.pattern=/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,n.message=t.message||`请填写中文字符`;break;case`name`:t.en||t.english?n.pattern=/(^[a-zA-Z]{1}[a-zA-Z\s]{0,20}[a-zA-Z]{1}$)/:n.pattern=/^(?:[\u4e00-\u9fa5·]{2,16})$/,n.message=t.message||`请填写正确的姓名`;break;case`decimal`:n.pattern=/^\d+\.\d+$/,n.message=t.message||`请填写正确的小数`;break;case`number`:n.pattern=/^\d{1,}$/,n.message=t.message||`请填写正确的数字`;break;case`date`:n.pattern=/^\d{4}(-)(1[0-2]|0?\d)\1([0-2]\d|\d|30|31)$/,n.message=t.message||`请填写正确的日期`;break;case`time`:t.mode===`12`?n.pattern=/^(?:1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/:n.pattern=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$/,n.message=t.message||`请填写正确的时间`;break;case`car`:case`plate-number`:case`car-number`:t.mode===`green`||t.mode===`newEnergy`?n.pattern=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-HJ-NP-Z]{1}(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))$/:t.mode===`notNewEnergy`?n.pattern=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-HJ-NP-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/:n.pattern=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-HJ-NP-Z]{1}(?:(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))|[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1})$/,n.message=t.message||`请填写正确的车牌号`;break;case`version`:n.pattern=/^\d+(?:\.\d+){2}$/,n.message=t.message||`请填写正确的版本号`;break;case`ip`:case`IP`:t.mode===`v6`||t.mode===`ipv6`?n.pattern=/^(?:(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))|\[(?:(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))\](?::(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$/i:n.pattern=/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]).){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$/,n.message=t.message||`请填写正确的IP地址`;break;case`qq`:n.pattern=/^[1-9][0-9]{4,10}$/,n.message=t.message||`请填写正确的QQ号`;break;case`wechat`:n.pattern=/^[a-zA-Z][-_a-zA-Z0-9]{5,19}$/,n.message=t.message||`请填写正确的微信号`;break;case`alpha-numeric`:case`numeric-alpha`:n.mode===`strict`?n.pattern=/^(?=.*[a-zA-Z])(?=.*\d).+$/:n.pattern=/^[A-Za-z0-9]+$/,n.message=t.message||`请填写字母与数字的组合`;break;case`alpha`:t.mode===`lower`||t.mode===`lowercase`?n.pattern=/^[a-z]+$/:t.mode===`upper`||t.mode===`uppercase`?n.pattern=/^[A-Z]+$/:n.pattern=/^[a-zA-Z]+$/,n.message=t.message||`请填写正确的字母`;break;case`username`:n.pattern=/^[a-zA-Z0-9_-]{4,16}$/,n.message=t.message||`请填写正确的用户名`;break;case`password`:n.pattern=/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S*$/,n.message=t.message||`密码必须包含大小写字母、数字和特殊字符,不少于6位`;break;case`zip`:n.pattern=/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,n.message=t.message||`请填写正确的邮政编码`;break;case`mac`:case`MAC`:n.pattern=/^((([a-f0-9]{2}:){5})|(([a-f0-9]{2}-){5}))[a-f0-9]{2}$/i,n.message=t.message||`请填写正确的MAC地址`;break}return n}function Ll(e,t){let{t:n}=ll();return(0,p.isArray)(e)?e.map(e=>n(e,t)).join(``):n(e,t)}function Rl(e,t,n){let{capitalizeFirst:r=!0,uncapitalizeSecond:i=!0,uncapitalizeSecondAll:a=!0}=n||{};n||={};let{locale:o}=n;return o||=ll().locale,o.value.includes(`en`)?(e=e.trim(),t=t.trim(),r&&(e=e.charAt(0).toUpperCase()+e.slice(1)),i&&(t=t.charAt(0).toLowerCase()+t.slice(1)),a&&(t=t.toLowerCase()),`${e} ${t}`):`${e}${t}`}Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Pl}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return wl}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Ol}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return kl}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return xl}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Fl}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Nl}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ll}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ml}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Il}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return El}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Rl}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return Dl}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return fi}});
//# sourceMappingURL=hooks-39a94Aza.cjs.map