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.2.0-beta.22 to 9.2.0-beta.23

15

dist/vue-i18n-bridge.cjs.js
/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi

@@ -22,3 +22,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.22';
const VERSION = '9.2.0-beta.23';

@@ -898,4 +898,11 @@ let code$1 = coreBase.CoreWarnCodes.__EXTEND_POINT__;

if (keys.length === 1 && keys[0] === 'default') {
// default slot only
return slots.default ? slots.default() : [];
// default slot with list
const ret = slots.default ? slots.default() : [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return ret.reduce((slot, current) => {
return (slot = [
...slot,
...(shared.isArray(current.children) ? current.children : [current])
]);
}, []);
}

@@ -902,0 +909,0 @@ else {

/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi

@@ -22,3 +22,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.22';
const VERSION = '9.2.0-beta.23';

@@ -826,4 +826,11 @@ let code = coreBase.CompileErrorCodes.__EXTEND_POINT__;

if (keys.length === 1 && keys[0] === 'default') {
// default slot only
return slots.default ? slots.default() : [];
// default slot with list
const ret = slots.default ? slots.default() : [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return ret.reduce((slot, current) => {
return (slot = [
...slot,
...(shared.isArray(current.children) ? current.children : [current])
]);
}, []);
}

@@ -830,0 +837,0 @@ else {

/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,getCurrentInstance as t,computed as n,watch as r,h as a,onBeforeMount as o,onUnmounted as s}from"@vue/composition-api";const l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,c=e=>l?Symbol(e):e,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"==typeof e&&isFinite(e),f=e=>"[object RegExp]"===T(e),m=e=>N(e)&&0===Object.keys(e).length;function p(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function d(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const g=Object.prototype.hasOwnProperty;function h(e,t){return g.call(e,t)}const b=Array.isArray,k=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,E=Object.prototype.toString,T=e=>E.call(e),N=e=>"[object Object]"===T(e),I=15;function O(e){throw e}function C(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const F=String.fromCharCode(8232),R=String.fromCharCode(8233);function P(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],l=e=>t[e]===R,c=e=>t[e]===F,i=e=>s(e)||(e=>"\n"===t[e])(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?"\n":t[e];function f(){return o=0,i(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:f,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;)f();o=0}}}const w=void 0;function S(e,t={}){const n=!1!==t.location,r=P(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},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,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 p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function _(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function d(e){const t=_(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 h(e,t){const{currentType:n}=t;if(2!==n)return!1;_(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 b(e){_(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(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||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function y(e){return v(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 v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function E(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=L(e);)n+=t;return n}function N(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=E(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){d(e);const t=p(e,"|");return d(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&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(),n=R(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,S(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(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=y(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=v(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===w?(o(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function R(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||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 b(e)?(r=f(t,1,O(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)?(d(e),R(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=y(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||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?F(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,S(e,t))}}function S(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return R(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return R(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):S(r,c)},currentOffset:a,currentPosition:o,context:i}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function A(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(x,W),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}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:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,$(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&&(t.lastStartLoc,$(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,$(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&&(t.lastStartLoc,$(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,$(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,$(o)),n.key=c(e,o.value||"");break;default: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 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&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,$(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 f(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 c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=S(n,_({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function $(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function D(e,t){for(let n=0;n<e.length;n++)M(e[n],t)}function M(e,t){switch(e.type){case 1:D(e.cases,t),t.helper("plural");break;case 2:D(e.items,t);break;case 6:M(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function U(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&&M(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function j(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?j(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(j(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let n=0;n<a&&(j(e,t.items[n]),n!==a-1);n++)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(")")}(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)}}function V(e,t={}){const n=_({},t),r=A(n).parse(e);return U(r,n),((e,t={})=>{const n=v(t.mode)?t.mode:"normal",r=v(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||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),j(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const G=[];G[0]={w:[0],i:[3,0],"[":[4],o:[7]},G[1]={w:[1],".":[2],"[":[4],o:[7]},G[2]={w:[2],i:[3,0],0:[3,0]},G[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},G[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},G[5]={"'":[4,0],o:8,l:[5,0]},G[6]={'"':[4,0],o:8,l:[6,0]};const B=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H(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 J(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,B.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const z=new Map;function Y(e,t){return L(e)?e[t]:null}const X=e=>e,q=e=>"",K=e=>0===e.length?"":e.join(""),Z=e=>null==e?"":b(e)||N(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function Q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ee(e={}){const t=e.locale,n=function(e){const t=u(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(u(e.named.count)||u(e.named.n))?u(e.named.count)?e.named.count:u(e.named.n)?e.named.n:t:t}(e),r=L(e.pluralRules)&&v(t)&&k(e.pluralRules[t])?e.pluralRules[t]:Q,a=L(e.pluralRules)&&v(t)&&k(e.pluralRules[t])?Q:void 0,o=e.list||[],s=e.named||{};u(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function l(t){const n=k(e.messages)?e.messages(t):!!L(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):q)}const c=N(e.processor)&&k(e.processor.normalize)?e.processor.normalize:K,i=N(e.processor)&&k(e.processor.interpolate)?e.processor.interpolate:Z,f={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=l(t)(f);return v(n)?(a=n,e.modifiers?e.modifiers[a]:X)(r):r;var a},message:l,type:N(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return f}function te(e,t,n){return[...new Set([n,...b(t)?t:L(t)?Object.keys(t):v(t)?[t]:[n]])]}function ne(e,t,n){const r=v(n)?n:se,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;b(e);)e=re(o,e,t);const s=b(t)||!N(t)?t:t.default?t.default:null;e=v(s)?[s]:s,b(e)&&re(o,e,!1),a.__localeChainCache.set(r,o)}return o}function re(e,t,n){let r=!0;for(let a=0;a<t.length&&y(r);a++){const o=t[a];v(o)&&(r=ae(e,t[a],n))}return r}function ae(e,t,n){let r;const a=t.split("-");do{r=oe(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function oe(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),(b(n)||N(n))&&n[a]&&(r=n[a])}return r}const se="en-US";let le,ce,ie;let ue=0;function fe(e={}){const t=v(e.version)?e.version:"9.2.0-beta.22",n=v(e.locale)?e.locale:se,r=b(e.fallbackLocale)||N(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=N(e.messages)?e.messages:{[n]:{}},o=N(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=N(e.numberFormats)?e.numberFormats:{[n]:{}},l=_({},e.modifiers||{},{upper:e=>v(e)?e.toUpperCase():e,lower:e=>v(e)?e.toLowerCase():e,capitalize:e=>v(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=k(e.missing)?e.missing:null,u=!y(e.missingWarn)&&!f(e.missingWarn)||e.missingWarn,m=!y(e.fallbackWarn)&&!f(e.fallbackWarn)||e.fallbackWarn,d=!!e.fallbackFormat,g=!!e.unresolving,h=k(e.postTranslation)?e.postTranslation:null,E=N(e.processor)?e.processor:null,T=!y(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=k(e.messageCompiler)?e.messageCompiler:le,C=k(e.messageResolver)?e.messageResolver:ce||Y,F=k(e.localeFallbacker)?e.localeFallbacker:ie||te,R=k(e.onWarn)?e.onWarn:p,P=e,w=L(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,S=L(P.__numberFormatters)?P.__numberFormatters:new Map,x=L(P.__meta)?P.__meta:{};ue++;const W={version:t,cid:ue,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:m,fallbackFormat:d,unresolving:g,postTranslation:h,processor:E,warnHtmlMessage:T,escapeParameter:I,messageCompiler:O,messageResolver:C,localeFallbacker:F,onWarn:R,__meta:x};return W.datetimeFormats=o,W.numberFormats=s,W.__datetimeFormatters=w,W.__numberFormatters=S,W}function me(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return v(r)?r:t}return t}function pe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const _e=e=>e;let de=Object.create(null);let ge=I;const he=()=>ge++,be={INVALID_ARGUMENT:ge,INVALID_DATE_ARGUMENT:he(),INVALID_ISO_DATE_ARGUMENT:he(),__EXTEND_POINT__:he()},ke=()=>"",ve=e=>k(e);function ye(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,i]=Ee(...t),f=(y(i.missingWarn)?i.missingWarn:e.missingWarn,y(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,y(i.escapeParameter)?i.escapeParameter:e.escapeParameter),m=!!i.resolvedMessage,p=v(i.default)||y(i.default)?y(i.default)?c:i.default:n?o?c:()=>c:"",_=n||""!==p,g=v(i.locale)?i.locale:e.locale;f&&function(e){b(e.list)?e.list=e.list.map((e=>v(e)?d(e):e)):L(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=d(e.named[t]))}))}(i);let[h,E,T]=m?[c,g,l[g]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const _="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!v(p)&&!k(p));n++){const n=me(e,t,f,0,_);n!==t&&(p=n)}return[p,f,m]}(e,c,g,s),N=h,I=c;if(m||v(N)||ve(N)||_&&(N=p,I=N),!(m||(v(N)||ve(N))&&v(E)))return a?-1:c;let O=!1;const C=ve(N)?N:Le(e,c,E,N,I,(()=>{O=!0}));if(O)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s}=e,l=r=>{const a=s(n,r);if(v(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?ke:o}return ve(a)?a:ke},c={locale:t,modifiers:a,pluralRules:o,messages:l};e.processor&&(c.processor=e.processor);r.list&&(c.list=r.list);r.named&&(c.named=r.named);u(r.plural)&&(c.pluralIndex=r.plural);return c}(e,E,T,i),R=function(e,t,n){return t(n)}(0,C,ee(F));return r?r(R):R}function Le(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(ve(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>i({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,l,o));return c.locale=n,c.key=t,c.source=r,c}function Ee(...e){const[t,n,r]=e,a={};if(!v(t)&&!u(t)&&!ve(t))throw Error(be.INVALID_ARGUMENT);const o=u(t)?String(t):(ve(t),t);return u(n)?a.plural=n:v(n)?a.default=n:N(n)&&!m(n)?a.named=n:b(n)&&(a.list=n),u(r)?a.plural=r:v(r)?a.default=r:N(r)&&_(a,r),[o,a]}function Te(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,i,u,f]=Ne(...t);y(u.missingWarn)?u.missingWarn:e.missingWarn;y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=v(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!v(c)||""===c)return new Intl.DateTimeFormat(d).format(i);let h,b={},k=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},k=b[c],!N(k));t++)me(e,c,h,0,"datetime format");if(!N(k)||!v(h))return r?-1:c;let L=`${h}__${c}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let E=l.get(L);return E||(E=new Intl.DateTimeFormat(h,_({},k,f)),l.set(L,E)),p?E.formatToParts(i):E.format(i)}function Ne(...e){const[t,n,r,a]=e;let o,s={},l={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(be.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(be.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===T(t)){if(isNaN(t.getTime()))throw Error(be.INVALID_DATE_ARGUMENT);o=t}else{if(!u(t))throw Error(be.INVALID_ARGUMENT);o=t}return v(n)?s.key=n:N(n)&&(s=n),v(r)?s.locale=r:N(r)&&(l=r),N(a)&&(l=a),[s.key||"",o,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Oe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,i,u,f]=Ce(...t);y(u.missingWarn)?u.missingWarn:e.missingWarn;y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=v(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!v(c)||""===c)return new Intl.NumberFormat(d).format(i);let h,b={},k=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},k=b[c],!N(k));t++)me(e,c,h,0,"number format");if(!N(k)||!v(h))return r?-1:c;let L=`${h}__${c}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let E=l.get(L);return E||(E=new Intl.NumberFormat(h,_({},k,f)),l.set(L,E)),p?E.formatToParts(i):E.format(i)}function Ce(...e){const[t,n,r,a]=e;let o={},s={};if(!u(t))throw Error(be.INVALID_ARGUMENT);const l=t;return v(n)?o.key=n:N(n)&&(o=n),v(r)?o.locale=r:N(r)&&(s=r),N(a)&&(s=a),[o.key||"",l,o,s]}function Fe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Re="9.2.0-beta.22";let Pe=I;const we=()=>Pe++,Se={UNEXPECTED_RETURN_TYPE:Pe,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},xe=c("__transrateVNode"),We=c("__datetimeParts"),Ae=c("__numberParts"),$e=c("__setPluralRules"),De=c("__legacyVueI18n"),Me=c("__injectWithOption");function Ue(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function je(e){if(!L(e))return e;for(const t in e)if(h(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],L(a[n[r]])&&je(a[n[r]])}else L(e[t])&&je(e[t]);return e}function Ve(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=N(n)?n:b(r)?{}:{[e]:{}};if(b(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Be(n,s[t])):Be(n,s)}else v(e)&&Be(JSON.parse(e),s)})),null==a&&o)for(const e in s)h(s,e)&&je(s[e]);return s}const Ge=e=>!L(e)||b(e);function Be(e,t){if(Ge(e)||Ge(t))throw Error(Se.INVALID_VALUE);for(const n in e)h(e,n)&&(Ge(e[n])||Ge(t[n])?t[n]=e[n]:Be(e[n],t[n]))}function He(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)}let Je=0;function ze(e){return(n,r,a,o)=>e(r,a,t()||void 0,o)}function Ye(t={},a){const{__root:o}=t,s=void 0===o;let l=!y(t.inheritLocale)||t.inheritLocale;const c=e(o&&l?o.locale.value:v(t.locale)?t.locale:se),i=e(o&&l?o.fallbackLocale.value:v(t.fallbackLocale)||b(t.fallbackLocale)||N(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:c.value),m=e(Ve(c.value,t)),p=e(N(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),d=e(N(t.numberFormats)?t.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!y(t.missingWarn)&&!f(t.missingWarn)||t.missingWarn,h=o?o.fallbackWarn:!y(t.fallbackWarn)&&!f(t.fallbackWarn)||t.fallbackWarn,E=o?o.fallbackRoot:!y(t.fallbackRoot)||t.fallbackRoot,T=!!t.fallbackFormat,I=k(t.missing)?t.missing:null,O=k(t.missing)?ze(t.missing):null,C=k(t.postTranslation)?t.postTranslation:null,F=!y(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const P=o?o.modifiers:N(t.modifiers)?t.modifiers:{};let w,S,x=t.pluralRules||o&&o.pluralRules;{Ue(a);const e={locale:c.value,fallbackLocale:i.value,messages:m.value,dateTimeFormats:p.value,numberFormats:d.value,modifiers:P,missing:I,fallbackRoot:E,postTranslation:C,pluralizationRules:x,escapeParameterHtml:R,sync:l,silentFallbackWarn:y(h)?!h:h,silentTranslationWarn:y(g)?!g:g,formatFallbackMessages:y(T)?!T:T,warnHtmlInMessage:y(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};w=new a(e)}S=function(){const e={version:"9.2.0-beta.22",locale:c.value,fallbackLocale:i.value,messages:m.value,modifiers:P,pluralRules:x,missing:null===O?void 0:O,missingWarn:g,fallbackWarn:h,fallbackFormat:T,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:F,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=p.value,e.numberFormats=d.value,e.__datetimeFormatters=N(S)?S.__datetimeFormatters:void 0,e.__numberFormatters=N(S)?S.__numberFormatters:void 0,fe(e)}(),pe(S,c.value,i.value);const W=n({get:()=>c.value,set:e=>{c.value=e,w&&!s&&(w.locale=e),S.locale=c.value}}),A=n({get:()=>i.value,set:e=>{i.value=e,w&&!s&&(w.fallbackLocale=e),S.fallbackLocale=i.value,pe(S,c.value,e)}}),$=n((()=>m.value)),D=n((()=>p.value)),M=n((()=>d.value));function U(e,t,n,r,a,s){let l;if(c.value,i.value,m.value,p.value,d.value,l=e(S),u(l)&&-1===l){const[e,n]=t();return o&&E?r(o):a(e)}if(s(l))return l;throw Error(Se.UNEXPECTED_RETURN_TYPE)}function j(...e){return U((t=>Reflect.apply(ye,null,[t,...e])),(()=>Ee(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const V={normalize:function(e){return e.map((e=>v(e)?He(e):e))},interpolate:e=>e,type:"vnode"};function G(e){return m.value[e]||{}}Je++,o&&(r(o.locale,(e=>{l&&(c.value=e,w&&!s&&(w.locale=e),S.locale=e,pe(S,c.value,i.value))})),r(o.fallbackLocale,(e=>{l&&(i.value=e,w&&!s&&(w.fallbackLocale=e),S.fallbackLocale=e,pe(S,c.value,i.value))})));const B={id:Je,locale:W,fallbackLocale:A,get inheritLocale(){return l},set inheritLocale(e){l=e,w&&(w._sync=e),e&&o&&(c.value=o.locale.value,i.value=o.fallbackLocale.value,w&&(w.locale=o.locale.value,w.fallbackLocale=o.fallbackLocale.value),pe(S,c.value,i.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return P},get pluralRules(){return x||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return h},set fallbackWarn(e){h=e,S.fallbackWarn=h},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,S.fallbackFormat=T},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,S.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,S.escapeParameter=e},t:j,getLocaleMessage:G,setLocaleMessage:function(e,t){m.value[e]=t,w&&w.setLocaleMessage(e,t),S.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},w&&w.mergeLocaleMessage(e,t),Be(t,m.value[e]),S.messages=m.value},getPostTranslationHandler:function(){return k(C)?C:null},setPostTranslationHandler:function(e){C=e,S.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(O=ze(e)),I=e,S.missing=O},[$e]:function(e){x=e,S.pluralRules=x}};return B.datetimeFormats=D,B.numberFormats=M,B.rt=function(...e){const[t,n,r]=e;if(r&&!L(r))throw Error(Se.INVALID_ARGUMENT);return j(t,n,_({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(v(t)?t:c.value);return null!==S.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=ne(S,i.value,c.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=S.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},B.d=function(...e){return U((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},B.n=function(...e){return U((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},B.getDateTimeFormat=function(e){return p.value[e]||{}},B.setDateTimeFormat=function(e,t){p.value[e]=t,w&&w.setDateTimeFormat(e,t),S.datetimeFormats=p.value,Ie(S,e,t)},B.mergeDateTimeFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),S.datetimeFormats=p.value,Ie(S,e,t)},B.getNumberFormat=function(e){return d.value[e]||{}},B.setNumberFormat=function(e,t){d.value[e]=t,w&&w.setNumberFormat(e,t),S.numberFormats=d.value,Fe(S,e,t)},B.mergeNumberFormat=function(e,t){d.value[e]=_(d.value[e]||{},t),w&&w.mergeNumberFormat(e,t),S.numberFormats=d.value,Fe(S,e,t)},B[Me]=t.__injectWithOption,B[xe]=function(...e){return U((t=>{let n;const r=t;try{r.processor=V,n=Reflect.apply(ye,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ee(...e)),0,(t=>t[xe](...e)),(e=>[He(e)]),(e=>b(e)))},B[We]=function(...e){return U((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>t[We](...e)),(()=>[]),(e=>v(e)||b(e)))},B[Ae]=function(...e){return U((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Ce(...e)),0,(t=>t[Ae](...e)),(()=>[]),(e=>v(e)||b(e)))},B[De]=w,B}const Xe={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const qe={name:"i18n-t",props:_({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>u(e)||!isNaN(e)}},Xe),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||st({useScope:e.scope,__useComponent:!0}),s=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=v(e.plural)?+e.plural:e.plural);const l=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,s),c=o[xe](e.keypath,l,n),i=_({},r),u=v(e.tag)||L(e.tag)?e.tag:"span";return a(u,i,c)}}};function Ke(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const t={part:!0};let l={};e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:L(e.format)&&(v(e.format.key)&&(t.key=e.format.key),l=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?_({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,l);let i=[t.key];b(c)?i=c.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:c}):[e.value]})):v(c)&&(i=[c]);const u=_({},s),f=v(e.tag)||L(e.tag)?e.tag:"span";return a(f,u,i)}}const Ze=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Qe={name:"i18n-n",props:_({value:{type:Number,required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||st({useScope:"parent",__useComponent:!0});return Ke(e,t,Ze,((...e)=>n[Ae](...e)))}},et=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],tt={name:"i18n-d",props:_({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||st({useScope:"parent",__useComponent:!0});return Ke(e,t,et,((...e)=>n[We](...e)))}};let nt=null,rt=null;const at=c("global-vue-i18n");function ot(e={},t){if(rt)return rt;nt=t;const n=!y(e.legacy)||e.legacy,r=!y(e.globalInjection)||e.globalInjection,a=new Map,o=function(e,t,n){if(!Ue(n))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ye(e,n)}(e,0,t);c("");{const e=o[De];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>a}),Object.defineProperty(e,"install",{value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Se.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=N(t[0])?t[0]:{};(!y(n.globalInstall)||n.globalInstall)&&(e.component(qe.name,qe),e.component(Qe.name,Qe),e.component(tt.name,tt))}(t,...a),!n&&r&&function(e,t,n){t.watchLocale(n),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])}}(t,e,o),t.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=>Be(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(N(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=>Be(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&N(r)&&Be(r,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||N(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,nt))}});const t={__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),rt=e,e}}function st(e={}){const n=t();if(null==n)throw Error(Se.MUST_BE_CALL_SETUP_TOP);if(null==nt||null==rt)throw Error(Se.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Se.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=rt),!n)throw Error(Se.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),l=function(e){return e.proxy.$options}(n),c=function(e,t){return m(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===c)return function(e,t,n){let r=L(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ve(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),L(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(L(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,l),a;if("parent"===c){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Me]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Se.NOT_AVAILABLE_IN_LEGACY_MODE);const i=r;let u=i.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in l&&(t.__i18n=l.__i18n),a&&(t.__root=a),u=Ye(t,nt),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Se.UNEXPECTED_ERROR);const a=n[De];if(a===e)throw Error(Se.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let l=!1;o((()=>{r._i18n.subscribeDataChanging(r),l=!0}),t),s((()=>{l&&(r._i18n.unsubscribeDataChanging(r),l=!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}),t)}}(i,n,u),i.__setInstance(n,u)}return u}const lt=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var ct;ct=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=de[n];if(r)return r;let a=!1;const o=t.onError||O;t.onError=e=>{a=!0,o(e)};const{code:s}=V(e,t),l=new Function(`return ${s}`)();return a?l:de[n]=l}},le=ct,ce=function(e,t){if(!L(e))return null;let n=z.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){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=J(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=H(n),c=G[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&z.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a},ie=ne;export{tt as DatetimeFormat,at as I18nInjectionKey,Qe as NumberFormat,qe as Translation,Re as VERSION,lt as castToVueI18n,ot as createI18n,st as useI18n};
import{ref as e,getCurrentInstance as t,computed as n,watch as r,h as a,onBeforeMount as o,onUnmounted as s}from"@vue/composition-api";const l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,c=e=>l?Symbol(e):e,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"==typeof e&&isFinite(e),f=e=>"[object RegExp]"===T(e),m=e=>N(e)&&0===Object.keys(e).length;function p(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _=Object.assign;function d(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const g=Object.prototype.hasOwnProperty;function h(e,t){return g.call(e,t)}const b=Array.isArray,k=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,E=Object.prototype.toString,T=e=>E.call(e),N=e=>"[object Object]"===T(e),I=15;function O(e){throw e}function C(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const F=String.fromCharCode(8232),R=String.fromCharCode(8233);function P(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],l=e=>t[e]===R,c=e=>t[e]===F,i=e=>s(e)||(e=>"\n"===t[e])(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?"\n":t[e];function f(){return o=0,i(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:f,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;)f();o=0}}}const w=void 0;function S(e,t={}){const n=!1!==t.location,r=P(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},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,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 p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function _(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function d(e){const t=_(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 h(e,t){const{currentType:n}=t;if(2!==n)return!1;_(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 b(e){_(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(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||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===w?w:t(n)?(e.next(),n):null}function y(e){return v(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 v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function E(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=L(e);)n+=t;return n}function N(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=E(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){d(e);const t=p(e,"|");return d(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&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(),n=R(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,S(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(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=y(e);)n+=t;return e.currentChar()===w&&o(),n}(e)),d(e),n;if(a=h(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===w&&o(),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;_(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=v(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===w?(o(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){d(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,d(e),n}return n}function R(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||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 b(e)?(r=f(t,1,O(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)?(d(e),R(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;_(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=y(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||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?F(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,S(e,t))}}function S(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return R(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return R(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===w?f(c,14):S(r,c)},currentOffset:a,currentPosition:o,context:i}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function A(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(x,W),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}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:s}=n,l=r(8,o,s);return 12!==t.type?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,$(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&&(t.lastStartLoc,$(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,$(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&&(t.lastStartLoc,$(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,$(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,$(o)),n.key=c(e,o.value||"");break;default: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 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&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,$(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 f(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 c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=S(n,_({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function $(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function D(e,t){for(let n=0;n<e.length;n++)M(e[n],t)}function M(e,t){switch(e.type){case 1:D(e.cases,t),t.helper("plural");break;case 2:D(e.items,t);break;case 6:M(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function U(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&&M(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function j(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?j(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(j(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let n=0;n<a&&(j(e,t.items[n]),n!==a-1);n++)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(")")}(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)}}function V(e,t={}){const n=_({},t),r=A(n).parse(e);return U(r,n),((e,t={})=>{const n=v(t.mode)?t.mode:"normal",r=v(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||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),j(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const G=[];G[0]={w:[0],i:[3,0],"[":[4],o:[7]},G[1]={w:[1],".":[2],"[":[4],o:[7]},G[2]={w:[2],i:[3,0],0:[3,0]},G[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},G[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},G[5]={"'":[4,0],o:8,l:[5,0]},G[6]={'"':[4,0],o:8,l:[6,0]};const B=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H(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 J(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,B.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const z=new Map;function Y(e,t){return L(e)?e[t]:null}const X=e=>e,q=e=>"",K=e=>0===e.length?"":e.join(""),Z=e=>null==e?"":b(e)||N(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function Q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ee(e={}){const t=e.locale,n=function(e){const t=u(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(u(e.named.count)||u(e.named.n))?u(e.named.count)?e.named.count:u(e.named.n)?e.named.n:t:t}(e),r=L(e.pluralRules)&&v(t)&&k(e.pluralRules[t])?e.pluralRules[t]:Q,a=L(e.pluralRules)&&v(t)&&k(e.pluralRules[t])?Q:void 0,o=e.list||[],s=e.named||{};u(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function l(t){const n=k(e.messages)?e.messages(t):!!L(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):q)}const c=N(e.processor)&&k(e.processor.normalize)?e.processor.normalize:K,i=N(e.processor)&&k(e.processor.interpolate)?e.processor.interpolate:Z,f={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=l(t)(f);return v(n)?(a=n,e.modifiers?e.modifiers[a]:X)(r):r;var a},message:l,type:N(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return f}function te(e,t,n){return[...new Set([n,...b(t)?t:L(t)?Object.keys(t):v(t)?[t]:[n]])]}function ne(e,t,n){const r=v(n)?n:se,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;b(e);)e=re(o,e,t);const s=b(t)||!N(t)?t:t.default?t.default:null;e=v(s)?[s]:s,b(e)&&re(o,e,!1),a.__localeChainCache.set(r,o)}return o}function re(e,t,n){let r=!0;for(let a=0;a<t.length&&y(r);a++){const o=t[a];v(o)&&(r=ae(e,t[a],n))}return r}function ae(e,t,n){let r;const a=t.split("-");do{r=oe(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function oe(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),(b(n)||N(n))&&n[a]&&(r=n[a])}return r}const se="en-US";let le,ce,ie;let ue=0;function fe(e={}){const t=v(e.version)?e.version:"9.2.0-beta.23",n=v(e.locale)?e.locale:se,r=b(e.fallbackLocale)||N(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=N(e.messages)?e.messages:{[n]:{}},o=N(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=N(e.numberFormats)?e.numberFormats:{[n]:{}},l=_({},e.modifiers||{},{upper:e=>v(e)?e.toUpperCase():e,lower:e=>v(e)?e.toLowerCase():e,capitalize:e=>v(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=k(e.missing)?e.missing:null,u=!y(e.missingWarn)&&!f(e.missingWarn)||e.missingWarn,m=!y(e.fallbackWarn)&&!f(e.fallbackWarn)||e.fallbackWarn,d=!!e.fallbackFormat,g=!!e.unresolving,h=k(e.postTranslation)?e.postTranslation:null,E=N(e.processor)?e.processor:null,T=!y(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=k(e.messageCompiler)?e.messageCompiler:le,C=k(e.messageResolver)?e.messageResolver:ce||Y,F=k(e.localeFallbacker)?e.localeFallbacker:ie||te,R=k(e.onWarn)?e.onWarn:p,P=e,w=L(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,S=L(P.__numberFormatters)?P.__numberFormatters:new Map,x=L(P.__meta)?P.__meta:{};ue++;const W={version:t,cid:ue,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:m,fallbackFormat:d,unresolving:g,postTranslation:h,processor:E,warnHtmlMessage:T,escapeParameter:I,messageCompiler:O,messageResolver:C,localeFallbacker:F,onWarn:R,__meta:x};return W.datetimeFormats=o,W.numberFormats=s,W.__datetimeFormatters=w,W.__numberFormatters=S,W}function me(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return v(r)?r:t}return t}function pe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const _e=e=>e;let de=Object.create(null);let ge=I;const he=()=>ge++,be={INVALID_ARGUMENT:ge,INVALID_DATE_ARGUMENT:he(),INVALID_ISO_DATE_ARGUMENT:he(),__EXTEND_POINT__:he()},ke=()=>"",ve=e=>k(e);function ye(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,i]=Ee(...t),f=(y(i.missingWarn)?i.missingWarn:e.missingWarn,y(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,y(i.escapeParameter)?i.escapeParameter:e.escapeParameter),m=!!i.resolvedMessage,p=v(i.default)||y(i.default)?y(i.default)?c:i.default:n?o?c:()=>c:"",_=n||""!==p,g=v(i.locale)?i.locale:e.locale;f&&function(e){b(e.list)?e.list=e.list.map((e=>v(e)?d(e):e)):L(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=d(e.named[t]))}))}(i);let[h,E,T]=m?[c,g,l[g]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const _="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!v(p)&&!k(p));n++){const n=me(e,t,f,0,_);n!==t&&(p=n)}return[p,f,m]}(e,c,g,s),N=h,I=c;if(m||v(N)||ve(N)||_&&(N=p,I=N),!(m||(v(N)||ve(N))&&v(E)))return a?-1:c;let O=!1;const C=ve(N)?N:Le(e,c,E,N,I,(()=>{O=!0}));if(O)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s}=e,l=r=>{const a=s(n,r);if(v(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?ke:o}return ve(a)?a:ke},c={locale:t,modifiers:a,pluralRules:o,messages:l};e.processor&&(c.processor=e.processor);r.list&&(c.list=r.list);r.named&&(c.named=r.named);u(r.plural)&&(c.pluralIndex=r.plural);return c}(e,E,T,i),R=function(e,t,n){return t(n)}(0,C,ee(F));return r?r(R):R}function Le(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(ve(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>i({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,l,o));return c.locale=n,c.key=t,c.source=r,c}function Ee(...e){const[t,n,r]=e,a={};if(!v(t)&&!u(t)&&!ve(t))throw Error(be.INVALID_ARGUMENT);const o=u(t)?String(t):(ve(t),t);return u(n)?a.plural=n:v(n)?a.default=n:N(n)&&!m(n)?a.named=n:b(n)&&(a.list=n),u(r)?a.plural=r:v(r)?a.default=r:N(r)&&_(a,r),[o,a]}function Te(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,i,u,f]=Ne(...t);y(u.missingWarn)?u.missingWarn:e.missingWarn;y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=v(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!v(c)||""===c)return new Intl.DateTimeFormat(d).format(i);let h,b={},k=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},k=b[c],!N(k));t++)me(e,c,h,0,"datetime format");if(!N(k)||!v(h))return r?-1:c;let L=`${h}__${c}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let E=l.get(L);return E||(E=new Intl.DateTimeFormat(h,_({},k,f)),l.set(L,E)),p?E.formatToParts(i):E.format(i)}function Ne(...e){const[t,n,r,a]=e;let o,s={},l={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(be.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(be.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===T(t)){if(isNaN(t.getTime()))throw Error(be.INVALID_DATE_ARGUMENT);o=t}else{if(!u(t))throw Error(be.INVALID_ARGUMENT);o=t}return v(n)?s.key=n:N(n)&&(s=n),v(r)?s.locale=r:N(r)&&(l=r),N(a)&&(l=a),[s.key||"",o,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Oe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,i,u,f]=Ce(...t);y(u.missingWarn)?u.missingWarn:e.missingWarn;y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=v(u.locale)?u.locale:e.locale,g=s(e,a,d);if(!v(c)||""===c)return new Intl.NumberFormat(d).format(i);let h,b={},k=null;for(let t=0;t<g.length&&(h=g[t],b=n[h]||{},k=b[c],!N(k));t++)me(e,c,h,0,"number format");if(!N(k)||!v(h))return r?-1:c;let L=`${h}__${c}`;m(f)||(L=`${L}__${JSON.stringify(f)}`);let E=l.get(L);return E||(E=new Intl.NumberFormat(h,_({},k,f)),l.set(L,E)),p?E.formatToParts(i):E.format(i)}function Ce(...e){const[t,n,r,a]=e;let o={},s={};if(!u(t))throw Error(be.INVALID_ARGUMENT);const l=t;return v(n)?o.key=n:N(n)&&(o=n),v(r)?o.locale=r:N(r)&&(s=r),N(a)&&(s=a),[o.key||"",l,o,s]}function Fe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Re="9.2.0-beta.23";let Pe=I;const we=()=>Pe++,Se={UNEXPECTED_RETURN_TYPE:Pe,INVALID_ARGUMENT:we(),MUST_BE_CALL_SETUP_TOP:we(),NOT_INSLALLED:we(),NOT_AVAILABLE_IN_LEGACY_MODE:we(),REQUIRED_VALUE:we(),INVALID_VALUE:we(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:we(),NOT_INSLALLED_WITH_PROVIDE:we(),UNEXPECTED_ERROR:we(),NOT_COMPATIBLE_LEGACY_VUE_I18N:we(),BRIDGE_SUPPORT_VUE_2_ONLY:we(),__EXTEND_POINT__:we()},xe=c("__transrateVNode"),We=c("__datetimeParts"),Ae=c("__numberParts"),$e=c("__setPluralRules"),De=c("__legacyVueI18n"),Me=c("__injectWithOption");function Ue(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function je(e){if(!L(e))return e;for(const t in e)if(h(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],L(a[n[r]])&&je(a[n[r]])}else L(e[t])&&je(e[t]);return e}function Ve(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=N(n)?n:b(r)?{}:{[e]:{}};if(b(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Be(n,s[t])):Be(n,s)}else v(e)&&Be(JSON.parse(e),s)})),null==a&&o)for(const e in s)h(s,e)&&je(s[e]);return s}const Ge=e=>!L(e)||b(e);function Be(e,t){if(Ge(e)||Ge(t))throw Error(Se.INVALID_VALUE);for(const n in e)h(e,n)&&(Ge(e[n])||Ge(t[n])?t[n]=e[n]:Be(e[n],t[n]))}function He(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)}let Je=0;function ze(e){return(n,r,a,o)=>e(r,a,t()||void 0,o)}function Ye(t={},a){const{__root:o}=t,s=void 0===o;let l=!y(t.inheritLocale)||t.inheritLocale;const c=e(o&&l?o.locale.value:v(t.locale)?t.locale:se),i=e(o&&l?o.fallbackLocale.value:v(t.fallbackLocale)||b(t.fallbackLocale)||N(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:c.value),m=e(Ve(c.value,t)),p=e(N(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),d=e(N(t.numberFormats)?t.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!y(t.missingWarn)&&!f(t.missingWarn)||t.missingWarn,h=o?o.fallbackWarn:!y(t.fallbackWarn)&&!f(t.fallbackWarn)||t.fallbackWarn,E=o?o.fallbackRoot:!y(t.fallbackRoot)||t.fallbackRoot,T=!!t.fallbackFormat,I=k(t.missing)?t.missing:null,O=k(t.missing)?ze(t.missing):null,C=k(t.postTranslation)?t.postTranslation:null,F=!y(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const P=o?o.modifiers:N(t.modifiers)?t.modifiers:{};let w,S,x=t.pluralRules||o&&o.pluralRules;{Ue(a);const e={locale:c.value,fallbackLocale:i.value,messages:m.value,dateTimeFormats:p.value,numberFormats:d.value,modifiers:P,missing:I,fallbackRoot:E,postTranslation:C,pluralizationRules:x,escapeParameterHtml:R,sync:l,silentFallbackWarn:y(h)?!h:h,silentTranslationWarn:y(g)?!g:g,formatFallbackMessages:y(T)?!T:T,warnHtmlInMessage:y(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};w=new a(e)}S=function(){const e={version:"9.2.0-beta.23",locale:c.value,fallbackLocale:i.value,messages:m.value,modifiers:P,pluralRules:x,missing:null===O?void 0:O,missingWarn:g,fallbackWarn:h,fallbackFormat:T,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:F,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=p.value,e.numberFormats=d.value,e.__datetimeFormatters=N(S)?S.__datetimeFormatters:void 0,e.__numberFormatters=N(S)?S.__numberFormatters:void 0,fe(e)}(),pe(S,c.value,i.value);const W=n({get:()=>c.value,set:e=>{c.value=e,w&&!s&&(w.locale=e),S.locale=c.value}}),A=n({get:()=>i.value,set:e=>{i.value=e,w&&!s&&(w.fallbackLocale=e),S.fallbackLocale=i.value,pe(S,c.value,e)}}),$=n((()=>m.value)),D=n((()=>p.value)),M=n((()=>d.value));function U(e,t,n,r,a,s){let l;if(c.value,i.value,m.value,p.value,d.value,l=e(S),u(l)&&-1===l){const[e,n]=t();return o&&E?r(o):a(e)}if(s(l))return l;throw Error(Se.UNEXPECTED_RETURN_TYPE)}function j(...e){return U((t=>Reflect.apply(ye,null,[t,...e])),(()=>Ee(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const V={normalize:function(e){return e.map((e=>v(e)?He(e):e))},interpolate:e=>e,type:"vnode"};function G(e){return m.value[e]||{}}Je++,o&&(r(o.locale,(e=>{l&&(c.value=e,w&&!s&&(w.locale=e),S.locale=e,pe(S,c.value,i.value))})),r(o.fallbackLocale,(e=>{l&&(i.value=e,w&&!s&&(w.fallbackLocale=e),S.fallbackLocale=e,pe(S,c.value,i.value))})));const B={id:Je,locale:W,fallbackLocale:A,get inheritLocale(){return l},set inheritLocale(e){l=e,w&&(w._sync=e),e&&o&&(c.value=o.locale.value,i.value=o.fallbackLocale.value,w&&(w.locale=o.locale.value,w.fallbackLocale=o.fallbackLocale.value),pe(S,c.value,i.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return P},get pluralRules(){return x||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return h},set fallbackWarn(e){h=e,S.fallbackWarn=h},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,S.fallbackFormat=T},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,S.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,S.escapeParameter=e},t:j,getLocaleMessage:G,setLocaleMessage:function(e,t){m.value[e]=t,w&&w.setLocaleMessage(e,t),S.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},w&&w.mergeLocaleMessage(e,t),Be(t,m.value[e]),S.messages=m.value},getPostTranslationHandler:function(){return k(C)?C:null},setPostTranslationHandler:function(e){C=e,S.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(O=ze(e)),I=e,S.missing=O},[$e]:function(e){x=e,S.pluralRules=x}};return B.datetimeFormats=D,B.numberFormats=M,B.rt=function(...e){const[t,n,r]=e;if(r&&!L(r))throw Error(Se.INVALID_ARGUMENT);return j(t,n,_({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(v(t)?t:c.value);return null!==S.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=ne(S,i.value,c.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=S.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},B.d=function(...e){return U((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},B.n=function(...e){return U((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},B.getDateTimeFormat=function(e){return p.value[e]||{}},B.setDateTimeFormat=function(e,t){p.value[e]=t,w&&w.setDateTimeFormat(e,t),S.datetimeFormats=p.value,Ie(S,e,t)},B.mergeDateTimeFormat=function(e,t){p.value[e]=_(p.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),S.datetimeFormats=p.value,Ie(S,e,t)},B.getNumberFormat=function(e){return d.value[e]||{}},B.setNumberFormat=function(e,t){d.value[e]=t,w&&w.setNumberFormat(e,t),S.numberFormats=d.value,Fe(S,e,t)},B.mergeNumberFormat=function(e,t){d.value[e]=_(d.value[e]||{},t),w&&w.mergeNumberFormat(e,t),S.numberFormats=d.value,Fe(S,e,t)},B[Me]=t.__injectWithOption,B[xe]=function(...e){return U((t=>{let n;const r=t;try{r.processor=V,n=Reflect.apply(ye,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ee(...e)),0,(t=>t[xe](...e)),(e=>[He(e)]),(e=>b(e)))},B[We]=function(...e){return U((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ne(...e)),0,(t=>t[We](...e)),(()=>[]),(e=>v(e)||b(e)))},B[Ae]=function(...e){return U((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Ce(...e)),0,(t=>t[Ae](...e)),(()=>[]),(e=>v(e)||b(e)))},B[De]=w,B}const Xe={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const qe={name:"i18n-t",props:_({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>u(e)||!isNaN(e)}},Xe),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||st({useScope:e.scope,__useComponent:!0}),s=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=v(e.plural)?+e.plural:e.plural);const l=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...b(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,s),c=o[xe](e.keypath,l,n),i=_({},r),u=v(e.tag)||L(e.tag)?e.tag:"span";return a(u,i,c)}}};function Ke(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const t={part:!0};let l={};e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:L(e.format)&&(v(e.format.key)&&(t.key=e.format.key),l=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?_({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,l);let i=[t.key];b(c)?i=c.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:c}):[e.value]})):v(c)&&(i=[c]);const u=_({},s),f=v(e.tag)||L(e.tag)?e.tag:"span";return a(f,u,i)}}const Ze=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Qe={name:"i18n-n",props:_({value:{type:Number,required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||st({useScope:"parent",__useComponent:!0});return Ke(e,t,Ze,((...e)=>n[Ae](...e)))}},et=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],tt={name:"i18n-d",props:_({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||st({useScope:"parent",__useComponent:!0});return Ke(e,t,et,((...e)=>n[We](...e)))}};let nt=null,rt=null;const at=c("global-vue-i18n");function ot(e={},t){if(rt)return rt;nt=t;const n=!y(e.legacy)||e.legacy,r=!y(e.globalInjection)||e.globalInjection,a=new Map,o=function(e,t,n){if(!Ue(n))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ye(e,n)}(e,0,t);c("");{const e=o[De];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>a}),Object.defineProperty(e,"install",{value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Se.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=N(t[0])?t[0]:{};(!y(n.globalInstall)||n.globalInstall)&&(e.component(qe.name,qe),e.component(Qe.name,Qe),e.component(tt.name,tt))}(t,...a),!n&&r&&function(e,t,n){t.watchLocale(n),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])}}(t,e,o),t.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=>Be(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(N(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=>Be(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&N(r)&&Be(r,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||N(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,nt))}});const t={__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),rt=e,e}}function st(e={}){const n=t();if(null==n)throw Error(Se.MUST_BE_CALL_SETUP_TOP);if(null==nt||null==rt)throw Error(Se.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Se.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=rt),!n)throw Error(Se.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),l=function(e){return e.proxy.$options}(n),c=function(e,t){return m(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===c)return function(e,t,n){let r=L(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ve(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),L(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(L(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,l),a;if("parent"===c){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Me]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Se.NOT_AVAILABLE_IN_LEGACY_MODE);const i=r;let u=i.__getInstance(n);if(null==u){const t=_({},e);"__i18n"in l&&(t.__i18n=l.__i18n),a&&(t.__root=a),u=Ye(t,nt),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Se.UNEXPECTED_ERROR);const a=n[De];if(a===e)throw Error(Se.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let l=!1;o((()=>{r._i18n.subscribeDataChanging(r),l=!0}),t),s((()=>{l&&(r._i18n.unsubscribeDataChanging(r),l=!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}),t)}}(i,n,u),i.__setInstance(n,u)}return u}const lt=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var ct;ct=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=de[n];if(r)return r;let a=!1;const o=t.onError||O;t.onError=e=>{a=!0,o(e)};const{code:s}=V(e,t),l=new Function(`return ${s}`)();return a?l:de[n]=l}},le=ct,ce=function(e,t){if(!L(e))return null;let n=z.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){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=J(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=H(n),c=G[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&z.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a},ie=ne;export{tt as DatetimeFormat,at as I18nInjectionKey,Qe as NumberFormat,qe as Translation,Re as VERSION,lt as castToVueI18n,ot as createI18n,st as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=e=>n?Symbol(e):e,a=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 RegExp]"===k(e),l=e=>v(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,_=e=>"string"==typeof e,g=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,k=e=>b.call(e),v=e=>"[object Object]"===k(e),y=15;function L(e){throw e}function T(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const E=" ",N="\n",I=String.fromCharCode(8232),C=String.fromCharCode(8233);function O(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&t[e+1]===N,l=e=>t[e]===C,c=e=>t[e]===I,i=e=>s(e)||(e=>t[e]===N)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?N:t[e];function f(){return o=0,i(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:f,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;)f();o=0}}}const F=void 0;function P(e,t={}){const n=!1!==t.location,r=O(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},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,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=T(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;e.currentPeek()===E||e.currentPeek()===N;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function g(e){if(e===F)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===F)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){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(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===E||r===N):o===E?(e.peek(),n(!0,E,a)):o!==N||(e.peek(),n(!0,N,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===F?F:t(n)?(e.next(),n):null}function y(e){return v(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 v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function I(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function C(e){let t="",n="";for(;t=L(e);)n+=t;return n}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return o(),""}}function R(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function w(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=x(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,W(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===F&&o(),n}(e)),_(e),n;if(a=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${C(e)}`):t+=C(e),e.currentChar()===F&&o(),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==N;for(;t=v(e,r);)n+="\\"===t?P(e):t;const a=e.currentChar();return a===N||a===F?(o(),a===N&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==E&&e!==N;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,_(e),n}return n}function x(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==N&&a!==E||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(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;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),x(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=y(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===E||!t)&&(t===N?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?S(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===E?r:a===N?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return x(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return S(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return x(e,t)||m(t);default:if(b(e))return n=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(n===E||n===N)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===F?f(c,14):W(r,c)},currentOffset:a,currentPosition:o,context:i}}const R=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function w(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function S(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(R,w),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(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?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,x(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&&(t.lastStartLoc,x(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,x(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&&(t.lastStartLoc,x(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,x(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,x(o)),n.key=c(e,o.value||"");break;default: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 i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=P(n,i({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function x(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 W(e,t){for(let n=0;n<e.length;n++)A(e[n],t)}function A(e,t){switch(e.type){case 1:W(e.cases,t),t.helper("plural");break;case 2:W(e.items,t);break;case 6:A(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function $(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&&A(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function D(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?D(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&&(D(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 n=0;n<a&&(D(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),D(e,t.key),t.modifier&&(e.push(", "),D(e,t.modifier)),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)}}function M(e,t={}){const n=i({},t),r=S(n).parse(e);return $(r,n),((e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(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||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),D(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const U=[];U[0]={w:[0],i:[3,0],"[":[4],o:[7]},U[1]={w:[1],".":[2],"[":[4],o:[7]},U[2]={w:[2],i:[3,0],0:[3,0]},U[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},U[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},U[5]={"'":[4,0],o:8,l:[5,0]},U[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function j(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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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 B=new Map;function H(e,t){return h(e)?e[t]:null}const J=e=>e,z=e=>"",Y=e=>0===e.length?"":e.join(""),X=e=>null==e?"":p(e)||v(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function K(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=h(e.pluralRules)&&_(t)&&d(e.pluralRules[t])?e.pluralRules[t]:q,a=h(e.pluralRules)&&_(t)&&d(e.pluralRules[t])?q:void 0,s=e.list||[],l=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t){const n=d(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=v(e.processor)&&d(e.processor.normalize)?e.processor.normalize:Y,u=v(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:X,f={list:e=>s[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=c(t)(f);return _(n)?(a=n,e.modifiers?e.modifiers[a]:J)(r):r;var a},message:c,type:v(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Z(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):_(t)?[t]:[n]])]}function Q(e,t,n){const r=_(n)?n:re,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ee(o,e,t);const s=p(t)||!v(t)?t:t.default?t.default:null;e=_(s)?[s]:s,p(e)&&ee(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ee(e,t,n){let r=!0;for(let a=0;a<t.length&&g(r);a++){const o=t[a];_(o)&&(r=te(e,t[a],n))}return r}function te(e,t,n){let r;const a=t.split("-");do{r=ne(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ne(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)||v(n))&&n[a]&&(r=n[a])}return r}const re="en-US";let ae,oe,se;let le=0;function ce(e={}){const t=_(e.version)?e.version:"9.2.0-beta.22",n=_(e.locale)?e.locale:re,r=p(e.fallbackLocale)||v(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=v(e.messages)?e.messages:{[n]:{}},o=v(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=v(e.numberFormats)?e.numberFormats:{[n]:{}},u=i({},e.modifiers||{},{upper:e=>_(e)?e.toUpperCase():e,lower:e=>_(e)?e.toLowerCase():e,capitalize:e=>_(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),f=e.pluralRules||{},m=d(e.missing)?e.missing:null,b=!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,k=!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,L=!!e.unresolving,T=d(e.postTranslation)?e.postTranslation:null,E=v(e.processor)?e.processor:null,N=!g(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=d(e.messageCompiler)?e.messageCompiler:ae,O=d(e.messageResolver)?e.messageResolver:oe||H,F=d(e.localeFallbacker)?e.localeFallbacker:se||Z,P=d(e.onWarn)?e.onWarn:c,R=e,w=h(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,S=h(R.__numberFormatters)?R.__numberFormatters:new Map,x=h(R.__meta)?R.__meta:{};le++;const W={version:t,cid:le,locale:n,fallbackLocale:r,messages:a,modifiers:u,pluralRules:f,missing:m,missingWarn:b,fallbackWarn:k,fallbackFormat:y,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:F,onWarn:P,__meta:x};return W.datetimeFormats=o,W.numberFormats=l,W.__datetimeFormatters=w,W.__numberFormatters=S,W}function ie(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const fe=e=>e;let me=Object.create(null);let pe=y;const de=()=>pe++,_e={INVALID_ARGUMENT:pe,INVALID_DATE_ARGUMENT:de(),INVALID_ISO_DATE_ARGUMENT:de(),__EXTEND_POINT__:de()},ge=()=>"",he=e=>d(e);function be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:l,messages:c}=e,[i,f]=ve(...t),m=(g(f.missingWarn)?f.missingWarn:e.missingWarn,g(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,g(f.escapeParameter)?f.escapeParameter:e.escapeParameter),b=!!f.resolvedMessage,k=_(f.default)||g(f.default)?g(f.default)?i:f.default:n?s?i:()=>i:"",v=n||""!==k,y=_(f.locale)?f.locale:e.locale;m&&function(e){p(e.list)?e.list=e.list.map((e=>_(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(f);let[L,T,E]=b?[i,y,c[y]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const g="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!d(p));n++){const n=ie(e,t,f,0,g);n!==t&&(p=n)}return[p,f,m]}(e,i,y,l),N=L,I=i;if(b||_(N)||he(N)||v&&(N=k,I=N),!(b||(_(N)||he(N))&&_(T)))return a?-1:i;let C=!1;const O=he(N)?N:ke(e,i,T,N,I,(()=>{C=!0}));if(C)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:l}=e,c=r=>{const a=l(n,r);if(_(a)){let n=!1;const o=ke(e,r,t,a,r,(()=>{n=!0}));return n?ge:o}return he(a)?a:ge},i={locale:t,modifiers:a,pluralRules:s,messages:c};e.processor&&(i.processor=e.processor);r.list&&(i.list=r.list);r.named&&(i.named=r.named);o(r.plural)&&(i.pluralIndex=r.plural);return i}(e,T,E,f),P=function(e,t,n){return t(n)}(0,O,K(F));return r?r(P):P}function ke(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=l(r,function(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>a({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function ve(...e){const[t,n,r]=e,a={};if(!_(t)&&!o(t)&&!he(t))throw Error(_e.INVALID_ARGUMENT);const s=o(t)?String(t):(he(t),t);return o(n)?a.plural=n:_(n)?a.default=n:v(n)&&!l(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:_(r)?a.default=r:v(r)&&i(a,r),[s,a]}function ye(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e,[u,f,m,p]=Le(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,h=_(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!_(u)||""===u)return new Intl.DateTimeFormat(h).format(f);let k,y={},L=null;for(let t=0;t<b.length&&(k=b[t],y=n[k]||{},L=y[u],!v(L));t++)ie(e,u,k,0,"datetime format");if(!v(L)||!_(k))return r?-1:u;let T=`${k}__${u}`;l(p)||(T=`${T}__${JSON.stringify(p)}`);let E=c.get(T);return E||(E=new Intl.DateTimeFormat(k,i({},L,p)),c.set(T,E)),d?E.formatToParts(f):E.format(f)}function Le(...e){const[t,n,r,a]=e;let s,l={},c={};if(_(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(_e.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(e){throw Error(_e.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(_e.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(_e.INVALID_ARGUMENT);s=t}return _(n)?l.key=n:v(n)&&(l=n),_(r)?l.locale=r:v(r)&&(c=r),v(a)&&(c=a),[l.key||"",s,l,c]}function Te(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ee(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e,[u,f,m,p]=Ne(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,h=_(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!_(u)||""===u)return new Intl.NumberFormat(h).format(f);let k,y={},L=null;for(let t=0;t<b.length&&(k=b[t],y=n[k]||{},L=y[u],!v(L));t++)ie(e,u,k,0,"number format");if(!v(L)||!_(k))return r?-1:u;let T=`${k}__${u}`;l(p)||(T=`${T}__${JSON.stringify(p)}`);let E=c.get(T);return E||(E=new Intl.NumberFormat(k,i({},L,p)),c.set(T,E)),d?E.formatToParts(f):E.format(f)}function Ne(...e){const[t,n,r,a]=e;let s={},l={};if(!o(t))throw Error(_e.INVALID_ARGUMENT);const c=t;return _(n)?s.key=n:v(n)&&(s=n),_(r)?s.locale=r:v(r)&&(l=r),v(a)&&(l=a),[s.key||"",c,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ce="9.2.0-beta.22";let Oe=y;const Fe=()=>Oe++,Pe={UNEXPECTED_RETURN_TYPE:Oe,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSLALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSLALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),__EXTEND_POINT__:Fe()},Re=r("__transrateVNode"),we=r("__datetimeParts"),Se=r("__numberParts"),xe=r("__setPluralRules"),We=r("__legacyVueI18n"),Ae=r("__injectWithOption"),$e="__VUE_I18N_BRIDGE__";function De(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Me(e){if(!h(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],h(a[n[r]])&&Me(a[n[r]])}else h(e[t])&&Me(e[t]);return e}function Ue(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=v(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?(s[t]=s[t]||{},je(n,s[t])):je(n,s)}else _(e)&&je(JSON.parse(e),s)})),null==a&&o)for(const e in s)m(s,e)&&Me(s[e]);return s}const Ve=e=>!h(e)||p(e);function je(e,t){if(Ve(e)||Ve(t))throw Error(Pe.INVALID_VALUE);for(const n in e)m(e,n)&&(Ve(e[n])||Ve(t[n])?t[n]=e[n]:je(e[n],t[n]))}function Ge(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)}let Be=0;function He(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Je(e={},n){const{__root:r}=e,a=void 0===r;let l=!g(e.inheritLocale)||e.inheritLocale;const c=t.ref(r&&l?r.locale.value:_(e.locale)?e.locale:re),u=t.ref(r&&l?r.fallbackLocale.value:_(e.fallbackLocale)||p(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Ue(c.value,e)),m=t.ref(v(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),b=t.ref(v(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=r?r.missingWarn:!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,y=r?r.fallbackWarn:!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=r?r.fallbackRoot:!g(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,E=d(e.missing)?e.missing:null,N=d(e.missing)?He(e.missing):null,I=d(e.postTranslation)?e.postTranslation:null,C=!g(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const F=r?r.modifiers:v(e.modifiers)?e.modifiers:{};let P,R,w=e.pluralRules||r&&r.pluralRules;{De(n);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:b.value,modifiers:F,missing:E,fallbackRoot:L,postTranslation:I,pluralizationRules:w,escapeParameterHtml:O,sync:l,silentFallbackWarn:g(y)?!y:y,silentTranslationWarn:g(k)?!k:k,formatFallbackMessages:g(T)?!T:T,warnHtmlInMessage:g(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:$e};P=new n(e)}R=function(){const t={version:Ce,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:F,pluralRules:w,missing:null===N?void 0:N,missingWarn:k,fallbackWarn:y,fallbackFormat:T,unresolving:!0,postTranslation:null===I?void 0:I,warnHtmlMessage:C,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=m.value,t.numberFormats=b.value,t.__datetimeFormatters=v(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=v(R)?R.__numberFormatters:void 0,ce(t)}(),ue(R,c.value,u.value);const S=t.computed({get:()=>c.value,set:e=>{c.value=e,P&&!a&&(P.locale=e),R.locale=c.value}}),x=t.computed({get:()=>u.value,set:e=>{u.value=e,P&&!a&&(P.fallbackLocale=e),R.fallbackLocale=u.value,ue(R,c.value,e)}}),W=t.computed((()=>f.value)),A=t.computed((()=>m.value)),$=t.computed((()=>b.value));function D(e,t,n,a,s,l){let i;if(c.value,u.value,f.value,m.value,b.value,i=e(R),o(i)&&-1===i){const[e,n]=t();return r&&L?a(r):s(e)}if(l(i))return i;throw Error(Pe.UNEXPECTED_RETURN_TYPE)}function M(...e){return D((t=>Reflect.apply(be,null,[t,...e])),(()=>ve(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const U={normalize:function(e){return e.map((e=>_(e)?Ge(e):e))},interpolate:e=>e,type:"vnode"};function V(e){return f.value[e]||{}}Be++,r&&(t.watch(r.locale,(e=>{l&&(c.value=e,P&&!a&&(P.locale=e),R.locale=e,ue(R,c.value,u.value))})),t.watch(r.fallbackLocale,(e=>{l&&(u.value=e,P&&!a&&(P.fallbackLocale=e),R.fallbackLocale=e,ue(R,c.value,u.value))})));const j={id:Be,locale:S,fallbackLocale:x,get inheritLocale(){return l},set inheritLocale(e){l=e,P&&(P._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,P&&(P.locale=r.locale.value,P.fallbackLocale=r.fallbackLocale.value),ue(R,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:W,get modifiers(){return F},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return k},set missingWarn(e){k=e,R.missingWarn=k},get fallbackWarn(){return y},set fallbackWarn(e){y=e,R.fallbackWarn=y},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,R.fallbackFormat=T},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,R.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,R.escapeParameter=e},t:M,getLocaleMessage:V,setLocaleMessage:function(e,t){f.value[e]=t,P&&P.setLocaleMessage(e,t),R.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},P&&P.mergeLocaleMessage(e,t),je(t,f.value[e]),R.messages=f.value},getPostTranslationHandler:function(){return d(I)?I:null},setPostTranslationHandler:function(e){I=e,R.postTranslation=e},getMissingHandler:function(){return E},setMissingHandler:function(e){null!==e&&(N=He(e)),E=e,R.missing=N},[xe]:function(e){w=e,R.pluralRules=w}};return j.datetimeFormats=A,j.numberFormats=$,j.rt=function(...e){const[t,n,r]=e;if(r&&!h(r))throw Error(Pe.INVALID_ARGUMENT);return M(t,n,i({resolvedMessage:!0},r||{}))},j.te=function(e,t){const n=V(_(t)?t:c.value);return null!==R.messageResolver(n,e)},j.tm=function(e){const t=function(e){let t=null;const n=Q(R,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=R.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},j.d=function(...e){return D((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},j.n=function(...e){return D((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},j.getDateTimeFormat=function(e){return m.value[e]||{}},j.setDateTimeFormat=function(e,t){m.value[e]=t,P&&P.setDateTimeFormat(e,t),R.datetimeFormats=m.value,Te(R,e,t)},j.mergeDateTimeFormat=function(e,t){m.value[e]=i(m.value[e]||{},t),P&&P.mergeDateTimeFormat(e,t),R.datetimeFormats=m.value,Te(R,e,t)},j.getNumberFormat=function(e){return b.value[e]||{}},j.setNumberFormat=function(e,t){b.value[e]=t,P&&P.setNumberFormat(e,t),R.numberFormats=b.value,Ie(R,e,t)},j.mergeNumberFormat=function(e,t){b.value[e]=i(b.value[e]||{},t),P&&P.mergeNumberFormat(e,t),R.numberFormats=b.value,Ie(R,e,t)},j[Ae]=e.__injectWithOption,j[Re]=function(...e){return D((t=>{let n;const r=t;try{r.processor=U,n=Reflect.apply(be,null,[r,...e])}finally{r.processor=null}return n}),(()=>ve(...e)),0,(t=>t[Re](...e)),(e=>[Ge(e)]),(e=>p(e)))},j[we]=function(...e){return D((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),0,(t=>t[we](...e)),(()=>[]),(e=>_(e)||p(e)))},j[Se]=function(...e){return D((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ne(...e)),0,(t=>t[Se](...e)),(()=>[]),(e=>_(e)||p(e)))},j[We]=P,j}const ze={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ye={name:"i18n-t",props:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},ze),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||rt({useScope:e.scope,__useComponent:!0}),s=Object.keys(r).filter((e=>"_"!==e));return()=>{const r={};e.locale&&(r.locale=e.locale),void 0!==e.plural&&(r.plural=_(e.plural)?+e.plural:e.plural);const l=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,s),c=o[Re](e.keypath,l,r),u=i({},a),f=_(e.tag)||h(e.tag)?e.tag:"span";return t.h(f,u,c)}}};function Xe(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:h(e.format)&&(_(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,l);let u=[n.key];p(c)?u=c.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:c}):[e.value]})):_(c)&&(u=[c]);const f=i({},s),m=_(e.tag)||h(e.tag)?e.tag:"span";return t.h(m,f,u)}}const qe=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Ke={name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},ze),setup(e,t){const n=e.i18n||rt({useScope:"parent",__useComponent:!0});return Xe(e,t,qe,((...e)=>n[Se](...e)))}},Ze=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Qe={name:"i18n-d",props:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ze),setup(e,t){const n=e.i18n||rt({useScope:"parent",__useComponent:!0});return Xe(e,t,Ze,((...e)=>n[we](...e)))}};let et=null,tt=null;const nt=r("global-vue-i18n");function rt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Pe.MUST_BE_CALL_SETUP_TOP);if(null==et||null==tt)throw Error(Pe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=tt),!n)throw Error(Pe.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),o=function(e){return e.proxy.$options}(n),s=function(e,t){return l(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return function(e,t,n){let r=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ue(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Ae]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Pe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=r;let u=c.__getInstance(n);if(null==u){const r=i({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),u=Je(r,et),function(e,n,r){{const a=n.proxy;if(null==a)throw Error(Pe.UNEXPECTED_ERROR);const o=r[We];if(o===e)throw Error(Pe.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;t.onBeforeMount((()=>{a._i18n.subscribeDataChanging(a),s=!0}),n),t.onUnmounted((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),n)}}(c,n,u),c.__setInstance(n,u)}return u}var at;return at=function(e,t={}){{const n=(t.onCacheKey||fe)(e),r=me[n];if(r)return r;let a=!1;const o=t.onError||L;t.onError=e=>{a=!0,o(e)};const{code:s}=M(e,t),l=new Function(`return ${s}`)();return a?l:me[n]=l}},ae=at,oe=function(e,t){if(!h(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){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=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=j(n),c=U[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&B.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a},se=Q,e.DatetimeFormat=Qe,e.I18nInjectionKey=nt,e.NumberFormat=Ke,e.Translation=Ye,e.VERSION=Ce,e.castToVueI18n=e=>{if(!($e in e))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(tt)return tt;et=t;const n=!g(e.legacy)||e.legacy,a=!g(e.globalInjection)||e.globalInjection,o=new Map,s=function(e,t,n){if(!De(n))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Je(e,n)}(e,0,t);r("");{const e=s[We];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:(t,...r)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Pe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=v(t[0])?t[0]:{};(!g(n.globalInstall)||n.globalInstall)&&(e.component(Ye.name,Ye),e.component(Ke.name,Ke),e.component(Qe.name,Qe))}(t,...r),!n&&a&&function(e,t,n){t.watchLocale(n),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])}}(t,e,s),t.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=>je(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(v(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=>je(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&v(r)&&je(r,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||v(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,et))}});const t={__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(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),tt=e,e}},e.useI18n=rt,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=e=>n?Symbol(e):e,a=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 RegExp]"===k(e),l=e=>v(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,_=e=>"string"==typeof e,g=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,k=e=>b.call(e),v=e=>"[object Object]"===k(e),y=15;function L(e){throw e}function T(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const E=" ",N="\n",I=String.fromCharCode(8232),C=String.fromCharCode(8233);function O(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>"\r"===t[e]&&t[e+1]===N,l=e=>t[e]===C,c=e=>t[e]===I,i=e=>s(e)||(e=>t[e]===N)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?N:t[e];function f(){return o=0,i(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:f,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;)f();o=0}}}const F=void 0;function P(e,t={}){const n=!1!==t.location,r=O(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},s=o(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,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=T(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;e.currentPeek()===E||e.currentPeek()===N;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function g(e){if(e===F)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===F)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){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(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===E||r===N):o===E?(e.peek(),n(!0,E,a)):o!==N||(e.peek(),n(!0,N,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===F?F:t(n)?(e.next(),n):null}function y(e){return v(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 v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function I(e){return v(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function C(e){let t="",n="";for(;t=L(e);)n+=t;return n}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return o(),""}}function R(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function w(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=x(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,W(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===F&&o(),n}(e)),_(e),n;if(a=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${C(e)}`):t+=C(e),e.currentChar()===F&&o(),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==N;for(;t=v(e,r);)n+="\\"===t?P(e):t;const a=e.currentChar();return a===N||a===F?(o(),a===N&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==E&&e!==N;for(;t=v(e,r);)n+=t;return n}(e)),o(),n.value,_(e),n}return n}function x(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==N&&a!==E||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(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;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),x(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=y(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===E||!t)&&(t===N?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?S(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===E?r:a===N?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return x(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return S(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return x(e,t)||m(t);default:if(b(e))return n=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,n;if(k(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(n===E||n===N)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===F?f(c,14):W(r,c)},currentOffset:a,currentPosition:o,context:i}}const R=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function w(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function S(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(R,w),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(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?(n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(n.lastStartLoc,x(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&&(t.lastStartLoc,x(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,x(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&&(t.lastStartLoc,x(o)),n.key=l(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,x(o)),n.key=s(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,x(o)),n.key=c(e,o.value||"");break;default: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 i=null;do{const r=i||e.nextToken();switch(i=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),i=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=P(n,i({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function x(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 W(e,t){for(let n=0;n<e.length;n++)A(e[n],t)}function A(e,t){switch(e.type){case 1:W(e.cases,t),t.helper("plural");break;case 2:W(e.items,t);break;case 6:A(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function $(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&&A(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function D(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?D(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&&(D(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 n=0;n<a&&(D(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),D(e,t.key),t.modifier&&(e.push(", "),D(e,t.modifier)),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)}}function M(e,t={}){const n=i({},t),r=S(n).parse(e);return $(r,n),((e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(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||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),D(c,e),c.deindent(s),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const U=[];U[0]={w:[0],i:[3,0],"[":[4],o:[7]},U[1]={w:[1],".":[2],"[":[4],o:[7]},U[2]={w:[2],i:[3,0],0:[3,0]},U[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},U[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},U[5]={"'":[4,0],o:8,l:[5,0]},U[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function j(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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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 B=new Map;function H(e,t){return h(e)?e[t]:null}const J=e=>e,z=e=>"",Y=e=>0===e.length?"":e.join(""),X=e=>null==e?"":p(e)||v(e)&&e.toString===b?JSON.stringify(e,null,2):String(e);function q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function K(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=h(e.pluralRules)&&_(t)&&d(e.pluralRules[t])?e.pluralRules[t]:q,a=h(e.pluralRules)&&_(t)&&d(e.pluralRules[t])?q:void 0,s=e.list||[],l=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t){const n=d(e.messages)?e.messages(t):!!h(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=v(e.processor)&&d(e.processor.normalize)?e.processor.normalize:Y,u=v(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:X,f={list:e=>s[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=c(t)(f);return _(n)?(a=n,e.modifiers?e.modifiers[a]:J)(r):r;var a},message:c,type:v(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Z(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):_(t)?[t]:[n]])]}function Q(e,t,n){const r=_(n)?n:re,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ee(o,e,t);const s=p(t)||!v(t)?t:t.default?t.default:null;e=_(s)?[s]:s,p(e)&&ee(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ee(e,t,n){let r=!0;for(let a=0;a<t.length&&g(r);a++){const o=t[a];_(o)&&(r=te(e,t[a],n))}return r}function te(e,t,n){let r;const a=t.split("-");do{r=ne(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ne(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)||v(n))&&n[a]&&(r=n[a])}return r}const re="en-US";let ae,oe,se;let le=0;function ce(e={}){const t=_(e.version)?e.version:"9.2.0-beta.23",n=_(e.locale)?e.locale:re,r=p(e.fallbackLocale)||v(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=v(e.messages)?e.messages:{[n]:{}},o=v(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=v(e.numberFormats)?e.numberFormats:{[n]:{}},u=i({},e.modifiers||{},{upper:e=>_(e)?e.toUpperCase():e,lower:e=>_(e)?e.toLowerCase():e,capitalize:e=>_(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),f=e.pluralRules||{},m=d(e.missing)?e.missing:null,b=!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,k=!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,L=!!e.unresolving,T=d(e.postTranslation)?e.postTranslation:null,E=v(e.processor)?e.processor:null,N=!g(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,C=d(e.messageCompiler)?e.messageCompiler:ae,O=d(e.messageResolver)?e.messageResolver:oe||H,F=d(e.localeFallbacker)?e.localeFallbacker:se||Z,P=d(e.onWarn)?e.onWarn:c,R=e,w=h(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,S=h(R.__numberFormatters)?R.__numberFormatters:new Map,x=h(R.__meta)?R.__meta:{};le++;const W={version:t,cid:le,locale:n,fallbackLocale:r,messages:a,modifiers:u,pluralRules:f,missing:m,missingWarn:b,fallbackWarn:k,fallbackFormat:y,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:C,messageResolver:O,localeFallbacker:F,onWarn:P,__meta:x};return W.datetimeFormats=o,W.numberFormats=l,W.__datetimeFormatters=w,W.__numberFormatters=S,W}function ie(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function ue(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const fe=e=>e;let me=Object.create(null);let pe=y;const de=()=>pe++,_e={INVALID_ARGUMENT:pe,INVALID_DATE_ARGUMENT:de(),INVALID_ISO_DATE_ARGUMENT:de(),__EXTEND_POINT__:de()},ge=()=>"",he=e=>d(e);function be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:l,messages:c}=e,[i,f]=ve(...t),m=(g(f.missingWarn)?f.missingWarn:e.missingWarn,g(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,g(f.escapeParameter)?f.escapeParameter:e.escapeParameter),b=!!f.resolvedMessage,k=_(f.default)||g(f.default)?g(f.default)?i:f.default:n?s?i:()=>i:"",v=n||""!==k,y=_(f.locale)?f.locale:e.locale;m&&function(e){p(e.list)?e.list=e.list.map((e=>_(e)?u(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(f);let[L,T,E]=b?[i,y,c[y]||{}]:function(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;const g="translate";for(let n=0;n<u.length&&(f=u[n],m=s[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!d(p));n++){const n=ie(e,t,f,0,g);n!==t&&(p=n)}return[p,f,m]}(e,i,y,l),N=L,I=i;if(b||_(N)||he(N)||v&&(N=k,I=N),!(b||(_(N)||he(N))&&_(T)))return a?-1:i;let C=!1;const O=he(N)?N:ke(e,i,T,N,I,(()=>{C=!0}));if(C)return N;const F=function(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:l}=e,c=r=>{const a=l(n,r);if(_(a)){let n=!1;const o=ke(e,r,t,a,r,(()=>{n=!0}));return n?ge:o}return he(a)?a:ge},i={locale:t,modifiers:a,pluralRules:s,messages:c};e.processor&&(i.processor=e.processor);r.list&&(i.list=r.list);r.named&&(i.named=r.named);o(r.plural)&&(i.pluralIndex=r.plural);return i}(e,T,E,f),P=function(e,t,n){return t(n)}(0,O,K(F));return r?r(P):P}function ke(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const i=l(r,function(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>a({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function ve(...e){const[t,n,r]=e,a={};if(!_(t)&&!o(t)&&!he(t))throw Error(_e.INVALID_ARGUMENT);const s=o(t)?String(t):(he(t),t);return o(n)?a.plural=n:_(n)?a.default=n:v(n)&&!l(n)?a.named=n:p(n)&&(a.list=n),o(r)?a.plural=r:_(r)?a.default=r:v(r)&&i(a,r),[s,a]}function ye(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e,[u,f,m,p]=Le(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,h=_(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!_(u)||""===u)return new Intl.DateTimeFormat(h).format(f);let k,y={},L=null;for(let t=0;t<b.length&&(k=b[t],y=n[k]||{},L=y[u],!v(L));t++)ie(e,u,k,0,"datetime format");if(!v(L)||!_(k))return r?-1:u;let T=`${k}__${u}`;l(p)||(T=`${T}__${JSON.stringify(p)}`);let E=c.get(T);return E||(E=new Intl.DateTimeFormat(k,i({},L,p)),c.set(T,E)),d?E.formatToParts(f):E.format(f)}function Le(...e){const[t,n,r,a]=e;let s,l={},c={};if(_(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(_e.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(e){throw Error(_e.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(_e.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(_e.INVALID_ARGUMENT);s=t}return _(n)?l.key=n:v(n)&&(l=n),_(r)?l.locale=r:v(r)&&(c=r),v(a)&&(c=a),[l.key||"",s,l,c]}function Te(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ee(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e,[u,f,m,p]=Ne(...t);g(m.missingWarn)?m.missingWarn:e.missingWarn;g(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,h=_(m.locale)?m.locale:e.locale,b=s(e,a,h);if(!_(u)||""===u)return new Intl.NumberFormat(h).format(f);let k,y={},L=null;for(let t=0;t<b.length&&(k=b[t],y=n[k]||{},L=y[u],!v(L));t++)ie(e,u,k,0,"number format");if(!v(L)||!_(k))return r?-1:u;let T=`${k}__${u}`;l(p)||(T=`${T}__${JSON.stringify(p)}`);let E=c.get(T);return E||(E=new Intl.NumberFormat(k,i({},L,p)),c.set(T,E)),d?E.formatToParts(f):E.format(f)}function Ne(...e){const[t,n,r,a]=e;let s={},l={};if(!o(t))throw Error(_e.INVALID_ARGUMENT);const c=t;return _(n)?s.key=n:v(n)&&(s=n),_(r)?s.locale=r:v(r)&&(l=r),v(a)&&(l=a),[s.key||"",c,s,l]}function Ie(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ce="9.2.0-beta.23";let Oe=y;const Fe=()=>Oe++,Pe={UNEXPECTED_RETURN_TYPE:Oe,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSLALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSLALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),__EXTEND_POINT__:Fe()},Re=r("__transrateVNode"),we=r("__datetimeParts"),Se=r("__numberParts"),xe=r("__setPluralRules"),We=r("__legacyVueI18n"),Ae=r("__injectWithOption"),$e="__VUE_I18N_BRIDGE__";function De(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Me(e){if(!h(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],h(a[n[r]])&&Me(a[n[r]])}else h(e[t])&&Me(e[t]);return e}function Ue(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=v(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?(s[t]=s[t]||{},je(n,s[t])):je(n,s)}else _(e)&&je(JSON.parse(e),s)})),null==a&&o)for(const e in s)m(s,e)&&Me(s[e]);return s}const Ve=e=>!h(e)||p(e);function je(e,t){if(Ve(e)||Ve(t))throw Error(Pe.INVALID_VALUE);for(const n in e)m(e,n)&&(Ve(e[n])||Ve(t[n])?t[n]=e[n]:je(e[n],t[n]))}function Ge(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)}let Be=0;function He(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Je(e={},n){const{__root:r}=e,a=void 0===r;let l=!g(e.inheritLocale)||e.inheritLocale;const c=t.ref(r&&l?r.locale.value:_(e.locale)?e.locale:re),u=t.ref(r&&l?r.fallbackLocale.value:_(e.fallbackLocale)||p(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Ue(c.value,e)),m=t.ref(v(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),b=t.ref(v(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=r?r.missingWarn:!g(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,y=r?r.fallbackWarn:!g(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=r?r.fallbackRoot:!g(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,E=d(e.missing)?e.missing:null,N=d(e.missing)?He(e.missing):null,I=d(e.postTranslation)?e.postTranslation:null,C=!g(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const F=r?r.modifiers:v(e.modifiers)?e.modifiers:{};let P,R,w=e.pluralRules||r&&r.pluralRules;{De(n);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:b.value,modifiers:F,missing:E,fallbackRoot:L,postTranslation:I,pluralizationRules:w,escapeParameterHtml:O,sync:l,silentFallbackWarn:g(y)?!y:y,silentTranslationWarn:g(k)?!k:k,formatFallbackMessages:g(T)?!T:T,warnHtmlInMessage:g(C)&&C?"warn":"off",__VUE_I18N_BRIDGE__:$e};P=new n(e)}R=function(){const t={version:Ce,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:F,pluralRules:w,missing:null===N?void 0:N,missingWarn:k,fallbackWarn:y,fallbackFormat:T,unresolving:!0,postTranslation:null===I?void 0:I,warnHtmlMessage:C,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=m.value,t.numberFormats=b.value,t.__datetimeFormatters=v(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=v(R)?R.__numberFormatters:void 0,ce(t)}(),ue(R,c.value,u.value);const S=t.computed({get:()=>c.value,set:e=>{c.value=e,P&&!a&&(P.locale=e),R.locale=c.value}}),x=t.computed({get:()=>u.value,set:e=>{u.value=e,P&&!a&&(P.fallbackLocale=e),R.fallbackLocale=u.value,ue(R,c.value,e)}}),W=t.computed((()=>f.value)),A=t.computed((()=>m.value)),$=t.computed((()=>b.value));function D(e,t,n,a,s,l){let i;if(c.value,u.value,f.value,m.value,b.value,i=e(R),o(i)&&-1===i){const[e,n]=t();return r&&L?a(r):s(e)}if(l(i))return i;throw Error(Pe.UNEXPECTED_RETURN_TYPE)}function M(...e){return D((t=>Reflect.apply(be,null,[t,...e])),(()=>ve(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const U={normalize:function(e){return e.map((e=>_(e)?Ge(e):e))},interpolate:e=>e,type:"vnode"};function V(e){return f.value[e]||{}}Be++,r&&(t.watch(r.locale,(e=>{l&&(c.value=e,P&&!a&&(P.locale=e),R.locale=e,ue(R,c.value,u.value))})),t.watch(r.fallbackLocale,(e=>{l&&(u.value=e,P&&!a&&(P.fallbackLocale=e),R.fallbackLocale=e,ue(R,c.value,u.value))})));const j={id:Be,locale:S,fallbackLocale:x,get inheritLocale(){return l},set inheritLocale(e){l=e,P&&(P._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,P&&(P.locale=r.locale.value,P.fallbackLocale=r.fallbackLocale.value),ue(R,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:W,get modifiers(){return F},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return k},set missingWarn(e){k=e,R.missingWarn=k},get fallbackWarn(){return y},set fallbackWarn(e){y=e,R.fallbackWarn=y},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,R.fallbackFormat=T},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,R.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,R.escapeParameter=e},t:M,getLocaleMessage:V,setLocaleMessage:function(e,t){f.value[e]=t,P&&P.setLocaleMessage(e,t),R.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},P&&P.mergeLocaleMessage(e,t),je(t,f.value[e]),R.messages=f.value},getPostTranslationHandler:function(){return d(I)?I:null},setPostTranslationHandler:function(e){I=e,R.postTranslation=e},getMissingHandler:function(){return E},setMissingHandler:function(e){null!==e&&(N=He(e)),E=e,R.missing=N},[xe]:function(e){w=e,R.pluralRules=w}};return j.datetimeFormats=A,j.numberFormats=$,j.rt=function(...e){const[t,n,r]=e;if(r&&!h(r))throw Error(Pe.INVALID_ARGUMENT);return M(t,n,i({resolvedMessage:!0},r||{}))},j.te=function(e,t){const n=V(_(t)?t:c.value);return null!==R.messageResolver(n,e)},j.tm=function(e){const t=function(e){let t=null;const n=Q(R,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=R.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},j.d=function(...e){return D((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},j.n=function(...e){return D((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ne(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},j.getDateTimeFormat=function(e){return m.value[e]||{}},j.setDateTimeFormat=function(e,t){m.value[e]=t,P&&P.setDateTimeFormat(e,t),R.datetimeFormats=m.value,Te(R,e,t)},j.mergeDateTimeFormat=function(e,t){m.value[e]=i(m.value[e]||{},t),P&&P.mergeDateTimeFormat(e,t),R.datetimeFormats=m.value,Te(R,e,t)},j.getNumberFormat=function(e){return b.value[e]||{}},j.setNumberFormat=function(e,t){b.value[e]=t,P&&P.setNumberFormat(e,t),R.numberFormats=b.value,Ie(R,e,t)},j.mergeNumberFormat=function(e,t){b.value[e]=i(b.value[e]||{},t),P&&P.mergeNumberFormat(e,t),R.numberFormats=b.value,Ie(R,e,t)},j[Ae]=e.__injectWithOption,j[Re]=function(...e){return D((t=>{let n;const r=t;try{r.processor=U,n=Reflect.apply(be,null,[r,...e])}finally{r.processor=null}return n}),(()=>ve(...e)),0,(t=>t[Re](...e)),(e=>[Ge(e)]),(e=>p(e)))},j[we]=function(...e){return D((t=>Reflect.apply(ye,null,[t,...e])),(()=>Le(...e)),0,(t=>t[we](...e)),(()=>[]),(e=>_(e)||p(e)))},j[Se]=function(...e){return D((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ne(...e)),0,(t=>t[Se](...e)),(()=>[]),(e=>_(e)||p(e)))},j[We]=P,j}const ze={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ye={name:"i18n-t",props:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},ze),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||rt({useScope:e.scope,__useComponent:!0}),s=Object.keys(r).filter((e=>"_"!==e));return()=>{const r={};e.locale&&(r.locale=e.locale),void 0!==e.plural&&(r.plural=_(e.plural)?+e.plural:e.plural);const l=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...p(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,s),c=o[Re](e.keypath,l,r),u=i({},a),f=_(e.tag)||h(e.tag)?e.tag:"span";return t.h(f,u,c)}}};function Xe(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:h(e.format)&&(_(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,l);let u=[n.key];p(c)?u=c.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:c}):[e.value]})):_(c)&&(u=[c]);const f=i({},s),m=_(e.tag)||h(e.tag)?e.tag:"span";return t.h(m,f,u)}}const qe=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Ke={name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},ze),setup(e,t){const n=e.i18n||rt({useScope:"parent",__useComponent:!0});return Xe(e,t,qe,((...e)=>n[Se](...e)))}},Ze=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Qe={name:"i18n-d",props:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ze),setup(e,t){const n=e.i18n||rt({useScope:"parent",__useComponent:!0});return Xe(e,t,Ze,((...e)=>n[we](...e)))}};let et=null,tt=null;const nt=r("global-vue-i18n");function rt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Pe.MUST_BE_CALL_SETUP_TOP);if(null==et||null==tt)throw Error(Pe.NOT_INSLALLED);const r=function(e){{const t=e.proxy;if(null==t)throw Error(Pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=tt),!n)throw Error(Pe.NOT_INSLALLED);return n}}(n),a=function(e){return e.global}(r),o=function(e){return e.proxy.$options}(n),s=function(e,t){return l(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return function(e,t,n){let r=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ue(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Ae]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}if("legacy"===r.mode)throw Error(Pe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=r;let u=c.__getInstance(n);if(null==u){const r=i({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),u=Je(r,et),function(e,n,r){{const a=n.proxy;if(null==a)throw Error(Pe.UNEXPECTED_ERROR);const o=r[We];if(o===e)throw Error(Pe.UNEXPECTED_ERROR);a._i18n=o,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;t.onBeforeMount((()=>{a._i18n.subscribeDataChanging(a),s=!0}),n),t.onUnmounted((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),n)}}(c,n,u),c.__setInstance(n,u)}return u}var at;return at=function(e,t={}){{const n=(t.onCacheKey||fe)(e),r=me[n];if(r)return r;let a=!1;const o=t.onError||L;t.onError=e=>{a=!0,o(e)};const{code:s}=M(e,t),l=new Function(`return ${s}`)();return a?l:me[n]=l}},ae=at,oe=function(e,t){if(!h(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function p(){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=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=j(n),c=U[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&B.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a},se=Q,e.DatetimeFormat=Qe,e.I18nInjectionKey=nt,e.NumberFormat=Ke,e.Translation=Ye,e.VERSION=Ce,e.castToVueI18n=e=>{if(!($e in e))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(tt)return tt;et=t;const n=!g(e.legacy)||e.legacy,a=!g(e.globalInjection)||e.globalInjection,o=new Map,s=function(e,t,n){if(!De(n))throw Error(Pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Je(e,n)}(e,0,t);r("");{const e=s[We];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:(t,...r)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Pe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=v(t[0])?t[0]:{};(!g(n.globalInstall)||n.globalInstall)&&(e.component(Ye.name,Ye),e.component(Ke.name,Ke),e.component(Qe.name,Qe))}(t,...r),!n&&a&&function(e,t,n){t.watchLocale(n),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])}}(t,e,s),t.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=>je(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(v(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=>je(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&v(r)&&je(r,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||v(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,et))}});const t={__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(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),tt=e,e}},e.useI18n=rt,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,getCurrentInstance as t,computed as n,watch as a,h as r,onBeforeMount as l,onUnmounted as o}from"@vue/composition-api";const s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>s?Symbol(e):e,c=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"==typeof e&&isFinite(e),m=e=>"[object RegExp]"===L(e),f=e=>I(e)&&0===Object.keys(e).length;function _(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const p=Object.assign;function g(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function b(e,t){return d.call(e,t)}const h=Array.isArray,v=e=>"function"==typeof e,y=e=>"string"==typeof e,E=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,N=Object.prototype.toString,L=e=>N.call(e),I=e=>"[object Object]"===L(e),R=15,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 W(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)))&&(n=t,F.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 D=new Map;function w(e,t){return k(e)?e[t]:null}const A=e=>e,M=e=>"",C=e=>0===e.length?"":e.join(""),S=e=>null==e?"":h(e)||I(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function P(e={}){const t=e.locale,n=function(e){const t=u(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(u(e.named.count)||u(e.named.n))?u(e.named.count)?e.named.count:u(e.named.n)?e.named.n:t:t}(e),a=k(e.pluralRules)&&y(t)&&v(e.pluralRules[t])?e.pluralRules[t]:$,r=k(e.pluralRules)&&y(t)&&v(e.pluralRules[t])?$:void 0,l=e.list||[],o=e.named||{};u(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=v(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):M)}const i=I(e.processor)&&v(e.processor.normalize)?e.processor.normalize:C,c=I(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:S,m={list:e=>l[e],named:e=>o[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=s(t)(m);return y(n)?(r=n,e.modifiers?e.modifiers[r]:A)(a):a;var r},message:s,type:I(e.processor)&&y(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return m}function U(e,t,n){return[...new Set([n,...h(t)?t:k(t)?Object.keys(t):y(t)?[t]:[n]])]}function V(e,t,n){const a=y(n)?n:x,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;h(e);)e=j(l,e,t);const o=h(t)||!I(t)?t:t.default?t.default:null;e=y(o)?[o]:o,h(e)&&j(l,e,!1),r.__localeChainCache.set(a,l)}return l}function j(e,t,n){let a=!0;for(let r=0;r<t.length&&E(a);r++){const l=t[r];y(l)&&(a=G(e,t[r],n))}return a}function G(e,t,n){let a;const r=t.split("-");do{a=B(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function B(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(h(n)||I(n))&&n[r]&&(a=n[r])}return a}const x="en-US";let H,Y;let z=0;function J(e={}){const t=y(e.version)?e.version:"9.2.0-beta.22",n=y(e.locale)?e.locale:x,a=h(e.fallbackLocale)||I(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=I(e.messages)?e.messages:{[n]:{}},l=I(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=I(e.numberFormats)?e.numberFormats:{[n]:{}},s=p({},e.modifiers||{},{upper:e=>y(e)?e.toUpperCase():e,lower:e=>y(e)?e.toLowerCase():e,capitalize:e=>y(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=v(e.missing)?e.missing:null,u=!E(e.missingWarn)&&!m(e.missingWarn)||e.missingWarn,f=!E(e.fallbackWarn)&&!m(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,d=!!e.unresolving,b=v(e.postTranslation)?e.postTranslation:null,N=I(e.processor)?e.processor:null,L=!E(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,T=v(e.messageCompiler)?e.messageCompiler:undefined,F=v(e.messageResolver)?e.messageResolver:H||w,W=v(e.localeFallbacker)?e.localeFallbacker:Y||U,O=v(e.onWarn)?e.onWarn:_,D=e,A=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=k(D.__numberFormatters)?D.__numberFormatters:new Map,C=k(D.__meta)?D.__meta:{};z++;const S={version:t,cid:z,locale:n,fallbackLocale:a,messages:r,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:f,fallbackFormat:g,unresolving:d,postTranslation:b,processor:N,warnHtmlMessage:L,escapeParameter:R,messageCompiler:T,messageResolver:F,localeFallbacker:W,onWarn:O,__meta:C};return S.datetimeFormats=l,S.numberFormats=o,S.__datetimeFormatters=A,S.__numberFormatters=M,S}function X(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return y(a)?a:t}return t}function q(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Z=R;const K=()=>Z++,Q={INVALID_ARGUMENT:Z,INVALID_DATE_ARGUMENT:K(),INVALID_ISO_DATE_ARGUMENT:K(),__EXTEND_POINT__:K()},ee=()=>"",te=e=>v(e);function ne(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,c]=re(...t),m=(E(c.missingWarn)?c.missingWarn:e.missingWarn,E(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,E(c.escapeParameter)?c.escapeParameter:e.escapeParameter),f=!!c.resolvedMessage,_=y(c.default)||E(c.default)?E(c.default)?i:c.default:n?l?i:()=>i:"",p=n||""!==_,d=y(c.locale)?c.locale:e.locale;m&&function(e){h(e.list)?e.list=e.list.map((e=>y(e)?g(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{y(e.named[t])&&(e.named[t]=g(e.named[t]))}))}(c);let[b,N,L]=f?[i,d,s[d]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const p="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!y(_)&&!v(_));n++){const n=X(e,t,m,0,p);n!==t&&(_=n)}return[_,m,f]}(e,i,d,o),I=b,R=i;if(f||y(I)||te(I)||p&&(I=_,R=I),!(f||(y(I)||te(I))&&y(N)))return r?-1:i;let T=!1;const F=te(I)?I:ae(e,i,N,I,R,(()=>{T=!0}));if(T)return I;const W=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:o}=e,s=a=>{const r=o(n,a);if(y(r)){let n=!1;const l=ae(e,a,t,r,a,(()=>{n=!0}));return n?ee:l}return te(r)?r:ee},i={locale:t,modifiers:r,pluralRules:l,messages:s};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);u(a.plural)&&(i.pluralIndex=a.plural);return i}(e,N,L,c),O=function(e,t,n){return t(n)}(0,F,P(W));return a?a(O):O}function ae(e,t,n,a,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(te(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const i=o(a,function(e,t,n,a,r,l){return{warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>c({l:e,k:t,s:n}))(t,n,e)}}(0,n,r,0,s,l));return i.locale=n,i.key=t,i.source=a,i}function re(...e){const[t,n,a]=e,r={};if(!y(t)&&!u(t)&&!te(t))throw Error(Q.INVALID_ARGUMENT);const l=u(t)?String(t):(te(t),t);return u(n)?r.plural=n:y(n)?r.default=n:I(n)&&!f(n)?r.named=n:h(n)&&(r.list=n),u(a)?r.plural=a:y(a)?r.default=a:I(a)&&p(r,a),[l,r]}function le(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=oe(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,g=y(u.locale)?u.locale:e.locale,d=o(e,r,g);if(!y(i)||""===i)return new Intl.DateTimeFormat(g).format(c);let b,h={},v=null;for(let t=0;t<d.length&&(b=d[t],h=n[b]||{},v=h[i],!I(v));t++)X(e,i,b,0,"datetime format");if(!I(v)||!y(b))return a?-1:i;let k=`${b}__${i}`;f(m)||(k=`${k}__${JSON.stringify(m)}`);let N=s.get(k);return N||(N=new Intl.DateTimeFormat(b,p({},v,m)),s.set(k,N)),_?N.formatToParts(c):N.format(c)}function oe(...e){const[t,n,a,r]=e;let l,o={},s={};if(y(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Q.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===L(t)){if(isNaN(t.getTime()))throw Error(Q.INVALID_DATE_ARGUMENT);l=t}else{if(!u(t))throw Error(Q.INVALID_ARGUMENT);l=t}return y(n)?o.key=n:I(n)&&(o=n),y(a)?o.locale=a:I(a)&&(s=a),I(r)&&(s=r),[o.key||"",l,o,s]}function se(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ie(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=ce(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,g=y(u.locale)?u.locale:e.locale,d=o(e,r,g);if(!y(i)||""===i)return new Intl.NumberFormat(g).format(c);let b,h={},v=null;for(let t=0;t<d.length&&(b=d[t],h=n[b]||{},v=h[i],!I(v));t++)X(e,i,b,0,"number format");if(!I(v)||!y(b))return a?-1:i;let k=`${b}__${i}`;f(m)||(k=`${k}__${JSON.stringify(m)}`);let N=s.get(k);return N||(N=new Intl.NumberFormat(b,p({},v,m)),s.set(k,N)),_?N.formatToParts(c):N.format(c)}function ce(...e){const[t,n,a,r]=e;let l={},o={};if(!u(t))throw Error(Q.INVALID_ARGUMENT);const s=t;return y(n)?l.key=n:I(n)&&(l=n),y(a)?l.locale=a:I(a)&&(o=a),I(r)&&(o=r),[l.key||"",s,l,o]}function ue(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const me="9.2.0-beta.22";let fe=R;const _e=()=>fe++,pe={UNEXPECTED_RETURN_TYPE:fe,INVALID_ARGUMENT:_e(),MUST_BE_CALL_SETUP_TOP:_e(),NOT_INSLALLED:_e(),NOT_AVAILABLE_IN_LEGACY_MODE:_e(),REQUIRED_VALUE:_e(),INVALID_VALUE:_e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_e(),NOT_INSLALLED_WITH_PROVIDE:_e(),UNEXPECTED_ERROR:_e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_e(),BRIDGE_SUPPORT_VUE_2_ONLY:_e(),__EXTEND_POINT__:_e()},ge=i("__transrateVNode"),de=i("__datetimeParts"),be=i("__numberParts"),he=i("__setPluralRules"),ve=i("__legacyVueI18n"),ye=i("__injectWithOption");function Ee(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ke(e){if(!k(e))return e;for(const t in e)if(b(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],k(r[n[a]])&&ke(r[n[a]])}else k(e[t])&&ke(e[t]);return e}function Ne(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=I(n)?n:h(a)?{}:{[e]:{}};if(h(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},Ie(n,o[t])):Ie(n,o)}else y(e)&&Ie(JSON.parse(e),o)})),null==r&&l)for(const e in o)b(o,e)&&ke(o[e]);return o}const Le=e=>!k(e)||h(e);function Ie(e,t){if(Le(e)||Le(t))throw Error(pe.INVALID_VALUE);for(const n in e)b(e,n)&&(Le(e[n])||Le(t[n])?t[n]=e[n]:Ie(e[n],t[n]))}function Re(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)}let Te=0;function Fe(e){return(n,a,r,l)=>e(a,r,t()||void 0,l)}function We(t={},r){const{__root:l}=t,o=void 0===l;let s=!E(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:y(t.locale)?t.locale:x),c=e(l&&s?l.fallbackLocale.value:y(t.fallbackLocale)||h(t.fallbackLocale)||I(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(Ne(i.value,t)),_=e(I(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),g=e(I(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=l?l.missingWarn:!E(t.missingWarn)&&!m(t.missingWarn)||t.missingWarn,b=l?l.fallbackWarn:!E(t.fallbackWarn)&&!m(t.fallbackWarn)||t.fallbackWarn,N=l?l.fallbackRoot:!E(t.fallbackRoot)||t.fallbackRoot,L=!!t.fallbackFormat,R=v(t.missing)?t.missing:null,T=v(t.missing)?Fe(t.missing):null,F=v(t.postTranslation)?t.postTranslation:null,W=!E(t.warnHtmlMessage)||t.warnHtmlMessage,O=!!t.escapeParameter;const D=l?l.modifiers:I(t.modifiers)?t.modifiers:{};let w,A,M=t.pluralRules||l&&l.pluralRules;{Ee(r);const e={locale:i.value,fallbackLocale:c.value,messages:f.value,dateTimeFormats:_.value,numberFormats:g.value,modifiers:D,missing:R,fallbackRoot:N,postTranslation:F,pluralizationRules:M,escapeParameterHtml:O,sync:s,silentFallbackWarn:E(b)?!b:b,silentTranslationWarn:E(d)?!d:d,formatFallbackMessages:E(L)?!L:L,warnHtmlInMessage:E(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};w=new r(e)}A=function(){const e={version:"9.2.0-beta.22",locale:i.value,fallbackLocale:c.value,messages:f.value,modifiers:D,pluralRules:M,missing:null===T?void 0:T,missingWarn:d,fallbackWarn:b,fallbackFormat:L,unresolving:!0,postTranslation:null===F?void 0:F,warnHtmlMessage:W,escapeParameter:O,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=_.value,e.numberFormats=g.value,e.__datetimeFormatters=I(A)?A.__datetimeFormatters:void 0,e.__numberFormatters=I(A)?A.__numberFormatters:void 0,J(e)}(),q(A,i.value,c.value);const C=n({get:()=>i.value,set:e=>{i.value=e,w&&!o&&(w.locale=e),A.locale=i.value}}),S=n({get:()=>c.value,set:e=>{c.value=e,w&&!o&&(w.fallbackLocale=e),A.fallbackLocale=c.value,q(A,i.value,e)}}),$=n((()=>f.value)),P=n((()=>_.value)),U=n((()=>g.value));function j(e,t,n,a,r,o){let s;if(i.value,c.value,f.value,_.value,g.value,s=e(A),u(s)&&-1===s){const[e,n]=t();return l&&N?a(l):r(e)}if(o(s))return s;throw Error(pe.UNEXPECTED_RETURN_TYPE)}function G(...e){return j((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>y(e)))}const B={normalize:function(e){return e.map((e=>y(e)?Re(e):e))},interpolate:e=>e,type:"vnode"};function H(e){return f.value[e]||{}}Te++,l&&(a(l.locale,(e=>{s&&(i.value=e,w&&!o&&(w.locale=e),A.locale=e,q(A,i.value,c.value))})),a(l.fallbackLocale,(e=>{s&&(c.value=e,w&&!o&&(w.fallbackLocale=e),A.fallbackLocale=e,q(A,i.value,c.value))})));const Y={id:Te,locale:C,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,w&&(w._sync=e),e&&l&&(i.value=l.locale.value,c.value=l.fallbackLocale.value,w&&(w.locale=l.locale.value,w.fallbackLocale=l.fallbackLocale.value),q(A,i.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:$,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return d},set missingWarn(e){d=e,A.missingWarn=d},get fallbackWarn(){return b},set fallbackWarn(e){b=e,A.fallbackWarn=b},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,A.fallbackFormat=L},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,A.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,A.escapeParameter=e},t:G,getLocaleMessage:H,setLocaleMessage:function(e,t){f.value[e]=t,w&&w.setLocaleMessage(e,t),A.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},w&&w.mergeLocaleMessage(e,t),Ie(t,f.value[e]),A.messages=f.value},getPostTranslationHandler:function(){return v(F)?F:null},setPostTranslationHandler:function(e){F=e,A.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(T=Fe(e)),R=e,A.missing=T},[he]:function(e){M=e,A.pluralRules=M}};return Y.datetimeFormats=P,Y.numberFormats=U,Y.rt=function(...e){const[t,n,a]=e;if(a&&!k(a))throw Error(pe.INVALID_ARGUMENT);return G(t,n,p({resolvedMessage:!0},a||{}))},Y.te=function(e,t){const n=H(y(t)?t:i.value);return null!==A.messageResolver(n,e)},Y.tm=function(e){const t=function(e){let t=null;const n=V(A,c.value,i.value);for(let a=0;a<n.length;a++){const r=f.value[n[a]]||{},l=A.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},Y.d=function(...e){return j((t=>Reflect.apply(le,null,[t,...e])),(()=>oe(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>y(e)))},Y.n=function(...e){return j((t=>Reflect.apply(ie,null,[t,...e])),(()=>ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>y(e)))},Y.getDateTimeFormat=function(e){return _.value[e]||{}},Y.setDateTimeFormat=function(e,t){_.value[e]=t,w&&w.setDateTimeFormat(e,t),A.datetimeFormats=_.value,se(A,e,t)},Y.mergeDateTimeFormat=function(e,t){_.value[e]=p(_.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),A.datetimeFormats=_.value,se(A,e,t)},Y.getNumberFormat=function(e){return g.value[e]||{}},Y.setNumberFormat=function(e,t){g.value[e]=t,w&&w.setNumberFormat(e,t),A.numberFormats=g.value,ue(A,e,t)},Y.mergeNumberFormat=function(e,t){g.value[e]=p(g.value[e]||{},t),w&&w.mergeNumberFormat(e,t),A.numberFormats=g.value,ue(A,e,t)},Y[ye]=t.__injectWithOption,Y[ge]=function(...e){return j((t=>{let n;const a=t;try{a.processor=B,n=Reflect.apply(ne,null,[a,...e])}finally{a.processor=null}return n}),(()=>re(...e)),0,(t=>t[ge](...e)),(e=>[Re(e)]),(e=>h(e)))},Y[de]=function(...e){return j((t=>Reflect.apply(le,null,[t,...e])),(()=>oe(...e)),0,(t=>t[de](...e)),(()=>[]),(e=>y(e)||h(e)))},Y[be]=function(...e){return j((t=>Reflect.apply(ie,null,[t,...e])),(()=>ce(...e)),0,(t=>t[be](...e)),(()=>[]),(e=>y(e)||h(e)))},Y[ve]=w,Y}const Oe={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const De={name:"i18n-t",props:p({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>u(e)||!isNaN(e)}},Oe),setup(e,t){const{slots:n,attrs:a}=t,l=e.i18n||je({useScope:e.scope,__useComponent:!0}),o=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=y(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const a=e[n];return a&&(t[n]=a()),t}),{})}(t,o),i=l[ge](e.keypath,s,n),c=p({},a),u=y(e.tag)||k(e.tag)?e.tag:"span";return r(u,c,i)}}};function we(e,t,n,a){const{slots:l,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),y(e.format)?t.key=e.format:k(e.format)&&(y(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?p({},t,{[a]:e.format[a]}):t),{}));const i=a(e.value,t,s);let c=[t.key];h(i)?c=i.map(((e,t)=>{const n=l[e.type];return n?n({[e.type]:e.value,index:t,parts:i}):[e.value]})):y(i)&&(c=[i]);const u=p({},o),m=y(e.tag)||k(e.tag)?e.tag:"span";return r(m,u,c)}}const Ae=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Me={name:"i18n-n",props:p({value:{type:Number,required:!0},format:{type:[String,Object]}},Oe),setup(e,t){const n=e.i18n||je({useScope:"parent",__useComponent:!0});return we(e,t,Ae,((...e)=>n[be](...e)))}},Ce=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Se={name:"i18n-d",props:p({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Oe),setup(e,t){const n=e.i18n||je({useScope:"parent",__useComponent:!0});return we(e,t,Ce,((...e)=>n[de](...e)))}};let $e=null,Pe=null;const Ue=i("global-vue-i18n");function Ve(e={},t){if(Pe)return Pe;$e=t;const n=!E(e.legacy)||e.legacy,a=!E(e.globalInjection)||e.globalInjection,r=new Map,l=function(e,t,n){if(!Ee(n))throw Error(pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return We(e,n)}(e,0,t);i("");{const e=l[ve];Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{value:(t,...r)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(pe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=I(t[0])?t[0]:{};(!E(n.globalInstall)||n.globalInstall)&&(e.component(De.name,De),e.component(Me.name,Me),e.component(Se.name,Se))}(t,...r),!n&&a&&function(e,t,n){t.watchLocale(n),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])}}(t,e,l),t.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=>Ie(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(I(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=>Ie(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&I(a)&&Ie(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||I(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,$e))}});const t={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Pe=e,e}}function je(e={}){const n=t();if(null==n)throw Error(pe.MUST_BE_CALL_SETUP_TOP);if(null==$e||null==Pe)throw Error(pe.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Pe),!n)throw Error(pe.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),s=function(e){return e.proxy.$options}(n),i=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===i)return function(e,t,n){let a=k(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ne(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,s),r;if("parent"===i){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[ye]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(pe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=a;let u=c.__getInstance(n);if(null==u){const t=p({},e);"__i18n"in s&&(t.__i18n=s.__i18n),r&&(t.__root=r),u=We(t,$e),function(e,t,n){{const a=t.proxy;if(null==a)throw Error(pe.UNEXPECTED_ERROR);const r=n[ve];if(r===e)throw Error(pe.UNEXPECTED_ERROR);a._i18n=r,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;l((()=>{a._i18n.subscribeDataChanging(a),s=!0}),t),o((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),t)}}(c,n,u),c.__setInstance(n,u)}return u}const Ge=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};H=function(e,t){if(!k(e))return null;let n=D.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=O(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=W(n),i=T[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&D.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},Y=V;export{Se as DatetimeFormat,Ue as I18nInjectionKey,Me as NumberFormat,De as Translation,me as VERSION,Ge as castToVueI18n,Ve as createI18n,je as useI18n};
import{ref as e,getCurrentInstance as t,computed as n,watch as a,h as r,onBeforeMount as l,onUnmounted as o}from"@vue/composition-api";const s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>s?Symbol(e):e,c=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"==typeof e&&isFinite(e),m=e=>"[object RegExp]"===L(e),f=e=>I(e)&&0===Object.keys(e).length;function _(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const p=Object.assign;function g(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function b(e,t){return d.call(e,t)}const h=Array.isArray,v=e=>"function"==typeof e,y=e=>"string"==typeof e,E=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,N=Object.prototype.toString,L=e=>N.call(e),I=e=>"[object Object]"===L(e),R=15,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 W(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)))&&(n=t,F.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 D=new Map;function w(e,t){return k(e)?e[t]:null}const A=e=>e,M=e=>"",C=e=>0===e.length?"":e.join(""),S=e=>null==e?"":h(e)||I(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function $(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function P(e={}){const t=e.locale,n=function(e){const t=u(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(u(e.named.count)||u(e.named.n))?u(e.named.count)?e.named.count:u(e.named.n)?e.named.n:t:t}(e),a=k(e.pluralRules)&&y(t)&&v(e.pluralRules[t])?e.pluralRules[t]:$,r=k(e.pluralRules)&&y(t)&&v(e.pluralRules[t])?$:void 0,l=e.list||[],o=e.named||{};u(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=v(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):M)}const i=I(e.processor)&&v(e.processor.normalize)?e.processor.normalize:C,c=I(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:S,m={list:e=>l[e],named:e=>o[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=s(t)(m);return y(n)?(r=n,e.modifiers?e.modifiers[r]:A)(a):a;var r},message:s,type:I(e.processor)&&y(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return m}function U(e,t,n){return[...new Set([n,...h(t)?t:k(t)?Object.keys(t):y(t)?[t]:[n]])]}function V(e,t,n){const a=y(n)?n:x,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;h(e);)e=j(l,e,t);const o=h(t)||!I(t)?t:t.default?t.default:null;e=y(o)?[o]:o,h(e)&&j(l,e,!1),r.__localeChainCache.set(a,l)}return l}function j(e,t,n){let a=!0;for(let r=0;r<t.length&&E(a);r++){const l=t[r];y(l)&&(a=G(e,t[r],n))}return a}function G(e,t,n){let a;const r=t.split("-");do{a=B(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function B(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(h(n)||I(n))&&n[r]&&(a=n[r])}return a}const x="en-US";let H,Y;let z=0;function J(e={}){const t=y(e.version)?e.version:"9.2.0-beta.23",n=y(e.locale)?e.locale:x,a=h(e.fallbackLocale)||I(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=I(e.messages)?e.messages:{[n]:{}},l=I(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=I(e.numberFormats)?e.numberFormats:{[n]:{}},s=p({},e.modifiers||{},{upper:e=>y(e)?e.toUpperCase():e,lower:e=>y(e)?e.toLowerCase():e,capitalize:e=>y(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=v(e.missing)?e.missing:null,u=!E(e.missingWarn)&&!m(e.missingWarn)||e.missingWarn,f=!E(e.fallbackWarn)&&!m(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,d=!!e.unresolving,b=v(e.postTranslation)?e.postTranslation:null,N=I(e.processor)?e.processor:null,L=!E(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter,T=v(e.messageCompiler)?e.messageCompiler:undefined,F=v(e.messageResolver)?e.messageResolver:H||w,W=v(e.localeFallbacker)?e.localeFallbacker:Y||U,O=v(e.onWarn)?e.onWarn:_,D=e,A=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=k(D.__numberFormatters)?D.__numberFormatters:new Map,C=k(D.__meta)?D.__meta:{};z++;const S={version:t,cid:z,locale:n,fallbackLocale:a,messages:r,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:f,fallbackFormat:g,unresolving:d,postTranslation:b,processor:N,warnHtmlMessage:L,escapeParameter:R,messageCompiler:T,messageResolver:F,localeFallbacker:W,onWarn:O,__meta:C};return S.datetimeFormats=l,S.numberFormats=o,S.__datetimeFormatters=A,S.__numberFormatters=M,S}function X(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return y(a)?a:t}return t}function q(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Z=R;const K=()=>Z++,Q={INVALID_ARGUMENT:Z,INVALID_DATE_ARGUMENT:K(),INVALID_ISO_DATE_ARGUMENT:K(),__EXTEND_POINT__:K()},ee=()=>"",te=e=>v(e);function ne(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,c]=re(...t),m=(E(c.missingWarn)?c.missingWarn:e.missingWarn,E(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,E(c.escapeParameter)?c.escapeParameter:e.escapeParameter),f=!!c.resolvedMessage,_=y(c.default)||E(c.default)?E(c.default)?i:c.default:n?l?i:()=>i:"",p=n||""!==_,d=y(c.locale)?c.locale:e.locale;m&&function(e){h(e.list)?e.list=e.list.map((e=>y(e)?g(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{y(e.named[t])&&(e.named[t]=g(e.named[t]))}))}(c);let[b,N,L]=f?[i,d,s[d]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const p="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!y(_)&&!v(_));n++){const n=X(e,t,m,0,p);n!==t&&(_=n)}return[_,m,f]}(e,i,d,o),I=b,R=i;if(f||y(I)||te(I)||p&&(I=_,R=I),!(f||(y(I)||te(I))&&y(N)))return r?-1:i;let T=!1;const F=te(I)?I:ae(e,i,N,I,R,(()=>{T=!0}));if(T)return I;const W=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:o}=e,s=a=>{const r=o(n,a);if(y(r)){let n=!1;const l=ae(e,a,t,r,a,(()=>{n=!0}));return n?ee:l}return te(r)?r:ee},i={locale:t,modifiers:r,pluralRules:l,messages:s};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);u(a.plural)&&(i.pluralIndex=a.plural);return i}(e,N,L,c),O=function(e,t,n){return t(n)}(0,F,P(W));return a?a(O):O}function ae(e,t,n,a,r,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(te(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const i=o(a,function(e,t,n,a,r,l){return{warnHtmlMessage:r,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>c({l:e,k:t,s:n}))(t,n,e)}}(0,n,r,0,s,l));return i.locale=n,i.key=t,i.source=a,i}function re(...e){const[t,n,a]=e,r={};if(!y(t)&&!u(t)&&!te(t))throw Error(Q.INVALID_ARGUMENT);const l=u(t)?String(t):(te(t),t);return u(n)?r.plural=n:y(n)?r.default=n:I(n)&&!f(n)?r.named=n:h(n)&&(r.list=n),u(a)?r.plural=a:y(a)?r.default=a:I(a)&&p(r,a),[l,r]}function le(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=oe(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,g=y(u.locale)?u.locale:e.locale,d=o(e,r,g);if(!y(i)||""===i)return new Intl.DateTimeFormat(g).format(c);let b,h={},v=null;for(let t=0;t<d.length&&(b=d[t],h=n[b]||{},v=h[i],!I(v));t++)X(e,i,b,0,"datetime format");if(!I(v)||!y(b))return a?-1:i;let k=`${b}__${i}`;f(m)||(k=`${k}__${JSON.stringify(m)}`);let N=s.get(k);return N||(N=new Intl.DateTimeFormat(b,p({},v,m)),s.set(k,N)),_?N.formatToParts(c):N.format(c)}function oe(...e){const[t,n,a,r]=e;let l,o={},s={};if(y(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Q.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===L(t)){if(isNaN(t.getTime()))throw Error(Q.INVALID_DATE_ARGUMENT);l=t}else{if(!u(t))throw Error(Q.INVALID_ARGUMENT);l=t}return y(n)?o.key=n:I(n)&&(o=n),y(a)?o.locale=a:I(a)&&(s=a),I(r)&&(s=r),[o.key||"",l,o,s]}function se(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ie(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=ce(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const _=!!u.part,g=y(u.locale)?u.locale:e.locale,d=o(e,r,g);if(!y(i)||""===i)return new Intl.NumberFormat(g).format(c);let b,h={},v=null;for(let t=0;t<d.length&&(b=d[t],h=n[b]||{},v=h[i],!I(v));t++)X(e,i,b,0,"number format");if(!I(v)||!y(b))return a?-1:i;let k=`${b}__${i}`;f(m)||(k=`${k}__${JSON.stringify(m)}`);let N=s.get(k);return N||(N=new Intl.NumberFormat(b,p({},v,m)),s.set(k,N)),_?N.formatToParts(c):N.format(c)}function ce(...e){const[t,n,a,r]=e;let l={},o={};if(!u(t))throw Error(Q.INVALID_ARGUMENT);const s=t;return y(n)?l.key=n:I(n)&&(l=n),y(a)?l.locale=a:I(a)&&(o=a),I(r)&&(o=r),[l.key||"",s,l,o]}function ue(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const me="9.2.0-beta.23";let fe=R;const _e=()=>fe++,pe={UNEXPECTED_RETURN_TYPE:fe,INVALID_ARGUMENT:_e(),MUST_BE_CALL_SETUP_TOP:_e(),NOT_INSLALLED:_e(),NOT_AVAILABLE_IN_LEGACY_MODE:_e(),REQUIRED_VALUE:_e(),INVALID_VALUE:_e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_e(),NOT_INSLALLED_WITH_PROVIDE:_e(),UNEXPECTED_ERROR:_e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_e(),BRIDGE_SUPPORT_VUE_2_ONLY:_e(),__EXTEND_POINT__:_e()},ge=i("__transrateVNode"),de=i("__datetimeParts"),be=i("__numberParts"),he=i("__setPluralRules"),ve=i("__legacyVueI18n"),ye=i("__injectWithOption");function Ee(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ke(e){if(!k(e))return e;for(const t in e)if(b(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],k(r[n[a]])&&ke(r[n[a]])}else k(e[t])&&ke(e[t]);return e}function Ne(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=I(n)?n:h(a)?{}:{[e]:{}};if(h(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},Ie(n,o[t])):Ie(n,o)}else y(e)&&Ie(JSON.parse(e),o)})),null==r&&l)for(const e in o)b(o,e)&&ke(o[e]);return o}const Le=e=>!k(e)||h(e);function Ie(e,t){if(Le(e)||Le(t))throw Error(pe.INVALID_VALUE);for(const n in e)b(e,n)&&(Le(e[n])||Le(t[n])?t[n]=e[n]:Ie(e[n],t[n]))}function Re(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)}let Te=0;function Fe(e){return(n,a,r,l)=>e(a,r,t()||void 0,l)}function We(t={},r){const{__root:l}=t,o=void 0===l;let s=!E(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:y(t.locale)?t.locale:x),c=e(l&&s?l.fallbackLocale.value:y(t.fallbackLocale)||h(t.fallbackLocale)||I(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(Ne(i.value,t)),_=e(I(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),g=e(I(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=l?l.missingWarn:!E(t.missingWarn)&&!m(t.missingWarn)||t.missingWarn,b=l?l.fallbackWarn:!E(t.fallbackWarn)&&!m(t.fallbackWarn)||t.fallbackWarn,N=l?l.fallbackRoot:!E(t.fallbackRoot)||t.fallbackRoot,L=!!t.fallbackFormat,R=v(t.missing)?t.missing:null,T=v(t.missing)?Fe(t.missing):null,F=v(t.postTranslation)?t.postTranslation:null,W=!E(t.warnHtmlMessage)||t.warnHtmlMessage,O=!!t.escapeParameter;const D=l?l.modifiers:I(t.modifiers)?t.modifiers:{};let w,A,M=t.pluralRules||l&&l.pluralRules;{Ee(r);const e={locale:i.value,fallbackLocale:c.value,messages:f.value,dateTimeFormats:_.value,numberFormats:g.value,modifiers:D,missing:R,fallbackRoot:N,postTranslation:F,pluralizationRules:M,escapeParameterHtml:O,sync:s,silentFallbackWarn:E(b)?!b:b,silentTranslationWarn:E(d)?!d:d,formatFallbackMessages:E(L)?!L:L,warnHtmlInMessage:E(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};w=new r(e)}A=function(){const e={version:"9.2.0-beta.23",locale:i.value,fallbackLocale:c.value,messages:f.value,modifiers:D,pluralRules:M,missing:null===T?void 0:T,missingWarn:d,fallbackWarn:b,fallbackFormat:L,unresolving:!0,postTranslation:null===F?void 0:F,warnHtmlMessage:W,escapeParameter:O,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=_.value,e.numberFormats=g.value,e.__datetimeFormatters=I(A)?A.__datetimeFormatters:void 0,e.__numberFormatters=I(A)?A.__numberFormatters:void 0,J(e)}(),q(A,i.value,c.value);const C=n({get:()=>i.value,set:e=>{i.value=e,w&&!o&&(w.locale=e),A.locale=i.value}}),S=n({get:()=>c.value,set:e=>{c.value=e,w&&!o&&(w.fallbackLocale=e),A.fallbackLocale=c.value,q(A,i.value,e)}}),$=n((()=>f.value)),P=n((()=>_.value)),U=n((()=>g.value));function j(e,t,n,a,r,o){let s;if(i.value,c.value,f.value,_.value,g.value,s=e(A),u(s)&&-1===s){const[e,n]=t();return l&&N?a(l):r(e)}if(o(s))return s;throw Error(pe.UNEXPECTED_RETURN_TYPE)}function G(...e){return j((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>y(e)))}const B={normalize:function(e){return e.map((e=>y(e)?Re(e):e))},interpolate:e=>e,type:"vnode"};function H(e){return f.value[e]||{}}Te++,l&&(a(l.locale,(e=>{s&&(i.value=e,w&&!o&&(w.locale=e),A.locale=e,q(A,i.value,c.value))})),a(l.fallbackLocale,(e=>{s&&(c.value=e,w&&!o&&(w.fallbackLocale=e),A.fallbackLocale=e,q(A,i.value,c.value))})));const Y={id:Te,locale:C,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,w&&(w._sync=e),e&&l&&(i.value=l.locale.value,c.value=l.fallbackLocale.value,w&&(w.locale=l.locale.value,w.fallbackLocale=l.fallbackLocale.value),q(A,i.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:$,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return d},set missingWarn(e){d=e,A.missingWarn=d},get fallbackWarn(){return b},set fallbackWarn(e){b=e,A.fallbackWarn=b},get fallbackRoot(){return N},set fallbackRoot(e){N=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,A.fallbackFormat=L},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,A.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,A.escapeParameter=e},t:G,getLocaleMessage:H,setLocaleMessage:function(e,t){f.value[e]=t,w&&w.setLocaleMessage(e,t),A.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},w&&w.mergeLocaleMessage(e,t),Ie(t,f.value[e]),A.messages=f.value},getPostTranslationHandler:function(){return v(F)?F:null},setPostTranslationHandler:function(e){F=e,A.postTranslation=e},getMissingHandler:function(){return R},setMissingHandler:function(e){null!==e&&(T=Fe(e)),R=e,A.missing=T},[he]:function(e){M=e,A.pluralRules=M}};return Y.datetimeFormats=P,Y.numberFormats=U,Y.rt=function(...e){const[t,n,a]=e;if(a&&!k(a))throw Error(pe.INVALID_ARGUMENT);return G(t,n,p({resolvedMessage:!0},a||{}))},Y.te=function(e,t){const n=H(y(t)?t:i.value);return null!==A.messageResolver(n,e)},Y.tm=function(e){const t=function(e){let t=null;const n=V(A,c.value,i.value);for(let a=0;a<n.length;a++){const r=f.value[n[a]]||{},l=A.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},Y.d=function(...e){return j((t=>Reflect.apply(le,null,[t,...e])),(()=>oe(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>y(e)))},Y.n=function(...e){return j((t=>Reflect.apply(ie,null,[t,...e])),(()=>ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>y(e)))},Y.getDateTimeFormat=function(e){return _.value[e]||{}},Y.setDateTimeFormat=function(e,t){_.value[e]=t,w&&w.setDateTimeFormat(e,t),A.datetimeFormats=_.value,se(A,e,t)},Y.mergeDateTimeFormat=function(e,t){_.value[e]=p(_.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),A.datetimeFormats=_.value,se(A,e,t)},Y.getNumberFormat=function(e){return g.value[e]||{}},Y.setNumberFormat=function(e,t){g.value[e]=t,w&&w.setNumberFormat(e,t),A.numberFormats=g.value,ue(A,e,t)},Y.mergeNumberFormat=function(e,t){g.value[e]=p(g.value[e]||{},t),w&&w.mergeNumberFormat(e,t),A.numberFormats=g.value,ue(A,e,t)},Y[ye]=t.__injectWithOption,Y[ge]=function(...e){return j((t=>{let n;const a=t;try{a.processor=B,n=Reflect.apply(ne,null,[a,...e])}finally{a.processor=null}return n}),(()=>re(...e)),0,(t=>t[ge](...e)),(e=>[Re(e)]),(e=>h(e)))},Y[de]=function(...e){return j((t=>Reflect.apply(le,null,[t,...e])),(()=>oe(...e)),0,(t=>t[de](...e)),(()=>[]),(e=>y(e)||h(e)))},Y[be]=function(...e){return j((t=>Reflect.apply(ie,null,[t,...e])),(()=>ce(...e)),0,(t=>t[be](...e)),(()=>[]),(e=>y(e)||h(e)))},Y[ve]=w,Y}const Oe={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const De={name:"i18n-t",props:p({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>u(e)||!isNaN(e)}},Oe),setup(e,t){const{slots:n,attrs:a}=t,l=e.i18n||je({useScope:e.scope,__useComponent:!0}),o=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=y(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...h(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const a=e[n];return a&&(t[n]=a()),t}),{})}(t,o),i=l[ge](e.keypath,s,n),c=p({},a),u=y(e.tag)||k(e.tag)?e.tag:"span";return r(u,c,i)}}};function we(e,t,n,a){const{slots:l,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),y(e.format)?t.key=e.format:k(e.format)&&(y(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?p({},t,{[a]:e.format[a]}):t),{}));const i=a(e.value,t,s);let c=[t.key];h(i)?c=i.map(((e,t)=>{const n=l[e.type];return n?n({[e.type]:e.value,index:t,parts:i}):[e.value]})):y(i)&&(c=[i]);const u=p({},o),m=y(e.tag)||k(e.tag)?e.tag:"span";return r(m,u,c)}}const Ae=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Me={name:"i18n-n",props:p({value:{type:Number,required:!0},format:{type:[String,Object]}},Oe),setup(e,t){const n=e.i18n||je({useScope:"parent",__useComponent:!0});return we(e,t,Ae,((...e)=>n[be](...e)))}},Ce=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Se={name:"i18n-d",props:p({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Oe),setup(e,t){const n=e.i18n||je({useScope:"parent",__useComponent:!0});return we(e,t,Ce,((...e)=>n[de](...e)))}};let $e=null,Pe=null;const Ue=i("global-vue-i18n");function Ve(e={},t){if(Pe)return Pe;$e=t;const n=!E(e.legacy)||e.legacy,a=!E(e.globalInjection)||e.globalInjection,r=new Map,l=function(e,t,n){if(!Ee(n))throw Error(pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return We(e,n)}(e,0,t);i("");{const e=l[ve];Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{value:(t,...r)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(pe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=I(t[0])?t[0]:{};(!E(n.globalInstall)||n.globalInstall)&&(e.component(De.name,De),e.component(Me.name,Me),e.component(Se.name,Se))}(t,...r),!n&&a&&function(e,t,n){t.watchLocale(n),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])}}(t,e,l),t.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=>Ie(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(I(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=>Ie(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&I(a)&&Ie(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||I(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,$e))}});const t={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Pe=e,e}}function je(e={}){const n=t();if(null==n)throw Error(pe.MUST_BE_CALL_SETUP_TOP);if(null==$e||null==Pe)throw Error(pe.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(pe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Pe),!n)throw Error(pe.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),s=function(e){return e.proxy.$options}(n),i=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===i)return function(e,t,n){let a=k(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ne(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,s),r;if("parent"===i){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[ye]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(pe.NOT_AVAILABLE_IN_LEGACY_MODE);const c=a;let u=c.__getInstance(n);if(null==u){const t=p({},e);"__i18n"in s&&(t.__i18n=s.__i18n),r&&(t.__root=r),u=We(t,$e),function(e,t,n){{const a=t.proxy;if(null==a)throw Error(pe.UNEXPECTED_ERROR);const r=n[ve];if(r===e)throw Error(pe.UNEXPECTED_ERROR);a._i18n=r,a._i18n_bridge=!0,a._i18nWatcher=a._i18n.watchI18nData(),a._i18n._sync&&(a._localeWatcher=a._i18n.watchLocale());let s=!1;l((()=>{a._i18n.subscribeDataChanging(a),s=!0}),t),o((()=>{s&&(a._i18n.unsubscribeDataChanging(a),s=!1),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher),delete a._i18n_bridge,delete a._i18n}),t)}}(c,n,u),c.__setInstance(n,u)}return u}const Ge=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(pe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};H=function(e,t){if(!k(e))return null;let n=D.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=O(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=W(n),i=T[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&D.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},Y=V;export{Se as DatetimeFormat,Ue as I18nInjectionKey,Me as NumberFormat,De as Translation,me as VERSION,Ge as castToVueI18n,Ve as createI18n,je as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi

@@ -18,3 +18,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.22';
const VERSION = '9.2.0-beta.23';
/**

@@ -921,4 +921,11 @@ * This is only called in esm-bundler builds.

if (keys.length === 1 && keys[0] === 'default') {
// default slot only
return slots.default ? slots.default() : [];
// default slot with list
const ret = slots.default ? slots.default() : [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return ret.reduce((slot, current) => {
return (slot = [
...slot,
...(isArray(current.children) ? current.children : [current])
]);
}, []);
}

@@ -925,0 +932,0 @@ else {

/*!
* vue-i18n-bridge v9.2.0-beta.22
* vue-i18n-bridge v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>n?Symbol(e):e,r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),l=e=>"[object RegExp]"===v(e),s=e=>y(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function f(e,t){return m.call(e,t)}const _=Array.isArray,p=e=>"function"==typeof e,g=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,v=e=>h.call(e),y=e=>"[object Object]"===v(e),E=15,k=[];k[0]={w:[0],i:[3,0],"[":[4],o:[7]},k[1]={w:[1],".":[2],"[":[4],o:[7]},k[2]={w:[2],i:[3,0],0:[3,0]},k[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},k[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},k[5]={"'":[4,0],o:8,l:[5,0]},k[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function I(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 L(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.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 T=new Map;function R(e,t){return b(e)?e[t]:null}const F=e=>e,W=e=>"",O=e=>0===e.length?"":e.join(""),w=e=>null==e?"":_(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function D(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function A(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),a=b(e.pluralRules)&&g(t)&&p(e.pluralRules[t])?e.pluralRules[t]:D,r=b(e.pluralRules)&&g(t)&&p(e.pluralRules[t])?D:void 0,l=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:O,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:w,m={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=i(t)(m);return g(n)?(r=n,e.modifiers?e.modifiers[r]:F)(a):a;var r},message:i,type:y(e.processor)&&g(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function C(e,t,n){return[...new Set([n,..._(t)?t:b(t)?Object.keys(t):g(t)?[t]:[n]])]}function M(e,t,n){const a=g(n)?n:U,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(a);if(!o){o=[];let e=[n];for(;_(e);)e=S(o,e,t);const l=_(t)||!y(t)?t:t.default?t.default:null;e=g(l)?[l]:l,_(e)&&S(o,e,!1),r.__localeChainCache.set(a,o)}return o}function S(e,t,n){let a=!0;for(let r=0;r<t.length&&d(a);r++){const o=t[r];g(o)&&(a=$(e,t[r],n))}return a}function $(e,t,n){let a;const r=t.split("-");do{a=P(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function P(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(_(n)||y(n))&&n[r]&&(a=n[r])}return a}const U="en-US";let V,j;let G=0;function B(e={}){const t=g(e.version)?e.version:"9.2.0-beta.22",n=g(e.locale)?e.locale:U,a=_(e.fallbackLocale)||y(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=y(e.messages)?e.messages:{[n]:{}},o=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=y(e.numberFormats)?e.numberFormats:{[n]:{}},u=c({},e.modifiers||{},{upper:e=>g(e)?e.toUpperCase():e,lower:e=>g(e)?e.toLowerCase():e,capitalize:e=>g(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,h=!d(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,v=!d(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,E=!!e.fallbackFormat,k=!!e.unresolving,N=p(e.postTranslation)?e.postTranslation:null,I=y(e.processor)?e.processor:null,L=!d(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter,F=p(e.messageCompiler)?e.messageCompiler:undefined,W=p(e.messageResolver)?e.messageResolver:V||R,O=p(e.localeFallbacker)?e.localeFallbacker:j||C,w=p(e.onWarn)?e.onWarn:i,D=e,A=b(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=b(D.__numberFormatters)?D.__numberFormatters:new Map,S=b(D.__meta)?D.__meta:{};G++;const $={version:t,cid:G,locale:n,fallbackLocale:a,messages:r,modifiers:u,pluralRules:m,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:E,unresolving:k,postTranslation:N,processor:I,warnHtmlMessage:L,escapeParameter:T,messageCompiler:F,messageResolver:W,localeFallbacker:O,onWarn:w,__meta:S};return $.datetimeFormats=o,$.numberFormats=s,$.__datetimeFormatters=A,$.__numberFormatters=M,$}function H(e,t,n,a,r){const{missing:o,onWarn:l}=e;if(null!==o){const a=o(e,n,t,r);return g(a)?a:t}return t}function x(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Y=E;const z=()=>Y++,J={INVALID_ARGUMENT:Y,INVALID_DATE_ARGUMENT:z(),INVALID_ISO_DATE_ARGUMENT:z(),__EXTEND_POINT__:z()},X=()=>"",q=e=>p(e);function K(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:s,messages:i}=e,[c,m]=Q(...t),f=(d(m.missingWarn)?m.missingWarn:e.missingWarn,d(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,d(m.escapeParameter)?m.escapeParameter:e.escapeParameter),h=!!m.resolvedMessage,v=g(m.default)||d(m.default)?d(m.default)?c:m.default:n?l?c:()=>c:"",y=n||""!==v,E=g(m.locale)?m.locale:e.locale;f&&function(e){_(e.list)?e.list=e.list.map((e=>g(e)?u(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(m);let[k,N,I]=h?[c,E,i[E]||{}]:function(e,t,n,a,r,o){const{messages:l,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const d="translate";for(let n=0;n<u.length&&(m=u[n],f=l[m]||{},null===(_=i(f,t))&&(_=f[t]),!g(_)&&!p(_));n++){const n=H(e,t,m,0,d);n!==t&&(_=n)}return[_,m,f]}(e,c,E,s),L=k,T=c;if(h||g(L)||q(L)||y&&(L=v,T=L),!(h||(g(L)||q(L))&&g(N)))return r?-1:c;let R=!1;const F=q(L)?L:Z(e,c,N,L,T,(()=>{R=!0}));if(R)return L;const W=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:s}=e,i=a=>{const r=s(n,a);if(g(r)){let n=!1;const o=Z(e,a,t,r,a,(()=>{n=!0}));return n?X:o}return q(r)?r:X},c={locale:t,modifiers:r,pluralRules:l,messages:i};e.processor&&(c.processor=e.processor);a.list&&(c.list=a.list);a.named&&(c.named=a.named);o(a.plural)&&(c.pluralIndex=a.plural);return c}(e,N,I,m),O=function(e,t,n){return t(n)}(0,F,A(W));return a?a(O):O}function Z(e,t,n,a,o,l){const{messageCompiler:s,warnHtmlMessage:i}=e;if(q(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(a,function(e,t,n,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>r({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,i,l));return c.locale=n,c.key=t,c.source=a,c}function Q(...e){const[t,n,a]=e,r={};if(!g(t)&&!o(t)&&!q(t))throw Error(J.INVALID_ARGUMENT);const l=o(t)?String(t):(q(t),t);return o(n)?r.plural=n:g(n)?r.default=n:y(n)&&!s(n)?r.named=n:_(n)&&(r.list=n),o(a)?r.plural=a:g(a)?r.default=a:y(a)&&c(r,a),[l,r]}function ee(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:i}=e,[u,m,f,_]=te(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,b=g(f.locale)?f.locale:e.locale,h=l(e,r,b);if(!g(u)||""===u)return new Intl.DateTimeFormat(b).format(m);let v,E={},k=null;for(let t=0;t<h.length&&(v=h[t],E=n[v]||{},k=E[u],!y(k));t++)H(e,u,v,0,"datetime format");if(!y(k)||!g(v))return a?-1:u;let N=`${v}__${u}`;s(_)||(N=`${N}__${JSON.stringify(_)}`);let I=i.get(N);return I||(I=new Intl.DateTimeFormat(v,c({},k,_)),i.set(N,I)),p?I.formatToParts(m):I.format(m)}function te(...e){const[t,n,a,r]=e;let l,s={},i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(J.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(J.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===v(t)){if(isNaN(t.getTime()))throw Error(J.INVALID_DATE_ARGUMENT);l=t}else{if(!o(t))throw Error(J.INVALID_ARGUMENT);l=t}return g(n)?s.key=n:y(n)&&(s=n),g(a)?s.locale=a:y(a)&&(i=a),y(r)&&(i=r),[s.key||"",l,s,i]}function ne(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ae(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:i}=e,[u,m,f,_]=re(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,b=g(f.locale)?f.locale:e.locale,h=l(e,r,b);if(!g(u)||""===u)return new Intl.NumberFormat(b).format(m);let v,E={},k=null;for(let t=0;t<h.length&&(v=h[t],E=n[v]||{},k=E[u],!y(k));t++)H(e,u,v,0,"number format");if(!y(k)||!g(v))return a?-1:u;let N=`${v}__${u}`;s(_)||(N=`${N}__${JSON.stringify(_)}`);let I=i.get(N);return I||(I=new Intl.NumberFormat(v,c({},k,_)),i.set(N,I)),p?I.formatToParts(m):I.format(m)}function re(...e){const[t,n,a,r]=e;let l={},s={};if(!o(t))throw Error(J.INVALID_ARGUMENT);const i=t;return g(n)?l.key=n:y(n)&&(l=n),g(a)?l.locale=a:y(a)&&(s=a),y(r)&&(s=r),[l.key||"",i,l,s]}function oe(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const le="9.2.0-beta.22";let se=E;const ie=()=>se++,ce={UNEXPECTED_RETURN_TYPE:se,INVALID_ARGUMENT:ie(),MUST_BE_CALL_SETUP_TOP:ie(),NOT_INSLALLED:ie(),NOT_AVAILABLE_IN_LEGACY_MODE:ie(),REQUIRED_VALUE:ie(),INVALID_VALUE:ie(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ie(),NOT_INSLALLED_WITH_PROVIDE:ie(),UNEXPECTED_ERROR:ie(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ie(),BRIDGE_SUPPORT_VUE_2_ONLY:ie(),__EXTEND_POINT__:ie()},ue=a("__transrateVNode"),me=a("__datetimeParts"),fe=a("__numberParts"),_e=a("__setPluralRules"),pe=a("__legacyVueI18n"),ge=a("__injectWithOption"),de="__VUE_I18N_BRIDGE__";function be(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function he(e){if(!b(e))return e;for(const t in e)if(f(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],b(r[n[a]])&&he(r[n[a]])}else b(e[t])&&he(e[t]);return e}function ve(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:o}=t,l=y(n)?n:_(a)?{}:{[e]:{}};if(_(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ee(n,l[t])):Ee(n,l)}else g(e)&&Ee(JSON.parse(e),l)})),null==r&&o)for(const e in l)f(l,e)&&he(l[e]);return l}const ye=e=>!b(e)||_(e);function Ee(e,t){if(ye(e)||ye(t))throw Error(ce.INVALID_VALUE);for(const n in e)f(e,n)&&(ye(e[n])||ye(t[n])?t[n]=e[n]:Ee(e[n],t[n]))}function ke(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)}let Ne=0;function Ie(e){return(n,a,r,o)=>e(a,r,t.getCurrentInstance()||void 0,o)}function Le(e={},n){const{__root:a}=e,r=void 0===a;let s=!d(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&s?a.locale.value:g(e.locale)?e.locale:U),u=t.ref(a&&s?a.fallbackLocale.value:g(e.fallbackLocale)||_(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(ve(i.value,e)),f=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[i.value]:{}});let v=a?a.missingWarn:!d(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,E=a?a.fallbackWarn:!d(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,k=a?a.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,L=p(e.missing)?Ie(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=!d(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const W=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let O,w,D=e.pluralRules||a&&a.pluralRules;{be(n);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:k,postTranslation:T,pluralizationRules:D,escapeParameterHtml:F,sync:s,silentFallbackWarn:d(E)?!E:E,silentTranslationWarn:d(v)?!v:v,formatFallbackMessages:d(N)?!N:N,warnHtmlInMessage:d(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:de};O=new n(e)}w=function(){const t={version:le,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:W,pluralRules:D,missing:null===L?void 0:L,missingWarn:v,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:F,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=f.value,t.numberFormats=h.value,t.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=y(w)?w.__numberFormatters:void 0,B(t)}(),x(w,i.value,u.value);const A=t.computed({get:()=>i.value,set:e=>{i.value=e,O&&!r&&(O.locale=e),w.locale=i.value}}),C=t.computed({get:()=>u.value,set:e=>{u.value=e,O&&!r&&(O.fallbackLocale=e),w.fallbackLocale=u.value,x(w,i.value,e)}}),S=t.computed((()=>m.value)),$=t.computed((()=>f.value)),P=t.computed((()=>h.value));function V(e,t,n,r,l,s){let c;if(i.value,u.value,m.value,f.value,h.value,c=e(w),o(c)&&-1===c){const[e,n]=t();return a&&k?r(a):l(e)}if(s(c))return c;throw Error(ce.UNEXPECTED_RETURN_TYPE)}function j(...e){return V((t=>Reflect.apply(K,null,[t,...e])),(()=>Q(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const G={normalize:function(e){return e.map((e=>g(e)?ke(e):e))},interpolate:e=>e,type:"vnode"};function H(e){return m.value[e]||{}}Ne++,a&&(t.watch(a.locale,(e=>{s&&(i.value=e,O&&!r&&(O.locale=e),w.locale=e,x(w,i.value,u.value))})),t.watch(a.fallbackLocale,(e=>{s&&(u.value=e,O&&!r&&(O.fallbackLocale=e),w.fallbackLocale=e,x(w,i.value,u.value))})));const Y={id:Ne,locale:A,fallbackLocale:C,get inheritLocale(){return s},set inheritLocale(e){s=e,O&&(O._sync=e),e&&a&&(i.value=a.locale.value,u.value=a.fallbackLocale.value,O&&(O.locale=a.locale.value,O.fallbackLocale=a.fallbackLocale.value),x(w,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return v},set missingWarn(e){v=e,w.missingWarn=v},get fallbackWarn(){return E},set fallbackWarn(e){E=e,w.fallbackWarn=E},get fallbackRoot(){return k},set fallbackRoot(e){k=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,w.fallbackFormat=N},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,w.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,w.escapeParameter=e},t:j,getLocaleMessage:H,setLocaleMessage:function(e,t){m.value[e]=t,O&&O.setLocaleMessage(e,t),w.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},O&&O.mergeLocaleMessage(e,t),Ee(t,m.value[e]),w.messages=m.value},getPostTranslationHandler:function(){return p(T)?T:null},setPostTranslationHandler:function(e){T=e,w.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(L=Ie(e)),I=e,w.missing=L},[_e]:function(e){D=e,w.pluralRules=D}};return Y.datetimeFormats=$,Y.numberFormats=P,Y.rt=function(...e){const[t,n,a]=e;if(a&&!b(a))throw Error(ce.INVALID_ARGUMENT);return j(t,n,c({resolvedMessage:!0},a||{}))},Y.te=function(e,t){const n=H(g(t)?t:i.value);return null!==w.messageResolver(n,e)},Y.tm=function(e){const t=function(e){let t=null;const n=M(w,u.value,i.value);for(let a=0;a<n.length;a++){const r=m.value[n[a]]||{},o=w.messageResolver(r,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},Y.d=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>g(e)))},Y.n=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>g(e)))},Y.getDateTimeFormat=function(e){return f.value[e]||{}},Y.setDateTimeFormat=function(e,t){f.value[e]=t,O&&O.setDateTimeFormat(e,t),w.datetimeFormats=f.value,ne(w,e,t)},Y.mergeDateTimeFormat=function(e,t){f.value[e]=c(f.value[e]||{},t),O&&O.mergeDateTimeFormat(e,t),w.datetimeFormats=f.value,ne(w,e,t)},Y.getNumberFormat=function(e){return h.value[e]||{}},Y.setNumberFormat=function(e,t){h.value[e]=t,O&&O.setNumberFormat(e,t),w.numberFormats=h.value,oe(w,e,t)},Y.mergeNumberFormat=function(e,t){h.value[e]=c(h.value[e]||{},t),O&&O.mergeNumberFormat(e,t),w.numberFormats=h.value,oe(w,e,t)},Y[ge]=e.__injectWithOption,Y[ue]=function(...e){return V((t=>{let n;const a=t;try{a.processor=G,n=Reflect.apply(K,null,[a,...e])}finally{a.processor=null}return n}),(()=>Q(...e)),0,(t=>t[ue](...e)),(e=>[ke(e)]),(e=>_(e)))},Y[me]=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>t[me](...e)),(()=>[]),(e=>g(e)||_(e)))},Y[fe]=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>t[fe](...e)),(()=>[]),(e=>g(e)||_(e)))},Y[pe]=O,Y}const Te={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Re={name:"i18n-t",props:c({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Te),setup(e,n){const{slots:a,attrs:r}=n,o=e.i18n||Se({useScope:e.scope,__useComponent:!0}),l=Object.keys(a).filter((e=>"_"!==e));return()=>{const a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=g(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const a=e[n];return a&&(t[n]=a()),t}),{})}(n,l),i=o[ue](e.keypath,s,a),u=c({},r),m=g(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,u,i)}}};function Fe(e,n,a,r){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:b(e.format)&&(g(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?c({},t,{[n]:e.format[n]}):t),{}));const i=r(e.value,n,s);let u=[n.key];_(i)?u=i.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:i}):[e.value]})):g(i)&&(u=[i]);const m=c({},l),f=g(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,u)}}const We=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Oe={name:"i18n-n",props:c({value:{type:Number,required:!0},format:{type:[String,Object]}},Te),setup(e,t){const n=e.i18n||Se({useScope:"parent",__useComponent:!0});return Fe(e,t,We,((...e)=>n[fe](...e)))}},we=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],De={name:"i18n-d",props:c({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Te),setup(e,t){const n=e.i18n||Se({useScope:"parent",__useComponent:!0});return Fe(e,t,we,((...e)=>n[me](...e)))}};let Ae=null,Ce=null;const Me=a("global-vue-i18n");function Se(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ce.MUST_BE_CALL_SETUP_TOP);if(null==Ae||null==Ce)throw Error(ce.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(ce.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Ce),!n)throw Error(ce.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),o=function(e){return e.proxy.$options}(n),l=function(e,t){return s(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===l)return function(e,t,n){let a=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=ve(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,o),r;if("parent"===l){let t=function(e,t,n=!1){let a=null;const r=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)a=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(a=e.__composer,n&&a&&!a[ge]&&(a=null))}if(null!=a)break;if(r===o)break;o=o.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(ce.NOT_AVAILABLE_IN_LEGACY_MODE);const i=a;let u=i.__getInstance(n);if(null==u){const a=c({},e);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),u=Le(a,Ae),function(e,n,a){{const r=n.proxy;if(null==r)throw Error(ce.UNEXPECTED_ERROR);const o=a[pe];if(o===e)throw Error(ce.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let l=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),l=!0}),n),t.onUnmounted((()=>{l&&(r._i18n.unsubscribeDataChanging(r),l=!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}),n)}}(i,n,u),i.__setInstance(n,u)}return u}return V=function(e,t){if(!b(e))return null;let n=T.get(t);if(n||(n=function(e){const t=[];let n,a,r,o,l,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=L(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(o=I(n),i=k[u],l=i[o]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&T.set(t,n)),!n)return null;const a=n.length;let r=e,o=0;for(;o<a;){const e=r[n[o]];if(void 0===e)return null;r=e,o++}return r},j=M,e.DatetimeFormat=De,e.I18nInjectionKey=Me,e.NumberFormat=Oe,e.Translation=Re,e.VERSION=le,e.castToVueI18n=e=>{if(!(de in e))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Ce)return Ce;Ae=t;const n=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=new Map,l=function(e,t,n){if(!be(n))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Le(e,n)}(e,0,t);a("");{const e=l[pe];Object.defineProperty(e,"global",{get:()=>l}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(ce.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!d(n.globalInstall)||n.globalInstall)&&(e.component(Re.name,Re),e.component(Oe.name,Oe),e.component(De.name,De))}(t,...a),!n&&r&&function(e,t,n){t.watchLocale(n),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])}}(t,e,l),t.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=>Ee(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(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=>Ee(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&y(a)&&Ee(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||y(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,Ae))}});const t={__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(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Ce=e,e}},e.useI18n=Se,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,t){"use strict";const n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>n?Symbol(e):e,r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===v(e),s=e=>y(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function u(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function f(e,t){return m.call(e,t)}const _=Array.isArray,p=e=>"function"==typeof e,g=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,v=e=>h.call(e),y=e=>"[object Object]"===v(e),E=15,k=[];k[0]={w:[0],i:[3,0],"[":[4],o:[7]},k[1]={w:[1],".":[2],"[":[4],o:[7]},k[2]={w:[2],i:[3,0],0:[3,0]},k[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},k[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},k[5]={"'":[4,0],o:8,l:[5,0]},k[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function I(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 L(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.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 T=new Map;function R(e,t){return b(e)?e[t]:null}const F=e=>e,W=e=>"",O=e=>0===e.length?"":e.join(""),w=e=>null==e?"":_(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function D(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function A(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),a=b(e.pluralRules)&&g(t)&&p(e.pluralRules[t])?e.pluralRules[t]:D,r=b(e.pluralRules)&&g(t)&&p(e.pluralRules[t])?D: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 i(t){const n=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:O,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:w,m={list:e=>o[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,n)=>{const a=i(t)(m);return g(n)?(r=n,e.modifiers?e.modifiers[r]:F)(a):a;var r},message:i,type:y(e.processor)&&g(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function C(e,t,n){return[...new Set([n,..._(t)?t:b(t)?Object.keys(t):g(t)?[t]:[n]])]}function M(e,t,n){const a=g(n)?n:U,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;_(e);)e=S(l,e,t);const o=_(t)||!y(t)?t:t.default?t.default:null;e=g(o)?[o]:o,_(e)&&S(l,e,!1),r.__localeChainCache.set(a,l)}return l}function S(e,t,n){let a=!0;for(let r=0;r<t.length&&d(a);r++){const l=t[r];g(l)&&(a=$(e,t[r],n))}return a}function $(e,t,n){let a;const r=t.split("-");do{a=P(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function P(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(_(n)||y(n))&&n[r]&&(a=n[r])}return a}const U="en-US";let V,j;let G=0;function B(e={}){const t=g(e.version)?e.version:"9.2.0-beta.23",n=g(e.locale)?e.locale:U,a=_(e.fallbackLocale)||y(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=y(e.messages)?e.messages:{[n]:{}},l=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=y(e.numberFormats)?e.numberFormats:{[n]:{}},u=c({},e.modifiers||{},{upper:e=>g(e)?e.toUpperCase():e,lower:e=>g(e)?e.toLowerCase():e,capitalize:e=>g(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,h=!d(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,v=!d(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,E=!!e.fallbackFormat,k=!!e.unresolving,N=p(e.postTranslation)?e.postTranslation:null,I=y(e.processor)?e.processor:null,L=!d(e.warnHtmlMessage)||e.warnHtmlMessage,T=!!e.escapeParameter,F=p(e.messageCompiler)?e.messageCompiler:undefined,W=p(e.messageResolver)?e.messageResolver:V||R,O=p(e.localeFallbacker)?e.localeFallbacker:j||C,w=p(e.onWarn)?e.onWarn:i,D=e,A=b(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,M=b(D.__numberFormatters)?D.__numberFormatters:new Map,S=b(D.__meta)?D.__meta:{};G++;const $={version:t,cid:G,locale:n,fallbackLocale:a,messages:r,modifiers:u,pluralRules:m,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:E,unresolving:k,postTranslation:N,processor:I,warnHtmlMessage:L,escapeParameter:T,messageCompiler:F,messageResolver:W,localeFallbacker:O,onWarn:w,__meta:S};return $.datetimeFormats=l,$.numberFormats=s,$.__datetimeFormatters=A,$.__numberFormatters=M,$}function H(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return g(a)?a:t}return t}function x(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Y=E;const z=()=>Y++,J={INVALID_ARGUMENT:Y,INVALID_DATE_ARGUMENT:z(),INVALID_ISO_DATE_ARGUMENT:z(),__EXTEND_POINT__:z()},X=()=>"",q=e=>p(e);function K(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:i}=e,[c,m]=Q(...t),f=(d(m.missingWarn)?m.missingWarn:e.missingWarn,d(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,d(m.escapeParameter)?m.escapeParameter:e.escapeParameter),h=!!m.resolvedMessage,v=g(m.default)||d(m.default)?d(m.default)?c:m.default:n?o?c:()=>c:"",y=n||""!==v,E=g(m.locale)?m.locale:e.locale;f&&function(e){_(e.list)?e.list=e.list.map((e=>g(e)?u(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=u(e.named[t]))}))}(m);let[k,N,I]=h?[c,E,i[E]||{}]:function(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;const d="translate";for(let n=0;n<u.length&&(m=u[n],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!g(_)&&!p(_));n++){const n=H(e,t,m,0,d);n!==t&&(_=n)}return[_,m,f]}(e,c,E,s),L=k,T=c;if(h||g(L)||q(L)||y&&(L=v,T=L),!(h||(g(L)||q(L))&&g(N)))return r?-1:c;let R=!1;const F=q(L)?L:Z(e,c,N,L,T,(()=>{R=!0}));if(R)return L;const W=function(e,t,n,a){const{modifiers:r,pluralRules:o,messageResolver:s}=e,i=a=>{const r=s(n,a);if(g(r)){let n=!1;const l=Z(e,a,t,r,a,(()=>{n=!0}));return n?X:l}return q(r)?r:X},c={locale:t,modifiers:r,pluralRules:o,messages:i};e.processor&&(c.processor=e.processor);a.list&&(c.list=a.list);a.named&&(c.named=a.named);l(a.plural)&&(c.pluralIndex=a.plural);return c}(e,N,I,m),O=function(e,t,n){return t(n)}(0,F,A(W));return a?a(O):O}function Z(e,t,n,a,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(q(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}const c=s(a,function(e,t,n,a,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>r({l:e,k:t,s:n}))(t,n,e)}}(0,n,l,0,i,o));return c.locale=n,c.key=t,c.source=a,c}function Q(...e){const[t,n,a]=e,r={};if(!g(t)&&!l(t)&&!q(t))throw Error(J.INVALID_ARGUMENT);const o=l(t)?String(t):(q(t),t);return l(n)?r.plural=n:g(n)?r.default=n:y(n)&&!s(n)?r.named=n:_(n)&&(r.list=n),l(a)?r.plural=a:g(a)?r.default=a:y(a)&&c(r,a),[o,r]}function ee(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:i}=e,[u,m,f,_]=te(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,b=g(f.locale)?f.locale:e.locale,h=o(e,r,b);if(!g(u)||""===u)return new Intl.DateTimeFormat(b).format(m);let v,E={},k=null;for(let t=0;t<h.length&&(v=h[t],E=n[v]||{},k=E[u],!y(k));t++)H(e,u,v,0,"datetime format");if(!y(k)||!g(v))return a?-1:u;let N=`${v}__${u}`;s(_)||(N=`${N}__${JSON.stringify(_)}`);let I=i.get(N);return I||(I=new Intl.DateTimeFormat(v,c({},k,_)),i.set(N,I)),p?I.formatToParts(m):I.format(m)}function te(...e){const[t,n,a,r]=e;let o,s={},i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(J.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();o=new Date(n);try{o.toISOString()}catch(e){throw Error(J.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===v(t)){if(isNaN(t.getTime()))throw Error(J.INVALID_DATE_ARGUMENT);o=t}else{if(!l(t))throw Error(J.INVALID_ARGUMENT);o=t}return g(n)?s.key=n:y(n)&&(s=n),g(a)?s.locale=a:y(a)&&(i=a),y(r)&&(i=r),[s.key||"",o,s,i]}function ne(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function ae(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:i}=e,[u,m,f,_]=re(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,b=g(f.locale)?f.locale:e.locale,h=o(e,r,b);if(!g(u)||""===u)return new Intl.NumberFormat(b).format(m);let v,E={},k=null;for(let t=0;t<h.length&&(v=h[t],E=n[v]||{},k=E[u],!y(k));t++)H(e,u,v,0,"number format");if(!y(k)||!g(v))return a?-1:u;let N=`${v}__${u}`;s(_)||(N=`${N}__${JSON.stringify(_)}`);let I=i.get(N);return I||(I=new Intl.NumberFormat(v,c({},k,_)),i.set(N,I)),p?I.formatToParts(m):I.format(m)}function re(...e){const[t,n,a,r]=e;let o={},s={};if(!l(t))throw Error(J.INVALID_ARGUMENT);const i=t;return g(n)?o.key=n:y(n)&&(o=n),g(a)?o.locale=a:y(a)&&(s=a),y(r)&&(s=r),[o.key||"",i,o,s]}function le(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const oe="9.2.0-beta.23";let se=E;const ie=()=>se++,ce={UNEXPECTED_RETURN_TYPE:se,INVALID_ARGUMENT:ie(),MUST_BE_CALL_SETUP_TOP:ie(),NOT_INSLALLED:ie(),NOT_AVAILABLE_IN_LEGACY_MODE:ie(),REQUIRED_VALUE:ie(),INVALID_VALUE:ie(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ie(),NOT_INSLALLED_WITH_PROVIDE:ie(),UNEXPECTED_ERROR:ie(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ie(),BRIDGE_SUPPORT_VUE_2_ONLY:ie(),__EXTEND_POINT__:ie()},ue=a("__transrateVNode"),me=a("__datetimeParts"),fe=a("__numberParts"),_e=a("__setPluralRules"),pe=a("__legacyVueI18n"),ge=a("__injectWithOption"),de="__VUE_I18N_BRIDGE__";function be(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function he(e){if(!b(e))return e;for(const t in e)if(f(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e;for(let e=0;e<a;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[a]]=e[t],delete e[t],b(r[n[a]])&&he(r[n[a]])}else b(e[t])&&he(e[t]);return e}function ve(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=y(n)?n:_(a)?{}:{[e]:{}};if(_(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},Ee(n,o[t])):Ee(n,o)}else g(e)&&Ee(JSON.parse(e),o)})),null==r&&l)for(const e in o)f(o,e)&&he(o[e]);return o}const ye=e=>!b(e)||_(e);function Ee(e,t){if(ye(e)||ye(t))throw Error(ce.INVALID_VALUE);for(const n in e)f(e,n)&&(ye(e[n])||ye(t[n])?t[n]=e[n]:Ee(e[n],t[n]))}function ke(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)}let Ne=0;function Ie(e){return(n,a,r,l)=>e(a,r,t.getCurrentInstance()||void 0,l)}function Le(e={},n){const{__root:a}=e,r=void 0===a;let s=!d(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&s?a.locale.value:g(e.locale)?e.locale:U),u=t.ref(a&&s?a.fallbackLocale.value:g(e.fallbackLocale)||_(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(ve(i.value,e)),f=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[i.value]:{}});let v=a?a.missingWarn:!d(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,E=a?a.fallbackWarn:!d(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,k=a?a.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,L=p(e.missing)?Ie(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=!d(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const W=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let O,w,D=e.pluralRules||a&&a.pluralRules;{be(n);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:k,postTranslation:T,pluralizationRules:D,escapeParameterHtml:F,sync:s,silentFallbackWarn:d(E)?!E:E,silentTranslationWarn:d(v)?!v:v,formatFallbackMessages:d(N)?!N:N,warnHtmlInMessage:d(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:de};O=new n(e)}w=function(){const t={version:oe,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:W,pluralRules:D,missing:null===L?void 0:L,missingWarn:v,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:F,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=f.value,t.numberFormats=h.value,t.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=y(w)?w.__numberFormatters:void 0,B(t)}(),x(w,i.value,u.value);const A=t.computed({get:()=>i.value,set:e=>{i.value=e,O&&!r&&(O.locale=e),w.locale=i.value}}),C=t.computed({get:()=>u.value,set:e=>{u.value=e,O&&!r&&(O.fallbackLocale=e),w.fallbackLocale=u.value,x(w,i.value,e)}}),S=t.computed((()=>m.value)),$=t.computed((()=>f.value)),P=t.computed((()=>h.value));function V(e,t,n,r,o,s){let c;if(i.value,u.value,m.value,f.value,h.value,c=e(w),l(c)&&-1===c){const[e,n]=t();return a&&k?r(a):o(e)}if(s(c))return c;throw Error(ce.UNEXPECTED_RETURN_TYPE)}function j(...e){return V((t=>Reflect.apply(K,null,[t,...e])),(()=>Q(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const G={normalize:function(e){return e.map((e=>g(e)?ke(e):e))},interpolate:e=>e,type:"vnode"};function H(e){return m.value[e]||{}}Ne++,a&&(t.watch(a.locale,(e=>{s&&(i.value=e,O&&!r&&(O.locale=e),w.locale=e,x(w,i.value,u.value))})),t.watch(a.fallbackLocale,(e=>{s&&(u.value=e,O&&!r&&(O.fallbackLocale=e),w.fallbackLocale=e,x(w,i.value,u.value))})));const Y={id:Ne,locale:A,fallbackLocale:C,get inheritLocale(){return s},set inheritLocale(e){s=e,O&&(O._sync=e),e&&a&&(i.value=a.locale.value,u.value=a.fallbackLocale.value,O&&(O.locale=a.locale.value,O.fallbackLocale=a.fallbackLocale.value),x(w,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return v},set missingWarn(e){v=e,w.missingWarn=v},get fallbackWarn(){return E},set fallbackWarn(e){E=e,w.fallbackWarn=E},get fallbackRoot(){return k},set fallbackRoot(e){k=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,w.fallbackFormat=N},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,w.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,w.escapeParameter=e},t:j,getLocaleMessage:H,setLocaleMessage:function(e,t){m.value[e]=t,O&&O.setLocaleMessage(e,t),w.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},O&&O.mergeLocaleMessage(e,t),Ee(t,m.value[e]),w.messages=m.value},getPostTranslationHandler:function(){return p(T)?T:null},setPostTranslationHandler:function(e){T=e,w.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(L=Ie(e)),I=e,w.missing=L},[_e]:function(e){D=e,w.pluralRules=D}};return Y.datetimeFormats=$,Y.numberFormats=P,Y.rt=function(...e){const[t,n,a]=e;if(a&&!b(a))throw Error(ce.INVALID_ARGUMENT);return j(t,n,c({resolvedMessage:!0},a||{}))},Y.te=function(e,t){const n=H(g(t)?t:i.value);return null!==w.messageResolver(n,e)},Y.tm=function(e){const t=function(e){let t=null;const n=M(w,u.value,i.value);for(let a=0;a<n.length;a++){const r=m.value[n[a]]||{},l=w.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},Y.d=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>g(e)))},Y.n=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>g(e)))},Y.getDateTimeFormat=function(e){return f.value[e]||{}},Y.setDateTimeFormat=function(e,t){f.value[e]=t,O&&O.setDateTimeFormat(e,t),w.datetimeFormats=f.value,ne(w,e,t)},Y.mergeDateTimeFormat=function(e,t){f.value[e]=c(f.value[e]||{},t),O&&O.mergeDateTimeFormat(e,t),w.datetimeFormats=f.value,ne(w,e,t)},Y.getNumberFormat=function(e){return h.value[e]||{}},Y.setNumberFormat=function(e,t){h.value[e]=t,O&&O.setNumberFormat(e,t),w.numberFormats=h.value,le(w,e,t)},Y.mergeNumberFormat=function(e,t){h.value[e]=c(h.value[e]||{},t),O&&O.mergeNumberFormat(e,t),w.numberFormats=h.value,le(w,e,t)},Y[ge]=e.__injectWithOption,Y[ue]=function(...e){return V((t=>{let n;const a=t;try{a.processor=G,n=Reflect.apply(K,null,[a,...e])}finally{a.processor=null}return n}),(()=>Q(...e)),0,(t=>t[ue](...e)),(e=>[ke(e)]),(e=>_(e)))},Y[me]=function(...e){return V((t=>Reflect.apply(ee,null,[t,...e])),(()=>te(...e)),0,(t=>t[me](...e)),(()=>[]),(e=>g(e)||_(e)))},Y[fe]=function(...e){return V((t=>Reflect.apply(ae,null,[t,...e])),(()=>re(...e)),0,(t=>t[fe](...e)),(()=>[]),(e=>g(e)||_(e)))},Y[pe]=O,Y}const Te={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Re={name:"i18n-t",props:c({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Te),setup(e,n){const{slots:a,attrs:r}=n,l=e.i18n||Se({useScope:e.scope,__useComponent:!0}),o=Object.keys(a).filter((e=>"_"!==e));return()=>{const a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=g(e.plural)?+e.plural:e.plural);const s=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 a=e[n];return a&&(t[n]=a()),t}),{})}(n,o),i=l[ue](e.keypath,s,a),u=c({},r),m=g(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,u,i)}}};function Fe(e,n,a,r){const{slots:l,attrs:o}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:b(e.format)&&(g(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?c({},t,{[n]:e.format[n]}):t),{}));const i=r(e.value,n,s);let u=[n.key];_(i)?u=i.map(((e,t)=>{const n=l[e.type];return n?n({[e.type]:e.value,index:t,parts:i}):[e.value]})):g(i)&&(u=[i]);const m=c({},o),f=g(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,u)}}const We=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Oe={name:"i18n-n",props:c({value:{type:Number,required:!0},format:{type:[String,Object]}},Te),setup(e,t){const n=e.i18n||Se({useScope:"parent",__useComponent:!0});return Fe(e,t,We,((...e)=>n[fe](...e)))}},we=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],De={name:"i18n-d",props:c({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Te),setup(e,t){const n=e.i18n||Se({useScope:"parent",__useComponent:!0});return Fe(e,t,we,((...e)=>n[me](...e)))}};let Ae=null,Ce=null;const Me=a("global-vue-i18n");function Se(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ce.MUST_BE_CALL_SETUP_TOP);if(null==Ae||null==Ce)throw Error(ce.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(ce.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=Ce),!n)throw Error(ce.NOT_INSLALLED);return n}}(n),r=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(n),o=function(e,t){return s(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return function(e,t,n){let a=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=ve(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,l),r;if("parent"===o){let t=function(e,t,n=!1){let a=null;const r=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[ge]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}if("legacy"===a.mode)throw Error(ce.NOT_AVAILABLE_IN_LEGACY_MODE);const i=a;let u=i.__getInstance(n);if(null==u){const a=c({},e);"__i18n"in l&&(a.__i18n=l.__i18n),r&&(a.__root=r),u=Le(a,Ae),function(e,n,a){{const r=n.proxy;if(null==r)throw Error(ce.UNEXPECTED_ERROR);const l=a[pe];if(l===e)throw Error(ce.UNEXPECTED_ERROR);r._i18n=l,r._i18n_bridge=!0,r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale());let o=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),o=!0}),n),t.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}),n)}}(i,n,u),i.__setInstance(n,u)}return u}return V=function(e,t){if(!b(e))return null;let n=T.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,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++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=L(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=I(n),i=k[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&T.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;r=e,l++}return r},j=M,e.DatetimeFormat=De,e.I18nInjectionKey=Me,e.NumberFormat=Oe,e.Translation=Re,e.VERSION=oe,e.castToVueI18n=e=>{if(!(de in e))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(Ce)return Ce;Ae=t;const n=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,l=new Map,o=function(e,t,n){if(!be(n))throw Error(ce.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Le(e,n)}(e,0,t);a("");{const e=o[pe];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(ce.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!d(n.globalInstall)||n.globalInstall)&&(e.component(Re.name,Re),e.component(Oe.name,Oe),e.component(De.name,De))}(t,...a),!n&&r&&function(e,t,n){t.watchLocale(n),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])}}(t,e,o),t.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=>Ee(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(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=>Ee(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:a}=n.i18n;a&&y(a)&&Ee(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||y(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,Ae))}});const t={__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(t).forEach((n=>Object.defineProperty(e,n,{value:t[n]}))),Ce=e,e}},e.useI18n=Se,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
{
"name": "vue-i18n-bridge",
"version": "9.2.0-beta.22",
"version": "9.2.0-beta.23",
"description": "A bridge for Vue I18n Legacy",

@@ -40,5 +40,5 @@ "keywords": [

"dependencies": {
"@intlify/core-base": "9.2.0-beta.22",
"@intlify/shared": "9.2.0-beta.22",
"@intlify/vue-devtools": "9.2.0-beta.22",
"@intlify/core-base": "9.2.0-beta.23",
"@intlify/shared": "9.2.0-beta.23",
"@intlify/vue-devtools": "9.2.0-beta.23",
"@vue/composition-api": "^1.2.1",

@@ -48,3 +48,3 @@ "@vue/devtools-api": "^6.0.0-beta.13"

"devDependencies": {
"@intlify/devtools-if": "9.2.0-beta.22"
"@intlify/devtools-if": "9.2.0-beta.23"
},

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

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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