@linagora/linid-im-front-corelib 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,6 @@ This will fail in production.`);i=Le,i._s.has(e)||(o?Pt(e,t,r,i):Ln(e,r,i),proce
7
7
  `,To="\u2028",Io="\u2029";function So(e){const t=e;let n=0,r=1,o=1,s=0;const i=f=>t[f]===Lo&&t[f+1]===ee,l=f=>t[f]===ee,u=f=>t[f]===Io,m=f=>t[f]===To,N=f=>i(f)||l(f)||u(f)||m(f),b=()=>n,h=()=>r,T=()=>o,k=()=>s,L=f=>i(f)||u(f)||m(f)?ee:t[f],R=()=>L(n),d=()=>L(n+s);function E(){return s=0,N(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function v(){return i(n+s)&&s++,s++,t[n+s]}function p(){n=0,r=1,o=1,s=0}function I(f=0){s=f}function C(){const f=n+s;for(;f!==n;)E();s=0}return{index:b,line:h,column:T,peekOffset:k,charAt:L,currentChar:R,currentPeek:d,next:E,peek:v,reset:p,resetPeek:I,skipToPeek:C}}const pe=void 0,Co=".",Rn="'",Ao="tokenizer";function Po(e,t={}){const n=t.location!==!1,r=So(e),o=()=>r.index(),s=()=>go(r.line(),r.column(),r.index()),i=s(),l=o(),u={currentType:13,offset:l,startLoc:i,endLoc:i,lastType:13,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:N}=t;function b(a,c,g,...D){const Y=m();if(c.column+=g,c.offset+=g,N){const X=n?wt(Y.startLoc,c):null,W=Me(a,X,{domain:Ao,args:D});N(W)}}function h(a,c,g){a.endLoc=s(),a.currentType=c;const D={type:c};return n&&(D.loc=wt(a.startLoc,a.endLoc)),g!=null&&(D.value=g),D}const T=a=>h(a,13);function k(a,c){return a.currentChar()===c?(a.next(),c):(b(w.EXPECTED_TOKEN,s(),0,c),"")}function L(a){let c="";for(;a.currentPeek()===ue||a.currentPeek()===ee;)c+=a.currentPeek(),a.peek();return c}function R(a){const c=L(a);return a.skipToPeek(),c}function d(a){if(a===pe)return!1;const c=a.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function E(a){if(a===pe)return!1;const c=a.charCodeAt(0);return c>=48&&c<=57}function v(a,c){const{currentType:g}=c;if(g!==2)return!1;L(a);const D=d(a.currentPeek());return a.resetPeek(),D}function p(a,c){const{currentType:g}=c;if(g!==2)return!1;L(a);const D=a.currentPeek()==="-"?a.peek():a.currentPeek(),Y=E(D);return a.resetPeek(),Y}function I(a,c){const{currentType:g}=c;if(g!==2)return!1;L(a);const D=a.currentPeek()===Rn;return a.resetPeek(),D}function C(a,c){const{currentType:g}=c;if(g!==7)return!1;L(a);const D=a.currentPeek()===".";return a.resetPeek(),D}function f(a,c){const{currentType:g}=c;if(g!==8)return!1;L(a);const D=d(a.currentPeek());return a.resetPeek(),D}function $(a,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;L(a);const D=a.currentPeek()===":";return a.resetPeek(),D}function U(a,c){const{currentType:g}=c;if(g!==9)return!1;const D=()=>{const X=a.currentPeek();return X==="{"?d(a.peek()):X==="@"||X==="|"||X===":"||X==="."||X===ue||!X?!1:X===ee?(a.peek(),D()):A(a,!1)},Y=D();return a.resetPeek(),Y}function S(a){L(a);const c=a.currentPeek()==="|";return a.resetPeek(),c}function A(a,c=!0){const g=(Y=!1,X="")=>{const W=a.currentPeek();return W==="{"||W==="@"||!W?Y:W==="|"?!(X===ue||X===ee):W===ue?(a.peek(),g(!0,ue)):W===ee?(a.peek(),g(!0,ee)):!0},D=g();return c&&a.resetPeek(),D}function M(a,c){const g=a.currentChar();return g===pe?pe:c(g)?(a.next(),g):null}function q(a){const c=a.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function ge(a){return M(a,q)}function Ae(a){const c=a.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function Ke(a){return M(a,Ae)}function Xe(a){const c=a.charCodeAt(0);return c>=48&&c<=57}function Ne(a){return M(a,Xe)}function ne(a){const c=a.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function Oe(a){return M(a,ne)}function Qe(a){let c="",g="";for(;c=Ne(a);)g+=c;return g}function cn(a){let c="";for(;;){const g=a.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===ue||g===ee)if(A(a))c+=g,a.next();else{if(S(a))break;c+=g,a.next()}else c+=g,a.next()}return c}function ln(a){R(a);let c="",g="";for(;c=Ke(a);)g+=c;const D=a.currentChar();if(D&&D!=="}"&&D!==pe&&D!==ue&&D!==ee&&D!==" "){const Y=Lt(a);return b(w.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,g+Y),g+Y}return a.currentChar()===pe&&b(w.UNTERMINATED_CLOSING_BRACE,s(),0),g}function un(a){R(a);let c="";return a.currentChar()==="-"?(a.next(),c+=`-${Qe(a)}`):c+=Qe(a),a.currentChar()===pe&&b(w.UNTERMINATED_CLOSING_BRACE,s(),0),c}function fn(a){return a!==Rn&&a!==ee}function Xr(a){R(a),k(a,"'");let c="",g="";for(;c=M(a,fn);)c==="\\"?g+=dn(a):g+=c;const D=a.currentChar();return D===ee||D===pe?(b(w.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),D===ee&&(a.next(),k(a,"'")),g):(k(a,"'"),g)}function dn(a){const c=a.currentChar();switch(c){case"\\":case"'":return a.next(),`\\${c}`;case"u":return yt(a,c,4);case"U":return yt(a,c,6);default:return b(w.UNKNOWN_ESCAPE_SEQUENCE,s(),0,c),""}}function yt(a,c,g){k(a,c);let D="";for(let Y=0;Y<g;Y++){const X=Oe(a);if(!X){b(w.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${c}${D}${a.currentChar()}`);break}D+=X}return`\\${c}${D}`}function _n(a){return a!=="{"&&a!=="}"&&a!==ue&&a!==ee}function Lt(a){R(a);let c="",g="";for(;c=M(a,_n);)g+=c;return g}function mn(a){let c="",g="";for(;c=ge(a);)g+=c;return g}function pn(a){const c=g=>{const D=a.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===ue?g:(g+=D,a.next(),c(g))};return c("")}function qe(a){R(a);const c=k(a,"|");return R(a),c}function Je(a,c){let g=null;switch(a.currentChar()){case"{":return c.braceNest>=1&&b(w.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),a.next(),g=h(c,2,"{"),R(a),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&b(w.EMPTY_PLACEHOLDER,s(),0),a.next(),g=h(c,3,"}"),c.braceNest--,c.braceNest>0&&R(a),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&b(w.UNTERMINATED_CLOSING_BRACE,s(),0),g=Pe(a,c)||T(c),c.braceNest=0,g;default:{let Y=!0,X=!0,W=!0;if(S(a))return c.braceNest>0&&b(w.UNTERMINATED_CLOSING_BRACE,s(),0),g=h(c,1,qe(a)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return b(w.UNTERMINATED_CLOSING_BRACE,s(),0),c.braceNest=0,Ze(a,c);if(Y=v(a,c))return g=h(c,4,ln(a)),R(a),g;if(X=p(a,c))return g=h(c,5,un(a)),R(a),g;if(W=I(a,c))return g=h(c,6,Xr(a)),R(a),g;if(!Y&&!X&&!W)return g=h(c,12,Lt(a)),b(w.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,g.value),R(a),g;break}}return g}function Pe(a,c){const{currentType:g}=c;let D=null;const Y=a.currentChar();switch((g===7||g===8||g===11||g===9)&&(Y===ee||Y===ue)&&b(w.INVALID_LINKED_FORMAT,s(),0),Y){case"@":return a.next(),D=h(c,7,"@"),c.inLinked=!0,D;case".":return R(a),a.next(),h(c,8,".");case":":return R(a),a.next(),h(c,9,":");default:return S(a)?(D=h(c,1,qe(a)),c.braceNest=0,c.inLinked=!1,D):C(a,c)||$(a,c)?(R(a),Pe(a,c)):f(a,c)?(R(a),h(c,11,mn(a))):U(a,c)?(R(a),Y==="{"?Je(a,c)||D:h(c,10,pn(a))):(g===7&&b(w.INVALID_LINKED_FORMAT,s(),0),c.braceNest=0,c.inLinked=!1,Ze(a,c))}}function Ze(a,c){let g={type:13};if(c.braceNest>0)return Je(a,c)||T(c);if(c.inLinked)return Pe(a,c)||T(c);switch(a.currentChar()){case"{":return Je(a,c)||T(c);case"}":return b(w.UNBALANCED_CLOSING_BRACE,s(),0),a.next(),h(c,3,"}");case"@":return Pe(a,c)||T(c);default:{if(S(a))return g=h(c,1,qe(a)),c.braceNest=0,c.inLinked=!1,g;if(A(a))return h(c,0,cn(a));break}}return g}function En(){const{currentType:a,offset:c,startLoc:g,endLoc:D}=u;return u.lastType=a,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=D,u.offset=o(),u.startLoc=s(),r.currentChar()===pe?h(u,13):Ze(r,u)}return{nextToken:En,currentOffset:o,currentPosition:s,context:m}}const Do="parser",Ro=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ko(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function wo(e={}){const t=e.location!==!1,{onError:n}=e;function r(d,E,v,p,...I){const C=d.currentPosition();if(C.offset+=p,C.column+=p,n){const f=t?wt(v,C):null,$=Me(E,f,{domain:Do,args:I});n($)}}function o(d,E,v){const p={type:d};return t&&(p.start=E,p.end=E,p.loc={start:v,end:v}),p}function s(d,E,v,p){t&&(d.end=E,d.loc&&(d.loc.end=v))}function i(d,E){const v=d.context(),p=o(3,v.offset,v.startLoc);return p.value=E,s(p,d.currentOffset(),d.currentPosition()),p}function l(d,E){const v=d.context(),{lastOffset:p,lastStartLoc:I}=v,C=o(5,p,I);return C.index=parseInt(E,10),d.nextToken(),s(C,d.currentOffset(),d.currentPosition()),C}function u(d,E){const v=d.context(),{lastOffset:p,lastStartLoc:I}=v,C=o(4,p,I);return C.key=E,d.nextToken(),s(C,d.currentOffset(),d.currentPosition()),C}function m(d,E){const v=d.context(),{lastOffset:p,lastStartLoc:I}=v,C=o(9,p,I);return C.value=E.replace(Ro,ko),d.nextToken(),s(C,d.currentOffset(),d.currentPosition()),C}function N(d){const E=d.nextToken(),v=d.context(),{lastOffset:p,lastStartLoc:I}=v,C=o(8,p,I);return E.type!==11?(r(d,w.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),C.value="",s(C,p,I),{nextConsumeToken:E,node:C}):(E.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,fe(E)),C.value=E.value||"",s(C,d.currentOffset(),d.currentPosition()),{node:C})}function b(d,E){const v=d.context(),p=o(7,v.offset,v.startLoc);return p.value=E,s(p,d.currentOffset(),d.currentPosition()),p}function h(d){const E=d.context(),v=o(6,E.offset,E.startLoc);let p=d.nextToken();if(p.type===8){const I=N(d);v.modifier=I.node,p=I.nextConsumeToken||d.nextToken()}switch(p.type!==9&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(p)),p=d.nextToken(),p.type===2&&(p=d.nextToken()),p.type){case 10:p.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(p)),v.key=b(d,p.value||"");break;case 4:p.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(p)),v.key=u(d,p.value||"");break;case 5:p.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(p)),v.key=l(d,p.value||"");break;case 6:p.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(p)),v.key=m(d,p.value||"");break;default:{r(d,w.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const I=d.context(),C=o(7,I.offset,I.startLoc);return C.value="",s(C,I.offset,I.startLoc),v.key=C,s(v,I.offset,I.startLoc),{nextConsumeToken:p,node:v}}}return s(v,d.currentOffset(),d.currentPosition()),{node:v}}function T(d){const E=d.context(),v=E.currentType===1?d.currentOffset():E.offset,p=E.currentType===1?E.endLoc:E.startLoc,I=o(2,v,p);I.items=[];let C=null;do{const U=C||d.nextToken();switch(C=null,U.type){case 0:U.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(U)),I.items.push(i(d,U.value||""));break;case 5:U.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(U)),I.items.push(l(d,U.value||""));break;case 4:U.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(U)),I.items.push(u(d,U.value||""));break;case 6:U.value==null&&r(d,w.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,fe(U)),I.items.push(m(d,U.value||""));break;case 7:{const S=h(d);I.items.push(S.node),C=S.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const f=E.currentType===1?E.lastOffset:d.currentOffset(),$=E.currentType===1?E.lastEndLoc:d.currentPosition();return s(I,f,$),I}function k(d,E,v,p){const I=d.context();let C=p.items.length===0;const f=o(1,E,v);f.cases=[],f.cases.push(p);do{const $=T(d);C||(C=$.items.length===0),f.cases.push($)}while(I.currentType!==13);return C&&r(d,w.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),s(f,d.currentOffset(),d.currentPosition()),f}function L(d){const E=d.context(),{offset:v,startLoc:p}=E,I=T(d);return E.currentType===13?I:k(d,v,p,I)}function R(d){const E=Po(d,Z({},e)),v=E.context(),p=o(0,v.offset,v.startLoc);return t&&p.loc&&(p.loc.source=d),p.body=L(E),e.onCacheKey&&(p.cacheKey=e.onCacheKey(d)),v.currentType!==13&&r(E,w.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,d[v.offset]||""),s(p,E.currentOffset(),E.currentPosition()),p}return{parse:R}}function fe(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Mo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function kn(e,t){for(let n=0;n<e.length;n++)Mt(e[n],t)}function Mt(e,t){switch(e.type){case 1:kn(e.cases,t),t.helper("plural");break;case 2:kn(e.items,t);break;case 6:{Mt(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 Fo(e,t={}){const n=Mo(e);n.helper("normalize"),e.body&&Mt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Uo(e){const t=e.body;return t.type===2?wn(t):t.cases.forEach(n=>wn(n)),e}function wn(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=kt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const $o="minifier";function Fe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Fe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Fe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Fe(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Fe(t.key),t.k=t.key,delete t.key,t.modifier&&(Fe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Me(w.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:$o,args:[e.type]})}delete e.type}const Vo="parser";function jo(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,s=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);const l=()=>i;function u(L,R){i.code+=L}function m(L,R=!0){const d=R?r:"";u(o?d+" ".repeat(L):d)}function N(L=!0){const R=++i.indentLevel;L&&m(R)}function b(L=!0){const R=--i.indentLevel;L&&m(R)}function h(){m(i.indentLevel)}return{context:l,push:u,indent:N,deindent:b,newline:h,helper:L=>`_${L}`,needIndent:()=>i.needIndent}}function Wo(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ue(e,t.key),t.modifier?(e.push(", "),Ue(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Bo(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s<o&&(Ue(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Ho(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s<o&&(Ue(e,t.cases[s]),s!==o-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Go(e,t){t.body?Ue(e,t.body):e.push("null")}function Ue(e,t){const{helper:n}=e;switch(t.type){case 0:Go(e,t);break;case 1:Ho(e,t);break;case 2:Bo(e,t);break;case 6:Wo(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 Me(w.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Vo,args:[t.type]})}}const Yo=(e,t={})=>{const n=P(t.mode)?t.mode:"normal",r=P(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
8
8
  `,s=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=jo(e,{filename:r,breakLineCode:o,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),i.length>0&&(l.push(`const { ${kt(i.map(N=>`${N}: _${N}`),", ")} } = ctx`),l.newline()),l.push("return "),Ue(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:u,map:m}=l.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function xo(e,t={}){const n=Z({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,l=wo(n).parse(e);return r?(s&&Uo(l),o&&Fe(l),{ast:l,code:""}):(Fo(l,n),Yo(l,n))}function Ko(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Se().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Se().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ce(e){return V(e)&&Ft(e)===0&&(ae(e,"b")||ae(e,"body"))}const Mn=["b","body"];function Xo(e){return be(e,Mn)}const Fn=["c","cases"];function Qo(e){return be(e,Fn,[])}const Un=["s","static"];function qo(e){return be(e,Un)}const $n=["i","items"];function Jo(e){return be(e,$n,[])}const Vn=["t","type"];function Ft(e){return be(e,Vn)}const jn=["v","value"];function ct(e,t){const n=be(e,jn);if(n!=null)return n;throw We(t)}const Wn=["m","modifier"];function Zo(e){return be(e,Wn)}const Bn=["k","key"];function zo(e){const t=be(e,Bn);if(t)return t;throw We(6)}function be(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(ae(e,o)&&e[o]!=null)return e[o]}return n}const Hn=[...Mn,...Fn,...Un,...$n,...Bn,...Wn,...jn,...Vn];function We(e){return new Error(`unhandled node type: ${e}`)}function Ut(e){return n=>es(n,e)}function es(e,t){const n=Xo(t);if(n==null)throw We(0);if(Ft(n)===1){const s=Qo(n);return e.plural(s.reduce((i,l)=>[...i,Gn(e,l)],[]))}else return Gn(e,n)}function Gn(e,t){const n=qo(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Jo(t).reduce((o,s)=>[...o,$t(e,s)],[]);return e.normalize(r)}}function $t(e,t){const n=Ft(t);switch(n){case 3:return ct(t,n);case 9:return ct(t,n);case 4:{const r=t;if(ae(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ae(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw We(n)}case 5:{const r=t;if(ae(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ae(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw We(n)}case 6:{const r=t,o=Zo(r),s=zo(r);return e.linked($t(e,s),o?$t(e,o):void 0,e.type)}case 7:return ct(t,n);case 8:return ct(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ts="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function ns(e,t){t&&yo(e)&&le(rt(ts,{source:e}))}const rs=e=>e;let lt=H();function os(e,t={}){let n=!1;const r=t.onError||bo;return t.onError=o=>{n=!0,r(o)},{...xo(e,t),detectError:n}}function ss(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&P(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&ns(e,n);const o=(t.onCacheKey||rs)(e),s=lt[o];if(s)return s;const{ast:i,detectError:l}=os(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Ut(i);return l?u:lt[o]=u}else{if(process.env.NODE_ENV!=="production"&&!ce(e))return le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=lt[n];return r||(lt[n]=Ut(e))}else return Ut(e)}}let Be=null;function is(e){Be=e}function as(e,t,n){Be&&Be.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const cs=ls("function:translate");function ls(e){return t=>Be&&Be.emit(e,t)}const te={INVALID_ARGUMENT:No,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},us=24;function Ee(e){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:fs}:void 0)}const fs={[te.INVALID_ARGUMENT]:"Invalid arguments",[te.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[te.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[te.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[te.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[te.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Vt(e,t){return t.locale!=null?Yn(t.locale):Yn(e.locale)}let jt;function Yn(e){if(P(e))return e;if(G(e)){if(e.resolvedOnce&&jt!=null)return jt;if(e.constructor.name==="Function"){const t=e();if(mo(t))throw Ee(te.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return jt=t}else throw Ee(te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(te.NOT_SUPPORT_LOCALE_TYPE)}function ds(e,t,n){return[...new Set([n,...x(t)?t:V(t)?Object.keys(t):P(t)?[t]:[n]])]}function xn(e,t,n){const r=P(n)?n:ft,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;x(i);)i=Kn(s,i,t);const l=x(t)||!j(t)?t:t.default?t.default:null;i=P(l)?[l]:l,x(i)&&Kn(s,i,!1),o.__localeChainCache.set(r,s)}return s}function Kn(e,t,n){let r=!0;for(let o=0;o<t.length&&K(r);o++){const s=t[o];P(s)&&(r=_s(e,t[o],n))}return r}function _s(e,t,n){let r;const o=t.split("-");do{const s=o.join("-");r=ms(e,s,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function ms(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(x(n)||j(n))&&n[o]&&(r=n[o])}return r}const ve=[];ve[0]={w:[0],i:[3,0],"[":[4],o:[7]},ve[1]={w:[1],".":[2],"[":[4],o:[7]},ve[2]={w:[2],i:[3,0],0:[3,0]},ve[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ve[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ve[5]={"'":[4,0],o:8,l:[5,0]},ve[6]={'"':[4,0],o:8,l:[6,0]};const ps=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Es(e){return ps.test(e)}function hs(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function gs(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 Ns(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Es(t)?hs(t):"*"+t}function Os(e){const t=[];let n=-1,r=0,o=0,s,i,l,u,m,N,b;const h=[];h[0]=()=>{i===void 0?i=l:i+=l},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,i===void 0||(i=Ns(i),i===!1))return!1;h[1]()}};function T(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,l="\\"+k,h[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&T())){if(u=gs(s),b=ve[r],m=b[u]||b.l||8,m===8||(r=m[0],m[1]!==void 0&&(N=h[m[1]],N&&(l=s,N()===!1))))return;if(r===7)return t}}const Xn=new Map;function bs(e,t){return V(e)?e[t]:null}function vs(e,t){if(!V(e))return null;let n=Xn.get(t);if(n||(n=Os(t),n&&Xn.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const i=n[s];if(Hn.includes(i)&&ce(o))return null;const l=o[i];if(l===void 0||G(o))return null;o=l,s++}return o}const re={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},ys=8,Ls={[re.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[re.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[re.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[re.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[re.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[re.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ce(e,...t){return rt(Ls[e],...t)}const Ts="11.2.2",ut=-1,ft="en-US",dt="",Qn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Is(){return{upper:(e,t)=>t==="text"&&P(e)?e.toUpperCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&P(e)?e.toLowerCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&P(e)?Qn(e):t==="vnode"&&V(e)&&"__v_isVNode"in e?Qn(e.children):e}}let qn;function Ss(e){qn=e}let Jn;function Cs(e){Jn=e}let Zn;function As(e){Zn=e}let zn=null;const Ps=e=>{zn=e},Ds=()=>zn;let er=null;const tr=e=>{er=e},Rs=()=>er;let nr=0;function ks(e={}){const t=G(e.onWarn)?e.onWarn:le,n=P(e.version)?e.version:Ts,r=P(e.locale)||G(e.locale)?e.locale:ft,o=G(r)?ft:r,s=x(e.fallbackLocale)||j(e.fallbackLocale)||P(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=j(e.messages)?e.messages:Wt(o),l=j(e.datetimeFormats)?e.datetimeFormats:Wt(o),u=j(e.numberFormats)?e.numberFormats:Wt(o),m=Z(H(),e.modifiers,Is()),N=e.pluralRules||H(),b=G(e.missing)?e.missing:null,h=K(e.missingWarn)||ot(e.missingWarn)?e.missingWarn:!0,T=K(e.fallbackWarn)||ot(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,L=!!e.unresolving,R=G(e.postTranslation)?e.postTranslation:null,d=j(e.processor)?e.processor:null,E=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,p=G(e.messageCompiler)?e.messageCompiler:qn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&so(Ce(re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=G(e.messageResolver)?e.messageResolver:Jn||bs,C=G(e.localeFallbacker)?e.localeFallbacker:Zn||ds,f=V(e.fallbackContext)?e.fallbackContext:void 0,$=e,U=V($.__datetimeFormatters)?$.__datetimeFormatters:new Map,S=V($.__numberFormatters)?$.__numberFormatters:new Map,A=V($.__meta)?$.__meta:{};nr++;const M={version:n,cid:nr,locale:r,fallbackLocale:s,messages:i,modifiers:m,pluralRules:N,missing:b,missingWarn:h,fallbackWarn:T,fallbackFormat:k,unresolving:L,postTranslation:R,processor:d,warnHtmlMessage:E,escapeParameter:v,messageCompiler:p,messageResolver:I,localeFallbacker:C,fallbackContext:f,onWarn:t,__meta:A};return M.datetimeFormats=l,M.numberFormats=u,M.__datetimeFormatters=U,M.__numberFormatters=S,process.env.NODE_ENV!=="production"&&(M.__v_emitter=$.__v_emitter!=null?$.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&as(M,n,A),M}const Wt=e=>({[e]:H()});function _t(e,t){return e instanceof RegExp?e.test(t):e}function rr(e,t){return e instanceof RegExp?e.test(t):e}function Bt(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(s!==null){const l=s(e,n,t,o);return P(l)?l:t}else return process.env.NODE_ENV!=="production"&&rr(r,t)&&i(Ce(re.NOT_FOUND_KEY,{key:t,locale:n})),t}function He(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function or(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ws(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(or(e,t[r]))return!0;return!1}const sr=typeof Intl<"u",ir={dateTimeFormat:sr&&typeof Intl.DateTimeFormat<"u",numberFormat:sr&&typeof Intl.NumberFormat<"u"};function ar(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!ir.dateTimeFormat)return s(Ce(re.CANNOT_FORMAT_DATE)),dt;const[u,m,N,b]=Ht(...t),h=K(N.missingWarn)?N.missingWarn:e.missingWarn,T=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,k=!!N.part,L=Vt(e,N),R=i(e,o,L);if(!P(u)||u==="")return new Intl.DateTimeFormat(L,b).format(m);let d={},E,v=null,p=L,I=null;const C="datetime format";for(let U=0;U<R.length;U++){if(E=I=R[U],process.env.NODE_ENV!=="production"&&L!==E&&_t(T,u)&&s(Ce(re.FALLBACK_TO_DATE_FORMAT,{key:u,target:E})),process.env.NODE_ENV!=="production"&&L!==E){const S=e.__v_emitter;S&&S.emit("fallback",{type:C,key:u,from:p,to:I,groupId:`${C}:${u}`})}if(d=n[E]||{},v=d[u],j(v))break;Bt(e,u,E,h,C),p=I}if(!j(v)||!P(E))return r?ut:u;let f=`${E}__${u}`;st(b)||(f=`${f}__${JSON.stringify(b)}`);let $=l.get(f);return $||($=new Intl.DateTimeFormat(E,Z({},v,b)),l.set(f,$)),k?$.formatToParts(m):$.format(m)}const cr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ht(...e){const[t,n,r,o]=e,s=H();let i=H(),l;if(P(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(te.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();l=new Date(m);try{l.toISOString()}catch{throw Ee(te.INVALID_ISO_DATE_ARGUMENT)}}else if(lo(t)){if(isNaN(t.getTime()))throw Ee(te.INVALID_DATE_ARGUMENT);l=t}else if(J(t))l=t;else throw Ee(te.INVALID_ARGUMENT);return P(n)?s.key=n:j(n)&&Object.keys(n).forEach(u=>{cr.includes(u)?i[u]=n[u]:s[u]=n[u]}),P(r)?s.locale=r:j(r)&&(i=r),j(o)&&(i=o),[s.key||"",l,s,i]}function lr(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function ur(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!ir.numberFormat)return s(Ce(re.CANNOT_FORMAT_NUMBER)),dt;const[u,m,N,b]=Gt(...t),h=K(N.missingWarn)?N.missingWarn:e.missingWarn,T=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,k=!!N.part,L=Vt(e,N),R=i(e,o,L);if(!P(u)||u==="")return new Intl.NumberFormat(L,b).format(m);let d={},E,v=null,p=L,I=null;const C="number format";for(let U=0;U<R.length;U++){if(E=I=R[U],process.env.NODE_ENV!=="production"&&L!==E&&_t(T,u)&&s(Ce(re.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:E})),process.env.NODE_ENV!=="production"&&L!==E){const S=e.__v_emitter;S&&S.emit("fallback",{type:C,key:u,from:p,to:I,groupId:`${C}:${u}`})}if(d=n[E]||{},v=d[u],j(v))break;Bt(e,u,E,h,C),p=I}if(!j(v)||!P(E))return r?ut:u;let f=`${E}__${u}`;st(b)||(f=`${f}__${JSON.stringify(b)}`);let $=l.get(f);return $||($=new Intl.NumberFormat(E,Z({},v,b)),l.set(f,$)),k?$.formatToParts(m):$.format(m)}const fr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Gt(...e){const[t,n,r,o]=e,s=H();let i=H();if(!J(t))throw Ee(te.INVALID_ARGUMENT);const l=t;return P(n)?s.key=n:j(n)&&Object.keys(n).forEach(u=>{fr.includes(u)?i[u]=n[u]:s[u]=n[u]}),P(r)?s.locale=r:j(r)&&(i=r),j(o)&&(i=o),[s.key||"",l,s,i]}function dr(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const Ms=e=>e,Fs=e=>"",Us="text",$s=e=>e.length===0?"":kt(e),Vs=po;function _r(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function js(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function Ws(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Bs(e={}){const t=e.locale,n=js(e),r=V(e.pluralRules)&&P(t)&&G(e.pluralRules[t])?e.pluralRules[t]:_r,o=V(e.pluralRules)&&P(t)&&G(e.pluralRules[t])?_r:void 0,s=d=>d[r(n,d.length,o)],i=e.list||[],l=d=>i[d],u=e.named||H();J(e.pluralIndex)&&Ws(n,u);const m=d=>u[d];function N(d,E){const v=G(e.messages)?e.messages(d,!!E):V(e.messages)?e.messages[d]:!1;return v||(e.parent?e.parent.message(d):Fs)}const b=d=>e.modifiers?e.modifiers[d]:Ms,h=j(e.processor)&&G(e.processor.normalize)?e.processor.normalize:$s,T=j(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:Vs,k=j(e.processor)&&P(e.processor.type)?e.processor.type:Us,R={list:l,named:m,plural:s,linked:(d,...E)=>{const[v,p]=E;let I="text",C="";E.length===1?V(v)?(C=v.modifier||C,I=v.type||I):P(v)&&(C=v||C):E.length===2&&(P(v)&&(C=v||C),P(p)&&(I=p||I));const f=N(d,!0)(R),$=I==="vnode"&&x(f)&&C?f[0]:f;return C?b(C)($,I):$},message:N,type:k,interpolate:T,normalize:h,values:Z(H(),i,u)};return R}const mr=()=>"",ie=e=>G(e);function pr(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:l}=e,[u,m]=Yt(...t),N=K(m.missingWarn)?m.missingWarn:e.missingWarn,b=K(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,h=K(m.escapeParameter)?m.escapeParameter:e.escapeParameter,T=!!m.resolvedMessage,k=P(m.default)||K(m.default)?K(m.default)?s?u:()=>u:m.default:n?s?u:()=>u:null,L=n||k!=null&&(P(k)||G(k)),R=Vt(e,m);h&&Hs(m);let[d,E,v]=T?[u,R,l[R]||H()]:Er(e,u,R,i,b,N),p=d,I=u;if(!T&&!(P(p)||ce(p)||ie(p))&&L&&(p=k,I=p),!T&&(!(P(p)||ce(p)||ie(p))||!P(E)))return o?ut:u;if(process.env.NODE_ENV!=="production"&&P(p)&&e.messageCompiler==null)return le(`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 '${u}'.`),u;let C=!1;const f=()=>{C=!0},$=ie(p)?p:hr(e,u,E,p,I,f);if(C)return p;const U=Ks(e,E,v,m),S=Bs(U),A=Gs(e,$,S);let M=r?r(A,u):A;if(h&&P(M)&&(M=fo(M)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const q={timestamp:Date.now(),key:P(u)?u:ie(p)?p.key:"",locale:E||(ie(p)?p.locale:""),format:P(p)?p:ie(p)?p.source:"",message:M};q.meta=Z({},e.__meta,Ds()||{}),cs(q)}return M}function Hs(e){x(e.list)?e.list=e.list.map(t=>P(t)?Cn(t):t):V(e.named)&&Object.keys(e.named).forEach(t=>{P(e.named[t])&&(e.named[t]=Cn(e.named[t]))})}function Er(e,t,n,r,o,s){const{messages:i,onWarn:l,messageResolver:u,localeFallbacker:m}=e,N=m(e,r,n);let b=H(),h,T=null,k=n,L=null;const R="translate";for(let d=0;d<N.length;d++){if(h=L=N[d],process.env.NODE_ENV!=="production"&&n!==h&&!or(n,h)&&_t(o,t)&&l(Ce(re.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const I=e.__v_emitter;I&&I.emit("fallback",{type:R,key:t,from:k,to:L,groupId:`${R}:${t}`})}b=i[h]||H();let E=null,v,p;if(process.env.NODE_ENV!=="production"&&_e&&(E=window.performance.now(),v="intlify-message-resolve-start",p="intlify-message-resolve-end",oe&&oe(v)),(T=u(b,t))===null&&(T=b[t]),process.env.NODE_ENV!=="production"&&_e){const I=window.performance.now(),C=e.__v_emitter;C&&E&&T&&C.emit("message-resolve",{type:"message-resolve",key:t,message:T,time:I-E,groupId:`${R}:${t}`}),v&&p&&oe&&Ie&&(oe(p),Ie("intlify message resolve",v,p))}if(P(T)||ce(T)||ie(T))break;if(!ws(h,N)){const I=Bt(e,t,h,s,R);I!==t&&(T=I)}k=L}return[T,h,b]}function hr(e,t,n,r,o,s){const{messageCompiler:i,warnHtmlMessage:l}=e;if(ie(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=(()=>r);return h.locale=n,h.key=t,h}let u=null,m,N;process.env.NODE_ENV!=="production"&&_e&&(u=window.performance.now(),m="intlify-message-compilation-start",N="intlify-message-compilation-end",oe&&oe(m));const b=i(r,Ys(e,n,o,r,l,s));if(process.env.NODE_ENV!=="production"&&_e){const h=window.performance.now(),T=e.__v_emitter;T&&u&&T.emit("message-compilation",{type:"message-compilation",message:r,time:h-u,groupId:`translate:${t}`}),m&&N&&oe&&Ie&&(oe(N),Ie("intlify message compilation",m,N))}return b.locale=n,b.key=t,b.source=r,b}function Gs(e,t,n){let r=null,o,s;process.env.NODE_ENV!=="production"&&_e&&(r=window.performance.now(),o="intlify-message-evaluation-start",s="intlify-message-evaluation-end",oe&&oe(o));const i=t(n);if(process.env.NODE_ENV!=="production"&&_e){const l=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:i,time:l-r,groupId:`translate:${t.key}`}),o&&s&&oe&&Ie&&(oe(s),Ie("intlify message evaluation",o,s))}return i}function Yt(...e){const[t,n,r]=e,o=H();if(!P(t)&&!J(t)&&!ie(t)&&!ce(t))throw Ee(te.INVALID_ARGUMENT);const s=J(t)?String(t):(ie(t),t);return J(n)?o.plural=n:P(n)?o.default=n:j(n)&&!st(n)?o.named=n:x(n)&&(o.list=n),J(r)?o.plural=r:P(r)?o.default=r:j(r)&&Z(o,r),[s,o]}function Ys(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{if(s&&s(i),process.env.NODE_ENV!=="production"){const l=xs(r),u=`Message compilation error: ${i.message}`,m=i.location&&l&&Eo(l,i.location.start.offset,i.location.end.offset),N=e.__v_emitter;N&&l&&N.emit("compile-error",{message:l,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
9
9
  ${m}`:u)}else throw i},onCacheKey:i=>ao(t,n,i)}}function xs(e){if(P(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ks(e,t,n,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:l,fallbackWarn:u,missingWarn:m,fallbackContext:N}=e,h={locale:t,modifiers:o,pluralRules:s,messages:(T,k)=>{let L=i(n,T);if(L==null&&(N||k)){const[,,R]=Er(N||e,T,t,l,u,m);L=i(R,T)}if(P(L)||ce(L)){let R=!1;const E=hr(e,T,t,L,T,()=>{R=!0});return R?mr:E}else return ie(L)?L:mr}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),J(r.plural)&&(h.pluralIndex=r.plural),h}Ko();const Xs="11.2.2";function Qs(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Se().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Se().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Se().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Se().__INTLIFY_PROD_DEVTOOLS__=!1)}const z={UNEXPECTED_RETURN_TYPE:us,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 Ge(e,...t){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:qs,args:t}:void 0)}const qs={[z.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[z.INVALID_ARGUMENT]:"Invalid argument",[z.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[z.NOT_INSTALLED]:"Need to install with `app.use` function",[z.UNEXPECTED_ERROR]:"Unexpected error",[z.REQUIRED_VALUE]:"Required in value: {0}",[z.INVALID_VALUE]:"Invalid value",[z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[z.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[z.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},xt=me("__translateVNode"),Kt=me("__datetimeParts"),Xt=me("__numberParts"),Qt=me("__enableEmitter"),qt=me("__disableEmitter"),Js=me("__setPluralRules"),gr=me("__injectWithOption"),Jt=me("__dispose"),de={FALLBACK_TO_ROOT:ys,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Zs={[de.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[de.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[de.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[de.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
10
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[de.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 mt(e,...t){return rt(Zs[e],...t)}function Ye(e){if(!V(e)||ce(e))return e;for(const t in e)if(ae(e,t))if(!t.includes("."))V(e[t])&&Ye(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=H()),!V(o[n[i]])){process.env.NODE_ENV!=="production"&&le(mt(de.IGNORE_OBJ_FLATTEN,{key:n[i]})),s=!0;break}o=o[n[i]]}if(s||(ce(o)?Hn.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!ce(o)){const i=o[n[r]];V(i)&&Ye(i)}}return e}function Nr(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,i=j(n)?n:x(r)?H():{[e]:H()};if(x(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:m}=l;u?(i[u]=i[u]||H(),at(m,i[u])):at(m,i)}else P(l)&&at(JSON.parse(l),i)}),o==null&&s)for(const l in i)ae(i,l)&&Ye(i[l]);return i}function Or(e){return e.type}function zs(e,t,n){let r=V(t.messages)?t.messages:H();"__i18nGlobal"in n&&(r=Nr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(V(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(V(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function br(e){return y.createVNode(y.Text,null,e,0)}function Zt(){return"currentInstance"in It?It["currentInstance"]:It.getCurrentInstance()}const vr="__INTLIFY_META__",yr=()=>[],ei=()=>!1;let Lr=0;function Tr(e){return((t,n,r,o)=>e(n,r,Zt()||void 0,o))}const ti=()=>{const e=Zt();let t=null;return e&&(t=Or(e)[vr])?{[vr]:t}:null};function ni(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=_e?y.ref:y.shallowRef;let i=K(e.inheritLocale)?e.inheritLocale:!0;const l=s(t&&i?t.locale.value:P(e.locale)?e.locale:ft),u=s(t&&i?t.fallbackLocale.value:P(e.fallbackLocale)||x(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),m=s(Nr(l.value,e)),N=s(j(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),b=s(j(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:K(e.missingWarn)||ot(e.missingWarn)?e.missingWarn:!0,T=t?t.fallbackWarn:K(e.fallbackWarn)||ot(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,R=G(e.missing)?e.missing:null,d=G(e.missing)?Tr(e.missing):null,E=G(e.postTranslation)?e.postTranslation:null,v=t?t.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const I=t?t.modifiers:j(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,f;f=(()=>{r&&tr(null);const _={version:Xs,locale:l.value,fallbackLocale:u.value,messages:m.value,modifiers:I,pluralRules:C,missing:d===null?void 0:d,missingWarn:h,fallbackWarn:T,fallbackFormat:L,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:v,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=N.value,_.numberFormats=b.value,_.__datetimeFormatters=j(f)?f.__datetimeFormatters:void 0,_.__numberFormatters=j(f)?f.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=j(f)?f.__v_emitter:void 0);const O=ks(_);return r&&tr(O),O})(),He(f,l.value,u.value);function U(){return[l.value,u.value,m.value,N.value,b.value]}const S=y.computed({get:()=>l.value,set:_=>{f.locale=_,l.value=_}}),A=y.computed({get:()=>u.value,set:_=>{f.fallbackLocale=_,u.value=_,He(f,l.value,_)}}),M=y.computed(()=>m.value),q=y.computed(()=>N.value),ge=y.computed(()=>b.value);function Ae(){return G(E)?E:null}function Ke(_){E=_,f.postTranslation=_}function Xe(){return R}function Ne(_){_!==null&&(d=Tr(_)),R=_,f.missing=d}function ne(_,O){return _!=="translate"||!O.resolvedMessage}const Oe=(_,O,B,Q,De,Tt)=>{U();let Ve;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(f.fallbackContext=t?Rs():void 0),Ve=_(f)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(f.fallbackContext=void 0)}if(B!=="translate exists"&&J(Ve)&&Ve===ut||B==="translate exists"&&!Ve){const[Re,xi]=O();if(process.env.NODE_ENV!=="production"&&t&&P(Re)&&ne(B,xi)&&(k&&(_t(T,Re)||rr(h,Re))&&le(mt(de.FALLBACK_TO_ROOT,{key:Re,type:B})),process.env.NODE_ENV!=="production")){const{__v_emitter:Qr}=f;Qr&&k&&Qr.emit("fallback",{type:B,key:Re,to:"global",groupId:`${B}:${Re}`})}return t&&k?Q(t):De(Re)}else{if(Tt(Ve))return Ve;throw Ge(z.UNEXPECTED_RETURN_TYPE)}};function Qe(..._){return Oe(O=>Reflect.apply(pr,null,[O,..._]),()=>Yt(..._),"translate",O=>Reflect.apply(O.t,O,[..._]),O=>O,O=>P(O))}function cn(..._){const[O,B,Q]=_;if(Q&&!V(Q))throw Ge(z.INVALID_ARGUMENT);return Qe(O,B,Z({resolvedMessage:!0},Q||{}))}function ln(..._){return Oe(O=>Reflect.apply(ar,null,[O,..._]),()=>Ht(..._),"datetime format",O=>Reflect.apply(O.d,O,[..._]),()=>dt,O=>P(O)||x(O))}function un(..._){return Oe(O=>Reflect.apply(ur,null,[O,..._]),()=>Gt(..._),"number format",O=>Reflect.apply(O.n,O,[..._]),()=>dt,O=>P(O)||x(O))}function fn(_){return _.map(O=>P(O)||J(O)||K(O)?br(String(O)):O)}const dn={normalize:fn,interpolate:_=>_,type:"vnode"};function yt(..._){return Oe(O=>{let B;const Q=O;try{Q.processor=dn,B=Reflect.apply(pr,null,[Q,..._])}finally{Q.processor=null}return B},()=>Yt(..._),"translate",O=>O[xt](..._),O=>[br(O)],O=>x(O))}function _n(..._){return Oe(O=>Reflect.apply(ur,null,[O,..._]),()=>Gt(..._),"number format",O=>O[Xt](..._),yr,O=>P(O)||x(O))}function Lt(..._){return Oe(O=>Reflect.apply(ar,null,[O,..._]),()=>Ht(..._),"datetime format",O=>O[Kt](..._),yr,O=>P(O)||x(O))}function mn(_){C=_,f.pluralRules=C}function pn(_,O){return Oe(()=>{if(!_)return!1;const B=P(O)?O:l.value,Q=Pe(B),De=f.messageResolver(Q,_);return ce(De)||ie(De)||P(De)},()=>[_],"translate exists",B=>Reflect.apply(B.te,B,[_,O]),ei,B=>K(B))}function qe(_){let O=null;const B=xn(f,u.value,l.value);for(let Q=0;Q<B.length;Q++){const De=m.value[B[Q]]||{},Tt=f.messageResolver(De,_);if(Tt!=null){O=Tt;break}}return O}function Je(_){const O=qe(_);return O??(t?t.tm(_)||{}:{})}function Pe(_){return m.value[_]||{}}function Ze(_,O){if(o){const B={[_]:O};for(const Q in B)ae(B,Q)&&Ye(B[Q]);O=B[_]}m.value[_]=O,f.messages=m.value}function En(_,O){m.value[_]=m.value[_]||{};const B={[_]:O};if(o)for(const Q in B)ae(B,Q)&&Ye(B[Q]);O=B[_],at(O,m.value[_]),f.messages=m.value}function a(_){return N.value[_]||{}}function c(_,O){N.value[_]=O,f.datetimeFormats=N.value,lr(f,_,O)}function g(_,O){N.value[_]=Z(N.value[_]||{},O),f.datetimeFormats=N.value,lr(f,_,O)}function D(_){return b.value[_]||{}}function Y(_,O){b.value[_]=O,f.numberFormats=b.value,dr(f,_,O)}function X(_,O){b.value[_]=Z(b.value[_]||{},O),f.numberFormats=b.value,dr(f,_,O)}Lr++,t&&_e&&(y.watch(t.locale,_=>{i&&(l.value=_,f.locale=_,He(f,l.value,u.value))}),y.watch(t.fallbackLocale,_=>{i&&(u.value=_,f.fallbackLocale=_,He(f,l.value,u.value))}));const W={id:Lr,locale:S,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(_){i=_,_&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,He(f,l.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:M,get modifiers(){return I},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(_){h=_,f.missingWarn=h},get fallbackWarn(){return T},set fallbackWarn(_){T=_,f.fallbackWarn=T},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return L},set fallbackFormat(_){L=_,f.fallbackFormat=L},get warnHtmlMessage(){return v},set warnHtmlMessage(_){v=_,f.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,f.escapeParameter=_},t:Qe,getLocaleMessage:Pe,setLocaleMessage:Ze,mergeLocaleMessage:En,getPostTranslationHandler:Ae,setPostTranslationHandler:Ke,getMissingHandler:Xe,setMissingHandler:Ne,[Js]:mn};return W.datetimeFormats=q,W.numberFormats=ge,W.rt=cn,W.te=pn,W.tm=Je,W.d=ln,W.n=un,W.getDateTimeFormat=a,W.setDateTimeFormat=c,W.mergeDateTimeFormat=g,W.getNumberFormat=D,W.setNumberFormat=Y,W.mergeNumberFormat=X,W[gr]=n,W[xt]=yt,W[Kt]=Lt,W[Xt]=_n,process.env.NODE_ENV!=="production"&&(W[Qt]=_=>{f.__v_emitter=_},W[qt]=()=>{f.__v_emitter=void 0}),W}function Ir(e,t){}const zt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ri({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===y.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},H())}function Sr(){return y.Fragment}Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},zt);function oi(e){return x(e)&&!P(e[0])}function Cr(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let l=H();e.locale&&(i.locale=e.locale),P(e.format)?i.key=e.format:V(e.format)&&(P(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((h,T)=>n.includes(T)?Z(H(),h,{[T]:e.format[T]}):h,H()));const u=r(e.value,i,l);let m=[i.key];x(u)?m=u.map((h,T)=>{const k=o[h.type],L=k?k({[h.type]:h.value,index:T,parts:u}):[h.value];return oi(L)&&(L[0].key=`${h.type}-${T}`),L}):P(u)&&(m=[u]);const N=Z(H(),s),b=P(e.tag)||V(e.tag)?e.tag:Sr();return y.h(b,N,m)}}Z({value:{type:Number,required:!0},format:{type:[String,Object]}},zt);const si=me("global-vue-i18n");function pt(e={}){const t=Zt();if(t==null)throw Ge(z.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(z.NOT_INSTALLED);const n=ii(t),r=ci(n),o=Or(t),s=ai(e,o);if(s==="global")return zs(r,e,o),r;if(s==="parent"){let u=li(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&le(mt(de.NOT_FOUND_PARENT_SCOPE)),u=r),u}const i=n;let l=i.__getInstance(t);if(l==null){const u=Z({},e);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=ni(u),i.__composerExtend&&(l[Jt]=i.__composerExtend(l)),fi(i,t,l),i.__setInstance(t,l)}else process.env.NODE_ENV!=="production"&&s==="local"&&le(mt(de.DUPLICATE_USE_I18N_CALLING));return l}function ii(e){const t=y.inject(e.isCE?si:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?z.NOT_INSTALLED_WITH_PROVIDE:z.UNEXPECTED_ERROR);return t}function ai(e,t){return st(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ci(e){return e.mode==="composition"?e.global:e.global.__composer}function li(e,t,n=!1){let r=null;const o=t.root;let s=ui(t,n);for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(r=l.__composer,n&&r&&!r[gr]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function ui(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function fi(e,t,n){let r=null;y.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=ho();const o=n;o[Qt]&&o[Qt](r),r.on("*",Ir)}},t),y.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ir),o[qt]&&o[qt](),delete t.__VUE_I18N__),e.__deleteInstance(t);const s=o[Jt];s&&(s(),delete o[Jt])},t)}if(Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zt),Qs(),Ss(ss),Cs(vs),As(xn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Se();e.__INTLIFY__=!0,is(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let Et=null;function di(e){if(Et!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}Et=e}function Ar(){if(Et===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return Et}function _i(e){const{t,te:n,tm:r}=pt({useScope:"global",__i18n:Ar().global});function o(...u){const[m,N,b]=u;return t(typeof N=="number"?`${e}.${m}`:`${e}.${m}`,N,b)}function s(u){return n(`${e}.${u}`)}function i(u){return r(`${e}.${u}`)}function l(u,...m){return s(m[0])?o(...m):u}return{t:o,te:s,tm:i,translateOrDefault:l}}let ht=null;function mi(e){if(ht!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}ht=e}function Pr(){if(ht===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return ht}const Dr={"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-icon":["left","right","name","size","color"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"]};function Rr(e,t){return t.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},e)}function pi(e,t,n){let r=Rr(e,`${t}.${n}`);if(r===void 0&&(r=Rr(e,`default.${n}`)),typeof r=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return r}function Ei(e){if(!(e in Dr))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return Dr[e]}function hi(){const e=y.computed(()=>Pr());function t(n,r,o){const s=Ei(r),i={};for(const l of s){const u=o?.[l]??pi(e.value,n,`${r}.${String(l)}`);u!==void 0&&(i[l]=u)}return i}return{ui:t}}var en=function(e,t){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},en(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");en(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function tn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(l){i={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function rn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function he(e){return typeof e=="function"}function kr(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var on=kr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
10
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[de.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 mt(e,...t){return rt(Zs[e],...t)}function Ye(e){if(!V(e)||ce(e))return e;for(const t in e)if(ae(e,t))if(!t.includes("."))V(e[t])&&Ye(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=H()),!V(o[n[i]])){process.env.NODE_ENV!=="production"&&le(mt(de.IGNORE_OBJ_FLATTEN,{key:n[i]})),s=!0;break}o=o[n[i]]}if(s||(ce(o)?Hn.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!ce(o)){const i=o[n[r]];V(i)&&Ye(i)}}return e}function Nr(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,i=j(n)?n:x(r)?H():{[e]:H()};if(x(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:m}=l;u?(i[u]=i[u]||H(),at(m,i[u])):at(m,i)}else P(l)&&at(JSON.parse(l),i)}),o==null&&s)for(const l in i)ae(i,l)&&Ye(i[l]);return i}function Or(e){return e.type}function zs(e,t,n){let r=V(t.messages)?t.messages:H();"__i18nGlobal"in n&&(r=Nr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(V(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(V(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function br(e){return y.createVNode(y.Text,null,e,0)}function Zt(){return"currentInstance"in It?It["currentInstance"]:It.getCurrentInstance()}const vr="__INTLIFY_META__",yr=()=>[],ei=()=>!1;let Lr=0;function Tr(e){return((t,n,r,o)=>e(n,r,Zt()||void 0,o))}const ti=()=>{const e=Zt();let t=null;return e&&(t=Or(e)[vr])?{[vr]:t}:null};function ni(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=_e?y.ref:y.shallowRef;let i=K(e.inheritLocale)?e.inheritLocale:!0;const l=s(t&&i?t.locale.value:P(e.locale)?e.locale:ft),u=s(t&&i?t.fallbackLocale.value:P(e.fallbackLocale)||x(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),m=s(Nr(l.value,e)),N=s(j(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),b=s(j(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:K(e.missingWarn)||ot(e.missingWarn)?e.missingWarn:!0,T=t?t.fallbackWarn:K(e.fallbackWarn)||ot(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,R=G(e.missing)?e.missing:null,d=G(e.missing)?Tr(e.missing):null,E=G(e.postTranslation)?e.postTranslation:null,v=t?t.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const I=t?t.modifiers:j(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,f;f=(()=>{r&&tr(null);const _={version:Xs,locale:l.value,fallbackLocale:u.value,messages:m.value,modifiers:I,pluralRules:C,missing:d===null?void 0:d,missingWarn:h,fallbackWarn:T,fallbackFormat:L,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:v,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=N.value,_.numberFormats=b.value,_.__datetimeFormatters=j(f)?f.__datetimeFormatters:void 0,_.__numberFormatters=j(f)?f.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=j(f)?f.__v_emitter:void 0);const O=ks(_);return r&&tr(O),O})(),He(f,l.value,u.value);function U(){return[l.value,u.value,m.value,N.value,b.value]}const S=y.computed({get:()=>l.value,set:_=>{f.locale=_,l.value=_}}),A=y.computed({get:()=>u.value,set:_=>{f.fallbackLocale=_,u.value=_,He(f,l.value,_)}}),M=y.computed(()=>m.value),q=y.computed(()=>N.value),ge=y.computed(()=>b.value);function Ae(){return G(E)?E:null}function Ke(_){E=_,f.postTranslation=_}function Xe(){return R}function Ne(_){_!==null&&(d=Tr(_)),R=_,f.missing=d}function ne(_,O){return _!=="translate"||!O.resolvedMessage}const Oe=(_,O,B,Q,De,Tt)=>{U();let Ve;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(f.fallbackContext=t?Rs():void 0),Ve=_(f)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(f.fallbackContext=void 0)}if(B!=="translate exists"&&J(Ve)&&Ve===ut||B==="translate exists"&&!Ve){const[Re,xi]=O();if(process.env.NODE_ENV!=="production"&&t&&P(Re)&&ne(B,xi)&&(k&&(_t(T,Re)||rr(h,Re))&&le(mt(de.FALLBACK_TO_ROOT,{key:Re,type:B})),process.env.NODE_ENV!=="production")){const{__v_emitter:Qr}=f;Qr&&k&&Qr.emit("fallback",{type:B,key:Re,to:"global",groupId:`${B}:${Re}`})}return t&&k?Q(t):De(Re)}else{if(Tt(Ve))return Ve;throw Ge(z.UNEXPECTED_RETURN_TYPE)}};function Qe(..._){return Oe(O=>Reflect.apply(pr,null,[O,..._]),()=>Yt(..._),"translate",O=>Reflect.apply(O.t,O,[..._]),O=>O,O=>P(O))}function cn(..._){const[O,B,Q]=_;if(Q&&!V(Q))throw Ge(z.INVALID_ARGUMENT);return Qe(O,B,Z({resolvedMessage:!0},Q||{}))}function ln(..._){return Oe(O=>Reflect.apply(ar,null,[O,..._]),()=>Ht(..._),"datetime format",O=>Reflect.apply(O.d,O,[..._]),()=>dt,O=>P(O)||x(O))}function un(..._){return Oe(O=>Reflect.apply(ur,null,[O,..._]),()=>Gt(..._),"number format",O=>Reflect.apply(O.n,O,[..._]),()=>dt,O=>P(O)||x(O))}function fn(_){return _.map(O=>P(O)||J(O)||K(O)?br(String(O)):O)}const dn={normalize:fn,interpolate:_=>_,type:"vnode"};function yt(..._){return Oe(O=>{let B;const Q=O;try{Q.processor=dn,B=Reflect.apply(pr,null,[Q,..._])}finally{Q.processor=null}return B},()=>Yt(..._),"translate",O=>O[xt](..._),O=>[br(O)],O=>x(O))}function _n(..._){return Oe(O=>Reflect.apply(ur,null,[O,..._]),()=>Gt(..._),"number format",O=>O[Xt](..._),yr,O=>P(O)||x(O))}function Lt(..._){return Oe(O=>Reflect.apply(ar,null,[O,..._]),()=>Ht(..._),"datetime format",O=>O[Kt](..._),yr,O=>P(O)||x(O))}function mn(_){C=_,f.pluralRules=C}function pn(_,O){return Oe(()=>{if(!_)return!1;const B=P(O)?O:l.value,Q=Pe(B),De=f.messageResolver(Q,_);return ce(De)||ie(De)||P(De)},()=>[_],"translate exists",B=>Reflect.apply(B.te,B,[_,O]),ei,B=>K(B))}function qe(_){let O=null;const B=xn(f,u.value,l.value);for(let Q=0;Q<B.length;Q++){const De=m.value[B[Q]]||{},Tt=f.messageResolver(De,_);if(Tt!=null){O=Tt;break}}return O}function Je(_){const O=qe(_);return O??(t?t.tm(_)||{}:{})}function Pe(_){return m.value[_]||{}}function Ze(_,O){if(o){const B={[_]:O};for(const Q in B)ae(B,Q)&&Ye(B[Q]);O=B[_]}m.value[_]=O,f.messages=m.value}function En(_,O){m.value[_]=m.value[_]||{};const B={[_]:O};if(o)for(const Q in B)ae(B,Q)&&Ye(B[Q]);O=B[_],at(O,m.value[_]),f.messages=m.value}function a(_){return N.value[_]||{}}function c(_,O){N.value[_]=O,f.datetimeFormats=N.value,lr(f,_,O)}function g(_,O){N.value[_]=Z(N.value[_]||{},O),f.datetimeFormats=N.value,lr(f,_,O)}function D(_){return b.value[_]||{}}function Y(_,O){b.value[_]=O,f.numberFormats=b.value,dr(f,_,O)}function X(_,O){b.value[_]=Z(b.value[_]||{},O),f.numberFormats=b.value,dr(f,_,O)}Lr++,t&&_e&&(y.watch(t.locale,_=>{i&&(l.value=_,f.locale=_,He(f,l.value,u.value))}),y.watch(t.fallbackLocale,_=>{i&&(u.value=_,f.fallbackLocale=_,He(f,l.value,u.value))}));const W={id:Lr,locale:S,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(_){i=_,_&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,He(f,l.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:M,get modifiers(){return I},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(_){h=_,f.missingWarn=h},get fallbackWarn(){return T},set fallbackWarn(_){T=_,f.fallbackWarn=T},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return L},set fallbackFormat(_){L=_,f.fallbackFormat=L},get warnHtmlMessage(){return v},set warnHtmlMessage(_){v=_,f.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,f.escapeParameter=_},t:Qe,getLocaleMessage:Pe,setLocaleMessage:Ze,mergeLocaleMessage:En,getPostTranslationHandler:Ae,setPostTranslationHandler:Ke,getMissingHandler:Xe,setMissingHandler:Ne,[Js]:mn};return W.datetimeFormats=q,W.numberFormats=ge,W.rt=cn,W.te=pn,W.tm=Je,W.d=ln,W.n=un,W.getDateTimeFormat=a,W.setDateTimeFormat=c,W.mergeDateTimeFormat=g,W.getNumberFormat=D,W.setNumberFormat=Y,W.mergeNumberFormat=X,W[gr]=n,W[xt]=yt,W[Kt]=Lt,W[Xt]=_n,process.env.NODE_ENV!=="production"&&(W[Qt]=_=>{f.__v_emitter=_},W[qt]=()=>{f.__v_emitter=void 0}),W}function Ir(e,t){}const zt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ri({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===y.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},H())}function Sr(){return y.Fragment}Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},zt);function oi(e){return x(e)&&!P(e[0])}function Cr(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let l=H();e.locale&&(i.locale=e.locale),P(e.format)?i.key=e.format:V(e.format)&&(P(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((h,T)=>n.includes(T)?Z(H(),h,{[T]:e.format[T]}):h,H()));const u=r(e.value,i,l);let m=[i.key];x(u)?m=u.map((h,T)=>{const k=o[h.type],L=k?k({[h.type]:h.value,index:T,parts:u}):[h.value];return oi(L)&&(L[0].key=`${h.type}-${T}`),L}):P(u)&&(m=[u]);const N=Z(H(),s),b=P(e.tag)||V(e.tag)?e.tag:Sr();return y.h(b,N,m)}}Z({value:{type:Number,required:!0},format:{type:[String,Object]}},zt);const si=me("global-vue-i18n");function pt(e={}){const t=Zt();if(t==null)throw Ge(z.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(z.NOT_INSTALLED);const n=ii(t),r=ci(n),o=Or(t),s=ai(e,o);if(s==="global")return zs(r,e,o),r;if(s==="parent"){let u=li(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&le(mt(de.NOT_FOUND_PARENT_SCOPE)),u=r),u}const i=n;let l=i.__getInstance(t);if(l==null){const u=Z({},e);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=ni(u),i.__composerExtend&&(l[Jt]=i.__composerExtend(l)),fi(i,t,l),i.__setInstance(t,l)}else process.env.NODE_ENV!=="production"&&s==="local"&&le(mt(de.DUPLICATE_USE_I18N_CALLING));return l}function ii(e){const t=y.inject(e.isCE?si:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?z.NOT_INSTALLED_WITH_PROVIDE:z.UNEXPECTED_ERROR);return t}function ai(e,t){return st(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ci(e){return e.mode==="composition"?e.global:e.global.__composer}function li(e,t,n=!1){let r=null;const o=t.root;let s=ui(t,n);for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(r=l.__composer,n&&r&&!r[gr]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function ui(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function fi(e,t,n){let r=null;y.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=ho();const o=n;o[Qt]&&o[Qt](r),r.on("*",Ir)}},t),y.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ir),o[qt]&&o[qt](),delete t.__VUE_I18N__),e.__deleteInstance(t);const s=o[Jt];s&&(s(),delete o[Jt])},t)}if(Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zt),Qs(),Ss(ss),Cs(vs),As(xn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Se();e.__INTLIFY__=!0,is(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let Et=null;function di(e){if(Et!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}Et=e}function Ar(){if(Et===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return Et}function _i(e){const{t,te:n,tm:r}=pt({useScope:"global",__i18n:Ar().global});function o(...u){const[m,N,b]=u;return t(typeof N=="number"?`${e}.${m}`:`${e}.${m}`,N,b)}function s(u){return n(`${e}.${u}`)}function i(u){return r(`${e}.${u}`)}function l(u,...m){return s(m[0])?o(...m):u}return{t:o,te:s,tm:i,translateOrDefault:l}}let ht=null;function mi(e){if(ht!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}ht=e}function Pr(){if(ht===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return ht}const Dr={"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-icon":["left","right","name","size","color"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"],"q-date":["landscape","yearsInMonthView","todayBtn","minimal","defaultView","color","textColor","dark","square","flat","bordered"]};function Rr(e,t){return t.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},e)}function pi(e,t,n){let r=Rr(e,`${t}.${n}`);if(r===void 0&&(r=Rr(e,`default.${n}`)),typeof r=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return r}function Ei(e){if(!(e in Dr))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return Dr[e]}function hi(){const e=y.computed(()=>Pr());function t(n,r,o){const s=Ei(r),i={};for(const l of s){const u=o?.[l]??pi(e.value,n,`${r}.${String(l)}`);u!==void 0&&(i[l]=u)}return i}return{ui:t}}var en=function(e,t){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},en(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");en(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function tn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(l){i={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function rn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function he(e){return typeof e=="function"}function kr(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var on=kr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
11
11
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
12
12
  `):"",this.name="UnsubscriptionError",this.errors=n}});function sn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Nt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var l=tn(i),u=l.next();!u.done;u=l.next()){var m=u.value;m.remove(this)}}catch(L){t={error:L}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else i.remove(this);var N=this.initialTeardown;if(he(N))try{N()}catch(L){s=L instanceof on?L.errors:[L]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var h=tn(b),T=h.next();!T.done;T=h.next()){var k=T.value;try{Fr(k)}catch(L){s=s??[],L instanceof on?s=rn(rn([],nn(s)),nn(L.errors)):s.push(L)}}}catch(L){r={error:L}}finally{try{T&&!T.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(s)throw new on(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Fr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&sn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&sn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),wr=Nt.EMPTY;function Mr(e){return e instanceof Nt||e&&"closed"in e&&he(e.remove)&&he(e.add)&&he(e.unsubscribe)}function Fr(e){he(e)?e():e.unsubscribe()}var gi={Promise:void 0},Ni={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,rn([e,t],nn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Oi(e){Ni.setTimeout(function(){throw e})}function Ur(){}function Ot(e){e()}var $r=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Mr(n)&&n.add(r)):r.destination=yi,r}return t.create=function(n,r,o){return new an(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Nt),bi=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){bt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){bt(r)}else bt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){bt(n)}},e})(),an=(function(e){gt(t,e);function t(n,r,o){var s=e.call(this)||this,i;return he(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new bi(i),s}return t})($r);function bt(e){Oi(e)}function vi(e){throw e}var yi={closed:!0,next:Ur,error:vi,complete:Ur},Li=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ti(e){return e}function Ii(e){return e.length===0?Ti:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Vr=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=Ci(t)?t:new an(t,n,r);return Ot(function(){var i=o,l=i.operator,u=i.source;s.add(l?l.call(s,u):u?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=jr(n),new n(function(o,s){var i=new an({next:function(l){try{t(l)}catch(u){s(u),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Li]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ii(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=jr(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e})();function jr(e){var t;return(t=e??gi.Promise)!==null&&t!==void 0?t:Promise}function Si(e){return e&&he(e.next)&&he(e.error)&&he(e.complete)}function Ci(e){return e&&e instanceof $r||Si(e)&&Mr(e)}var Ai=kr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wr=(function(e){gt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Br(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ai},t.prototype.next=function(n){var r=this;Ot(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=tn(r.currentObservers),l=i.next();!l.done;l=i.next()){var u=l.value;u.next(n)}}catch(m){o={error:m}}finally{try{l&&!l.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Ot(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ot(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,l=o.observers;return s||i?wr:(this.currentObservers=null,l.push(n),new Nt(function(){r.currentObservers=null,sn(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new Vr;return n.source=this,n},t.create=function(n,r){return new Br(n,r)},t})(Vr),Br=(function(e){gt(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:wr},t})(Wr);const Hr=new Wr;function Pi(){function e(t){Hr.next({key:"notify",type:"open",data:t})}return{Notify:e}}let vt=null;function Di(e){if(vt!==null){console.warn("[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored.");return}vt=e}function ye(){if(vt===null)throw new Error("[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first.");return vt}async function Ri(){return(await ye().get("/metadata/entities")).data}async function ki(){return(await ye().get("/metadata/routes")).data}const wi=()=>Mi(nt()),Mi=Dt("LinidConfigurationStore",{state:()=>({entities:[],apiEndpoints:[],loading:!1,error:null}),getters:{getEntityByName:e=>t=>e.entities.find(n=>n.name===t),getApiEndpointsByEntity:e=>t=>e.apiEndpoints.filter(n=>n.entity===t)},actions:{async fetchConfiguration(){this.loading=!0,this.error=null;try{const[e,t]=await Promise.all([Ri(),ki()]);this.entities=e,this.apiEndpoints=t}catch(e){this.error=e instanceof Error?e.message:"Failed to fetch configuration",console.error("[Linid CoreLib] Failed to fetch configuration:",e)}finally{this.loading=!1}}}}),Fi=()=>Ui(nt()),Ui=Dt("LinidUiStore",{state:()=>({mainNavigationItems:[]}),actions:{addMainNavigationMenuItems(...e){this.mainNavigationItems.push(...e)}}}),Gr=new Map;function $i(e){Gr.set(e.instanceId,e)}function $e(e){const t=Gr.get(e);if(!t)throw new Error(`[LinID CoreLib] No module host configuration found for instanceId: ${e}`);return t}async function Vi(e,t){const n=$e(e);return ye().post(`/${n.apiEndpoint}`,t).then(({data:r})=>r)}async function ji(e,t,n){const r=$e(e);return ye().put(`/${r.apiEndpoint}/${t}`,n).then(({data:o})=>o)}async function Wi(e,t,n){const r=$e(e);return ye().get(`/${r.apiEndpoint}`,{params:{...t,...n}}).then(({data:o})=>o)}async function Bi(e,t){const n=$e(e);return ye().get(`/${n.apiEndpoint}/${t}`).then(({data:r})=>r)}async function Hi(e,t){const n=$e(e);return ye().delete(`/${n.apiEndpoint}/${t}`)}function Yr(e,t){if(!xe(e)||!xe(t))return t;const n={...e};for(const r of Object.keys(t))n[r]=Yr(e[r],t[r]);return n}function Gi(e){const t={};for(const[n,r]of Object.entries(e)){const o=n.split(".");let s=t;o.forEach((i,l)=>{l===o.length-1?s[i]=r:(xe(s[i])||(s[i]={}),s=s[i])})}return t}function xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function xr(e,t){return typeof e!="object"||e===null?e:Object.fromEntries(Object.entries(e).map(([n,r])=>{const o=t(n),s=xe(r)?xr(r,t):r;return[o,s]}))}var Kr=(e=>(e.SETUP="setup",e.CONFIGURE="configure",e.INITIALIZE="initialize",e.READY="ready",e.POST_INIT="postInit",e))(Kr||{});class Yi{id;name;version;description;constructor(t,n,r,o){this.id=t,this.name=n,this.version=r,this.description=o}async setup(){return{success:!0}}async configure(t){return{success:!0}}async initialize(t){return{success:!0}}async ready(t){return{success:!0}}async postInit(t){return{success:!0}}}F.BasicRemoteModule=Yi,F.LinidZoneRenderer=ro,F.ModuleLifecyclePhase=Kr,F.deleteEntityById=Hi,F.fromDot=Gi,F.getEntities=Wi,F.getEntityById=Bi,F.getHttpClient=ye,F.getI18nInstance=Ar,F.getModuleFederation=hn,F.getModuleHostConfiguration=$e,F.getPiniaStore=nt,F.getUiDesign=Pr,F.isObject=xe,F.loadAsyncComponent=gn,F.merge=Yr,F.registerModuleHostConfiguration=$i,F.renameKeys=xr,F.saveEntity=Vi,F.setHttpClient=Di,F.setI18nInstance=di,F.setModuleFederation=Jr,F.setPiniaStore=to,F.setUiDesign=mi,F.uiEventSubject=Hr,F.updateEntity=ji,F.useLinidConfigurationStore=wi,F.useLinidUiStore=Fi,F.useLinidZoneStore=Tn,F.useNotify=Pi,F.usePagination=oo,F.useScopedI18n=_i,F.useUiDesign=hi,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/linid-im-front-corelib",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Core library of the LinID Identity Manager project. Provides shared types, services, components, and utilities for front-end and plugin, enabling consistent integration across the LinID ecosystem.",
5
5
  "type": "module",
6
6
  "files": [