Comparing version 9.3.0-beta.19 to 9.3.0-beta.20
/*! | ||
* vue-i18n v9.3.0-beta.19 | ||
* vue-i18n v9.3.0-beta.20 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e),CompileErrorCodes={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,__EXTEND_POINT__:15};function createCompileError(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF="\n",CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===CHAR_CR&&t[e+1]===CHAR_LF,l=e=>t[e]===CHAR_PS,i=e=>t[e]===CHAR_LS,c=e=>s(e)||(e=>t[e]===CHAR_LF)(e)||l(e)||i(e),u=e=>s(e)||l(e)||i(e)?CHAR_LF:t[e];function m(){return o=0,c(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:m,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)m();o=0}}}const EOF=void 0,LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(e,t={}){const n=!1!==t.location,r=createScanner(e),a=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),s=o(),l=a(),i={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>i,{onError:u}=t;function m(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=createLocation(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const f=e=>m(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(CompileErrorCodes.EXPECTED_TOKEN,o(),"")}function g(e){let t="";for(;e.currentPeek()===CHAR_SP||e.currentPeek()===CHAR_LF;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function C(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===CHAR_SP||r===CHAR_LF):o===CHAR_SP?(e.peek(),n(!0,CHAR_SP,a)):o!==CHAR_LF||(e.peek(),n(!0,CHAR_LF,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function N(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function T(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function v(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=T(e);)n+=t;return n}function I(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!C(e))break;t+=n,e.next()}else if(n===CHAR_SP||n===CHAR_LF)if(C(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function h(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return k(e,t,4);case"U":return k(e,t,6);default:return CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function k(e,t,n){p(e,t);let r="";for(let a=0;a<n;a++){const t=v(e);if(!t){CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function S(e){_(e);const t=p(e,"|");return _(e),t}function A(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=m(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(CompileErrorCodes.EMPTY_PLACEHOLDER,o()),e.next(),n=m(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=F(e,t)||f(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=m(t,1,S(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,y(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=m(t,5,function(e){_(e);let t="",n="";for(;t=N(e);)n+=t;return e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),_(e),n;if(a=E(e,t))return n=m(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=e.currentPeek()===LITERAL_DELIMITER;return e.resetPeek(),r}(e,t))return n=m(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>e!==LITERAL_DELIMITER&&e!==CHAR_LF;for(;t=L(e,r);)n+="\\"===t?h(e):t;const a=e.currentChar();return a===CHAR_LF||a===EOF?(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),a===CHAR_LF&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=m(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==CHAR_SP&&e!==CHAR_LF;for(;t=L(e,r);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==CHAR_LF&&a!==CHAR_SP||(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=m(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),m(t,9,".");case":":return _(e),e.next(),m(t,10,":");default:return b(e)?(r=m(t,1,S(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),m(t,12,function(e){let t="",n="";for(;t=N(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===CHAR_SP||!t)&&(t===CHAR_LF?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?A(e,t)||r:m(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===CHAR_SP?r:a===CHAR_LF?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,y(e,t))}}function y(e,t){let n={type:14};if(t.braceNest>0)return A(e,t)||f(t);if(t.inLinked)return F(e,t)||f(t);switch(e.currentChar()){case"{":return A(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return F(e,t)||f(t);default:if(b(e))return n=m(t,1,S(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=g(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?m(t,0,I(e)):m(t,4,function(e){_(e);const t=e.currentChar();return"%"!==t&&(CompileErrorCodes.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(C(e))return m(t,0,I(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=i;return i.lastType=e,i.lastOffset=t,i.lastStartLoc=n,i.lastEndLoc=s,i.offset=a(),i.startLoc=o(),r.currentChar()===EOF?m(i,14):y(r,i)},currentOffset:a,currentPosition:o,context:c}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function createParser(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(KNOWN_ESCAPES,fromEscapeSequence),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,getTokenCaption(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=i(e,o.value||"");break;default:CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const c=e.context(),u=r(7,c.offset,c.startLoc);return u.value="",a(u,c.offset,c.startLoc),n.key=u,a(n,c.offset,c.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(i(e,r.value||""));break;case 8:const a=c(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=u(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const i=r(1,t,n);i.cases=[],i.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),i.cases.push(t)}while(14!==s.currentType);return a(i,e.currentOffset(),e.currentPosition()),i}(e,n,o,s)}return{parse:function(n){const o=createTokenizer(n,assign({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),14!==s.currentType&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function getTokenCaption(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(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")}}function transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function i(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&i(t)},newline:function(){i(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(generateNode(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(generateNode(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(e,t);break;case 8:case 7:case 9:case 3: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)}}const generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],i=createCodeGenerator(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});i.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),l.length>0&&(i.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),i.newline()),i.push("return "),generateNode(i,e),i.deindent(s),i.push("}");const{code:c,map:u}=i.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function baseCompile(e,t={}){const n=assign({},t),r=createParser(n).parse(e);return transform(r,n),generate(r,n)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(e){if(null==e)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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let n,r,a,o,s,l,i,c=-1,u=0,m=0;const f=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=formatSubPath(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=getPathCharType(n),i=pathStateMachine[u],s=i[o]||i.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=f[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":e.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=e.list||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,s);function l(t){const n=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?isObject(r)?(s=r.modifier||s,o=r.type||o):isString(r)&&(s=r||s):2===n.length&&(isString(r)&&(s=r||s),isString(a)&&(o=a||o));let i=l(t)(u);return"vnode"===o&&isArray(i)&&s&&(i=i[0]),s?(c=s,e.modifiers?e.modifiers[c]:DEFAULT_MODIFIER)(i,o):i;var c},message:l,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i};return u}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString(n)?n:DEFAULT_LOCALE,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;isArray(e);)e=appendBlockToChain(o,e,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,isArray(e)&&appendBlockToChain(o,e,!1),a.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let a=0;a<t.length&&isBoolean(r);a++){const o=t[a];isString(o)&&(r=appendLocaleToChain(e,t[a],n))}return r}function appendLocaleToChain(e,t,n){let r;const a=t.split("-");do{r=appendItemToChain(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function appendItemToChain(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(isArray(n)||isPlainObject(n))&&n[a]&&(r=n[a])}return r}const VERSION$1="9.3.0-beta.19",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}let _cid=0;function createCoreContext(e={}){const t=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)?e.locale:DEFAULT_LOCALE,r=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=isPlainObject(e.messages)?e.messages:{[n]:{}},o=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},l=assign({},e.modifiers||{},getDefaultLinkedModifiers()),i=e.pluralRules||{},c=isFunction(e.missing)?e.missing:null,u=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,g=isFunction(e.postTranslation)?e.postTranslation:null,_=isPlainObject(e.processor)?e.processor:null,d=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,E=!!e.escapeParameter,b=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,C=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,L=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,N=isObject(e.fallbackContext)?e.fallbackContext:void 0,T=isFunction(e.onWarn)?e.onWarn:warn,v=e,O=isObject(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,I=isObject(v.__numberFormatters)?v.__numberFormatters:new Map,h=isObject(v.__meta)?v.__meta:{};_cid++;const k={version:t,cid:_cid,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:p,postTranslation:g,processor:_,warnHtmlMessage:d,escapeParameter:E,messageCompiler:b,messageResolver:C,localeFallbacker:L,fallbackContext:N,onWarn:T,__meta:h};return k.datetimeFormats=o,k.numberFormats=s,k.__datetimeFormatters=O,k.__numberFormatters=I,k}function handleMissing(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return isString(r)?r:t}return t}function updateFallbackLocale(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);function compileToFunction(e,t={}){{!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;let a=!1;const o=t.onError||defaultOnError;t.onError=e=>{a=!0,o(e)};const{code:s}=baseCompile(e,t),l=new Function(`return ${s}`)();return a?l:compileCache[n]=l}}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()},NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?o?i:()=>i:c.default:n?o?i:()=>i:"",_=n||""!==g,d=isString(c.locale)?c.locale:e.locale;f&&escapeParams(c);let[E,b,C]=p?[i,d,l[d]||{}]:resolveMessageFormat(e,i,d,s,m,u),L=E,N=i;if(p||isString(L)||isMessageFunction(L)||_&&(L=g,N=L),!(p||(isString(L)||isMessageFunction(L))&&isString(b)))return a?NOT_REOSLVED:i;let T=!1;const v=isMessageFunction(L)?L:compileMessageFormat(e,i,b,L,N,(()=>{T=!0}));if(T)return L;const O=evaluateMessage(e,v,createMessageContext(getMessageContextOptions(e,b,C,c)));return r?r(O,i):O}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:i,localeFallbacker:c}=e,u=c(e,r,n);let m,f={},p=null;for(let g=0;g<u.length&&(m=u[g],f=s[m]||{},null===(p=i(f,t))&&(p=f[t]),!isString(p)&&!isFunction(p));g++){const n=handleMissing(e,t,m,o,"translate");n!==t&&(p=n)}return[p,m,f]}function compileMessageFormat(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(isMessageFunction(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,getCompileOptions(e,n,a,r,l,o));return i.locale=n,i.key=t,i.source=r,i}function evaluateMessage(e,t,n){return t(n)}function parseTranslateArgs(...e){const[t,n,r]=e,a={};if(!isString(t)&&!isNumber(t)&&!isMessageFunction(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?a.plural=n:isString(n)?a.default=n:isPlainObject(n)&&!isEmptyObject(n)?a.named=n:isArray(n)&&(a.list=n),isNumber(r)?a.plural=r:isString(r)?a.default=r:isPlainObject(r)&&assign(a,r),[o,a]}function getCompileOptions(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>generateFormatCacheKey(t,n,e)}}function getMessageContextOptions(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:a,pluralRules:o,messages:r=>{let a=s(n,r);if(null==a&&u){const[,,e]=resolveMessageFormat(u,r,t,l,i,c);a=s(e,r)}if(isString(a)){let n=!1;const o=compileMessageFormat(e,r,t,a,r,(()=>{n=!0}));return n?NOOP_MESSAGE_FUNCTION:o}return isMessageFunction(a)?a:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),isNumber(r.plural)&&(m.pluralIndex=r.plural),m}function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[i,c,u,m]=parseDateTimeArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=isString(u.locale)?u.locale:e.locale,_=s(e,a,g);if(!isString(i)||""===i)return new Intl.DateTimeFormat(g,m).format(c);let d,E={},b=null;for(let N=0;N<_.length&&(d=_[N],E=n[d]||{},b=E[i],!isPlainObject(b));N++)handleMissing(e,i,d,f,"datetime format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:i;let C=`${d}__${i}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=l.get(C);return L||(L=new Intl.DateTimeFormat(d,assign({},b,m)),l.set(C,L)),p?L.formatToParts(c):L.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,a]=e,o={};let s,l={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const 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(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?l[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(l=r),isPlainObject(a)&&(l=a),[o.key||"",s,o,l]}function clearDateTimeFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[i,c,u,m]=parseNumberArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=isString(u.locale)?u.locale:e.locale,_=s(e,a,g);if(!isString(i)||""===i)return new Intl.NumberFormat(g,m).format(c);let d,E={},b=null;for(let N=0;N<_.length&&(d=_[N],E=n[d]||{},b=E[i],!isPlainObject(b));N++)handleMissing(e,i,d,f,"number format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:i;let C=`${d}__${i}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=l.get(C);return L||(L=new Intl.NumberFormat(d,assign({},b,m)),l.set(C,L)),p?L.formatToParts(c):L.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,a]=e,o={};let s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=t;return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(s=r),isPlainObject(a)&&(s=a),[o.key||"",l,o,s]}function clearNumberFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const VERSION="9.3.0-beta.19";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOption=makeSymbol("__injectWithOption"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],isObject(a[n[r]])&&handleFlatJson(a[n[r]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},deepCopy(n,s[t])):deepCopy(n,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==a&&o)for(const l in s)hasOwn(s,l)&&handleFlatJson(s[l]);return s}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const n in e)hasOwn(e,n)&&(isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:deepCopy(e[n],t[n]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),isObject(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(isObject(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}function createComposer(e={},t){const{__root:n}=e,r=void 0===n;let a=!isBoolean(e.inheritLocale)||e.inheritLocale;const o=ref(n&&a?n.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),s=ref(n&&a?n.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),l=ref(getLocaleMessages(o.value,e)),i=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[o.value]:{}});let u=n?n.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=n?n.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=n?n.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,p=!!e.fallbackFormat,g=isFunction(e.missing)?e.missing:null,_=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,d=isFunction(e.postTranslation)?e.postTranslation:null,E=n?n.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter;const C=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let L,N=e.pluralRules||n&&n.pluralRules;L=(()=>{const t={version:VERSION,locale:o.value,fallbackLocale:s.value,messages:l.value,modifiers:C,pluralRules:N,missing:null===_?void 0:_,missingWarn:u,fallbackWarn:m,fallbackFormat:p,unresolving:!0,postTranslation:null===d?void 0:d,warnHtmlMessage:E,escapeParameter:b,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=i.value,t.numberFormats=c.value,t.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0;return createCoreContext(t)})(),updateFallbackLocale(L,o.value,s.value);const T=computed({get:()=>o.value,set:e=>{o.value=e,L.locale=o.value}}),v=computed({get:()=>s.value,set:e=>{s.value=e,L.fallbackLocale=s.value,updateFallbackLocale(L,o.value,e)}}),O=computed((()=>l.value)),I=computed((()=>i.value)),h=computed((()=>c.value));const k=(e,t,r,a,u,m)=>{let p;if(o.value,s.value,l.value,i.value,c.value,p=e(L),isNumber(p)&&p===NOT_REOSLVED){const[e,r]=t();return n&&f?a(n):u(e)}if(m(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function S(...e){return k((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const A={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function F(e){return l.value[e]||{}}composerID++,n&&inBrowser&&(watch(n.locale,(e=>{a&&(o.value=e,L.locale=e,updateFallbackLocale(L,o.value,s.value))})),watch(n.fallbackLocale,(e=>{a&&(s.value=e,L.fallbackLocale=e,updateFallbackLocale(L,o.value,s.value))})));const y={id:composerID,locale:T,fallbackLocale:v,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&n&&(o.value=n.locale.value,s.value=n.fallbackLocale.value,updateFallbackLocale(L,o.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return C},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(e){u=e,L.missingWarn=u},get fallbackWarn(){return m},set fallbackWarn(e){m=e,L.fallbackWarn=m},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return p},set fallbackFormat(e){p=e,L.fallbackFormat=p},get warnHtmlMessage(){return E},set warnHtmlMessage(e){E=e,L.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,L.escapeParameter=e},t:S,getLocaleMessage:F,setLocaleMessage:function(e,t){l.value[e]=t,L.messages=l.value},mergeLocaleMessage:function(e,t){l.value[e]=l.value[e]||{},deepCopy(t,l.value[e]),L.messages=l.value},getPostTranslationHandler:function(){return isFunction(d)?d:null},setPostTranslationHandler:function(e){d=e,L.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(_=defineCoreMissingHandler(e)),g=e,L.missing=_},[SetPluralRulesSymbol]:function(e){N=e,L.pluralRules=N}};return y.datetimeFormats=I,y.numberFormats=h,y.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return S(t,n,assign({resolvedMessage:!0},r||{}))},y.te=function(e,t){const n=F(isString(t)?t:o.value);return null!==L.messageResolver(n,e)},y.tm=function(e){const t=function(e){let t=null;const n=fallbackWithLocaleChain(L,s.value,o.value);for(let r=0;r<n.length;r++){const a=l.value[n[r]]||{},o=L.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},y.d=function(...e){return k((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},y.n=function(...e){return k((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},y.getDateTimeFormat=function(e){return i.value[e]||{}},y.setDateTimeFormat=function(e,t){i.value[e]=t,L.datetimeFormats=i.value,clearDateTimeFormat(L,e,t)},y.mergeDateTimeFormat=function(e,t){i.value[e]=assign(i.value[e]||{},t),L.datetimeFormats=i.value,clearDateTimeFormat(L,e,t)},y.getNumberFormat=function(e){return c.value[e]||{}},y.setNumberFormat=function(e,t){c.value[e]=t,L.numberFormats=c.value,clearNumberFormat(L,e,t)},y.mergeNumberFormat=function(e,t){c.value[e]=assign(c.value[e]||{},t),L.numberFormats=c.value,clearNumberFormat(L,e,t)},y[InejctWithOption]=e.__injectWithOption,y[TranslateVNodeSymbol]=function(...e){return k((t=>{let n;const r=t;try{r.processor=A,n=Reflect.apply(translate,null,[r,...e])}finally{r.processor=null}return n}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},y[DatetimePartsSymbol]=function(...e){return k((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},y[NumberPartsSymbol]=function(...e){return k((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},y}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,a=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let g=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return assign(r,t[n]),e}),g||{})}const{__i18n:_,__root:d,__injectWithOption:E}=e,b=e.datetimeFormats,C=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:b,numberFormats:C,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:d,__injectWithOption:E}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),n={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,o={};let s=null,l=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=n;return isString(r)?o.locale=r:isArray(r)?s=r:isPlainObject(r)&&(l=r),isArray(a)?s=a:isPlainObject(a)&&(l=a),Reflect.apply(t.t,t,[i,s||l||{},o])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,o={plural:1};let s=null,l=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=n;return isString(r)?o.locale=r:isNumber(r)?o.plural=r:isArray(r)?s=r:isPlainObject(r)&&(l=r),isString(a)?o.locale=a:isArray(a)?s=a:isPlainObject(a)&&(l=a),Reflect.apply(t.t,t,[i,s||l||{},o])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(e){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,o),i=a[TranslateVNodeSymbol](e.keypath,l,s),c=assign({},r),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?assign({},t,{[r]:e.format[r]}):t),{}));const l=r(e.value,t,s);let i=[t.key];isArray(l)?i=l.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];return isVNode(r)&&(r[0].key=`${e.type}-${t}`),r})):isString(l)&&(i=[l]);const c=assign({},o),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>n[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>n[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const o=getComposer$1(e,n.$),s=parseValue(a);return[Reflect.apply(o.t,o,[...makeParams(s)]),o]};return{created:(n,r)=>{const[a,o]=t(r);inBrowser&&e.global===o&&(n.__i18nWatcher=watch(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=a},unmounted:e=>{inBrowser&&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){const n=e.__composer,r=parseValue(t);e.textContent=Reflect.apply(n.t,n,[...makeParams(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},l=r||{};return isString(n)&&(s.locale=n),isNumber(a)&&(s.plural=a),isNumber(o)&&(s.plural=o),[t,l,s]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!isBoolean(r.globalInstall)||r.globalInstall)&&(e.component(a?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(t))}function defineMixin(e,t,n){return{beforeCreate(){const r=getCurrentInstance();if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const n=a.i18n;a.__i18n&&(n.__i18n=a.__i18n),n.__root=t,this===this.$root?this.$i18n=mergeToRoot(e,n):(n.__injectWithOption=!0,this.$i18n=createVueI18n(n))}else a.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,a):this.$i18n=createVueI18n({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&adjustI18nResources(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(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}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=!isBoolean(e.legacy)||e.legacy,r=!isBoolean(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,o=new Map,[s,l]=createGlobal(e,n),i=makeSymbol("");{const e={get mode(){return n?"legacy":"composition"},get allowComposition(){return a},async install(t,...a){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(a[0])){const t=a[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!n&&r&&injectGlobalFields(t,e.global),apply(t,e,...a),n&&t.mixin(defineMixin(l,l.__composer,e));const o=t.unmount;t.unmount=()=>{e.dispose(),o()}},get global(){return l},dispose(){s.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),a=getComponentOptions(t),o=getScope(e,a);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,o,r,e)}if("global"===o)return adjustI18nResources(r,e,a),r;if("parent"===o){let a=getComposer(n,t,e.__useComponent);return null==a&&(a=r),a}const s=n;let l=s.__getInstance(t);if(null==l){const n=assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),l=createComposer(n),s.__composerExtend&&s.__composerExtend(l),setupLifeCycle(s,t),s.__setInstance(t,l)}return l}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,n){const r=effectScope();{const n=t?r.run((()=>createVueI18n(e))):r.run((()=>createComposer(e)));if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,n]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const a=t.root;let o=getParentComponentInstance(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[InejctWithOption]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){onMounted((()=>{}),t),onUnmounted((()=>{e.__deleteInstance(t)}),t)}function useI18nForLegacy(e,t,n,r={}){const a="local"===t,o=shallowRef(null);if(a&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=isBoolean(r.inheritLocale)?r.inheritLocale:!isString(r.locale),l=ref(!a||s?n.locale.value:isString(r.locale)?r.locale:DEFAULT_LOCALE),i=ref(!a||s?n.fallbackLocale.value:isString(r.fallbackLocale)||isArray(r.fallbackLocale)||isPlainObject(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:l.value),c=ref(getLocaleMessages(l.value,r)),u=ref(isPlainObject(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),m=ref(isPlainObject(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=a?n.missingWarn:!isBoolean(r.missingWarn)&&!isRegExp(r.missingWarn)||r.missingWarn,p=a?n.fallbackWarn:!isBoolean(r.fallbackWarn)&&!isRegExp(r.fallbackWarn)||r.fallbackWarn,g=a?n.fallbackRoot:!isBoolean(r.fallbackRoot)||r.fallbackRoot,_=!!r.fallbackFormat,d=isFunction(r.missing)?r.missing:null,E=isFunction(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:!isBoolean(r.warnHtmlMessage)||r.warnHtmlMessage,C=!!r.escapeParameter,L=a?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},N=r.pluralRules||a&&n.pluralRules;function T(e){return l.value,i.value,c.value,u.value,m.value,e()}const v={get id(){return o.value?o.value.id:-1},locale:computed({get:()=>o.value?o.value.locale.value:l.value,set:e=>{o.value&&(o.value.locale.value=e),l.value=e}}),fallbackLocale:computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>o.value?o.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:L},get pluralRules(){return o.value?o.value.pluralRules:N},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:p},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:g},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:_},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:b},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:C},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:function(...e){return o.value?T((()=>Reflect.apply(o.value.t,null,[...e]))):T((()=>""))},getPostTranslationHandler:function(){return o.value?o.value.getPostTranslationHandler():E},setPostTranslationHandler:function(e){o.value&&o.value.setPostTranslationHandler(e)},getMissingHandler:function(){return o.value?o.value.getMissingHandler():d},setMissingHandler:function(e){o.value&&o.value.setMissingHandler(e)},rt:function(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""},d:function(...e){return o.value?T((()=>Reflect.apply(o.value.d,null,[...e]))):T((()=>""))},n:function(...e){return o.value?T((()=>Reflect.apply(o.value.n,null,[...e]))):T((()=>""))},tm:function(e){return o.value?o.value.tm(e):{}},te:function(e,t){return!!o.value&&o.value.te(e,t)},getLocaleMessage:function(e){return o.value?o.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){o.value&&(o.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){o.value&&o.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return o.value?o.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){o.value&&(o.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return o.value?o.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){o.value&&(o.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){o.value&&o.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=o.value=e.proxy.$i18n.__composer;"global"===t?(l.value=n.locale.value,i.value=n.fallbackLocale.value,c.value=n.messages.value,u.value=n.datetimeFormats.value,m.value=n.numberFormats.value):a&&function(e){e.locale.value=l.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=C,e.fallbackFormat=_,e.fallbackRoot=g,e.fallbackWarn=p,e.missingWarn=f,e.warnHtmlMessage=b}(n)})),v}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);globalExportProps.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,globalExportMethods.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const CompileErrorCodes={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,__EXTEND_POINT__:15};function createCompileError(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF="\n",CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===CHAR_CR&&t[e+1]===CHAR_LF,l=e=>t[e]===CHAR_PS,i=e=>t[e]===CHAR_LS,c=e=>s(e)||(e=>t[e]===CHAR_LF)(e)||l(e)||i(e),u=e=>s(e)||l(e)||i(e)?CHAR_LF:t[e];function m(){return o=0,c(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:m,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)m();o=0}}}const EOF=void 0,LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(e,t={}){const n=!1!==t.location,r=createScanner(e),a=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),s=o(),l=a(),i={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>i,{onError:u}=t;function m(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=createLocation(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const f=e=>m(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(CompileErrorCodes.EXPECTED_TOKEN,o(),"")}function g(e){let t="";for(;e.currentPeek()===CHAR_SP||e.currentPeek()===CHAR_LF;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function C(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===CHAR_SP||r===CHAR_LF):o===CHAR_SP?(e.peek(),n(!0,CHAR_SP,a)):o!==CHAR_LF||(e.peek(),n(!0,CHAR_LF,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function N(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function T(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function O(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function h(e){let t="",n="";for(;t=T(e);)n+=t;return n}function v(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!C(e))break;t+=n,e.next()}else if(n===CHAR_SP||n===CHAR_LF)if(C(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function I(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return S(e,t,4);case"U":return S(e,t,6);default:return CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function S(e,t,n){p(e,t);let r="";for(let a=0;a<n;a++){const t=O(e);if(!t){CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function k(e){_(e);const t=p(e,"|");return _(e),t}function A(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=m(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(CompileErrorCodes.EMPTY_PLACEHOLDER,o()),e.next(),n=m(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=y(e,t)||f(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=m(t,1,k(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,F(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=m(t,5,function(e){_(e);let t="",n="";for(;t=N(e);)n+=t;return e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),_(e),n;if(a=E(e,t))return n=m(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${h(e)}`):t+=h(e),e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=e.currentPeek()===LITERAL_DELIMITER;return e.resetPeek(),r}(e,t))return n=m(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>e!==LITERAL_DELIMITER&&e!==CHAR_LF;for(;t=L(e,r);)n+="\\"===t?I(e):t;const a=e.currentChar();return a===CHAR_LF||a===EOF?(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),a===CHAR_LF&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=m(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==CHAR_SP&&e!==CHAR_LF;for(;t=L(e,r);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n}return n}function y(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==CHAR_LF&&a!==CHAR_SP||(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=m(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),m(t,9,".");case":":return _(e),e.next(),m(t,10,":");default:return b(e)?(r=m(t,1,k(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),y(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),m(t,12,function(e){let t="",n="";for(;t=N(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===CHAR_SP||!t)&&(t===CHAR_LF?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?A(e,t)||r:m(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===CHAR_SP?r:a===CHAR_LF?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,F(e,t))}}function F(e,t){let n={type:14};if(t.braceNest>0)return A(e,t)||f(t);if(t.inLinked)return y(e,t)||f(t);switch(e.currentChar()){case"{":return A(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return y(e,t)||f(t);default:if(b(e))return n=m(t,1,k(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=g(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?m(t,0,v(e)):m(t,4,function(e){_(e);const t=e.currentChar();return"%"!==t&&(CompileErrorCodes.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(C(e))return m(t,0,v(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=i;return i.lastType=e,i.lastOffset=t,i.lastStartLoc=n,i.lastEndLoc=s,i.offset=a(),i.startLoc=o(),r.currentChar()===EOF?m(i,14):F(r,i)},currentOffset:a,currentPosition:o,context:c}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function createParser(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(e,n,r,a){a&&(e.type=a),t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(KNOWN_ESCAPES,fromEscapeSequence),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 12!==t.type?(CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,getTokenCaption(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=i(e,o.value||"");break;default:CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const c=e.context(),u=r(7,c.offset,c.startLoc);return u.value="",a(u,c.offset,c.startLoc),n.key=u,a(n,c.offset,c.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(i(e,r.value||""));break;case 8:const a=c(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=u(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const i=r(1,t,n);i.cases=[],i.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),i.cases.push(t)}while(14!==s.currentType);return a(i,e.currentOffset(),e.currentPosition()),i}(e,n,o,s)}return{parse:function(n){const o=createTokenizer(n,assign({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),14!==s.currentType&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function getTokenCaption(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(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")}}function transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function optimize(e){const t=e.body;return 2===t.type?optimizeMessageNode(t):t.cases.forEach((e=>optimizeMessageNode(e))),e}function optimizeMessageNode(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;t.push(r.value)}t.length===e.items.length&&(e.static=join(t))}}function createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};s&&e.loc&&(l.source=e.loc.source);function i(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";i(o?n+" ".repeat(e):n)}return{context:()=>l,push:i,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(generateNode(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(generateNode(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(e,t);break;case 8:case 7:case 9:case 3: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)}}const generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],i=createCodeGenerator(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});i.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),l.length>0&&(i.push(`const { ${join(l.map((e=>`${e}: _${e}`)),", ")} } = ctx`),i.newline()),i.push("return "),generateNode(i,e),i.deindent(s),i.push("}"),delete e.helpers;const{code:c,map:u}=i.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign({},t),r=!!n.jit,a=null==n.optimize||n.optimize,o=createParser(n).parse(e);return r?(a&&optimize(o),{ast:o,code:""}):(transform(o,n),a&&optimize(o),generate(o,n))}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(e){if(null==e)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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let n,r,a,o,s,l,i,c=-1,u=0,m=0;const f=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=formatSubPath(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=getPathCharType(n),i=pathStateMachine[u],s=i[o]||i.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=f[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=e.list||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,s);function l(t){const n=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?isObject(r)?(s=r.modifier||s,o=r.type||o):isString(r)&&(s=r||s):2===n.length&&(isString(r)&&(s=r||s),isString(a)&&(o=a||o));const i=l(t)(u),c="vnode"===o&&isArray(i)&&s?i[0]:i;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,o):c;var m},message:l,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i};return u}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString(n)?n:DEFAULT_LOCALE,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;isArray(e);)e=appendBlockToChain(o,e,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,isArray(e)&&appendBlockToChain(o,e,!1),a.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let a=0;a<t.length&&isBoolean(r);a++){const o=t[a];isString(o)&&(r=appendLocaleToChain(e,t[a],n))}return r}function appendLocaleToChain(e,t,n){let r;const a=t.split("-");do{r=appendItemToChain(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function appendItemToChain(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(isArray(n)||isPlainObject(n))&&n[a]&&(r=n[a])}return r}const VERSION$1="9.3.0-beta.20",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}let _cid=0;function createCoreContext(e={}){const t=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)?e.locale:DEFAULT_LOCALE,r=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=isPlainObject(e.messages)?e.messages:{[n]:{}},o=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},l=assign({},e.modifiers||{},getDefaultLinkedModifiers()),i=e.pluralRules||{},c=isFunction(e.missing)?e.missing:null,u=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,g=isFunction(e.postTranslation)?e.postTranslation:null,_=isPlainObject(e.processor)?e.processor:null,d=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,E=!!e.escapeParameter,b=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,C=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,L=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,N=isObject(e.fallbackContext)?e.fallbackContext:void 0,T=isFunction(e.onWarn)?e.onWarn:warn,O=e,h=isObject(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,v=isObject(O.__numberFormatters)?O.__numberFormatters:new Map,I=isObject(O.__meta)?O.__meta:{};_cid++;const S={version:t,cid:_cid,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:p,postTranslation:g,processor:_,warnHtmlMessage:d,escapeParameter:E,messageCompiler:b,messageResolver:C,localeFallbacker:L,fallbackContext:N,onWarn:T,__meta:I};return S.datetimeFormats=o,S.numberFormats=s,S.__datetimeFormatters=h,S.__numberFormatters=v,S}function handleMissing(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return isString(r)?r:t}return t}function updateFallbackLocale(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_AST:inc$1(),__EXTEND_POINT__:inc$1()},defaultOnCacheKey=e=>e;let compileCache=Object.create(null);function baseCompile(e,t={}){let n=!1;const r=t.onError||defaultOnError;return t.onError=e=>{n=!0,r(e)},{...baseCompile$1(e,t),detectError:n}}function compileToFunction(e,t={}){if(!isString(e))throw Error(CoreErrorCodes.NOT_SUPPORT_AST);{!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{code:a,detectError:o}=baseCompile(e,t),s=new Function(`return ${a}`)();return o?s:compileCache[n]=s}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e),isMessageAST=e=>isObject(e)&&0===e.type&&"body"in e;function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?o?i:()=>i:c.default:n?o?i:()=>i:"",_=n||""!==g,d=isString(c.locale)?c.locale:e.locale;f&&escapeParams(c);let[E,b,C]=p?[i,d,l[d]||{}]:resolveMessageFormat(e,i,d,s,m,u),L=E,N=i;if(p||isString(L)||isMessageAST(L)||isMessageFunction(L)||_&&(L=g,N=L),!(p||(isString(L)||isMessageAST(L)||isMessageFunction(L))&&isString(b)))return a?NOT_REOSLVED:i;let T=!1;const O=isMessageFunction(L)?L:compileMessageFormat(e,i,b,L,N,(()=>{T=!0}));if(T)return L;const h=evaluateMessage(e,O,createMessageContext(getMessageContextOptions(e,b,C,c)));return r?r(h,i):h}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:i,localeFallbacker:c}=e,u=c(e,r,n);let m,f={},p=null;for(let g=0;g<u.length&&(m=u[g],f=s[m]||{},null===(p=i(f,t))&&(p=f[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));g++){const n=handleMissing(e,t,m,o,"translate");n!==t&&(p=n)}return[p,m,f]}function compileMessageFormat(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(isMessageFunction(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,getCompileOptions(e,n,a,r,l,o));return i.locale=n,i.key=t,i.source=r,i}function evaluateMessage(e,t,n){return t(n)}function parseTranslateArgs(...e){const[t,n,r]=e,a={};if(!isString(t)&&!isNumber(t)&&!isMessageFunction(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?a.plural=n:isString(n)?a.default=n:isPlainObject(n)&&!isEmptyObject(n)?a.named=n:isArray(n)&&(a.list=n),isNumber(r)?a.plural=r:isString(r)?a.default=r:isPlainObject(r)&&assign(a,r),[o,a]}function getCompileOptions(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>generateFormatCacheKey(t,n,e)}}function getMessageContextOptions(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:a,pluralRules:o,messages:r=>{let a=s(n,r);if(null==a&&u){const[,,e]=resolveMessageFormat(u,r,t,l,i,c);a=s(e,r)}if(isString(a)||isMessageAST(a)){let n=!1;const o=compileMessageFormat(e,r,t,a,r,(()=>{n=!0}));return n?NOOP_MESSAGE_FUNCTION:o}return isMessageFunction(a)?a:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),isNumber(r.plural)&&(m.pluralIndex=r.plural),m}function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[i,c,u,m]=parseDateTimeArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=isString(u.locale)?u.locale:e.locale,_=s(e,a,g);if(!isString(i)||""===i)return new Intl.DateTimeFormat(g,m).format(c);let d,E={},b=null;for(let N=0;N<_.length&&(d=_[N],E=n[d]||{},b=E[i],!isPlainObject(b));N++)handleMissing(e,i,d,f,"datetime format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:i;let C=`${d}__${i}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=l.get(C);return L||(L=new Intl.DateTimeFormat(d,assign({},b,m)),l.set(C,L)),p?L.formatToParts(c):L.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,a]=e,o={};let s,l={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const 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(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?l[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(l=r),isPlainObject(a)&&(l=a),[o.key||"",s,o,l]}function clearDateTimeFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[i,c,u,m]=parseNumberArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=isString(u.locale)?u.locale:e.locale,_=s(e,a,g);if(!isString(i)||""===i)return new Intl.NumberFormat(g,m).format(c);let d,E={},b=null;for(let N=0;N<_.length&&(d=_[N],E=n[d]||{},b=E[i],!isPlainObject(b));N++)handleMissing(e,i,d,f,"number format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:i;let C=`${d}__${i}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=l.get(C);return L||(L=new Intl.NumberFormat(d,assign({},b,m)),l.set(C,L)),p?L.formatToParts(c):L.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,a]=e,o={};let s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=t;return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(s=r),isPlainObject(a)&&(s=a),[o.key||"",l,o,s]}function clearNumberFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const VERSION="9.3.0-beta.20";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOption=makeSymbol("__injectWithOption"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]={}),!isObject(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),isObject(a[n[r]])&&handleFlatJson(a[n[r]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},deepCopy(n,s[t])):deepCopy(n,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==a&&o)for(const l in s)hasOwn(s,l)&&handleFlatJson(s[l]);return s}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const n in e)hasOwn(e,n)&&(isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:deepCopy(e[n],t[n]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),isObject(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(isObject(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}function createComposer(e={},t){const{__root:n}=e,r=void 0===n;let a=!isBoolean(e.inheritLocale)||e.inheritLocale;const o=ref(n&&a?n.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),s=ref(n&&a?n.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),l=ref(getLocaleMessages(o.value,e)),i=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[o.value]:{}});let u=n?n.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=n?n.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=n?n.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,p=!!e.fallbackFormat,g=isFunction(e.missing)?e.missing:null,_=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,d=isFunction(e.postTranslation)?e.postTranslation:null,E=n?n.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter;const C=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let L,N=e.pluralRules||n&&n.pluralRules;L=(()=>{const t={version:VERSION,locale:o.value,fallbackLocale:s.value,messages:l.value,modifiers:C,pluralRules:N,missing:null===_?void 0:_,missingWarn:u,fallbackWarn:m,fallbackFormat:p,unresolving:!0,postTranslation:null===d?void 0:d,warnHtmlMessage:E,escapeParameter:b,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=i.value,t.numberFormats=c.value,t.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0;return createCoreContext(t)})(),updateFallbackLocale(L,o.value,s.value);const T=computed({get:()=>o.value,set:e=>{o.value=e,L.locale=o.value}}),O=computed({get:()=>s.value,set:e=>{s.value=e,L.fallbackLocale=s.value,updateFallbackLocale(L,o.value,e)}}),h=computed((()=>l.value)),v=computed((()=>i.value)),I=computed((()=>c.value));const S=(e,t,r,a,u,m)=>{let p;if(o.value,s.value,l.value,i.value,c.value,p=e(L),isNumber(p)&&p===NOT_REOSLVED){const[e,r]=t();return n&&f?a(n):u(e)}if(m(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function k(...e){return S((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const A={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function y(e){return l.value[e]||{}}composerID++,n&&inBrowser&&(watch(n.locale,(e=>{a&&(o.value=e,L.locale=e,updateFallbackLocale(L,o.value,s.value))})),watch(n.fallbackLocale,(e=>{a&&(s.value=e,L.fallbackLocale=e,updateFallbackLocale(L,o.value,s.value))})));const F={id:composerID,locale:T,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&n&&(o.value=n.locale.value,s.value=n.fallbackLocale.value,updateFallbackLocale(L,o.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:h,get modifiers(){return C},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(e){u=e,L.missingWarn=u},get fallbackWarn(){return m},set fallbackWarn(e){m=e,L.fallbackWarn=m},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return p},set fallbackFormat(e){p=e,L.fallbackFormat=p},get warnHtmlMessage(){return E},set warnHtmlMessage(e){E=e,L.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,L.escapeParameter=e},t:k,getLocaleMessage:y,setLocaleMessage:function(e,t){l.value[e]=t,L.messages=l.value},mergeLocaleMessage:function(e,t){l.value[e]=l.value[e]||{},deepCopy(t,l.value[e]),L.messages=l.value},getPostTranslationHandler:function(){return isFunction(d)?d:null},setPostTranslationHandler:function(e){d=e,L.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(_=defineCoreMissingHandler(e)),g=e,L.missing=_},[SetPluralRulesSymbol]:function(e){N=e,L.pluralRules=N}};return F.datetimeFormats=v,F.numberFormats=I,F.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return k(t,n,assign({resolvedMessage:!0},r||{}))},F.te=function(e,t){const n=y(isString(t)?t:o.value);return null!==L.messageResolver(n,e)},F.tm=function(e){const t=function(e){let t=null;const n=fallbackWithLocaleChain(L,s.value,o.value);for(let r=0;r<n.length;r++){const a=l.value[n[r]]||{},o=L.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},F.d=function(...e){return S((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},F.n=function(...e){return S((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},F.getDateTimeFormat=function(e){return i.value[e]||{}},F.setDateTimeFormat=function(e,t){i.value[e]=t,L.datetimeFormats=i.value,clearDateTimeFormat(L,e,t)},F.mergeDateTimeFormat=function(e,t){i.value[e]=assign(i.value[e]||{},t),L.datetimeFormats=i.value,clearDateTimeFormat(L,e,t)},F.getNumberFormat=function(e){return c.value[e]||{}},F.setNumberFormat=function(e,t){c.value[e]=t,L.numberFormats=c.value,clearNumberFormat(L,e,t)},F.mergeNumberFormat=function(e,t){c.value[e]=assign(c.value[e]||{},t),L.numberFormats=c.value,clearNumberFormat(L,e,t)},F[InejctWithOption]=e.__injectWithOption,F[TranslateVNodeSymbol]=function(...e){return S((t=>{let n;const r=t;try{r.processor=A,n=Reflect.apply(translate,null,[r,...e])}finally{r.processor=null}return n}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},F[DatetimePartsSymbol]=function(...e){return S((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},F[NumberPartsSymbol]=function(...e){return S((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},F}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,a=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let g=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return assign(r,t[n]),e}),g||{})}const{__i18n:_,__root:d,__injectWithOption:E}=e,b=e.datetimeFormats,C=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:b,numberFormats:C,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:d,__injectWithOption:E}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),n={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,o={};let s=null,l=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=n;return isString(r)?o.locale=r:isArray(r)?s=r:isPlainObject(r)&&(l=r),isArray(a)?s=a:isPlainObject(a)&&(l=a),Reflect.apply(t.t,t,[i,s||l||{},o])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,o={plural:1};let s=null,l=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=n;return isString(r)?o.locale=r:isNumber(r)?o.plural=r:isArray(r)?s=r:isPlainObject(r)&&(l=r),isString(a)?o.locale=a:isArray(a)?s=a:isPlainObject(a)&&(l=a),Reflect.apply(t.t,t,[i,s||l||{},o])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(e){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,o),i=a[TranslateVNodeSymbol](e.keypath,l,s),c=assign({},r),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?assign({},t,{[r]:e.format[r]}):t),{}));const l=r(e.value,t,s);let i=[t.key];isArray(l)?i=l.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];return isVNode(r)&&(r[0].key=`${e.type}-${t}`),r})):isString(l)&&(i=[l]);const c=assign({},o),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>n[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>n[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const o=getComposer$1(e,n.$),s=parseValue(a);return[Reflect.apply(o.t,o,[...makeParams(s)]),o]};return{created:(n,r)=>{const[a,o]=t(r);inBrowser&&e.global===o&&(n.__i18nWatcher=watch(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=a},unmounted:e=>{inBrowser&&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){const n=e.__composer,r=parseValue(t);e.textContent=Reflect.apply(n.t,n,[...makeParams(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},l=r||{};return isString(n)&&(s.locale=n),isNumber(a)&&(s.plural=a),isNumber(o)&&(s.plural=o),[t,l,s]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!isBoolean(r.globalInstall)||r.globalInstall)&&([a?"i18n":Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}function defineMixin(e,t,n){return{beforeCreate(){const r=getCurrentInstance();if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const n=a.i18n;a.__i18n&&(n.__i18n=a.__i18n),n.__root=t,this===this.$root?this.$i18n=mergeToRoot(e,n):(n.__injectWithOption=!0,this.$i18n=createVueI18n(n))}else a.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,a):this.$i18n=createVueI18n({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&adjustI18nResources(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(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}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=!isBoolean(e.legacy)||e.legacy,r=!isBoolean(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,o=new Map,[s,l]=createGlobal(e,n),i=makeSymbol("");{const e={get mode(){return n?"legacy":"composition"},get allowComposition(){return a},async install(t,...a){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(a[0])){const t=a[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!n&&r&&injectGlobalFields(t,e.global),apply(t,e,...a),n&&t.mixin(defineMixin(l,l.__composer,e));const o=t.unmount;t.unmount=()=>{e.dispose(),o()}},get global(){return l},dispose(){s.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),a=getComponentOptions(t),o=getScope(e,a);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,o,r,e)}if("global"===o)return adjustI18nResources(r,e,a),r;if("parent"===o){let a=getComposer(n,t,e.__useComponent);return null==a&&(a=r),a}const s=n;let l=s.__getInstance(t);if(null==l){const n=assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),l=createComposer(n),s.__composerExtend&&s.__composerExtend(l),setupLifeCycle(s,t),s.__setInstance(t,l)}return l}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,n){const r=effectScope();{const n=t?r.run((()=>createVueI18n(e))):r.run((()=>createComposer(e)));if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,n]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const a=t.root;let o=getParentComponentInstance(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[InejctWithOption]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){onMounted((()=>{}),t),onUnmounted((()=>{e.__deleteInstance(t)}),t)}function useI18nForLegacy(e,t,n,r={}){const a="local"===t,o=shallowRef(null);if(a&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=isBoolean(r.inheritLocale)?r.inheritLocale:!isString(r.locale),l=ref(!a||s?n.locale.value:isString(r.locale)?r.locale:DEFAULT_LOCALE),i=ref(!a||s?n.fallbackLocale.value:isString(r.fallbackLocale)||isArray(r.fallbackLocale)||isPlainObject(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:l.value),c=ref(getLocaleMessages(l.value,r)),u=ref(isPlainObject(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),m=ref(isPlainObject(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=a?n.missingWarn:!isBoolean(r.missingWarn)&&!isRegExp(r.missingWarn)||r.missingWarn,p=a?n.fallbackWarn:!isBoolean(r.fallbackWarn)&&!isRegExp(r.fallbackWarn)||r.fallbackWarn,g=a?n.fallbackRoot:!isBoolean(r.fallbackRoot)||r.fallbackRoot,_=!!r.fallbackFormat,d=isFunction(r.missing)?r.missing:null,E=isFunction(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:!isBoolean(r.warnHtmlMessage)||r.warnHtmlMessage,C=!!r.escapeParameter,L=a?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},N=r.pluralRules||a&&n.pluralRules;function T(e){return l.value,i.value,c.value,u.value,m.value,e()}const O={get id(){return o.value?o.value.id:-1},locale:computed({get:()=>o.value?o.value.locale.value:l.value,set:e=>{o.value&&(o.value.locale.value=e),l.value=e}}),fallbackLocale:computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>o.value?o.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:L},get pluralRules(){return o.value?o.value.pluralRules:N},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:p},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:g},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:_},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:b},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:C},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:function(...e){return o.value?T((()=>Reflect.apply(o.value.t,null,[...e]))):T((()=>""))},getPostTranslationHandler:function(){return o.value?o.value.getPostTranslationHandler():E},setPostTranslationHandler:function(e){o.value&&o.value.setPostTranslationHandler(e)},getMissingHandler:function(){return o.value?o.value.getMissingHandler():d},setMissingHandler:function(e){o.value&&o.value.setMissingHandler(e)},rt:function(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""},d:function(...e){return o.value?T((()=>Reflect.apply(o.value.d,null,[...e]))):T((()=>""))},n:function(...e){return o.value?T((()=>Reflect.apply(o.value.n,null,[...e]))):T((()=>""))},tm:function(e){return o.value?o.value.tm(e):{}},te:function(e,t){return!!o.value&&o.value.te(e,t)},getLocaleMessage:function(e){return o.value?o.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){o.value&&(o.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){o.value&&o.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return o.value?o.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){o.value&&(o.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return o.value?o.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){o.value&&(o.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){o.value&&o.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=o.value=e.proxy.$i18n.__composer;"global"===t?(l.value=n.locale.value,i.value=n.fallbackLocale.value,c.value=n.messages.value,u.value=n.datetimeFormats.value,m.value=n.numberFormats.value):a&&function(e){e.locale.value=l.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=C,e.fallbackFormat=_,e.fallbackRoot=g,e.fallbackWarn=p,e.missingWarn=f,e.warnHtmlMessage=b}(n)})),O}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);globalExportProps.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,globalExportMethods.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; |
/*! | ||
* vue-i18n v9.3.0-beta.19 | ||
* vue-i18n v9.3.0-beta.20 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>l({l:e,k:t,s:n}),l=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===k(e),c=e=>"[object RegExp]"===k(e),u=e=>h(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const f=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _=Object.prototype.hasOwnProperty;function p(e,t){return _.call(e,t)}const g=Array.isArray,d=e=>"function"==typeof e,E=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,L=Object.prototype.toString,k=e=>L.call(e),h=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},N={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,__EXTEND_POINT__:15};function T(e,t,n={}){const{domain:r,messages:a,args:l}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function I(e){throw e}function y(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const C=" ",O="\r",A="\n",P=String.fromCharCode(8232),F=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>t[e]===O&&t[e+1]===A,s=e=>t[e]===F,c=e=>t[e]===P,u=e=>o(e)||(e=>t[e]===A)(e)||s(e)||c(e),i=e=>o(e)||s(e)||c(e)?A:t[e];function f(){return l=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const D=void 0,S="'";function M(e,t={}){const n=!1!==t.location,r=R(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=y(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(N.EXPECTED_TOKEN,l(),"")}function p(e){let t="";for(;e.currentPeek()===C||e.currentPeek()===A;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=p(e);return e.skipToPeek(),t}function d(e){if(e===D)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===D)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function v(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,r="",a=!1)=>{const l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(r===C||r===A):l===C?(e.peek(),n(!0,C,a)):l!==A||(e.peek(),n(!0,A,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===D?D:t(n)?(e.next(),n):null}function k(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function h(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function I(e){let t="",n="";for(;t=h(e);)n+=t;return n}function O(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===C||n===A)if(b(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return N.UNKNOWN_ESCAPE_SEQUENCE,l(),""}}function F(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=T(e);if(!t){N.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function M(e){g(e);const t=_(e,"|");return g(e),t}function w(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(N.NOT_ALLOW_NEST_PLACEHOLDER,l()),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(N.EMPTY_PLACEHOLDER,l()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(N.UNTERMINATED_CLOSING_BRACE,l()),n=W(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(v(e))return t.braceNest>0&&(N.UNTERMINATED_CLOSING_BRACE,l()),n=f(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return N.UNTERMINATED_CLOSING_BRACE,l(),t.braceNest=0,x(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===D&&(N.UNTERMINATED_CLOSING_BRACE,l()),n}(e)),g(e),n;if(a=E(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${I(e)}`):t+=I(e),e.currentChar()===D&&(N.UNTERMINATED_CLOSING_BRACE,l()),t}(e)),g(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===S;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){g(e),_(e,"'");let t="",n="";const r=e=>e!==S&&e!==A;for(;t=L(e,r);)n+="\\"===t?P(e):t;const a=e.currentChar();return a===A||a===D?(N.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),a===A&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==C&&e!==A;for(;t=L(e,r);)n+=t;return n}(e)),N.INVALID_TOKEN_IN_PLACEHOLDER,l(),n.value,g(e),n}return n}function W(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==A&&a!==C||(N.INVALID_LINKED_FORMAT,l()),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return v(e)?(r=f(t,1,M(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),W(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),f(t,12,function(e){let t="",n="";for(;t=k(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===C||!t)&&(t===A?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?w(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===C?r:a===A?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(N.INVALID_LINKED_FORMAT,l()),t.braceNest=0,t.inLinked=!1,x(e,t))}}function x(e,t){let n={type:14};if(t.braceNest>0)return w(e,t)||m(t);if(t.inLinked)return W(e,t)||m(t);switch(e.currentChar()){case"{":return w(e,t)||m(t);case"}":return N.UNBALANCED_CLOSING_BRACE,l(),e.next(),f(t,3,"}");case"@":return W(e,t)||m(t);default:if(v(e))return n=f(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=p(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,O(e)):f(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&(N.EXPECTED_TOKEN,l()),e.next(),"%"}(e));if(b(e))return f(t,0,O(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===D?f(c,14):x(r,c)},currentOffset:a,currentPosition:l,context:u}}const w=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function x(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function l(e,t){const n=e.context(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(w,W),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(N.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,U(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(l)),n.key=c(e,l.value||"");break;default:N.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken:l,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function i(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(N.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,U(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:l}=t,o=i(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=i(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=M(n,f({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(l),14!==o.currentType&&(N.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function U(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function $(e,t){for(let n=0;n<e.length;n++)H(e[n],t)}function H(e,t){switch(e.type){case 1:$(e.cases,t),t.helper("plural");break;case 2:$(e.items,t);break;case 6:H(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")}}function V(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&H(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function j(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?j(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(j(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let l=0;l<a&&(j(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),j(e,t.key),t.modifier?(e.push(", "),j(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}const X=(e,t={})=>{const n=E(t.mode)?t.mode:"normal",r=E(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function s(e,t){o.code+=e}function c(e,t=!0){const n=t?a:"";s(l?n+" ".repeat(e):n)}return{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&c(t)},newline:function(){c(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),j(c,e),c.deindent(o),c.push("}");const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}};const G=[];G[0]={w:[0],i:[3,0],"[":[4],o:[7]},G[1]={w:[1],".":[2],"[":[4],o:[7]},G[2]={w:[2],i:[3,0],0:[3,0]},G[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},G[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},G[5]={"'":[4,0],o:8,l:[5,0]},G[6]={'"':[4,0],o:8,l:[6,0]};const Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function B(e){if(null==e)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 K(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Y.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const z=new Map;function J(e,t){return b(e)?e[t]:null}const Q=e=>e,q=e=>"",Z="text",ee=e=>0===e.length?"":e.join(""),te=e=>null==e?"":g(e)||h(e)&&e.toString===L?JSON.stringify(e,null,2):String(e);function ne(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function re(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&E(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ne,a=b(e.pluralRules)&&E(t)&&d(e.pluralRules[t])?ne:void 0,l=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=d(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):q)}const u=h(e.processor)&&d(e.processor.normalize)?e.processor.normalize:ee,i=h(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:te,f={list:e=>l[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let l="text",o="";1===n.length?b(r)?(o=r.modifier||o,l=r.type||l):E(r)&&(o=r||o):2===n.length&&(E(r)&&(o=r||o),E(a)&&(l=a||l));let s=c(t)(f);return"vnode"===l&&g(s)&&o&&(s=s[0]),o?(u=o,e.modifiers?e.modifiers[u]:Q)(s,l):s;var u},message:c,type:h(e.processor)&&E(e.processor.type)?e.processor.type:Z,interpolate:i,normalize:u};return f}function ae(e,t,n){return[...new Set([n,...g(t)?t:b(t)?Object.keys(t):E(t)?[t]:[n]])]}function le(e,t,n){const r=E(n)?n:fe,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;g(e);)e=oe(l,e,t);const o=g(t)||!h(t)?t:t.default?t.default:null;e=E(o)?[o]:o,g(e)&&oe(l,e,!1),a.__localeChainCache.set(r,l)}return l}function oe(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const l=t[a];E(l)&&(r=se(e,t[a],n))}return r}function se(e,t,n){let r;const a=t.split("-");do{r=ce(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ce(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(g(n)||h(n))&&n[a]&&(r=n[a])}return r}const ue="9.3.0-beta.19",ie=-1,fe="en-US",me="",_e=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let pe,ge,de;let Ee=0;function ve(e={}){const t=E(e.version)?e.version:ue,n=E(e.locale)?e.locale:fe,r=g(e.fallbackLocale)||h(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=h(e.messages)?e.messages:{[n]:{}},l=h(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=h(e.numberFormats)?e.numberFormats:{[n]:{}},s=f({},e.modifiers||{},{upper:(e,t)=>"text"===t&&E(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&E(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&E(e)?_e(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?_e(e.children):e}),u=e.pluralRules||{},m=d(e.missing)?e.missing:null,_=!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,p=!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,k=!!e.unresolving,N=d(e.postTranslation)?e.postTranslation:null,T=h(e.processor)?e.processor:null,I=!v(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,C=d(e.messageCompiler)?e.messageCompiler:pe,O=d(e.messageResolver)?e.messageResolver:ge||J,A=d(e.localeFallbacker)?e.localeFallbacker:de||ae,P=b(e.fallbackContext)?e.fallbackContext:void 0,F=d(e.onWarn)?e.onWarn:i,R=e,D=b(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,S=b(R.__numberFormatters)?R.__numberFormatters:new Map,M=b(R.__meta)?R.__meta:{};Ee++;const w={version:t,cid:Ee,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:u,missing:m,missingWarn:_,fallbackWarn:p,fallbackFormat:L,unresolving:k,postTranslation:N,processor:T,warnHtmlMessage:I,escapeParameter:y,messageCompiler:C,messageResolver:O,localeFallbacker:A,fallbackContext:P,onWarn:F,__meta:M};return w.datetimeFormats=l,w.numberFormats=o,w.__datetimeFormatters=D,w.__numberFormatters=S,w}function be(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return E(r)?r:t}return t}function Le(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const ke=e=>e;let he=Object.create(null);let Ne=N.__EXTEND_POINT__;const Te=()=>++Ne,Ie={INVALID_ARGUMENT:Ne,INVALID_DATE_ARGUMENT:Te(),INVALID_ISO_DATE_ARGUMENT:Te(),__EXTEND_POINT__:Te()},ye=()=>"",Ce=e=>d(e);function Oe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:s,messages:c}=e,[u,i]=Fe(...t),f=v(i.missingWarn)?i.missingWarn:e.missingWarn,_=v(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,p=v(i.escapeParameter)?i.escapeParameter:e.escapeParameter,d=!!i.resolvedMessage,L=E(i.default)||v(i.default)?v(i.default)?l?u:()=>u:i.default:n?l?u:()=>u:"",k=n||""!==L,h=E(i.locale)?i.locale:e.locale;p&&function(e){g(e.list)?e.list=e.list.map((e=>E(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{E(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(i);let[N,T,I]=d?[u,h,c[h]||{}]:Ae(e,u,h,s,_,f),y=N,C=u;if(d||E(y)||Ce(y)||k&&(y=L,C=y),!(d||(E(y)||Ce(y))&&E(T)))return a?ie:u;let O=!1;const A=Ce(y)?y:Pe(e,u,T,y,C,(()=>{O=!0}));if(O)return y;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Ae(f,r,t,c,u,i);a=s(e,r)}if(E(a)){let n=!1;const l=Pe(e,r,t,a,r,(()=>{n=!0}));return n?ye:l}return Ce(a)?a:ye},_={locale:t,modifiers:a,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,T,I,i),F=function(e,t,n){const r=t(n);return r}(0,A,re(P));return r?r(F,u):F}function Ae(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},_=null;for(let p=0;p<i.length&&(f=i[p],m=o[f]||{},null===(_=c(m,t))&&(_=m[t]),!E(_)&&!d(_));p++){const n=be(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Pe(e,t,n,r,l,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Ce(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const u=s(r,function(e,t,n,r,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,l,0,c,o));return u.locale=n,u.key=t,u.source=r,u}function Fe(...e){const[t,n,r]=e,a={};if(!E(t)&&!o(t)&&!Ce(t))throw Error(Ie.INVALID_ARGUMENT);const l=o(t)?String(t):(Ce(t),t);return o(n)?a.plural=n:E(n)?a.default=n:h(n)&&!u(n)?a.named=n:g(n)&&(a.list=n),o(r)?a.plural=r:E(r)?a.default=r:h(r)&&f(a,r),[l,a]}function Re(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,i,m,_]=Se(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,g=E(m.locale)?m.locale:e.locale,d=o(e,a,g);if(!E(c)||""===c)return new Intl.DateTimeFormat(g,_).format(i);let b,L={},k=null;for(let u=0;u<d.length&&(b=d[u],L=n[b]||{},k=L[c],!h(k));u++)be(e,c,b,0,"datetime format");if(!h(k)||!E(b))return r?ie:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.DateTimeFormat(b,f({},k,_)),s.set(N,T)),p?T.formatToParts(i):T.format(i)}const De=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Se(...e){const[t,n,r,a]=e,l={};let c,u={};if(E(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ie.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(i){throw Error(Ie.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(Ie.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(Ie.INVALID_ARGUMENT);c=t}return E(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{De.includes(e)?u[e]=n[e]:l[e]=n[e]})),E(r)?l.locale=r:h(r)&&(u=r),h(a)&&(u=a),[l.key||"",c,l,u]}function Me(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function we(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,i,m,_]=xe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,g=E(m.locale)?m.locale:e.locale,d=o(e,a,g);if(!E(c)||""===c)return new Intl.NumberFormat(g,_).format(i);let b,L={},k=null;for(let u=0;u<d.length&&(b=d[u],L=n[b]||{},k=L[c],!h(k));u++)be(e,c,b,0,"number format");if(!h(k)||!E(b))return r?ie:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.NumberFormat(b,f({},k,_)),s.set(N,T)),p?T.formatToParts(i):T.format(i)}const We=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function xe(...e){const[t,n,r,a]=e,l={};let s={};if(!o(t))throw Error(Ie.INVALID_ARGUMENT);const c=t;return E(n)?l.key=n:h(n)&&Object.keys(n).forEach((e=>{We.includes(e)?s[e]=n[e]:l[e]=n[e]})),E(r)?l.locale=r:h(r)&&(s=r),h(a)&&(s=a),[l.key||"",c,l,s]}function Ue(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const $e="9.3.0-beta.19";let He=N.__EXTEND_POINT__;const Ve=()=>++He,je={UNEXPECTED_RETURN_TYPE:He,INVALID_ARGUMENT:Ve(),MUST_BE_CALL_SETUP_TOP:Ve(),NOT_INSTALLED:Ve(),NOT_AVAILABLE_IN_LEGACY_MODE:Ve(),REQUIRED_VALUE:Ve(),INVALID_VALUE:Ve(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ve(),NOT_INSTALLED_WITH_PROVIDE:Ve(),UNEXPECTED_ERROR:Ve(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ve(),BRIDGE_SUPPORT_VUE_2_ONLY:Ve(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ve(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ve(),__EXTEND_POINT__:Ve()};const Xe=r("__translateVNode"),Ge=r("__datetimeParts"),Ye=r("__numberParts"),Be=r("__setPluralRules"),Ke=r("__injectWithOption");function ze(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],b(a[n[r]])&&ze(a[n[r]])}else b(e[t])&&ze(e[t]);return e}function Je(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=h(n)?n:g(r)?{}:{[e]:{}};if(g(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},qe(n,o[t])):qe(n,o)}else E(e)&&qe(JSON.parse(e),o)})),null==a&&l)for(const s in o)p(o,s)&&ze(o[s]);return o}const Qe=e=>!b(e)||g(e);function qe(e,t){if(Qe(e)||Qe(t))throw Error(je.INVALID_VALUE);for(const n in e)p(e,n)&&(Qe(e[n])||Qe(t[n])?t[n]=e[n]:qe(e[n],t[n]))}function Ze(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Je(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function et(e){return t.createVNode(t.Text,null,e,0)}let tt=0;function nt(e){return(n,r,a,l)=>e(r,a,t.getCurrentInstance()||void 0,l)}function rt(e={},r){const{__root:a}=e,l=void 0===a;let s=!v(e.inheritLocale)||e.inheritLocale;const u=t.ref(a&&s?a.locale.value:E(e.locale)?e.locale:fe),i=t.ref(a&&s?a.fallbackLocale.value:E(e.fallbackLocale)||g(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),m=t.ref(Je(u.value,e)),_=t.ref(h(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),p=t.ref(h(e.numberFormats)?e.numberFormats:{[u.value]:{}});let L=a?a.missingWarn:!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=a?a.fallbackWarn:!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,N=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,I=d(e.missing)?e.missing:null,y=d(e.missing)?nt(e.missing):null,C=d(e.postTranslation)?e.postTranslation:null,O=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter;const P=a?a.modifiers:h(e.modifiers)?e.modifiers:{};let F,R=e.pluralRules||a&&a.pluralRules;F=(()=>{const t={version:$e,locale:u.value,fallbackLocale:i.value,messages:m.value,modifiers:P,pluralRules:R,missing:null===y?void 0:y,missingWarn:L,fallbackWarn:k,fallbackFormat:T,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:O,escapeParameter:A,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=_.value,t.numberFormats=p.value,t.__datetimeFormatters=h(F)?F.__datetimeFormatters:void 0,t.__numberFormatters=h(F)?F.__numberFormatters:void 0;return ve(t)})(),Le(F,u.value,i.value);const D=t.computed({get:()=>u.value,set:e=>{u.value=e,F.locale=u.value}}),S=t.computed({get:()=>i.value,set:e=>{i.value=e,F.fallbackLocale=i.value,Le(F,u.value,e)}}),M=t.computed((()=>m.value)),w=t.computed((()=>_.value)),W=t.computed((()=>p.value));const x=(e,t,n,r,l,s)=>{let c;if(u.value,i.value,m.value,_.value,p.value,c=e(F),o(c)&&c===ie){const[e,n]=t();return a&&N?r(a):l(e)}if(s(c))return c;throw Error(je.UNEXPECTED_RETURN_TYPE)};function U(...e){return x((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Fe(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>E(e)))}const $={normalize:function(e){return e.map((e=>E(e)||o(e)||v(e)?et(String(e)):e))},interpolate:e=>e,type:"vnode"};function H(e){return m.value[e]||{}}tt++,a&&n&&(t.watch(a.locale,(e=>{s&&(u.value=e,F.locale=e,Le(F,u.value,i.value))})),t.watch(a.fallbackLocale,(e=>{s&&(i.value=e,F.fallbackLocale=e,Le(F,u.value,i.value))})));const V={id:tt,locale:D,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&a&&(u.value=a.locale.value,i.value=a.fallbackLocale.value,Le(F,u.value,i.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:M,get modifiers(){return P},get pluralRules(){return R||{}},get isGlobal(){return l},get missingWarn(){return L},set missingWarn(e){L=e,F.missingWarn=L},get fallbackWarn(){return k},set fallbackWarn(e){k=e,F.fallbackWarn=k},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,F.fallbackFormat=T},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,F.warnHtmlMessage=e},get escapeParameter(){return A},set escapeParameter(e){A=e,F.escapeParameter=e},t:U,getLocaleMessage:H,setLocaleMessage:function(e,t){m.value[e]=t,F.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},qe(t,m.value[e]),F.messages=m.value},getPostTranslationHandler:function(){return d(C)?C:null},setPostTranslationHandler:function(e){C=e,F.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(y=nt(e)),I=e,F.missing=y},[Be]:function(e){R=e,F.pluralRules=R}};return V.datetimeFormats=w,V.numberFormats=W,V.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(je.INVALID_ARGUMENT);return U(t,n,f({resolvedMessage:!0},r||{}))},V.te=function(e,t){const n=H(E(t)?t:u.value);return null!==F.messageResolver(n,e)},V.tm=function(e){const t=function(e){let t=null;const n=le(F,i.value,u.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},l=F.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},V.d=function(...e){return x((t=>Reflect.apply(Re,null,[t,...e])),(()=>Se(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>me),(e=>E(e)))},V.n=function(...e){return x((t=>Reflect.apply(we,null,[t,...e])),(()=>xe(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>me),(e=>E(e)))},V.getDateTimeFormat=function(e){return _.value[e]||{}},V.setDateTimeFormat=function(e,t){_.value[e]=t,F.datetimeFormats=_.value,Me(F,e,t)},V.mergeDateTimeFormat=function(e,t){_.value[e]=f(_.value[e]||{},t),F.datetimeFormats=_.value,Me(F,e,t)},V.getNumberFormat=function(e){return p.value[e]||{}},V.setNumberFormat=function(e,t){p.value[e]=t,F.numberFormats=p.value,Ue(F,e,t)},V.mergeNumberFormat=function(e,t){p.value[e]=f(p.value[e]||{},t),F.numberFormats=p.value,Ue(F,e,t)},V[Ke]=e.__injectWithOption,V[Xe]=function(...e){return x((t=>{let n;const r=t;try{r.processor=$,n=Reflect.apply(Oe,null,[r,...e])}finally{r.processor=null}return n}),(()=>Fe(...e)),"translate",(t=>t[Xe](...e)),(e=>[et(e)]),(e=>g(e)))},V[Ge]=function(...e){return x((t=>Reflect.apply(Re,null,[t,...e])),(()=>Se(...e)),"datetime format",(t=>t[Ge](...e)),(()=>[]),(e=>E(e)||g(e)))},V[Ye]=function(...e){return x((t=>Reflect.apply(we,null,[t,...e])),(()=>xe(...e)),"number format",(t=>t[Ye](...e)),(()=>[]),(e=>E(e)||g(e)))},V}function at(e={},t){{const t=rt(function(e){const t=E(e.locale)?e.locale:fe,n=E(e.fallbackLocale)||g(e.fallbackLocale)||h(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!v(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!v(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!v(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=h(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!E(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,b=!v(e.sync)||e.sync;let L=e.messages;if(h(e.sharedMessages)){const t=e.sharedMessages;L=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return f(r,t[n]),e}),L||{})}const{__i18n:k,__root:N,__injectWithOption:T}=e,I=e.datetimeFormats,y=e.numberFormats;return{locale:t,fallbackLocale:n,messages:L,flatJson:e.flatJson,datetimeFormats:I,numberFormats:y,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:i,postTranslation:m,warnHtmlMessage:_,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:b,__i18n:k,__root:N,__injectWithOption:T}}(e)),n={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return v(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=v(e)?!e:e},get silentFallbackWarn(){return v(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=v(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,l={};let o=null,s=null;if(!E(n))throw Error(je.INVALID_ARGUMENT);const c=n;return E(r)?l.locale=r:g(r)?o=r:h(r)&&(s=r),g(a)?o=a:h(a)&&(s=a),Reflect.apply(t.t,t,[c,o||s||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,l={plural:1};let s=null,c=null;if(!E(n))throw Error(je.INVALID_ARGUMENT);const u=n;return E(r)?l.locale=r:o(r)?l.plural=r:g(r)?s=r:h(r)&&(c=r),E(a)?l.locale=a:g(a)?s=a:h(a)&&(c=a),Reflect.apply(t.t,t,[u,s||c||{},l])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const lt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function ot(e){return t.Fragment}const st=t.defineComponent({name:"i18n-t",props:f({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},lt),setup(e,n){const{slots:r,attrs:a}=n,l=e.i18n||bt({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=E(e.plural)?+e.plural:e.plural);const c=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,o),u=l[Xe](e.keypath,c,s),i=f({},a),m=E(e.tag)||b(e.tag)?e.tag:ot();return t.h(m,i,u)}}}),ct=st;function ut(e,n,r,a){const{slots:l,attrs:o}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),E(e.format)?n.key=e.format:b(e.format)&&(E(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?f({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];g(c)?u=c.map(((e,t)=>{const n=l[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return g(a=r)&&!E(a[0])&&(r[0].key=`${e.type}-${t}`),r})):E(c)&&(u=[c]);const i=f({},o),m=E(e.tag)||b(e.tag)?e.tag:ot();return t.h(m,i,u)}}const it=t.defineComponent({name:"i18n-n",props:f({value:{type:Number,required:!0},format:{type:[String,Object]}},lt),setup(e,t){const n=e.i18n||bt({useScope:"parent",__useComponent:!0});return ut(e,t,We,((...e)=>n[Ye](...e)))}}),ft=it,mt=t.defineComponent({name:"i18n-d",props:f({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},lt),setup(e,t){const n=e.i18n||bt({useScope:"parent",__useComponent:!0});return ut(e,t,De,((...e)=>n[Ge](...e)))}}),_t=mt;function pt(e){const r=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(je.UNEXPECTED_ERROR);const l=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=gt(a);return[Reflect.apply(l.t,l,[...dt(o)]),l]};return{created:(a,l)=>{const[o,s]=r(l);n&&e.global===s&&(a.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),a.__composer=s,a.textContent=o},unmounted:e=>{n&&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){const n=e.__composer,r=gt(t);e.textContent=Reflect.apply(n.t,n,[...dt(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function gt(e){if(E(e))return{path:e};if(h(e)){if(!("path"in e))throw Error(je.REQUIRED_VALUE,"path");return e}throw Error(je.INVALID_VALUE)}function dt(e){const{path:t,locale:n,args:r,choice:a,plural:l}=e,s={},c=r||{};return E(n)&&(s.locale=n),o(a)&&(s.plural=a),o(l)&&(s.plural=l),[t,c,s]}function Et(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[Be](t.pluralizationRules||e.pluralizationRules);const n=Je(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}const vt=r("global-vue-i18n");function bt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(je.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(je.NOT_INSTALLED);const r=function(e){{const n=t.inject(e.isCE?vt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw function(e,...t){return T(e,null,void 0)}(e.isCE?je.NOT_INSTALLED_WITH_PROVIDE:je.UNEXPECTED_ERROR);return n}}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),l=function(e){return e.type}(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===r.mode&&!e.__useComponent){if(!r.allowComposition)throw Error(je.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const l="local"===n,o=t.shallowRef(null);if(l&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=v(a.inheritLocale)?a.inheritLocale:!E(a.locale),u=t.ref(!l||s?r.locale.value:E(a.locale)?a.locale:fe),i=t.ref(!l||s?r.fallbackLocale.value:E(a.fallbackLocale)||g(a.fallbackLocale)||h(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(Je(u.value,a)),m=t.ref(h(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),_=t.ref(h(a.numberFormats)?a.numberFormats:{[u.value]:{}}),p=l?r.missingWarn:!v(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=l?r.fallbackWarn:!v(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,L=l?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,k=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,T=d(a.postTranslation)?a.postTranslation:null,I=l?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,y=!!a.escapeParameter,C=l?r.modifiers:h(a.modifiers)?a.modifiers:{},O=a.pluralRules||l&&r.pluralRules;function A(){return[u.value,i.value,f.value,m.value,_.value]}const P=t.computed({get:()=>o.value?o.value.locale.value:u.value,set:e=>{o.value&&(o.value.locale.value=e),u.value=e}}),F=t.computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),R=t.computed((()=>o.value?o.value.messages.value:f.value)),D=t.computed((()=>m.value)),S=t.computed((()=>_.value));function M(){return o.value?o.value.getPostTranslationHandler():T}function w(e){o.value&&o.value.setPostTranslationHandler(e)}function W(){return o.value?o.value.getMissingHandler():N}function x(e){o.value&&o.value.setMissingHandler(e)}function U(e){return A(),e()}function $(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function j(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function X(e){return o.value?o.value.tm(e):{}}function G(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function B(e,t){o.value&&(o.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function J(e,t){o.value&&(o.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function q(e){return o.value?o.value.getNumberFormat(e):{}}function Z(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const te={get id(){return o.value?o.value.id:-1},locale:P,fallbackLocale:F,messages:R,datetimeFormats:D,numberFormats:S,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(f.value)},get modifiers(){return o.value?o.value.modifiers:C},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:b},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:L},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:k},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:W,setMissingHandler:x,rt:H,d:V,n:j,tm:X,te:G,getLocaleMessage:Y,setLocaleMessage:B,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=u.value,e.fallbackLocale.value=i.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=y,e.fallbackFormat=k,e.fallbackRoot=L,e.fallbackWarn=b,e.missingWarn=p,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):l&&ne(t)})),te}(n,o,a,e)}if("global"===o)return Ze(a,e,l),a;if("parent"===o){let t=function(e,t,n=!1){let r=null;const a=t.root;let l=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[Ke]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const s=r;let i=s.__getInstance(n);if(null==i){const r=f({},e);"__i18n"in l&&(r.__i18n=l.__i18n),a&&(r.__root=a),i=rt(r),s.__composerExtend&&s.__composerExtend(i),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{e.__deleteInstance(n)}),n)}(s,n),s.__setInstance(n,i)}return i}const Lt=["locale","fallbackLocale","availableLocales"],kt=["t","rt","d","n","tm","te"];var ht;return ht=function(e,t={}){{!v(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ke)(e),r=he[n];if(r)return r;let a=!1;const l=t.onError||I;t.onError=e=>{a=!0,l(e)};const{code:o}=function(e,t={}){const n=f({},t),r=x(n).parse(e);return V(r,n),X(r,n)}(e,t),s=new Function(`return ${o}`)();return a?s:he[n]=s}},pe=ht,ge=function(e,t){if(!b(e))return null;let n=z.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,c,u=-1,i=0,f=0;const m=[];function _(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=K(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!_()){if(l=B(n),c=G[i],o=c[l]||c.l||8,8===o)return;if(i=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===i)return t}}(t),n&&z.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},de=le,e.DatetimeFormat=mt,e.I18nD=_t,e.I18nInjectionKey=vt,e.I18nN=ft,e.I18nT=ct,e.NumberFormat=it,e.Translation=st,e.VERSION=$e,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(je.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){const a=!v(e.legacy)||e.legacy,l=!v(e.globalInjection)||e.globalInjection,o=!a||!!e.allowComposition,s=new Map,[c,u]=function(e,n,r){const a=t.effectScope();{const t=n?a.run((()=>at(e))):a.run((()=>rt(e)));if(null==t)throw Error(je.UNEXPECTED_ERROR);return[a,t]}}(e,a),i=r("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return o},async install(n,...r){if(n.__VUE_I18N_SYMBOL__=i,n.provide(n.__VUE_I18N_SYMBOL__,e),h(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!a&&l&&function(e,n){const r=Object.create(null);Lt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(je.UNEXPECTED_ERROR);const l=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,l)})),e.config.globalProperties.$i18n=r,kt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}))}(n,e.global),function(e,t,...n){const r=h(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!v(r.globalInstall)||r.globalInstall)&&(e.component(a?"i18n":st.name,st),e.component(it.name,it),e.component(mt.name,mt)),e.directive("t",pt(t))}(n,e,...r),a&&n.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(je.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root?this.$i18n=Et(e,t):(t.__injectWithOption=!0,this.$i18n=at(t))}else l.__i18n?this===this.$root?this.$i18n=Et(e,l):this.$i18n=at({__i18n:l.__i18n,__injectWithOption:!0,__root:n}):this.$i18n=e;l.__i18nGlobal&&Ze(n,l,l),e.__onComponentInstanceCreated(this.$i18n),r.__setInstance(a,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&r.__vueI18nExtend&&(r.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(je.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(e),delete this.$i18n}}}(u,u.__composer,e));const o=n.unmount;n.unmount=()=>{e.dispose(),o()}},get global(){return u},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=bt,e.vTDirective=pt,e}({},Vue); | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>l({l:e,k:t,s:n}),l=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===h(e),c=e=>"[object RegExp]"===h(e),u=e=>k(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const f=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _=Object.prototype.hasOwnProperty;function p(e,t){return _.call(e,t)}const g=Array.isArray,d=e=>"function"==typeof e,E=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,L=Object.prototype.toString,h=e=>L.call(e),k=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function N(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function T(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const I={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,__EXTEND_POINT__:15};function y(e,t,n={}){const{domain:r,messages:a,args:l}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function C(e){throw e}const O=" ",A="\r",P="\n",F=String.fromCharCode(8232),R=String.fromCharCode(8233);function D(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>t[e]===A&&t[e+1]===P,s=e=>t[e]===R,c=e=>t[e]===F,u=e=>o(e)||(e=>t[e]===P)(e)||s(e)||c(e),i=e=>o(e)||s(e)||c(e)?P:t[e];function f(){return l=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const S=void 0,M="'";function w(e,t={}){const n=!1!==t.location,r=D(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=T(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(I.EXPECTED_TOKEN,l(),"")}function p(e){let t="";for(;e.currentPeek()===O||e.currentPeek()===P;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=p(e);return e.skipToPeek(),t}function d(e){if(e===S)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===S)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function v(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,r="",a=!1)=>{const l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(r===O||r===P):l===O?(e.peek(),n(!0,O,a)):l!==P||(e.peek(),n(!0,P,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===S?S:t(n)?(e.next(),n):null}function h(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function k(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function N(e){return L(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function y(e){let t="",n="";for(;t=k(e);)n+=t;return n}function C(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===O||n===P)if(b(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return I.UNKNOWN_ESCAPE_SEQUENCE,l(),""}}function F(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=N(e);if(!t){I.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){g(e);const t=_(e,"|");return g(e),t}function w(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(I.NOT_ALLOW_NEST_PLACEHOLDER,l()),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(I.EMPTY_PLACEHOLDER,l()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=W(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(v(e))return t.braceNest>0&&(I.UNTERMINATED_CLOSING_BRACE,l()),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return I.UNTERMINATED_CLOSING_BRACE,l(),t.braceNest=0,x(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){g(e);let t="",n="";for(;t=h(e);)n+=t;return e.currentChar()===S&&(I.UNTERMINATED_CLOSING_BRACE,l()),n}(e)),g(e),n;if(a=E(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${y(e)}`):t+=y(e),e.currentChar()===S&&(I.UNTERMINATED_CLOSING_BRACE,l()),t}(e)),g(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===M;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){g(e),_(e,"'");let t="",n="";const r=e=>e!==M&&e!==P;for(;t=L(e,r);)n+="\\"===t?A(e):t;const a=e.currentChar();return a===P||a===S?(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),a===P&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==O&&e!==P;for(;t=L(e,r);)n+=t;return n}(e)),I.INVALID_TOKEN_IN_PLACEHOLDER,l(),n.value,g(e),n}return n}function W(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==P&&a!==O||(I.INVALID_LINKED_FORMAT,l()),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return v(e)?(r=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),W(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),f(t,12,function(e){let t="",n="";for(;t=h(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===O||!t)&&(t===P?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?w(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===O?r:a===P?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(I.INVALID_LINKED_FORMAT,l()),t.braceNest=0,t.inLinked=!1,x(e,t))}}function x(e,t){let n={type:14};if(t.braceNest>0)return w(e,t)||m(t);if(t.inLinked)return W(e,t)||m(t);switch(e.currentChar()){case"{":return w(e,t)||m(t);case"}":return I.UNBALANCED_CLOSING_BRACE,l(),e.next(),f(t,3,"}");case"@":return W(e,t)||m(t);default:if(v(e))return n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=p(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,C(e)):f(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&(I.EXPECTED_TOKEN,l()),e.next(),"%"}(e));if(b(e))return f(t,0,C(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===S?f(c,14):x(r,c)},currentOffset:a,currentPosition:l,context:u}}const W=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function x(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function U(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(e,n,r,a){a&&(e.type=a),t&&(e.end=n,e.loc&&(e.loc.end=r))}function l(e,t){const n=e.context(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(W,x),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(I.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,$(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(l)),n.key=c(e,l.value||"");break;default:I.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken:l,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function i(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,$(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:l}=t,o=i(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=i(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=w(n,f({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(l),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==o.currentType&&(I.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function $(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function H(e,t){for(let n=0;n<e.length;n++)V(e[n],t)}function V(e,t){switch(e.type){case 1:H(e.cases,t),t.helper("plural");break;case 2:H(e.items,t);break;case 6:V(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")}}function j(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&V(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function X(e){const t=e.body;return 2===t.type?G(t):t.cases.forEach((e=>G(e))),e}function G(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;t.push(r.value)}t.length===e.items.length&&(e.static=N(t))}}function Y(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Y(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(Y(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let l=0;l<a&&(Y(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Y(e,t.key),t.modifier?(e.push(", "),Y(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3: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)}}const B=(e,t={})=>{const n=E(t.mode)?t.mode:"normal",r=E(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function c(e,t){s.code+=e}function u(e,t=!0){const n=t?a:"";c(l?n+" ".repeat(e):n)}return o&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,indent:function(e=!0){const t=++s.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&u(t)},newline:function(){u(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${N(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),Y(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}};function K(e,t={}){const n=f({},t),r=!!n.jit,a=null==n.optimize||n.optimize,l=U(n).parse(e);return r?(a&&X(l),{ast:l,code:""}):(j(l,n),a&&X(l),B(l,n))}const z=[];z[0]={w:[0],i:[3,0],"[":[4],o:[7]},z[1]={w:[1],".":[2],"[":[4],o:[7]},z[2]={w:[2],i:[3,0],0:[3,0]},z[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},z[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},z[5]={"'":[4,0],o:8,l:[5,0]},z[6]={'"':[4,0],o:8,l:[6,0]};const J=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Q(e){if(null==e)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 q(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,J.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Z=new Map;function ee(e,t){return b(e)?e[t]:null}const te=e=>e,ne=e=>"",re="text",ae=e=>0===e.length?"":N(e),le=e=>null==e?"":g(e)||k(e)&&e.toString===L?JSON.stringify(e,null,2):String(e);function oe(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function se(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&E(t)&&d(e.pluralRules[t])?e.pluralRules[t]:oe,a=b(e.pluralRules)&&E(t)&&d(e.pluralRules[t])?oe:void 0,l=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=d(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):ne)}const u=k(e.processor)&&d(e.processor.normalize)?e.processor.normalize:ae,i=k(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:le,f={list:e=>l[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let l="text",o="";1===n.length?b(r)?(o=r.modifier||o,l=r.type||l):E(r)&&(o=r||o):2===n.length&&(E(r)&&(o=r||o),E(a)&&(l=a||l));const s=c(t)(f),u="vnode"===l&&g(s)&&o?s[0]:s;return o?(i=o,e.modifiers?e.modifiers[i]:te)(u,l):u;var i},message:c,type:k(e.processor)&&E(e.processor.type)?e.processor.type:re,interpolate:i,normalize:u};return f}function ce(e,t,n){return[...new Set([n,...g(t)?t:b(t)?Object.keys(t):E(t)?[t]:[n]])]}function ue(e,t,n){const r=E(n)?n:ge,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;g(e);)e=ie(l,e,t);const o=g(t)||!k(t)?t:t.default?t.default:null;e=E(o)?[o]:o,g(e)&&ie(l,e,!1),a.__localeChainCache.set(r,l)}return l}function ie(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const l=t[a];E(l)&&(r=fe(e,t[a],n))}return r}function fe(e,t,n){let r;const a=t.split("-");do{r=me(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function me(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(g(n)||k(n))&&n[a]&&(r=n[a])}return r}const _e="9.3.0-beta.20",pe=-1,ge="en-US",de="",Ee=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ve,be,Le;let he=0;function ke(e={}){const t=E(e.version)?e.version:_e,n=E(e.locale)?e.locale:ge,r=g(e.fallbackLocale)||k(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=k(e.messages)?e.messages:{[n]:{}},l=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=k(e.numberFormats)?e.numberFormats:{[n]:{}},s=f({},e.modifiers||{},{upper:(e,t)=>"text"===t&&E(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&E(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&E(e)?Ee(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?Ee(e.children):e}),u=e.pluralRules||{},m=d(e.missing)?e.missing:null,_=!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,p=!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,h=!!e.unresolving,N=d(e.postTranslation)?e.postTranslation:null,T=k(e.processor)?e.processor:null,I=!v(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,C=d(e.messageCompiler)?e.messageCompiler:ve,O=d(e.messageResolver)?e.messageResolver:be||ee,A=d(e.localeFallbacker)?e.localeFallbacker:Le||ce,P=b(e.fallbackContext)?e.fallbackContext:void 0,F=d(e.onWarn)?e.onWarn:i,R=e,D=b(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,S=b(R.__numberFormatters)?R.__numberFormatters:new Map,M=b(R.__meta)?R.__meta:{};he++;const w={version:t,cid:he,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:u,missing:m,missingWarn:_,fallbackWarn:p,fallbackFormat:L,unresolving:h,postTranslation:N,processor:T,warnHtmlMessage:I,escapeParameter:y,messageCompiler:C,messageResolver:O,localeFallbacker:A,fallbackContext:P,onWarn:F,__meta:M};return w.datetimeFormats=l,w.numberFormats=o,w.__datetimeFormatters=D,w.__numberFormatters=S,w}function Ne(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return E(r)?r:t}return t}function Te(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Ie=I.__EXTEND_POINT__;const ye=()=>++Ie,Ce={INVALID_ARGUMENT:Ie,INVALID_DATE_ARGUMENT:ye(),INVALID_ISO_DATE_ARGUMENT:ye(),NOT_SUPPORT_AST:ye(),__EXTEND_POINT__:ye()},Oe=e=>e;let Ae=Object.create(null);const Pe=()=>"",Fe=e=>d(e),Re=e=>b(e)&&0===e.type&&"body"in e;function De(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:s,messages:c}=e,[u,i]=we(...t),f=v(i.missingWarn)?i.missingWarn:e.missingWarn,_=v(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,p=v(i.escapeParameter)?i.escapeParameter:e.escapeParameter,d=!!i.resolvedMessage,L=E(i.default)||v(i.default)?v(i.default)?l?u:()=>u:i.default:n?l?u:()=>u:"",h=n||""!==L,k=E(i.locale)?i.locale:e.locale;p&&function(e){g(e.list)?e.list=e.list.map((e=>E(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{E(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(i);let[N,T,I]=d?[u,k,c[k]||{}]:Se(e,u,k,s,_,f),y=N,C=u;if(d||E(y)||Re(y)||Fe(y)||h&&(y=L,C=y),!(d||(E(y)||Re(y)||Fe(y))&&E(T)))return a?pe:u;let O=!1;const A=Fe(y)?y:Me(e,u,T,y,C,(()=>{O=!0}));if(O)return y;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Se(f,r,t,c,u,i);a=s(e,r)}if(E(a)||Re(a)){let n=!1;const l=Me(e,r,t,a,r,(()=>{n=!0}));return n?Pe:l}return Fe(a)?a:Pe},_={locale:t,modifiers:a,pluralRules:l,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,T,I,i),F=function(e,t,n){const r=t(n);return r}(0,A,se(P));return r?r(F,u):F}function Se(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},_=null;for(let p=0;p<i.length&&(f=i[p],m=o[f]||{},null===(_=c(m,t))&&(_=m[t]),!(E(_)||Re(_)||Fe(_)));p++){const n=Ne(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Me(e,t,n,r,l,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Fe(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const u=s(r,function(e,t,n,r,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,l,0,c,o));return u.locale=n,u.key=t,u.source=r,u}function we(...e){const[t,n,r]=e,a={};if(!E(t)&&!o(t)&&!Fe(t))throw Error(Ce.INVALID_ARGUMENT);const l=o(t)?String(t):(Fe(t),t);return o(n)?a.plural=n:E(n)?a.default=n:k(n)&&!u(n)?a.named=n:g(n)&&(a.list=n),o(r)?a.plural=r:E(r)?a.default=r:k(r)&&f(a,r),[l,a]}function We(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,i,m,_]=Ue(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,g=E(m.locale)?m.locale:e.locale,d=o(e,a,g);if(!E(c)||""===c)return new Intl.DateTimeFormat(g,_).format(i);let b,L={},h=null;for(let u=0;u<d.length&&(b=d[u],L=n[b]||{},h=L[c],!k(h));u++)Ne(e,c,b,0,"datetime format");if(!k(h)||!E(b))return r?pe:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.DateTimeFormat(b,f({},h,_)),s.set(N,T)),p?T.formatToParts(i):T.format(i)}const xe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ue(...e){const[t,n,r,a]=e,l={};let c,u={};if(E(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ce.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(n);try{c.toISOString()}catch(i){throw Error(Ce.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(Ce.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(Ce.INVALID_ARGUMENT);c=t}return E(n)?l.key=n:k(n)&&Object.keys(n).forEach((e=>{xe.includes(e)?u[e]=n[e]:l[e]=n[e]})),E(r)?l.locale=r:k(r)&&(u=r),k(a)&&(u=a),[l.key||"",c,l,u]}function $e(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function He(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,i,m,_]=je(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,g=E(m.locale)?m.locale:e.locale,d=o(e,a,g);if(!E(c)||""===c)return new Intl.NumberFormat(g,_).format(i);let b,L={},h=null;for(let u=0;u<d.length&&(b=d[u],L=n[b]||{},h=L[c],!k(h));u++)Ne(e,c,b,0,"number format");if(!k(h)||!E(b))return r?pe:c;let N=`${b}__${c}`;u(_)||(N=`${N}__${JSON.stringify(_)}`);let T=s.get(N);return T||(T=new Intl.NumberFormat(b,f({},h,_)),s.set(N,T)),p?T.formatToParts(i):T.format(i)}const Ve=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function je(...e){const[t,n,r,a]=e,l={};let s={};if(!o(t))throw Error(Ce.INVALID_ARGUMENT);const c=t;return E(n)?l.key=n:k(n)&&Object.keys(n).forEach((e=>{Ve.includes(e)?s[e]=n[e]:l[e]=n[e]})),E(r)?l.locale=r:k(r)&&(s=r),k(a)&&(s=a),[l.key||"",c,l,s]}function Xe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const Ge="9.3.0-beta.20";let Ye=I.__EXTEND_POINT__;const Be=()=>++Ye,Ke={UNEXPECTED_RETURN_TYPE:Ye,INVALID_ARGUMENT:Be(),MUST_BE_CALL_SETUP_TOP:Be(),NOT_INSTALLED:Be(),NOT_AVAILABLE_IN_LEGACY_MODE:Be(),REQUIRED_VALUE:Be(),INVALID_VALUE:Be(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Be(),NOT_INSTALLED_WITH_PROVIDE:Be(),UNEXPECTED_ERROR:Be(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Be(),BRIDGE_SUPPORT_VUE_2_ONLY:Be(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Be(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Be(),__EXTEND_POINT__:Be()};const ze=r("__translateVNode"),Je=r("__datetimeParts"),Qe=r("__numberParts"),qe=r("__setPluralRules"),Ze=r("__injectWithOption");function et(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,l=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]={}),!b(a[n[e]])){l=!0;break}a=a[n[e]]}l||(a[n[r]]=e[t],delete e[t]),b(a[n[r]])&&et(a[n[r]])}else b(e[t])&&et(e[t]);return e}function tt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=k(n)?n:g(r)?{}:{[e]:{}};if(g(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},rt(n,o[t])):rt(n,o)}else E(e)&&rt(JSON.parse(e),o)})),null==a&&l)for(const s in o)p(o,s)&&et(o[s]);return o}const nt=e=>!b(e)||g(e);function rt(e,t){if(nt(e)||nt(t))throw Error(Ke.INVALID_VALUE);for(const n in e)p(e,n)&&(nt(e[n])||nt(t[n])?t[n]=e[n]:rt(e[n],t[n]))}function at(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=tt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function lt(e){return t.createVNode(t.Text,null,e,0)}let ot=0;function st(e){return(n,r,a,l)=>e(r,a,t.getCurrentInstance()||void 0,l)}function ct(e={},r){const{__root:a}=e,l=void 0===a;let s=!v(e.inheritLocale)||e.inheritLocale;const u=t.ref(a&&s?a.locale.value:E(e.locale)?e.locale:ge),i=t.ref(a&&s?a.fallbackLocale.value:E(e.fallbackLocale)||g(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),m=t.ref(tt(u.value,e)),_=t.ref(k(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),p=t.ref(k(e.numberFormats)?e.numberFormats:{[u.value]:{}});let L=a?a.missingWarn:!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,h=a?a.fallbackWarn:!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,N=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,I=d(e.missing)?e.missing:null,y=d(e.missing)?st(e.missing):null,C=d(e.postTranslation)?e.postTranslation:null,O=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter;const P=a?a.modifiers:k(e.modifiers)?e.modifiers:{};let F,R=e.pluralRules||a&&a.pluralRules;F=(()=>{const t={version:Ge,locale:u.value,fallbackLocale:i.value,messages:m.value,modifiers:P,pluralRules:R,missing:null===y?void 0:y,missingWarn:L,fallbackWarn:h,fallbackFormat:T,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:O,escapeParameter:A,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=_.value,t.numberFormats=p.value,t.__datetimeFormatters=k(F)?F.__datetimeFormatters:void 0,t.__numberFormatters=k(F)?F.__numberFormatters:void 0;return ke(t)})(),Te(F,u.value,i.value);const D=t.computed({get:()=>u.value,set:e=>{u.value=e,F.locale=u.value}}),S=t.computed({get:()=>i.value,set:e=>{i.value=e,F.fallbackLocale=i.value,Te(F,u.value,e)}}),M=t.computed((()=>m.value)),w=t.computed((()=>_.value)),W=t.computed((()=>p.value));const x=(e,t,n,r,l,s)=>{let c;if(u.value,i.value,m.value,_.value,p.value,c=e(F),o(c)&&c===pe){const[e,n]=t();return a&&N?r(a):l(e)}if(s(c))return c;throw Error(Ke.UNEXPECTED_RETURN_TYPE)};function U(...e){return x((t=>Reflect.apply(De,null,[t,...e])),(()=>we(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>E(e)))}const $={normalize:function(e){return e.map((e=>E(e)||o(e)||v(e)?lt(String(e)):e))},interpolate:e=>e,type:"vnode"};function H(e){return m.value[e]||{}}ot++,a&&n&&(t.watch(a.locale,(e=>{s&&(u.value=e,F.locale=e,Te(F,u.value,i.value))})),t.watch(a.fallbackLocale,(e=>{s&&(i.value=e,F.fallbackLocale=e,Te(F,u.value,i.value))})));const V={id:ot,locale:D,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&a&&(u.value=a.locale.value,i.value=a.fallbackLocale.value,Te(F,u.value,i.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:M,get modifiers(){return P},get pluralRules(){return R||{}},get isGlobal(){return l},get missingWarn(){return L},set missingWarn(e){L=e,F.missingWarn=L},get fallbackWarn(){return h},set fallbackWarn(e){h=e,F.fallbackWarn=h},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,F.fallbackFormat=T},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,F.warnHtmlMessage=e},get escapeParameter(){return A},set escapeParameter(e){A=e,F.escapeParameter=e},t:U,getLocaleMessage:H,setLocaleMessage:function(e,t){m.value[e]=t,F.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},rt(t,m.value[e]),F.messages=m.value},getPostTranslationHandler:function(){return d(C)?C:null},setPostTranslationHandler:function(e){C=e,F.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(y=st(e)),I=e,F.missing=y},[qe]:function(e){R=e,F.pluralRules=R}};return V.datetimeFormats=w,V.numberFormats=W,V.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(Ke.INVALID_ARGUMENT);return U(t,n,f({resolvedMessage:!0},r||{}))},V.te=function(e,t){const n=H(E(t)?t:u.value);return null!==F.messageResolver(n,e)},V.tm=function(e){const t=function(e){let t=null;const n=ue(F,i.value,u.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},l=F.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},V.d=function(...e){return x((t=>Reflect.apply(We,null,[t,...e])),(()=>Ue(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>de),(e=>E(e)))},V.n=function(...e){return x((t=>Reflect.apply(He,null,[t,...e])),(()=>je(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>de),(e=>E(e)))},V.getDateTimeFormat=function(e){return _.value[e]||{}},V.setDateTimeFormat=function(e,t){_.value[e]=t,F.datetimeFormats=_.value,$e(F,e,t)},V.mergeDateTimeFormat=function(e,t){_.value[e]=f(_.value[e]||{},t),F.datetimeFormats=_.value,$e(F,e,t)},V.getNumberFormat=function(e){return p.value[e]||{}},V.setNumberFormat=function(e,t){p.value[e]=t,F.numberFormats=p.value,Xe(F,e,t)},V.mergeNumberFormat=function(e,t){p.value[e]=f(p.value[e]||{},t),F.numberFormats=p.value,Xe(F,e,t)},V[Ze]=e.__injectWithOption,V[ze]=function(...e){return x((t=>{let n;const r=t;try{r.processor=$,n=Reflect.apply(De,null,[r,...e])}finally{r.processor=null}return n}),(()=>we(...e)),"translate",(t=>t[ze](...e)),(e=>[lt(e)]),(e=>g(e)))},V[Je]=function(...e){return x((t=>Reflect.apply(We,null,[t,...e])),(()=>Ue(...e)),"datetime format",(t=>t[Je](...e)),(()=>[]),(e=>E(e)||g(e)))},V[Qe]=function(...e){return x((t=>Reflect.apply(He,null,[t,...e])),(()=>je(...e)),"number format",(t=>t[Qe](...e)),(()=>[]),(e=>E(e)||g(e)))},V}function ut(e={},t){{const t=ct(function(e){const t=E(e.locale)?e.locale:ge,n=E(e.fallbackLocale)||g(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!v(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!v(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!v(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=k(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!E(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,b=!v(e.sync)||e.sync;let L=e.messages;if(k(e.sharedMessages)){const t=e.sharedMessages;L=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return f(r,t[n]),e}),L||{})}const{__i18n:h,__root:N,__injectWithOption:T}=e,I=e.datetimeFormats,y=e.numberFormats;return{locale:t,fallbackLocale:n,messages:L,flatJson:e.flatJson,datetimeFormats:I,numberFormats:y,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:i,postTranslation:m,warnHtmlMessage:_,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:b,__i18n:h,__root:N,__injectWithOption:T}}(e)),n={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return v(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=v(e)?!e:e},get silentFallbackWarn(){return v(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=v(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,a]=e,l={};let o=null,s=null;if(!E(n))throw Error(Ke.INVALID_ARGUMENT);const c=n;return E(r)?l.locale=r:g(r)?o=r:k(r)&&(s=r),g(a)?o=a:k(a)&&(s=a),Reflect.apply(t.t,t,[c,o||s||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,a]=e,l={plural:1};let s=null,c=null;if(!E(n))throw Error(Ke.INVALID_ARGUMENT);const u=n;return E(r)?l.locale=r:o(r)?l.plural=r:g(r)?s=r:k(r)&&(c=r),E(a)?l.locale=a:g(a)?s=a:k(a)&&(c=a),Reflect.apply(t.t,t,[u,s||c||{},l])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const it={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function ft(e){return t.Fragment}const mt=t.defineComponent({name:"i18n-t",props:f({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},it),setup(e,n){const{slots:r,attrs:a}=n,l=e.i18n||Tt({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=E(e.plural)?+e.plural:e.plural);const c=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,o),u=l[ze](e.keypath,c,s),i=f({},a),m=E(e.tag)||b(e.tag)?e.tag:ft();return t.h(m,i,u)}}}),_t=mt;function pt(e,n,r,a){const{slots:l,attrs:o}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),E(e.format)?n.key=e.format:b(e.format)&&(E(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?f({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];g(c)?u=c.map(((e,t)=>{const n=l[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return g(a=r)&&!E(a[0])&&(r[0].key=`${e.type}-${t}`),r})):E(c)&&(u=[c]);const i=f({},o),m=E(e.tag)||b(e.tag)?e.tag:ft();return t.h(m,i,u)}}const gt=t.defineComponent({name:"i18n-n",props:f({value:{type:Number,required:!0},format:{type:[String,Object]}},it),setup(e,t){const n=e.i18n||Tt({useScope:"parent",__useComponent:!0});return pt(e,t,Ve,((...e)=>n[Qe](...e)))}}),dt=gt,Et=t.defineComponent({name:"i18n-d",props:f({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},it),setup(e,t){const n=e.i18n||Tt({useScope:"parent",__useComponent:!0});return pt(e,t,xe,((...e)=>n[Je](...e)))}}),vt=Et;function bt(e){const r=t=>{const{instance:n,modifiers:r,value:a}=t;if(!n||!n.$)throw Error(Ke.UNEXPECTED_ERROR);const l=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=Lt(a);return[Reflect.apply(l.t,l,[...ht(o)]),l]};return{created:(a,l)=>{const[o,s]=r(l);n&&e.global===s&&(a.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),a.__composer=s,a.textContent=o},unmounted:e=>{n&&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){const n=e.__composer,r=Lt(t);e.textContent=Reflect.apply(n.t,n,[...ht(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Lt(e){if(E(e))return{path:e};if(k(e)){if(!("path"in e))throw Error(Ke.REQUIRED_VALUE,"path");return e}throw Error(Ke.INVALID_VALUE)}function ht(e){const{path:t,locale:n,args:r,choice:a,plural:l}=e,s={},c=r||{};return E(n)&&(s.locale=n),o(a)&&(s.plural=a),o(l)&&(s.plural=l),[t,c,s]}function kt(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[qe](t.pluralizationRules||e.pluralizationRules);const n=tt(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}const Nt=r("global-vue-i18n");function Tt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Ke.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Ke.NOT_INSTALLED);const r=function(e){{const n=t.inject(e.isCE?Nt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw function(e,...t){return y(e,null,void 0)}(e.isCE?Ke.NOT_INSTALLED_WITH_PROVIDE:Ke.UNEXPECTED_ERROR);return n}}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),l=function(e){return e.type}(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===r.mode&&!e.__useComponent){if(!r.allowComposition)throw Error(Ke.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const l="local"===n,o=t.shallowRef(null);if(l&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Ke.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=v(a.inheritLocale)?a.inheritLocale:!E(a.locale),u=t.ref(!l||s?r.locale.value:E(a.locale)?a.locale:ge),i=t.ref(!l||s?r.fallbackLocale.value:E(a.fallbackLocale)||g(a.fallbackLocale)||k(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(tt(u.value,a)),m=t.ref(k(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),_=t.ref(k(a.numberFormats)?a.numberFormats:{[u.value]:{}}),p=l?r.missingWarn:!v(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=l?r.fallbackWarn:!v(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,L=l?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,h=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,T=d(a.postTranslation)?a.postTranslation:null,I=l?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,y=!!a.escapeParameter,C=l?r.modifiers:k(a.modifiers)?a.modifiers:{},O=a.pluralRules||l&&r.pluralRules;function A(){return[u.value,i.value,f.value,m.value,_.value]}const P=t.computed({get:()=>o.value?o.value.locale.value:u.value,set:e=>{o.value&&(o.value.locale.value=e),u.value=e}}),F=t.computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),i.value=e}}),R=t.computed((()=>o.value?o.value.messages.value:f.value)),D=t.computed((()=>m.value)),S=t.computed((()=>_.value));function M(){return o.value?o.value.getPostTranslationHandler():T}function w(e){o.value&&o.value.setPostTranslationHandler(e)}function W(){return o.value?o.value.getMissingHandler():N}function x(e){o.value&&o.value.setMissingHandler(e)}function U(e){return A(),e()}function $(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function j(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function X(e){return o.value?o.value.tm(e):{}}function G(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function B(e,t){o.value&&(o.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function z(e){return o.value?o.value.getDateTimeFormat(e):{}}function J(e,t){o.value&&(o.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function q(e){return o.value?o.value.getNumberFormat(e):{}}function Z(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const te={get id(){return o.value?o.value.id:-1},locale:P,fallbackLocale:F,messages:R,datetimeFormats:D,numberFormats:S,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(f.value)},get modifiers(){return o.value?o.value.modifiers:C},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:b},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:L},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:h},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:W,setMissingHandler:x,rt:H,d:V,n:j,tm:X,te:G,getLocaleMessage:Y,setLocaleMessage:B,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=u.value,e.fallbackLocale.value=i.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=y,e.fallbackFormat=h,e.fallbackRoot=L,e.fallbackWarn=b,e.missingWarn=p,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Ke.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):l&&ne(t)})),te}(n,o,a,e)}if("global"===o)return at(a,e,l),a;if("parent"===o){let t=function(e,t,n=!1){let r=null;const a=t.root;let l=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[Ze]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const s=r;let i=s.__getInstance(n);if(null==i){const r=f({},e);"__i18n"in l&&(r.__i18n=l.__i18n),a&&(r.__root=a),i=ct(r),s.__composerExtend&&s.__composerExtend(i),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{e.__deleteInstance(n)}),n)}(s,n),s.__setInstance(n,i)}return i}const It=["locale","fallbackLocale","availableLocales"],yt=["t","rt","d","n","tm","te"];var Ct;return Ct=function(e,t={}){if(!E(e))throw Error(Ce.NOT_SUPPORT_AST);{!v(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Oe)(e),r=Ae[n];if(r)return r;const{code:a,detectError:l}=function(e,t={}){let n=!1;const r=t.onError||C;return t.onError=e=>{n=!0,r(e)},{...K(e,t),detectError:n}}(e,t),o=new Function(`return ${a}`)();return l?o:Ae[n]=o}},ve=Ct,be=function(e,t){if(!b(e))return null;let n=Z.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,c,u=-1,i=0,f=0;const m=[];function _(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=q(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!_()){if(l=Q(n),c=z[i],o=c[l]||c.l||8,8===o)return;if(i=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===i)return t}}(t),n&&Z.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},Le=ue,e.DatetimeFormat=Et,e.I18nD=vt,e.I18nInjectionKey=Nt,e.I18nN=dt,e.I18nT=_t,e.NumberFormat=gt,e.Translation=mt,e.VERSION=Ge,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ke.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){const a=!v(e.legacy)||e.legacy,l=!v(e.globalInjection)||e.globalInjection,o=!a||!!e.allowComposition,s=new Map,[c,u]=function(e,n,r){const a=t.effectScope();{const t=n?a.run((()=>ut(e))):a.run((()=>ct(e)));if(null==t)throw Error(Ke.UNEXPECTED_ERROR);return[a,t]}}(e,a),i=r("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return o},async install(n,...r){if(n.__VUE_I18N_SYMBOL__=i,n.provide(n.__VUE_I18N_SYMBOL__,e),k(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!a&&l&&function(e,n){const r=Object.create(null);It.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(Ke.UNEXPECTED_ERROR);const l=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,l)})),e.config.globalProperties.$i18n=r,yt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(Ke.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}))}(n,e.global),function(e,t,...n){const r=k(n[0])?n[0]:{},a=!!r.useI18nComponentName;(!v(r.globalInstall)||r.globalInstall)&&([a?"i18n":mt.name,"I18nT"].forEach((t=>e.component(t,mt))),[gt.name,"I18nN"].forEach((t=>e.component(t,gt))),[Et.name,"I18nD"].forEach((t=>e.component(t,Et)))),e.directive("t",bt(t))}(n,e,...r),a&&n.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(Ke.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root?this.$i18n=kt(e,t):(t.__injectWithOption=!0,this.$i18n=ut(t))}else l.__i18n?this===this.$root?this.$i18n=kt(e,l):this.$i18n=ut({__i18n:l.__i18n,__injectWithOption:!0,__root:n}):this.$i18n=e;l.__i18nGlobal&&at(n,l,l),e.__onComponentInstanceCreated(this.$i18n),r.__setInstance(a,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&r.__vueI18nExtend&&(r.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Ke.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(e),delete this.$i18n}}}(u,u.__composer,e));const o=n.unmount;n.unmount=()=>{e.dispose(),o()}},get global(){return u},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=Tt,e.vTDirective=bt,e}({},Vue); |
/*! | ||
* vue-i18n v9.3.0-beta.19 | ||
* vue-i18n v9.3.0-beta.20 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e),CompileErrorCodes={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,__EXTEND_POINT__:15};function createCompileError(e,t,a={}){const{domain:n,messages:r,args:l}=a,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=n,s}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(e){if(null==e)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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,l,s,o,i,c=-1,u=0,m=0;const g=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!f()){if(l=getPathCharType(a),i=pathStateMachine[u],s=i[l]||i.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(o=g[s[1]],o&&(r=a,!1===o())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,l=0;for(;l<n;){const e=r[a[l]];if(void 0===e)return null;r=e,l++}return r}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":e.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,l=e.list||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,s);function o(t){const a=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>l[e],named:e=>s[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",s="";1===a.length?isObject(n)?(s=n.modifier||s,l=n.type||l):isString(n)&&(s=n||s):2===a.length&&(isString(n)&&(s=n||s),isString(r)&&(l=r||l));let i=o(t)(u);return"vnode"===l&&isArray(i)&&s&&(i=i[0]),s?(c=s,e.modifiers?e.modifiers[c]:DEFAULT_MODIFIER)(i,l):i;var c},message:o,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i};return u}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(n);if(!l){l=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(l,e,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,isArray(e)&&appendBlockToChain(l,e,!1),r.__localeChainCache.set(n,l)}return l}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const l=t[r];isString(l)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const VERSION$1="9.3.0-beta.19",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}let _cid=0;function createCoreContext(e={}){const t=isString(e.version)?e.version:VERSION$1,a=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,r=isPlainObject(e.messages)?e.messages:{[a]:{}},l=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},s=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},o=assign({},e.modifiers||{},getDefaultLinkedModifiers()),i=e.pluralRules||{},c=isFunction(e.missing)?e.missing:null,u=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,f=!!e.unresolving,p=isFunction(e.postTranslation)?e.postTranslation:null,_=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,d=!!e.escapeParameter,E=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,v=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,O=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,I=isObject(e.fallbackContext)?e.fallbackContext:void 0,F=isFunction(e.onWarn)?e.onWarn:warn,N=e,T=isObject(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,h=isObject(N.__numberFormatters)?N.__numberFormatters:new Map,S=isObject(N.__meta)?N.__meta:{};_cid++;const L={version:t,cid:_cid,locale:a,fallbackLocale:n,messages:r,modifiers:o,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:g,unresolving:f,postTranslation:p,processor:_,warnHtmlMessage:b,escapeParameter:d,messageCompiler:E,messageResolver:v,localeFallbacker:O,fallbackContext:I,onWarn:F,__meta:S};return L.datetimeFormats=l,L.numberFormats=s,L.__datetimeFormatters=T,L.__numberFormatters=h,L}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:s}=e;if(null!==l){const n=l(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()},NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:l,fallbackLocale:s,messages:o}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,p=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?l?i:()=>i:c.default:a?l?i:()=>i:"",_=a||""!==p,b=isString(c.locale)?c.locale:e.locale;g&&escapeParams(c);let[d,E,v]=f?[i,b,o[b]||{}]:resolveMessageFormat(e,i,b,s,m,u),O=d,I=i;if(f||isString(O)||isMessageFunction(O)||_&&(O=p,I=O),!(f||(isString(O)||isMessageFunction(O))&&isString(E)))return r?NOT_REOSLVED:i;let F=!1;const N=isMessageFunction(O)?O:compileMessageFormat(e,i,E,O,I,(()=>{F=!0}));if(F)return O;const T=evaluateMessage(e,N,createMessageContext(getMessageContextOptions(e,E,v,c)));return n?n(T,i):T}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,l){const{messages:s,onWarn:o,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},f=null;for(let p=0;p<u.length&&(m=u[p],g=s[m]||{},null===(f=i(g,t))&&(f=g[t]),!isString(f)&&!isFunction(f));p++){const a=handleMissing(e,t,m,l,"translate");a!==t&&(f=a)}return[f,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:s,warnHtmlMessage:o}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const i=s(n,getCompileOptions(e,a,r,n,o,l));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r={};if(!isString(t)&&!isNumber(t)&&!isMessageFunction(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[l,r]}function getCompileOptions(e,t,a,n,r,l){return{warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:l,messageResolver:s,fallbackLocale:o,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=s(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,o,i,c);r=s(e,n)}if(isString(r)){let a=!1;const l=compileMessageFormat(e,n,t,r,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:l}return isMessageFunction(r)?r:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:s}=e,{__datetimeFormatters:o}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=isString(u.locale)?u.locale:e.locale,_=s(e,r,p);if(!isString(i)||""===i)return new Intl.DateTimeFormat(p,m).format(c);let b,d={},E=null;for(let I=0;I<_.length&&(b=_[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.DateTimeFormat(b,assign({},E,m)),o.set(v,O)),f?O.formatToParts(c):O.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,l={};let s,o={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=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(a);try{s.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[l.key||"",s,l,o]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:l,localeFallbacker:s}=e,{__numberFormatters:o}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=isString(u.locale)?u.locale:e.locale,_=s(e,r,p);if(!isString(i)||""===i)return new Intl.NumberFormat(p,m).format(c);let b,d={},E=null;for(let I=0;I<_.length&&(b=_[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.NumberFormat(b,assign({},E,m)),o.set(v,O)),f?O.formatToParts(c):O.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,l={};let s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=a[e]:l[e]=a[e]})),isString(n)?l.locale=n:isPlainObject(n)&&(s=n),isPlainObject(r)&&(s=r),[l.key||"",o,l,s]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const VERSION="9.3.0-beta.19";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOption=makeSymbol("__injectWithOption"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e;for(let e=0;e<n;e++)a[e]in r||(r[a[e]]={}),r=r[a[e]];r[a[n]]=e[t],delete e[t],isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:l}=t,s=isPlainObject(a)?a:isArray(n)?{}:{[e]:{}};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(s[t]=s[t]||{},deepCopy(a,s[t])):deepCopy(a,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==r&&l)for(const o in s)hasOwn(s,o)&&handleFlatJson(s[o]);return s}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const a in e)hasOwn(e,a)&&(isNotObjectOrIsArray(e[a])||isNotObjectOrIsArray(t[a])?t[a]=e[a]:deepCopy(e[a],t[a]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}function createComposer(e={},t){const{__root:a}=e,n=void 0===a;let r=!isBoolean(e.inheritLocale)||e.inheritLocale;const l=ref(a&&r?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),s=ref(a&&r?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l.value),o=ref(getLocaleMessages(l.value,e)),i=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),c=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[l.value]:{}});let u=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,f=!!e.fallbackFormat,p=isFunction(e.missing)?e.missing:null,_=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,d=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,E=!!e.escapeParameter;const v=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let O,I=e.pluralRules||a&&a.pluralRules;O=(()=>{const t={version:VERSION,locale:l.value,fallbackLocale:s.value,messages:o.value,modifiers:v,pluralRules:I,missing:null===_?void 0:_,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:d,escapeParameter:E,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=i.value,t.numberFormats=c.value,t.__datetimeFormatters=isPlainObject(O)?O.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(O)?O.__numberFormatters:void 0;return createCoreContext(t)})(),updateFallbackLocale(O,l.value,s.value);const F=computed({get:()=>l.value,set:e=>{l.value=e,O.locale=l.value}}),N=computed({get:()=>s.value,set:e=>{s.value=e,O.fallbackLocale=s.value,updateFallbackLocale(O,l.value,e)}}),T=computed((()=>o.value)),h=computed((()=>i.value)),S=computed((()=>c.value));const L=(e,t,n,r,u,m)=>{let f;if(l.value,s.value,o.value,i.value,c.value,f=e(O),isNumber(f)&&f===NOT_REOSLVED){const[e,n]=t();return a&&g?r(a):u(e)}if(m(f))return f;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function y(...e){return L((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const k={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function C(e){return o.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{r&&(l.value=e,O.locale=e,updateFallbackLocale(O,l.value,s.value))})),watch(a.fallbackLocale,(e=>{r&&(s.value=e,O.fallbackLocale=e,updateFallbackLocale(O,l.value,s.value))})));const M={id:composerID,locale:F,fallbackLocale:N,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&a&&(l.value=a.locale.value,s.value=a.fallbackLocale.value,updateFallbackLocale(O,l.value,s.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:T,get modifiers(){return v},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,O.missingWarn=u},get fallbackWarn(){return m},set fallbackWarn(e){m=e,O.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,O.fallbackFormat=f},get warnHtmlMessage(){return d},set warnHtmlMessage(e){d=e,O.warnHtmlMessage=e},get escapeParameter(){return E},set escapeParameter(e){E=e,O.escapeParameter=e},t:y,getLocaleMessage:C,setLocaleMessage:function(e,t){o.value[e]=t,O.messages=o.value},mergeLocaleMessage:function(e,t){o.value[e]=o.value[e]||{},deepCopy(t,o.value[e]),O.messages=o.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,O.postTranslation=e},getMissingHandler:function(){return p},setMissingHandler:function(e){null!==e&&(_=defineCoreMissingHandler(e)),p=e,O.missing=_},[SetPluralRulesSymbol]:function(e){I=e,O.pluralRules=I}};return M.datetimeFormats=h,M.numberFormats=S,M.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return y(t,a,assign({resolvedMessage:!0},n||{}))},M.te=function(e,t){const a=C(isString(t)?t:l.value);return null!==O.messageResolver(a,e)},M.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(O,s.value,l.value);for(let n=0;n<a.length;n++){const r=o.value[a[n]]||{},l=O.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},M.d=function(...e){return L((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.n=function(...e){return L((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.getDateTimeFormat=function(e){return i.value[e]||{}},M.setDateTimeFormat=function(e,t){i.value[e]=t,O.datetimeFormats=i.value,clearDateTimeFormat(O,e,t)},M.mergeDateTimeFormat=function(e,t){i.value[e]=assign(i.value[e]||{},t),O.datetimeFormats=i.value,clearDateTimeFormat(O,e,t)},M.getNumberFormat=function(e){return c.value[e]||{}},M.setNumberFormat=function(e,t){c.value[e]=t,O.numberFormats=c.value,clearNumberFormat(O,e,t)},M.mergeNumberFormat=function(e,t){c.value[e]=assign(c.value[e]||{},t),O.numberFormats=c.value,clearNumberFormat(O,e,t)},M[InejctWithOption]=e.__injectWithOption,M[TranslateVNodeSymbol]=function(...e){return L((t=>{let a;const n=t;try{n.processor=k,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},M[DatetimePartsSymbol]=function(...e){return L((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return L((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},M}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,o=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,f=!isBoolean(e.sync)||e.sync;let p=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),p||{})}const{__i18n:_,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:a,messages:p,flatJson:e.flatJson,datetimeFormats:E,numberFormats:v,missing:n,missingWarn:r,fallbackWarn:l,fallbackRoot:s,fallbackFormat:o,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:f,__i18n:_,__root:b,__injectWithOption:d}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),a={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,r]=e,l={};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,r]=e,l={plural:1};let s=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?l.locale=n:isNumber(n)?l.plural=n:isArray(n)?s=n:isPlainObject(n)&&(o=n),isString(r)?l.locale=r:isArray(r)?s=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,s||o||{},l])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:n}=e;n&&n(t,a)}};return a}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(a).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,o,s),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:l}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const o=n(e.value,t,s);let i=[t.key];isArray(o)?i=o.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:o}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(o)&&(i=[o]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,modifiers:n,value:r}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const l=getComposer$1(e,a.$),s=parseValue(r);return[Reflect.apply(l.t,l,[...makeParams(s)]),l]};return{created:(a,n)=>{const[r,l]=t(n);inBrowser&&e.global===l&&(a.__i18nWatcher=watch(l.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=l,a.textContent=r},unmounted:e=>{inBrowser&&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){const a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:l}=e,s={},o=n||{};return isString(a)&&(s.locale=a),isNumber(r)&&(s.plural=r),isNumber(l)&&(s.plural=l),[t,o,s]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{},r=!!n.useI18nComponentName;(!isBoolean(n.globalInstall)||n.globalInstall)&&(e.component(r?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(t))}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const a=r.i18n;r.__i18n&&(a.__i18n=r.__i18n),a.__root=t,this===this.$root?this.$i18n=mergeToRoot(e,a):(a.__injectWithOption=!0,this.$i18n=createVueI18n(a))}else r.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,r):this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),e.__onComponentInstanceCreated(this.$i18n),a.__setInstance(n,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&a.__vueI18nExtend&&(a.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[s,o]=createGlobal(e,a),i=makeSymbol("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return r},async install(t,...r){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!a&&n&&injectGlobalFields(t,e.global),apply(t,e,...r),a&&t.mixin(defineMixin(o,o.__composer,e));const l=t.unmount;t.unmount=()=>{e.dispose(),l()}},get global(){return o},dispose(){s.stop()},__instances:l,__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),l=getScope(e,r);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,l,n,e)}if("global"===l)return adjustI18nResources(n,e,r),n;if("parent"===l){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const s=a;let o=s.__getInstance(t);if(null==o){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),o=createComposer(a),s.__composerExtend&&s.__composerExtend(o),setupLifeCycle(s,t),s.__setInstance(t,o)}return o}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,a){const n=effectScope();{const a=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,a]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,a=!1){let n=null;const r=t.root;let l=getParentComponentInstance(t,a);for(;null!=l;){const t=e;if("composition"===e.mode)n=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOption]&&(n=null))}if(null!=n)break;if(r===l)break;l=l.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{e.__deleteInstance(t)}),t)}function useI18nForLegacy(e,t,a,n={}){const r="local"===t,l=shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),o=ref(!r||s?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||s?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:o.value),c=ref(getLocaleMessages(o.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[o.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[o.value]:{}}),g=r?a.missingWarn:!isBoolean(n.missingWarn)&&!isRegExp(n.missingWarn)||n.missingWarn,f=r?a.fallbackWarn:!isBoolean(n.fallbackWarn)&&!isRegExp(n.fallbackWarn)||n.fallbackWarn,p=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,_=!!n.fallbackFormat,b=isFunction(n.missing)?n.missing:null,d=isFunction(n.postTranslation)?n.postTranslation:null,E=r?a.warnHtmlMessage:!isBoolean(n.warnHtmlMessage)||n.warnHtmlMessage,v=!!n.escapeParameter,O=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},I=n.pluralRules||r&&a.pluralRules;function F(e){return o.value,i.value,c.value,u.value,m.value,e()}const N={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:o.value,set:e=>{l.value&&(l.value.locale.value=e),o.value=e}}),fallbackLocale:computed({get:()=>l.value?l.value.fallbackLocale.value:i.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>l.value?l.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return l.value?l.value.inheritLocale:s},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(c.value)},get modifiers(){return l.value?l.value.modifiers:O},get pluralRules(){return l.value?l.value.pluralRules:I},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:g},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:f},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:p},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:_},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:E},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:v},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:function(...e){return l.value?F((()=>Reflect.apply(l.value.t,null,[...e]))):F((()=>""))},getPostTranslationHandler:function(){return l.value?l.value.getPostTranslationHandler():d},setPostTranslationHandler:function(e){l.value&&l.value.setPostTranslationHandler(e)},getMissingHandler:function(){return l.value?l.value.getMissingHandler():b},setMissingHandler:function(e){l.value&&l.value.setMissingHandler(e)},rt:function(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""},d:function(...e){return l.value?F((()=>Reflect.apply(l.value.d,null,[...e]))):F((()=>""))},n:function(...e){return l.value?F((()=>Reflect.apply(l.value.n,null,[...e]))):F((()=>""))},tm:function(e){return l.value?l.value.tm(e):{}},te:function(e,t){return!!l.value&&l.value.te(e,t)},getLocaleMessage:function(e){return l.value?l.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){l.value&&(l.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){l.value&&l.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return l.value?l.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){l.value&&(l.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return l.value?l.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){l.value&&(l.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){l.value&&l.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=l.value=e.proxy.$i18n.__composer;"global"===t?(o.value=a.locale.value,i.value=a.fallbackLocale.value,c.value=a.messages.value,u.value=a.datetimeFormats.value,m.value=a.numberFormats.value):r&&function(e){e.locale.value=o.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=v,e.fallbackFormat=_,e.fallbackRoot=p,e.fallbackWarn=f,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),N}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}))}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; | ||
import{createVNode,Text,ref,computed,watch,getCurrentInstance,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,shallowRef,onBeforeMount,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length;function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}const CompileErrorCodes={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,__EXTEND_POINT__:15};function createCompileError(e,t,a={}){const{domain:n,messages:r,args:s}=a,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=n,l}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(e){if(null==e)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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,s,l,o,i,c=-1,u=0,m=0;const g=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!f()){if(s=getPathCharType(a),i=pathStateMachine[u],l=i[s]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(o=g[l[1]],o&&(r=a,!1===o())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,s=0;for(;s<n;){const e=r[a[s]];if(void 0===e)return null;r=e,s++}return r}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,s=e.list||[],l=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,l);function o(t){const a=isFunction(e.messages)?e.messages(t):!!isObject(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>s[e],named:e=>l[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let s="text",l="";1===a.length?isObject(n)?(l=n.modifier||l,s=n.type||s):isString(n)&&(l=n||l):2===a.length&&(isString(n)&&(l=n||l),isString(r)&&(s=r||s));const i=o(t)(u),c="vnode"===s&&isArray(i)&&l?i[0]:i;return l?(m=l,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,s):c;var m},message:o,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i};return u}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(s,e,t);const l=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(l)?[l]:l,isArray(e)&&appendBlockToChain(s,e,!1),r.__localeChainCache.set(n,s)}return s}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const s=t[r];isString(s)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const VERSION$1="9.3.0-beta.20",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}let _cid=0;function createCoreContext(e={}){const t=isString(e.version)?e.version:VERSION$1,a=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,r=isPlainObject(e.messages)?e.messages:{[a]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},o=assign({},e.modifiers||{},getDefaultLinkedModifiers()),i=e.pluralRules||{},c=isFunction(e.missing)?e.missing:null,u=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,f=!!e.unresolving,p=isFunction(e.postTranslation)?e.postTranslation:null,_=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,d=!!e.escapeParameter,E=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,v=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,O=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,I=isObject(e.fallbackContext)?e.fallbackContext:void 0,T=isFunction(e.onWarn)?e.onWarn:warn,F=e,N=isObject(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,S=isObject(F.__numberFormatters)?F.__numberFormatters:new Map,h=isObject(F.__meta)?F.__meta:{};_cid++;const L={version:t,cid:_cid,locale:a,fallbackLocale:n,messages:r,modifiers:o,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:g,unresolving:f,postTranslation:p,processor:_,warnHtmlMessage:b,escapeParameter:d,messageCompiler:E,messageResolver:v,localeFallbacker:O,fallbackContext:I,onWarn:T,__meta:h};return L.datetimeFormats=s,L.numberFormats=l,L.__datetimeFormatters=N,L.__numberFormatters=S,L}function handleMissing(e,t,a,n,r){const{missing:s,onWarn:l}=e;if(null!==s){const n=s(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_AST:inc$1(),__EXTEND_POINT__:inc$1()},NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e),isMessageAST=e=>isObject(e)&&0===e.type&&"body"in e;function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:s,fallbackLocale:l,messages:o}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,p=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?s?i:()=>i:c.default:a?s?i:()=>i:"",_=a||""!==p,b=isString(c.locale)?c.locale:e.locale;g&&escapeParams(c);let[d,E,v]=f?[i,b,o[b]||{}]:resolveMessageFormat(e,i,b,l,m,u),O=d,I=i;if(f||isString(O)||isMessageAST(O)||isMessageFunction(O)||_&&(O=p,I=O),!(f||(isString(O)||isMessageAST(O)||isMessageFunction(O))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const F=isMessageFunction(O)?O:compileMessageFormat(e,i,E,O,I,(()=>{T=!0}));if(T)return O;const N=evaluateMessage(e,F,createMessageContext(getMessageContextOptions(e,E,v,c)));return n?n(N,i):N}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,s){const{messages:l,onWarn:o,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},f=null;for(let p=0;p<u.length&&(m=u[p],g=l[m]||{},null===(f=i(g,t))&&(f=g[t]),!(isString(f)||isMessageAST(f)||isMessageFunction(f)));p++){const a=handleMissing(e,t,m,s,"translate");a!==t&&(f=a)}return[f,m,g]}function compileMessageFormat(e,t,a,n,r,s){const{messageCompiler:l,warnHtmlMessage:o}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==l){const e=()=>n;return e.locale=a,e.key=t,e}const i=l(n,getCompileOptions(e,a,r,n,o,s));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r={};if(!isString(t)&&!isNumber(t)&&!isMessageFunction(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[s,r]}function getCompileOptions(e,t,a,n,r,s){return{warnHtmlMessage:r,onError:e=>{throw s&&s(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:s,messageResolver:l,fallbackLocale:o,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:s,messages:n=>{let r=l(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,o,i,c);r=l(e,n)}if(isString(r)||isMessageAST(r)){let a=!1;const s=compileMessageFormat(e,n,t,r,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:s}return isMessageFunction(r)?r:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:o}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=isString(u.locale)?u.locale:e.locale,_=l(e,r,p);if(!isString(i)||""===i)return new Intl.DateTimeFormat(p,m).format(c);let b,d={},E=null;for(let I=0;I<_.length&&(b=_[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.DateTimeFormat(b,assign({},E,m)),o.set(v,O)),f?O.formatToParts(c):O.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,s={};let l,o={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();l=new Date(a);try{l.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);l=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);l=t}return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[s.key||"",l,s,o]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:o}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=isString(u.locale)?u.locale:e.locale,_=l(e,r,p);if(!isString(i)||""===i)return new Intl.NumberFormat(p,m).format(c);let b,d={},E=null;for(let I=0;I<_.length&&(b=_[I],d=a[b]||{},E=d[i],!isPlainObject(E));I++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let v=`${b}__${i}`;isEmptyObject(m)||(v=`${v}__${JSON.stringify(m)}`);let O=o.get(v);return O||(O=new Intl.NumberFormat(b,assign({},E,m)),o.set(v,O)),f?O.formatToParts(c):O.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,s={};let l={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=t;return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?l[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(l=n),isPlainObject(r)&&(l=r),[s.key||"",o,s,l]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const VERSION="9.3.0-beta.20";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOption=makeSymbol("__injectWithOption"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e,s=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){s=!0;break}r=r[a[e]]}s||(r[a[n]]=e[t],delete e[t]),isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:s}=t,l=isPlainObject(a)?a:isArray(n)?{}:{[e]:{}};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(l[t]=l[t]||{},deepCopy(a,l[t])):deepCopy(a,l)}else isString(e)&&deepCopy(JSON.parse(e),l)})),null==r&&s)for(const o in l)hasOwn(l,o)&&handleFlatJson(l[o]);return l}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw Error(I18nErrorCodes.INVALID_VALUE);for(const a in e)hasOwn(e,a)&&(isNotObjectOrIsArray(e[a])||isNotObjectOrIsArray(t[a])?t[a]=e[a]:deepCopy(e[a],t[a]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}function createComposer(e={},t){const{__root:a}=e,n=void 0===a;let r=!isBoolean(e.inheritLocale)||e.inheritLocale;const s=ref(a&&r?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),l=ref(a&&r?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),o=ref(getLocaleMessages(s.value,e)),i=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let u=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,m=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,f=!!e.fallbackFormat,p=isFunction(e.missing)?e.missing:null,_=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,d=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,E=!!e.escapeParameter;const v=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let O,I=e.pluralRules||a&&a.pluralRules;O=(()=>{const t={version:VERSION,locale:s.value,fallbackLocale:l.value,messages:o.value,modifiers:v,pluralRules:I,missing:null===_?void 0:_,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:d,escapeParameter:E,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=i.value,t.numberFormats=c.value,t.__datetimeFormatters=isPlainObject(O)?O.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(O)?O.__numberFormatters:void 0;return createCoreContext(t)})(),updateFallbackLocale(O,s.value,l.value);const T=computed({get:()=>s.value,set:e=>{s.value=e,O.locale=s.value}}),F=computed({get:()=>l.value,set:e=>{l.value=e,O.fallbackLocale=l.value,updateFallbackLocale(O,s.value,e)}}),N=computed((()=>o.value)),S=computed((()=>i.value)),h=computed((()=>c.value));const L=(e,t,n,r,u,m)=>{let f;if(s.value,l.value,o.value,i.value,c.value,f=e(O),isNumber(f)&&f===NOT_REOSLVED){const[e,n]=t();return a&&g?r(a):u(e)}if(m(f))return f;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function y(...e){return L((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const k={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function C(e){return o.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{r&&(s.value=e,O.locale=e,updateFallbackLocale(O,s.value,l.value))})),watch(a.fallbackLocale,(e=>{r&&(l.value=e,O.fallbackLocale=e,updateFallbackLocale(O,s.value,l.value))})));const M={id:composerID,locale:T,fallbackLocale:F,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&a&&(s.value=a.locale.value,l.value=a.fallbackLocale.value,updateFallbackLocale(O,s.value,l.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:N,get modifiers(){return v},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,O.missingWarn=u},get fallbackWarn(){return m},set fallbackWarn(e){m=e,O.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,O.fallbackFormat=f},get warnHtmlMessage(){return d},set warnHtmlMessage(e){d=e,O.warnHtmlMessage=e},get escapeParameter(){return E},set escapeParameter(e){E=e,O.escapeParameter=e},t:y,getLocaleMessage:C,setLocaleMessage:function(e,t){o.value[e]=t,O.messages=o.value},mergeLocaleMessage:function(e,t){o.value[e]=o.value[e]||{},deepCopy(t,o.value[e]),O.messages=o.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,O.postTranslation=e},getMissingHandler:function(){return p},setMissingHandler:function(e){null!==e&&(_=defineCoreMissingHandler(e)),p=e,O.missing=_},[SetPluralRulesSymbol]:function(e){I=e,O.pluralRules=I}};return M.datetimeFormats=S,M.numberFormats=h,M.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return y(t,a,assign({resolvedMessage:!0},n||{}))},M.te=function(e,t){const a=C(isString(t)?t:s.value);return null!==O.messageResolver(a,e)},M.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(O,l.value,s.value);for(let n=0;n<a.length;n++){const r=o.value[a[n]]||{},s=O.messageResolver(r,e);if(null!=s){t=s;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},M.d=function(...e){return L((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.n=function(...e){return L((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.getDateTimeFormat=function(e){return i.value[e]||{}},M.setDateTimeFormat=function(e,t){i.value[e]=t,O.datetimeFormats=i.value,clearDateTimeFormat(O,e,t)},M.mergeDateTimeFormat=function(e,t){i.value[e]=assign(i.value[e]||{},t),O.datetimeFormats=i.value,clearDateTimeFormat(O,e,t)},M.getNumberFormat=function(e){return c.value[e]||{}},M.setNumberFormat=function(e,t){c.value[e]=t,O.numberFormats=c.value,clearNumberFormat(O,e,t)},M.mergeNumberFormat=function(e,t){c.value[e]=assign(c.value[e]||{},t),O.numberFormats=c.value,clearNumberFormat(O,e,t)},M[InejctWithOption]=e.__injectWithOption,M[TranslateVNodeSymbol]=function(...e){return L((t=>{let a;const n=t;try{n.processor=k,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},M[DatetimePartsSymbol]=function(...e){return L((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return L((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),(()=>[]),(e=>isString(e)||isArray(e)))},M}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,l=!isBoolean(e.fallbackRoot)||e.fallbackRoot,o=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,f=!isBoolean(e.sync)||e.sync;let p=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),p||{})}const{__i18n:_,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:a,messages:p,flatJson:e.flatJson,datetimeFormats:E,numberFormats:v,missing:n,missingWarn:r,fallbackWarn:s,fallbackRoot:l,fallbackFormat:o,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:f,__i18n:_,__root:b,__injectWithOption:d}}function createVueI18n(e={},t){{const t=createComposer(convertComposerOptions(e)),a={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,r]=e,s={};let l=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?s.locale=n:isArray(n)?l=n:isPlainObject(n)&&(o=n),isArray(r)?l=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,l||o||{},s])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,r]=e,s={plural:1};let l=null,o=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?s.locale=n:isNumber(n)?s.plural=n:isArray(n)?l=n:isPlainObject(n)&&(o=n),isString(r)?s.locale=r:isArray(r)?l=r:isPlainObject(r)&&(o=r),Reflect.apply(t.t,t,[i,l||o||{},s])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:n}=e;n&&n(t,a)}};return a}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter((e=>"_"!==e)),l={};e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(t,s),i=r[TranslateVNodeSymbol](e.keypath,o,l),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:s}=t;return()=>{const t={part:!0};let l={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const o=n(e.value,t,l);let i=[t.key];isArray(o)?i=o.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:o}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(o)&&(i=[o]);const c=assign({},s),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,modifiers:n,value:r}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const s=getComposer$1(e,a.$),l=parseValue(r);return[Reflect.apply(s.t,s,[...makeParams(l)]),s]};return{created:(a,n)=>{const[r,s]=t(n);inBrowser&&e.global===s&&(a.__i18nWatcher=watch(s.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=s,a.textContent=r},unmounted:e=>{inBrowser&&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){const a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:s}=e,l={},o=n||{};return isString(a)&&(l.locale=a),isNumber(r)&&(l.plural=r),isNumber(s)&&(l.plural=s),[t,o,l]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{},r=!!n.useI18nComponentName;(!isBoolean(n.globalInstall)||n.globalInstall)&&([r?"i18n":Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const a=r.i18n;r.__i18n&&(a.__i18n=r.__i18n),a.__root=t,this===this.$root?this.$i18n=mergeToRoot(e,a):(a.__injectWithOption=!0,this.$i18n=createVueI18n(a))}else r.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,r):this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),e.__onComponentInstanceCreated(this.$i18n),a.__setInstance(n,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&a.__vueI18nExtend&&(a.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,s=new Map,[l,o]=createGlobal(e,a),i=makeSymbol("");{const e={get mode(){return a?"legacy":"composition"},get allowComposition(){return r},async install(t,...r){if(t.__VUE_I18N_SYMBOL__=i,t.provide(t.__VUE_I18N_SYMBOL__,e),isPlainObject(r[0])){const t=r[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!a&&n&&injectGlobalFields(t,e.global),apply(t,e,...r),a&&t.mixin(defineMixin(o,o.__composer,e));const s=t.unmount;t.unmount=()=>{e.dispose(),s()}},get global(){return o},dispose(){l.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),s=getScope(e,r);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,s,n,e)}if("global"===s)return adjustI18nResources(n,e,r),n;if("parent"===s){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const l=a;let o=l.__getInstance(t);if(null==o){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),o=createComposer(a),l.__composerExtend&&l.__composerExtend(o),setupLifeCycle(l,t),l.__setInstance(t,o)}return o}const castToVueI18n=e=>{if(!(__VUE_I18N_BRIDGE__ in e))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function createGlobal(e,t,a){const n=effectScope();{const a=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,a]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,a=!1){let n=null;const r=t.root;let s=getParentComponentInstance(t,a);for(;null!=s;){const t=e;if("composition"===e.mode)n=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOption]&&(n=null))}if(null!=n)break;if(r===s)break;s=s.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{e.__deleteInstance(t)}),t)}function useI18nForLegacy(e,t,a,n={}){const r="local"===t,s=shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),o=ref(!r||l?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||l?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:o.value),c=ref(getLocaleMessages(o.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[o.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[o.value]:{}}),g=r?a.missingWarn:!isBoolean(n.missingWarn)&&!isRegExp(n.missingWarn)||n.missingWarn,f=r?a.fallbackWarn:!isBoolean(n.fallbackWarn)&&!isRegExp(n.fallbackWarn)||n.fallbackWarn,p=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,_=!!n.fallbackFormat,b=isFunction(n.missing)?n.missing:null,d=isFunction(n.postTranslation)?n.postTranslation:null,E=r?a.warnHtmlMessage:!isBoolean(n.warnHtmlMessage)||n.warnHtmlMessage,v=!!n.escapeParameter,O=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},I=n.pluralRules||r&&a.pluralRules;function T(e){return o.value,i.value,c.value,u.value,m.value,e()}const F={get id(){return s.value?s.value.id:-1},locale:computed({get:()=>s.value?s.value.locale.value:o.value,set:e=>{s.value&&(s.value.locale.value=e),o.value=e}}),fallbackLocale:computed({get:()=>s.value?s.value.fallbackLocale.value:i.value,set:e=>{s.value&&(s.value.fallbackLocale.value=e),i.value=e}}),messages:computed((()=>s.value?s.value.messages.value:c.value)),datetimeFormats:computed((()=>u.value)),numberFormats:computed((()=>m.value)),get inheritLocale(){return s.value?s.value.inheritLocale:l},set inheritLocale(e){s.value&&(s.value.inheritLocale=e)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:O},get pluralRules(){return s.value?s.value.pluralRules:I},get isGlobal(){return!!s.value&&s.value.isGlobal},get missingWarn(){return s.value?s.value.missingWarn:g},set missingWarn(e){s.value&&(s.value.missingWarn=e)},get fallbackWarn(){return s.value?s.value.fallbackWarn:f},set fallbackWarn(e){s.value&&(s.value.missingWarn=e)},get fallbackRoot(){return s.value?s.value.fallbackRoot:p},set fallbackRoot(e){s.value&&(s.value.fallbackRoot=e)},get fallbackFormat(){return s.value?s.value.fallbackFormat:_},set fallbackFormat(e){s.value&&(s.value.fallbackFormat=e)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:E},set warnHtmlMessage(e){s.value&&(s.value.warnHtmlMessage=e)},get escapeParameter(){return s.value?s.value.escapeParameter:v},set escapeParameter(e){s.value&&(s.value.escapeParameter=e)},t:function(...e){return s.value?T((()=>Reflect.apply(s.value.t,null,[...e]))):T((()=>""))},getPostTranslationHandler:function(){return s.value?s.value.getPostTranslationHandler():d},setPostTranslationHandler:function(e){s.value&&s.value.setPostTranslationHandler(e)},getMissingHandler:function(){return s.value?s.value.getMissingHandler():b},setMissingHandler:function(e){s.value&&s.value.setMissingHandler(e)},rt:function(...e){return s.value?Reflect.apply(s.value.rt,null,[...e]):""},d:function(...e){return s.value?T((()=>Reflect.apply(s.value.d,null,[...e]))):T((()=>""))},n:function(...e){return s.value?T((()=>Reflect.apply(s.value.n,null,[...e]))):T((()=>""))},tm:function(e){return s.value?s.value.tm(e):{}},te:function(e,t){return!!s.value&&s.value.te(e,t)},getLocaleMessage:function(e){return s.value?s.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){s.value&&(s.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){s.value&&s.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return s.value?s.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){s.value&&(s.value.setDateTimeFormat(e,t),u.value[e]=t)},mergeDateTimeFormat:function(e,t){s.value&&s.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return s.value?s.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){s.value&&(s.value.setNumberFormat(e,t),m.value[e]=t)},mergeNumberFormat:function(e,t){s.value&&s.value.mergeNumberFormat(e,t)}};return onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=s.value=e.proxy.$i18n.__composer;"global"===t?(o.value=a.locale.value,i.value=a.fallbackLocale.value,c.value=a.messages.value,u.value=a.datetimeFormats.value,m.value=a.numberFormats.value):r&&function(e){e.locale.value=o.value,e.fallbackLocale.value=i.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeDateTimeFormat(t,u.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeNumberFormat(t,m.value[t])})),e.escapeParameter=v,e.fallbackFormat=_,e.fallbackRoot=p,e.fallbackWarn=f,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),F}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}))}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n,vTDirective}; |
/*! | ||
* vue-i18n v9.3.0-beta.19 | ||
* vue-i18n v9.3.0-beta.20 | ||
* (c) 2023 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=function(e,t){"use strict";const a="undefined"!=typeof window,n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,a)=>r({l:e,k:t,s:a}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===E(e),c=e=>"[object RegExp]"===E(e),i=e=>F(e)&&0===Object.keys(e).length;function u(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const m=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const g=Object.prototype.hasOwnProperty;function _(e,t){return g.call(e,t)}const p=Array.isArray,v=e=>"function"==typeof e,b=e=>"string"==typeof e,d=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,E=e=>h.call(e),F=e=>{if(!k(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},L=15;function y(e,t,a={}){const{domain:n,messages:l,args:r}=a,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=n,o}const I=[];I[0]={w:[0],i:[3,0],"[":[4],o:[7]},I[1]={w:[1],".":[2],"[":[4],o:[7]},I[2]={w:[2],i:[3,0],0:[3,0]},I[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},I[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},I[5]={"'":[4,0],o:8,l:[5,0]},I[6]={'"':[4,0],o:8,l:[6,0]};const T=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)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 R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,T.test(a)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var a}const W=new Map;function M(e,t){return k(e)?e[t]:null}const O=e=>e,w=e=>"",D="text",C=e=>0===e.length?"":e.join(""),P=e=>null==e?"":p(e)||F(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function A(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function $(e={}){const t=e.locale,a=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),n=k(e.pluralRules)&&b(t)&&v(e.pluralRules[t])?e.pluralRules[t]:A,l=k(e.pluralRules)&&b(t)&&v(e.pluralRules[t])?A:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function c(t){const a=v(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):w)}const i=F(e.processor)&&v(e.processor.normalize)?e.processor.normalize:C,u=F(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:P,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?k(n)?(o=n.modifier||o,r=n.type||r):b(n)&&(o=n||o):2===a.length&&(b(n)&&(o=n||o),b(l)&&(r=l||r));let s=c(t)(m);return"vnode"===r&&p(s)&&o&&(s=s[0]),o?(i=o,e.modifiers?e.modifiers[i]:O)(s,r):s;var i},message:c,type:F(e.processor)&&b(e.processor.type)?e.processor.type:D,interpolate:u,normalize:i};return m}function S(e,t,a){return[...new Set([a,...p(t)?t:k(t)?Object.keys(t):b(t)?[t]:[a]])]}function U(e,t,a){const n=b(a)?a:B,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;p(e);)e=H(r,e,t);const o=p(t)||!F(t)?t:t.default?t.default:null;e=b(o)?[o]:o,p(e)&&H(r,e,!1),l.__localeChainCache.set(n,r)}return r}function H(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];b(r)&&(n=j(e,t[l],a))}return n}function j(e,t,a){let n;const l=t.split("-");do{n=V(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function V(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(p(a)||F(a))&&a[l]&&(n=a[l])}return n}const x="9.3.0-beta.19",G=-1,B="en-US",Y="",X=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let z,J,q;let Z=0;function K(e={}){const t=b(e.version)?e.version:x,a=b(e.locale)?e.locale:B,n=p(e.fallbackLocale)||F(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=F(e.messages)?e.messages:{[a]:{}},r=F(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},o=F(e.numberFormats)?e.numberFormats:{[a]:{}},s=m({},e.modifiers||{},{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?X(e):"vnode"===t&&k(e)&&"__v_isVNode"in e?X(e.children):e}),i=e.pluralRules||{},f=v(e.missing)?e.missing:null,g=!d(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,_=!d(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,E=!!e.unresolving,L=v(e.postTranslation)?e.postTranslation:null,y=F(e.processor)?e.processor:null,I=!d(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter,N=v(e.messageCompiler)?e.messageCompiler:z,R=v(e.messageResolver)?e.messageResolver:J||M,W=v(e.localeFallbacker)?e.localeFallbacker:q||S,O=k(e.fallbackContext)?e.fallbackContext:void 0,w=v(e.onWarn)?e.onWarn:u,D=e,C=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=k(D.__numberFormatters)?D.__numberFormatters:new Map,A=k(D.__meta)?D.__meta:{};Z++;const $={version:t,cid:Z,locale:a,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:f,missingWarn:g,fallbackWarn:_,fallbackFormat:h,unresolving:E,postTranslation:L,processor:y,warnHtmlMessage:I,escapeParameter:T,messageCompiler:N,messageResolver:R,localeFallbacker:W,fallbackContext:O,onWarn:w,__meta:A};return $.datetimeFormats=r,$.numberFormats=o,$.__datetimeFormatters=C,$.__numberFormatters=P,$}function Q(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return b(n)?n:t}return t}function ee(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let te=L;const ae=()=>++te,ne={INVALID_ARGUMENT:te,INVALID_DATE_ARGUMENT:ae(),INVALID_ISO_DATE_ARGUMENT:ae(),__EXTEND_POINT__:ae()},le=()=>"",re=e=>v(e);function oe(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:c}=e,[i,u]=ie(...t),m=d(u.missingWarn)?u.missingWarn:e.missingWarn,g=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,_=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,h=b(u.default)||d(u.default)?d(u.default)?r?i:()=>i:u.default:a?r?i:()=>i:"",E=a||""!==h,F=b(u.locale)?u.locale:e.locale;_&&function(e){p(e.list)?e.list=e.list.map((e=>b(e)?f(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[L,y,I]=v?[i,F,c[F]||{}]:se(e,i,F,s,g,m),T=L,N=i;if(v||b(T)||re(T)||E&&(T=h,N=T),!(v||(b(T)||re(T))&&b(y)))return l?G:i;let R=!1;const W=re(T)?T:ce(e,i,y,T,N,(()=>{R=!0}));if(R)return T;const M=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=se(m,n,t,c,i,u);l=s(e,n)}if(b(l)){let a=!1;const r=ce(e,n,t,l,n,(()=>{a=!0}));return a?le:r}return re(l)?l:le},g={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(g.processor=e.processor);n.list&&(g.list=n.list);n.named&&(g.named=n.named);o(n.plural)&&(g.pluralIndex=n.plural);return g}(e,y,I,u),O=function(e,t,a){const n=t(a);return n}(0,W,$(M));return n?n(O,i):O}function se(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,n,a);let m,f={},g=null;for(let _=0;_<u.length&&(m=u[_],f=o[m]||{},null===(g=c(f,t))&&(g=f[t]),!b(g)&&!v(g));_++){const a=Q(e,t,m,0,"translate");a!==t&&(g=a)}return[g,m,f]}function ce(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(re(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const i=s(n,function(e,t,a,n,r,o){return{warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,c,o));return i.locale=a,i.key=t,i.source=n,i}function ie(...e){const[t,a,n]=e,l={};if(!b(t)&&!o(t)&&!re(t))throw Error(ne.INVALID_ARGUMENT);const r=o(t)?String(t):(re(t),t);return o(a)?l.plural=a:b(a)?l.default=a:F(a)&&!i(a)?l.named=a:p(a)&&(l.list=a),o(n)?l.plural=n:b(n)?l.default=n:F(n)&&m(l,n),[r,l]}function ue(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,u,f,g]=fe(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=b(f.locale)?f.locale:e.locale,v=o(e,l,p);if(!b(c)||""===c)return new Intl.DateTimeFormat(p,g).format(u);let k,h={},E=null;for(let i=0;i<v.length&&(k=v[i],h=a[k]||{},E=h[c],!F(E));i++)Q(e,c,k,0,"datetime format");if(!F(E)||!b(k))return n?G:c;let L=`${k}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let y=s.get(L);return y||(y=new Intl.DateTimeFormat(k,m({},E,g)),s.set(L,y)),_?y.formatToParts(u):y.format(u)}const me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fe(...e){const[t,a,n,l]=e,r={};let c,i={};if(b(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ne.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(a);try{c.toISOString()}catch(u){throw Error(ne.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ne.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(ne.INVALID_ARGUMENT);c=t}return b(a)?r.key=a:F(a)&&Object.keys(a).forEach((e=>{me.includes(e)?i[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:F(n)&&(i=n),F(l)&&(i=l),[r.key||"",c,r,i]}function ge(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function _e(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,u,f,g]=ve(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=b(f.locale)?f.locale:e.locale,v=o(e,l,p);if(!b(c)||""===c)return new Intl.NumberFormat(p,g).format(u);let k,h={},E=null;for(let i=0;i<v.length&&(k=v[i],h=a[k]||{},E=h[c],!F(E));i++)Q(e,c,k,0,"number format");if(!F(E)||!b(k))return n?G:c;let L=`${k}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let y=s.get(L);return y||(y=new Intl.NumberFormat(k,m({},E,g)),s.set(L,y)),_?y.formatToParts(u):y.format(u)}const pe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ve(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(ne.INVALID_ARGUMENT);const c=t;return b(a)?r.key=a:F(a)&&Object.keys(a).forEach((e=>{pe.includes(e)?s[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:F(n)&&(s=n),F(l)&&(s=l),[r.key||"",c,r,s]}function be(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const de="9.3.0-beta.19";let ke=L;const he=()=>++ke,Ee={UNEXPECTED_RETURN_TYPE:ke,INVALID_ARGUMENT:he(),MUST_BE_CALL_SETUP_TOP:he(),NOT_INSTALLED:he(),NOT_AVAILABLE_IN_LEGACY_MODE:he(),REQUIRED_VALUE:he(),INVALID_VALUE:he(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:he(),NOT_INSTALLED_WITH_PROVIDE:he(),UNEXPECTED_ERROR:he(),NOT_COMPATIBLE_LEGACY_VUE_I18N:he(),BRIDGE_SUPPORT_VUE_2_ONLY:he(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:he(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:he(),__EXTEND_POINT__:he()};const Fe=n("__translateVNode"),Le=n("__datetimeParts"),ye=n("__numberParts"),Ie=n("__setPluralRules"),Te=n("__injectWithOption");function Ne(e){if(!k(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e;for(let e=0;e<n;e++)a[e]in l||(l[a[e]]={}),l=l[a[e]];l[a[n]]=e[t],delete e[t],k(l[a[n]])&&Ne(l[a[n]])}else k(e[t])&&Ne(e[t]);return e}function Re(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=F(a)?a:p(n)?{}:{[e]:{}};if(p(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},Me(a,o[t])):Me(a,o)}else b(e)&&Me(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&Ne(o[s]);return o}const We=e=>!k(e)||p(e);function Me(e,t){if(We(e)||We(t))throw Error(Ee.INVALID_VALUE);for(const a in e)_(e,a)&&(We(e[a])||We(t[a])?t[a]=e[a]:Me(e[a],t[a]))}function Oe(e,t,a){let n=k(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Re(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),k(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(k(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function we(e){return t.createVNode(t.Text,null,e,0)}let De=0;function Ce(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Pe(e={},n){const{__root:l}=e,r=void 0===l;let s=!d(e.inheritLocale)||e.inheritLocale;const i=t.ref(l&&s?l.locale.value:b(e.locale)?e.locale:B),u=t.ref(l&&s?l.fallbackLocale.value:b(e.fallbackLocale)||p(e.fallbackLocale)||F(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),f=t.ref(Re(i.value,e)),g=t.ref(F(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),_=t.ref(F(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=l?l.missingWarn:!d(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!d(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,y=!!e.fallbackFormat,I=v(e.missing)?e.missing:null,T=v(e.missing)?Ce(e.missing):null,N=v(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,W=!!e.escapeParameter;const M=l?l.modifiers:F(e.modifiers)?e.modifiers:{};let O,w=e.pluralRules||l&&l.pluralRules;O=(()=>{const t={version:de,locale:i.value,fallbackLocale:u.value,messages:f.value,modifiers:M,pluralRules:w,missing:null===T?void 0:T,missingWarn:h,fallbackWarn:E,fallbackFormat:y,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:R,escapeParameter:W,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=_.value,t.__datetimeFormatters=F(O)?O.__datetimeFormatters:void 0,t.__numberFormatters=F(O)?O.__numberFormatters:void 0;return K(t)})(),ee(O,i.value,u.value);const D=t.computed({get:()=>i.value,set:e=>{i.value=e,O.locale=i.value}}),C=t.computed({get:()=>u.value,set:e=>{u.value=e,O.fallbackLocale=u.value,ee(O,i.value,e)}}),P=t.computed((()=>f.value)),A=t.computed((()=>g.value)),$=t.computed((()=>_.value));const S=(e,t,a,n,r,s)=>{let c;if(i.value,u.value,f.value,g.value,_.value,c=e(O),o(c)&&c===G){const[e,a]=t();return l&&L?n(l):r(e)}if(s(c))return c;throw Error(Ee.UNEXPECTED_RETURN_TYPE)};function H(...e){return S((t=>Reflect.apply(oe,null,[t,...e])),(()=>ie(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}const j={normalize:function(e){return e.map((e=>b(e)||o(e)||d(e)?we(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return f.value[e]||{}}De++,l&&a&&(t.watch(l.locale,(e=>{s&&(i.value=e,O.locale=e,ee(O,i.value,u.value))})),t.watch(l.fallbackLocale,(e=>{s&&(u.value=e,O.fallbackLocale=e,ee(O,i.value,u.value))})));const x={id:De,locale:D,fallbackLocale:C,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&l&&(i.value=l.locale.value,u.value=l.fallbackLocale.value,ee(O,i.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:P,get modifiers(){return M},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(e){h=e,O.missingWarn=h},get fallbackWarn(){return E},set fallbackWarn(e){E=e,O.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return y},set fallbackFormat(e){y=e,O.fallbackFormat=y},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,O.warnHtmlMessage=e},get escapeParameter(){return W},set escapeParameter(e){W=e,O.escapeParameter=e},t:H,getLocaleMessage:V,setLocaleMessage:function(e,t){f.value[e]=t,O.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},Me(t,f.value[e]),O.messages=f.value},getPostTranslationHandler:function(){return v(N)?N:null},setPostTranslationHandler:function(e){N=e,O.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(T=Ce(e)),I=e,O.missing=T},[Ie]:function(e){w=e,O.pluralRules=w}};return x.datetimeFormats=A,x.numberFormats=$,x.rt=function(...e){const[t,a,n]=e;if(n&&!k(n))throw Error(Ee.INVALID_ARGUMENT);return H(t,a,m({resolvedMessage:!0},n||{}))},x.te=function(e,t){const a=V(b(t)?t:i.value);return null!==O.messageResolver(a,e)},x.tm=function(e){const t=function(e){let t=null;const a=U(O,u.value,i.value);for(let n=0;n<a.length;n++){const l=f.value[a[n]]||{},r=O.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},x.d=function(...e){return S((t=>Reflect.apply(ue,null,[t,...e])),(()=>fe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Y),(e=>b(e)))},x.n=function(...e){return S((t=>Reflect.apply(_e,null,[t,...e])),(()=>ve(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Y),(e=>b(e)))},x.getDateTimeFormat=function(e){return g.value[e]||{}},x.setDateTimeFormat=function(e,t){g.value[e]=t,O.datetimeFormats=g.value,ge(O,e,t)},x.mergeDateTimeFormat=function(e,t){g.value[e]=m(g.value[e]||{},t),O.datetimeFormats=g.value,ge(O,e,t)},x.getNumberFormat=function(e){return _.value[e]||{}},x.setNumberFormat=function(e,t){_.value[e]=t,O.numberFormats=_.value,be(O,e,t)},x.mergeNumberFormat=function(e,t){_.value[e]=m(_.value[e]||{},t),O.numberFormats=_.value,be(O,e,t)},x[Te]=e.__injectWithOption,x[Fe]=function(...e){return S((t=>{let a;const n=t;try{n.processor=j,a=Reflect.apply(oe,null,[n,...e])}finally{n.processor=null}return a}),(()=>ie(...e)),"translate",(t=>t[Fe](...e)),(e=>[we(e)]),(e=>p(e)))},x[Le]=function(...e){return S((t=>Reflect.apply(ue,null,[t,...e])),(()=>fe(...e)),"datetime format",(t=>t[Le](...e)),(()=>[]),(e=>b(e)||p(e)))},x[ye]=function(...e){return S((t=>Reflect.apply(_e,null,[t,...e])),(()=>ve(...e)),"number format",(t=>t[ye](...e)),(()=>[]),(e=>b(e)||p(e)))},x}function Ae(e={},t){{const t=Pe(function(e){const t=b(e.locale)?e.locale:B,a=b(e.fallbackLocale)||p(e.fallbackLocale)||F(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=v(e.missing)?e.missing:void 0,l=!d(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!d(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!d(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,i=F(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=v(e.postTranslation)?e.postTranslation:void 0,g=!b(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,_=!!e.escapeParameterHtml,k=!d(e.sync)||e.sync;let h=e.messages;if(F(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return m(n,t[a]),e}),h||{})}const{__i18n:E,__root:L,__injectWithOption:y}=e,I=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:a,messages:h,flatJson:e.flatJson,datetimeFormats:I,numberFormats:T,missing:n,missingWarn:l,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:i,pluralRules:u,postTranslation:f,warnHtmlMessage:g,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:k,__i18n:E,__root:L,__injectWithOption:y}}(e)),a={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return d(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=d(e)?!e:e},get silentFallbackWarn(){return d(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=d(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,l]=e,r={};let o=null,s=null;if(!b(a))throw Error(Ee.INVALID_ARGUMENT);const c=a;return b(n)?r.locale=n:p(n)?o=n:F(n)&&(s=n),p(l)?o=l:F(l)&&(s=l),Reflect.apply(t.t,t,[c,o||s||{},r])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,l]=e,r={plural:1};let s=null,c=null;if(!b(a))throw Error(Ee.INVALID_ARGUMENT);const i=a;return b(n)?r.locale=n:o(n)?r.plural=n:p(n)?s=n:F(n)&&(c=n),b(l)?r.locale=l:p(l)?s=l:F(l)&&(c=l),Reflect.apply(t.t,t,[i,s||c||{},r])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:n}=e;n&&n(t,a)}};return a}}const $e={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Se(e){return t.Fragment}const Ue=t.defineComponent({name:"i18n-t",props:m({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},$e),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||Ze({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=b(e.plural)?+e.plural:e.plural);const c=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...a.type===t.Fragment?a.children:[a]]),[]);return a.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),i=r[Fe](e.keypath,c,s),u=m({},l),f=b(e.tag)||k(e.tag)?e.tag:Se();return t.h(f,u,i)}}}),He=Ue;function je(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),b(e.format)?a.key=e.format:k(e.format)&&(b(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?m({},t,{[a]:e.format[a]}):t),{}));const c=l(e.value,a,s);let i=[a.key];p(c)?i=c.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:c}):[e.value];var l;return p(l=n)&&!b(l[0])&&(n[0].key=`${e.type}-${t}`),n})):b(c)&&(i=[c]);const u=m({},o),f=b(e.tag)||k(e.tag)?e.tag:Se();return t.h(f,u,i)}}const Ve=t.defineComponent({name:"i18n-n",props:m({value:{type:Number,required:!0},format:{type:[String,Object]}},$e),setup(e,t){const a=e.i18n||Ze({useScope:"parent",__useComponent:!0});return je(e,t,pe,((...e)=>a[ye](...e)))}}),xe=Ve,Ge=t.defineComponent({name:"i18n-d",props:m({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$e),setup(e,t){const a=e.i18n||Ze({useScope:"parent",__useComponent:!0});return je(e,t,me,((...e)=>a[Le](...e)))}}),Be=Ge;function Ye(e){const n=t=>{const{instance:a,modifiers:n,value:l}=t;if(!a||!a.$)throw Error(Ee.UNEXPECTED_ERROR);const r=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),o=Xe(l);return[Reflect.apply(r.t,r,[...ze(o)]),r]};return{created:(l,r)=>{const[o,s]=n(r);a&&e.global===s&&(l.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),l.__composer=s,l.textContent=o},unmounted:e=>{a&&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){const a=e.__composer,n=Xe(t);e.textContent=Reflect.apply(a.t,a,[...ze(n)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function Xe(e){if(b(e))return{path:e};if(F(e)){if(!("path"in e))throw Error(Ee.REQUIRED_VALUE,"path");return e}throw Error(Ee.INVALID_VALUE)}function ze(e){const{path:t,locale:a,args:n,choice:l,plural:r}=e,s={},c=n||{};return b(a)&&(s.locale=a),o(l)&&(s.plural=l),o(r)&&(s.plural=r),[t,c,s]}function Je(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[Ie](t.pluralizationRules||e.pluralizationRules);const a=Re(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const qe=n("global-vue-i18n");function Ze(e={}){const a=t.getCurrentInstance();if(null==a)throw Error(Ee.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&null!=a.appContext.app&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Ee.NOT_INSTALLED);const n=function(e){{const a=t.inject(e.isCE?qe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw function(e,...t){return y(e,null,void 0)}(e.isCE?Ee.NOT_INSTALLED_WITH_PROVIDE:Ee.UNEXPECTED_ERROR);return a}}(a),l=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=function(e){return e.type}(a),o=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(Ee.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Ee.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=d(l.inheritLocale)?l.inheritLocale:!b(l.locale),i=t.ref(!r||s?n.locale.value:b(l.locale)?l.locale:B),u=t.ref(!r||s?n.fallbackLocale.value:b(l.fallbackLocale)||p(l.fallbackLocale)||F(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:i.value),m=t.ref(Re(i.value,l)),f=t.ref(F(l.datetimeFormats)?l.datetimeFormats:{[i.value]:{}}),g=t.ref(F(l.numberFormats)?l.numberFormats:{[i.value]:{}}),_=r?n.missingWarn:!d(l.missingWarn)&&!c(l.missingWarn)||l.missingWarn,k=r?n.fallbackWarn:!d(l.fallbackWarn)&&!c(l.fallbackWarn)||l.fallbackWarn,h=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=v(l.missing)?l.missing:null,y=v(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,T=!!l.escapeParameter,N=r?n.modifiers:F(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function W(){return[i.value,u.value,m.value,f.value,g.value]}const M=t.computed({get:()=>o.value?o.value.locale.value:i.value,set:e=>{o.value&&(o.value.locale.value=e),i.value=e}}),O=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>o.value?o.value.messages.value:m.value)),D=t.computed((()=>f.value)),C=t.computed((()=>g.value));function P(){return o.value?o.value.getPostTranslationHandler():y}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function $(){return o.value?o.value.getMissingHandler():L}function S(e){o.value&&o.value.setMissingHandler(e)}function U(e){return W(),e()}function H(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function j(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function x(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function Y(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function z(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,t){o.value&&(o.value.setNumberFormat(e,t),g.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:M,fallbackLocale:O,messages:w,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:N},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:_},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:k},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:T},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:H,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:$,setMissingHandler:S,rt:j,d:V,n:x,tm:G,te:Y,getLocaleMessage:X,setLocaleMessage:z,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(g.value).forEach((t=>{e.mergeNumberFormat(t,g.value[t])})),e.escapeParameter=T,e.fallbackFormat=E,e.fallbackRoot=h,e.fallbackWarn=k,e.missingWarn=_,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(i.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,g.value=t.numberFormats.value):r&&ne(t)})),ae}(a,o,l,e)}if("global"===o)return Oe(l,e,r),l;if("parent"===o){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,a);for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[Te]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(n,a,e.__useComponent);return null==t&&(t=l),t}const s=n;let u=s.__getInstance(a);if(null==u){const n=m({},e);"__i18n"in r&&(n.__i18n=r.__i18n),l&&(n.__root=l),u=Pe(n),s.__composerExtend&&s.__composerExtend(u),function(e,a,n){t.onMounted((()=>{}),a),t.onUnmounted((()=>{e.__deleteInstance(a)}),a)}(s,a),s.__setInstance(a,u)}return u}const Ke=["locale","fallbackLocale","availableLocales"],Qe=["t","rt","d","n","tm","te"];return J=function(e,t){if(!k(e))return null;let a=W.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,o,s,c,i=-1,u=0,m=0;const f=[];function g(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=R(n),!1===n)return!1;f[1]()}};null!==u;)if(i++,a=e[i],"\\"!==a||!g()){if(r=N(a),c=I[u],o=c[r]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&W.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;l=e,r++}return l},q=U,e.DatetimeFormat=Ge,e.I18nD=Be,e.I18nInjectionKey=qe,e.I18nN=xe,e.I18nT=He,e.NumberFormat=Ve,e.Translation=Ue,e.VERSION=de,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ee.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){const l=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=!l||!!e.allowComposition,s=new Map,[c,i]=function(e,a,n){const l=t.effectScope();{const t=a?l.run((()=>Ae(e))):l.run((()=>Pe(e)));if(null==t)throw Error(Ee.UNEXPECTED_ERROR);return[l,t]}}(e,l),u=n("");{const e={get mode(){return l?"legacy":"composition"},get allowComposition(){return o},async install(a,...n){if(a.__VUE_I18N_SYMBOL__=u,a.provide(a.__VUE_I18N_SYMBOL__,e),F(n[0])){const t=n[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!l&&r&&function(e,a){const n=Object.create(null);Ke.forEach((e=>{const l=Object.getOwnPropertyDescriptor(a,e);if(!l)throw Error(Ee.UNEXPECTED_ERROR);const r=t.isRef(l.value)?{get:()=>l.value.value,set(e){l.value.value=e}}:{get:()=>l.get&&l.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,Qe.forEach((t=>{const n=Object.getOwnPropertyDescriptor(a,t);if(!n||!n.value)throw Error(Ee.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,n)}))}(a,e.global),function(e,t,...a){const n=F(a[0])?a[0]:{},l=!!n.useI18nComponentName;(!d(n.globalInstall)||n.globalInstall)&&(e.component(l?"i18n":Ue.name,Ue),e.component(Ve.name,Ve),e.component(Ge.name,Ge)),e.directive("t",Ye(t))}(a,e,...n),l&&a.mixin(function(e,a,n){return{beforeCreate(){const l=t.getCurrentInstance();if(!l)throw Error(Ee.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;r.__i18n&&(t.__i18n=r.__i18n),t.__root=a,this===this.$root?this.$i18n=Je(e,t):(t.__injectWithOption=!0,this.$i18n=Ae(t))}else r.__i18n?this===this.$root?this.$i18n=Je(e,r):this.$i18n=Ae({__i18n:r.__i18n,__injectWithOption:!0,__root:a}):this.$i18n=e;r.__i18nGlobal&&Oe(a,r,r),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(l,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Ee.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(i,i.__composer,e));const o=a.unmount;a.unmount=()=>{e.dispose(),o()}},get global(){return i},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=Ze,e.vTDirective=Ye,e}({},Vue); | ||
var VueI18n=function(e,t){"use strict";const a="undefined"!=typeof window,n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,a)=>r({l:e,k:t,s:a}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===E(e),c=e=>"[object RegExp]"===E(e),i=e=>F(e)&&0===Object.keys(e).length;function u(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const m=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const g=Object.prototype.hasOwnProperty;function _(e,t){return g.call(e,t)}const p=Array.isArray,v=e=>"function"==typeof e,b=e=>"string"==typeof e,d=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,E=e=>h.call(e),F=e=>{if(!k(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};const L=15;function I(e,t,a={}){const{domain:n,messages:l,args:r}=a,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=n,o}const y=[];y[0]={w:[0],i:[3,0],"[":[4],o:[7]},y[1]={w:[1],".":[2],"[":[4],o:[7]},y[2]={w:[2],i:[3,0],0:[3,0]},y[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},y[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},y[5]={"'":[4,0],o:8,l:[5,0]},y[6]={'"':[4,0],o:8,l:[6,0]};const T=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(e){if(null==e)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 R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,T.test(a)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var a}const W=new Map;function O(e,t){return k(e)?e[t]:null}const M=e=>e,w=e=>"",D="text",C=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),P=e=>null==e?"":p(e)||F(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function A(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function S(e={}){const t=e.locale,a=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),n=k(e.pluralRules)&&b(t)&&v(e.pluralRules[t])?e.pluralRules[t]:A,l=k(e.pluralRules)&&b(t)&&v(e.pluralRules[t])?A:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function c(t){const a=v(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):w)}const i=F(e.processor)&&v(e.processor.normalize)?e.processor.normalize:C,u=F(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:P,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?k(n)?(o=n.modifier||o,r=n.type||r):b(n)&&(o=n||o):2===a.length&&(b(n)&&(o=n||o),b(l)&&(r=l||r));const s=c(t)(m),i="vnode"===r&&p(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:M)(i,r):i;var u},message:c,type:F(e.processor)&&b(e.processor.type)?e.processor.type:D,interpolate:u,normalize:i};return m}function $(e,t,a){return[...new Set([a,...p(t)?t:k(t)?Object.keys(t):b(t)?[t]:[a]])]}function U(e,t,a){const n=b(a)?a:B,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;p(e);)e=H(r,e,t);const o=p(t)||!F(t)?t:t.default?t.default:null;e=b(o)?[o]:o,p(e)&&H(r,e,!1),l.__localeChainCache.set(n,r)}return r}function H(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];b(r)&&(n=j(e,t[l],a))}return n}function j(e,t,a){let n;const l=t.split("-");do{n=V(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function V(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(p(a)||F(a))&&a[l]&&(n=a[l])}return n}const x="9.3.0-beta.20",G=-1,B="en-US",Y="",X=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let z,J,q;let Z=0;function K(e={}){const t=b(e.version)?e.version:x,a=b(e.locale)?e.locale:B,n=p(e.fallbackLocale)||F(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=F(e.messages)?e.messages:{[a]:{}},r=F(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},o=F(e.numberFormats)?e.numberFormats:{[a]:{}},s=m({},e.modifiers||{},{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?X(e):"vnode"===t&&k(e)&&"__v_isVNode"in e?X(e.children):e}),i=e.pluralRules||{},f=v(e.missing)?e.missing:null,g=!d(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,_=!d(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,E=!!e.unresolving,L=v(e.postTranslation)?e.postTranslation:null,I=F(e.processor)?e.processor:null,y=!d(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter,N=v(e.messageCompiler)?e.messageCompiler:z,R=v(e.messageResolver)?e.messageResolver:J||O,W=v(e.localeFallbacker)?e.localeFallbacker:q||$,M=k(e.fallbackContext)?e.fallbackContext:void 0,w=v(e.onWarn)?e.onWarn:u,D=e,C=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=k(D.__numberFormatters)?D.__numberFormatters:new Map,A=k(D.__meta)?D.__meta:{};Z++;const S={version:t,cid:Z,locale:a,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:f,missingWarn:g,fallbackWarn:_,fallbackFormat:h,unresolving:E,postTranslation:L,processor:I,warnHtmlMessage:y,escapeParameter:T,messageCompiler:N,messageResolver:R,localeFallbacker:W,fallbackContext:M,onWarn:w,__meta:A};return S.datetimeFormats=r,S.numberFormats=o,S.__datetimeFormatters=C,S.__numberFormatters=P,S}function Q(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return b(n)?n:t}return t}function ee(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let te=L;const ae=()=>++te,ne={INVALID_ARGUMENT:te,INVALID_DATE_ARGUMENT:ae(),INVALID_ISO_DATE_ARGUMENT:ae(),NOT_SUPPORT_AST:ae(),__EXTEND_POINT__:ae()},le=()=>"",re=e=>v(e),oe=e=>k(e)&&0===e.type&&"body"in e;function se(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:c}=e,[i,u]=ue(...t),m=d(u.missingWarn)?u.missingWarn:e.missingWarn,g=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,_=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,h=b(u.default)||d(u.default)?d(u.default)?r?i:()=>i:u.default:a?r?i:()=>i:"",E=a||""!==h,F=b(u.locale)?u.locale:e.locale;_&&function(e){p(e.list)?e.list=e.list.map((e=>b(e)?f(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[L,I,y]=v?[i,F,c[F]||{}]:ce(e,i,F,s,g,m),T=L,N=i;if(v||b(T)||oe(T)||re(T)||E&&(T=h,N=T),!(v||(b(T)||oe(T)||re(T))&&b(I)))return l?G:i;let R=!1;const W=re(T)?T:ie(e,i,I,T,N,(()=>{R=!0}));if(R)return T;const O=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ce(m,n,t,c,i,u);l=s(e,n)}if(b(l)||oe(l)){let a=!1;const r=ie(e,n,t,l,n,(()=>{a=!0}));return a?le:r}return re(l)?l:le},g={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(g.processor=e.processor);n.list&&(g.list=n.list);n.named&&(g.named=n.named);o(n.plural)&&(g.pluralIndex=n.plural);return g}(e,I,y,u),M=function(e,t,a){const n=t(a);return n}(0,W,S(O));return n?n(M,i):M}function ce(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,n,a);let m,f={},g=null;for(let _=0;_<u.length&&(m=u[_],f=o[m]||{},null===(g=c(f,t))&&(g=f[t]),!(b(g)||oe(g)||re(g)));_++){const a=Q(e,t,m,0,"translate");a!==t&&(g=a)}return[g,m,f]}function ie(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(re(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const i=s(n,function(e,t,a,n,r,o){return{warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,c,o));return i.locale=a,i.key=t,i.source=n,i}function ue(...e){const[t,a,n]=e,l={};if(!b(t)&&!o(t)&&!re(t))throw Error(ne.INVALID_ARGUMENT);const r=o(t)?String(t):(re(t),t);return o(a)?l.plural=a:b(a)?l.default=a:F(a)&&!i(a)?l.named=a:p(a)&&(l.list=a),o(n)?l.plural=n:b(n)?l.default=n:F(n)&&m(l,n),[r,l]}function me(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,u,f,g]=ge(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=b(f.locale)?f.locale:e.locale,v=o(e,l,p);if(!b(c)||""===c)return new Intl.DateTimeFormat(p,g).format(u);let k,h={},E=null;for(let i=0;i<v.length&&(k=v[i],h=a[k]||{},E=h[c],!F(E));i++)Q(e,c,k,0,"datetime format");if(!F(E)||!b(k))return n?G:c;let L=`${k}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let I=s.get(L);return I||(I=new Intl.DateTimeFormat(k,m({},E,g)),s.set(L,I)),_?I.formatToParts(u):I.format(u)}const fe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ge(...e){const[t,a,n,l]=e,r={};let c,i={};if(b(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ne.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();c=new Date(a);try{c.toISOString()}catch(u){throw Error(ne.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ne.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(ne.INVALID_ARGUMENT);c=t}return b(a)?r.key=a:F(a)&&Object.keys(a).forEach((e=>{fe.includes(e)?i[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:F(n)&&(i=n),F(l)&&(i=l),[r.key||"",c,r,i]}function _e(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function pe(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,u,f,g]=be(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=b(f.locale)?f.locale:e.locale,v=o(e,l,p);if(!b(c)||""===c)return new Intl.NumberFormat(p,g).format(u);let k,h={},E=null;for(let i=0;i<v.length&&(k=v[i],h=a[k]||{},E=h[c],!F(E));i++)Q(e,c,k,0,"number format");if(!F(E)||!b(k))return n?G:c;let L=`${k}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let I=s.get(L);return I||(I=new Intl.NumberFormat(k,m({},E,g)),s.set(L,I)),_?I.formatToParts(u):I.format(u)}const ve=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function be(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(ne.INVALID_ARGUMENT);const c=t;return b(a)?r.key=a:F(a)&&Object.keys(a).forEach((e=>{ve.includes(e)?s[e]=a[e]:r[e]=a[e]})),b(n)?r.locale=n:F(n)&&(s=n),F(l)&&(s=l),[r.key||"",c,r,s]}function de(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const ke="9.3.0-beta.20";let he=L;const Ee=()=>++he,Fe={UNEXPECTED_RETURN_TYPE:he,INVALID_ARGUMENT:Ee(),MUST_BE_CALL_SETUP_TOP:Ee(),NOT_INSTALLED:Ee(),NOT_AVAILABLE_IN_LEGACY_MODE:Ee(),REQUIRED_VALUE:Ee(),INVALID_VALUE:Ee(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ee(),NOT_INSTALLED_WITH_PROVIDE:Ee(),UNEXPECTED_ERROR:Ee(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ee(),BRIDGE_SUPPORT_VUE_2_ONLY:Ee(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ee(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ee(),__EXTEND_POINT__:Ee()};const Le=n("__translateVNode"),Ie=n("__datetimeParts"),ye=n("__numberParts"),Te=n("__setPluralRules"),Ne=n("__injectWithOption");function Re(e){if(!k(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e,r=!1;for(let e=0;e<n;e++){if(a[e]in l||(l[a[e]]={}),!k(l[a[e]])){r=!0;break}l=l[a[e]]}r||(l[a[n]]=e[t],delete e[t]),k(l[a[n]])&&Re(l[a[n]])}else k(e[t])&&Re(e[t]);return e}function We(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=F(a)?a:p(n)?{}:{[e]:{}};if(p(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},Me(a,o[t])):Me(a,o)}else b(e)&&Me(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&Re(o[s]);return o}const Oe=e=>!k(e)||p(e);function Me(e,t){if(Oe(e)||Oe(t))throw Error(Fe.INVALID_VALUE);for(const a in e)_(e,a)&&(Oe(e[a])||Oe(t[a])?t[a]=e[a]:Me(e[a],t[a]))}function we(e,t,a){let n=k(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=We(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),k(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(k(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function De(e){return t.createVNode(t.Text,null,e,0)}let Ce=0;function Pe(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Ae(e={},n){const{__root:l}=e,r=void 0===l;let s=!d(e.inheritLocale)||e.inheritLocale;const i=t.ref(l&&s?l.locale.value:b(e.locale)?e.locale:B),u=t.ref(l&&s?l.fallbackLocale.value:b(e.fallbackLocale)||p(e.fallbackLocale)||F(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),f=t.ref(We(i.value,e)),g=t.ref(F(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),_=t.ref(F(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=l?l.missingWarn:!d(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!d(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,I=!!e.fallbackFormat,y=v(e.missing)?e.missing:null,T=v(e.missing)?Pe(e.missing):null,N=v(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,W=!!e.escapeParameter;const O=l?l.modifiers:F(e.modifiers)?e.modifiers:{};let M,w=e.pluralRules||l&&l.pluralRules;M=(()=>{const t={version:ke,locale:i.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:w,missing:null===T?void 0:T,missingWarn:h,fallbackWarn:E,fallbackFormat:I,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:R,escapeParameter:W,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=_.value,t.__datetimeFormatters=F(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=F(M)?M.__numberFormatters:void 0;return K(t)})(),ee(M,i.value,u.value);const D=t.computed({get:()=>i.value,set:e=>{i.value=e,M.locale=i.value}}),C=t.computed({get:()=>u.value,set:e=>{u.value=e,M.fallbackLocale=u.value,ee(M,i.value,e)}}),P=t.computed((()=>f.value)),A=t.computed((()=>g.value)),S=t.computed((()=>_.value));const $=(e,t,a,n,r,s)=>{let c;if(i.value,u.value,f.value,g.value,_.value,c=e(M),o(c)&&c===G){const[e,a]=t();return l&&L?n(l):r(e)}if(s(c))return c;throw Error(Fe.UNEXPECTED_RETURN_TYPE)};function H(...e){return $((t=>Reflect.apply(se,null,[t,...e])),(()=>ue(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}const j={normalize:function(e){return e.map((e=>b(e)||o(e)||d(e)?De(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return f.value[e]||{}}Ce++,l&&a&&(t.watch(l.locale,(e=>{s&&(i.value=e,M.locale=e,ee(M,i.value,u.value))})),t.watch(l.fallbackLocale,(e=>{s&&(u.value=e,M.fallbackLocale=e,ee(M,i.value,u.value))})));const x={id:Ce,locale:D,fallbackLocale:C,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&l&&(i.value=l.locale.value,u.value=l.fallbackLocale.value,ee(M,i.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:P,get modifiers(){return O},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(e){h=e,M.missingWarn=h},get fallbackWarn(){return E},set fallbackWarn(e){E=e,M.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,M.fallbackFormat=I},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,M.warnHtmlMessage=e},get escapeParameter(){return W},set escapeParameter(e){W=e,M.escapeParameter=e},t:H,getLocaleMessage:V,setLocaleMessage:function(e,t){f.value[e]=t,M.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},Me(t,f.value[e]),M.messages=f.value},getPostTranslationHandler:function(){return v(N)?N:null},setPostTranslationHandler:function(e){N=e,M.postTranslation=e},getMissingHandler:function(){return y},setMissingHandler:function(e){null!==e&&(T=Pe(e)),y=e,M.missing=T},[Te]:function(e){w=e,M.pluralRules=w}};return x.datetimeFormats=A,x.numberFormats=S,x.rt=function(...e){const[t,a,n]=e;if(n&&!k(n))throw Error(Fe.INVALID_ARGUMENT);return H(t,a,m({resolvedMessage:!0},n||{}))},x.te=function(e,t){const a=V(b(t)?t:i.value);return null!==M.messageResolver(a,e)},x.tm=function(e){const t=function(e){let t=null;const a=U(M,u.value,i.value);for(let n=0;n<a.length;n++){const l=f.value[a[n]]||{},r=M.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},x.d=function(...e){return $((t=>Reflect.apply(me,null,[t,...e])),(()=>ge(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Y),(e=>b(e)))},x.n=function(...e){return $((t=>Reflect.apply(pe,null,[t,...e])),(()=>be(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Y),(e=>b(e)))},x.getDateTimeFormat=function(e){return g.value[e]||{}},x.setDateTimeFormat=function(e,t){g.value[e]=t,M.datetimeFormats=g.value,_e(M,e,t)},x.mergeDateTimeFormat=function(e,t){g.value[e]=m(g.value[e]||{},t),M.datetimeFormats=g.value,_e(M,e,t)},x.getNumberFormat=function(e){return _.value[e]||{}},x.setNumberFormat=function(e,t){_.value[e]=t,M.numberFormats=_.value,de(M,e,t)},x.mergeNumberFormat=function(e,t){_.value[e]=m(_.value[e]||{},t),M.numberFormats=_.value,de(M,e,t)},x[Ne]=e.__injectWithOption,x[Le]=function(...e){return $((t=>{let a;const n=t;try{n.processor=j,a=Reflect.apply(se,null,[n,...e])}finally{n.processor=null}return a}),(()=>ue(...e)),"translate",(t=>t[Le](...e)),(e=>[De(e)]),(e=>p(e)))},x[Ie]=function(...e){return $((t=>Reflect.apply(me,null,[t,...e])),(()=>ge(...e)),"datetime format",(t=>t[Ie](...e)),(()=>[]),(e=>b(e)||p(e)))},x[ye]=function(...e){return $((t=>Reflect.apply(pe,null,[t,...e])),(()=>be(...e)),"number format",(t=>t[ye](...e)),(()=>[]),(e=>b(e)||p(e)))},x}function Se(e={},t){{const t=Ae(function(e){const t=b(e.locale)?e.locale:B,a=b(e.fallbackLocale)||p(e.fallbackLocale)||F(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=v(e.missing)?e.missing:void 0,l=!d(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!d(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!d(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,i=F(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=v(e.postTranslation)?e.postTranslation:void 0,g=!b(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,_=!!e.escapeParameterHtml,k=!d(e.sync)||e.sync;let h=e.messages;if(F(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return m(n,t[a]),e}),h||{})}const{__i18n:E,__root:L,__injectWithOption:I}=e,y=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:a,messages:h,flatJson:e.flatJson,datetimeFormats:y,numberFormats:T,missing:n,missingWarn:l,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:i,pluralRules:u,postTranslation:f,warnHtmlMessage:g,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:k,__i18n:E,__root:L,__injectWithOption:I}}(e)),a={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 formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return d(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=d(e)?!e:e},get silentFallbackWarn(){return d(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=d(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="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,l]=e,r={};let o=null,s=null;if(!b(a))throw Error(Fe.INVALID_ARGUMENT);const c=a;return b(n)?r.locale=n:p(n)?o=n:F(n)&&(s=n),p(l)?o=l:F(l)&&(s=l),Reflect.apply(t.t,t,[c,o||s||{},r])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[a,n,l]=e,r={plural:1};let s=null,c=null;if(!b(a))throw Error(Fe.INVALID_ARGUMENT);const i=a;return b(n)?r.locale=n:o(n)?r.plural=n:p(n)?s=n:F(n)&&(c=n),b(l)?r.locale=l:p(l)?s=l:F(l)&&(c=l),Reflect.apply(t.t,t,[i,s||c||{},r])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:n}=e;n&&n(t,a)}};return a}}const $e={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Ue(e){return t.Fragment}const He=t.defineComponent({name:"i18n-t",props:m({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},$e),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||Ke({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=b(e.plural)?+e.plural:e.plural);const c=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...a.type===t.Fragment?a.children:[a]]),[]);return a.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),i=r[Le](e.keypath,c,s),u=m({},l),f=b(e.tag)||k(e.tag)?e.tag:Ue();return t.h(f,u,i)}}}),je=He;function Ve(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),b(e.format)?a.key=e.format:k(e.format)&&(b(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?m({},t,{[a]:e.format[a]}):t),{}));const c=l(e.value,a,s);let i=[a.key];p(c)?i=c.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:c}):[e.value];var l;return p(l=n)&&!b(l[0])&&(n[0].key=`${e.type}-${t}`),n})):b(c)&&(i=[c]);const u=m({},o),f=b(e.tag)||k(e.tag)?e.tag:Ue();return t.h(f,u,i)}}const xe=t.defineComponent({name:"i18n-n",props:m({value:{type:Number,required:!0},format:{type:[String,Object]}},$e),setup(e,t){const a=e.i18n||Ke({useScope:"parent",__useComponent:!0});return Ve(e,t,ve,((...e)=>a[ye](...e)))}}),Ge=xe,Be=t.defineComponent({name:"i18n-d",props:m({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$e),setup(e,t){const a=e.i18n||Ke({useScope:"parent",__useComponent:!0});return Ve(e,t,fe,((...e)=>a[Ie](...e)))}}),Ye=Be;function Xe(e){const n=t=>{const{instance:a,modifiers:n,value:l}=t;if(!a||!a.$)throw Error(Fe.UNEXPECTED_ERROR);const r=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),o=ze(l);return[Reflect.apply(r.t,r,[...Je(o)]),r]};return{created:(l,r)=>{const[o,s]=n(r);a&&e.global===s&&(l.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),l.__composer=s,l.textContent=o},unmounted:e=>{a&&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){const a=e.__composer,n=ze(t);e.textContent=Reflect.apply(a.t,a,[...Je(n)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function ze(e){if(b(e))return{path:e};if(F(e)){if(!("path"in e))throw Error(Fe.REQUIRED_VALUE,"path");return e}throw Error(Fe.INVALID_VALUE)}function Je(e){const{path:t,locale:a,args:n,choice:l,plural:r}=e,s={},c=n||{};return b(a)&&(s.locale=a),o(l)&&(s.plural=l),o(r)&&(s.plural=r),[t,c,s]}function qe(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[Te](t.pluralizationRules||e.pluralizationRules);const a=We(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const Ze=n("global-vue-i18n");function Ke(e={}){const a=t.getCurrentInstance();if(null==a)throw Error(Fe.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&null!=a.appContext.app&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Fe.NOT_INSTALLED);const n=function(e){{const a=t.inject(e.isCE?Ze:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw function(e,...t){return I(e,null,void 0)}(e.isCE?Fe.NOT_INSTALLED_WITH_PROVIDE:Fe.UNEXPECTED_ERROR);return a}}(a),l=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=function(e){return e.type}(a),o=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Error(Fe.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Fe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=d(l.inheritLocale)?l.inheritLocale:!b(l.locale),i=t.ref(!r||s?n.locale.value:b(l.locale)?l.locale:B),u=t.ref(!r||s?n.fallbackLocale.value:b(l.fallbackLocale)||p(l.fallbackLocale)||F(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:i.value),m=t.ref(We(i.value,l)),f=t.ref(F(l.datetimeFormats)?l.datetimeFormats:{[i.value]:{}}),g=t.ref(F(l.numberFormats)?l.numberFormats:{[i.value]:{}}),_=r?n.missingWarn:!d(l.missingWarn)&&!c(l.missingWarn)||l.missingWarn,k=r?n.fallbackWarn:!d(l.fallbackWarn)&&!c(l.fallbackWarn)||l.fallbackWarn,h=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=v(l.missing)?l.missing:null,I=v(l.postTranslation)?l.postTranslation:null,y=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,T=!!l.escapeParameter,N=r?n.modifiers:F(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function W(){return[i.value,u.value,m.value,f.value,g.value]}const O=t.computed({get:()=>o.value?o.value.locale.value:i.value,set:e=>{o.value&&(o.value.locale.value=e),i.value=e}}),M=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>o.value?o.value.messages.value:m.value)),D=t.computed((()=>f.value)),C=t.computed((()=>g.value));function P(){return o.value?o.value.getPostTranslationHandler():I}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():L}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return W(),e()}function H(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function j(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function V(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function x(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function Y(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function z(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,t){o.value&&(o.value.setNumberFormat(e,t),g.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:O,fallbackLocale:M,messages:w,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:N},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:_},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:k},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:y},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:T},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:H,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:S,setMissingHandler:$,rt:j,d:V,n:x,tm:G,te:Y,getLocaleMessage:X,setLocaleMessage:z,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(g.value).forEach((t=>{e.mergeNumberFormat(t,g.value[t])})),e.escapeParameter=T,e.fallbackFormat=E,e.fallbackRoot=h,e.fallbackWarn=k,e.missingWarn=_,e.warnHtmlMessage=y}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Fe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(i.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,g.value=t.numberFormats.value):r&&ne(t)})),ae}(a,o,l,e)}if("global"===o)return we(l,e,r),l;if("parent"===o){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,a);for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[Ne]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(n,a,e.__useComponent);return null==t&&(t=l),t}const s=n;let u=s.__getInstance(a);if(null==u){const n=m({},e);"__i18n"in r&&(n.__i18n=r.__i18n),l&&(n.__root=l),u=Ae(n),s.__composerExtend&&s.__composerExtend(u),function(e,a,n){t.onMounted((()=>{}),a),t.onUnmounted((()=>{e.__deleteInstance(a)}),a)}(s,a),s.__setInstance(a,u)}return u}const Qe=["locale","fallbackLocale","availableLocales"],et=["t","rt","d","n","tm","te"];return J=function(e,t){if(!k(e))return null;let a=W.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,o,s,c,i=-1,u=0,m=0;const f=[];function g(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=R(n),!1===n)return!1;f[1]()}};null!==u;)if(i++,a=e[i],"\\"!==a||!g()){if(r=N(a),c=y[u],o=c[r]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&W.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;l=e,r++}return l},q=U,e.DatetimeFormat=Be,e.I18nD=Ye,e.I18nInjectionKey=Ze,e.I18nN=Ge,e.I18nT=je,e.NumberFormat=xe,e.Translation=He,e.VERSION=ke,e.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Fe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){const l=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=!l||!!e.allowComposition,s=new Map,[c,i]=function(e,a,n){const l=t.effectScope();{const t=a?l.run((()=>Se(e))):l.run((()=>Ae(e)));if(null==t)throw Error(Fe.UNEXPECTED_ERROR);return[l,t]}}(e,l),u=n("");{const e={get mode(){return l?"legacy":"composition"},get allowComposition(){return o},async install(a,...n){if(a.__VUE_I18N_SYMBOL__=u,a.provide(a.__VUE_I18N_SYMBOL__,e),F(n[0])){const t=n[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}!l&&r&&function(e,a){const n=Object.create(null);Qe.forEach((e=>{const l=Object.getOwnPropertyDescriptor(a,e);if(!l)throw Error(Fe.UNEXPECTED_ERROR);const r=t.isRef(l.value)?{get:()=>l.value.value,set(e){l.value.value=e}}:{get:()=>l.get&&l.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,et.forEach((t=>{const n=Object.getOwnPropertyDescriptor(a,t);if(!n||!n.value)throw Error(Fe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,n)}))}(a,e.global),function(e,t,...a){const n=F(a[0])?a[0]:{},l=!!n.useI18nComponentName;(!d(n.globalInstall)||n.globalInstall)&&([l?"i18n":He.name,"I18nT"].forEach((t=>e.component(t,He))),[xe.name,"I18nN"].forEach((t=>e.component(t,xe))),[Be.name,"I18nD"].forEach((t=>e.component(t,Be)))),e.directive("t",Xe(t))}(a,e,...n),l&&a.mixin(function(e,a,n){return{beforeCreate(){const l=t.getCurrentInstance();if(!l)throw Error(Fe.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;r.__i18n&&(t.__i18n=r.__i18n),t.__root=a,this===this.$root?this.$i18n=qe(e,t):(t.__injectWithOption=!0,this.$i18n=Se(t))}else r.__i18n?this===this.$root?this.$i18n=qe(e,r):this.$i18n=Se({__i18n:r.__i18n,__injectWithOption:!0,__root:a}):this.$i18n=e;r.__i18nGlobal&&we(a,r,r),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(l,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Fe.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(i,i.__composer,e));const o=a.unmount;a.unmount=()=>{e.dispose(),o()}},get global(){return i},dispose(){c.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}},e.useI18n=Ke,e.vTDirective=Xe,e}({},Vue); |
{ | ||
"name": "vue-i18n", | ||
"version": "9.3.0-beta.19", | ||
"version": "9.3.0-beta.20", | ||
"description": "Internationalization plugin for Vue.js", | ||
@@ -39,8 +39,8 @@ "keywords": [ | ||
"@vue/devtools-api": "^6.5.0", | ||
"@intlify/core-base": "9.3.0-beta.19", | ||
"@intlify/vue-devtools": "9.3.0-beta.19", | ||
"@intlify/shared": "9.3.0-beta.19" | ||
"@intlify/core-base": "9.3.0-beta.20", | ||
"@intlify/vue-devtools": "9.3.0-beta.20", | ||
"@intlify/shared": "9.3.0-beta.20" | ||
}, | ||
"devDependencies": { | ||
"@intlify/devtools-if": "9.3.0-beta.19" | ||
"@intlify/devtools-if": "9.3.0-beta.20" | ||
}, | ||
@@ -47,0 +47,0 @@ "peerDependencies": { |
@@ -54,5 +54,5 @@ # vue-i18n | ||
- `__VUE_I18N_LEGACY_API__` (enable/disable vue-i18n legacy style APIs support, default: `true`) | ||
- `__INTLIFY_PROD_DEVTOOLS__` (enable/disable `@intlify/devtools` support in production, default: `false`) | ||
- `__INTLIFY_JIT_COMPILATION__` (enable/disable message compiler for JIT style, default: `false`) | ||
> NOTE: `__INTLIFY_PROD_DEVTOOLS__` flag is experimental, and `@intlify/devtools` is WIP yet. | ||
> NOTE: `__INTLIFY_JIT_COMPILATION__` flag support version, 9.3+ | ||
@@ -59,0 +59,0 @@ The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree shaking in the final bundle. To configure these flags: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1542922
37320
55
4
+ Added@intlify/core-base@9.3.0-beta.20(transitive)
+ Added@intlify/devtools-if@9.3.0-beta.20(transitive)
+ Added@intlify/message-compiler@9.3.0-beta.20(transitive)
+ Added@intlify/shared@9.3.0-beta.20(transitive)
+ Added@intlify/vue-devtools@9.3.0-beta.20(transitive)
+ Addedpostcss@8.4.49(transitive)
- Removed@intlify/core-base@9.3.0-beta.19(transitive)
- Removed@intlify/devtools-if@9.3.0-beta.19(transitive)
- Removed@intlify/message-compiler@9.3.0-beta.19(transitive)
- Removed@intlify/shared@9.3.0-beta.19(transitive)
- Removed@intlify/vue-devtools@9.3.0-beta.19(transitive)
- Removedpostcss@8.4.48(transitive)
- Removedsource-map@0.6.1(transitive)