Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-i18n-bridge

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n-bridge - npm Package Compare versions

Comparing version 9.7.1 to 9.8.0

4

dist/vue-i18n-bridge.esm-browser.prod.js
/*!
* vue-i18n-bridge v9.7.1
* vue-i18n-bridge v9.8.0
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref,computed,watch,getCurrentInstance,defineComponent,h,effectScope,onBeforeMount,onUnmounted,shallowRef}from"vue-demi";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,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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 incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("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 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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};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,DOT=".",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 N(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function L(e){return N(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 v(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function h(e){return N(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=v(e);)n+=t;return n}function y(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 T(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=h(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 I(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=A(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=L(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=N(e,r);)n+="\\"===t?T(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=N(e,r);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n}return n}function A(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),A(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=L(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?I(e,t)||r:m(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===CHAR_SP?r:a===CHAR_LF||a===DOT?(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 I(e,t)||f(t);if(t.inLinked)return A(e,t)||f(t);switch(e.currentChar()){case"{":return I(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return A(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,y(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,y(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,delete 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;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=join(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function minify(e){switch(e.t=e.type,e.type){case 0:const t=e;minify(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)minify(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,o=a.items;for(let e=0;e<o.length;e++)minify(o[e]);a.i=o,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const s=e;s.value&&(s.v=s.value,delete s.value);break;case 6:const l=e;minify(l.key),l.k=l.key,delete l.key,l.modifier&&(minify(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const i=e;i.i=i.index,delete i.index;break;case 4:const c=e;c.k=c.key,delete c.key}delete e.type}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=!!n.minify,o=null==n.optimize||n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),a&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,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;if(isFunction(a))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,values:assign({},o,s)};return u}function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString(e)?e:null!=_resolveLocale&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}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.7.1",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}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString(e.version)?e.version:VERSION$1,r=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,a=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=isPlainObject(e.messages)?e.messages:{[a]:{}},l=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,f=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,_=!!e.unresolving,d=isFunction(e.postTranslation)?e.postTranslation:null,E=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,N=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,L=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,v=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,h=isObject(e.fallbackContext)?e.fallbackContext:void 0,O=e,y=isObject(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,T=isObject(O.__numberFormatters)?O.__numberFormatters:new Map,S=isObject(O.__meta)?O.__meta:{};_cid++;const k={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:f,fallbackWarn:p,fallbackFormat:g,unresolving:_,postTranslation:d,processor:E,warnHtmlMessage:b,escapeParameter:C,messageCompiler:N,messageResolver:L,localeFallbacker:v,fallbackContext:h,onWarn:t,__meta:S};return k.datetimeFormats=l,k.numberFormats=i,k.__datetimeFormatters=y,k.__numberFormatters=T,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)}function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,formatMessageParts(e,n)]),[]))}return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,formatMessagePart(e,n)]),[]);return e.normalize(n)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const s=t;return e.interpolate(e.list(null!=s.i?s.i:s.index));case 6:const l=t,i=l.m||l.modifier;return e.linked(formatMessagePart(e,l.k||l.key),i?formatMessagePart(e,i):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),__EXTEND_POINT__:inc$1()},defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);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 compile(e,t){if(isString(e)){!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{ast:a,detectError:o}=baseCompile(e,{...t,location:!1,jit:!0}),s=format(a);return o?s:compileCache[n]=s}{const t=e.cacheKey;if(t){const n=compileCache[t];return n||(compileCache[t]=format(e))}return format(e)}}const 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=getLocale(e,c);f&&escapeParams(c);let[E,b,C]=p?[i,d,l[d]||{}]:resolveMessageFormat(e,i,d,s,m,u),N=E,L=i;if(p||isString(N)||isMessageAST(N)||isMessageFunction(N)||_&&(N=g,L=N),!(p||(isString(N)||isMessageAST(N)||isMessageFunction(N))&&isString(b)))return a?NOT_REOSLVED:i;let v=!1;const h=isMessageFunction(N)?N:compileMessageFormat(e,i,b,N,L,(()=>{v=!0}));if(v)return N;const O=evaluateMessage(e,h,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)||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,getCompileContext(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)||isMessageAST(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 getCompileContext(e,t,n,r,a,o){return{locale:t,key:n,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=getLocale(e,u),_=s(e,a,g);if(!isString(i)||""===i)return new Intl.DateTimeFormat(g,m).format(c);let d,E={},b=null;for(let L=0;L<_.length&&(d=_[L],E=n[d]||{},b=E[i],!isPlainObject(b));L++)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 N=l.get(C);return N||(N=new Intl.DateTimeFormat(d,assign({},b,m)),l.set(C,N)),p?N.formatToParts(c):N.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=getLocale(e,u),_=s(e,a,g);if(!isString(i)||""===i)return new Intl.NumberFormat(g,m).format(c);let d,E={},b=null;for(let L=0;L<_.length&&(d=_[L],E=n[d]||{},b=E[i],!isPlainObject(b));L++)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 N=l.get(C);return N||(N=new Intl.NumberFormat(d,assign({},b,m)),l.set(C,N)),p?N.formatToParts(c):N.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.7.1",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(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()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}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}function getComponentOptions(e){return e.proxy.$options}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 createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:r}=e,a=void 0===n,o=e.flatJson;let s=!isBoolean(e.inheritLocale)||e.inheritLocale;const l=ref(n&&s?n.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=ref(n&&s?n.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l.value),c=ref(getLocaleMessages(l.value,e)),u=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),m=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[l.value]:{}});let f=n?n.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=n?n.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=n?n.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,_=!!e.fallbackFormat,d=isFunction(e.missing)?e.missing:null,E=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,C=n?n.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter;const L=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let v,h,O=e.pluralRules||n&&n.pluralRules;{isLegacyVueI18n(t);const e={locale:l.value,fallbackLocale:i.value,messages:c.value,dateTimeFormats:u.value,numberFormats:m.value,modifiers:L,missing:d,fallbackRoot:g,postTranslation:b,pluralizationRules:O,escapeParameterHtml:N,sync:s,silentFallbackWarn:isBoolean(p)?!p:p,silentTranslationWarn:isBoolean(f)?!f:f,formatFallbackMessages:isBoolean(_)?!_:_,warnHtmlInMessage:isBoolean(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};v=new t(e)}h=(()=>{a&&setFallbackContext(null);const t={version:VERSION,locale:l.value,fallbackLocale:i.value,messages:c.value,modifiers:L,pluralRules:O,missing:null===E?void 0:E,missingWarn:f,fallbackWarn:p,fallbackFormat:_,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:C,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(h)?h.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(h)?h.__numberFormatters:void 0;const n=createCoreContext(t);return a&&setFallbackContext(n),n})(),updateFallbackLocale(h,l.value,i.value);const y=computed({get:()=>l.value,set:e=>{l.value=e,v&&!a&&(v.locale=e),h.locale=l.value}}),T=computed({get:()=>i.value,set:e=>{i.value=e,v&&!a&&(v.fallbackLocale=e),h.fallbackLocale=i.value,updateFallbackLocale(h,l.value,e)}}),S=computed((()=>c.value)),k=computed((()=>u.value)),I=computed((()=>m.value));const A=(e,t,r,o,s,f)=>{let p;l.value,i.value,c.value,u.value,m.value;try{0,a||(h.fallbackContext=n?getFallbackContext():void 0),p=e(h)}finally{a||(h.fallbackContext=void 0)}if("translate exists"!==r&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===r&&!p){const[e,r]=t();return n&&g?o(n):s(e)}if(f(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function F(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const P={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,n&&inBrowser&&(watch(n.locale,(e=>{s&&(l.value=e,v&&!a&&(v.locale=e),h.locale=e,updateFallbackLocale(h,l.value,i.value))})),watch(n.fallbackLocale,(e=>{s&&(i.value=e,v&&!a&&(v.fallbackLocale=e),h.fallbackLocale=e,updateFallbackLocale(h,l.value,i.value))})));const M={id:composerID,locale:y,fallbackLocale:T,get inheritLocale(){return s},set inheritLocale(e){s=e,v&&(v._sync=e),e&&n&&(l.value=n.locale.value,i.value=n.fallbackLocale.value,v&&(v.locale=n.locale.value,v.fallbackLocale=n.fallbackLocale.value),updateFallbackLocale(h,l.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:S,get modifiers(){return L},get pluralRules(){return O||{}},get isGlobal(){return a},get missingWarn(){return f},set missingWarn(e){f=e,h.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,h.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return _},set fallbackFormat(e){_=e,h.fallbackFormat=_},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,h.warnHtmlMessage=e},get escapeParameter(){return N},set escapeParameter(e){N=e,h.escapeParameter=e},t:F,getLocaleMessage:R,setLocaleMessage:function(e,t){if(o){const n={[e]:t};for(const e in n)hasOwn(n,e)&&handleFlatJson(n[e]);t=n[e]}c.value[e]=t,v&&v.setLocaleMessage(e,t),h.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{},v&&v.mergeLocaleMessage(e,t);const n={[e]:t};for(const r in n)hasOwn(n,r)&&handleFlatJson(n[r]);deepCopy(t=n[e],c.value[e]),h.messages=c.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,h.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(E=defineCoreMissingHandler(e)),d=e,h.missing=E},[SetPluralRulesSymbol]:function(e){O=e,h.pluralRules=O}};return M.datetimeFormats=k,M.numberFormats=I,M.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return F(t,n,assign({resolvedMessage:!0},r||{}))},M.te=function(e,t){return A((()=>{if(!e)return!1;const n=R(isString(t)?t:l.value),r=h.messageResolver(n,e);return isMessageAST(r)||isMessageFunction(r)||isString(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},M.tm=function(e){const t=function(e){let t=null;const n=fallbackWithLocaleChain(h,i.value,l.value);for(let r=0;r<n.length;r++){const a=c.value[n[r]]||{},o=h.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},M.d=function(...e){return A((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 A((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 u.value[e]||{}},M.setDateTimeFormat=function(e,t){u.value[e]=t,v&&v.setDateTimeFormat(e,t),h.datetimeFormats=u.value,clearDateTimeFormat(h,e,t)},M.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),v&&v.mergeDateTimeFormat(e,t),h.datetimeFormats=u.value,clearDateTimeFormat(h,e,t)},M.getNumberFormat=function(e){return m.value[e]||{}},M.setNumberFormat=function(e,t){m.value[e]=t,v&&v.setNumberFormat(e,t),h.numberFormats=m.value,clearNumberFormat(h,e,t)},M.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),v&&v.mergeNumberFormat(e,t),h.numberFormats=m.value,clearNumberFormat(h,e,t)},M[InejctWithOptionSymbol]=r,M[TranslateVNodeSymbol]=function(...e){return A((t=>{let n;const r=t;try{r.processor=P,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)))},M[DatetimePartsSymbol]=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[LegacyInstanceSymbol]=v,M}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.children?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(e){return e}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("span");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("span");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 apply(e,...t){const n=isPlainObject(t[0])?t[0]:{};(!isBoolean(n.globalInstall)||n.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&isPlainObject(a)&&deepCopy(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||isPlainObject(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=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,t);{const e=l[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...o)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(a,...o),!n&&r&&(t=injectGlobalFieldsForBridge(a,e,l)),a.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const i={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(i).forEach((t=>Object.defineProperty(e,t,{value:i[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)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,_legacyVueI18n),s.__composerExtend&&(l[DisposeSymbol]=s.__composerExtend(l)),setupLifeCycle(s,t,l),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();{if(!isLegacyVueI18n(n))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=r.run((()=>createComposer(e,n)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(I18nErrorCodes.NOT_INSTALLED);return n}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}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[InejctWithOptionSymbol]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,n){{const r=t.proxy;if(null==r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=n[LegacyInstanceSymbol];if(a===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,inBrowser&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let o=!1;onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),o=!0})),onUnmounted((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}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,N=a?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},L=r.pluralRules||a&&n.pluralRules;function v(e){return l.value,i.value,c.value,u.value,m.value,e()}const h={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:N},get pluralRules(){return o.value?o.value.pluralRules:L},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?v((()=>Reflect.apply(o.value.t,null,[...e]))):v((()=>""))},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?v((()=>Reflect.apply(o.value.d,null,[...e]))):v((()=>""))},n:function(...e){return o.value?v((()=>Reflect.apply(o.value.n,null,[...e]))):v((()=>""))},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)})),h}function injectGlobalFieldsForBridge(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
import{ref,computed,watch,getCurrentInstance,defineComponent,h,effectScope,onBeforeMount,onUnmounted,shallowRef}from"vue-demi";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,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),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 incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("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 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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};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,i=e=>t[e]===CHAR_PS,l=e=>t[e]===CHAR_LS,c=e=>s(e)||(e=>t[e]===CHAR_LF)(e)||i(e)||l(e),u=e=>s(e)||i(e)||l(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,DOT=".",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(),i=a(),l={currentType:14,offset:i,startLoc:s,endLoc:s,lastType:14,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{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 _(e){let t="";for(;e.currentPeek()===CHAR_SP||e.currentPeek()===CHAR_LF;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=_(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;_(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){_(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 N(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function L(e){return N(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 O(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function h(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function v(e){let t="",n="";for(;t=O(e);)n+=t;return n}function T(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 y(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=h(e);if(!t){CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function I(e){g(e);const t=p(e,"|");return g(e),t}function k(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,"{"),g(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&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=A(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,I(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,P(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=m(t,5,function(e){g(e);let t="",n="";for(;t=L(e);)n+=t;return e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),g(e),n;if(a=E(e,t))return n=m(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r=e.currentPeek()===LITERAL_DELIMITER;return e.resetPeek(),r}(e,t))return n=m(t,7,function(e){g(e),p(e,"'");let t="",n="";const r=e=>e!==LITERAL_DELIMITER&&e!==CHAR_LF;for(;t=N(e,r);)n+="\\"===t?y(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)),g(e),n;if(!r&&!a&&!s)return n=m(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==CHAR_SP&&e!==CHAR_LF;for(;t=N(e,r);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,g(e),n}return n}function A(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 g(e),e.next(),m(t,9,".");case":":return g(e),e.next(),m(t,10,":");default:return b(e)?(r=m(t,1,I(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;_(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;_(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),A(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;_(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),m(t,12,function(e){let t="",n="";for(;t=L(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)?(g(e),"{"===a?k(e,t)||r:m(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===CHAR_SP?r:a===CHAR_LF||a===DOT?(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,P(e,t))}}function P(e,t){let n={type:14};if(t.braceNest>0)return k(e,t)||f(t);if(t.inLinked)return A(e,t)||f(t);switch(e.currentChar()){case"{":return k(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return A(e,t)||f(t);default:if(b(e))return n=m(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=_(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?m(t,0,T(e)):m(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&(CompileErrorCodes.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(C(e))return m(t,0,T(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=a(),l.startLoc=o(),r.currentChar()===EOF?m(l,14):P(r,l)},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,i=r(5,o,s);return i.index=parseInt(t,10),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function i(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(4,o,s);return i.key=t,e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(9,o,s);return i.value=t.replace(KNOWN_ESCAPES,fromEscapeSequence),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}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,i=r(8,o,s);return 12!==t.type?(CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,i.value="",a(i,o,s),{nextConsumeToken:t,node:i}):(null==t.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,getTokenCaption(t)),i.value=t.value||"",a(i,e.currentOffset(),e.currentPosition()),{node:i})}(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=i(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=l(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(i(e,r.value||""));break;case 7:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(l(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 i=0===o.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(o);do{const t=u(e);i||(i=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return a(l,e.currentOffset(),e.currentPosition()),l}(e,n,o,s)}return{parse:function(n){const o=createTokenizer(n,assign({},e)),s=o.context(),i=r(0,s.offset,s.startLoc);return t&&i.loc&&(i.loc.source=n),i.body=m(o),e.onCacheKey&&(i.cacheKey=e.onCacheKey(n)),14!==s.currentType&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(i,o.currentOffset(),o.currentPosition()),i}}}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,delete 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;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=join(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function minify(e){switch(e.t=e.type,e.type){case 0:const t=e;minify(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)minify(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,o=a.items;for(let e=0;e<o.length;e++)minify(o[e]);a.i=o,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const s=e;s.value&&(s.v=s.value,delete s.value);break;case 6:const i=e;minify(i.key),i.k=i.key,delete i.key,i.modifier&&(minify(i.modifier),i.m=i.modifier,delete i.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const c=e;c.k=c.key,delete c.key}delete e.type}function createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);function l(e,t){i.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>i,push:l,indent:function(e=!0){const t=++i.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&c(t)},newline:function(){c(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.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,i=e.helpers||[],l=createCodeGenerator(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),i.length>0&&(l.push(`const { ${join(i.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.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=!!n.minify,o=null==n.optimize||n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),a&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,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,i,l,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),l=pathStateMachine[u],s=l[o]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(i=f[s[1]],i&&(a=n,!1===i())))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;if(isFunction(a))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 i(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 l=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 l=i(t)(u),c="vnode"===o&&isArray(l)&&s?l[0]:l;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,o):c;var m},message:i,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:l,values:assign({},o,s)};return u}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$1(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$1(),NOT_SUPPORT_LOCALE_TYPE:inc$1(),__EXTEND_POINT__:inc$1()};function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}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.8.0",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}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString(e.version)?e.version:VERSION$1,r=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,a=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=isPlainObject(e.messages)?e.messages:{[a]:{}},i=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,f=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,_=!!e.fallbackFormat,g=!!e.unresolving,d=isFunction(e.postTranslation)?e.postTranslation:null,E=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,N=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,L=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,O=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,h=isObject(e.fallbackContext)?e.fallbackContext:void 0,v=e,T=isObject(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,y=isObject(v.__numberFormatters)?v.__numberFormatters:new Map,S=isObject(v.__meta)?v.__meta:{};_cid++;const I={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:f,fallbackWarn:p,fallbackFormat:_,unresolving:g,postTranslation:d,processor:E,warnHtmlMessage:b,escapeParameter:C,messageCompiler:N,messageResolver:L,localeFallbacker:O,fallbackContext:h,onWarn:t,__meta:S};return I.datetimeFormats=i,I.numberFormats=l,I.__datetimeFormatters=T,I.__numberFormatters=y,I}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)}function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,formatMessageParts(e,n)]),[]))}return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,formatMessagePart(e,n)]),[]);return e.normalize(n)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const s=t;return e.interpolate(e.list(null!=s.i?s.i:s.index));case 6:const i=t,l=i.m||i.modifier;return e.linked(formatMessagePart(e,i.k||i.key),l?formatMessagePart(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);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 compile(e,t){if(isString(e)){!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{ast:a,detectError:o}=baseCompile(e,{...t,location:!1,jit:!0}),s=format(a);return o?s:compileCache[n]=s}{const t=e.cacheKey;if(t){const n=compileCache[t];return n||(compileCache[t]=format(e))}return format(e)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:i}=e,[l,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,_=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",g=n||""!==_,d=getLocale(e,c);f&&escapeParams(c);let[E,b,C]=p?[l,d,i[d]||{}]:resolveMessageFormat(e,l,d,s,m,u),N=E,L=l;if(p||isString(N)||isMessageAST(N)||isMessageFunction(N)||g&&(N=_,L=N),!(p||(isString(N)||isMessageAST(N)||isMessageFunction(N))&&isString(b)))return a?NOT_REOSLVED:l;let O=!1;const h=isMessageFunction(N)?N:compileMessageFormat(e,l,b,N,L,(()=>{O=!0}));if(O)return N;const v=evaluateMessage(e,h,createMessageContext(getMessageContextOptions(e,b,C,c)));return r?r(v,l):v}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:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let m,f={},p=null;for(let _=0;_<u.length&&(m=u[_],f=s[m]||{},null===(p=l(f,t))&&(p=f[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));_++){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:i}=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 l=s(r,getCompileContext(e,n,a,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function evaluateMessage(e,t,n){return t(n)}function parseTranslateArgs(...e){const[t,n,r]=e,a={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(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 getCompileContext(e,t,n,r,a,o){return{locale:t,key:n,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:i,fallbackWarn:l,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,i,l,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:i}=e,[l,c,u,m]=parseDateTimeArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,_=getLocale(e,u),g=s(e,a,_);if(!isString(l)||""===l)return new Intl.DateTimeFormat(_,m).format(c);let d,E={},b=null;for(let L=0;L<g.length&&(d=g[L],E=n[d]||{},b=E[l],!isPlainObject(b));L++)handleMissing(e,l,d,f,"datetime format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let N=i.get(C);return N||(N=new Intl.DateTimeFormat(d,assign({},b,m)),i.set(C,N)),p?N.formatToParts(c):N.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,i={};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(l){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)?i[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(i=r),isPlainObject(a)&&(i=a),[o.key||"",s,o,i]}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:i}=e,[l,c,u,m]=parseNumberArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,_=getLocale(e,u),g=s(e,a,_);if(!isString(l)||""===l)return new Intl.NumberFormat(_,m).format(c);let d,E={},b=null;for(let L=0;L<g.length&&(d=g[L],E=n[d]||{},b=E[l],!isPlainObject(b));L++)handleMissing(e,l,d,f,"number format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let N=i.get(C);return N||(N=new Intl.NumberFormat(d,assign({},b,m)),i.set(C,N)),p?N.formatToParts(c):N.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 i=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||"",i,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.8.0",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(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()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}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 i in s)hasOwn(s,i)&&handleFlatJson(s[i]);return s}function getComponentOptions(e){return e.proxy.$options}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 createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:r}=e,a=void 0===n,o=e.flatJson;let s=!isBoolean(e.inheritLocale)||e.inheritLocale;const i=ref(n&&s?n.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),l=ref(n&&s?n.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=ref(getLocaleMessages(i.value,e)),u=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),m=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=n?n.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=n?n.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,_=n?n.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,g=!!e.fallbackFormat,d=isFunction(e.missing)?e.missing:null,E=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,C=n?n.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter;const L=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let O,h,v=e.pluralRules||n&&n.pluralRules;{isLegacyVueI18n(t);const e={locale:i.value,fallbackLocale:l.value,messages:c.value,dateTimeFormats:u.value,numberFormats:m.value,modifiers:L,missing:d,fallbackRoot:_,postTranslation:b,pluralizationRules:v,escapeParameterHtml:N,sync:s,silentFallbackWarn:isBoolean(p)?!p:p,silentTranslationWarn:isBoolean(f)?!f:f,formatFallbackMessages:isBoolean(g)?!g:g,warnHtmlInMessage:isBoolean(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};O=new t(e)}h=(()=>{a&&setFallbackContext(null);const t={version:VERSION,locale:i.value,fallbackLocale:l.value,messages:c.value,modifiers:L,pluralRules:v,missing:null===E?void 0:E,missingWarn:f,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:C,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(h)?h.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(h)?h.__numberFormatters:void 0;const n=createCoreContext(t);return a&&setFallbackContext(n),n})(),updateFallbackLocale(h,i.value,l.value);const T=computed({get:()=>i.value,set:e=>{i.value=e,O&&!a&&(O.locale=e),h.locale=i.value}}),y=computed({get:()=>l.value,set:e=>{l.value=e,O&&!a&&(O.fallbackLocale=e),h.fallbackLocale=l.value,updateFallbackLocale(h,i.value,e)}}),S=computed((()=>c.value)),I=computed((()=>u.value)),k=computed((()=>m.value));const A=(e,t,r,o,s,f)=>{let p;i.value,l.value,c.value,u.value,m.value;try{0,a||(h.fallbackContext=n?getFallbackContext():void 0),p=e(h)}finally{a||(h.fallbackContext=void 0)}if("translate exists"!==r&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===r&&!p){const[e,r]=t();return n&&_?o(n):s(e)}if(f(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function P(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const F={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,n&&inBrowser&&(watch(n.locale,(e=>{s&&(i.value=e,O&&!a&&(O.locale=e),h.locale=e,updateFallbackLocale(h,i.value,l.value))})),watch(n.fallbackLocale,(e=>{s&&(l.value=e,O&&!a&&(O.fallbackLocale=e),h.fallbackLocale=e,updateFallbackLocale(h,i.value,l.value))})));const M={id:composerID,locale:T,fallbackLocale:y,get inheritLocale(){return s},set inheritLocale(e){s=e,O&&(O._sync=e),e&&n&&(i.value=n.locale.value,l.value=n.fallbackLocale.value,O&&(O.locale=n.locale.value,O.fallbackLocale=n.fallbackLocale.value),updateFallbackLocale(h,i.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:S,get modifiers(){return L},get pluralRules(){return v||{}},get isGlobal(){return a},get missingWarn(){return f},set missingWarn(e){f=e,h.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,h.fallbackWarn=p},get fallbackRoot(){return _},set fallbackRoot(e){_=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,h.fallbackFormat=g},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,h.warnHtmlMessage=e},get escapeParameter(){return N},set escapeParameter(e){N=e,h.escapeParameter=e},t:P,getLocaleMessage:R,setLocaleMessage:function(e,t){if(o){const n={[e]:t};for(const e in n)hasOwn(n,e)&&handleFlatJson(n[e]);t=n[e]}c.value[e]=t,O&&O.setLocaleMessage(e,t),h.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{},O&&O.mergeLocaleMessage(e,t);const n={[e]:t};for(const r in n)hasOwn(n,r)&&handleFlatJson(n[r]);deepCopy(t=n[e],c.value[e]),h.messages=c.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,h.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(E=defineCoreMissingHandler(e)),d=e,h.missing=E},[SetPluralRulesSymbol]:function(e){v=e,h.pluralRules=v}};return M.datetimeFormats=I,M.numberFormats=k,M.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return P(t,n,assign({resolvedMessage:!0},r||{}))},M.te=function(e,t){return A((()=>{if(!e)return!1;const n=R(isString(t)?t:i.value),r=h.messageResolver(n,e);return isMessageAST(r)||isMessageFunction(r)||isString(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},M.tm=function(e){const t=function(e){let t=null;const n=fallbackWithLocaleChain(h,l.value,i.value);for(let r=0;r<n.length;r++){const a=c.value[n[r]]||{},o=h.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},M.d=function(...e){return A((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 A((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 u.value[e]||{}},M.setDateTimeFormat=function(e,t){u.value[e]=t,O&&O.setDateTimeFormat(e,t),h.datetimeFormats=u.value,clearDateTimeFormat(h,e,t)},M.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),O&&O.mergeDateTimeFormat(e,t),h.datetimeFormats=u.value,clearDateTimeFormat(h,e,t)},M.getNumberFormat=function(e){return m.value[e]||{}},M.setNumberFormat=function(e,t){m.value[e]=t,O&&O.setNumberFormat(e,t),h.numberFormats=m.value,clearNumberFormat(h,e,t)},M.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),O&&O.mergeNumberFormat(e,t),h.numberFormats=m.value,clearNumberFormat(h,e,t)},M[InejctWithOptionSymbol]=r,M[TranslateVNodeSymbol]=function(...e){return A((t=>{let n;const r=t;try{r.processor=F,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)))},M[DatetimePartsSymbol]=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[LegacyInstanceSymbol]=O,M}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.children?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(e){return e}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 i=getInterpolateArg(t,o),l=a[TranslateVNodeSymbol](e.keypath,i,s),c=assign({},r),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,l)}}}),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 i=r(e.value,t,s);let l=[t.key];isArray(i)?l=i.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];return isVNode(r)&&(r[0].key=`${e.type}-${t}`),r})):isString(i)&&(l=[i]);const c=assign({},o),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");return h(u,c,l)}}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 apply(e,...t){const n=isPlainObject(t[0])?t[0]:{};(!isBoolean(n.globalInstall)||n.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&isPlainObject(a)&&deepCopy(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||isPlainObject(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=t;const n=!isBoolean(e.legacy)||e.legacy,r=!isBoolean(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,o=new Map,[s,i]=createGlobal(e,n,t);{const e=i[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...o)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(a,...o),!n&&r&&(t=injectGlobalFieldsForBridge(a,e,i)),a.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const l={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(l).forEach((t=>Object.defineProperty(e,t,{value:l[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)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 i=s.__getInstance(t);if(null==i){const n=assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),i=createComposer(n,_legacyVueI18n),s.__composerExtend&&(i[DisposeSymbol]=s.__composerExtend(i)),setupLifeCycle(s,t,i),s.__setInstance(t,i)}return i}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();{if(!isLegacyVueI18n(n))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=r.run((()=>createComposer(e,n)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(I18nErrorCodes.NOT_INSTALLED);return n}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}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[InejctWithOptionSymbol]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,n){{const r=t.proxy;if(null==r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=n[LegacyInstanceSymbol];if(a===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,inBrowser&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let o=!1;onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),o=!0})),onUnmounted((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}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),i=ref(!a||s?n.locale.value:isString(r.locale)?r.locale:DEFAULT_LOCALE),l=ref(!a||s?n.fallbackLocale.value:isString(r.fallbackLocale)||isArray(r.fallbackLocale)||isPlainObject(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:i.value),c=ref(getLocaleMessages(i.value,r)),u=ref(isPlainObject(r.datetimeFormats)?r.datetimeFormats:{[i.value]:{}}),m=ref(isPlainObject(r.numberFormats)?r.numberFormats:{[i.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,_=a?n.fallbackRoot:!isBoolean(r.fallbackRoot)||r.fallbackRoot,g=!!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,N=a?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},L=r.pluralRules||a&&n.pluralRules;function O(e){return i.value,l.value,c.value,u.value,m.value,e()}const h={get id(){return o.value?o.value.id:-1},locale:computed({get:()=>o.value?o.value.locale.value:i.value,set:e=>{o.value&&(o.value.locale.value=e),i.value=e}}),fallbackLocale:computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),l.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:N},get pluralRules(){return o.value?o.value.pluralRules:L},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:_},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},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?O((()=>Reflect.apply(o.value.t,null,[...e]))):O((()=>""))},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?O((()=>Reflect.apply(o.value.d,null,[...e]))):O((()=>""))},n:function(...e){return o.value?O((()=>Reflect.apply(o.value.n,null,[...e]))):O((()=>""))},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?(i.value=n.locale.value,l.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=i.value,e.fallbackLocale.value=l.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=g,e.fallbackRoot=_,e.fallbackWarn=p,e.missingWarn=f,e.warnHtmlMessage=b}(n)})),h}function injectGlobalFieldsForBridge(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
/*!
* vue-i18n-bridge v9.7.1
* vue-i18n-bridge v9.8.0
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===h(e),c=e=>"[object RegExp]"===h(e),i=e=>k(e)&&0===Object.keys(e).length,u=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,g=e=>"string"==typeof e,v=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,h=e=>b.call(e),k=e=>{if(!E(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function L(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function N(e){let t=e;return()=>++t}function y(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=e=>!E(e)||p(e);function I(e,t){if(T(e)||T(t))throw new Error("Invalid value");for(const n in e)_(e,n)&&(T(e[n])||T(t[n])?t[n]=e[n]:I(e[n],t[n]))}function C(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const O={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function A(e){throw e}const P=" ",D="\r",S="\n",R=String.fromCharCode(8232),F=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>t[e]===D&&t[e+1]===S,s=e=>t[e]===F,c=e=>t[e]===R,i=e=>l(e)||(e=>t[e]===S)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?S:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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:f,peek:function(){return l(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;)f();o=0}}}const w=void 0,W=".",x="'";function U(e,t={}){const n=!1!==t.location,r=M(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=C(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):(O.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===P||e.currentPeek()===S;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===w)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function E(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(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===P||r===S):o===P?(e.peek(),n(!0,P,a)):o!==S||(e.peek(),n(!0,S,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function h(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function k(e){return h(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 L(e){return h(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function N(e){return h(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=L(e);)n+=t;return n}function T(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===P||n===S)if(b(e))t+=n,e.next();else{if(E(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 A(e,t,4);case"U":return A(e,t,6);default:return O.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function A(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=N(e);if(!t){O.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function D(e){d(e);const t=_(e,"|");return d(e),t}function R(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(O.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(O.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(E(e))return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return O.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,U(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===w&&(O.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=v(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${y(e)}`):t+=y(e),e.currentChar()===w&&(O.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===x;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";const r=e=>e!==x&&e!==S;for(;t=h(e,r);)n+="\\"===t?I(e):t;const a=e.currentChar();return a===S||a===w?(O.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),a===S&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==P&&e!==S;for(;t=h(e,r);)n+=t;return n}(e)),O.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(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!==S&&a!==P||(O.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return E(e)?(r=f(t,1,D(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)?(d(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===P||!t)&&(t===S?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?R(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===P?r:a===S||a===W?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(O.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,U(e,t))}}function U(e,t){let n={type:14};if(t.braceNest>0)return R(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);switch(e.currentChar()){case"{":return R(e,t)||m(t);case"}":return O.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(E(e))return n=f(t,1,D(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,T(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(O.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(b(e))return f(t,0,T(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):U(r,c)},currentOffset:a,currentPosition:o,context:i}}const $=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function V(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 H(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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace($,V),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(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:l}=n,s=r(8,o,l);return 12!==t.type?(O.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,j(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=c(e,o.value||"");break;default:O.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=U(n,u({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==l.currentType&&(O.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function j(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 G(e,t){for(let n=0;n<e.length;n++)X(e[n],t)}function X(e,t){switch(e.type){case 1:G(e.cases,t),t.helper("plural");break;case 2:G(e.items,t);break;case 6:X(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 B(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&&X(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=L(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function K(e){switch(e.t=e.type,e.type){case 0:const t=e;K(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)K(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,o=a.items;for(let e=0;e<o.length;e++)K(o[e]);a.i=o,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const l=e;l.value&&(l.v=l.value,delete l.value);break;case 6:const s=e;K(s.key),s.k=s.key,delete s.key,s.modifier&&(K(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const i=e;i.k=i.key,delete i.key}delete e.type}function z(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?z(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&&(z(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 o=0;o<a&&(z(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),z(e,t.key),t.modifier?(e.push(", "),z(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 J=(e,t={})=>{const n=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return l&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,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}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${L(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),z(c,e),c.deindent(l),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function Q(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,l=H(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?Y(t):t.cases.forEach((e=>Y(e)))}(l),a&&K(l),{ast:l,code:""}):(B(l,n),J(l,n))}const q=[];q[0]={w:[0],i:[3,0],"[":[4],o:[7]},q[1]={w:[1],".":[2],"[":[4],o:[7]},q[2]={w:[2],i:[3,0],0:[3,0]},q[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},q[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},q[5]={"'":[4,0],o:8,l:[5,0]},q[6]={'"':[4,0],o:8,l:[6,0]};const Z=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ee(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 te(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Z.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 ne=new Map;function re(e,t){return E(e)?e[t]:null}const ae=e=>e,oe=e=>"",le="text",se=e=>0===e.length?"":L(e),ce=e=>null==e?"":p(e)||k(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function ie(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ue(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=E(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ie,a=E(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?ie:void 0,o=e.list||[],s=e.named||{};l(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):!!E(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):oe)}const i=k(e.processor)&&d(e.processor.normalize)?e.processor.normalize:se,f=k(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:ce,m={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",l="";1===n.length?E(r)?(l=r.modifier||l,o=r.type||o):g(r)&&(l=r||l):2===n.length&&(g(r)&&(l=r||l),g(a)&&(o=a||o));const s=c(t)(m),i="vnode"===o&&p(s)&&l?s[0]:s;return l?(u=l,e.modifiers?e.modifiers[u]:ae)(i,o):i;var u},message:c,type:k(e.processor)&&g(e.processor.type)?e.processor.type:le,interpolate:f,normalize:i,values:u({},o,s)};return m}function fe(e,t){return null!=t.locale?_e(t.locale):_e(e.locale)}let me;function _e(e){return g(e)?e:null!=me&&e.resolvedOnce?me:me=e()}function pe(e,t,n){return[...new Set([n,...p(t)?t:E(t)?Object.keys(t):g(t)?[t]:[n]])]}function de(e,t,n){const r=g(n)?n:ke,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ge(o,e,t);const l=p(t)||!k(t)?t:t.default?t.default:null;e=g(l)?[l]:l,p(e)&&ge(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ge(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];g(o)&&(r=ve(e,t[a],n))}return r}function ve(e,t,n){let r;const a=t.split("-");do{r=Ee(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Ee(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),(p(n)||k(n))&&n[a]&&(r=n[a])}return r}const be="9.7.1",he=-1,ke="en-US",Le="",Ne=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ye,Te,Ie;let Ce=null;const Oe=e=>{Ce=e},Ae=()=>Ce;let Pe=0;function De(e={}){const t=d(e.onWarn)?e.onWarn:y,n=g(e.version)?e.version:be,r=g(e.locale)||d(e.locale)?e.locale:ke,a=d(r)?ke:r,o=p(e.fallbackLocale)||k(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=k(e.messages)?e.messages:{[a]:{}},s=k(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=k(e.numberFormats)?e.numberFormats:{[a]:{}},f=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?Ne(e):"vnode"===t&&E(e)&&"__v_isVNode"in e?Ne(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,b=!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,N=!!e.unresolving,T=d(e.postTranslation)?e.postTranslation:null,I=k(e.processor)?e.processor:null,C=!v(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:ye,P=d(e.messageResolver)?e.messageResolver:Te||re,D=d(e.localeFallbacker)?e.localeFallbacker:Ie||pe,S=E(e.fallbackContext)?e.fallbackContext:void 0,R=e,F=E(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,M=E(R.__numberFormatters)?R.__numberFormatters:new Map,w=E(R.__meta)?R.__meta:{};Pe++;const W={version:n,cid:Pe,locale:r,fallbackLocale:o,messages:l,modifiers:f,pluralRules:m,missing:_,missingWarn:b,fallbackWarn:h,fallbackFormat:L,unresolving:N,postTranslation:T,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:D,fallbackContext:S,onWarn:t,__meta:w};return W.datetimeFormats=s,W.numberFormats=i,W.__datetimeFormatters=F,W.__numberFormatters=M,W}function Se(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function Re(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Fe(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,Me(e,n)]),[]))}return Me(e,n)}(t,e)}function Me(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,we(e,n)]),[]);return e.normalize(n)}}function we(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const l=t;return e.interpolate(e.list(null!=l.i?l.i:l.index));case 6:const s=t,c=s.m||s.modifier;return e.linked(we(e,s.k||s.key),c?we(e,c):void 0,e.type);case 7:const i=t;return i.v||i.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const We=O.__EXTEND_POINT__,xe=N(We),Ue={INVALID_ARGUMENT:We,INVALID_DATE_ARGUMENT:xe(),INVALID_ISO_DATE_ARGUMENT:xe(),NOT_SUPPORT_NON_STRING_MESSAGE:xe(),__EXTEND_POINT__:xe()},$e=e=>e;let Ve=Object.create(null);const He=e=>E(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const je=()=>"",Ge=e=>d(e);function Xe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=Ke(...t),m=v(u.missingWarn)?u.missingWarn:e.missingWarn,_=v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=v(u.escapeParameter)?u.escapeParameter:e.escapeParameter,b=!!u.resolvedMessage,h=g(u.default)||v(u.default)?v(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",k=n||""!==h,L=fe(e,u);d&&function(e){p(e.list)?e.list=e.list.map((e=>g(e)?f(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[N,y,T]=b?[i,L,c[L]||{}]:Be(e,i,L,s,_,m),I=N,C=i;if(b||g(I)||He(I)||Ge(I)||k&&(I=h,C=I),!(b||(g(I)||He(I)||Ge(I))&&g(y)))return a?he:i;let O=!1;const A=Ge(I)?I:Ye(e,i,y,I,C,(()=>{O=!0}));if(O)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Be(f,r,t,c,i,u);a=s(e,r)}if(g(a)||He(a)){let n=!1;const o=Ye(e,r,t,a,r,(()=>{n=!0}));return n?je:o}return Ge(a)?a:je},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);l(r.plural)&&(_.pluralIndex=r.plural);return _}(e,y,T,u),D=function(e,t,n){const r=t(n);return r}(0,A,ue(P));return r?r(D,i):D}function Be(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;for(let p=0;p<u.length&&(f=u[p],m=l[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||He(_)||Ge(_)));p++){const n=Se(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ye(e,t,n,r,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Ge(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,function(e,t,n,r,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function Ke(...e){const[t,n,r]=e,a={};if(!(g(t)||l(t)||Ge(t)||He(t)))throw Error(Ue.INVALID_ARGUMENT);const o=l(t)?String(t):(Ge(t),t);return l(n)?a.plural=n:g(n)?a.default=n:k(n)&&!i(n)?a.named=n:p(n)&&(a.list=n),l(r)?a.plural=r:g(r)?a.default=r:k(r)&&u(a,r),[o,a]}function ze(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=Qe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=fe(e,m),E=l(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let b,h={},L=null;for(let i=0;i<E.length&&(b=E[i],h=n[b]||{},L=h[c],!k(L));i++)Se(e,c,b,0,"datetime format");if(!k(L)||!g(b))return r?he:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.DateTimeFormat(b,u({},L,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const Je=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Qe(...e){const[t,n,r,a]=e,o={};let c,i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ue.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(u){throw Error(Ue.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(Ue.INVALID_DATE_ARGUMENT);c=t}else{if(!l(t))throw Error(Ue.INVALID_ARGUMENT);c=t}return g(n)?o.key=n:k(n)&&Object.keys(n).forEach((e=>{Je.includes(e)?i[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:k(r)&&(i=r),k(a)&&(i=a),[o.key||"",c,o,i]}function qe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ze(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,f,m,_]=tt(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=fe(e,m),E=l(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let b,h={},L=null;for(let i=0;i<E.length&&(b=E[i],h=n[b]||{},L=h[c],!k(L));i++)Se(e,c,b,0,"number format");if(!k(L)||!g(b))return r?he:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.NumberFormat(b,u({},L,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const et=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function tt(...e){const[t,n,r,a]=e,o={};let s={};if(!l(t))throw Error(Ue.INVALID_ARGUMENT);const c=t;return g(n)?o.key=n:k(n)&&Object.keys(n).forEach((e=>{et.includes(e)?s[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:k(r)&&(s=r),k(a)&&(s=a),[o.key||"",c,o,s]}function nt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const rt="9.7.1",at=Ue.__EXTEND_POINT__,ot=N(at),lt={UNEXPECTED_RETURN_TYPE:at,INVALID_ARGUMENT:ot(),MUST_BE_CALL_SETUP_TOP:ot(),NOT_INSTALLED:ot(),NOT_AVAILABLE_IN_LEGACY_MODE:ot(),REQUIRED_VALUE:ot(),INVALID_VALUE:ot(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ot(),NOT_INSTALLED_WITH_PROVIDE:ot(),UNEXPECTED_ERROR:ot(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ot(),BRIDGE_SUPPORT_VUE_2_ONLY:ot(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ot(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ot(),__EXTEND_POINT__:ot()},st=r("__translateVNode"),ct=r("__datetimeParts"),it=r("__numberParts"),ut=r("__setPluralRules"),ft=r("__legacyVueI18n"),mt=r("__injectWithOption"),_t=r("__dispose"),pt="__VUE_I18N_BRIDGE__";function dt(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function gt(e){if(!E(e))return e;for(const t in e)if(_(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]]={}),!E(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),E(a[n[r]])&&gt(a[n[r]])}else E(e[t])&&gt(e[t]);return e}function vt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=k(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},I(n,l[t])):I(n,l)}else g(e)&&I(JSON.parse(e),l)})),null==a&&o)for(const s in l)_(l,s)&&gt(l[s]);return l}function Et(e){return e.proxy.$options}function bt(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const ht=()=>[],kt=()=>!1;let Lt=0;function Nt(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function yt(e={},r){const{__root:a,__injectWithOption:o}=e,s=void 0===a,i=e.flatJson;let f=!v(e.inheritLocale)||e.inheritLocale;const m=t.ref(a&&f?a.locale.value:g(e.locale)?e.locale:ke),b=t.ref(a&&f?a.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),h=t.ref(vt(m.value,e)),L=t.ref(k(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),N=t.ref(k(e.numberFormats)?e.numberFormats:{[m.value]:{}});let y=a?a.missingWarn:!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,T=a?a.fallbackWarn:!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,C=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,O=!!e.fallbackFormat,A=d(e.missing)?e.missing:null,P=d(e.missing)?Nt(e.missing):null,D=d(e.postTranslation)?e.postTranslation:null,S=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter;const F=a?a.modifiers:k(e.modifiers)?e.modifiers:{};let M,w,W=e.pluralRules||a&&a.pluralRules;{dt(r);const e={locale:m.value,fallbackLocale:b.value,messages:h.value,dateTimeFormats:L.value,numberFormats:N.value,modifiers:F,missing:A,fallbackRoot:C,postTranslation:D,pluralizationRules:W,escapeParameterHtml:R,sync:f,silentFallbackWarn:v(T)?!T:T,silentTranslationWarn:v(y)?!y:y,formatFallbackMessages:v(O)?!O:O,warnHtmlInMessage:v(S)&&S?"warn":"off",__VUE_I18N_BRIDGE__:pt};M=new r(e)}w=(()=>{s&&Oe(null);const t={version:rt,locale:m.value,fallbackLocale:b.value,messages:h.value,modifiers:F,pluralRules:W,missing:null===P?void 0:P,missingWarn:y,fallbackWarn:T,fallbackFormat:O,unresolving:!0,postTranslation:null===D?void 0:D,warnHtmlMessage:S,escapeParameter:R,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=N.value,t.__datetimeFormatters=k(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=k(w)?w.__numberFormatters:void 0;const n=De(t);return s&&Oe(n),n})(),Re(w,m.value,b.value);const x=t.computed({get:()=>m.value,set:e=>{m.value=e,M&&!s&&(M.locale=e),w.locale=m.value}}),U=t.computed({get:()=>b.value,set:e=>{b.value=e,M&&!s&&(M.fallbackLocale=e),w.fallbackLocale=b.value,Re(w,m.value,e)}}),$=t.computed((()=>h.value)),V=t.computed((()=>L.value)),H=t.computed((()=>N.value));const j=(e,t,n,r,o,c)=>{let i;m.value,b.value,h.value,L.value,N.value;try{0,s||(w.fallbackContext=a?Ae():void 0),i=e(w)}finally{s||(w.fallbackContext=void 0)}if("translate exists"!==n&&l(i)&&i===he||"translate exists"===n&&!i){const[e,n]=t();return a&&C?r(a):o(e)}if(c(i))return i;throw Error(lt.UNEXPECTED_RETURN_TYPE)};function G(...e){return j((t=>Reflect.apply(Xe,null,[t,...e])),(()=>Ke(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const X={normalize:function(e){return e.map((e=>g(e)||l(e)||v(e)?bt(String(e)):e))},interpolate:e=>e,type:"vnode"};function B(e){return h.value[e]||{}}Lt++,a&&n&&(t.watch(a.locale,(e=>{f&&(m.value=e,M&&!s&&(M.locale=e),w.locale=e,Re(w,m.value,b.value))})),t.watch(a.fallbackLocale,(e=>{f&&(b.value=e,M&&!s&&(M.fallbackLocale=e),w.fallbackLocale=e,Re(w,m.value,b.value))})));const Y={id:Lt,locale:x,fallbackLocale:U,get inheritLocale(){return f},set inheritLocale(e){f=e,M&&(M._sync=e),e&&a&&(m.value=a.locale.value,b.value=a.fallbackLocale.value,M&&(M.locale=a.locale.value,M.fallbackLocale=a.fallbackLocale.value),Re(w,m.value,b.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:$,get modifiers(){return F},get pluralRules(){return W||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(e){y=e,w.missingWarn=y},get fallbackWarn(){return T},set fallbackWarn(e){T=e,w.fallbackWarn=T},get fallbackRoot(){return C},set fallbackRoot(e){C=e},get fallbackFormat(){return O},set fallbackFormat(e){O=e,w.fallbackFormat=O},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,w.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,w.escapeParameter=e},t:G,getLocaleMessage:B,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)_(n,e)&&gt(n[e]);t=n[e]}h.value[e]=t,M&&M.setLocaleMessage(e,t),w.messages=h.value},mergeLocaleMessage:function(e,t){h.value[e]=h.value[e]||{},M&&M.mergeLocaleMessage(e,t);const n={[e]:t};for(const r in n)_(n,r)&&gt(n[r]);I(t=n[e],h.value[e]),w.messages=h.value},getPostTranslationHandler:function(){return d(D)?D:null},setPostTranslationHandler:function(e){D=e,w.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=Nt(e)),A=e,w.missing=P},[ut]:function(e){W=e,w.pluralRules=W}};return Y.datetimeFormats=V,Y.numberFormats=H,Y.rt=function(...e){const[t,n,r]=e;if(r&&!E(r))throw Error(lt.INVALID_ARGUMENT);return G(t,n,u({resolvedMessage:!0},r||{}))},Y.te=function(e,t){return j((()=>{if(!e)return!1;const n=B(g(t)?t:m.value),r=w.messageResolver(n,e);return He(r)||Ge(r)||g(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),kt,(e=>v(e)))},Y.tm=function(e){const t=function(e){let t=null;const n=de(w,b.value,m.value);for(let r=0;r<n.length;r++){const a=h.value[n[r]]||{},o=w.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},Y.d=function(...e){return j((t=>Reflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Le),(e=>g(e)))},Y.n=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Le),(e=>g(e)))},Y.getDateTimeFormat=function(e){return L.value[e]||{}},Y.setDateTimeFormat=function(e,t){L.value[e]=t,M&&M.setDateTimeFormat(e,t),w.datetimeFormats=L.value,qe(w,e,t)},Y.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),M&&M.mergeDateTimeFormat(e,t),w.datetimeFormats=L.value,qe(w,e,t)},Y.getNumberFormat=function(e){return N.value[e]||{}},Y.setNumberFormat=function(e,t){N.value[e]=t,M&&M.setNumberFormat(e,t),w.numberFormats=N.value,nt(w,e,t)},Y.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),M&&M.mergeNumberFormat(e,t),w.numberFormats=N.value,nt(w,e,t)},Y[mt]=o,Y[st]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(Xe,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ke(...e)),"translate",(t=>t[st](...e)),(e=>[bt(e)]),(e=>p(e)))},Y[ct]=function(...e){return j((t=>Reflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>t[ct](...e)),ht,(e=>g(e)||p(e)))},Y[it]=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>t[it](...e)),ht,(e=>g(e)||p(e)))},Y[ft]=M,Y}const Tt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const It=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Tt),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||Mt({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=g(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),i=o[st](e.keypath,c,s),f=u({},a),m=g(e.tag)||E(e.tag)?e.tag:"span";return t.h(m,f,i)}}}),Ct=It;function Ot(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:E(e.format)&&(g(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return p(a=r)&&!g(a[0])&&(r[0].key=`${e.type}-${t}`),r})):g(c)&&(i=[c]);const f=u({},l),m=g(e.tag)||E(e.tag)?e.tag:"span";return t.h(m,f,i)}}const At=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Tt),setup(e,t){const n=e.i18n||Mt({useScope:"parent",__useComponent:!0});return Ot(e,t,et,((...e)=>n[it](...e)))}}),Pt=At,Dt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Tt),setup(e,t){const n=e.i18n||Mt({useScope:"parent",__useComponent:!0});return Ot(e,t,Je,((...e)=>n[ct](...e)))}}),St=Dt;let Rt=null;const Ft=r("global-vue-i18n");function Mt(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(lt.MUST_BE_CALL_SETUP_TOP);if(null==Rt)throw Error(lt.NOT_INSTALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(lt.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(lt.NOT_INSTALLED);return n}}(r),o=function(e){return e.global}(a),l=Et(r),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(lt.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(lt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=v(a.inheritLocale)?a.inheritLocale:!g(a.locale),i=t.ref(!o||s?r.locale.value:g(a.locale)?a.locale:ke),u=t.ref(!o||s?r.fallbackLocale.value:g(a.fallbackLocale)||p(a.fallbackLocale)||k(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(vt(i.value,a)),m=t.ref(k(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),_=t.ref(k(a.numberFormats)?a.numberFormats:{[i.value]:{}}),E=o?r.missingWarn:!v(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=o?r.fallbackWarn:!v(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,h=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,y=d(a.postTranslation)?a.postTranslation:null,T=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=o?r.modifiers:k(a.modifiers)?a.modifiers:{},O=a.pluralRules||o&&r.pluralRules;function A(){return[i.value,u.value,f.value,m.value,_.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),D=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),S=t.computed((()=>l.value?l.value.messages.value:f.value)),R=t.computed((()=>m.value)),F=t.computed((()=>_.value));function M(){return l.value?l.value.getPostTranslationHandler():y}function w(e){l.value&&l.value.setPostTranslationHandler(e)}function W(){return l.value?l.value.getMissingHandler():N}function x(e){l.value&&l.value.setMissingHandler(e)}function U(e){return A(),e()}function $(...e){return l.value?U((()=>Reflect.apply(l.value.t,null,[...e]))):U((()=>""))}function V(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function H(...e){return l.value?U((()=>Reflect.apply(l.value.d,null,[...e]))):U((()=>""))}function j(...e){return l.value?U((()=>Reflect.apply(l.value.n,null,[...e]))):U((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function X(e,t){return!!l.value&&l.value.te(e,t)}function B(e){return l.value?l.value.getLocaleMessage(e):{}}function Y(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function z(e){return l.value?l.value.getDateTimeFormat(e):{}}function J(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function q(e){return l.value?l.value.getNumberFormat(e):{}}function Z(e,t){l.value&&(l.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:D,messages:S,datetimeFormats:R,numberFormats:F,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(f.value)},get modifiers(){return l.value?l.value.modifiers:C},get pluralRules(){return l.value?l.value.pluralRules:O},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:E},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:b},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:h},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:L},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:T},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:W,setMissingHandler:x,rt:V,d:H,n:j,tm:G,te:X,getLocaleMessage:B,setLocaleMessage:Y,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.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=I,e.fallbackFormat=L,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=E,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(lt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):o&&ne(t)})),te}(r,s,o,e)}if("global"===s)return function(e,t,n){let r=E(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=vt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(o,e,l),o;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return e.parent}(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[mt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=yt(a,Rt),f.__composerExtend&&(m[_t]=f.__composerExtend(m)),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(lt.UNEXPECTED_ERROR);const l=a[ft];if(l===e)throw Error(lt.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,m),f.__setInstance(r,m)}return m}return ye=function(e,t){if(g(e)){!v(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||$e)(e),r=Ve[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||A;return t.onError=e=>{n=!0,r(e)},{...Q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),l=Fe(a);return o?l:Ve[n]=l}{const t=e.cacheKey;return t?Ve[t]||(Ve[t]=Fe(e)):Fe(e)}},Te=function(e,t){if(!E(e))return null;let n=ne.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,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--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=te(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=ee(n),c=q[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&ne.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;if(d(a))return null;a=e,o++}return a},Ie=de,e.DatetimeFormat=Dt,e.I18nD=St,e.I18nInjectionKey=Ft,e.I18nN=Pt,e.I18nT=Ct,e.NumberFormat=At,e.Translation=It,e.VERSION=rt,e.castToVueI18n=e=>{if(!(pt in e))throw Error(lt.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){Rt=n;const r=!v(e.legacy)||e.legacy,a=!v(e.globalInjection)||e.globalInjection,o=!r||!!e.allowComposition,l=new Map,[s,c]=function(e,n,r){const a=t.effectScope();{if(!dt(r))throw Error(lt.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>yt(e,r)));if(null==t)throw Error(lt.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);{const e=c[ft];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(n,...o)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(lt.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=k(t[0])?t[0]:{};(!v(n.globalInstall)||n.globalInstall)&&(e.component(It.name,It),e.component(At.name,At),e.component(Dt.name,Dt))}(n,...o),!r&&a&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(n,e,c)),n.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>I(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(k(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>I(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&k(a)&&I(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||k(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Rt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const n={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=Mt,e}({},VueDemi);
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===k(e),c=e=>"[object RegExp]"===k(e),i=e=>L(e)&&0===Object.keys(e).length,u=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,g=e=>"string"==typeof e,v=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,b=e=>E(e)&&d(e.then)&&d(e.catch),h=Object.prototype.toString,k=e=>h.call(e),L=e=>{if(!E(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 y(e){let t=e;return()=>++t}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const I=e=>!E(e)||p(e);function C(e,t){if(I(e)||I(t))throw new Error("Invalid value");for(const n in e)_(e,n)&&(I(e[n])||I(t[n])?t[n]=e[n]:C(e[n],t[n]))}function O(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const A={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function P(e){throw e}const S=" ",R="\r",D="\n",F=String.fromCharCode(8232),M=String.fromCharCode(8233);function w(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>t[e]===R&&t[e+1]===D,s=e=>t[e]===M,c=e=>t[e]===F,i=e=>l(e)||(e=>t[e]===D)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?D:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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:f,peek:function(){return l(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;)f();o=0}}}const U=void 0,W=".",x="'";function $(e,t={}){const n=!1!==t.location,r=w(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=O(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):(A.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===S||e.currentPeek()===D;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===U)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===U)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function E(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(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===S||r===D):o===S?(e.peek(),n(!0,S,a)):o!==D||(e.peek(),n(!0,D,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function h(e,t){const n=e.currentChar();return n===U?U:t(n)?(e.next(),n):null}function k(e){return h(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 L(e){return h(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function N(e){return h(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=L(e);)n+=t;return n}function T(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===S||n===D)if(b(e))t+=n,e.next();else{if(E(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 C(e,t,4);case"U":return C(e,t,6);default:return A.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function C(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=N(e);if(!t){A.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){d(e);const t=_(e,"|");return d(e),t}function R(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(A.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(A.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,o()),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(E(e))return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return A.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,M(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===U&&(A.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=v(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${y(e)}`):t+=y(e),e.currentChar()===U&&(A.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===x;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";const r=e=>e!==x&&e!==D;for(;t=h(e,r);)n+="\\"===t?I(e):t;const a=e.currentChar();return a===D||a===U?(A.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),a===D&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==S&&e!==D;for(;t=h(e,r);)n+=t;return n}(e)),A.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(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!==D&&a!==S||(A.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return E(e)?(r=f(t,1,P(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)?(d(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(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?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===S||!t)&&(t===D?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?R(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===S?r:a===D||a===W?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&(A.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,M(e,t))}}function M(e,t){let n={type:14};if(t.braceNest>0)return R(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);switch(e.currentChar()){case"{":return R(e,t)||m(t);case"}":return A.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(E(e))return n=f(t,1,P(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,T(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(A.EXPECTED_TOKEN,o()),e.next(),"%"}(e));if(b(e))return f(t,0,T(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===U?f(c,14):M(r,c)},currentOffset:a,currentPosition:o,context:i}}const V=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function H(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 j(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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(V,H),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(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:l}=n,s=r(8,o,l);return 12!==t.type?(A.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,G(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(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&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(o)),n.key=c(e,o.value||"");break;default:A.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.startLoc),{nextConsumeToken:o,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(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&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,G(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=$(n,u({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==l.currentType&&(A.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function G(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 X(e,t){for(let n=0;n<e.length;n++)Y(e[n],t)}function Y(e,t){switch(e.type){case 1:X(e.cases,t),t.helper("plural");break;case 2:X(e.items,t);break;case 6:Y(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 B(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&&Y(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function K(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=N(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function z(e){switch(e.t=e.type,e.type){case 0:const t=e;z(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)z(r[e]);n.c=r,delete n.cases;break;case 2:const a=e,o=a.items;for(let e=0;e<o.length;e++)z(o[e]);a.i=o,delete a.items,a.static&&(a.s=a.static,delete a.static);break;case 3:case 9:case 8:case 7:const l=e;l.value&&(l.v=l.value,delete l.value);break;case 6:const s=e;z(s.key),s.k=s.key,delete s.key,s.modifier&&(z(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const i=e;i.k=i.key,delete i.key}delete e.type}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 o=0;o<a&&(J(e,t.items[o]),o!==a-1);o++)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 Q=(e,t={})=>{const n=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){s.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return l&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:c,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}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${N(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),J(c,e),c.deindent(l),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function q(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,l=j(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?K(t):t.cases.forEach((e=>K(e)))}(l),a&&z(l),{ast:l,code:""}):(B(l,n),Q(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 ee=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function te(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 ne(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,ee.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 re=new Map;function ae(e,t){return E(e)?e[t]:null}const oe=e=>e,le=e=>"",se="text",ce=e=>0===e.length?"":N(e),ie=e=>null==e?"":p(e)||L(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function ue(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function fe(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=E(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:ue,a=E(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?ue:void 0,o=e.list||[],s=e.named||{};l(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):!!E(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):le)}const i=L(e.processor)&&d(e.processor.normalize)?e.processor.normalize:ce,f=L(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:ie,m={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",l="";1===n.length?E(r)?(l=r.modifier||l,o=r.type||o):g(r)&&(l=r||l):2===n.length&&(g(r)&&(l=r||l),g(a)&&(o=a||o));const s=c(t)(m),i="vnode"===o&&p(s)&&l?s[0]:s;return l?(u=l,e.modifiers?e.modifiers[u]:oe)(i,o):i;var u},message:c,type:L(e.processor)&&g(e.processor.type)?e.processor.type:se,interpolate:f,normalize:i,values:u({},o,s)};return m}const me=A.__EXTEND_POINT__,_e=y(me),pe={INVALID_ARGUMENT:me,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),NOT_SUPPORT_NON_STRING_MESSAGE:_e(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:_e(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:_e(),NOT_SUPPORT_LOCALE_TYPE:_e(),__EXTEND_POINT__:_e()};function de(e,t){return null!=t.locale?ve(t.locale):ve(e.locale)}let ge;function ve(e){if(g(e))return e;if(d(e)){if(e.resolvedOnce&&null!=ge)return ge;if("Function"===e.constructor.name){const t=e();if(b(t))throw Error(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ge=t}throw Error(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ee(e,t,n){return[...new Set([n,...p(t)?t:E(t)?Object.keys(t):g(t)?[t]:[n]])]}function be(e,t,n){const r=g(n)?n:Te,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=he(o,e,t);const l=p(t)||!L(t)?t:t.default?t.default:null;e=g(l)?[l]:l,p(e)&&he(o,e,!1),a.__localeChainCache.set(r,o)}return o}function he(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];g(o)&&(r=ke(e,t[a],n))}return r}function ke(e,t,n){let r;const a=t.split("-");do{r=Le(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Le(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),(p(n)||L(n))&&n[a]&&(r=n[a])}return r}const Ne="9.8.0",ye=-1,Te="en-US",Ie="",Ce=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Oe,Ae,Pe;let Se=null;const Re=e=>{Se=e},De=()=>Se;let Fe=0;function Me(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:Ne,r=g(e.locale)||d(e.locale)?e.locale:Te,a=d(r)?Te:r,o=p(e.fallbackLocale)||L(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=L(e.messages)?e.messages:{[a]:{}},s=L(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=L(e.numberFormats)?e.numberFormats:{[a]:{}},f=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?Ce(e):"vnode"===t&&E(e)&&"__v_isVNode"in e?Ce(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,b=!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,N=!!e.unresolving,y=d(e.postTranslation)?e.postTranslation:null,I=L(e.processor)?e.processor:null,C=!v(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:Oe,P=d(e.messageResolver)?e.messageResolver:Ae||ae,S=d(e.localeFallbacker)?e.localeFallbacker:Pe||Ee,R=E(e.fallbackContext)?e.fallbackContext:void 0,D=e,F=E(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=E(D.__numberFormatters)?D.__numberFormatters:new Map,w=E(D.__meta)?D.__meta:{};Fe++;const U={version:n,cid:Fe,locale:r,fallbackLocale:o,messages:l,modifiers:f,pluralRules:m,missing:_,missingWarn:b,fallbackWarn:h,fallbackFormat:k,unresolving:N,postTranslation:y,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:S,fallbackContext:R,onWarn:t,__meta:w};return U.datetimeFormats=s,U.numberFormats=i,U.__datetimeFormatters=F,U.__numberFormatters=M,U}function we(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function Ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function We(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,xe(e,n)]),[]))}return xe(e,n)}(t,e)}function xe(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,$e(e,n)]),[]);return e.normalize(n)}}function $e(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const l=t;return e.interpolate(e.list(null!=l.i?l.i:l.index));case 6:const s=t,c=s.m||s.modifier;return e.linked($e(e,s.k||s.key),c?$e(e,c):void 0,e.type);case 7:const i=t;return i.v||i.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Ve=e=>e;let He=Object.create(null);const je=e=>E(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const Ge=()=>"",Xe=e=>d(e);function Ye(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=ze(...t),m=v(u.missingWarn)?u.missingWarn:e.missingWarn,_=v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=v(u.escapeParameter)?u.escapeParameter:e.escapeParameter,b=!!u.resolvedMessage,h=g(u.default)||v(u.default)?v(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",k=n||""!==h,L=de(e,u);d&&function(e){p(e.list)?e.list=e.list.map((e=>g(e)?f(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[N,y,T]=b?[i,L,c[L]||{}]:Be(e,i,L,s,_,m),I=N,C=i;if(b||g(I)||je(I)||Xe(I)||k&&(I=h,C=I),!(b||(g(I)||je(I)||Xe(I))&&g(y)))return a?ye:i;let O=!1;const A=Xe(I)?I:Ke(e,i,y,I,C,(()=>{O=!0}));if(O)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=Be(f,r,t,c,i,u);a=s(e,r)}if(g(a)||je(a)){let n=!1;const o=Ke(e,r,t,a,r,(()=>{n=!0}));return n?Ge:o}return Xe(a)?a:Ge},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);l(r.plural)&&(_.pluralIndex=r.plural);return _}(e,y,T,u),S=function(e,t,n){const r=t(n);return r}(0,A,fe(P));return r?r(S,i):S}function Be(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;for(let p=0;p<u.length&&(f=u[p],m=l[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||je(_)||Xe(_)));p++){const n=we(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ke(e,t,n,r,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Xe(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,function(e,t,n,r,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function ze(...e){const[t,n,r]=e,a={};if(!(g(t)||l(t)||Xe(t)||je(t)))throw Error(pe.INVALID_ARGUMENT);const o=l(t)?String(t):(Xe(t),t);return l(n)?a.plural=n:g(n)?a.default=n:L(n)&&!i(n)?a.named=n:p(n)&&(a.list=n),l(r)?a.plural=r:g(r)?a.default=r:L(r)&&u(a,r),[o,a]}function Je(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,f,m,_]=qe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=de(e,m),E=l(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let b,h={},k=null;for(let i=0;i<E.length&&(b=E[i],h=n[b]||{},k=h[c],!L(k));i++)we(e,c,b,0,"datetime format");if(!L(k)||!g(b))return r?ye:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.DateTimeFormat(b,u({},k,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const Qe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function qe(...e){const[t,n,r,a]=e,o={};let c,i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(pe.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(u){throw Error(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(pe.INVALID_DATE_ARGUMENT);c=t}else{if(!l(t))throw Error(pe.INVALID_ARGUMENT);c=t}return g(n)?o.key=n:L(n)&&Object.keys(n).forEach((e=>{Qe.includes(e)?i[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:L(r)&&(i=r),L(a)&&(i=a),[o.key||"",c,o,i]}function Ze(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function et(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,f,m,_]=nt(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=de(e,m),E=l(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let b,h={},k=null;for(let i=0;i<E.length&&(b=E[i],h=n[b]||{},k=h[c],!L(k));i++)we(e,c,b,0,"number format");if(!L(k)||!g(b))return r?ye:c;let N=`${b}__${c}`;i(_)||(N=`${N}__${JSON.stringify(_)}`);let y=s.get(N);return y||(y=new Intl.NumberFormat(b,u({},k,_)),s.set(N,y)),p?y.formatToParts(f):y.format(f)}const tt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function nt(...e){const[t,n,r,a]=e,o={};let s={};if(!l(t))throw Error(pe.INVALID_ARGUMENT);const c=t;return g(n)?o.key=n:L(n)&&Object.keys(n).forEach((e=>{tt.includes(e)?s[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:L(r)&&(s=r),L(a)&&(s=a),[o.key||"",c,o,s]}function rt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const at="9.8.0",ot=pe.__EXTEND_POINT__,lt=y(ot),st={UNEXPECTED_RETURN_TYPE:ot,INVALID_ARGUMENT:lt(),MUST_BE_CALL_SETUP_TOP:lt(),NOT_INSTALLED:lt(),NOT_AVAILABLE_IN_LEGACY_MODE:lt(),REQUIRED_VALUE:lt(),INVALID_VALUE:lt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:lt(),NOT_INSTALLED_WITH_PROVIDE:lt(),UNEXPECTED_ERROR:lt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:lt(),BRIDGE_SUPPORT_VUE_2_ONLY:lt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:lt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:lt(),__EXTEND_POINT__:lt()},ct=r("__translateVNode"),it=r("__datetimeParts"),ut=r("__numberParts"),ft=r("__setPluralRules"),mt=r("__legacyVueI18n"),_t=r("__injectWithOption"),pt=r("__dispose"),dt="__VUE_I18N_BRIDGE__";function gt(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function vt(e){if(!E(e))return e;for(const t in e)if(_(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]]={}),!E(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),E(a[n[r]])&&vt(a[n[r]])}else E(e[t])&&vt(e[t]);return e}function Et(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=L(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},C(n,l[t])):C(n,l)}else g(e)&&C(JSON.parse(e),l)})),null==a&&o)for(const s in l)_(l,s)&&vt(l[s]);return l}function bt(e){return e.proxy.$options}function ht(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const kt=()=>[],Lt=()=>!1;let Nt=0;function yt(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Tt(e={},r){const{__root:a,__injectWithOption:o}=e,s=void 0===a,i=e.flatJson;let f=!v(e.inheritLocale)||e.inheritLocale;const m=t.ref(a&&f?a.locale.value:g(e.locale)?e.locale:Te),b=t.ref(a&&f?a.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),h=t.ref(Et(m.value,e)),k=t.ref(L(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),N=t.ref(L(e.numberFormats)?e.numberFormats:{[m.value]:{}});let y=a?a.missingWarn:!v(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,T=a?a.fallbackWarn:!v(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,O=!!e.fallbackFormat,A=d(e.missing)?e.missing:null,P=d(e.missing)?yt(e.missing):null,S=d(e.postTranslation)?e.postTranslation:null,R=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,D=!!e.escapeParameter;const F=a?a.modifiers:L(e.modifiers)?e.modifiers:{};let M,w,U=e.pluralRules||a&&a.pluralRules;{gt(r);const e={locale:m.value,fallbackLocale:b.value,messages:h.value,dateTimeFormats:k.value,numberFormats:N.value,modifiers:F,missing:A,fallbackRoot:I,postTranslation:S,pluralizationRules:U,escapeParameterHtml:D,sync:f,silentFallbackWarn:v(T)?!T:T,silentTranslationWarn:v(y)?!y:y,formatFallbackMessages:v(O)?!O:O,warnHtmlInMessage:v(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:dt};M=new r(e)}w=(()=>{s&&Re(null);const t={version:at,locale:m.value,fallbackLocale:b.value,messages:h.value,modifiers:F,pluralRules:U,missing:null===P?void 0:P,missingWarn:y,fallbackWarn:T,fallbackFormat:O,unresolving:!0,postTranslation:null===S?void 0:S,warnHtmlMessage:R,escapeParameter:D,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=k.value,t.numberFormats=N.value,t.__datetimeFormatters=L(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=L(w)?w.__numberFormatters:void 0;const n=Me(t);return s&&Re(n),n})(),Ue(w,m.value,b.value);const W=t.computed({get:()=>m.value,set:e=>{m.value=e,M&&!s&&(M.locale=e),w.locale=m.value}}),x=t.computed({get:()=>b.value,set:e=>{b.value=e,M&&!s&&(M.fallbackLocale=e),w.fallbackLocale=b.value,Ue(w,m.value,e)}}),$=t.computed((()=>h.value)),V=t.computed((()=>k.value)),H=t.computed((()=>N.value));const j=(e,t,n,r,o,c)=>{let i;m.value,b.value,h.value,k.value,N.value;try{0,s||(w.fallbackContext=a?De():void 0),i=e(w)}finally{s||(w.fallbackContext=void 0)}if("translate exists"!==n&&l(i)&&i===ye||"translate exists"===n&&!i){const[e,n]=t();return a&&I?r(a):o(e)}if(c(i))return i;throw Error(st.UNEXPECTED_RETURN_TYPE)};function G(...e){return j((t=>Reflect.apply(Ye,null,[t,...e])),(()=>ze(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const X={normalize:function(e){return e.map((e=>g(e)||l(e)||v(e)?ht(String(e)):e))},interpolate:e=>e,type:"vnode"};function Y(e){return h.value[e]||{}}Nt++,a&&n&&(t.watch(a.locale,(e=>{f&&(m.value=e,M&&!s&&(M.locale=e),w.locale=e,Ue(w,m.value,b.value))})),t.watch(a.fallbackLocale,(e=>{f&&(b.value=e,M&&!s&&(M.fallbackLocale=e),w.fallbackLocale=e,Ue(w,m.value,b.value))})));const B={id:Nt,locale:W,fallbackLocale:x,get inheritLocale(){return f},set inheritLocale(e){f=e,M&&(M._sync=e),e&&a&&(m.value=a.locale.value,b.value=a.fallbackLocale.value,M&&(M.locale=a.locale.value,M.fallbackLocale=a.fallbackLocale.value),Ue(w,m.value,b.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:$,get modifiers(){return F},get pluralRules(){return U||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(e){y=e,w.missingWarn=y},get fallbackWarn(){return T},set fallbackWarn(e){T=e,w.fallbackWarn=T},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return O},set fallbackFormat(e){O=e,w.fallbackFormat=O},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,w.warnHtmlMessage=e},get escapeParameter(){return D},set escapeParameter(e){D=e,w.escapeParameter=e},t:G,getLocaleMessage:Y,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)_(n,e)&&vt(n[e]);t=n[e]}h.value[e]=t,M&&M.setLocaleMessage(e,t),w.messages=h.value},mergeLocaleMessage:function(e,t){h.value[e]=h.value[e]||{},M&&M.mergeLocaleMessage(e,t);const n={[e]:t};for(const r in n)_(n,r)&&vt(n[r]);C(t=n[e],h.value[e]),w.messages=h.value},getPostTranslationHandler:function(){return d(S)?S:null},setPostTranslationHandler:function(e){S=e,w.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=yt(e)),A=e,w.missing=P},[ft]:function(e){U=e,w.pluralRules=U}};return B.datetimeFormats=V,B.numberFormats=H,B.rt=function(...e){const[t,n,r]=e;if(r&&!E(r))throw Error(st.INVALID_ARGUMENT);return G(t,n,u({resolvedMessage:!0},r||{}))},B.te=function(e,t){return j((()=>{if(!e)return!1;const n=Y(g(t)?t:m.value),r=w.messageResolver(n,e);return je(r)||Xe(r)||g(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Lt,(e=>v(e)))},B.tm=function(e){const t=function(e){let t=null;const n=be(w,b.value,m.value);for(let r=0;r<n.length;r++){const a=h.value[n[r]]||{},o=w.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},B.d=function(...e){return j((t=>Reflect.apply(Je,null,[t,...e])),(()=>qe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Ie),(e=>g(e)))},B.n=function(...e){return j((t=>Reflect.apply(et,null,[t,...e])),(()=>nt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Ie),(e=>g(e)))},B.getDateTimeFormat=function(e){return k.value[e]||{}},B.setDateTimeFormat=function(e,t){k.value[e]=t,M&&M.setDateTimeFormat(e,t),w.datetimeFormats=k.value,Ze(w,e,t)},B.mergeDateTimeFormat=function(e,t){k.value[e]=u(k.value[e]||{},t),M&&M.mergeDateTimeFormat(e,t),w.datetimeFormats=k.value,Ze(w,e,t)},B.getNumberFormat=function(e){return N.value[e]||{}},B.setNumberFormat=function(e,t){N.value[e]=t,M&&M.setNumberFormat(e,t),w.numberFormats=N.value,rt(w,e,t)},B.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),M&&M.mergeNumberFormat(e,t),w.numberFormats=N.value,rt(w,e,t)},B[_t]=o,B[ct]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(Ye,null,[r,...e])}finally{r.processor=null}return n}),(()=>ze(...e)),"translate",(t=>t[ct](...e)),(e=>[ht(e)]),(e=>p(e)))},B[it]=function(...e){return j((t=>Reflect.apply(Je,null,[t,...e])),(()=>qe(...e)),"datetime format",(t=>t[it](...e)),kt,(e=>g(e)||p(e)))},B[ut]=function(...e){return j((t=>Reflect.apply(et,null,[t,...e])),(()=>nt(...e)),"number format",(t=>t[ut](...e)),kt,(e=>g(e)||p(e)))},B[mt]=M,B}const It={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ct=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},It),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||wt({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=g(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),i=o[ct](e.keypath,c,s),f=u({},a),m=g(e.tag)||E(e.tag)?e.tag:"span";return t.h(m,f,i)}}}),Ot=Ct;function At(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:E(e.format)&&(g(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return p(a=r)&&!g(a[0])&&(r[0].key=`${e.type}-${t}`),r})):g(c)&&(i=[c]);const f=u({},l),m=g(e.tag)||E(e.tag)?e.tag:"span";return t.h(m,f,i)}}const Pt=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},It),setup(e,t){const n=e.i18n||wt({useScope:"parent",__useComponent:!0});return At(e,t,tt,((...e)=>n[ut](...e)))}}),St=Pt,Rt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},It),setup(e,t){const n=e.i18n||wt({useScope:"parent",__useComponent:!0});return At(e,t,Qe,((...e)=>n[it](...e)))}}),Dt=Rt;let Ft=null;const Mt=r("global-vue-i18n");function wt(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(st.MUST_BE_CALL_SETUP_TOP);if(null==Ft)throw Error(st.NOT_INSTALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(st.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(st.NOT_INSTALLED);return n}}(r),o=function(e){return e.global}(a),l=bt(r),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(st.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(st.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=v(a.inheritLocale)?a.inheritLocale:!g(a.locale),i=t.ref(!o||s?r.locale.value:g(a.locale)?a.locale:Te),u=t.ref(!o||s?r.fallbackLocale.value:g(a.fallbackLocale)||p(a.fallbackLocale)||L(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(Et(i.value,a)),m=t.ref(L(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),_=t.ref(L(a.numberFormats)?a.numberFormats:{[i.value]:{}}),E=o?r.missingWarn:!v(a.missingWarn)&&!c(a.missingWarn)||a.missingWarn,b=o?r.fallbackWarn:!v(a.fallbackWarn)&&!c(a.fallbackWarn)||a.fallbackWarn,h=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,k=!!a.fallbackFormat,N=d(a.missing)?a.missing:null,y=d(a.postTranslation)?a.postTranslation:null,T=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,C=o?r.modifiers:L(a.modifiers)?a.modifiers:{},O=a.pluralRules||o&&r.pluralRules;function A(){return[i.value,u.value,f.value,m.value,_.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),S=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),R=t.computed((()=>l.value?l.value.messages.value:f.value)),D=t.computed((()=>m.value)),F=t.computed((()=>_.value));function M(){return l.value?l.value.getPostTranslationHandler():y}function w(e){l.value&&l.value.setPostTranslationHandler(e)}function U(){return l.value?l.value.getMissingHandler():N}function W(e){l.value&&l.value.setMissingHandler(e)}function x(e){return A(),e()}function $(...e){return l.value?x((()=>Reflect.apply(l.value.t,null,[...e]))):x((()=>""))}function V(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function H(...e){return l.value?x((()=>Reflect.apply(l.value.d,null,[...e]))):x((()=>""))}function j(...e){return l.value?x((()=>Reflect.apply(l.value.n,null,[...e]))):x((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function X(e,t){return!!l.value&&l.value.te(e,t)}function Y(e){return l.value?l.value.getLocaleMessage(e):{}}function B(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function K(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function z(e){return l.value?l.value.getDateTimeFormat(e):{}}function J(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function Q(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function q(e){return l.value?l.value.getNumberFormat(e):{}}function Z(e,t){l.value&&(l.value.setNumberFormat(e,t),_.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:S,messages:R,datetimeFormats:D,numberFormats:F,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(f.value)},get modifiers(){return l.value?l.value.modifiers:C},get pluralRules(){return l.value?l.value.pluralRules:O},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:E},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:b},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:h},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:k},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:T},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:$,getPostTranslationHandler:M,setPostTranslationHandler:w,getMissingHandler:U,setMissingHandler:W,rt:V,d:H,n:j,tm:G,te:X,getLocaleMessage:Y,setLocaleMessage:B,mergeLocaleMessage:K,getDateTimeFormat:z,setDateTimeFormat:J,mergeDateTimeFormat:Q,getNumberFormat:q,setNumberFormat:Z,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.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=I,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=E,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(st.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,_.value=t.numberFormats.value):o&&ne(t)})),te}(r,s,o,e)}if("global"===s)return function(e,t,n){let r=E(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Et(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(o,e,l),o;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return e.parent}(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[_t]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=Tt(a,Ft),f.__composerExtend&&(m[pt]=f.__composerExtend(m)),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(st.UNEXPECTED_ERROR);const l=a[mt];if(l===e)throw Error(st.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,m),f.__setInstance(r,m)}return m}return Oe=function(e,t){if(g(e)){!v(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Ve)(e),r=He[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||P;return t.onError=e=>{n=!0,r(e)},{...q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),l=We(a);return o?l:He[n]=l}{const t=e.cacheKey;return t?He[t]||(He[t]=We(e)):We(e)}},Ae=function(e,t){if(!E(e))return null;let n=re.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,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--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=ne(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=te(n),c=Z[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&re.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;if(d(a))return null;a=e,o++}return a},Pe=be,e.DatetimeFormat=Rt,e.I18nD=Dt,e.I18nInjectionKey=Mt,e.I18nN=St,e.I18nT=Ot,e.NumberFormat=Pt,e.Translation=Ct,e.VERSION=at,e.castToVueI18n=e=>{if(!(dt in e))throw Error(st.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){Ft=n;const r=!v(e.legacy)||e.legacy,a=!v(e.globalInjection)||e.globalInjection,o=!r||!!e.allowComposition,l=new Map,[s,c]=function(e,n,r){const a=t.effectScope();{if(!gt(r))throw Error(st.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>Tt(e,r)));if(null==t)throw Error(st.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);{const e=c[mt];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(n,...o)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(st.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=L(t[0])?t[0]:{};(!v(n.globalInstall)||n.globalInstall)&&(e.component(Ct.name,Ct),e.component(Pt.name,Pt),e.component(Rt.name,Rt))}(n,...o),!r&&a&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(n,e,c)),n.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>C(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(r){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(L(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>C(JSON.parse(t),e))),n.i18n.messages=e}catch(r){}const{sharedMessages:a}=n.i18n;a&&L(a)&&C(a,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||L(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Ft))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const n={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=wt,e}({},VueDemi);
/*!
* vue-i18n-bridge v9.7.1
* vue-i18n-bridge v9.8.0
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref,computed,watch,getCurrentInstance,defineComponent,h,effectScope,onBeforeMount,onUnmounted,shallowRef}from"vue-demi";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,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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),"")}function incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("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]))}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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},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,o,s,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],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=g[o[1]],s&&(r=a,!1===s())))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;if(isFunction(r))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?"":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,l=e.list||[],o=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,o);function s(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=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,l=n.type||l):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(l=r||l));const i=s(t)(u),c="vnode"===l&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:s,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},l,o)};return u}function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString(e)?e:null!=_resolveLocale&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}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 o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,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.7.1",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}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,l=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:{[r]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,f=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,_=!!e.fallbackFormat,p=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter,O=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,N=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,y=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,I=isObject(e.fallbackContext)?e.fallbackContext:void 0,T=e,h=isObject(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,S=isObject(T.__numberFormatters)?T.__numberFormatters:new Map,L=isObject(T.__meta)?T.__meta:{};_cid++;const F={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:f,fallbackFormat:_,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:v,messageCompiler:O,messageResolver:N,localeFallbacker:y,fallbackContext:I,onWarn:t,__meta:L};return F.datetimeFormats=s,F.numberFormats=i,F.__datetimeFormatters=h,F.__numberFormatters=S,F}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:o}=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)}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),__EXTEND_POINT__:inc$1()},isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=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,_=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?l?i:()=>i:c.default:a?l?i:()=>i:"",p=a||""!==_,b=getLocale(e,c);g&&escapeParams(c);let[d,E,v]=f?[i,b,s[b]||{}]:resolveMessageFormat(e,i,b,o,m,u),O=d,N=i;if(f||isString(O)||isMessageAST(O)||isMessageFunction(O)||p&&(O=_,N=O),!(f||(isString(O)||isMessageAST(O)||isMessageFunction(O))&&isString(E)))return r?NOT_REOSLVED:i;let y=!1;const I=isMessageFunction(O)?O:compileMessageFormat(e,i,E,O,N,(()=>{y=!0}));if(y)return O;const T=evaluateMessage(e,I,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:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},f=null;for(let _=0;_<u.length&&(m=u[_],g=o[m]||{},null===(f=i(g,t))&&(f=g[t]),!(isString(f)||isMessageAST(f)||isMessageFunction(f)));_++){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:o,warnHtmlMessage:s}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,s,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)||isMessageAST(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 getCompileContext(e,t,a,n,r,l){return{locale:t,key:a,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:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=o(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,s,i,c);r=o(e,n)}if(isString(r)||isMessageAST(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:o}=e,{__datetimeFormatters:s}=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,_=getLocale(e,u),p=o(e,r,_);if(!isString(i)||""===i)return new Intl.DateTimeFormat(_,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)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=s.get(v);return O||(O=new Intl.DateTimeFormat(b,assign({},E,m)),s.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 o,s={};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();o=new Date(a);try{o.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_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 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:o}=e,{__numberFormatters:s}=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,_=getLocale(e,u),p=o(e,r,_);if(!isString(i)||""===i)return new Intl.NumberFormat(_,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)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=s.get(v);return O||(O=new Intl.NumberFormat(b,assign({},E,m)),s.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 o={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_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 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.7.1",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(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()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}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,l=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){l=!0;break}r=r[a[e]]}l||(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,o=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?(o[t]=o[t]||{},deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&l)for(const s in o)hasOwn(o,s)&&handleFlatJson(o[s]);return o}function getComponentOptions(e){return e.proxy.$options}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 createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:a,__injectWithOption:n}=e,r=void 0===a,l=e.flatJson;let o=!isBoolean(e.inheritLocale)||e.inheritLocale;const s=ref(a&&o?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=ref(a&&o?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,e)),u=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let g=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,f=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,_=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,p=!!e.fallbackFormat,b=isFunction(e.missing)?e.missing:null,d=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,E=isFunction(e.postTranslation)?e.postTranslation:null,v=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const N=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let y,I,T=e.pluralRules||a&&a.pluralRules;{isLegacyVueI18n(t);const e={locale:s.value,fallbackLocale:i.value,messages:c.value,dateTimeFormats:u.value,numberFormats:m.value,modifiers:N,missing:b,fallbackRoot:_,postTranslation:E,pluralizationRules:T,escapeParameterHtml:O,sync:o,silentFallbackWarn:isBoolean(f)?!f:f,silentTranslationWarn:isBoolean(g)?!g:g,formatFallbackMessages:isBoolean(p)?!p:p,warnHtmlInMessage:isBoolean(v)&&v?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};y=new t(e)}I=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:s.value,fallbackLocale:i.value,messages:c.value,modifiers:N,pluralRules:T,missing:null===d?void 0:d,missingWarn:g,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:null===E?void 0:E,warnHtmlMessage:v,escapeParameter:O,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(I)?I.__numberFormatters:void 0;const a=createCoreContext(t);return r&&setFallbackContext(a),a})(),updateFallbackLocale(I,s.value,i.value);const h=computed({get:()=>s.value,set:e=>{s.value=e,y&&!r&&(y.locale=e),I.locale=s.value}}),S=computed({get:()=>i.value,set:e=>{i.value=e,y&&!r&&(y.fallbackLocale=e),I.fallbackLocale=i.value,updateFallbackLocale(I,s.value,e)}}),L=computed((()=>c.value)),F=computed((()=>u.value)),C=computed((()=>m.value));const A=(e,t,n,l,o,g)=>{let f;s.value,i.value,c.value,u.value,m.value;try{0,r||(I.fallbackContext=a?getFallbackContext():void 0),f=e(I)}finally{r||(I.fallbackContext=void 0)}if("translate exists"!==n&&isNumber(f)&&f===NOT_REOSLVED||"translate exists"===n&&!f){const[e,n]=t();return a&&_?l(a):o(e)}if(g(f))return f;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function k(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const M={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{o&&(s.value=e,y&&!r&&(y.locale=e),I.locale=e,updateFallbackLocale(I,s.value,i.value))})),watch(a.fallbackLocale,(e=>{o&&(i.value=e,y&&!r&&(y.fallbackLocale=e),I.fallbackLocale=e,updateFallbackLocale(I,s.value,i.value))})));const D={id:composerID,locale:h,fallbackLocale:S,get inheritLocale(){return o},set inheritLocale(e){o=e,y&&(y._sync=e),e&&a&&(s.value=a.locale.value,i.value=a.fallbackLocale.value,y&&(y.locale=a.locale.value,y.fallbackLocale=a.fallbackLocale.value),updateFallbackLocale(I,s.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(e){g=e,I.missingWarn=g},get fallbackWarn(){return f},set fallbackWarn(e){f=e,I.fallbackWarn=f},get fallbackRoot(){return _},set fallbackRoot(e){_=e},get fallbackFormat(){return p},set fallbackFormat(e){p=e,I.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(e){v=e,I.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,I.escapeParameter=e},t:k,getLocaleMessage:R,setLocaleMessage:function(e,t){if(l){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}c.value[e]=t,y&&y.setLocaleMessage(e,t),I.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{},y&&y.mergeLocaleMessage(e,t);const a={[e]:t};for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],c.value[e]),I.messages=c.value},getPostTranslationHandler:function(){return isFunction(E)?E:null},setPostTranslationHandler:function(e){E=e,I.postTranslation=e},getMissingHandler:function(){return b},setMissingHandler:function(e){null!==e&&(d=defineCoreMissingHandler(e)),b=e,I.missing=d},[SetPluralRulesSymbol]:function(e){T=e,I.pluralRules=T}};return D.datetimeFormats=F,D.numberFormats=C,D.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return k(t,a,assign({resolvedMessage:!0},n||{}))},D.te=function(e,t){return A((()=>{if(!e)return!1;const a=R(isString(t)?t:s.value),n=I.messageResolver(a,e);return isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},D.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(I,i.value,s.value);for(let n=0;n<a.length;n++){const r=c.value[a[n]]||{},l=I.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},D.d=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},D.n=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},D.getDateTimeFormat=function(e){return u.value[e]||{}},D.setDateTimeFormat=function(e,t){u.value[e]=t,y&&y.setDateTimeFormat(e,t),I.datetimeFormats=u.value,clearDateTimeFormat(I,e,t)},D.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),y&&y.mergeDateTimeFormat(e,t),I.datetimeFormats=u.value,clearDateTimeFormat(I,e,t)},D.getNumberFormat=function(e){return m.value[e]||{}},D.setNumberFormat=function(e,t){m.value[e]=t,y&&y.setNumberFormat(e,t),I.numberFormats=m.value,clearNumberFormat(I,e,t)},D.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),y&&y.mergeNumberFormat(e,t),I.numberFormats=m.value,clearNumberFormat(I,e,t)},D[InejctWithOptionSymbol]=n,D[TranslateVNodeSymbol]=function(...e){return A((t=>{let a;const n=t;try{n.processor=M,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)))},D[DatetimePartsSymbol]=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},D[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},D[LegacyInstanceSymbol]=y,D}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.children?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return e}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)),o={};e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,s,o),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");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 o={};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),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const s=n(e.value,t,o);let i=[t.key];isArray(s)?i=s.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:s}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(s)&&(i=[s]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");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 apply(e,...t){const a=isPlainObject(t[0])?t[0]:{};(!isBoolean(a.globalInstall)||a.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:r}=a.i18n;r&&isPlainObject(r)&&deepCopy(r,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||isPlainObject(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=t;const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[o,s]=createGlobal(e,a,t);{const e=s[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>a?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(r,...l)=>{if(2!==(r&&r.version&&Number(r.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(r,...l),!a&&n&&(t=injectGlobalFieldsForBridge(r,e,s)),r.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),o.stop()}});const i={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(i).forEach((t=>Object.defineProperty(e,t,{value:i[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)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 o=a;let s=o.__getInstance(t);if(null==s){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),s=createComposer(a,_legacyVueI18n),o.__composerExtend&&(s[DisposeSymbol]=o.__composerExtend(s)),setupLifeCycle(o,t,s),o.__setInstance(t,s)}return s}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();{if(!isLegacyVueI18n(a))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=n.run((()=>createComposer(e,a)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(I18nErrorCodes.NOT_INSTALLED);return a}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}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[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===l)break;l=l.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,a){{const n=t.proxy;if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=a[LegacyInstanceSymbol];if(r===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);n._i18n=r,n._i18n_bridge=!0,inBrowser&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let l=!1;onBeforeMount((()=>{n._i18n.subscribeDataChanging(n),l=!0})),onUnmounted((()=>{l&&(n._i18n.unsubscribeDataChanging(n),l=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}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 o=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),s=ref(!r||o?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||o?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[s.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,_=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,p=!!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:{},N=n.pluralRules||r&&a.pluralRules;function y(e){return s.value,i.value,c.value,u.value,m.value,e()}const I={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:s.value,set:e=>{l.value&&(l.value.locale.value=e),s.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:o},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:N},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:_},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:p},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?y((()=>Reflect.apply(l.value.t,null,[...e]))):y((()=>""))},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?y((()=>Reflect.apply(l.value.d,null,[...e]))):y((()=>""))},n:function(...e){return l.value?y((()=>Reflect.apply(l.value.n,null,[...e]))):y((()=>""))},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?(s.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=s.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=p,e.fallbackRoot=_,e.fallbackWarn=f,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),I}function injectGlobalFieldsForBridge(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
import{ref,computed,watch,getCurrentInstance,defineComponent,h,effectScope,onBeforeMount,onUnmounted,shallowRef}from"vue-demi";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,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),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),"")}function incrementer(e){let t=e;return()=>++t}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("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]))}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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},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,o,s,i,c=-1,u=0,m=0;const g=[];function _(){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||!_()){if(l=getPathCharType(a),i=pathStateMachine[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=g[o[1]],s&&(r=a,!1===s())))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;if(isFunction(r))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?"":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,l=e.list||[],o=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,o);function s(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=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let l="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,l=n.type||l):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(l=r||l));const i=s(t)(u),c="vnode"===l&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,l):c;var m},message:s,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},l,o)};return u}const code$1=CompileErrorCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$1(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$1(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$1(),NOT_SUPPORT_LOCALE_TYPE:inc$1(),__EXTEND_POINT__:inc$1()};function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}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 o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,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.8.0",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}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,l=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:{[r]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,_=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,v=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,N=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,T=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,S=isObject(e.fallbackContext)?e.fallbackContext:void 0,I=e,h=isObject(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,y=isObject(I.__numberFormatters)?I.__numberFormatters:new Map,L=isObject(I.__meta)?I.__meta:{};_cid++;const F={version:a,cid:_cid,locale:n,fallbackLocale:l,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:_,fallbackFormat:f,unresolving:p,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:O,messageCompiler:v,messageResolver:N,localeFallbacker:T,fallbackContext:S,onWarn:t,__meta:L};return F.datetimeFormats=s,F.numberFormats=i,F.__datetimeFormatters=h,F.__numberFormatters=y,F}function handleMissing(e,t,a,n,r){const{missing:l,onWarn:o}=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)}const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=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,_=!!c.resolvedMessage,f=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?l?i:()=>i:c.default:a?l?i:()=>i:"",p=a||""!==f,b=getLocale(e,c);g&&escapeParams(c);let[d,E,O]=_?[i,b,s[b]||{}]:resolveMessageFormat(e,i,b,o,m,u),v=d,N=i;if(_||isString(v)||isMessageAST(v)||isMessageFunction(v)||p&&(v=f,N=v),!(_||(isString(v)||isMessageAST(v)||isMessageFunction(v))&&isString(E)))return r?NOT_REOSLVED:i;let T=!1;const S=isMessageFunction(v)?v:compileMessageFormat(e,i,E,v,N,(()=>{T=!0}));if(T)return v;const I=evaluateMessage(e,S,createMessageContext(getMessageContextOptions(e,E,O,c)));return n?n(I,i):I}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:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},_=null;for(let f=0;f<u.length&&(m=u[f],g=o[m]||{},null===(_=i(g,t))&&(_=g[t]),!(isString(_)||isMessageAST(_)||isMessageFunction(_)));f++){const a=handleMissing(e,t,m,l,"translate");a!==t&&(_=a)}return[_,m,g]}function compileMessageFormat(e,t,a,n,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,s,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)||isMessageAST(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 getCompileContext(e,t,a,n,r,l){return{locale:t,key:a,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:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:l,messages:n=>{let r=o(a,n);if(null==r&&u){const[,,e]=resolveMessageFormat(u,n,t,s,i,c);r=o(e,n)}if(isString(r)||isMessageAST(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:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.DateTimeFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.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 o,s={};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();o=new Date(a);try{o.toISOString()}catch(i){throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_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 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:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,f=getLocale(e,u),p=o(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let N=0;N<p.length&&(b=p[N],d=a[b]||{},E=d[i],!isPlainObject(E));N++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let v=s.get(O);return v||(v=new Intl.NumberFormat(b,assign({},E,m)),s.set(O,v)),_?v.formatToParts(c):v.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 o={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString(a)?l.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_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 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.8.0",code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(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()},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),LegacyInstanceSymbol=makeSymbol("__legacyVueI18n"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function isLegacyVueI18n(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}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,l=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){l=!0;break}r=r[a[e]]}l||(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,o=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?(o[t]=o[t]||{},deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&l)for(const s in o)hasOwn(o,s)&&handleFlatJson(o[s]);return o}function getComponentOptions(e){return e.proxy.$options}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 createVNodeVue2Compatible(e)}function createVNodeVue2Compatible(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:a,__injectWithOption:n}=e,r=void 0===a,l=e.flatJson;let o=!isBoolean(e.inheritLocale)||e.inheritLocale;const s=ref(a&&o?a.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=ref(a&&o?a.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,e)),u=ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let g=a?a.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,_=a?a.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=a?a.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,p=!!e.fallbackFormat,b=isFunction(e.missing)?e.missing:null,d=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,E=isFunction(e.postTranslation)?e.postTranslation:null,O=a?a.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter;const N=a?a.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let T,S,I=e.pluralRules||a&&a.pluralRules;{isLegacyVueI18n(t);const e={locale:s.value,fallbackLocale:i.value,messages:c.value,dateTimeFormats:u.value,numberFormats:m.value,modifiers:N,missing:b,fallbackRoot:f,postTranslation:E,pluralizationRules:I,escapeParameterHtml:v,sync:o,silentFallbackWarn:isBoolean(_)?!_:_,silentTranslationWarn:isBoolean(g)?!g:g,formatFallbackMessages:isBoolean(p)?!p:p,warnHtmlInMessage:isBoolean(O)&&O?"warn":"off",__VUE_I18N_BRIDGE__:__VUE_I18N_BRIDGE__};T=new t(e)}S=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:s.value,fallbackLocale:i.value,messages:c.value,modifiers:N,pluralRules:I,missing:null===d?void 0:d,missingWarn:g,fallbackWarn:_,fallbackFormat:p,unresolving:!0,postTranslation:null===E?void 0:E,warnHtmlMessage:O,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(S)?S.__numberFormatters:void 0;const a=createCoreContext(t);return r&&setFallbackContext(a),a})(),updateFallbackLocale(S,s.value,i.value);const h=computed({get:()=>s.value,set:e=>{s.value=e,T&&!r&&(T.locale=e),S.locale=s.value}}),y=computed({get:()=>i.value,set:e=>{i.value=e,T&&!r&&(T.fallbackLocale=e),S.fallbackLocale=i.value,updateFallbackLocale(S,s.value,e)}}),L=computed((()=>c.value)),F=computed((()=>u.value)),C=computed((()=>m.value));const A=(e,t,n,l,o,g)=>{let _;s.value,i.value,c.value,u.value,m.value;try{0,r||(S.fallbackContext=a?getFallbackContext():void 0),_=e(S)}finally{r||(S.fallbackContext=void 0)}if("translate exists"!==n&&isNumber(_)&&_===NOT_REOSLVED||"translate exists"===n&&!_){const[e,n]=t();return a&&f?l(a):o(e)}if(g(_))return _;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function k(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const P={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,a&&inBrowser&&(watch(a.locale,(e=>{o&&(s.value=e,T&&!r&&(T.locale=e),S.locale=e,updateFallbackLocale(S,s.value,i.value))})),watch(a.fallbackLocale,(e=>{o&&(i.value=e,T&&!r&&(T.fallbackLocale=e),S.fallbackLocale=e,updateFallbackLocale(S,s.value,i.value))})));const M={id:composerID,locale:h,fallbackLocale:y,get inheritLocale(){return o},set inheritLocale(e){o=e,T&&(T._sync=e),e&&a&&(s.value=a.locale.value,i.value=a.fallbackLocale.value,T&&(T.locale=a.locale.value,T.fallbackLocale=a.fallbackLocale.value),updateFallbackLocale(S,s.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return N},get pluralRules(){return I||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return _},set fallbackWarn(e){_=e,S.fallbackWarn=_},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return p},set fallbackFormat(e){p=e,S.fallbackFormat=p},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,S.warnHtmlMessage=e},get escapeParameter(){return v},set escapeParameter(e){v=e,S.escapeParameter=e},t:k,getLocaleMessage:R,setLocaleMessage:function(e,t){if(l){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}c.value[e]=t,T&&T.setLocaleMessage(e,t),S.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{},T&&T.mergeLocaleMessage(e,t);const a={[e]:t};for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],c.value[e]),S.messages=c.value},getPostTranslationHandler:function(){return isFunction(E)?E:null},setPostTranslationHandler:function(e){E=e,S.postTranslation=e},getMissingHandler:function(){return b},setMissingHandler:function(e){null!==e&&(d=defineCoreMissingHandler(e)),b=e,S.missing=d},[SetPluralRulesSymbol]:function(e){I=e,S.pluralRules=I}};return M.datetimeFormats=F,M.numberFormats=C,M.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return k(t,a,assign({resolvedMessage:!0},n||{}))},M.te=function(e,t){return A((()=>{if(!e)return!1;const a=R(isString(t)?t:s.value),n=S.messageResolver(a,e);return isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},M.tm=function(e){const t=function(e){let t=null;const a=fallbackWithLocaleChain(S,i.value,s.value);for(let n=0;n<a.length;n++){const r=c.value[a[n]]||{},l=S.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 A((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 A((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 u.value[e]||{}},M.setDateTimeFormat=function(e,t){u.value[e]=t,T&&T.setDateTimeFormat(e,t),S.datetimeFormats=u.value,clearDateTimeFormat(S,e,t)},M.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),T&&T.mergeDateTimeFormat(e,t),S.datetimeFormats=u.value,clearDateTimeFormat(S,e,t)},M.getNumberFormat=function(e){return m.value[e]||{}},M.setNumberFormat=function(e,t){m.value[e]=t,T&&T.setNumberFormat(e,t),S.numberFormats=m.value,clearNumberFormat(S,e,t)},M.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),T&&T.mergeNumberFormat(e,t),S.numberFormats=m.value,clearNumberFormat(S,e,t)},M[InejctWithOptionSymbol]=n,M[TranslateVNodeSymbol]=function(...e){return A((t=>{let a;const n=t;try{n.processor=P,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 A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[LegacyInstanceSymbol]=T,M}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.children?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(e){return e}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)),o={};e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,l),i=r[TranslateVNodeSymbol](e.keypath,s,o),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");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 o={};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),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const s=n(e.value,t,o);let i=[t.key];isArray(s)?i=s.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:s}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(s)&&(i=[s]);const c=assign({},l),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag("span");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 apply(e,...t){const a=isPlainObject(t[0])?t[0]:{};(!isBoolean(a.globalInstall)||a.globalInstall)&&(e.component(Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat))}function defineMixin(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>deepCopy(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:r}=a.i18n;r&&isPlainObject(r)&&deepCopy(r,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||isPlainObject(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}let _legacyVueI18n=null;const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){_legacyVueI18n=t;const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=!a||!!e.allowComposition,l=new Map,[o,s]=createGlobal(e,a,t);{const e=s[LegacyInstanceSymbol];let t=null;Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>a?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(r,...l)=>{if(2!==(r&&r.version&&Number(r.version.split(".")[0])||-1))throw Error(I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY);apply(r,...l),!a&&n&&(t=injectGlobalFieldsForBridge(r,e,s)),r.mixin(defineMixin(e,_legacyVueI18n))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),o.stop()}});const i={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(i).forEach((t=>Object.defineProperty(e,t,{value:i[t]}))),e}}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(null==_legacyVueI18n)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 o=a;let s=o.__getInstance(t);if(null==s){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),s=createComposer(a,_legacyVueI18n),o.__composerExtend&&(s[DisposeSymbol]=o.__composerExtend(s)),setupLifeCycle(o,t,s),o.__setInstance(t,s)}return s}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();{if(!isLegacyVueI18n(a))throw Error(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=n.run((()=>createComposer(e,a)));if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,t]}}function getI18nInstance(e){{const t=e.proxy;if(null==t)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(I18nErrorCodes.NOT_INSTALLED);return a}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.global}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[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===l)break;l=l.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:e.parent}function setupLifeCycle(e,t,a){{const n=t.proxy;if(null==n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=a[LegacyInstanceSymbol];if(r===e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);n._i18n=r,n._i18n_bridge=!0,inBrowser&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let l=!1;onBeforeMount((()=>{n._i18n.subscribeDataChanging(n),l=!0})),onUnmounted((()=>{l&&(n._i18n.unsubscribeDataChanging(n),l=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}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 o=isBoolean(n.inheritLocale)?n.inheritLocale:!isString(n.locale),s=ref(!r||o?a.locale.value:isString(n.locale)?n.locale:DEFAULT_LOCALE),i=ref(!r||o?a.fallbackLocale.value:isString(n.fallbackLocale)||isArray(n.fallbackLocale)||isPlainObject(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:s.value),c=ref(getLocaleMessages(s.value,n)),u=ref(isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),m=ref(isPlainObject(n.numberFormats)?n.numberFormats:{[s.value]:{}}),g=r?a.missingWarn:!isBoolean(n.missingWarn)&&!isRegExp(n.missingWarn)||n.missingWarn,_=r?a.fallbackWarn:!isBoolean(n.fallbackWarn)&&!isRegExp(n.fallbackWarn)||n.fallbackWarn,f=r?a.fallbackRoot:!isBoolean(n.fallbackRoot)||n.fallbackRoot,p=!!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,O=!!n.escapeParameter,v=r?a.modifiers:isPlainObject(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&a.pluralRules;function T(e){return s.value,i.value,c.value,u.value,m.value,e()}const S={get id(){return l.value?l.value.id:-1},locale:computed({get:()=>l.value?l.value.locale.value:s.value,set:e=>{l.value&&(l.value.locale.value=e),s.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:o},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:v},get pluralRules(){return l.value?l.value.pluralRules:N},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:_},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:f},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:p},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:O},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:function(...e){return l.value?T((()=>Reflect.apply(l.value.t,null,[...e]))):T((()=>""))},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?T((()=>Reflect.apply(l.value.d,null,[...e]))):T((()=>""))},n:function(...e){return l.value?T((()=>Reflect.apply(l.value.n,null,[...e]))):T((()=>""))},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?(s.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=s.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=O,e.fallbackFormat=p,e.fallbackRoot=f,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=E}(a)})),S}function injectGlobalFieldsForBridge(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,castToVueI18n,createI18n,useI18n};
/*!
* vue-i18n-bridge v9.7.1
* vue-i18n-bridge v9.8.0
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=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]"===k(e),i=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function E(e){let t=e;return()=>++t}function N(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const L=e=>!b(e)||g(e);function I(e,t){if(L(e)||L(t))throw new Error("Invalid value");for(const a in e)_(e,a)&&(L(e[a])||L(t[a])?t[a]=e[a]:I(e[a],t[a]))}const T=[];T[0]={w:[0],i:[3,0],"[":[4],o:[7]},T[1]={w:[1],".":[2],"[":[4],o:[7]},T[2]={w:[2],i:[3,0],0:[3,0]},T[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},T[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},T[5]={"'":[4,0],o:8,l:[5,0]},T[6]={'"':[4,0],o:8,l:[6,0]};const F=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function R(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 O(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,F.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 w(e,t){return b(e)?e[t]:null}const M=e=>e,C=e=>"",D="text",P=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),A=e=>null==e?"":g(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function S(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=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:S,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?S: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 i(t){const a=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):C)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:P,m=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:A,f={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?b(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));const s=i(t)(f),c="vnode"===r&&g(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:M)(c,r):c;var u},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:D,interpolate:m,normalize:c,values:u({},r,s)};return f}function U(e,t){return null!=t.locale?V(t.locale):V(e.locale)}let j;function V(e){return v(e)?e:null!=j&&e.resolvedOnce?j:j=e()}function x(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function H(e,t,a){const n=v(a)?a:z,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=G(r,e,t);const o=g(t)||!y(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&G(r,e,!1),l.__localeChainCache.set(n,r)}return r}function G(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=B(e,t[l],a))}return n}function B(e,t,a){let n;const l=t.split("-");do{n=Y(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function Y(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),(g(a)||y(a))&&a[l]&&(n=a[l])}return n}const X="9.7.1",J=-1,z="en-US",q="",Z=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let K,Q,ee;let te=null;const ae=e=>{te=e},ne=()=>te;let le=0;function re(e={}){const t=p(e.onWarn)?e.onWarn:N,a=v(e.version)?e.version:X,n=v(e.locale)||p(e.locale)?e.locale:z,l=p(n)?z:n,r=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=y(e.messages)?e.messages:{[l]:{}},s=y(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},c=y(e.numberFormats)?e.numberFormats:{[l]:{}},m=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?Z(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?Z(e.children):e}),f=e.pluralRules||{},_=p(e.missing)?e.missing:null,h=!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,k=!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,E=!!e.fallbackFormat,L=!!e.unresolving,I=p(e.postTranslation)?e.postTranslation:null,T=y(e.processor)?e.processor:null,F=!d(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,O=p(e.messageCompiler)?e.messageCompiler:K,W=p(e.messageResolver)?e.messageResolver:Q||w,M=p(e.localeFallbacker)?e.localeFallbacker:ee||x,C=b(e.fallbackContext)?e.fallbackContext:void 0,D=e,P=b(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,A=b(D.__numberFormatters)?D.__numberFormatters:new Map,S=b(D.__meta)?D.__meta:{};le++;const $={version:a,cid:le,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:h,fallbackWarn:k,fallbackFormat:E,unresolving:L,postTranslation:I,processor:T,warnHtmlMessage:F,escapeParameter:R,messageCompiler:O,messageResolver:W,localeFallbacker:M,fallbackContext:C,onWarn:t,__meta:S};return $.datetimeFormats=s,$.numberFormats=c,$.__datetimeFormatters=P,$.__numberFormatters=A,$}function oe(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return v(n)?n:t}return t}function se(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}const ie=E(17),ce={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:ie(),INVALID_ISO_DATE_ARGUMENT:ie(),NOT_SUPPORT_NON_STRING_MESSAGE:ie(),__EXTEND_POINT__:ie()},ue=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),me=()=>"",fe=e=>p(e);function _e(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=ve(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",y=a||""!==k,E=U(e,u);p&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[N,L,I]=h?[c,E,i[E]||{}]:ge(e,c,E,s,_,f),T=N,F=c;if(h||v(T)||ue(T)||fe(T)||y&&(T=k,F=T),!(h||(v(T)||ue(T)||fe(T))&&v(L)))return l?J:c;let R=!1;const O=fe(T)?T:pe(e,c,L,T,F,(()=>{R=!0}));if(R)return T;const W=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ge(m,n,t,i,c,u);l=s(e,n)}if(v(l)||ue(l)){let a=!1;const r=pe(e,n,t,l,n,(()=>{a=!0}));return a?me:r}return fe(l)?l:me},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,L,I,u),w=function(e,t,a){const n=t(a);return n}(0,O,$(W));return n?n(w,c):w}function ge(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,f={},_=null;for(let g=0;g<u.length&&(m=u[g],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!(v(_)||ue(_)||fe(_)));g++){const a=oe(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function pe(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(fe(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 c=s(n,function(e,t,a,n,r,o){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function ve(...e){const[t,a,n]=e,l={};if(!(v(t)||o(t)||fe(t)||ue(t)))throw Error(ce.INVALID_ARGUMENT);const r=o(t)?String(t):(fe(t),t);return o(a)?l.plural=a:v(a)?l.default=a:y(a)&&!c(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function de(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=he(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=U(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let h,k={},E=null;for(let c=0;c<b.length&&(h=b[c],k=a[h]||{},E=k[i],!y(E));c++)oe(e,i,h,0,"datetime format");if(!y(E)||!v(h))return n?J:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.DateTimeFormat(h,u({},E,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const be=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function he(...e){const[t,a,n,l]=e,r={};let i,c={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ce.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();i=new Date(a);try{i.toISOString()}catch(u){throw Error(ce.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(ce.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(ce.INVALID_ARGUMENT);i=t}return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{be.includes(e)?c[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(c=n),y(l)&&(c=l),[r.key||"",i,r,c]}function ke(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function ye(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=Ne(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=U(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let h,k={},E=null;for(let c=0;c<b.length&&(h=b[c],k=a[h]||{},E=k[i],!y(E));c++)oe(e,i,h,0,"number format");if(!y(E)||!v(h))return n?J:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.NumberFormat(h,u({},E,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const Ee=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ne(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(ce.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{Ee.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function Le(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const Ie="9.7.1",Te=ce.__EXTEND_POINT__,Fe=E(Te),Re={UNEXPECTED_RETURN_TYPE:Te,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()},Oe=n("__translateVNode"),We=n("__datetimeParts"),we=n("__numberParts"),Me=n("__setPluralRules"),Ce=n("__legacyVueI18n"),De=n("__injectWithOption"),Pe=n("__dispose"),Ae="__VUE_I18N_BRIDGE__";function Se(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function $e(e){if(!b(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]]={}),!b(l[a[e]])){r=!0;break}l=l[a[e]]}r||(l[a[n]]=e[t],delete e[t]),b(l[a[n]])&&$e(l[a[n]])}else b(e[t])&&$e(e[t]);return e}function Ue(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=y(a)?a:g(n)?{}:{[e]:{}};if(g(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},I(a,o[t])):I(a,o)}else v(e)&&I(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&$e(o[s]);return o}function je(e){return e.proxy.$options}function Ve(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const xe=()=>[],He=()=>!1;let Ge=0;function Be(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Ye(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l,c=e.flatJson;let m=!d(e.inheritLocale)||e.inheritLocale;const f=t.ref(l&&m?l.locale.value:v(e.locale)?e.locale:z),h=t.ref(l&&m?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),k=t.ref(Ue(f.value,e)),E=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),N=t.ref(y(e.numberFormats)?e.numberFormats:{[f.value]:{}});let L=l?l.missingWarn:!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,T=l?l.fallbackWarn:!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,F=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,R=!!e.fallbackFormat,O=p(e.missing)?e.missing:null,W=p(e.missing)?Be(e.missing):null,w=p(e.postTranslation)?e.postTranslation:null,M=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const D=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let P,A,S=e.pluralRules||l&&l.pluralRules;{Se(n);const e={locale:f.value,fallbackLocale:h.value,messages:k.value,dateTimeFormats:E.value,numberFormats:N.value,modifiers:D,missing:O,fallbackRoot:F,postTranslation:w,pluralizationRules:S,escapeParameterHtml:C,sync:m,silentFallbackWarn:d(T)?!T:T,silentTranslationWarn:d(L)?!L:L,formatFallbackMessages:d(R)?!R:R,warnHtmlInMessage:d(M)&&M?"warn":"off",__VUE_I18N_BRIDGE__:Ae};P=new n(e)}A=(()=>{s&&ae(null);const t={version:Ie,locale:f.value,fallbackLocale:h.value,messages:k.value,modifiers:D,pluralRules:S,missing:null===W?void 0:W,missingWarn:L,fallbackWarn:T,fallbackFormat:R,unresolving:!0,postTranslation:null===w?void 0:w,warnHtmlMessage:M,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=E.value,t.numberFormats=N.value,t.__datetimeFormatters=y(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=y(A)?A.__numberFormatters:void 0;const a=re(t);return s&&ae(a),a})(),se(A,f.value,h.value);const $=t.computed({get:()=>f.value,set:e=>{f.value=e,P&&!s&&(P.locale=e),A.locale=f.value}}),U=t.computed({get:()=>h.value,set:e=>{h.value=e,P&&!s&&(P.fallbackLocale=e),A.fallbackLocale=h.value,se(A,f.value,e)}}),j=t.computed((()=>k.value)),V=t.computed((()=>E.value)),x=t.computed((()=>N.value));const G=(e,t,a,n,r,i)=>{let c;f.value,h.value,k.value,E.value,N.value;try{0,s||(A.fallbackContext=l?ne():void 0),c=e(A)}finally{s||(A.fallbackContext=void 0)}if("translate exists"!==a&&o(c)&&c===J||"translate exists"===a&&!c){const[e,a]=t();return l&&F?n(l):r(e)}if(i(c))return c;throw Error(Re.UNEXPECTED_RETURN_TYPE)};function B(...e){return G((t=>Reflect.apply(_e,null,[t,...e])),(()=>ve(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const Y={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?Ve(String(e)):e))},interpolate:e=>e,type:"vnode"};function X(e){return k.value[e]||{}}Ge++,l&&a&&(t.watch(l.locale,(e=>{m&&(f.value=e,P&&!s&&(P.locale=e),A.locale=e,se(A,f.value,h.value))})),t.watch(l.fallbackLocale,(e=>{m&&(h.value=e,P&&!s&&(P.fallbackLocale=e),A.fallbackLocale=e,se(A,f.value,h.value))})));const Z={id:Ge,locale:$,fallbackLocale:U,get inheritLocale(){return m},set inheritLocale(e){m=e,P&&(P._sync=e),e&&l&&(f.value=l.locale.value,h.value=l.fallbackLocale.value,P&&(P.locale=l.locale.value,P.fallbackLocale=l.fallbackLocale.value),se(A,f.value,h.value))},get availableLocales(){return Object.keys(k.value).sort()},messages:j,get modifiers(){return D},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return L},set missingWarn(e){L=e,A.missingWarn=L},get fallbackWarn(){return T},set fallbackWarn(e){T=e,A.fallbackWarn=T},get fallbackRoot(){return F},set fallbackRoot(e){F=e},get fallbackFormat(){return R},set fallbackFormat(e){R=e,A.fallbackFormat=R},get warnHtmlMessage(){return M},set warnHtmlMessage(e){M=e,A.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,A.escapeParameter=e},t:B,getLocaleMessage:X,setLocaleMessage:function(e,t){if(c){const a={[e]:t};for(const e in a)_(a,e)&&$e(a[e]);t=a[e]}k.value[e]=t,P&&P.setLocaleMessage(e,t),A.messages=k.value},mergeLocaleMessage:function(e,t){k.value[e]=k.value[e]||{},P&&P.mergeLocaleMessage(e,t);const a={[e]:t};for(const n in a)_(a,n)&&$e(a[n]);I(t=a[e],k.value[e]),A.messages=k.value},getPostTranslationHandler:function(){return p(w)?w:null},setPostTranslationHandler:function(e){w=e,A.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(W=Be(e)),O=e,A.missing=W},[Me]:function(e){S=e,A.pluralRules=S}};return Z.datetimeFormats=V,Z.numberFormats=x,Z.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(Re.INVALID_ARGUMENT);return B(t,a,u({resolvedMessage:!0},n||{}))},Z.te=function(e,t){return G((()=>{if(!e)return!1;const a=X(v(t)?t:f.value),n=A.messageResolver(a,e);return ue(n)||fe(n)||v(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),He,(e=>d(e)))},Z.tm=function(e){const t=function(e){let t=null;const a=H(A,h.value,f.value);for(let n=0;n<a.length;n++){const l=k.value[a[n]]||{},r=A.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},Z.d=function(...e){return G((t=>Reflect.apply(de,null,[t,...e])),(()=>he(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>q),(e=>v(e)))},Z.n=function(...e){return G((t=>Reflect.apply(ye,null,[t,...e])),(()=>Ne(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>q),(e=>v(e)))},Z.getDateTimeFormat=function(e){return E.value[e]||{}},Z.setDateTimeFormat=function(e,t){E.value[e]=t,P&&P.setDateTimeFormat(e,t),A.datetimeFormats=E.value,ke(A,e,t)},Z.mergeDateTimeFormat=function(e,t){E.value[e]=u(E.value[e]||{},t),P&&P.mergeDateTimeFormat(e,t),A.datetimeFormats=E.value,ke(A,e,t)},Z.getNumberFormat=function(e){return N.value[e]||{}},Z.setNumberFormat=function(e,t){N.value[e]=t,P&&P.setNumberFormat(e,t),A.numberFormats=N.value,Le(A,e,t)},Z.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),P&&P.mergeNumberFormat(e,t),A.numberFormats=N.value,Le(A,e,t)},Z[De]=r,Z[Oe]=function(...e){return G((t=>{let a;const n=t;try{n.processor=Y,a=Reflect.apply(_e,null,[n,...e])}finally{n.processor=null}return a}),(()=>ve(...e)),"translate",(t=>t[Oe](...e)),(e=>[Ve(e)]),(e=>g(e)))},Z[We]=function(...e){return G((t=>Reflect.apply(de,null,[t,...e])),(()=>he(...e)),"datetime format",(t=>t[We](...e)),xe,(e=>v(e)||g(e)))},Z[we]=function(...e){return G((t=>Reflect.apply(ye,null,[t,...e])),(()=>Ne(...e)),"number format",(t=>t[we](...e)),xe,(e=>v(e)||g(e)))},Z[Ce]=P,Z}const Xe={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Je=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Xe),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||nt({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=v(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[Oe](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}}),ze=Je;function qe(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),v(e.format)?a.key=e.format:b(e.format)&&(v(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u({},t,{[a]:e.format[a]}):t),{}));const i=l(e.value,a,s);let c=[a.key];g(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return g(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${t}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}const Ze=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const a=e.i18n||nt({useScope:"parent",__useComponent:!0});return qe(e,t,Ee,((...e)=>a[we](...e)))}}),Ke=Ze,Qe=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const a=e.i18n||nt({useScope:"parent",__useComponent:!0});return qe(e,t,be,((...e)=>a[We](...e)))}}),et=Qe;let tt=null;const at=n("global-vue-i18n");function nt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Re.MUST_BE_CALL_SETUP_TOP);if(null==tt)throw Error(Re.NOT_INSTALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(Re.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(Re.NOT_INSTALLED);return a}}(n),r=function(e){return e.global}(l),o=je(n),s=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(Re.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(Re.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=d(l.inheritLocale)?l.inheritLocale:!v(l.locale),c=t.ref(!r||s?n.locale.value:v(l.locale)?l.locale:z),u=t.ref(!r||s?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Ue(c.value,l)),f=t.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!d(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,k=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,N=p(l.missing)?l.missing:null,L=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,T=!!l.escapeParameter,F=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),w=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),M=t.computed((()=>o.value?o.value.messages.value:m.value)),C=t.computed((()=>f.value)),D=t.computed((()=>_.value));function P(){return o.value?o.value.getPostTranslationHandler():L}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():N}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function j(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function V(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function H(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function X(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),_.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:W,fallbackLocale:w,messages:M,datetimeFormats:C,numberFormats:D,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:F},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:b},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},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:j,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:S,setMissingHandler:$,rt:V,d:x,n:H,tm:G,te:B,getLocaleMessage:Y,setLocaleMessage:X,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=c.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(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=T,e.fallbackFormat=E,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,s,r,e)}if("global"===s)return function(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Ue(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),b(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(b(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===s){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 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[De]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=Ye(l,tt),m.__composerExtend&&(f[Pe]=m.__composerExtend(f)),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(Re.UNEXPECTED_ERROR);const o=l[Ce];if(o===e)throw Error(Re.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(m,n,f),m.__setInstance(n,f)}return f}return Q=function(e,t){if(!b(e))return null;let a=W.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,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=O(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=R(a),i=T[u],o=i[r]||i.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;if(p(l))return null;l=e,r++}return l},ee=H,e.DatetimeFormat=Qe,e.I18nD=et,e.I18nInjectionKey=at,e.I18nN=Ke,e.I18nT=ze,e.NumberFormat=Ze,e.Translation=Je,e.VERSION=Ie,e.castToVueI18n=e=>{if(!(Ae in e))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){tt=a;const n=!d(e.legacy)||e.legacy,l=!d(e.globalInjection)||e.globalInjection,r=!n||!!e.allowComposition,o=new Map,[s,i]=function(e,a,n){const l=t.effectScope();{if(!Se(n))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>Ye(e,n)));if(null==t)throw Error(Re.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);{const e=i[Ce];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...r)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(Re.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=y(t[0])?t[0]:{};(!d(a.globalInstall)||a.globalInstall)&&(e.component(Je.name,Je),e.component(Ze.name,Ze),e.component(Qe.name,Qe))}(a,...r),!n&&l&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,i)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>I(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>I(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:l}=a.i18n;l&&y(l)&&I(l,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||y(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,tt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const a={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=nt,e}({},VueDemi);
var VueI18nBridge=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]"===k(e),i=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=e=>b(e)&&p(e.then)&&p(e.catch),E=Object.prototype.toString,k=e=>E.call(e),y=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function N(e){let t=e;return()=>++t}function L(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=e=>!b(e)||g(e);function O(e,t){if(T(e)||T(t))throw new Error("Invalid value");for(const a in e)_(e,a)&&(T(e[a])||T(t[a])?t[a]=e[a]:O(e[a],t[a]))}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 F=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function R(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 W(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,F.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 C=new Map;function w(e,t){return b(e)?e[t]:null}const M=e=>e,P=e=>"",D="text",A=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),S=e=>null==e?"":g(e)||y(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function U(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=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:U,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?U: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 i(t){const a=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):P)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:A,m=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:S,f={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?b(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));const s=i(t)(f),c="vnode"===r&&g(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:M)(c,r):c;var u},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:D,interpolate:m,normalize:c,values:u({},r,s)};return f}const V=N(17),j={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:V(),INVALID_ISO_DATE_ARGUMENT:V(),NOT_SUPPORT_NON_STRING_MESSAGE:V(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:V(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:V(),NOT_SUPPORT_LOCALE_TYPE:V(),__EXTEND_POINT__:V()};function x(e,t){return null!=t.locale?G(t.locale):G(e.locale)}let H;function G(e){if(v(e))return e;if(p(e)){if(e.resolvedOnce&&null!=H)return H;if("Function"===e.constructor.name){const t=e();if(h(t))throw Error(j.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return H=t}throw Error(j.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(j.NOT_SUPPORT_LOCALE_TYPE)}function B(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function Y(e,t,a){const n=v(a)?a:K,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=X(r,e,t);const o=g(t)||!y(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&X(r,e,!1),l.__localeChainCache.set(n,r)}return r}function X(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=J(e,t[l],a))}return n}function J(e,t,a){let n;const l=t.split("-");do{n=z(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function z(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),(g(a)||y(a))&&a[l]&&(n=a[l])}return n}const q="9.8.0",Z=-1,K="en-US",Q="",ee=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let te,ae,ne;let le=null;const re=e=>{le=e},oe=()=>le;let se=0;function ie(e={}){const t=p(e.onWarn)?e.onWarn:L,a=v(e.version)?e.version:q,n=v(e.locale)||p(e.locale)?e.locale:K,l=p(n)?K:n,r=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l,o=y(e.messages)?e.messages:{[l]:{}},s=y(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},c=y(e.numberFormats)?e.numberFormats:{[l]:{}},m=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?ee(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?ee(e.children):e}),f=e.pluralRules||{},_=p(e.missing)?e.missing:null,h=!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,E=!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,N=!!e.unresolving,T=p(e.postTranslation)?e.postTranslation:null,O=y(e.processor)?e.processor:null,I=!d(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,R=p(e.messageCompiler)?e.messageCompiler:te,W=p(e.messageResolver)?e.messageResolver:ae||w,C=p(e.localeFallbacker)?e.localeFallbacker:ne||B,M=b(e.fallbackContext)?e.fallbackContext:void 0,P=e,D=b(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,A=b(P.__numberFormatters)?P.__numberFormatters:new Map,S=b(P.__meta)?P.__meta:{};se++;const U={version:a,cid:se,locale:n,fallbackLocale:r,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:h,fallbackWarn:E,fallbackFormat:k,unresolving:N,postTranslation:T,processor:O,warnHtmlMessage:I,escapeParameter:F,messageCompiler:R,messageResolver:W,localeFallbacker:C,fallbackContext:M,onWarn:t,__meta:S};return U.datetimeFormats=s,U.numberFormats=c,U.__datetimeFormatters=D,U.__numberFormatters=A,U}function ce(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return v(n)?n:t}return t}function ue(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}const me=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e),fe=()=>"",_e=e=>p(e);function ge(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=de(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,E=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",k=a||""!==E,y=x(e,u);p&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[N,L,T]=h?[c,y,i[y]||{}]:pe(e,c,y,s,_,f),O=N,I=c;if(h||v(O)||me(O)||_e(O)||k&&(O=E,I=O),!(h||(v(O)||me(O)||_e(O))&&v(L)))return l?Z:c;let F=!1;const R=_e(O)?O:ve(e,c,L,O,I,(()=>{F=!0}));if(F)return O;const W=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=pe(m,n,t,i,c,u);l=s(e,n)}if(v(l)||me(l)){let a=!1;const r=ve(e,n,t,l,n,(()=>{a=!0}));return a?fe:r}return _e(l)?l:fe},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,L,T,u),C=function(e,t,a){const n=t(a);return n}(0,R,$(W));return n?n(C,c):C}function pe(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,f={},_=null;for(let g=0;g<u.length&&(m=u[g],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!(v(_)||me(_)||_e(_)));g++){const a=ce(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function ve(e,t,a,n,r,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(_e(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 c=s(n,function(e,t,a,n,r,o){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,a,e)}}(0,a,r,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function de(...e){const[t,a,n]=e,l={};if(!(v(t)||o(t)||_e(t)||me(t)))throw Error(j.INVALID_ARGUMENT);const r=o(t)?String(t):(_e(t),t);return o(a)?l.plural=a:v(a)?l.default=a:y(a)&&!c(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function be(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=Ee(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=x(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.DateTimeFormat(p,_).format(m);let h,E={},k=null;for(let c=0;c<b.length&&(h=b[c],E=a[h]||{},k=E[i],!y(k));c++)ce(e,i,h,0,"datetime format");if(!y(k)||!v(h))return n?Z:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.DateTimeFormat(h,u({},k,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const he=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ee(...e){const[t,a,n,l]=e,r={};let i,c={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(j.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();i=new Date(a);try{i.toISOString()}catch(u){throw Error(j.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(j.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(j.INVALID_ARGUMENT);i=t}return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{he.includes(e)?c[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(c=n),y(l)&&(c=l),[r.key||"",i,r,c]}function ke(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function ye(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=Le(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=x(e,f),b=o(e,l,p);if(!v(i)||""===i)return new Intl.NumberFormat(p,_).format(m);let h,E={},k=null;for(let c=0;c<b.length&&(h=b[c],E=a[h]||{},k=E[i],!y(k));c++)ce(e,i,h,0,"number format");if(!y(k)||!v(h))return n?Z:i;let N=`${h}__${i}`;c(_)||(N=`${N}__${JSON.stringify(_)}`);let L=s.get(N);return L||(L=new Intl.NumberFormat(h,u({},k,_)),s.set(N,L)),g?L.formatToParts(m):L.format(m)}const Ne=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Le(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(j.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{Ne.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function Te(e,t,a){const n=e;for(const l in a){const e=`${t}__${l}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const Oe="9.8.0",Ie=j.__EXTEND_POINT__,Fe=N(Ie),Re={UNEXPECTED_RETURN_TYPE:Ie,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()},We=n("__translateVNode"),Ce=n("__datetimeParts"),we=n("__numberParts"),Me=n("__setPluralRules"),Pe=n("__legacyVueI18n"),De=n("__injectWithOption"),Ae=n("__dispose"),Se="__VUE_I18N_BRIDGE__";function Ue(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function $e(e){if(!b(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]]={}),!b(l[a[e]])){r=!0;break}l=l[a[e]]}r||(l[a[n]]=e[t],delete e[t]),b(l[a[n]])&&$e(l[a[n]])}else b(e[t])&&$e(e[t]);return e}function Ve(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=y(a)?a:g(n)?{}:{[e]:{}};if(g(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},O(a,o[t])):O(a,o)}else v(e)&&O(JSON.parse(e),o)})),null==l&&r)for(const s in o)_(o,s)&&$e(o[s]);return o}function je(e){return e.proxy.$options}function xe(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}const He=()=>[],Ge=()=>!1;let Be=0;function Ye(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function Xe(e={},n){const{__root:l,__injectWithOption:r}=e,s=void 0===l,c=e.flatJson;let m=!d(e.inheritLocale)||e.inheritLocale;const f=t.ref(l&&m?l.locale.value:v(e.locale)?e.locale:K),h=t.ref(l&&m?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),E=t.ref(Ve(f.value,e)),k=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),N=t.ref(y(e.numberFormats)?e.numberFormats:{[f.value]:{}});let L=l?l.missingWarn:!d(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,T=l?l.fallbackWarn:!d(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,I=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,F=!!e.fallbackFormat,R=p(e.missing)?e.missing:null,W=p(e.missing)?Ye(e.missing):null,C=p(e.postTranslation)?e.postTranslation:null,w=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,M=!!e.escapeParameter;const P=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let D,A,S=e.pluralRules||l&&l.pluralRules;{Ue(n);const e={locale:f.value,fallbackLocale:h.value,messages:E.value,dateTimeFormats:k.value,numberFormats:N.value,modifiers:P,missing:R,fallbackRoot:I,postTranslation:C,pluralizationRules:S,escapeParameterHtml:M,sync:m,silentFallbackWarn:d(T)?!T:T,silentTranslationWarn:d(L)?!L:L,formatFallbackMessages:d(F)?!F:F,warnHtmlInMessage:d(w)&&w?"warn":"off",__VUE_I18N_BRIDGE__:Se};D=new n(e)}A=(()=>{s&&re(null);const t={version:Oe,locale:f.value,fallbackLocale:h.value,messages:E.value,modifiers:P,pluralRules:S,missing:null===W?void 0:W,missingWarn:L,fallbackWarn:T,fallbackFormat:F,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:w,escapeParameter:M,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=k.value,t.numberFormats=N.value,t.__datetimeFormatters=y(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=y(A)?A.__numberFormatters:void 0;const a=ie(t);return s&&re(a),a})(),ue(A,f.value,h.value);const U=t.computed({get:()=>f.value,set:e=>{f.value=e,D&&!s&&(D.locale=e),A.locale=f.value}}),$=t.computed({get:()=>h.value,set:e=>{h.value=e,D&&!s&&(D.fallbackLocale=e),A.fallbackLocale=h.value,ue(A,f.value,e)}}),V=t.computed((()=>E.value)),j=t.computed((()=>k.value)),x=t.computed((()=>N.value));const H=(e,t,a,n,r,i)=>{let c;f.value,h.value,E.value,k.value,N.value;try{0,s||(A.fallbackContext=l?oe():void 0),c=e(A)}finally{s||(A.fallbackContext=void 0)}if("translate exists"!==a&&o(c)&&c===Z||"translate exists"===a&&!c){const[e,a]=t();return l&&I?n(l):r(e)}if(i(c))return c;throw Error(Re.UNEXPECTED_RETURN_TYPE)};function G(...e){return H((t=>Reflect.apply(ge,null,[t,...e])),(()=>de(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const B={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?xe(String(e)):e))},interpolate:e=>e,type:"vnode"};function X(e){return E.value[e]||{}}Be++,l&&a&&(t.watch(l.locale,(e=>{m&&(f.value=e,D&&!s&&(D.locale=e),A.locale=e,ue(A,f.value,h.value))})),t.watch(l.fallbackLocale,(e=>{m&&(h.value=e,D&&!s&&(D.fallbackLocale=e),A.fallbackLocale=e,ue(A,f.value,h.value))})));const J={id:Be,locale:U,fallbackLocale:$,get inheritLocale(){return m},set inheritLocale(e){m=e,D&&(D._sync=e),e&&l&&(f.value=l.locale.value,h.value=l.fallbackLocale.value,D&&(D.locale=l.locale.value,D.fallbackLocale=l.fallbackLocale.value),ue(A,f.value,h.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:V,get modifiers(){return P},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return L},set missingWarn(e){L=e,A.missingWarn=L},get fallbackWarn(){return T},set fallbackWarn(e){T=e,A.fallbackWarn=T},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return F},set fallbackFormat(e){F=e,A.fallbackFormat=F},get warnHtmlMessage(){return w},set warnHtmlMessage(e){w=e,A.warnHtmlMessage=e},get escapeParameter(){return M},set escapeParameter(e){M=e,A.escapeParameter=e},t:G,getLocaleMessage:X,setLocaleMessage:function(e,t){if(c){const a={[e]:t};for(const e in a)_(a,e)&&$e(a[e]);t=a[e]}E.value[e]=t,D&&D.setLocaleMessage(e,t),A.messages=E.value},mergeLocaleMessage:function(e,t){E.value[e]=E.value[e]||{},D&&D.mergeLocaleMessage(e,t);const a={[e]:t};for(const n in a)_(a,n)&&$e(a[n]);O(t=a[e],E.value[e]),A.messages=E.value},getPostTranslationHandler:function(){return p(C)?C:null},setPostTranslationHandler:function(e){C=e,A.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(W=Ye(e)),R=e,A.missing=W},[Me]:function(e){S=e,A.pluralRules=S}};return J.datetimeFormats=j,J.numberFormats=x,J.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(Re.INVALID_ARGUMENT);return G(t,a,u({resolvedMessage:!0},n||{}))},J.te=function(e,t){return H((()=>{if(!e)return!1;const a=X(v(t)?t:f.value),n=A.messageResolver(a,e);return me(n)||_e(n)||v(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),Ge,(e=>d(e)))},J.tm=function(e){const t=function(e){let t=null;const a=Y(A,h.value,f.value);for(let n=0;n<a.length;n++){const l=E.value[a[n]]||{},r=A.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},J.d=function(...e){return H((t=>Reflect.apply(be,null,[t,...e])),(()=>Ee(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Q),(e=>v(e)))},J.n=function(...e){return H((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Q),(e=>v(e)))},J.getDateTimeFormat=function(e){return k.value[e]||{}},J.setDateTimeFormat=function(e,t){k.value[e]=t,D&&D.setDateTimeFormat(e,t),A.datetimeFormats=k.value,ke(A,e,t)},J.mergeDateTimeFormat=function(e,t){k.value[e]=u(k.value[e]||{},t),D&&D.mergeDateTimeFormat(e,t),A.datetimeFormats=k.value,ke(A,e,t)},J.getNumberFormat=function(e){return N.value[e]||{}},J.setNumberFormat=function(e,t){N.value[e]=t,D&&D.setNumberFormat(e,t),A.numberFormats=N.value,Te(A,e,t)},J.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),D&&D.mergeNumberFormat(e,t),A.numberFormats=N.value,Te(A,e,t)},J[De]=r,J[We]=function(...e){return H((t=>{let a;const n=t;try{n.processor=B,a=Reflect.apply(ge,null,[n,...e])}finally{n.processor=null}return a}),(()=>de(...e)),"translate",(t=>t[We](...e)),(e=>[xe(e)]),(e=>g(e)))},J[Ce]=function(...e){return H((t=>Reflect.apply(be,null,[t,...e])),(()=>Ee(...e)),"datetime format",(t=>t[Ce](...e)),He,(e=>v(e)||g(e)))},J[we]=function(...e){return H((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),"number format",(t=>t[we](...e)),He,(e=>v(e)||g(e)))},J[Pe]=D,J}const Je={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const ze=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Je),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||lt({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=v(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.children?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[We](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}}),qe=ze;function Ze(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),v(e.format)?a.key=e.format:b(e.format)&&(v(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u({},t,{[a]:e.format[a]}):t),{}));const i=l(e.value,a,s);let c=[a.key];g(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return g(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${t}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}const Ke=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Je),setup(e,t){const a=e.i18n||lt({useScope:"parent",__useComponent:!0});return Ze(e,t,Ne,((...e)=>a[we](...e)))}}),Qe=Ke,et=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Je),setup(e,t){const a=e.i18n||lt({useScope:"parent",__useComponent:!0});return Ze(e,t,he,((...e)=>a[Ce](...e)))}}),tt=et;let at=null;const nt=n("global-vue-i18n");function lt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Re.MUST_BE_CALL_SETUP_TOP);if(null==at)throw Error(Re.NOT_INSTALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(Re.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(Re.NOT_INSTALLED);return a}}(n),r=function(e){return e.global}(l),o=je(n),s=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(Re.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(Re.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=d(l.inheritLocale)?l.inheritLocale:!v(l.locale),c=t.ref(!r||s?n.locale.value:v(l.locale)?l.locale:K),u=t.ref(!r||s?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Ve(c.value,l)),f=t.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!i(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!d(l.fallbackWarn)&&!i(l.fallbackWarn)||l.fallbackWarn,E=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,k=!!l.fallbackFormat,N=p(l.missing)?l.missing:null,L=p(l.postTranslation)?l.postTranslation:null,T=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,O=!!l.escapeParameter,I=r?n.modifiers:y(l.modifiers)?l.modifiers:{},F=l.pluralRules||r&&n.pluralRules;function R(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),C=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)),M=t.computed((()=>f.value)),P=t.computed((()=>_.value));function D(){return o.value?o.value.getPostTranslationHandler():L}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():N}function U(e){o.value&&o.value.setMissingHandler(e)}function $(e){return R(),e()}function V(...e){return o.value?$((()=>Reflect.apply(o.value.t,null,[...e]))):$((()=>""))}function j(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?$((()=>Reflect.apply(o.value.d,null,[...e]))):$((()=>""))}function H(...e){return o.value?$((()=>Reflect.apply(o.value.n,null,[...e]))):$((()=>""))}function G(e){return o.value?o.value.tm(e):{}}function B(e,t){return!!o.value&&o.value.te(e,t)}function Y(e){return o.value?o.value.getLocaleMessage(e):{}}function X(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 z(e){return o.value?o.value.getDateTimeFormat(e):{}}function q(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function Z(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),_.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:W,fallbackLocale:C,messages:w,datetimeFormats:M,numberFormats:P,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:I},get pluralRules(){return o.value?o.value.pluralRules:F},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:b},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:E},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:T},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:O},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:D,setPostTranslationHandler:A,getMissingHandler:S,setMissingHandler:U,rt:j,d:x,n:H,tm:G,te:B,getLocaleMessage:Y,setLocaleMessage:X,mergeLocaleMessage:J,getDateTimeFormat:z,setDateTimeFormat:q,mergeDateTimeFormat:Z,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=c.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(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=O,e.fallbackFormat=k,e.fallbackRoot=E,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=T}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,s,r,e)}if("global"===s)return function(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Ve(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),b(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(b(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===s){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 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[De]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=Xe(l,at),m.__composerExtend&&(f[Ae]=m.__composerExtend(f)),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(Re.UNEXPECTED_ERROR);const o=l[Pe];if(o===e)throw Error(Re.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(m,n,f),m.__setInstance(n,f)}return f}return ae=function(e,t){if(!b(e))return null;let a=C.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,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=W(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=R(a),i=I[u],o=i[r]||i.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&&C.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;if(p(l))return null;l=e,r++}return l},ne=Y,e.DatetimeFormat=et,e.I18nD=tt,e.I18nInjectionKey=nt,e.I18nN=Qe,e.I18nT=qe,e.NumberFormat=Ke,e.Translation=ze,e.VERSION=Oe,e.castToVueI18n=e=>{if(!(Se in e))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){at=a;const n=!d(e.legacy)||e.legacy,l=!d(e.globalInjection)||e.globalInjection,r=!n||!!e.allowComposition,o=new Map,[s,i]=function(e,a,n){const l=t.effectScope();{if(!Ue(n))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>Xe(e,n)));if(null==t)throw Error(Re.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);{const e=i[Pe];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...r)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(Re.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=y(t[0])?t[0]:{};(!d(a.globalInstall)||a.globalInstall)&&(e.component(ze.name,ze),e.component(Ke.name,Ke),e.component(et.name,et))}(a,...r),!n&&l&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,i)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>O(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(n){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>O(JSON.parse(t),e))),a.i18n.messages=e}catch(n){}const{sharedMessages:l}=a.i18n;l&&y(l)&&O(l,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||y(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,at))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const a={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=lt,e}({},VueDemi);
{
"name": "vue-i18n-bridge",
"version": "9.7.1",
"version": "9.8.0",
"description": "A bridge for Vue I18n Legacy",

@@ -41,8 +41,8 @@ "keywords": [

"vue-demi": "^0.14.0",
"@intlify/core-base": "9.7.1",
"@intlify/shared": "9.7.1",
"@intlify/vue-devtools": "9.7.1"
"@intlify/core-base": "9.8.0",
"@intlify/shared": "9.8.0",
"@intlify/vue-devtools": "9.8.0"
},
"devDependencies": {
"@intlify/devtools-if": "9.7.1"
"@intlify/devtools-if": "9.8.0"
},

@@ -49,0 +49,0 @@ "peerDependencies": {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc