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.33 to 9.2.0-beta.34

4

dist/vue-i18n-bridge.esm-browser.prod.js
/*!
* vue-i18n-bridge v9.2.0-beta.33
* vue-i18n-bridge v9.2.0-beta.34
* (c) 2022 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 l,onUnmounted as o,shallowRef as s}from"@vue/composition-api";const c="undefined"!=typeof window,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=e=>i?Symbol(e):e,f=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),m=e=>"number"==typeof e&&isFinite(e),p=e=>"[object RegExp]"===I(e),g=e=>O(e)&&0===Object.keys(e).length;function _(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const d=Object.assign;function v(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const b=Object.prototype.hasOwnProperty;function h(e,t){return b.call(e,t)}const k=Array.isArray,y=e=>"function"==typeof e,L=e=>"string"==typeof e,T=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,N=Object.prototype.toString,I=e=>N.call(e),O=e=>"[object Object]"===I(e),F=15;function C(e){throw e}function P(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const R=String.fromCharCode(8232),w=String.fromCharCode(8233);function W(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===w,c=e=>t[e]===R,i=e=>o(e)||(e=>"\n"===t[e])(e)||s(e)||c(e),u=e=>o(e)||s(e)||c(e)?"\n":t[e];function f(){return l=0,i(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const M=void 0;function S(e,t={}){const n=!1!==t.location,r=W(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=P(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):(l(),"")}function g(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===l?(e.peek(),n(!0," ",a)):"\n"!==l||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function y(e){return k(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 k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function E(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 l(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){_(e);const t=p(e,"|");return _(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&l(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&l(),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&&l(),n=C(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(b(e))return t.braceNest>0&&l(),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 l(),t.braceNest=0,R(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===M&&l(),n}(e)),_(e),n;if(a=v(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===M&&l(),t}(e)),_(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(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&&"\n"!==e;for(;t=k(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===M?(l(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=k(e,r);)n+=t;return n}(e)),l(),n.value,_(e),n}return n}function C(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||l(),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,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),C(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),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?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(_(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&&l(),t.braceNest=0,t.inLinked=!1,R(e,t))}}function R(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return C(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return l(),e.next(),f(t,3,"}");case"@":return C(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(h(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:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===M?f(c,14):R(r,c)},currentOffset:a,currentPosition:l,context:i}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function A(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 D(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function l(e,t){const n=e.context(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(x,A),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,$(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(t.lastStartLoc,$(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(t.lastStartLoc,$(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(t.lastStartLoc,$(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(t.lastStartLoc,$(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(t.lastStartLoc,$(l)),n.key=c(e,l.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:l,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(l(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(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:l}=t,o=u(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=u(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=S(n,d({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=f(l),14!==o.currentType&&(o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function $(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function U(e,t){for(let n=0;n<e.length;n++)j(e[n],t)}function j(e,t){switch(e.type){case 1:U(e.cases,t),t.helper("plural");break;case 2:U(e.items,t);break;case 6:j(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 V(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&j(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function H(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?H(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&&(H(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&&(H(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")}(`),H(e,t.key),t.modifier&&(e.push(", "),H(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 G(e,t={}){const n=d({},t),r=D(n).parse(e);return V(r,n),((e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function s(e,t){o.code+=e}function c(e,t=!0){const n=t?a:"";s(l?n+" ".repeat(e):n)}return{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&c(t)},newline:function(){c(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),H(c,e),c.deindent(o),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const B=[];B[0]={w:[0],i:[3,0],"[":[4],o:[7]},B[1]={w:[1],".":[2],"[":[4],o:[7]},B[2]={w:[2],i:[3,0],0:[3,0]},B[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},B[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},B[5]={"'":[4,0],o:8,l:[5,0]},B[6]={'"':[4,0],o:8,l:[6,0]};const J=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Y(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 z(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,J.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const X=new Map;function q(e,t){return E(e)?e[t]:null}const K=e=>e,Z=e=>"",Q=e=>0===e.length?"":e.join(""),ee=e=>null==e?"":k(e)||O(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function te(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ne(e={}){const t=e.locale,n=function(e){const t=m(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(m(e.named.count)||m(e.named.n))?m(e.named.count)?e.named.count:m(e.named.n)?e.named.n:t:t}(e),r=E(e.pluralRules)&&L(t)&&y(e.pluralRules[t])?e.pluralRules[t]:te,a=E(e.pluralRules)&&L(t)&&y(e.pluralRules[t])?te:void 0,l=e.list||[],o=e.named||{};m(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=y(e.messages)?e.messages(t):!!E(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Z)}const c=O(e.processor)&&y(e.processor.normalize)?e.processor.normalize:Q,i=O(e.processor)&&y(e.processor.interpolate)?e.processor.interpolate:ee,u={list:e=>l[e],named:e=>o[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=s(t)(u);return L(n)?(a=n,e.modifiers?e.modifiers[a]:K)(r):r;var a},message:s,type:O(e.processor)&&L(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return u}function re(e,t,n){return[...new Set([n,...k(t)?t:E(t)?Object.keys(t):L(t)?[t]:[n]])]}function ae(e,t,n){const r=L(n)?n:ce,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;k(e);)e=le(l,e,t);const o=k(t)||!O(t)?t:t.default?t.default:null;e=L(o)?[o]:o,k(e)&&le(l,e,!1),a.__localeChainCache.set(r,l)}return l}function le(e,t,n){let r=!0;for(let a=0;a<t.length&&T(r);a++){const l=t[a];L(l)&&(r=oe(e,t[a],n))}return r}function oe(e,t,n){let r;const a=t.split("-");do{r=se(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function se(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),(k(n)||O(n))&&n[a]&&(r=n[a])}return r}const ce="en-US";let ie,ue,fe;let me=0;function pe(e={}){const t=L(e.version)?e.version:"9.2.0-beta.33",n=L(e.locale)?e.locale:ce,r=k(e.fallbackLocale)||O(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=O(e.messages)?e.messages:{[n]:{}},l=O(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=O(e.numberFormats)?e.numberFormats:{[n]:{}},s=d({},e.modifiers||{},{upper:e=>L(e)?e.toUpperCase():e,lower:e=>L(e)?e.toLowerCase():e,capitalize:e=>L(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=y(e.missing)?e.missing:null,u=!T(e.missingWarn)&&!p(e.missingWarn)||e.missingWarn,f=!T(e.fallbackWarn)&&!p(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,g=!!e.unresolving,v=y(e.postTranslation)?e.postTranslation:null,b=O(e.processor)?e.processor:null,h=!T(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter,I=y(e.messageCompiler)?e.messageCompiler:ie,F=y(e.messageResolver)?e.messageResolver:ue||q,C=y(e.localeFallbacker)?e.localeFallbacker:fe||re,P=E(e.fallbackContext)?e.fallbackContext:void 0,R=y(e.onWarn)?e.onWarn:_,w=e,W=E(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=E(w.__numberFormatters)?w.__numberFormatters:new Map,S=E(w.__meta)?w.__meta:{};me++;const x={version:t,cid:me,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:f,fallbackFormat:m,unresolving:g,postTranslation:v,processor:b,warnHtmlMessage:h,escapeParameter:N,messageCompiler:I,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:S};return x.datetimeFormats=l,x.numberFormats=o,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function ge(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return L(r)?r:t}return t}function _e(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const de=e=>e;let ve=Object.create(null);let be=F;const he=()=>++be,ke={INVALID_ARGUMENT:be,INVALID_DATE_ARGUMENT:he(),INVALID_ISO_DATE_ARGUMENT:he(),__EXTEND_POINT__:he()},ye=()=>"",Le=e=>y(e);function Te(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:o,messages:s}=e,[c,i]=Ie(...t),u=T(i.missingWarn)?i.missingWarn:e.missingWarn,f=T(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,p=T(i.escapeParameter)?i.escapeParameter:e.escapeParameter,g=!!i.resolvedMessage,_=L(i.default)||T(i.default)?T(i.default)?l?c:()=>c:i.default:n?l?c:()=>c:"",d=n||""!==_,b=L(i.locale)?i.locale:e.locale;p&&function(e){k(e.list)?e.list=e.list.map((e=>L(e)?v(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{L(e.named[t])&&(e.named[t]=v(e.named[t]))}))}(i);let[h,y,N]=g?[c,b,s[b]||{}]:Ee(e,c,b,o,f,u),I=h,O=c;if(g||L(I)||Le(I)||d&&(I=_,O=I),!(g||(L(I)||Le(I))&&L(y)))return a?-1:c;let F=!1;const C=Le(I)?I:Ne(e,c,y,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:i,fallbackContext:u}=e,f=r=>{let a=o(n,r);if(null==a&&u){const[,,e]=Ee(u,r,t,s,c,i);a=o(e,r)}if(L(a)){let n=!1;const l=Ne(e,r,t,a,r,(()=>{n=!0}));return n?ye:l}return Le(a)?a:ye},p={locale:t,modifiers:a,pluralRules:l,messages:f};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);m(r.plural)&&(p.pluralIndex=r.plural);return p}(e,y,N,i),R=function(e,t,n){return t(n)}(0,C,ne(P));return r?r(R):R}function Ee(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=o[f]||{},null===(p=c(m,t))&&(p=m[t]),!L(p)&&!y(p));n++){const n=ge(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Ne(e,t,n,r,a,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Le(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==o){const e=()=>r;return e.locale=n,e.key=t,e}const c=o(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>f({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,s,l));return c.locale=n,c.key=t,c.source=r,c}function Ie(...e){const[t,n,r]=e,a={};if(!L(t)&&!m(t)&&!Le(t))throw Error(ke.INVALID_ARGUMENT);const l=m(t)?String(t):(Le(t),t);return m(n)?a.plural=n:L(n)?a.default=n:O(n)&&!g(n)?a.named=n:k(n)&&(a.list=n),m(r)?a.plural=r:L(r)?a.default=r:O(r)&&d(a,r),[l,a]}function Oe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,i,u,f]=Fe(...t);T(u.missingWarn)?u.missingWarn:e.missingWarn;T(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=L(u.locale)?u.locale:e.locale,_=o(e,a,p);if(!L(c)||""===c)return new Intl.DateTimeFormat(p).format(i);let v,b={},h=null;for(let t=0;t<_.length&&(v=_[t],b=n[v]||{},h=b[c],!O(h));t++)ge(e,c,v,0,"datetime format");if(!O(h)||!L(v))return r?-1:c;let k=`${v}__${c}`;g(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(v,d({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}function Fe(...e){const[t,n,r,a]=e;let l,o={},s={};if(L(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ke.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(ke.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(t)){if(isNaN(t.getTime()))throw Error(ke.INVALID_DATE_ARGUMENT);l=t}else{if(!m(t))throw Error(ke.INVALID_ARGUMENT);l=t}return L(n)?o.key=n:O(n)&&(o=n),L(r)?o.locale=r:O(r)&&(s=r),O(a)&&(s=a),[o.key||"",l,o,s]}function Ce(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Pe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,i,u,f]=Re(...t);T(u.missingWarn)?u.missingWarn:e.missingWarn;T(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=L(u.locale)?u.locale:e.locale,_=o(e,a,p);if(!L(c)||""===c)return new Intl.NumberFormat(p).format(i);let v,b={},h=null;for(let t=0;t<_.length&&(v=_[t],b=n[v]||{},h=b[c],!O(h));t++)ge(e,c,v,0,"number format");if(!O(h)||!L(v))return r?-1:c;let k=`${v}__${c}`;g(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(v,d({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}function Re(...e){const[t,n,r,a]=e;let l={},o={};if(!m(t))throw Error(ke.INVALID_ARGUMENT);const s=t;return L(n)?l.key=n:O(n)&&(l=n),L(r)?l.locale=r:O(r)&&(o=r),O(a)&&(o=a),[l.key||"",s,l,o]}function we(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const We="9.2.0-beta.33";let Me=F;const Se=()=>++Me,xe={UNEXPECTED_RETURN_TYPE:Me,INVALID_ARGUMENT:Se(),MUST_BE_CALL_SETUP_TOP:Se(),NOT_INSLALLED:Se(),NOT_AVAILABLE_IN_LEGACY_MODE:Se(),REQUIRED_VALUE:Se(),INVALID_VALUE:Se(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Se(),NOT_INSLALLED_WITH_PROVIDE:Se(),UNEXPECTED_ERROR:Se(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Se(),BRIDGE_SUPPORT_VUE_2_ONLY:Se(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Se(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Se(),__EXTEND_POINT__:Se()},Ae=u("__transrateVNode"),De=u("__datetimeParts"),$e=u("__numberParts"),Ue=u("__setPluralRules"),je=u("__legacyVueI18n"),Ve=u("__injectWithOption");function He(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Ge(e){if(!E(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],E(a[n[r]])&&Ge(a[n[r]])}else E(e[t])&&Ge(e[t]);return e}function Be(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=O(n)?n:k(r)?{}:{[e]:{}};if(k(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},Ye(n,o[t])):Ye(n,o)}else L(e)&&Ye(JSON.parse(e),o)})),null==a&&l)for(const e in o)h(o,e)&&Ge(o[e]);return o}const Je=e=>!E(e)||k(e);function Ye(e,t){if(Je(e)||Je(t))throw Error(xe.INVALID_VALUE);for(const n in e)h(e,n)&&(Je(e[n])||Je(t[n])?t[n]=e[n]:Ye(e[n],t[n]))}function ze(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 Xe=0;function qe(e){return(n,r,a,l)=>e(r,a,t()||void 0,l)}function Ke(t={},a){const{__root:l}=t,o=void 0===l;let s=!T(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:L(t.locale)?t.locale:ce),u=e(l&&s?l.fallbackLocale.value:L(t.fallbackLocale)||k(t.fallbackLocale)||O(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(Be(i.value,t)),g=e(O(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),_=e(O(t.numberFormats)?t.numberFormats:{[i.value]:{}});let v=l?l.missingWarn:!T(t.missingWarn)&&!p(t.missingWarn)||t.missingWarn,b=l?l.fallbackWarn:!T(t.fallbackWarn)&&!p(t.fallbackWarn)||t.fallbackWarn,h=l?l.fallbackRoot:!T(t.fallbackRoot)||t.fallbackRoot,N=!!t.fallbackFormat,I=y(t.missing)?t.missing:null,F=y(t.missing)?qe(t.missing):null,C=y(t.postTranslation)?t.postTranslation:null,P=l?l.warnHtmlMessage:!T(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const w=l?l.modifiers:O(t.modifiers)?t.modifiers:{};let W,M,S=t.pluralRules||l&&l.pluralRules;{He(a);const e={locale:i.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:g.value,numberFormats:_.value,modifiers:w,missing:I,fallbackRoot:h,postTranslation:C,pluralizationRules:S,escapeParameterHtml:R,sync:s,silentFallbackWarn:T(b)?!b:b,silentTranslationWarn:T(v)?!v:v,formatFallbackMessages:T(N)?!N:N,warnHtmlInMessage:T(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};W=new a(e)}M=function(){const e={version:"9.2.0-beta.33",locale:i.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:S,missing:null===F?void 0:F,missingWarn:v,fallbackWarn:b,fallbackFormat:N,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:P,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=_.value,e.__datetimeFormatters=O(M)?M.__datetimeFormatters:void 0,e.__numberFormatters=O(M)?M.__numberFormatters:void 0,pe(e)}(),_e(M,i.value,u.value);const x=n({get:()=>i.value,set:e=>{i.value=e,W&&!o&&(W.locale=e),M.locale=i.value}}),A=n({get:()=>u.value,set:e=>{u.value=e,W&&!o&&(W.fallbackLocale=e),M.fallbackLocale=u.value,_e(M,i.value,e)}}),D=n((()=>f.value)),$=n((()=>g.value)),U=n((()=>_.value));function j(e,t,n,r,a,o){let s;if(i.value,u.value,f.value,g.value,_.value,s=e(M),m(s)&&-1===s){const[e,n]=t();return l&&h?r(l):a(e)}if(o(s))return s;throw Error(xe.UNEXPECTED_RETURN_TYPE)}function V(...e){return j((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ie(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>L(e)))}const H={normalize:function(e){return e.map((e=>L(e)?ze(e):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Xe++,l&&c&&(r(l.locale,(e=>{s&&(i.value=e,W&&!o&&(W.locale=e),M.locale=e,_e(M,i.value,u.value))})),r(l.fallbackLocale,(e=>{s&&(u.value=e,W&&!o&&(W.fallbackLocale=e),M.fallbackLocale=e,_e(M,i.value,u.value))})));const B={id:Xe,locale:x,fallbackLocale:A,get inheritLocale(){return s},set inheritLocale(e){s=e,W&&(W._sync=e),e&&l&&(i.value=l.locale.value,u.value=l.fallbackLocale.value,W&&(W.locale=l.locale.value,W.fallbackLocale=l.fallbackLocale.value),_e(M,i.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:D,get modifiers(){return w},get pluralRules(){return S||{}},get isGlobal(){return o},get missingWarn(){return v},set missingWarn(e){v=e,M.missingWarn=v},get fallbackWarn(){return b},set fallbackWarn(e){b=e,M.fallbackWarn=b},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,M.fallbackFormat=N},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,M.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,M.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,W&&W.setLocaleMessage(e,t),M.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},W&&W.mergeLocaleMessage(e,t),Ye(t,f.value[e]),M.messages=f.value},getPostTranslationHandler:function(){return y(C)?C:null},setPostTranslationHandler:function(e){C=e,M.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(F=qe(e)),I=e,M.missing=F},[Ue]:function(e){S=e,M.pluralRules=S}};return B.datetimeFormats=$,B.numberFormats=U,B.rt=function(...e){const[t,n,r]=e;if(r&&!E(r))throw Error(xe.INVALID_ARGUMENT);return V(t,n,d({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(L(t)?t:i.value);return null!==M.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=ae(M,u.value,i.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},l=M.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},B.d=function(...e){return j((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Fe(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>L(e)))},B.n=function(...e){return j((t=>Reflect.apply(Pe,null,[t,...e])),(()=>Re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>L(e)))},B.getDateTimeFormat=function(e){return g.value[e]||{}},B.setDateTimeFormat=function(e,t){g.value[e]=t,W&&W.setDateTimeFormat(e,t),M.datetimeFormats=g.value,Ce(M,e,t)},B.mergeDateTimeFormat=function(e,t){g.value[e]=d(g.value[e]||{},t),W&&W.mergeDateTimeFormat(e,t),M.datetimeFormats=g.value,Ce(M,e,t)},B.getNumberFormat=function(e){return _.value[e]||{}},B.setNumberFormat=function(e,t){_.value[e]=t,W&&W.setNumberFormat(e,t),M.numberFormats=_.value,we(M,e,t)},B.mergeNumberFormat=function(e,t){_.value[e]=d(_.value[e]||{},t),W&&W.mergeNumberFormat(e,t),M.numberFormats=_.value,we(M,e,t)},B[Ve]=t.__injectWithOption,B[Ae]=function(...e){return j((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(Te,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ie(...e)),0,(t=>t[Ae](...e)),(e=>[ze(e)]),(e=>k(e)))},B[De]=function(...e){return j((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Fe(...e)),0,(t=>t[De](...e)),(()=>[]),(e=>L(e)||k(e)))},B[$e]=function(...e){return j((t=>Reflect.apply(Pe,null,[t,...e])),(()=>Re(...e)),0,(t=>t[$e](...e)),(()=>[]),(e=>L(e)||k(e)))},B[je]=W,B}const Ze={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:d({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>m(e)||!isNaN(e)}},Ze),setup(e,t){const{slots:n,attrs:r}=t,l=e.i18n||it({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=L(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,...k(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,o),c=l[Ae](e.keypath,s,n),i=d({},r),u=L(e.tag)||E(e.tag)?e.tag:"span";return a(u,i,c)}}};function et(e,t,n,r){const{slots:l,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),L(e.format)?t.key=e.format:E(e.format)&&(L(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?d({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,s);let i=[t.key];k(c)?i=c.map(((e,t)=>{const n=l[e.type];return n?n({[e.type]:e.value,index:t,parts:c}):[e.value]})):L(c)&&(i=[c]);const u=d({},o),f=L(e.tag)||E(e.tag)?e.tag:"span";return a(f,u,i)}}const tt=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],nt={name:"i18n-n",props:d({value:{type:Number,required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||it({useScope:"parent",__useComponent:!0});return et(e,t,tt,((...e)=>n[$e](...e)))}},rt=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],at={name:"i18n-d",props:d({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||it({useScope:"parent",__useComponent:!0});return et(e,t,rt,((...e)=>n[De](...e)))}};let lt=null,ot=null;const st=u("global-vue-i18n");function ct(e={},t){if(ot)return ot;lt=t;const n=!T(e.legacy)||e.legacy,r=!T(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,l=new Map,o=function(e,t,n){if(!He(n))throw Error(xe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ke(e,n)}(e,0,t);u("");{const e=o[je];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),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(xe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=O(t[0])?t[0]:{};(!T(n.globalInstall)||n.globalInstall)&&(e.component(Qe.name,Qe),e.component(nt.name,nt),e.component(at.name,at))}(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=>Ye(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(O(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=>Ye(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&O(r)&&Ye(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||O(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,lt))}});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]}))),ot=e,e}}function it(r={}){const a=t();if(null==a)throw Error(xe.MUST_BE_CALL_SETUP_TOP);if(null==lt||null==ot)throw Error(xe.NOT_INSLALLED);const i=function(e){{const t=e.proxy;if(null==t)throw Error(xe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=ot),!n)throw Error(xe.NOT_INSLALLED);return n}}(a),u=function(e){return e.global}(i),f=function(e){return e.proxy.$options}(a),m=function(e,t){return g(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(r,f);if("legacy"===i.mode&&!r.__useComponent){if(!i.allowComposition)throw Error(xe.NOT_AVAILABLE_IN_LEGACY_MODE);return function(t,r,a,o={}){const c="local"===r,i=s(null);if(c&&t.proxy&&!t.proxy.$options.i18n)throw Error(xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!T(o.inheritLocale)||o.inheritLocale,f=e(c&&u?a.locale.value:L(o.locale)?o.locale:ce),m=e(c&&u?a.fallbackLocale.value:L(o.fallbackLocale)||k(o.fallbackLocale)||O(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:f.value),g=e(Be(f.value,o)),_=e(O(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),d=e(O(o.numberFormats)?o.numberFormats:{[f.value]:{}}),v=c?a.missingWarn:!T(o.missingWarn)&&!p(o.missingWarn)||o.missingWarn,b=c?a.fallbackWarn:!T(o.fallbackWarn)&&!p(o.fallbackWarn)||o.fallbackWarn,h=c?a.fallbackRoot:!T(o.fallbackRoot)||o.fallbackRoot,E=!!o.fallbackFormat,N=y(o.missing)?o.missing:null,I=y(o.postTranslation)?o.postTranslation:null,F=c?a.warnHtmlMessage:!T(o.warnHtmlMessage)||o.warnHtmlMessage,C=!!o.escapeParameter,P=c?a.modifiers:O(o.modifiers)?o.modifiers:{},R=o.pluralRules||c&&a.pluralRules;function w(){return[f.value,m.value,g.value,_.value,d.value]}const W=n({get:()=>i.value?i.value.locale.value:f.value,set:e=>{i.value&&(i.value.locale.value=e),f.value=e}}),M=n({get:()=>i.value?i.value.fallbackLocale.value:m.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),m.value=e}}),S=n((()=>i.value?i.value.messages.value:g.value)),x=n((()=>_.value)),A=n((()=>d.value));function D(){return i.value?i.value.getPostTranslationHandler():I}function $(e){i.value&&i.value.setPostTranslationHandler(e)}function U(){return i.value?i.value.getMissingHandler():N}function j(e){i.value&&i.value.setMissingHandler(e)}function V(e){return w(),e()}function H(...e){return i.value?V((()=>Reflect.apply(i.value.t,null,[...e]))):V((()=>""))}function G(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function B(...e){return i.value?V((()=>Reflect.apply(i.value.d,null,[...e]))):V((()=>""))}function J(...e){return i.value?V((()=>Reflect.apply(i.value.n,null,[...e]))):V((()=>""))}function Y(e){return i.value?i.value.tm(e):{}}function z(e,t){return!!i.value&&i.value.te(e,t)}function X(e){return i.value?i.value.getLocaleMessage(e):{}}function q(e,t){i.value&&(i.value.setLocaleMessage(e,t),g.value[e]=t)}function K(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function Z(e){return i.value?i.value.getDateTimeFormat(e):{}}function Q(e,t){i.value&&(i.value.setDateTimeFormat(e,t),_.value[e]=t)}function ee(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function te(e){return i.value?i.value.getNumberFormat(e):{}}function ne(e,t){i.value&&(i.value.setNumberFormat(e,t),d.value[e]=t)}function re(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const ae={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:M,messages:S,datetimeFormats:x,numberFormats:A,get inheritLocale(){return i.value?i.value.inheritLocale:u},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(g.value)},get modifiers(){return i.value?i.value.modifiers:P},get pluralRules(){return i.value?i.value.pluralRules:R},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:b},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:F},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:H,getPostTranslationHandler:D,setPostTranslationHandler:$,getMissingHandler:U,setMissingHandler:j,rt:G,d:B,n:J,tm:Y,te:z,getLocaleMessage:X,setLocaleMessage:q,mergeLocaleMessage:K,getDateTimeFormat:Z,setDateTimeFormat:Q,mergeDateTimeFormat:ee,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:re};function le(e){e.locale.value=f.value,e.fallbackLocale.value=m.value,Object.keys(g.value).forEach((t=>{e.mergeLocaleMessage(t,g.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeDateTimeFormat(t,_.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeNumberFormat(t,d.value[t])})),e.escapeParameter=C,e.fallbackFormat=E,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=F}return l((()=>{if(null==t.proxy||null==t.proxy.$i18n)throw Error(xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=i.value=t.proxy.$i18n.__composer;"global"===r?(f.value=e.locale.value,m.value=e.fallbackLocale.value,g.value=e.messages.value,_.value=e.datetimeFormats.value,d.value=e.numberFormats.value):c&&le(e)})),ae}(a,m,u,r)}if("global"===m)return function(e,t,n){let r=E(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Be(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(u,r,f),u;if("parent"===m){let e=function(e,t,n=!1){let r=null;const a=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[Ve]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(i,a,r.__useComponent);return null==e&&(e=u),e}const _=i;let v=_.__getInstance(a);if(null==v){const e=d({},r);"__i18n"in f&&(e.__i18n=f.__i18n),u&&(e.__root=u),v=Ke(e,lt),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(xe.UNEXPECTED_ERROR);const a=n[je];if(a===e)throw Error(xe.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,c&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;l((()=>{r._i18n.subscribeDataChanging(r),s=!0}),t),o((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),t)}}(_,a,v),_.__setInstance(a,v)}return v}const ut=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(xe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var ft;ft=function(e,t={}){{const n=(t.onCacheKey||de)(e),r=ve[n];if(r)return r;let a=!1;const l=t.onError||C;t.onError=e=>{a=!0,l(e)};const{code:o}=G(e,t),s=new Function(`return ${o}`)();return a?s:ve[n]=s}},ie=ft,ue=function(e,t){if(!E(e))return null;let n=X.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,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=z(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(l=Y(n),c=B[u],o=c[l]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&X.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},fe=ae;export{at as DatetimeFormat,st as I18nInjectionKey,nt as NumberFormat,Qe as Translation,We as VERSION,ut as castToVueI18n,ct as createI18n,it as useI18n};
import{ref as e,getCurrentInstance as t,computed as n,watch as r,h as a,onBeforeMount as l,onUnmounted as o,shallowRef as s}from"@vue/composition-api";const c="undefined"!=typeof window,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=e=>i?Symbol(e):e,f=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),m=e=>"number"==typeof e&&isFinite(e),p=e=>"[object RegExp]"===I(e),g=e=>O(e)&&0===Object.keys(e).length;function _(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const d=Object.assign;function v(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const b=Object.prototype.hasOwnProperty;function h(e,t){return b.call(e,t)}const k=Array.isArray,y=e=>"function"==typeof e,L=e=>"string"==typeof e,T=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,N=Object.prototype.toString,I=e=>N.call(e),O=e=>"[object Object]"===I(e),F=15;function C(e){throw e}function P(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const R=String.fromCharCode(8232),w=String.fromCharCode(8233);function W(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===w,c=e=>t[e]===R,i=e=>o(e)||(e=>"\n"===t[e])(e)||s(e)||c(e),u=e=>o(e)||s(e)||c(e)?"\n":t[e];function f(){return l=0,i(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const M=void 0;function S(e,t={}){const n=!1!==t.location,r=W(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=P(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):(l(),"")}function g(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===l?(e.peek(),n(!0," ",a)):"\n"!==l||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function y(e){return k(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 k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function E(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 l(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){l(),e.currentChar();break}r+=t}return`\\${t}${r}`}function O(e){_(e);const t=p(e,"|");return _(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&l(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&l(),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&&l(),n=C(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,o=!0;if(b(e))return t.braceNest>0&&l(),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 l(),t.braceNest=0,R(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===M&&l(),n}(e)),_(e),n;if(a=v(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===M&&l(),t}(e)),_(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(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&&"\n"!==e;for(;t=k(e,r);)n+="\\"===t?N(e):t;const a=e.currentChar();return"\n"===a||a===M?(l(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!o)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=k(e,r);)n+=t;return n}(e)),l(),n.value,_(e),n}return n}function C(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||l(),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,O(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),C(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),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?d(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):d(t))},a=r();return e.resetPeek(),a}(e,t)?(_(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&&l(),t.braceNest=0,t.inLinked=!1,R(e,t))}}function R(e,t){let n={type:14};if(t.braceNest>0)return F(e,t)||m(t);if(t.inLinked)return C(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return F(e,t)||m(t);case"}":return l(),e.next(),f(t,3,"}");case"@":return C(e,t)||m(t);default:if(b(e))return n=f(t,1,O(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(h(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:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=a(),c.startLoc=l(),r.currentChar()===M?f(c,14):R(r,c)},currentOffset:a,currentPosition:l,context:i}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function A(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 D(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=r)}function l(e,t){const n=e.context(),l=r(3,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}function o(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(5,l,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(4,l,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(9,l,o);return s.value=t.replace(x,A),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let l=e.nextToken();if(9===l.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:l,lastStartLoc:o}=n,s=r(8,l,o);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,l,o),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,$(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,l=t.nextConsumeToken||e.nextToken()}switch(10!==l.type&&(t.lastStartLoc,$(l)),l=e.nextToken(),2===l.type&&(l=e.nextToken()),l.type){case 11:null==l.value&&(t.lastStartLoc,$(l)),n.key=function(e,t){const n=e.context(),l=r(7,n.offset,n.startLoc);return l.value=t,a(l,e.currentOffset(),e.currentPosition()),l}(e,l.value||"");break;case 5:null==l.value&&(t.lastStartLoc,$(l)),n.key=s(e,l.value||"");break;case 6:null==l.value&&(t.lastStartLoc,$(l)),n.key=o(e,l.value||"");break;case 7:null==l.value&&(t.lastStartLoc,$(l)),n.key=c(e,l.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:l,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(l(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,$(r)),n.items.push(s(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:l}=t,o=u(e);return 14===t.currentType?o:function(e,t,n,l){const o=e.context();let s=0===l.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(l);do{const t=u(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==o.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,l,o)}return{parse:function(n){const l=S(n,d({},e)),o=l.context(),s=r(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=f(l),14!==o.currentType&&(o.lastStartLoc,n[o.offset]),a(s,l.currentOffset(),l.currentPosition()),s}}}function $(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function U(e,t){for(let n=0;n<e.length;n++)j(e[n],t)}function j(e,t){switch(e.type){case 1:U(e.cases,t),t.helper("plural");break;case 2:U(e.items,t);break;case 6:j(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 V(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&j(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function H(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?H(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&&(H(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&&(H(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")}(`),H(e,t.key),t.modifier&&(e.push(", "),H(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 G(e,t={}){const n=d({},t),r=D(n).parse(e);return V(r,n),((e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:l}=t,o={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:l,indentLevel:0};function s(e,t){o.code+=e}function c(e,t=!0){const n=t?a:"";s(l?n+" ".repeat(e):n)}return{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&c(t)},newline:function(){c(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:l,needIndent:o});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),H(c,e),c.deindent(o),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const B=[];B[0]={w:[0],i:[3,0],"[":[4],o:[7]},B[1]={w:[1],".":[2],"[":[4],o:[7]},B[2]={w:[2],i:[3,0],0:[3,0]},B[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},B[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},B[5]={"'":[4,0],o:8,l:[5,0]},B[6]={'"':[4,0],o:8,l:[6,0]};const J=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Y(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 z(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,J.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const X=new Map;function q(e,t){return E(e)?e[t]:null}const K=e=>e,Z=e=>"",Q=e=>0===e.length?"":e.join(""),ee=e=>null==e?"":k(e)||O(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function te(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ne(e={}){const t=e.locale,n=function(e){const t=m(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(m(e.named.count)||m(e.named.n))?m(e.named.count)?e.named.count:m(e.named.n)?e.named.n:t:t}(e),r=E(e.pluralRules)&&L(t)&&y(e.pluralRules[t])?e.pluralRules[t]:te,a=E(e.pluralRules)&&L(t)&&y(e.pluralRules[t])?te:void 0,l=e.list||[],o=e.named||{};m(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,o);function s(t){const n=y(e.messages)?e.messages(t):!!E(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Z)}const c=O(e.processor)&&y(e.processor.normalize)?e.processor.normalize:Q,i=O(e.processor)&&y(e.processor.interpolate)?e.processor.interpolate:ee,u={list:e=>l[e],named:e=>o[e],plural:e=>e[r(n,e.length,a)],linked:(t,n)=>{const r=s(t)(u);return L(n)?(a=n,e.modifiers?e.modifiers[a]:K)(r):r;var a},message:s,type:O(e.processor)&&L(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return u}function re(e,t,n){return[...new Set([n,...k(t)?t:E(t)?Object.keys(t):L(t)?[t]:[n]])]}function ae(e,t,n){const r=L(n)?n:ce,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(r);if(!l){l=[];let e=[n];for(;k(e);)e=le(l,e,t);const o=k(t)||!O(t)?t:t.default?t.default:null;e=L(o)?[o]:o,k(e)&&le(l,e,!1),a.__localeChainCache.set(r,l)}return l}function le(e,t,n){let r=!0;for(let a=0;a<t.length&&T(r);a++){const l=t[a];L(l)&&(r=oe(e,t[a],n))}return r}function oe(e,t,n){let r;const a=t.split("-");do{r=se(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function se(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),(k(n)||O(n))&&n[a]&&(r=n[a])}return r}const ce="en-US";let ie,ue,fe;let me=0;function pe(e={}){const t=L(e.version)?e.version:"9.2.0-beta.34",n=L(e.locale)?e.locale:ce,r=k(e.fallbackLocale)||O(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=O(e.messages)?e.messages:{[n]:{}},l=O(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=O(e.numberFormats)?e.numberFormats:{[n]:{}},s=d({},e.modifiers||{},{upper:e=>L(e)?e.toUpperCase():e,lower:e=>L(e)?e.toLowerCase():e,capitalize:e=>L(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},i=y(e.missing)?e.missing:null,u=!T(e.missingWarn)&&!p(e.missingWarn)||e.missingWarn,f=!T(e.fallbackWarn)&&!p(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,g=!!e.unresolving,v=y(e.postTranslation)?e.postTranslation:null,b=O(e.processor)?e.processor:null,h=!T(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter,I=y(e.messageCompiler)?e.messageCompiler:ie,F=y(e.messageResolver)?e.messageResolver:ue||q,C=y(e.localeFallbacker)?e.localeFallbacker:fe||re,P=E(e.fallbackContext)?e.fallbackContext:void 0,R=y(e.onWarn)?e.onWarn:_,w=e,W=E(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=E(w.__numberFormatters)?w.__numberFormatters:new Map,S=E(w.__meta)?w.__meta:{};me++;const x={version:t,cid:me,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:f,fallbackFormat:m,unresolving:g,postTranslation:v,processor:b,warnHtmlMessage:h,escapeParameter:N,messageCompiler:I,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:S};return x.datetimeFormats=l,x.numberFormats=o,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function ge(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return L(r)?r:t}return t}function _e(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const de=e=>e;let ve=Object.create(null);let be=F;const he=()=>++be,ke={INVALID_ARGUMENT:be,INVALID_DATE_ARGUMENT:he(),INVALID_ISO_DATE_ARGUMENT:he(),__EXTEND_POINT__:he()},ye=()=>"",Le=e=>y(e);function Te(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:o,messages:s}=e,[c,i]=Ie(...t),u=T(i.missingWarn)?i.missingWarn:e.missingWarn,f=T(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,p=T(i.escapeParameter)?i.escapeParameter:e.escapeParameter,g=!!i.resolvedMessage,_=L(i.default)||T(i.default)?T(i.default)?l?c:()=>c:i.default:n?l?c:()=>c:"",d=n||""!==_,b=L(i.locale)?i.locale:e.locale;p&&function(e){k(e.list)?e.list=e.list.map((e=>L(e)?v(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{L(e.named[t])&&(e.named[t]=v(e.named[t]))}))}(i);let[h,y,N]=g?[c,b,s[b]||{}]:Ee(e,c,b,o,f,u),I=h,O=c;if(g||L(I)||Le(I)||d&&(I=_,O=I),!(g||(L(I)||Le(I))&&L(y)))return a?-1:c;let F=!1;const C=Le(I)?I:Ne(e,c,y,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:l,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:i,fallbackContext:u}=e,f=r=>{let a=o(n,r);if(null==a&&u){const[,,e]=Ee(u,r,t,s,c,i);a=o(e,r)}if(L(a)){let n=!1;const l=Ne(e,r,t,a,r,(()=>{n=!0}));return n?ye:l}return Le(a)?a:ye},p={locale:t,modifiers:a,pluralRules:l,messages:f};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);m(r.plural)&&(p.pluralIndex=r.plural);return p}(e,y,N,i),R=function(e,t,n){return t(n)}(0,C,ne(P));return r?r(R):R}function Ee(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=o[f]||{},null===(p=c(m,t))&&(p=m[t]),!L(p)&&!y(p));n++){const n=ge(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Ne(e,t,n,r,a,l){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Le(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==o){const e=()=>r;return e.locale=n,e.key=t,e}const c=o(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>f({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,s,l));return c.locale=n,c.key=t,c.source=r,c}function Ie(...e){const[t,n,r]=e,a={};if(!L(t)&&!m(t)&&!Le(t))throw Error(ke.INVALID_ARGUMENT);const l=m(t)?String(t):(Le(t),t);return m(n)?a.plural=n:L(n)?a.default=n:O(n)&&!g(n)?a.named=n:k(n)&&(a.list=n),m(r)?a.plural=r:L(r)?a.default=r:O(r)&&d(a,r),[l,a]}function Oe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,i,u,f]=Fe(...t);T(u.missingWarn)?u.missingWarn:e.missingWarn;T(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=L(u.locale)?u.locale:e.locale,_=o(e,a,p);if(!L(c)||""===c)return new Intl.DateTimeFormat(p).format(i);let v,b={},h=null;for(let t=0;t<_.length&&(v=_[t],b=n[v]||{},h=b[c],!O(h));t++)ge(e,c,v,0,"datetime format");if(!O(h)||!L(v))return r?-1:c;let k=`${v}__${c}`;g(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(v,d({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}function Fe(...e){const[t,n,r,a]=e;let l,o={},s={};if(L(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ke.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(ke.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(t)){if(isNaN(t.getTime()))throw Error(ke.INVALID_DATE_ARGUMENT);l=t}else{if(!m(t))throw Error(ke.INVALID_ARGUMENT);l=t}return L(n)?o.key=n:O(n)&&(o=n),L(r)?o.locale=r:O(r)&&(s=r),O(a)&&(s=a),[o.key||"",l,o,s]}function Ce(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Pe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,i,u,f]=Re(...t);T(u.missingWarn)?u.missingWarn:e.missingWarn;T(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=L(u.locale)?u.locale:e.locale,_=o(e,a,p);if(!L(c)||""===c)return new Intl.NumberFormat(p).format(i);let v,b={},h=null;for(let t=0;t<_.length&&(v=_[t],b=n[v]||{},h=b[c],!O(h));t++)ge(e,c,v,0,"number format");if(!O(h)||!L(v))return r?-1:c;let k=`${v}__${c}`;g(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(v,d({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}function Re(...e){const[t,n,r,a]=e;let l={},o={};if(!m(t))throw Error(ke.INVALID_ARGUMENT);const s=t;return L(n)?l.key=n:O(n)&&(l=n),L(r)?l.locale=r:O(r)&&(o=r),O(a)&&(o=a),[l.key||"",s,l,o]}function we(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const We="9.2.0-beta.34";let Me=F;const Se=()=>++Me,xe={UNEXPECTED_RETURN_TYPE:Me,INVALID_ARGUMENT:Se(),MUST_BE_CALL_SETUP_TOP:Se(),NOT_INSLALLED:Se(),NOT_AVAILABLE_IN_LEGACY_MODE:Se(),REQUIRED_VALUE:Se(),INVALID_VALUE:Se(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Se(),NOT_INSLALLED_WITH_PROVIDE:Se(),UNEXPECTED_ERROR:Se(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Se(),BRIDGE_SUPPORT_VUE_2_ONLY:Se(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Se(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Se(),__EXTEND_POINT__:Se()},Ae=u("__transrateVNode"),De=u("__datetimeParts"),$e=u("__numberParts"),Ue=u("__setPluralRules"),je=u("__legacyVueI18n"),Ve=u("__injectWithOption");function He(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Ge(e){if(!E(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],E(a[n[r]])&&Ge(a[n[r]])}else E(e[t])&&Ge(e[t]);return e}function Be(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=O(n)?n:k(r)?{}:{[e]:{}};if(k(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},Ye(n,o[t])):Ye(n,o)}else L(e)&&Ye(JSON.parse(e),o)})),null==a&&l)for(const e in o)h(o,e)&&Ge(o[e]);return o}const Je=e=>!E(e)||k(e);function Ye(e,t){if(Je(e)||Je(t))throw Error(xe.INVALID_VALUE);for(const n in e)h(e,n)&&(Je(e[n])||Je(t[n])?t[n]=e[n]:Ye(e[n],t[n]))}function ze(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 Xe=0;function qe(e){return(n,r,a,l)=>e(r,a,t()||void 0,l)}function Ke(t={},a){const{__root:l}=t,o=void 0===l;let s=!T(t.inheritLocale)||t.inheritLocale;const i=e(l&&s?l.locale.value:L(t.locale)?t.locale:ce),u=e(l&&s?l.fallbackLocale.value:L(t.fallbackLocale)||k(t.fallbackLocale)||O(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:i.value),f=e(Be(i.value,t)),g=e(O(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),_=e(O(t.numberFormats)?t.numberFormats:{[i.value]:{}});let v=l?l.missingWarn:!T(t.missingWarn)&&!p(t.missingWarn)||t.missingWarn,b=l?l.fallbackWarn:!T(t.fallbackWarn)&&!p(t.fallbackWarn)||t.fallbackWarn,h=l?l.fallbackRoot:!T(t.fallbackRoot)||t.fallbackRoot,N=!!t.fallbackFormat,I=y(t.missing)?t.missing:null,F=y(t.missing)?qe(t.missing):null,C=y(t.postTranslation)?t.postTranslation:null,P=l?l.warnHtmlMessage:!T(t.warnHtmlMessage)||t.warnHtmlMessage,R=!!t.escapeParameter;const w=l?l.modifiers:O(t.modifiers)?t.modifiers:{};let W,M,S=t.pluralRules||l&&l.pluralRules;{He(a);const e={locale:i.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:g.value,numberFormats:_.value,modifiers:w,missing:I,fallbackRoot:h,postTranslation:C,pluralizationRules:S,escapeParameterHtml:R,sync:s,silentFallbackWarn:T(b)?!b:b,silentTranslationWarn:T(v)?!v:v,formatFallbackMessages:T(N)?!N:N,warnHtmlInMessage:T(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};W=new a(e)}M=function(){const e={version:"9.2.0-beta.34",locale:i.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:S,missing:null===F?void 0:F,missingWarn:v,fallbackWarn:b,fallbackFormat:N,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:P,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=_.value,e.__datetimeFormatters=O(M)?M.__datetimeFormatters:void 0,e.__numberFormatters=O(M)?M.__numberFormatters:void 0,pe(e)}(),_e(M,i.value,u.value);const x=n({get:()=>i.value,set:e=>{i.value=e,W&&!o&&(W.locale=e),M.locale=i.value}}),A=n({get:()=>u.value,set:e=>{u.value=e,W&&!o&&(W.fallbackLocale=e),M.fallbackLocale=u.value,_e(M,i.value,e)}}),D=n((()=>f.value)),$=n((()=>g.value)),U=n((()=>_.value));function j(e,t,n,r,a,o){let s;if(i.value,u.value,f.value,g.value,_.value,s=e(M),m(s)&&-1===s){const[e,n]=t();return l&&h?r(l):a(e)}if(o(s))return s;throw Error(xe.UNEXPECTED_RETURN_TYPE)}function V(...e){return j((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ie(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>L(e)))}const H={normalize:function(e){return e.map((e=>L(e)?ze(e):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Xe++,l&&c&&(r(l.locale,(e=>{s&&(i.value=e,W&&!o&&(W.locale=e),M.locale=e,_e(M,i.value,u.value))})),r(l.fallbackLocale,(e=>{s&&(u.value=e,W&&!o&&(W.fallbackLocale=e),M.fallbackLocale=e,_e(M,i.value,u.value))})));const B={id:Xe,locale:x,fallbackLocale:A,get inheritLocale(){return s},set inheritLocale(e){s=e,W&&(W._sync=e),e&&l&&(i.value=l.locale.value,u.value=l.fallbackLocale.value,W&&(W.locale=l.locale.value,W.fallbackLocale=l.fallbackLocale.value),_e(M,i.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:D,get modifiers(){return w},get pluralRules(){return S||{}},get isGlobal(){return o},get missingWarn(){return v},set missingWarn(e){v=e,M.missingWarn=v},get fallbackWarn(){return b},set fallbackWarn(e){b=e,M.fallbackWarn=b},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,M.fallbackFormat=N},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,M.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,M.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,W&&W.setLocaleMessage(e,t),M.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},W&&W.mergeLocaleMessage(e,t),Ye(t,f.value[e]),M.messages=f.value},getPostTranslationHandler:function(){return y(C)?C:null},setPostTranslationHandler:function(e){C=e,M.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(F=qe(e)),I=e,M.missing=F},[Ue]:function(e){S=e,M.pluralRules=S}};return B.datetimeFormats=$,B.numberFormats=U,B.rt=function(...e){const[t,n,r]=e;if(r&&!E(r))throw Error(xe.INVALID_ARGUMENT);return V(t,n,d({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(L(t)?t:i.value);return null!==M.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=ae(M,u.value,i.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},l=M.messageResolver(a,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},B.d=function(...e){return j((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Fe(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>L(e)))},B.n=function(...e){return j((t=>Reflect.apply(Pe,null,[t,...e])),(()=>Re(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>L(e)))},B.getDateTimeFormat=function(e){return g.value[e]||{}},B.setDateTimeFormat=function(e,t){g.value[e]=t,W&&W.setDateTimeFormat(e,t),M.datetimeFormats=g.value,Ce(M,e,t)},B.mergeDateTimeFormat=function(e,t){g.value[e]=d(g.value[e]||{},t),W&&W.mergeDateTimeFormat(e,t),M.datetimeFormats=g.value,Ce(M,e,t)},B.getNumberFormat=function(e){return _.value[e]||{}},B.setNumberFormat=function(e,t){_.value[e]=t,W&&W.setNumberFormat(e,t),M.numberFormats=_.value,we(M,e,t)},B.mergeNumberFormat=function(e,t){_.value[e]=d(_.value[e]||{},t),W&&W.mergeNumberFormat(e,t),M.numberFormats=_.value,we(M,e,t)},B[Ve]=t.__injectWithOption,B[Ae]=function(...e){return j((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(Te,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ie(...e)),0,(t=>t[Ae](...e)),(e=>[ze(e)]),(e=>k(e)))},B[De]=function(...e){return j((t=>Reflect.apply(Oe,null,[t,...e])),(()=>Fe(...e)),0,(t=>t[De](...e)),(()=>[]),(e=>L(e)||k(e)))},B[$e]=function(...e){return j((t=>Reflect.apply(Pe,null,[t,...e])),(()=>Re(...e)),0,(t=>t[$e](...e)),(()=>[]),(e=>L(e)||k(e)))},B[je]=W,B}const Ze={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:d({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>m(e)||!isNaN(e)}},Ze),setup(e,t){const{slots:n,attrs:r}=t,l=e.i18n||it({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=L(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,...k(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,o),c=l[Ae](e.keypath,s,n),i=d({},r),u=L(e.tag)||E(e.tag)?e.tag:"span";return a(u,i,c)}}};function et(e,t,n,r){const{slots:l,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),L(e.format)?t.key=e.format:E(e.format)&&(L(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?d({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,s);let i=[t.key];k(c)?i=c.map(((e,t)=>{const n=l[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return k(a=r)&&!L(a[0])&&(r[0].key=`${e.type}-${t}`),r})):L(c)&&(i=[c]);const u=d({},o),f=L(e.tag)||E(e.tag)?e.tag:"span";return a(f,u,i)}}const tt=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],nt={name:"i18n-n",props:d({value:{type:Number,required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||it({useScope:"parent",__useComponent:!0});return et(e,t,tt,((...e)=>n[$e](...e)))}},rt=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],at={name:"i18n-d",props:d({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||it({useScope:"parent",__useComponent:!0});return et(e,t,rt,((...e)=>n[De](...e)))}};let lt=null,ot=null;const st=u("global-vue-i18n");function ct(e={},t){if(ot)return ot;lt=t;const n=!T(e.legacy)||e.legacy,r=!T(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,l=new Map,o=function(e,t,n){if(!He(n))throw Error(xe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Ke(e,n)}(e,0,t);u("");{const e=o[je];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(xe.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=O(t[0])?t[0]:{};(!T(n.globalInstall)||n.globalInstall)&&(e.component(Qe.name,Qe),e.component(nt.name,nt),e.component(at.name,at))}(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=>Ye(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(O(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=>Ye(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&O(r)&&Ye(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||O(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,lt))}});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]}))),ot=e,e}}function it(r={}){const a=t();if(null==a)throw Error(xe.MUST_BE_CALL_SETUP_TOP);if(null==lt||null==ot)throw Error(xe.NOT_INSLALLED);const i=function(e){{const t=e.proxy;if(null==t)throw Error(xe.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=ot),!n)throw Error(xe.NOT_INSLALLED);return n}}(a),u=function(e){return e.global}(i),f=function(e){return e.proxy.$options}(a),m=function(e,t){return g(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(r,f);if("legacy"===i.mode&&!r.__useComponent){if(!i.allowComposition)throw Error(xe.NOT_AVAILABLE_IN_LEGACY_MODE);return function(t,r,a,o={}){const c="local"===r,i=s(null);if(c&&t.proxy&&!t.proxy.$options.i18n)throw Error(xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!T(o.inheritLocale)||o.inheritLocale,f=e(c&&u?a.locale.value:L(o.locale)?o.locale:ce),m=e(c&&u?a.fallbackLocale.value:L(o.fallbackLocale)||k(o.fallbackLocale)||O(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:f.value),g=e(Be(f.value,o)),_=e(O(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),d=e(O(o.numberFormats)?o.numberFormats:{[f.value]:{}}),v=c?a.missingWarn:!T(o.missingWarn)&&!p(o.missingWarn)||o.missingWarn,b=c?a.fallbackWarn:!T(o.fallbackWarn)&&!p(o.fallbackWarn)||o.fallbackWarn,h=c?a.fallbackRoot:!T(o.fallbackRoot)||o.fallbackRoot,E=!!o.fallbackFormat,N=y(o.missing)?o.missing:null,I=y(o.postTranslation)?o.postTranslation:null,F=c?a.warnHtmlMessage:!T(o.warnHtmlMessage)||o.warnHtmlMessage,C=!!o.escapeParameter,P=c?a.modifiers:O(o.modifiers)?o.modifiers:{},R=o.pluralRules||c&&a.pluralRules;function w(){return[f.value,m.value,g.value,_.value,d.value]}const W=n({get:()=>i.value?i.value.locale.value:f.value,set:e=>{i.value&&(i.value.locale.value=e),f.value=e}}),M=n({get:()=>i.value?i.value.fallbackLocale.value:m.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),m.value=e}}),S=n((()=>i.value?i.value.messages.value:g.value)),x=n((()=>_.value)),A=n((()=>d.value));function D(){return i.value?i.value.getPostTranslationHandler():I}function $(e){i.value&&i.value.setPostTranslationHandler(e)}function U(){return i.value?i.value.getMissingHandler():N}function j(e){i.value&&i.value.setMissingHandler(e)}function V(e){return w(),e()}function H(...e){return i.value?V((()=>Reflect.apply(i.value.t,null,[...e]))):V((()=>""))}function G(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function B(...e){return i.value?V((()=>Reflect.apply(i.value.d,null,[...e]))):V((()=>""))}function J(...e){return i.value?V((()=>Reflect.apply(i.value.n,null,[...e]))):V((()=>""))}function Y(e){return i.value?i.value.tm(e):{}}function z(e,t){return!!i.value&&i.value.te(e,t)}function X(e){return i.value?i.value.getLocaleMessage(e):{}}function q(e,t){i.value&&(i.value.setLocaleMessage(e,t),g.value[e]=t)}function K(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function Z(e){return i.value?i.value.getDateTimeFormat(e):{}}function Q(e,t){i.value&&(i.value.setDateTimeFormat(e,t),_.value[e]=t)}function ee(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function te(e){return i.value?i.value.getNumberFormat(e):{}}function ne(e,t){i.value&&(i.value.setNumberFormat(e,t),d.value[e]=t)}function re(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const ae={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:M,messages:S,datetimeFormats:x,numberFormats:A,get inheritLocale(){return i.value?i.value.inheritLocale:u},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(g.value)},get modifiers(){return i.value?i.value.modifiers:P},get pluralRules(){return i.value?i.value.pluralRules:R},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:b},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:F},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:H,getPostTranslationHandler:D,setPostTranslationHandler:$,getMissingHandler:U,setMissingHandler:j,rt:G,d:B,n:J,tm:Y,te:z,getLocaleMessage:X,setLocaleMessage:q,mergeLocaleMessage:K,getDateTimeFormat:Z,setDateTimeFormat:Q,mergeDateTimeFormat:ee,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:re};function le(e){e.locale.value=f.value,e.fallbackLocale.value=m.value,Object.keys(g.value).forEach((t=>{e.mergeLocaleMessage(t,g.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeDateTimeFormat(t,_.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeNumberFormat(t,d.value[t])})),e.escapeParameter=C,e.fallbackFormat=E,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=F}return l((()=>{if(null==t.proxy||null==t.proxy.$i18n)throw Error(xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=i.value=t.proxy.$i18n.__composer;"global"===r?(f.value=e.locale.value,m.value=e.fallbackLocale.value,g.value=e.messages.value,_.value=e.datetimeFormats.value,d.value=e.numberFormats.value):c&&le(e)})),ae}(a,m,u,r)}if("global"===m)return function(e,t,n){let r=E(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Be(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(u,r,f),u;if("parent"===m){let e=function(e,t,n=!1){let r=null;const a=t.root;let l=t.parent;for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[Ve]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}(i,a,r.__useComponent);return null==e&&(e=u),e}const _=i;let v=_.__getInstance(a);if(null==v){const e=d({},r);"__i18n"in f&&(e.__i18n=f.__i18n),u&&(e.__root=u),v=Ke(e,lt),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(xe.UNEXPECTED_ERROR);const a=n[je];if(a===e)throw Error(xe.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,c&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;l((()=>{r._i18n.subscribeDataChanging(r),s=!0}),t),o((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),t)}}(_,a,v),_.__setInstance(a,v)}return v}const ut=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(xe.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var ft;ft=function(e,t={}){{const n=(t.onCacheKey||de)(e),r=ve[n];if(r)return r;let a=!1;const l=t.onError||C;t.onError=e=>{a=!0,l(e)};const{code:o}=G(e,t),s=new Function(`return ${o}`)();return a?s:ve[n]=s}},ie=ft,ue=function(e,t){if(!E(e))return null;let n=X.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,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=z(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(l=Y(n),c=B[u],o=c[l]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&X.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=a[n[l]];if(void 0===e)return null;a=e,l++}return a},fe=ae;export{at as DatetimeFormat,st as I18nInjectionKey,nt as NumberFormat,Qe as Translation,We as VERSION,ut as castToVueI18n,ct as createI18n,it as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.33
* vue-i18n-bridge v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>r?Symbol(e):e,o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length;function u(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function p(e,t){return m.call(e,t)}const d=Array.isArray,g=e=>"function"==typeof e,_=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),L=15;function T(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const N=" ",I="\n",O=String.fromCharCode(8232),F=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&t[e+1]===I,s=e=>t[e]===F,c=e=>t[e]===O,u=e=>l(e)||(e=>t[e]===I)(e)||s(e)||c(e),i=e=>l(e)||s(e)||c(e)?I:t[e];function f(){return o=0,u(n)&&(r++,a=0),l(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+o),next:f,peek:function(){return l(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const P=void 0;function R(e,t={}){const n=!1!==t.location,r=C(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=E(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()===N||e.currentPeek()===I;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===P)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 h(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===I):o===N?(e.peek(),n(!0,N,a)):o!==I||(e.peek(),n(!0,I,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===P?P:t(n)?(e.next(),n):null}function y(e){return k(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 k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=L(e);)n+=t;return n}function F(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=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function w(e){g(e);const t=p(e,"|");return g(e),t}function W(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=M(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!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,S(e,t);if(r=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,5,function(e){g(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===P&&o(),n}(e)),g(e),n;if(a=v(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===P&&o(),t}(e)),g(e),n;if(l=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){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==I;for(;t=k(e,r);)n+="\\"===t?F(e):t;const a=e.currentChar();return a===I||a===P?(o(),a===I&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==N&&e!==I;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,g(e),n}return n}function M(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==I&&a!==N||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return 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)?(g(e),M(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(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?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===N||!t)&&(t===I?(e.peek(),r()):_(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?W(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===N?r:a===I?(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 W(e,t)||m(t);if(t.inLinked)return M(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return W(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return M(e,t)||m(t);default:if(b(e))return n=f(t,1,w(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(n===N||n===I)if(h(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:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===P?f(c,14):S(r,c)},currentOffset:a,currentPosition:o,context:u}}const w=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function M(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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(w,W),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,S(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,S(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,S(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,S(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,S(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,S(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken: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,S(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=R(n,i({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function S(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function x(e,t){for(let n=0;n<e.length;n++)A(e[n],t)}function A(e,t){switch(e.type){case 1:x(e.cases,t),t.helper("plural");break;case 2:x(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 D(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 $(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?$(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&&($(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&&($(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")}(`),$(e,t.key),t.modifier&&(e.push(", "),$(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 U(e,t={}){const n=i({},t),r=M(n).parse(e);return D(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",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),$(c,e),c.deindent(l),c.push("}");const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\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 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 J(e,t){return b(e)?e[t]:null}const Y=e=>e,z=e=>"",X=e=>0===e.length?"":e.join(""),q=e=>null==e?"":d(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?e.pluralRules[t]:K,a=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?K:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=g(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const u=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:X,i=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:q,f={list:e=>o[e],named:e=>s[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]:Y)(r):r;var a},message:c,type:y(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:u};return f}function Q(e,t,n){return[...new Set([n,...d(t)?t:b(t)?Object.keys(t):_(t)?[t]:[n]])]}function ee(e,t,n){const r=_(n)?n:ae,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;d(e);)e=te(o,e,t);const l=d(t)||!y(t)?t:t.default?t.default:null;e=_(l)?[l]:l,d(e)&&te(o,e,!1),a.__localeChainCache.set(r,o)}return o}function te(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];_(o)&&(r=ne(e,t[a],n))}return r}function ne(e,t,n){let r;const a=t.split("-");do{r=re(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function re(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),(d(n)||y(n))&&n[a]&&(r=n[a])}return r}const ae="en-US";let oe,le,se;let ce=0;function ue(e={}){const t=_(e.version)?e.version:"9.2.0-beta.33",n=_(e.locale)?e.locale:ae,r=d(e.fallbackLocale)||y(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=y(e.messages)?e.messages:{[n]:{}},o=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=y(e.numberFormats)?e.numberFormats:{[n]:{}},c=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=g(e.missing)?e.missing:null,p=!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,L=!!e.unresolving,T=g(e.postTranslation)?e.postTranslation:null,E=y(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:oe,F=g(e.messageResolver)?e.messageResolver:le||J,C=g(e.localeFallbacker)?e.localeFallbacker:se||Q,P=b(e.fallbackContext)?e.fallbackContext:void 0,R=g(e.onWarn)?e.onWarn:u,w=e,W=b(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=b(w.__numberFormatters)?w.__numberFormatters:new Map,S=b(w.__meta)?w.__meta:{};ce++;const x={version:t,cid:ce,locale:n,fallbackLocale:r,messages:a,modifiers:c,pluralRules:f,missing:m,missingWarn:p,fallbackWarn:h,fallbackFormat:k,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:O,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:S};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function ie(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function fe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const me=e=>e;let pe=Object.create(null);let de=L;const ge=()=>++de,_e={INVALID_ARGUMENT:de,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()},ve=()=>"",be=e=>g(e);function he(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[u,i]=Le(...t),m=v(i.missingWarn)?i.missingWarn:e.missingWarn,p=v(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,g=v(i.escapeParameter)?i.escapeParameter:e.escapeParameter,h=!!i.resolvedMessage,k=_(i.default)||v(i.default)?v(i.default)?o?u:()=>u:i.default:n?o?u:()=>u:"",y=n||""!==k,L=_(i.locale)?i.locale:e.locale;g&&function(e){d(e.list)?e.list=e.list.map((e=>_(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(i);let[T,E,N]=h?[u,L,c[L]||{}]:ke(e,u,L,s,p,m),I=T,O=u;if(h||_(I)||be(I)||y&&(I=k,O=I),!(h||(_(I)||be(I))&&_(E)))return a?-1:u;let F=!1;const C=be(I)?I:ye(e,u,E,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ke(f,r,t,c,u,i);a=s(e,r)}if(_(a)){let n=!1;const o=ye(e,r,t,a,r,(()=>{n=!0}));return n?ve:o}return be(a)?a:ve},p={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);l(r.plural)&&(p.pluralIndex=r.plural);return p}(e,E,N,i),R=function(e,t,n){return t(n)}(0,C,Z(P));return r?r(R):R}function ke(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},p=null;for(let n=0;n<i.length&&(f=i[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!g(p));n++){const n=ie(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function ye(e,t,n,r,a,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(be(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const u=s(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>o({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,c,l));return u.locale=n,u.key=t,u.source=r,u}function Le(...e){const[t,n,r]=e,a={};if(!_(t)&&!l(t)&&!be(t))throw Error(_e.INVALID_ARGUMENT);const o=l(t)?String(t):(be(t),t);return l(n)?a.plural=n:_(n)?a.default=n:y(n)&&!c(n)?a.named=n:d(n)&&(a.list=n),l(r)?a.plural=r:_(r)?a.default=r:y(r)&&i(a,r),[o,a]}function Te(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[u,f,m,p]=Ee(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(u)||""===u)return new Intl.DateTimeFormat(g).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[u],!y(L));t++)ie(e,u,h,0,"datetime format");if(!y(L)||!_(h))return r?-1:u;let T=`${h}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.DateTimeFormat(h,i({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}function Ee(...e){const[t,n,r,a]=e;let o,s={},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();o=new Date(n);try{o.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);o=t}else{if(!l(t))throw Error(_e.INVALID_ARGUMENT);o=t}return _(n)?s.key=n:y(n)&&(s=n),_(r)?s.locale=r:y(r)&&(c=r),y(a)&&(c=a),[s.key||"",o,s,c]}function Ne(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ie(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[u,f,m,p]=Oe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(u)||""===u)return new Intl.NumberFormat(g).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[u],!y(L));t++)ie(e,u,h,0,"number format");if(!y(L)||!_(h))return r?-1:u;let T=`${h}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.NumberFormat(h,i({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}function Oe(...e){const[t,n,r,a]=e;let o={},s={};if(!l(t))throw Error(_e.INVALID_ARGUMENT);const c=t;return _(n)?o.key=n:y(n)&&(o=n),_(r)?o.locale=r:y(r)&&(s=r),y(a)&&(s=a),[o.key||"",c,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 Ce="9.2.0-beta.33";let Pe=L;const Re=()=>++Pe,we={UNEXPECTED_RETURN_TYPE:Pe,INVALID_ARGUMENT:Re(),MUST_BE_CALL_SETUP_TOP:Re(),NOT_INSLALLED:Re(),NOT_AVAILABLE_IN_LEGACY_MODE:Re(),REQUIRED_VALUE:Re(),INVALID_VALUE:Re(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Re(),NOT_INSLALLED_WITH_PROVIDE:Re(),UNEXPECTED_ERROR:Re(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Re(),BRIDGE_SUPPORT_VUE_2_ONLY:Re(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Re(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Re(),__EXTEND_POINT__:Re()},We=a("__transrateVNode"),Me=a("__datetimeParts"),Se=a("__numberParts"),xe=a("__setPluralRules"),Ae=a("__legacyVueI18n"),De=a("__injectWithOption"),$e="__VUE_I18N_BRIDGE__";function Ue(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function je(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],b(a[n[r]])&&je(a[n[r]])}else b(e[t])&&je(e[t]);return e}function Ve(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=y(n)?n:d(r)?{}:{[e]:{}};if(d(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ge(n,l[t])):Ge(n,l)}else _(e)&&Ge(JSON.parse(e),l)})),null==a&&o)for(const e in l)p(l,e)&&je(l[e]);return l}const He=e=>!b(e)||d(e);function Ge(e,t){if(He(e)||He(t))throw Error(we.INVALID_VALUE);for(const n in e)p(e,n)&&(He(e[n])||He(t[n])?t[n]=e[n]:Ge(e[n],t[n]))}function Be(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 Ye(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function ze(e={},r){const{__root:a}=e,o=void 0===a;let c=!v(e.inheritLocale)||e.inheritLocale;const u=t.ref(a&&c?a.locale.value:_(e.locale)?e.locale:ae),f=t.ref(a&&c?a.fallbackLocale.value:_(e.fallbackLocale)||d(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),m=t.ref(Ve(u.value,e)),p=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[u.value]:{}});let k=a?a.missingWarn:!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,I=g(e.missing)?Ye(e.missing):null,O=g(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const P=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let R,w,W=e.pluralRules||a&&a.pluralRules;{Ue(r);const e={locale:u.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:h.value,modifiers:P,missing:N,fallbackRoot:T,postTranslation:O,pluralizationRules:W,escapeParameterHtml:C,sync:c,silentFallbackWarn:v(L)?!L:L,silentTranslationWarn:v(k)?!k:k,formatFallbackMessages:v(E)?!E:E,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:$e};R=new r(e)}w=function(){const t={version:Ce,locale:u.value,fallbackLocale:f.value,messages:m.value,modifiers:P,pluralRules:W,missing:null===I?void 0:I,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:C,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=p.value,t.numberFormats=h.value,t.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=y(w)?w.__numberFormatters:void 0,ue(t)}(),fe(w,u.value,f.value);const M=t.computed({get:()=>u.value,set:e=>{u.value=e,R&&!o&&(R.locale=e),w.locale=u.value}}),S=t.computed({get:()=>f.value,set:e=>{f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=f.value,fe(w,u.value,e)}}),x=t.computed((()=>m.value)),A=t.computed((()=>p.value)),D=t.computed((()=>h.value));function $(e,t,n,r,o,s){let c;if(u.value,f.value,m.value,p.value,h.value,c=e(w),l(c)&&-1===c){const[e,n]=t();return a&&T?r(a):o(e)}if(s(c))return c;throw Error(we.UNEXPECTED_RETURN_TYPE)}function U(...e){return $((t=>Reflect.apply(he,null,[t,...e])),(()=>Le(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const j={normalize:function(e){return e.map((e=>_(e)?Be(e):e))},interpolate:e=>e,type:"vnode"};function V(e){return m.value[e]||{}}Je++,a&&n&&(t.watch(a.locale,(e=>{c&&(u.value=e,R&&!o&&(R.locale=e),w.locale=e,fe(w,u.value,f.value))})),t.watch(a.fallbackLocale,(e=>{c&&(f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=e,fe(w,u.value,f.value))})));const H={id:Je,locale:M,fallbackLocale:S,get inheritLocale(){return c},set inheritLocale(e){c=e,R&&(R._sync=e),e&&a&&(u.value=a.locale.value,f.value=a.fallbackLocale.value,R&&(R.locale=a.locale.value,R.fallbackLocale=a.fallbackLocale.value),fe(w,u.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:x,get modifiers(){return P},get pluralRules(){return W||{}},get isGlobal(){return o},get missingWarn(){return k},set missingWarn(e){k=e,w.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,w.fallbackWarn=L},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,w.fallbackFormat=E},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,w.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,w.escapeParameter=e},t:U,getLocaleMessage:V,setLocaleMessage:function(e,t){m.value[e]=t,R&&R.setLocaleMessage(e,t),w.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},R&&R.mergeLocaleMessage(e,t),Ge(t,m.value[e]),w.messages=m.value},getPostTranslationHandler:function(){return g(O)?O:null},setPostTranslationHandler:function(e){O=e,w.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(I=Ye(e)),N=e,w.missing=I},[xe]:function(e){W=e,w.pluralRules=W}};return H.datetimeFormats=A,H.numberFormats=D,H.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(we.INVALID_ARGUMENT);return U(t,n,i({resolvedMessage:!0},r||{}))},H.te=function(e,t){const n=V(_(t)?t:u.value);return null!==w.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=ee(w,f.value,u.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=w.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return $((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ee(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},H.n=function(...e){return $((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Oe(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},H.getDateTimeFormat=function(e){return p.value[e]||{}},H.setDateTimeFormat=function(e,t){p.value[e]=t,R&&R.setDateTimeFormat(e,t),w.datetimeFormats=p.value,Ne(w,e,t)},H.mergeDateTimeFormat=function(e,t){p.value[e]=i(p.value[e]||{},t),R&&R.mergeDateTimeFormat(e,t),w.datetimeFormats=p.value,Ne(w,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,R&&R.setNumberFormat(e,t),w.numberFormats=h.value,Fe(w,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=i(h.value[e]||{},t),R&&R.mergeNumberFormat(e,t),w.numberFormats=h.value,Fe(w,e,t)},H[De]=e.__injectWithOption,H[We]=function(...e){return $((t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(he,null,[r,...e])}finally{r.processor=null}return n}),(()=>Le(...e)),0,(t=>t[We](...e)),(e=>[Be(e)]),(e=>d(e)))},H[Me]=function(...e){return $((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ee(...e)),0,(t=>t[Me](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Se]=function(...e){return $((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Oe(...e)),0,(t=>t[Se](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ae]=R,H}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:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Xe),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||ot({useScope:e.scope,__useComponent:!0}),l=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 s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...d(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),c=o[We](e.keypath,s,r),u=i({},a),f=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,u,c)}}};function Ke(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:b(e.format)&&(_(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];d(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({},l),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,u)}}const Ze=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Qe={name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return Ke(e,t,Ze,((...e)=>n[Se](...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:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return Ke(e,t,et,((...e)=>n[Me](...e)))}};let nt=null,rt=null;const at=a("global-vue-i18n");function ot(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(we.MUST_BE_CALL_SETUP_TOP);if(null==nt||null==rt)throw Error(we.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(we.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=rt),!n)throw Error(we.NOT_INSLALLED);return n}}(r),o=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(r),u=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(we.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n)throw Error(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=!v(a.inheritLocale)||a.inheritLocale,u=t.ref(o&&c?r.locale.value:_(a.locale)?a.locale:ae),i=t.ref(o&&c?r.fallbackLocale.value:_(a.fallbackLocale)||d(a.fallbackLocale)||y(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(Ve(u.value,a)),m=t.ref(y(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),p=t.ref(y(a.numberFormats)?a.numberFormats:{[u.value]:{}}),b=o?r.missingWarn:!v(a.missingWarn)&&!s(a.missingWarn)||a.missingWarn,h=o?r.fallbackWarn:!v(a.fallbackWarn)&&!s(a.fallbackWarn)||a.fallbackWarn,k=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,T=g(a.missing)?a.missing:null,E=g(a.postTranslation)?a.postTranslation:null,N=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,O=o?r.modifiers:y(a.modifiers)?a.modifiers:{},F=a.pluralRules||o&&r.pluralRules;function C(){return[u.value,i.value,f.value,m.value,p.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:u.value,set:e=>{l.value&&(l.value.locale.value=e),u.value=e}}),R=t.computed({get:()=>l.value?l.value.fallbackLocale.value:i.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),i.value=e}}),w=t.computed((()=>l.value?l.value.messages.value:f.value)),W=t.computed((()=>m.value)),M=t.computed((()=>p.value));function S(){return l.value?l.value.getPostTranslationHandler():E}function x(e){l.value&&l.value.setPostTranslationHandler(e)}function A(){return l.value?l.value.getMissingHandler():T}function D(e){l.value&&l.value.setMissingHandler(e)}function $(e){return C(),e()}function U(...e){return l.value?$((()=>Reflect.apply(l.value.t,null,[...e]))):$((()=>""))}function j(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function V(...e){return l.value?$((()=>Reflect.apply(l.value.d,null,[...e]))):$((()=>""))}function H(...e){return l.value?$((()=>Reflect.apply(l.value.n,null,[...e]))):$((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function B(e,t){return!!l.value&&l.value.te(e,t)}function J(e){return l.value?l.value.getLocaleMessage(e):{}}function Y(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function z(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function X(e){return l.value?l.value.getDateTimeFormat(e):{}}function q(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function K(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function Z(e){return l.value?l.value.getNumberFormat(e):{}}function Q(e,t){l.value&&(l.value.setNumberFormat(e,t),p.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:R,messages:w,datetimeFormats:W,numberFormats:M,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:O},get pluralRules(){return l.value?l.value.pluralRules:F},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:b},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:h},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:k},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:L},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:N},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:U,getPostTranslationHandler:S,setPostTranslationHandler:x,getMissingHandler:A,setMissingHandler:D,rt:j,d:V,n:H,tm:G,te:B,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:z,getDateTimeFormat:X,setDateTimeFormat:q,mergeDateTimeFormat:K,getNumberFormat:Z,setNumberFormat:Q,mergeNumberFormat:ee};function ne(e){e.locale.value=u.value,e.fallbackLocale.value=i.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(p.value).forEach((t=>{e.mergeNumberFormat(t,p.value[t])})),e.escapeParameter=I,e.fallbackFormat=L,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=N}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,p.value=t.numberFormats.value):o&&ne(t)})),te}(r,u,o,e)}if("global"===u)return function(e,t,n){let r=b(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])})),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])}))}}(o,e,l),o;if("parent"===u){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[De]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=i({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=ze(a,nt),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(we.UNEXPECTED_ERROR);const l=a[Ae];if(l===e)throw Error(we.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0}),r),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}),r)}}(f,r,m),f.__setInstance(r,m)}return m}var lt;return lt=function(e,t={}){{const n=(t.onCacheKey||me)(e),r=pe[n];if(r)return r;let a=!1;const o=t.onError||T;t.onError=e=>{a=!0,o(e)};const{code:l}=U(e,t),s=new Function(`return ${l}`)();return a?s:pe[n]=s}},oe=lt,le=function(e,t){if(!b(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(o=H(n),c=j[i],l=c[o]||c.l||8,8===l)return;if(i=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===i)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=ee,e.DatetimeFormat=tt,e.I18nInjectionKey=at,e.NumberFormat=Qe,e.Translation=qe,e.VERSION=Ce,e.castToVueI18n=e=>{if(!($e in e))throw Error(we.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(rt)return rt;nt=t;const n=!v(e.legacy)||e.legacy,r=!v(e.globalInjection)||e.globalInjection,o=!n||!!e.allowComposition,l=new Map,s=function(e,t,n){if(!Ue(n))throw Error(we.NOT_COMPATIBLE_LEGACY_VUE_I18N);return ze(e,n)}(e,0,t);a("");{const e=s[Ae];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),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(we.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!v(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,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=>Ge(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=>Ge(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&y(r)&&Ge(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||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,nt))}});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]}))),rt=e,e}},e.useI18n=ot,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>r?Symbol(e):e,o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length;function u(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const i=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function p(e,t){return m.call(e,t)}const d=Array.isArray,g=e=>"function"==typeof e,_=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),L=15;function T(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const N=" ",I="\n",O=String.fromCharCode(8232),F=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&t[e+1]===I,s=e=>t[e]===F,c=e=>t[e]===O,u=e=>l(e)||(e=>t[e]===I)(e)||s(e)||c(e),i=e=>l(e)||s(e)||c(e)?I:t[e];function f(){return o=0,u(n)&&(r++,a=0),l(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+o),next:f,peek:function(){return l(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const P=void 0;function w(e,t={}){const n=!1!==t.location,r=C(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=E(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()===N||e.currentPeek()===I;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===P)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 h(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===I):o===N?(e.peek(),n(!0,N,a)):o!==I||(e.peek(),n(!0,I,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===P?P:t(n)?(e.next(),n):null}function y(e){return k(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 k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=L(e);)n+=t;return n}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return w(e,t,4);case"U":return w(e,t,6);default:return o(),""}}function w(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function R(e){g(e);const t=p(e,"|");return g(e),t}function W(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=M(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,S(e,t);if(r=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,5,function(e){g(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===P&&o(),n}(e)),g(e),n;if(a=v(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===P&&o(),t}(e)),g(e),n;if(l=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){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==I;for(;t=k(e,r);)n+="\\"===t?F(e):t;const a=e.currentChar();return a===I||a===P?(o(),a===I&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==N&&e!==I;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,g(e),n}return n}function M(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==I&&a!==N||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;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)?(g(e),M(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(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?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===N||!t)&&(t===I?(e.peek(),r()):_(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?W(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===N?r:a===I?(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 W(e,t)||m(t);if(t.inLinked)return M(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return W(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return M(e,t)||m(t);default:if(b(e))return n=f(t,1,R(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(n===N||n===I)if(h(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:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===P?f(c,14):S(r,c)},currentOffset:a,currentPosition:o,context:u}}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 M(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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(R,W),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,S(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,S(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,S(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,S(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,S(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,S(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const u=e.context(),i=r(7,u.offset,u.startLoc);return i.value="",a(i,u.offset,u.startLoc),n.key=i,a(n,u.offset,u.startLoc),{nextConsumeToken: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,S(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=w(n,i({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function S(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function x(e,t){for(let n=0;n<e.length;n++)A(e[n],t)}function A(e,t){switch(e.type){case 1:x(e.cases,t),t.helper("plural");break;case 2:x(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 D(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 $(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?$(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&&($(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&&($(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")}(`),$(e,t.key),t.modifier&&(e.push(", "),$(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 U(e,t={}){const n=i({},t),r=M(n).parse(e);return D(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",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),$(c,e),c.deindent(l),c.push("}");const{code:u,map:i}=c.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\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 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 J(e,t){return b(e)?e[t]:null}const Y=e=>e,z=e=>"",X=e=>0===e.length?"":e.join(""),q=e=>null==e?"":d(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?e.pluralRules[t]:K,a=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?K:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=g(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const u=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:X,i=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:q,f={list:e=>o[e],named:e=>s[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]:Y)(r):r;var a},message:c,type:y(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:u};return f}function Q(e,t,n){return[...new Set([n,...d(t)?t:b(t)?Object.keys(t):_(t)?[t]:[n]])]}function ee(e,t,n){const r=_(n)?n:ae,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;d(e);)e=te(o,e,t);const l=d(t)||!y(t)?t:t.default?t.default:null;e=_(l)?[l]:l,d(e)&&te(o,e,!1),a.__localeChainCache.set(r,o)}return o}function te(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];_(o)&&(r=ne(e,t[a],n))}return r}function ne(e,t,n){let r;const a=t.split("-");do{r=re(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function re(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),(d(n)||y(n))&&n[a]&&(r=n[a])}return r}const ae="en-US";let oe,le,se;let ce=0;function ue(e={}){const t=_(e.version)?e.version:"9.2.0-beta.34",n=_(e.locale)?e.locale:ae,r=d(e.fallbackLocale)||y(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=y(e.messages)?e.messages:{[n]:{}},o=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=y(e.numberFormats)?e.numberFormats:{[n]:{}},c=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=g(e.missing)?e.missing:null,p=!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,L=!!e.unresolving,T=g(e.postTranslation)?e.postTranslation:null,E=y(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:oe,F=g(e.messageResolver)?e.messageResolver:le||J,C=g(e.localeFallbacker)?e.localeFallbacker:se||Q,P=b(e.fallbackContext)?e.fallbackContext:void 0,w=g(e.onWarn)?e.onWarn:u,R=e,W=b(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,M=b(R.__numberFormatters)?R.__numberFormatters:new Map,S=b(R.__meta)?R.__meta:{};ce++;const x={version:t,cid:ce,locale:n,fallbackLocale:r,messages:a,modifiers:c,pluralRules:f,missing:m,missingWarn:p,fallbackWarn:h,fallbackFormat:k,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:O,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:w,__meta:S};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function ie(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function fe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const me=e=>e;let pe=Object.create(null);let de=L;const ge=()=>++de,_e={INVALID_ARGUMENT:de,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()},ve=()=>"",be=e=>g(e);function he(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[u,i]=Le(...t),m=v(i.missingWarn)?i.missingWarn:e.missingWarn,p=v(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,g=v(i.escapeParameter)?i.escapeParameter:e.escapeParameter,h=!!i.resolvedMessage,k=_(i.default)||v(i.default)?v(i.default)?o?u:()=>u:i.default:n?o?u:()=>u:"",y=n||""!==k,L=_(i.locale)?i.locale:e.locale;g&&function(e){d(e.list)?e.list=e.list.map((e=>_(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(i);let[T,E,N]=h?[u,L,c[L]||{}]:ke(e,u,L,s,p,m),I=T,O=u;if(h||_(I)||be(I)||y&&(I=k,O=I),!(h||(_(I)||be(I))&&_(E)))return a?-1:u;let F=!1;const C=be(I)?I:ye(e,u,E,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ke(f,r,t,c,u,i);a=s(e,r)}if(_(a)){let n=!1;const o=ye(e,r,t,a,r,(()=>{n=!0}));return n?ve:o}return be(a)?a:ve},p={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);l(r.plural)&&(p.pluralIndex=r.plural);return p}(e,E,N,i),w=function(e,t,n){return t(n)}(0,C,Z(P));return r?r(w):w}function ke(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:u}=e,i=u(e,r,n);let f,m={},p=null;for(let n=0;n<i.length&&(f=i[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!g(p));n++){const n=ie(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function ye(e,t,n,r,a,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(be(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const u=s(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>o({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,c,l));return u.locale=n,u.key=t,u.source=r,u}function Le(...e){const[t,n,r]=e,a={};if(!_(t)&&!l(t)&&!be(t))throw Error(_e.INVALID_ARGUMENT);const o=l(t)?String(t):(be(t),t);return l(n)?a.plural=n:_(n)?a.default=n:y(n)&&!c(n)?a.named=n:d(n)&&(a.list=n),l(r)?a.plural=r:_(r)?a.default=r:y(r)&&i(a,r),[o,a]}function Te(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[u,f,m,p]=Ee(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(u)||""===u)return new Intl.DateTimeFormat(g).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[u],!y(L));t++)ie(e,u,h,0,"datetime format");if(!y(L)||!_(h))return r?-1:u;let T=`${h}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.DateTimeFormat(h,i({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}function Ee(...e){const[t,n,r,a]=e;let o,s={},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();o=new Date(n);try{o.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);o=t}else{if(!l(t))throw Error(_e.INVALID_ARGUMENT);o=t}return _(n)?s.key=n:y(n)&&(s=n),_(r)?s.locale=r:y(r)&&(c=r),y(a)&&(c=a),[s.key||"",o,s,c]}function Ne(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ie(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[u,f,m,p]=Oe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(u)||""===u)return new Intl.NumberFormat(g).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[u],!y(L));t++)ie(e,u,h,0,"number format");if(!y(L)||!_(h))return r?-1:u;let T=`${h}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.NumberFormat(h,i({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}function Oe(...e){const[t,n,r,a]=e;let o={},s={};if(!l(t))throw Error(_e.INVALID_ARGUMENT);const c=t;return _(n)?o.key=n:y(n)&&(o=n),_(r)?o.locale=r:y(r)&&(s=r),y(a)&&(s=a),[o.key||"",c,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 Ce="9.2.0-beta.34";let Pe=L;const we=()=>++Pe,Re={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(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:we(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:we(),__EXTEND_POINT__:we()},We=a("__transrateVNode"),Me=a("__datetimeParts"),Se=a("__numberParts"),xe=a("__setPluralRules"),Ae=a("__legacyVueI18n"),De=a("__injectWithOption"),$e="__VUE_I18N_BRIDGE__";function Ue(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function je(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],b(a[n[r]])&&je(a[n[r]])}else b(e[t])&&je(e[t]);return e}function Ve(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=y(n)?n:d(r)?{}:{[e]:{}};if(d(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ge(n,l[t])):Ge(n,l)}else _(e)&&Ge(JSON.parse(e),l)})),null==a&&o)for(const e in l)p(l,e)&&je(l[e]);return l}const He=e=>!b(e)||d(e);function Ge(e,t){if(He(e)||He(t))throw Error(Re.INVALID_VALUE);for(const n in e)p(e,n)&&(He(e[n])||He(t[n])?t[n]=e[n]:Ge(e[n],t[n]))}function Be(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 Ye(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function ze(e={},r){const{__root:a}=e,o=void 0===a;let c=!v(e.inheritLocale)||e.inheritLocale;const u=t.ref(a&&c?a.locale.value:_(e.locale)?e.locale:ae),f=t.ref(a&&c?a.fallbackLocale.value:_(e.fallbackLocale)||d(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),m=t.ref(Ve(u.value,e)),p=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[u.value]:{}});let k=a?a.missingWarn:!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,I=g(e.missing)?Ye(e.missing):null,O=g(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const P=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let w,R,W=e.pluralRules||a&&a.pluralRules;{Ue(r);const e={locale:u.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:h.value,modifiers:P,missing:N,fallbackRoot:T,postTranslation:O,pluralizationRules:W,escapeParameterHtml:C,sync:c,silentFallbackWarn:v(L)?!L:L,silentTranslationWarn:v(k)?!k:k,formatFallbackMessages:v(E)?!E:E,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:$e};w=new r(e)}R=function(){const t={version:Ce,locale:u.value,fallbackLocale:f.value,messages:m.value,modifiers:P,pluralRules:W,missing:null===I?void 0:I,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:C,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=p.value,t.numberFormats=h.value,t.__datetimeFormatters=y(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=y(R)?R.__numberFormatters:void 0,ue(t)}(),fe(R,u.value,f.value);const M=t.computed({get:()=>u.value,set:e=>{u.value=e,w&&!o&&(w.locale=e),R.locale=u.value}}),S=t.computed({get:()=>f.value,set:e=>{f.value=e,w&&!o&&(w.fallbackLocale=e),R.fallbackLocale=f.value,fe(R,u.value,e)}}),x=t.computed((()=>m.value)),A=t.computed((()=>p.value)),D=t.computed((()=>h.value));function $(e,t,n,r,o,s){let c;if(u.value,f.value,m.value,p.value,h.value,c=e(R),l(c)&&-1===c){const[e,n]=t();return a&&T?r(a):o(e)}if(s(c))return c;throw Error(Re.UNEXPECTED_RETURN_TYPE)}function U(...e){return $((t=>Reflect.apply(he,null,[t,...e])),(()=>Le(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const j={normalize:function(e){return e.map((e=>_(e)?Be(e):e))},interpolate:e=>e,type:"vnode"};function V(e){return m.value[e]||{}}Je++,a&&n&&(t.watch(a.locale,(e=>{c&&(u.value=e,w&&!o&&(w.locale=e),R.locale=e,fe(R,u.value,f.value))})),t.watch(a.fallbackLocale,(e=>{c&&(f.value=e,w&&!o&&(w.fallbackLocale=e),R.fallbackLocale=e,fe(R,u.value,f.value))})));const H={id:Je,locale:M,fallbackLocale:S,get inheritLocale(){return c},set inheritLocale(e){c=e,w&&(w._sync=e),e&&a&&(u.value=a.locale.value,f.value=a.fallbackLocale.value,w&&(w.locale=a.locale.value,w.fallbackLocale=a.fallbackLocale.value),fe(R,u.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:x,get modifiers(){return P},get pluralRules(){return W||{}},get isGlobal(){return o},get missingWarn(){return k},set missingWarn(e){k=e,R.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,R.fallbackWarn=L},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,R.fallbackFormat=E},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,R.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,R.escapeParameter=e},t:U,getLocaleMessage:V,setLocaleMessage:function(e,t){m.value[e]=t,w&&w.setLocaleMessage(e,t),R.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},w&&w.mergeLocaleMessage(e,t),Ge(t,m.value[e]),R.messages=m.value},getPostTranslationHandler:function(){return g(O)?O:null},setPostTranslationHandler:function(e){O=e,R.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(I=Ye(e)),N=e,R.missing=I},[xe]:function(e){W=e,R.pluralRules=W}};return H.datetimeFormats=A,H.numberFormats=D,H.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(Re.INVALID_ARGUMENT);return U(t,n,i({resolvedMessage:!0},r||{}))},H.te=function(e,t){const n=V(_(t)?t:u.value);return null!==R.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=ee(R,f.value,u.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=R.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return $((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ee(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},H.n=function(...e){return $((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Oe(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},H.getDateTimeFormat=function(e){return p.value[e]||{}},H.setDateTimeFormat=function(e,t){p.value[e]=t,w&&w.setDateTimeFormat(e,t),R.datetimeFormats=p.value,Ne(R,e,t)},H.mergeDateTimeFormat=function(e,t){p.value[e]=i(p.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),R.datetimeFormats=p.value,Ne(R,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,w&&w.setNumberFormat(e,t),R.numberFormats=h.value,Fe(R,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=i(h.value[e]||{},t),w&&w.mergeNumberFormat(e,t),R.numberFormats=h.value,Fe(R,e,t)},H[De]=e.__injectWithOption,H[We]=function(...e){return $((t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(he,null,[r,...e])}finally{r.processor=null}return n}),(()=>Le(...e)),0,(t=>t[We](...e)),(e=>[Be(e)]),(e=>d(e)))},H[Me]=function(...e){return $((t=>Reflect.apply(Te,null,[t,...e])),(()=>Ee(...e)),0,(t=>t[Me](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Se]=function(...e){return $((t=>Reflect.apply(Ie,null,[t,...e])),(()=>Oe(...e)),0,(t=>t[Se](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ae]=w,H}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:i({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Xe),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||ot({useScope:e.scope,__useComponent:!0}),l=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 s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...d(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),c=o[We](e.keypath,s,r),u=i({},a),f=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,u,c)}}};function Ke(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:b(e.format)&&(_(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?i({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let u=[n.key];d(c)?u=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return d(a=r)&&!_(a[0])&&(r[0].key=`${e.type}-${t}`),r})):_(c)&&(u=[c]);const f=i({},l),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,u)}}const Ze=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Qe={name:"i18n-n",props:i({value:{type:Number,required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return Ke(e,t,Ze,((...e)=>n[Se](...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:i({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xe),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return Ke(e,t,et,((...e)=>n[Me](...e)))}};let nt=null,rt=null;const at=a("global-vue-i18n");function ot(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(Re.MUST_BE_CALL_SETUP_TOP);if(null==nt||null==rt)throw Error(Re.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(Re.UNEXPECTED_ERROR);let n=t._i18nBridgeRoot;if(n||(n=rt),!n)throw Error(Re.NOT_INSLALLED);return n}}(r),o=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(r),u=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(Re.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n)throw Error(Re.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=!v(a.inheritLocale)||a.inheritLocale,u=t.ref(o&&c?r.locale.value:_(a.locale)?a.locale:ae),i=t.ref(o&&c?r.fallbackLocale.value:_(a.fallbackLocale)||d(a.fallbackLocale)||y(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:u.value),f=t.ref(Ve(u.value,a)),m=t.ref(y(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),p=t.ref(y(a.numberFormats)?a.numberFormats:{[u.value]:{}}),b=o?r.missingWarn:!v(a.missingWarn)&&!s(a.missingWarn)||a.missingWarn,h=o?r.fallbackWarn:!v(a.fallbackWarn)&&!s(a.fallbackWarn)||a.fallbackWarn,k=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,T=g(a.missing)?a.missing:null,E=g(a.postTranslation)?a.postTranslation:null,N=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,O=o?r.modifiers:y(a.modifiers)?a.modifiers:{},F=a.pluralRules||o&&r.pluralRules;function C(){return[u.value,i.value,f.value,m.value,p.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:u.value,set:e=>{l.value&&(l.value.locale.value=e),u.value=e}}),w=t.computed({get:()=>l.value?l.value.fallbackLocale.value:i.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),i.value=e}}),R=t.computed((()=>l.value?l.value.messages.value:f.value)),W=t.computed((()=>m.value)),M=t.computed((()=>p.value));function S(){return l.value?l.value.getPostTranslationHandler():E}function x(e){l.value&&l.value.setPostTranslationHandler(e)}function A(){return l.value?l.value.getMissingHandler():T}function D(e){l.value&&l.value.setMissingHandler(e)}function $(e){return C(),e()}function U(...e){return l.value?$((()=>Reflect.apply(l.value.t,null,[...e]))):$((()=>""))}function j(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function V(...e){return l.value?$((()=>Reflect.apply(l.value.d,null,[...e]))):$((()=>""))}function H(...e){return l.value?$((()=>Reflect.apply(l.value.n,null,[...e]))):$((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function B(e,t){return!!l.value&&l.value.te(e,t)}function J(e){return l.value?l.value.getLocaleMessage(e):{}}function Y(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function z(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function X(e){return l.value?l.value.getDateTimeFormat(e):{}}function q(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function K(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function Z(e){return l.value?l.value.getNumberFormat(e):{}}function Q(e,t){l.value&&(l.value.setNumberFormat(e,t),p.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:w,messages:R,datetimeFormats:W,numberFormats:M,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:O},get pluralRules(){return l.value?l.value.pluralRules:F},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:b},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:h},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:k},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:L},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:N},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:U,getPostTranslationHandler:S,setPostTranslationHandler:x,getMissingHandler:A,setMissingHandler:D,rt:j,d:V,n:H,tm:G,te:B,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:z,getDateTimeFormat:X,setDateTimeFormat:q,mergeDateTimeFormat:K,getNumberFormat:Z,setNumberFormat:Q,mergeNumberFormat:ee};function ne(e){e.locale.value=u.value,e.fallbackLocale.value=i.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(p.value).forEach((t=>{e.mergeNumberFormat(t,p.value[t])})),e.escapeParameter=I,e.fallbackFormat=L,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=N}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(u.value=t.locale.value,i.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,p.value=t.numberFormats.value):o&&ne(t)})),te}(r,u,o,e)}if("global"===u)return function(e,t,n){let r=b(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])})),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])}))}}(o,e,l),o;if("parent"===u){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[De]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=i({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=ze(a,nt),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(Re.UNEXPECTED_ERROR);const l=a[Ae];if(l===e)throw Error(Re.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0}),r),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}),r)}}(f,r,m),f.__setInstance(r,m)}return m}var lt;return lt=function(e,t={}){{const n=(t.onCacheKey||me)(e),r=pe[n];if(r)return r;let a=!1;const o=t.onError||T;t.onError=e=>{a=!0,o(e)};const{code:l}=U(e,t),s=new Function(`return ${l}`)();return a?s:pe[n]=s}},oe=lt,le=function(e,t){if(!b(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(o=H(n),c=j[i],l=c[o]||c.l||8,8===l)return;if(i=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===i)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=ee,e.DatetimeFormat=tt,e.I18nInjectionKey=at,e.NumberFormat=Qe,e.Translation=qe,e.VERSION=Ce,e.castToVueI18n=e=>{if(!($e in e))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},t){if(rt)return rt;nt=t;const n=!v(e.legacy)||e.legacy,r=!v(e.globalInjection)||e.globalInjection,o=!n||!!e.allowComposition,l=new Map,s=function(e,t,n){if(!Ue(n))throw Error(Re.NOT_COMPATIBLE_LEGACY_VUE_I18N);return ze(e,n)}(e,0,t);a("");{const e=s[Ae];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(t,...a)=>{if(2!==(t&&t.version&&Number(t.version.split(".")[0])||-1))throw Error(Re.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!v(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,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=>Ge(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=>Ge(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&y(r)&&Ge(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||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,nt))}});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]}))),rt=e,e}},e.useI18n=ot,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
/*!
* vue-i18n-bridge v9.2.0-beta.33
* vue-i18n-bridge v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,getCurrentInstance as a,computed as t,watch as n,h as l,onBeforeMount as r,onUnmounted as o,shallowRef as s}from"@vue/composition-api";const i="undefined"!=typeof window,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=e=>c?Symbol(e):e,m=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),f=e=>"number"==typeof e&&isFinite(e),_=e=>"[object RegExp]"===I(e),g=e=>T(e)&&0===Object.keys(e).length;function p(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const v=Object.assign;function b(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function h(e,a){return d.call(e,a)}const k=Array.isArray,y=e=>"function"==typeof e,E=e=>"string"==typeof e,L=e=>"boolean"==typeof e,N=e=>null!==e&&"object"==typeof e,F=Object.prototype.toString,I=e=>F.call(e),T=e=>"[object Object]"===I(e),R=15,W=[];W[0]={w:[0],i:[3,0],"[":[4],o:[7]},W[1]={w:[1],".":[2],"[":[4],o:[7]},W[2]={w:[2],i:[3,0],0:[3,0]},W[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},W[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},W[5]={"'":[4,0],o:8,l:[5,0]},W[6]={'"':[4,0],o:8,l:[6,0]};const O=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function w(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,O.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const D=new Map;function A(e,a){return N(e)?e[a]:null}const C=e=>e,P=e=>"",S=e=>0===e.length?"":e.join(""),$=e=>null==e?"":k(e)||T(e)&&e.toString===F?JSON.stringify(e,null,2):String(e);function U(e,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function j(e={}){const a=e.locale,t=function(e){const a=f(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(f(e.named.count)||f(e.named.n))?f(e.named.count)?e.named.count:f(e.named.n)?e.named.n:a:a}(e),n=N(e.pluralRules)&&E(a)&&y(e.pluralRules[a])?e.pluralRules[a]:U,l=N(e.pluralRules)&&E(a)&&y(e.pluralRules[a])?U:void 0,r=e.list||[],o=e.named||{};f(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,o);function s(a){const t=y(e.messages)?e.messages(a):!!N(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):P)}const i=T(e.processor)&&y(e.processor.normalize)?e.processor.normalize:S,c=T(e.processor)&&y(e.processor.interpolate)?e.processor.interpolate:$,u={list:e=>r[e],named:e=>o[e],plural:e=>e[n(t,e.length,l)],linked:(a,t)=>{const n=s(a)(u);return E(t)?(l=t,e.modifiers?e.modifiers[l]:C)(n):n;var l},message:s,type:T(e.processor)&&E(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return u}function V(e,a,t){return[...new Set([t,...k(a)?a:N(a)?Object.keys(a):E(a)?[a]:[t]])]}function H(e,a,t){const n=E(t)?t:Y,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;k(e);)e=G(r,e,a);const o=k(a)||!T(a)?a:a.default?a.default:null;e=E(o)?[o]:o,k(e)&&G(r,e,!1),l.__localeChainCache.set(n,r)}return r}function G(e,a,t){let n=!0;for(let l=0;l<a.length&&L(n);l++){const r=a[l];E(r)&&(n=x(e,a[l],t))}return n}function x(e,a,t){let n;const l=a.split("-");do{n=B(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function B(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(k(t)||T(t))&&t[l]&&(n=t[l])}return n}const Y="en-US";let z,J;let X=0;function q(e={}){const a=E(e.version)?e.version:"9.2.0-beta.33",t=E(e.locale)?e.locale:Y,n=k(e.fallbackLocale)||T(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=T(e.messages)?e.messages:{[t]:{}},r=T(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=T(e.numberFormats)?e.numberFormats:{[t]:{}},s=v({},e.modifiers||{},{upper:e=>E(e)?e.toUpperCase():e,lower:e=>E(e)?e.toLowerCase():e,capitalize:e=>E(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=y(e.missing)?e.missing:null,u=!L(e.missingWarn)&&!_(e.missingWarn)||e.missingWarn,m=!L(e.fallbackWarn)&&!_(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,g=!!e.unresolving,b=y(e.postTranslation)?e.postTranslation:null,d=T(e.processor)?e.processor:null,h=!L(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,I=y(e.messageCompiler)?e.messageCompiler:undefined,R=y(e.messageResolver)?e.messageResolver:z||A,W=y(e.localeFallbacker)?e.localeFallbacker:J||V,O=N(e.fallbackContext)?e.fallbackContext:void 0,M=y(e.onWarn)?e.onWarn:p,w=e,D=N(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,C=N(w.__numberFormatters)?w.__numberFormatters:new Map,P=N(w.__meta)?w.__meta:{};X++;const S={version:a,cid:X,locale:t,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:g,postTranslation:b,processor:d,warnHtmlMessage:h,escapeParameter:F,messageCompiler:I,messageResolver:R,localeFallbacker:W,fallbackContext:O,onWarn:M,__meta:P};return S.datetimeFormats=r,S.numberFormats=o,S.__datetimeFormatters=D,S.__numberFormatters=C,S}function Z(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return E(n)?n:a}return a}function K(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let Q=R;const ee=()=>++Q,ae={INVALID_ARGUMENT:Q,INVALID_DATE_ARGUMENT:ee(),INVALID_ISO_DATE_ARGUMENT:ee(),__EXTEND_POINT__:ee()},te=()=>"",ne=e=>y(e);function le(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:o,messages:s}=e,[i,c]=se(...a),u=L(c.missingWarn)?c.missingWarn:e.missingWarn,m=L(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,_=L(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,p=E(c.default)||L(c.default)?L(c.default)?r?i:()=>i:c.default:t?r?i:()=>i:"",v=t||""!==p,d=E(c.locale)?c.locale:e.locale;_&&function(e){k(e.list)?e.list=e.list.map((e=>E(e)?b(e):e)):N(e.named)&&Object.keys(e.named).forEach((a=>{E(e.named[a])&&(e.named[a]=b(e.named[a]))}))}(c);let[h,y,F]=g?[i,d,s[d]||{}]:re(e,i,d,o,m,u),I=h,T=i;if(g||E(I)||ne(I)||v&&(I=p,T=I),!(g||(E(I)||ne(I))&&E(y)))return l?-1:i;let R=!1;const W=ne(I)?I:oe(e,i,y,I,T,(()=>{R=!0}));if(R)return I;const O=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m=n=>{let l=o(t,n);if(null==l&&u){const[,,e]=re(u,n,a,s,i,c);l=o(e,n)}if(E(l)){let t=!1;const r=oe(e,n,a,l,n,(()=>{t=!0}));return t?te:r}return ne(l)?l:te},_={locale:a,modifiers:l,pluralRules:r,messages:m};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);f(n.plural)&&(_.pluralIndex=n.plural);return _}(e,y,F,c),M=function(e,a,t){return a(t)}(0,W,j(O));return n?n(M):M}function re(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},_=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(_=i(f,a))&&(_=f[a]),!E(_)&&!y(_));t++){const t=Z(e,a,m,0,"translate");t!==a&&(_=t)}return[_,m,f]}function oe(e,a,t,n,l,r){const{messageCompiler:o,warnHtmlMessage:s}=e;if(ne(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==o){const e=()=>n;return e.locale=t,e.key=a,e}const i=o(n,function(e,a,t,n,l,r){return{warnHtmlMessage:l,onError:e=>{throw r&&r(e),e},onCacheKey:e=>((e,a,t)=>m({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,s,r));return i.locale=t,i.key=a,i.source=n,i}function se(...e){const[a,t,n]=e,l={};if(!E(a)&&!f(a)&&!ne(a))throw Error(ae.INVALID_ARGUMENT);const r=f(a)?String(a):(ne(a),a);return f(t)?l.plural=t:E(t)?l.default=t:T(t)&&!g(t)?l.named=t:k(t)&&(l.list=t),f(n)?l.plural=n:E(n)?l.default=n:T(n)&&v(l,n),[r,l]}function ie(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=ce(...a);L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=E(u.locale)?u.locale:e.locale,p=o(e,l,_);if(!E(i)||""===i)return new Intl.DateTimeFormat(_).format(c);let b,d={},h=null;for(let a=0;a<p.length&&(b=p[a],d=t[b]||{},h=d[i],!T(h));a++)Z(e,i,b,0,"datetime format");if(!T(h)||!E(b))return n?-1:i;let k=`${b}__${i}`;g(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(b,v({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}function ce(...e){const[a,t,n,l]=e;let r,o={},s={};if(E(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ae.INVALID_ISO_DATE_ARGUMENT);const t=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();r=new Date(t);try{r.toISOString()}catch(e){throw Error(ae.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(a)){if(isNaN(a.getTime()))throw Error(ae.INVALID_DATE_ARGUMENT);r=a}else{if(!f(a))throw Error(ae.INVALID_ARGUMENT);r=a}return E(t)?o.key=t:T(t)&&(o=t),E(n)?o.locale=n:T(n)&&(s=n),T(l)&&(s=l),[o.key||"",r,o,s]}function ue(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function me(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=fe(...a);L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=E(u.locale)?u.locale:e.locale,p=o(e,l,_);if(!E(i)||""===i)return new Intl.NumberFormat(_).format(c);let b,d={},h=null;for(let a=0;a<p.length&&(b=p[a],d=t[b]||{},h=d[i],!T(h));a++)Z(e,i,b,0,"number format");if(!T(h)||!E(b))return n?-1:i;let k=`${b}__${i}`;g(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(b,v({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}function fe(...e){const[a,t,n,l]=e;let r={},o={};if(!f(a))throw Error(ae.INVALID_ARGUMENT);const s=a;return E(t)?r.key=t:T(t)&&(r=t),E(n)?r.locale=n:T(n)&&(o=n),T(l)&&(o=l),[r.key||"",s,r,o]}function _e(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const ge="9.2.0-beta.33";let pe=R;const ve=()=>++pe,be={UNEXPECTED_RETURN_TYPE:pe,INVALID_ARGUMENT:ve(),MUST_BE_CALL_SETUP_TOP:ve(),NOT_INSLALLED:ve(),NOT_AVAILABLE_IN_LEGACY_MODE:ve(),REQUIRED_VALUE:ve(),INVALID_VALUE:ve(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ve(),NOT_INSLALLED_WITH_PROVIDE:ve(),UNEXPECTED_ERROR:ve(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ve(),BRIDGE_SUPPORT_VUE_2_ONLY:ve(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ve(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ve(),__EXTEND_POINT__:ve()},de=u("__transrateVNode"),he=u("__datetimeParts"),ke=u("__numberParts"),ye=u("__setPluralRules"),Ee=u("__legacyVueI18n"),Le=u("__injectWithOption");function Ne(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Fe(e){if(!N(e))return e;for(const a in e)if(h(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],N(l[t[n]])&&Fe(l[t[n]])}else N(e[a])&&Fe(e[a]);return e}function Ie(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=T(t)?t:k(n)?{}:{[e]:{}};if(k(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Re(t,o[a])):Re(t,o)}else E(e)&&Re(JSON.parse(e),o)})),null==l&&r)for(const e in o)h(o,e)&&Fe(o[e]);return o}const Te=e=>!N(e)||k(e);function Re(e,a){if(Te(e)||Te(a))throw Error(be.INVALID_VALUE);for(const t in e)h(e,t)&&(Te(e[t])||Te(a[t])?a[t]=e[t]:Re(e[t],a[t]))}function We(e){return function(e){const a=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:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Oe=0;function Me(e){return(t,n,l,r)=>e(n,l,a()||void 0,r)}function we(a={},l){const{__root:r}=a,o=void 0===r;let s=!L(a.inheritLocale)||a.inheritLocale;const c=e(r&&s?r.locale.value:E(a.locale)?a.locale:Y),u=e(r&&s?r.fallbackLocale.value:E(a.fallbackLocale)||k(a.fallbackLocale)||T(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:c.value),m=e(Ie(c.value,a)),g=e(T(a.datetimeFormats)?a.datetimeFormats:{[c.value]:{}}),p=e(T(a.numberFormats)?a.numberFormats:{[c.value]:{}});let b=r?r.missingWarn:!L(a.missingWarn)&&!_(a.missingWarn)||a.missingWarn,d=r?r.fallbackWarn:!L(a.fallbackWarn)&&!_(a.fallbackWarn)||a.fallbackWarn,h=r?r.fallbackRoot:!L(a.fallbackRoot)||a.fallbackRoot,F=!!a.fallbackFormat,I=y(a.missing)?a.missing:null,R=y(a.missing)?Me(a.missing):null,W=y(a.postTranslation)?a.postTranslation:null,O=r?r.warnHtmlMessage:!L(a.warnHtmlMessage)||a.warnHtmlMessage,M=!!a.escapeParameter;const w=r?r.modifiers:T(a.modifiers)?a.modifiers:{};let D,A,C=a.pluralRules||r&&r.pluralRules;{Ne(l);const e={locale:c.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:g.value,numberFormats:p.value,modifiers:w,missing:I,fallbackRoot:h,postTranslation:W,pluralizationRules:C,escapeParameterHtml:M,sync:s,silentFallbackWarn:L(d)?!d:d,silentTranslationWarn:L(b)?!b:b,formatFallbackMessages:L(F)?!F:F,warnHtmlInMessage:L(O)&&O?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};D=new l(e)}A=function(){const e={version:"9.2.0-beta.33",locale:c.value,fallbackLocale:u.value,messages:m.value,modifiers:w,pluralRules:C,missing:null===R?void 0:R,missingWarn:b,fallbackWarn:d,fallbackFormat:F,unresolving:!0,postTranslation:null===W?void 0:W,warnHtmlMessage:O,escapeParameter:M,messageResolver:a.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=p.value,e.__datetimeFormatters=T(A)?A.__datetimeFormatters:void 0,e.__numberFormatters=T(A)?A.__numberFormatters:void 0,q(e)}(),K(A,c.value,u.value);const P=t({get:()=>c.value,set:e=>{c.value=e,D&&!o&&(D.locale=e),A.locale=c.value}}),S=t({get:()=>u.value,set:e=>{u.value=e,D&&!o&&(D.fallbackLocale=e),A.fallbackLocale=u.value,K(A,c.value,e)}}),$=t((()=>m.value)),U=t((()=>g.value)),j=t((()=>p.value));function V(e,a,t,n,l,o){let s;if(c.value,u.value,m.value,g.value,p.value,s=e(A),f(s)&&-1===s){const[e,t]=a();return r&&h?n(r):l(e)}if(o(s))return s;throw Error(be.UNEXPECTED_RETURN_TYPE)}function G(...e){return V((a=>Reflect.apply(le,null,[a,...e])),(()=>se(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>E(e)))}const x={normalize:function(e){return e.map((e=>E(e)?We(e):e))},interpolate:e=>e,type:"vnode"};function B(e){return m.value[e]||{}}Oe++,r&&i&&(n(r.locale,(e=>{s&&(c.value=e,D&&!o&&(D.locale=e),A.locale=e,K(A,c.value,u.value))})),n(r.fallbackLocale,(e=>{s&&(u.value=e,D&&!o&&(D.fallbackLocale=e),A.fallbackLocale=e,K(A,c.value,u.value))})));const z={id:Oe,locale:P,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,D&&(D._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,D&&(D.locale=r.locale.value,D.fallbackLocale=r.fallbackLocale.value),K(A,c.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return w},get pluralRules(){return C||{}},get isGlobal(){return o},get missingWarn(){return b},set missingWarn(e){b=e,A.missingWarn=b},get fallbackWarn(){return d},set fallbackWarn(e){d=e,A.fallbackWarn=d},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return F},set fallbackFormat(e){F=e,A.fallbackFormat=F},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,A.warnHtmlMessage=e},get escapeParameter(){return M},set escapeParameter(e){M=e,A.escapeParameter=e},t:G,getLocaleMessage:B,setLocaleMessage:function(e,a){m.value[e]=a,D&&D.setLocaleMessage(e,a),A.messages=m.value},mergeLocaleMessage:function(e,a){m.value[e]=m.value[e]||{},D&&D.mergeLocaleMessage(e,a),Re(a,m.value[e]),A.messages=m.value},getPostTranslationHandler:function(){return y(W)?W:null},setPostTranslationHandler:function(e){W=e,A.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(R=Me(e)),I=e,A.missing=R},[ye]:function(e){C=e,A.pluralRules=C}};return z.datetimeFormats=U,z.numberFormats=j,z.rt=function(...e){const[a,t,n]=e;if(n&&!N(n))throw Error(be.INVALID_ARGUMENT);return G(a,t,v({resolvedMessage:!0},n||{}))},z.te=function(e,a){const t=B(E(a)?a:c.value);return null!==A.messageResolver(t,e)},z.tm=function(e){const a=function(e){let a=null;const t=H(A,u.value,c.value);for(let n=0;n<t.length;n++){const l=m.value[t[n]]||{},r=A.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:r&&r.tm(e)||{}},z.d=function(...e){return V((a=>Reflect.apply(ie,null,[a,...e])),(()=>ce(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>E(e)))},z.n=function(...e){return V((a=>Reflect.apply(me,null,[a,...e])),(()=>fe(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>E(e)))},z.getDateTimeFormat=function(e){return g.value[e]||{}},z.setDateTimeFormat=function(e,a){g.value[e]=a,D&&D.setDateTimeFormat(e,a),A.datetimeFormats=g.value,ue(A,e,a)},z.mergeDateTimeFormat=function(e,a){g.value[e]=v(g.value[e]||{},a),D&&D.mergeDateTimeFormat(e,a),A.datetimeFormats=g.value,ue(A,e,a)},z.getNumberFormat=function(e){return p.value[e]||{}},z.setNumberFormat=function(e,a){p.value[e]=a,D&&D.setNumberFormat(e,a),A.numberFormats=p.value,_e(A,e,a)},z.mergeNumberFormat=function(e,a){p.value[e]=v(p.value[e]||{},a),D&&D.mergeNumberFormat(e,a),A.numberFormats=p.value,_e(A,e,a)},z[Le]=a.__injectWithOption,z[de]=function(...e){return V((a=>{let t;const n=a;try{n.processor=x,t=Reflect.apply(le,null,[n,...e])}finally{n.processor=null}return t}),(()=>se(...e)),0,(a=>a[de](...e)),(e=>[We(e)]),(e=>k(e)))},z[he]=function(...e){return V((a=>Reflect.apply(ie,null,[a,...e])),(()=>ce(...e)),0,(a=>a[he](...e)),(()=>[]),(e=>E(e)||k(e)))},z[ke]=function(...e){return V((a=>Reflect.apply(me,null,[a,...e])),(()=>fe(...e)),0,(a=>a[ke](...e)),(()=>[]),(e=>E(e)||k(e)))},z[Ee]=D,z}const De={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ae={name:"i18n-t",props:v({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>f(e)||!isNaN(e)}},De),setup(e,a){const{slots:t,attrs:n}=a,r=e.i18n||xe({useScope:e.scope,__useComponent:!0}),o=Object.keys(t).filter((e=>"_"!==e));return()=>{const t={};e.locale&&(t.locale=e.locale),void 0!==e.plural&&(t.plural=E(e.plural)?+e.plural:e.plural);const s=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...k(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(a,o),i=r[de](e.keypath,s,t),c=v({},n),u=E(e.tag)||N(e.tag)?e.tag:"span";return l(u,c,i)}}};function Ce(e,a,t,n){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),E(e.format)?a.key=e.format:N(e.format)&&(E(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((a,n)=>t.includes(n)?v({},a,{[n]:e.format[n]}):a),{}));const i=n(e.value,a,s);let c=[a.key];k(i)?c=i.map(((e,a)=>{const t=r[e.type];return t?t({[e.type]:e.value,index:a,parts:i}):[e.value]})):E(i)&&(c=[i]);const u=v({},o),m=E(e.tag)||N(e.tag)?e.tag:"span";return l(m,u,c)}}const Pe=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Se={name:"i18n-n",props:v({value:{type:Number,required:!0},format:{type:[String,Object]}},De),setup(e,a){const t=e.i18n||xe({useScope:"parent",__useComponent:!0});return Ce(e,a,Pe,((...e)=>t[ke](...e)))}},$e=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Ue={name:"i18n-d",props:v({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},De),setup(e,a){const t=e.i18n||xe({useScope:"parent",__useComponent:!0});return Ce(e,a,$e,((...e)=>t[he](...e)))}};let je=null,Ve=null;const He=u("global-vue-i18n");function Ge(e={},a){if(Ve)return Ve;je=a;const t=!L(e.legacy)||e.legacy,n=!L(e.globalInjection)||e.globalInjection,l=!t||!!e.allowComposition,r=new Map,o=function(e,a,t){if(!Ne(t))throw Error(be.NOT_COMPATIBLE_LEGACY_VUE_I18N);return we(e,t)}(e,0,a);u("");{const e=o[Ee];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(be.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=T(a[0])?a[0]:{};(!L(t.globalInstall)||t.globalInstall)&&(e.component(Ae.name,Ae),e.component(Se.name,Se),e.component(Ue.name,Ue))}(a,...l),!t&&n&&function(e,a,t){a.watchLocale(t),e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])}}(a,e,o),a.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Re(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Re(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&T(n)&&Re(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||T(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(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 a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,je))}});const a={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,a){r.set(e,a)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),Ve=e,e}}function xe(n={}){const l=a();if(null==l)throw Error(be.MUST_BE_CALL_SETUP_TOP);if(null==je||null==Ve)throw Error(be.NOT_INSLALLED);const c=function(e){{const a=e.proxy;if(null==a)throw Error(be.UNEXPECTED_ERROR);let t=a._i18nBridgeRoot;if(t||(t=Ve),!t)throw Error(be.NOT_INSLALLED);return t}}(l),u=function(e){return e.global}(c),m=function(e){return e.proxy.$options}(l),f=function(e,a){return g(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(n,m);if("legacy"===c.mode&&!n.__useComponent){if(!c.allowComposition)throw Error(be.NOT_AVAILABLE_IN_LEGACY_MODE);return function(a,n,l,o={}){const i="local"===n,c=s(null);if(i&&a.proxy&&!a.proxy.$options.i18n)throw Error(be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!L(o.inheritLocale)||o.inheritLocale,m=e(i&&u?l.locale.value:E(o.locale)?o.locale:Y),f=e(i&&u?l.fallbackLocale.value:E(o.fallbackLocale)||k(o.fallbackLocale)||T(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:m.value),g=e(Ie(m.value,o)),p=e(T(o.datetimeFormats)?o.datetimeFormats:{[m.value]:{}}),v=e(T(o.numberFormats)?o.numberFormats:{[m.value]:{}}),b=i?l.missingWarn:!L(o.missingWarn)&&!_(o.missingWarn)||o.missingWarn,d=i?l.fallbackWarn:!L(o.fallbackWarn)&&!_(o.fallbackWarn)||o.fallbackWarn,h=i?l.fallbackRoot:!L(o.fallbackRoot)||o.fallbackRoot,N=!!o.fallbackFormat,F=y(o.missing)?o.missing:null,I=y(o.postTranslation)?o.postTranslation:null,R=i?l.warnHtmlMessage:!L(o.warnHtmlMessage)||o.warnHtmlMessage,W=!!o.escapeParameter,O=i?l.modifiers:T(o.modifiers)?o.modifiers:{},M=o.pluralRules||i&&l.pluralRules;function w(){return[m.value,f.value,g.value,p.value,v.value]}const D=t({get:()=>c.value?c.value.locale.value:m.value,set:e=>{c.value&&(c.value.locale.value=e),m.value=e}}),A=t({get:()=>c.value?c.value.fallbackLocale.value:f.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),f.value=e}}),C=t((()=>c.value?c.value.messages.value:g.value)),P=t((()=>p.value)),S=t((()=>v.value));function $(){return c.value?c.value.getPostTranslationHandler():I}function U(e){c.value&&c.value.setPostTranslationHandler(e)}function j(){return c.value?c.value.getMissingHandler():F}function V(e){c.value&&c.value.setMissingHandler(e)}function H(e){return w(),e()}function G(...e){return c.value?H((()=>Reflect.apply(c.value.t,null,[...e]))):H((()=>""))}function x(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""}function B(...e){return c.value?H((()=>Reflect.apply(c.value.d,null,[...e]))):H((()=>""))}function z(...e){return c.value?H((()=>Reflect.apply(c.value.n,null,[...e]))):H((()=>""))}function J(e){return c.value?c.value.tm(e):{}}function X(e,a){return!!c.value&&c.value.te(e,a)}function q(e){return c.value?c.value.getLocaleMessage(e):{}}function Z(e,a){c.value&&(c.value.setLocaleMessage(e,a),g.value[e]=a)}function K(e,a){c.value&&c.value.mergeLocaleMessage(e,a)}function Q(e){return c.value?c.value.getDateTimeFormat(e):{}}function ee(e,a){c.value&&(c.value.setDateTimeFormat(e,a),p.value[e]=a)}function ae(e,a){c.value&&c.value.mergeDateTimeFormat(e,a)}function te(e){return c.value?c.value.getNumberFormat(e):{}}function ne(e,a){c.value&&(c.value.setNumberFormat(e,a),v.value[e]=a)}function le(e,a){c.value&&c.value.mergeNumberFormat(e,a)}const re={get id(){return c.value?c.value.id:-1},locale:D,fallbackLocale:A,messages:C,datetimeFormats:P,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(g.value)},get modifiers(){return c.value?c.value.modifiers:O},get pluralRules(){return c.value?c.value.pluralRules:M},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:b},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:d},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:h},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:N},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:R},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:W},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:G,getPostTranslationHandler:$,setPostTranslationHandler:U,getMissingHandler:j,setMissingHandler:V,rt:x,d:B,n:z,tm:J,te:X,getLocaleMessage:q,setLocaleMessage:Z,mergeLocaleMessage:K,getDateTimeFormat:Q,setDateTimeFormat:ee,mergeDateTimeFormat:ae,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:le};function oe(e){e.locale.value=m.value,e.fallbackLocale.value=f.value,Object.keys(g.value).forEach((a=>{e.mergeLocaleMessage(a,g.value[a])})),Object.keys(p.value).forEach((a=>{e.mergeDateTimeFormat(a,p.value[a])})),Object.keys(v.value).forEach((a=>{e.mergeNumberFormat(a,v.value[a])})),e.escapeParameter=W,e.fallbackFormat=N,e.fallbackRoot=h,e.fallbackWarn=d,e.missingWarn=b,e.warnHtmlMessage=R}return r((()=>{if(null==a.proxy||null==a.proxy.$i18n)throw Error(be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=c.value=a.proxy.$i18n.__composer;"global"===n?(m.value=e.locale.value,f.value=e.fallbackLocale.value,g.value=e.messages.value,p.value=e.datetimeFormats.value,v.value=e.numberFormats.value):i&&oe(e)})),re}(l,f,u,n)}if("global"===f)return function(e,a,t){let n=N(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=Ie(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),N(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(N(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(u,n,m),u;if("parent"===f){let e=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[Le]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(c,l,n.__useComponent);return null==e&&(e=u),e}const p=c;let b=p.__getInstance(l);if(null==b){const e=v({},n);"__i18n"in m&&(e.__i18n=m.__i18n),u&&(e.__root=u),b=we(e,je),function(e,a,t){{const n=a.proxy;if(null==n)throw Error(be.UNEXPECTED_ERROR);const l=t[Ee];if(l===e)throw Error(be.UNEXPECTED_ERROR);n._i18n=l,n._i18n_bridge=!0,i&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let s=!1;r((()=>{n._i18n.subscribeDataChanging(n),s=!0}),a),o((()=>{s&&(n._i18n.unsubscribeDataChanging(n),s=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}),a)}}(p,l,b),p.__setInstance(l,b)}return b}const Be=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(be.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};z=function(e,a){if(!N(e))return null;let t=D.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=w(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!_()){if(r=M(t),i=W[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&D.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},J=H;export{Ue as DatetimeFormat,He as I18nInjectionKey,Se as NumberFormat,Ae as Translation,ge as VERSION,Be as castToVueI18n,Ge as createI18n,xe as useI18n};
import{ref as e,getCurrentInstance as a,computed as t,watch as n,h as l,onBeforeMount as r,onUnmounted as o,shallowRef as s}from"@vue/composition-api";const i="undefined"!=typeof window,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=e=>c?Symbol(e):e,m=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),f=e=>"number"==typeof e&&isFinite(e),_=e=>"[object RegExp]"===I(e),g=e=>T(e)&&0===Object.keys(e).length;function p(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const v=Object.assign;function b(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function h(e,a){return d.call(e,a)}const k=Array.isArray,y=e=>"function"==typeof e,E=e=>"string"==typeof e,L=e=>"boolean"==typeof e,N=e=>null!==e&&"object"==typeof e,F=Object.prototype.toString,I=e=>F.call(e),T=e=>"[object Object]"===I(e),R=15,W=[];W[0]={w:[0],i:[3,0],"[":[4],o:[7]},W[1]={w:[1],".":[2],"[":[4],o:[7]},W[2]={w:[2],i:[3,0],0:[3,0]},W[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},W[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},W[5]={"'":[4,0],o:8,l:[5,0]},W[6]={'"':[4,0],o:8,l:[6,0]};const O=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function w(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,O.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const D=new Map;function A(e,a){return N(e)?e[a]:null}const C=e=>e,P=e=>"",S=e=>0===e.length?"":e.join(""),$=e=>null==e?"":k(e)||T(e)&&e.toString===F?JSON.stringify(e,null,2):String(e);function U(e,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function j(e={}){const a=e.locale,t=function(e){const a=f(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(f(e.named.count)||f(e.named.n))?f(e.named.count)?e.named.count:f(e.named.n)?e.named.n:a:a}(e),n=N(e.pluralRules)&&E(a)&&y(e.pluralRules[a])?e.pluralRules[a]:U,l=N(e.pluralRules)&&E(a)&&y(e.pluralRules[a])?U:void 0,r=e.list||[],o=e.named||{};f(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,o);function s(a){const t=y(e.messages)?e.messages(a):!!N(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):P)}const i=T(e.processor)&&y(e.processor.normalize)?e.processor.normalize:S,c=T(e.processor)&&y(e.processor.interpolate)?e.processor.interpolate:$,u={list:e=>r[e],named:e=>o[e],plural:e=>e[n(t,e.length,l)],linked:(a,t)=>{const n=s(a)(u);return E(t)?(l=t,e.modifiers?e.modifiers[l]:C)(n):n;var l},message:s,type:T(e.processor)&&E(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return u}function V(e,a,t){return[...new Set([t,...k(a)?a:N(a)?Object.keys(a):E(a)?[a]:[t]])]}function H(e,a,t){const n=E(t)?t:Y,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;k(e);)e=G(r,e,a);const o=k(a)||!T(a)?a:a.default?a.default:null;e=E(o)?[o]:o,k(e)&&G(r,e,!1),l.__localeChainCache.set(n,r)}return r}function G(e,a,t){let n=!0;for(let l=0;l<a.length&&L(n);l++){const r=a[l];E(r)&&(n=x(e,a[l],t))}return n}function x(e,a,t){let n;const l=a.split("-");do{n=B(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function B(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(k(t)||T(t))&&t[l]&&(n=t[l])}return n}const Y="en-US";let z,J;let X=0;function q(e={}){const a=E(e.version)?e.version:"9.2.0-beta.34",t=E(e.locale)?e.locale:Y,n=k(e.fallbackLocale)||T(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=T(e.messages)?e.messages:{[t]:{}},r=T(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=T(e.numberFormats)?e.numberFormats:{[t]:{}},s=v({},e.modifiers||{},{upper:e=>E(e)?e.toUpperCase():e,lower:e=>E(e)?e.toLowerCase():e,capitalize:e=>E(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),i=e.pluralRules||{},c=y(e.missing)?e.missing:null,u=!L(e.missingWarn)&&!_(e.missingWarn)||e.missingWarn,m=!L(e.fallbackWarn)&&!_(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,g=!!e.unresolving,b=y(e.postTranslation)?e.postTranslation:null,d=T(e.processor)?e.processor:null,h=!L(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,I=y(e.messageCompiler)?e.messageCompiler:undefined,R=y(e.messageResolver)?e.messageResolver:z||A,W=y(e.localeFallbacker)?e.localeFallbacker:J||V,O=N(e.fallbackContext)?e.fallbackContext:void 0,M=y(e.onWarn)?e.onWarn:p,w=e,D=N(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,C=N(w.__numberFormatters)?w.__numberFormatters:new Map,P=N(w.__meta)?w.__meta:{};X++;const S={version:a,cid:X,locale:t,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:g,postTranslation:b,processor:d,warnHtmlMessage:h,escapeParameter:F,messageCompiler:I,messageResolver:R,localeFallbacker:W,fallbackContext:O,onWarn:M,__meta:P};return S.datetimeFormats=r,S.numberFormats=o,S.__datetimeFormatters=D,S.__numberFormatters=C,S}function Z(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return E(n)?n:a}return a}function K(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let Q=R;const ee=()=>++Q,ae={INVALID_ARGUMENT:Q,INVALID_DATE_ARGUMENT:ee(),INVALID_ISO_DATE_ARGUMENT:ee(),__EXTEND_POINT__:ee()},te=()=>"",ne=e=>y(e);function le(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:o,messages:s}=e,[i,c]=se(...a),u=L(c.missingWarn)?c.missingWarn:e.missingWarn,m=L(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,_=L(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,p=E(c.default)||L(c.default)?L(c.default)?r?i:()=>i:c.default:t?r?i:()=>i:"",v=t||""!==p,d=E(c.locale)?c.locale:e.locale;_&&function(e){k(e.list)?e.list=e.list.map((e=>E(e)?b(e):e)):N(e.named)&&Object.keys(e.named).forEach((a=>{E(e.named[a])&&(e.named[a]=b(e.named[a]))}))}(c);let[h,y,F]=g?[i,d,s[d]||{}]:re(e,i,d,o,m,u),I=h,T=i;if(g||E(I)||ne(I)||v&&(I=p,T=I),!(g||(E(I)||ne(I))&&E(y)))return l?-1:i;let R=!1;const W=ne(I)?I:oe(e,i,y,I,T,(()=>{R=!0}));if(R)return I;const O=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m=n=>{let l=o(t,n);if(null==l&&u){const[,,e]=re(u,n,a,s,i,c);l=o(e,n)}if(E(l)){let t=!1;const r=oe(e,n,a,l,n,(()=>{t=!0}));return t?te:r}return ne(l)?l:te},_={locale:a,modifiers:l,pluralRules:r,messages:m};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);f(n.plural)&&(_.pluralIndex=n.plural);return _}(e,y,F,c),M=function(e,a,t){return a(t)}(0,W,j(O));return n?n(M):M}function re(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},_=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(_=i(f,a))&&(_=f[a]),!E(_)&&!y(_));t++){const t=Z(e,a,m,0,"translate");t!==a&&(_=t)}return[_,m,f]}function oe(e,a,t,n,l,r){const{messageCompiler:o,warnHtmlMessage:s}=e;if(ne(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==o){const e=()=>n;return e.locale=t,e.key=a,e}const i=o(n,function(e,a,t,n,l,r){return{warnHtmlMessage:l,onError:e=>{throw r&&r(e),e},onCacheKey:e=>((e,a,t)=>m({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,s,r));return i.locale=t,i.key=a,i.source=n,i}function se(...e){const[a,t,n]=e,l={};if(!E(a)&&!f(a)&&!ne(a))throw Error(ae.INVALID_ARGUMENT);const r=f(a)?String(a):(ne(a),a);return f(t)?l.plural=t:E(t)?l.default=t:T(t)&&!g(t)?l.named=t:k(t)&&(l.list=t),f(n)?l.plural=n:E(n)?l.default=n:T(n)&&v(l,n),[r,l]}function ie(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=ce(...a);L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=E(u.locale)?u.locale:e.locale,p=o(e,l,_);if(!E(i)||""===i)return new Intl.DateTimeFormat(_).format(c);let b,d={},h=null;for(let a=0;a<p.length&&(b=p[a],d=t[b]||{},h=d[i],!T(h));a++)Z(e,i,b,0,"datetime format");if(!T(h)||!E(b))return n?-1:i;let k=`${b}__${i}`;g(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(b,v({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}function ce(...e){const[a,t,n,l]=e;let r,o={},s={};if(E(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ae.INVALID_ISO_DATE_ARGUMENT);const t=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();r=new Date(t);try{r.toISOString()}catch(e){throw Error(ae.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(a)){if(isNaN(a.getTime()))throw Error(ae.INVALID_DATE_ARGUMENT);r=a}else{if(!f(a))throw Error(ae.INVALID_ARGUMENT);r=a}return E(t)?o.key=t:T(t)&&(o=t),E(n)?o.locale=n:T(n)&&(s=n),T(l)&&(s=l),[o.key||"",r,o,s]}function ue(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function me(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=fe(...a);L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=E(u.locale)?u.locale:e.locale,p=o(e,l,_);if(!E(i)||""===i)return new Intl.NumberFormat(_).format(c);let b,d={},h=null;for(let a=0;a<p.length&&(b=p[a],d=t[b]||{},h=d[i],!T(h));a++)Z(e,i,b,0,"number format");if(!T(h)||!E(b))return n?-1:i;let k=`${b}__${i}`;g(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(b,v({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}function fe(...e){const[a,t,n,l]=e;let r={},o={};if(!f(a))throw Error(ae.INVALID_ARGUMENT);const s=a;return E(t)?r.key=t:T(t)&&(r=t),E(n)?r.locale=n:T(n)&&(o=n),T(l)&&(o=l),[r.key||"",s,r,o]}function _e(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const ge="9.2.0-beta.34";let pe=R;const ve=()=>++pe,be={UNEXPECTED_RETURN_TYPE:pe,INVALID_ARGUMENT:ve(),MUST_BE_CALL_SETUP_TOP:ve(),NOT_INSLALLED:ve(),NOT_AVAILABLE_IN_LEGACY_MODE:ve(),REQUIRED_VALUE:ve(),INVALID_VALUE:ve(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ve(),NOT_INSLALLED_WITH_PROVIDE:ve(),UNEXPECTED_ERROR:ve(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ve(),BRIDGE_SUPPORT_VUE_2_ONLY:ve(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ve(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ve(),__EXTEND_POINT__:ve()},de=u("__transrateVNode"),he=u("__datetimeParts"),ke=u("__numberParts"),ye=u("__setPluralRules"),Ee=u("__legacyVueI18n"),Le=u("__injectWithOption");function Ne(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Fe(e){if(!N(e))return e;for(const a in e)if(h(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],N(l[t[n]])&&Fe(l[t[n]])}else N(e[a])&&Fe(e[a]);return e}function Ie(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=T(t)?t:k(n)?{}:{[e]:{}};if(k(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Re(t,o[a])):Re(t,o)}else E(e)&&Re(JSON.parse(e),o)})),null==l&&r)for(const e in o)h(o,e)&&Fe(o[e]);return o}const Te=e=>!N(e)||k(e);function Re(e,a){if(Te(e)||Te(a))throw Error(be.INVALID_VALUE);for(const t in e)h(e,t)&&(Te(e[t])||Te(a[t])?a[t]=e[t]:Re(e[t],a[t]))}function We(e){return function(e){const a=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:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Oe=0;function Me(e){return(t,n,l,r)=>e(n,l,a()||void 0,r)}function we(a={},l){const{__root:r}=a,o=void 0===r;let s=!L(a.inheritLocale)||a.inheritLocale;const c=e(r&&s?r.locale.value:E(a.locale)?a.locale:Y),u=e(r&&s?r.fallbackLocale.value:E(a.fallbackLocale)||k(a.fallbackLocale)||T(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:c.value),m=e(Ie(c.value,a)),g=e(T(a.datetimeFormats)?a.datetimeFormats:{[c.value]:{}}),p=e(T(a.numberFormats)?a.numberFormats:{[c.value]:{}});let b=r?r.missingWarn:!L(a.missingWarn)&&!_(a.missingWarn)||a.missingWarn,d=r?r.fallbackWarn:!L(a.fallbackWarn)&&!_(a.fallbackWarn)||a.fallbackWarn,h=r?r.fallbackRoot:!L(a.fallbackRoot)||a.fallbackRoot,F=!!a.fallbackFormat,I=y(a.missing)?a.missing:null,R=y(a.missing)?Me(a.missing):null,W=y(a.postTranslation)?a.postTranslation:null,O=r?r.warnHtmlMessage:!L(a.warnHtmlMessage)||a.warnHtmlMessage,M=!!a.escapeParameter;const w=r?r.modifiers:T(a.modifiers)?a.modifiers:{};let D,A,C=a.pluralRules||r&&r.pluralRules;{Ne(l);const e={locale:c.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:g.value,numberFormats:p.value,modifiers:w,missing:I,fallbackRoot:h,postTranslation:W,pluralizationRules:C,escapeParameterHtml:M,sync:s,silentFallbackWarn:L(d)?!d:d,silentTranslationWarn:L(b)?!b:b,formatFallbackMessages:L(F)?!F:F,warnHtmlInMessage:L(O)&&O?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};D=new l(e)}A=function(){const e={version:"9.2.0-beta.34",locale:c.value,fallbackLocale:u.value,messages:m.value,modifiers:w,pluralRules:C,missing:null===R?void 0:R,missingWarn:b,fallbackWarn:d,fallbackFormat:F,unresolving:!0,postTranslation:null===W?void 0:W,warnHtmlMessage:O,escapeParameter:M,messageResolver:a.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=g.value,e.numberFormats=p.value,e.__datetimeFormatters=T(A)?A.__datetimeFormatters:void 0,e.__numberFormatters=T(A)?A.__numberFormatters:void 0,q(e)}(),K(A,c.value,u.value);const P=t({get:()=>c.value,set:e=>{c.value=e,D&&!o&&(D.locale=e),A.locale=c.value}}),S=t({get:()=>u.value,set:e=>{u.value=e,D&&!o&&(D.fallbackLocale=e),A.fallbackLocale=u.value,K(A,c.value,e)}}),$=t((()=>m.value)),U=t((()=>g.value)),j=t((()=>p.value));function V(e,a,t,n,l,o){let s;if(c.value,u.value,m.value,g.value,p.value,s=e(A),f(s)&&-1===s){const[e,t]=a();return r&&h?n(r):l(e)}if(o(s))return s;throw Error(be.UNEXPECTED_RETURN_TYPE)}function G(...e){return V((a=>Reflect.apply(le,null,[a,...e])),(()=>se(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>E(e)))}const x={normalize:function(e){return e.map((e=>E(e)?We(e):e))},interpolate:e=>e,type:"vnode"};function B(e){return m.value[e]||{}}Oe++,r&&i&&(n(r.locale,(e=>{s&&(c.value=e,D&&!o&&(D.locale=e),A.locale=e,K(A,c.value,u.value))})),n(r.fallbackLocale,(e=>{s&&(u.value=e,D&&!o&&(D.fallbackLocale=e),A.fallbackLocale=e,K(A,c.value,u.value))})));const z={id:Oe,locale:P,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,D&&(D._sync=e),e&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,D&&(D.locale=r.locale.value,D.fallbackLocale=r.fallbackLocale.value),K(A,c.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return w},get pluralRules(){return C||{}},get isGlobal(){return o},get missingWarn(){return b},set missingWarn(e){b=e,A.missingWarn=b},get fallbackWarn(){return d},set fallbackWarn(e){d=e,A.fallbackWarn=d},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return F},set fallbackFormat(e){F=e,A.fallbackFormat=F},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,A.warnHtmlMessage=e},get escapeParameter(){return M},set escapeParameter(e){M=e,A.escapeParameter=e},t:G,getLocaleMessage:B,setLocaleMessage:function(e,a){m.value[e]=a,D&&D.setLocaleMessage(e,a),A.messages=m.value},mergeLocaleMessage:function(e,a){m.value[e]=m.value[e]||{},D&&D.mergeLocaleMessage(e,a),Re(a,m.value[e]),A.messages=m.value},getPostTranslationHandler:function(){return y(W)?W:null},setPostTranslationHandler:function(e){W=e,A.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(R=Me(e)),I=e,A.missing=R},[ye]:function(e){C=e,A.pluralRules=C}};return z.datetimeFormats=U,z.numberFormats=j,z.rt=function(...e){const[a,t,n]=e;if(n&&!N(n))throw Error(be.INVALID_ARGUMENT);return G(a,t,v({resolvedMessage:!0},n||{}))},z.te=function(e,a){const t=B(E(a)?a:c.value);return null!==A.messageResolver(t,e)},z.tm=function(e){const a=function(e){let a=null;const t=H(A,u.value,c.value);for(let n=0;n<t.length;n++){const l=m.value[t[n]]||{},r=A.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:r&&r.tm(e)||{}},z.d=function(...e){return V((a=>Reflect.apply(ie,null,[a,...e])),(()=>ce(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>E(e)))},z.n=function(...e){return V((a=>Reflect.apply(me,null,[a,...e])),(()=>fe(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>E(e)))},z.getDateTimeFormat=function(e){return g.value[e]||{}},z.setDateTimeFormat=function(e,a){g.value[e]=a,D&&D.setDateTimeFormat(e,a),A.datetimeFormats=g.value,ue(A,e,a)},z.mergeDateTimeFormat=function(e,a){g.value[e]=v(g.value[e]||{},a),D&&D.mergeDateTimeFormat(e,a),A.datetimeFormats=g.value,ue(A,e,a)},z.getNumberFormat=function(e){return p.value[e]||{}},z.setNumberFormat=function(e,a){p.value[e]=a,D&&D.setNumberFormat(e,a),A.numberFormats=p.value,_e(A,e,a)},z.mergeNumberFormat=function(e,a){p.value[e]=v(p.value[e]||{},a),D&&D.mergeNumberFormat(e,a),A.numberFormats=p.value,_e(A,e,a)},z[Le]=a.__injectWithOption,z[de]=function(...e){return V((a=>{let t;const n=a;try{n.processor=x,t=Reflect.apply(le,null,[n,...e])}finally{n.processor=null}return t}),(()=>se(...e)),0,(a=>a[de](...e)),(e=>[We(e)]),(e=>k(e)))},z[he]=function(...e){return V((a=>Reflect.apply(ie,null,[a,...e])),(()=>ce(...e)),0,(a=>a[he](...e)),(()=>[]),(e=>E(e)||k(e)))},z[ke]=function(...e){return V((a=>Reflect.apply(me,null,[a,...e])),(()=>fe(...e)),0,(a=>a[ke](...e)),(()=>[]),(e=>E(e)||k(e)))},z[Ee]=D,z}const De={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Ae={name:"i18n-t",props:v({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>f(e)||!isNaN(e)}},De),setup(e,a){const{slots:t,attrs:n}=a,r=e.i18n||xe({useScope:e.scope,__useComponent:!0}),o=Object.keys(t).filter((e=>"_"!==e));return()=>{const t={};e.locale&&(t.locale=e.locale),void 0!==e.plural&&(t.plural=E(e.plural)?+e.plural:e.plural);const s=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...k(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(a,o),i=r[de](e.keypath,s,t),c=v({},n),u=E(e.tag)||N(e.tag)?e.tag:"span";return l(u,c,i)}}};function Ce(e,a,t,n){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),E(e.format)?a.key=e.format:N(e.format)&&(E(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((a,n)=>t.includes(n)?v({},a,{[n]:e.format[n]}):a),{}));const i=n(e.value,a,s);let c=[a.key];k(i)?c=i.map(((e,a)=>{const t=r[e.type],n=t?t({[e.type]:e.value,index:a,parts:i}):[e.value];var l;return k(l=n)&&!E(l[0])&&(n[0].key=`${e.type}-${a}`),n})):E(i)&&(c=[i]);const u=v({},o),m=E(e.tag)||N(e.tag)?e.tag:"span";return l(m,u,c)}}const Pe=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Se={name:"i18n-n",props:v({value:{type:Number,required:!0},format:{type:[String,Object]}},De),setup(e,a){const t=e.i18n||xe({useScope:"parent",__useComponent:!0});return Ce(e,a,Pe,((...e)=>t[ke](...e)))}},$e=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Ue={name:"i18n-d",props:v({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},De),setup(e,a){const t=e.i18n||xe({useScope:"parent",__useComponent:!0});return Ce(e,a,$e,((...e)=>t[he](...e)))}};let je=null,Ve=null;const He=u("global-vue-i18n");function Ge(e={},a){if(Ve)return Ve;je=a;const t=!L(e.legacy)||e.legacy,n=!L(e.globalInjection)||e.globalInjection,l=!t||!!e.allowComposition,r=new Map,o=function(e,a,t){if(!Ne(t))throw Error(be.NOT_COMPATIBLE_LEGACY_VUE_I18N);return we(e,t)}(e,0,a);u("");{const e=o[Ee];Object.defineProperty(e,"global",{get:()=>o}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>r}),Object.defineProperty(e,"install",{writable:!0,value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(be.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=T(a[0])?a[0]:{};(!L(t.globalInstall)||t.globalInstall)&&(e.component(Ae.name,Ae),e.component(Se.name,Se),e.component(Ue.name,Ue))}(a,...l),!t&&n&&function(e,a,t){a.watchLocale(t),e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])}}(a,e,o),a.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Re(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(T(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Re(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&T(n)&&Re(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||T(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(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 a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,je))}});const a={__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,a){r.set(e,a)},__deleteInstance:function(e){r.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),Ve=e,e}}function xe(n={}){const l=a();if(null==l)throw Error(be.MUST_BE_CALL_SETUP_TOP);if(null==je||null==Ve)throw Error(be.NOT_INSLALLED);const c=function(e){{const a=e.proxy;if(null==a)throw Error(be.UNEXPECTED_ERROR);let t=a._i18nBridgeRoot;if(t||(t=Ve),!t)throw Error(be.NOT_INSLALLED);return t}}(l),u=function(e){return e.global}(c),m=function(e){return e.proxy.$options}(l),f=function(e,a){return g(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(n,m);if("legacy"===c.mode&&!n.__useComponent){if(!c.allowComposition)throw Error(be.NOT_AVAILABLE_IN_LEGACY_MODE);return function(a,n,l,o={}){const i="local"===n,c=s(null);if(i&&a.proxy&&!a.proxy.$options.i18n)throw Error(be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!L(o.inheritLocale)||o.inheritLocale,m=e(i&&u?l.locale.value:E(o.locale)?o.locale:Y),f=e(i&&u?l.fallbackLocale.value:E(o.fallbackLocale)||k(o.fallbackLocale)||T(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:m.value),g=e(Ie(m.value,o)),p=e(T(o.datetimeFormats)?o.datetimeFormats:{[m.value]:{}}),v=e(T(o.numberFormats)?o.numberFormats:{[m.value]:{}}),b=i?l.missingWarn:!L(o.missingWarn)&&!_(o.missingWarn)||o.missingWarn,d=i?l.fallbackWarn:!L(o.fallbackWarn)&&!_(o.fallbackWarn)||o.fallbackWarn,h=i?l.fallbackRoot:!L(o.fallbackRoot)||o.fallbackRoot,N=!!o.fallbackFormat,F=y(o.missing)?o.missing:null,I=y(o.postTranslation)?o.postTranslation:null,R=i?l.warnHtmlMessage:!L(o.warnHtmlMessage)||o.warnHtmlMessage,W=!!o.escapeParameter,O=i?l.modifiers:T(o.modifiers)?o.modifiers:{},M=o.pluralRules||i&&l.pluralRules;function w(){return[m.value,f.value,g.value,p.value,v.value]}const D=t({get:()=>c.value?c.value.locale.value:m.value,set:e=>{c.value&&(c.value.locale.value=e),m.value=e}}),A=t({get:()=>c.value?c.value.fallbackLocale.value:f.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),f.value=e}}),C=t((()=>c.value?c.value.messages.value:g.value)),P=t((()=>p.value)),S=t((()=>v.value));function $(){return c.value?c.value.getPostTranslationHandler():I}function U(e){c.value&&c.value.setPostTranslationHandler(e)}function j(){return c.value?c.value.getMissingHandler():F}function V(e){c.value&&c.value.setMissingHandler(e)}function H(e){return w(),e()}function G(...e){return c.value?H((()=>Reflect.apply(c.value.t,null,[...e]))):H((()=>""))}function x(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""}function B(...e){return c.value?H((()=>Reflect.apply(c.value.d,null,[...e]))):H((()=>""))}function z(...e){return c.value?H((()=>Reflect.apply(c.value.n,null,[...e]))):H((()=>""))}function J(e){return c.value?c.value.tm(e):{}}function X(e,a){return!!c.value&&c.value.te(e,a)}function q(e){return c.value?c.value.getLocaleMessage(e):{}}function Z(e,a){c.value&&(c.value.setLocaleMessage(e,a),g.value[e]=a)}function K(e,a){c.value&&c.value.mergeLocaleMessage(e,a)}function Q(e){return c.value?c.value.getDateTimeFormat(e):{}}function ee(e,a){c.value&&(c.value.setDateTimeFormat(e,a),p.value[e]=a)}function ae(e,a){c.value&&c.value.mergeDateTimeFormat(e,a)}function te(e){return c.value?c.value.getNumberFormat(e):{}}function ne(e,a){c.value&&(c.value.setNumberFormat(e,a),v.value[e]=a)}function le(e,a){c.value&&c.value.mergeNumberFormat(e,a)}const re={get id(){return c.value?c.value.id:-1},locale:D,fallbackLocale:A,messages:C,datetimeFormats:P,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(g.value)},get modifiers(){return c.value?c.value.modifiers:O},get pluralRules(){return c.value?c.value.pluralRules:M},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:b},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:d},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:h},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:N},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:R},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:W},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:G,getPostTranslationHandler:$,setPostTranslationHandler:U,getMissingHandler:j,setMissingHandler:V,rt:x,d:B,n:z,tm:J,te:X,getLocaleMessage:q,setLocaleMessage:Z,mergeLocaleMessage:K,getDateTimeFormat:Q,setDateTimeFormat:ee,mergeDateTimeFormat:ae,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:le};function oe(e){e.locale.value=m.value,e.fallbackLocale.value=f.value,Object.keys(g.value).forEach((a=>{e.mergeLocaleMessage(a,g.value[a])})),Object.keys(p.value).forEach((a=>{e.mergeDateTimeFormat(a,p.value[a])})),Object.keys(v.value).forEach((a=>{e.mergeNumberFormat(a,v.value[a])})),e.escapeParameter=W,e.fallbackFormat=N,e.fallbackRoot=h,e.fallbackWarn=d,e.missingWarn=b,e.warnHtmlMessage=R}return r((()=>{if(null==a.proxy||null==a.proxy.$i18n)throw Error(be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=c.value=a.proxy.$i18n.__composer;"global"===n?(m.value=e.locale.value,f.value=e.fallbackLocale.value,g.value=e.messages.value,p.value=e.datetimeFormats.value,v.value=e.numberFormats.value):i&&oe(e)})),re}(l,f,u,n)}if("global"===f)return function(e,a,t){let n=N(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=Ie(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),N(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(N(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(u,n,m),u;if("parent"===f){let e=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[Le]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(c,l,n.__useComponent);return null==e&&(e=u),e}const p=c;let b=p.__getInstance(l);if(null==b){const e=v({},n);"__i18n"in m&&(e.__i18n=m.__i18n),u&&(e.__root=u),b=we(e,je),function(e,a,t){{const n=a.proxy;if(null==n)throw Error(be.UNEXPECTED_ERROR);const l=t[Ee];if(l===e)throw Error(be.UNEXPECTED_ERROR);n._i18n=l,n._i18n_bridge=!0,i&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let s=!1;r((()=>{n._i18n.subscribeDataChanging(n),s=!0}),a),o((()=>{s&&(n._i18n.unsubscribeDataChanging(n),s=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}),a)}}(p,l,b),p.__setInstance(l,b)}return b}const Be=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(be.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};z=function(e,a){if(!N(e))return null;let t=D.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=w(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!_()){if(r=M(t),i=W[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&D.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},J=H;export{Ue as DatetimeFormat,He as I18nInjectionKey,Se as NumberFormat,Ae as Translation,ge as VERSION,Be as castToVueI18n,Ge as createI18n,xe as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.33
* vue-i18n-bridge v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,a){"use strict";const t="undefined"!=typeof window,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=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),s=e=>"[object RegExp]"===k(e),i=e=>y(e)&&0===Object.keys(e).length;function c(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function g(e,a){return f.call(e,a)}const _=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),E=15,L=[];L[0]={w:[0],i:[3,0],"[":[4],o:[7]},L[1]={w:[1],".":[2],"[":[4],o:[7]},L[2]={w:[2],i:[3,0],0:[3,0]},L[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},L[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},L[5]={"'":[4,0],o:8,l:[5,0]},L[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 F(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,N.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const T=new Map;function R(e,a){return d(e)?e[a]:null}const O=e=>e,W=e=>"",M=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,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function C(e={}){const a=e.locale,t=function(e){const a=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:a:a}(e),n=d(e.pluralRules)&&v(a)&&p(e.pluralRules[a])?e.pluralRules[a]:D,l=d(e.pluralRules)&&v(a)&&p(e.pluralRules[a])?D:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,s);function i(a){const t=p(e.messages)?e.messages(a):!!d(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:M,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:w,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(t,e.length,l)],linked:(a,t)=>{const n=i(a)(m);return v(t)?(l=t,e.modifiers?e.modifiers[l]:O)(n):n;var l},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function A(e,a,t){return[...new Set([t,..._(a)?a:d(a)?Object.keys(a):v(a)?[a]:[t]])]}function P(e,a,t){const n=v(t)?t:j,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;_(e);)e=S(r,e,a);const o=_(a)||!y(a)?a:a.default?a.default:null;e=v(o)?[o]:o,_(e)&&S(r,e,!1),l.__localeChainCache.set(n,r)}return r}function S(e,a,t){let n=!0;for(let l=0;l<a.length&&b(n);l++){const r=a[l];v(r)&&(n=$(e,a[l],t))}return n}function $(e,a,t){let n;const l=a.split("-");do{n=U(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function U(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(_(t)||y(t))&&t[l]&&(n=t[l])}return n}const j="en-US";let V,H;let G=0;function x(e={}){const a=v(e.version)?e.version:"9.2.0-beta.33",t=v(e.locale)?e.locale:j,n=_(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=y(e.messages)?e.messages:{[t]:{}},r=y(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=y(e.numberFormats)?e.numberFormats:{[t]:{}},i=u({},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}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,g=!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,E=!!e.unresolving,L=p(e.postTranslation)?e.postTranslation:null,N=y(e.processor)?e.processor:null,I=!b(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,T=p(e.messageCompiler)?e.messageCompiler:undefined,O=p(e.messageResolver)?e.messageResolver:V||R,W=p(e.localeFallbacker)?e.localeFallbacker:H||A,M=d(e.fallbackContext)?e.fallbackContext:void 0,w=p(e.onWarn)?e.onWarn:c,D=e,C=d(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=d(D.__numberFormatters)?D.__numberFormatters:new Map,S=d(D.__meta)?D.__meta:{};G++;const $={version:a,cid:G,locale:t,fallbackLocale:n,messages:l,modifiers:i,pluralRules:m,missing:f,missingWarn:g,fallbackWarn:h,fallbackFormat:k,unresolving:E,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:F,messageCompiler:T,messageResolver:O,localeFallbacker:W,fallbackContext:M,onWarn:w,__meta:S};return $.datetimeFormats=r,$.numberFormats=o,$.__datetimeFormatters=C,$.__numberFormatters=P,$}function B(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return v(n)?n:a}return a}function Y(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let z=E;const J=()=>++z,X={INVALID_ARGUMENT:z,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},q=()=>"",K=e=>p(e);function Z(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=ae(...a),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,g=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=v(u.default)||b(u.default)?b(u.default)?r?c:()=>c:u.default:t?r?c:()=>c:"",y=t||""!==k,E=v(u.locale)?u.locale:e.locale;p&&function(e){_(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):d(e.named)&&Object.keys(e.named).forEach((a=>{v(e.named[a])&&(e.named[a]=m(e.named[a]))}))}(u);let[L,N,I]=h?[c,E,i[E]||{}]:Q(e,c,E,s,g,f),F=L,T=c;if(h||v(F)||K(F)||y&&(F=k,T=F),!(h||(v(F)||K(F))&&v(N)))return l?-1:c;let R=!1;const O=K(F)?F:ee(e,c,N,F,T,(()=>{R=!0}));if(R)return F;const W=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(t,n);if(null==l&&m){const[,,e]=Q(m,n,a,i,c,u);l=s(e,n)}if(v(l)){let t=!1;const r=ee(e,n,a,l,n,(()=>{t=!0}));return t?q:r}return K(l)?l:q},g={locale:a,modifiers:l,pluralRules:r,messages:f};e.processor&&(g.processor=e.processor);n.list&&(g.list=n.list);n.named&&(g.named=n.named);o(n.plural)&&(g.pluralIndex=n.plural);return g}(e,N,I,u),M=function(e,a,t){return a(t)}(0,O,C(W));return n?n(M):M}function Q(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},g=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(g=i(f,a))&&(g=f[a]),!v(g)&&!p(g));t++){const t=B(e,a,m,0,"translate");t!==a&&(g=t)}return[g,m,f]}function ee(e,a,t,n,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==s){const e=()=>n;return e.locale=t,e.key=a,e}const c=s(n,function(e,a,t,n,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,a,t)=>r({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,i,o));return c.locale=t,c.key=a,c.source=n,c}function ae(...e){const[a,t,n]=e,l={};if(!v(a)&&!o(a)&&!K(a))throw Error(X.INVALID_ARGUMENT);const r=o(a)?String(a):(K(a),a);return o(t)?l.plural=t:v(t)?l.default=t:y(t)&&!i(t)?l.named=t:_(t)&&(l.list=t),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function te(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,m,f,g]=ne(...a);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.DateTimeFormat(p).format(m);let h,k={},E=null;for(let a=0;a<d.length&&(h=d[a],k=t[h]||{},E=k[c],!y(E));a++)B(e,c,h,0,"datetime format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,u({},E,g)),s.set(L,N)),_?N.formatToParts(m):N.format(m)}function ne(...e){const[a,t,n,l]=e;let r,s={},i={};if(v(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(X.INVALID_ISO_DATE_ARGUMENT);const t=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();r=new Date(t);try{r.toISOString()}catch(e){throw Error(X.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(a)){if(isNaN(a.getTime()))throw Error(X.INVALID_DATE_ARGUMENT);r=a}else{if(!o(a))throw Error(X.INVALID_ARGUMENT);r=a}return v(t)?s.key=t:y(t)&&(s=t),v(n)?s.locale=n:y(n)&&(i=n),y(l)&&(i=l),[s.key||"",r,s,i]}function le(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function re(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,m,f,g]=oe(...a);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.NumberFormat(p).format(m);let h,k={},E=null;for(let a=0;a<d.length&&(h=d[a],k=t[h]||{},E=k[c],!y(E));a++)B(e,c,h,0,"number format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,u({},E,g)),s.set(L,N)),_?N.formatToParts(m):N.format(m)}function oe(...e){const[a,t,n,l]=e;let r={},s={};if(!o(a))throw Error(X.INVALID_ARGUMENT);const i=a;return v(t)?r.key=t:y(t)&&(r=t),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function se(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const ie="9.2.0-beta.33";let ce=E;const ue=()=>++ce,me={UNEXPECTED_RETURN_TYPE:ce,INVALID_ARGUMENT:ue(),MUST_BE_CALL_SETUP_TOP:ue(),NOT_INSLALLED:ue(),NOT_AVAILABLE_IN_LEGACY_MODE:ue(),REQUIRED_VALUE:ue(),INVALID_VALUE:ue(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ue(),NOT_INSLALLED_WITH_PROVIDE:ue(),UNEXPECTED_ERROR:ue(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ue(),BRIDGE_SUPPORT_VUE_2_ONLY:ue(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ue(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ue(),__EXTEND_POINT__:ue()},fe=l("__transrateVNode"),ge=l("__datetimeParts"),_e=l("__numberParts"),pe=l("__setPluralRules"),ve=l("__legacyVueI18n"),be=l("__injectWithOption"),de="__VUE_I18N_BRIDGE__";function he(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ke(e){if(!d(e))return e;for(const a in e)if(g(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],d(l[t[n]])&&ke(l[t[n]])}else d(e[a])&&ke(e[a]);return e}function ye(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=y(t)?t:_(n)?{}:{[e]:{}};if(_(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Le(t,o[a])):Le(t,o)}else v(e)&&Le(JSON.parse(e),o)})),null==l&&r)for(const e in o)g(o,e)&&ke(o[e]);return o}const Ee=e=>!d(e)||_(e);function Le(e,a){if(Ee(e)||Ee(a))throw Error(me.INVALID_VALUE);for(const t in e)g(e,t)&&(Ee(e[t])||Ee(a[t])?a[t]=e[t]:Le(e[t],a[t]))}function Ne(e){return function(e){const a=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:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Ie=0;function Fe(e){return(t,n,l,r)=>e(n,l,a.getCurrentInstance()||void 0,r)}function Te(e={},n){const{__root:l}=e,r=void 0===l;let i=!b(e.inheritLocale)||e.inheritLocale;const c=a.ref(l&&i?l.locale.value:v(e.locale)?e.locale:j),m=a.ref(l&&i?l.fallbackLocale.value:v(e.fallbackLocale)||_(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=a.ref(ye(c.value,e)),g=a.ref(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a.ref(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=l?l.missingWarn:!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,F=p(e.missing)?Fe(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const W=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let M,w,D=e.pluralRules||l&&l.pluralRules;{he(n);const e={locale:c.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:g.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:L,postTranslation:T,pluralizationRules:D,escapeParameterHtml:O,sync:i,silentFallbackWarn:b(E)?!E:E,silentTranslationWarn:b(k)?!k:k,formatFallbackMessages:b(N)?!N:N,warnHtmlInMessage:b(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:de};M=new n(e)}w=function(){const a={version:ie,locale:c.value,fallbackLocale:m.value,messages:f.value,modifiers:W,pluralRules:D,missing:null===F?void 0:F,missingWarn:k,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return a.datetimeFormats=g.value,a.numberFormats=h.value,a.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,a.__numberFormatters=y(w)?w.__numberFormatters:void 0,x(a)}(),Y(w,c.value,m.value);const C=a.computed({get:()=>c.value,set:e=>{c.value=e,M&&!r&&(M.locale=e),w.locale=c.value}}),A=a.computed({get:()=>m.value,set:e=>{m.value=e,M&&!r&&(M.fallbackLocale=e),w.fallbackLocale=m.value,Y(w,c.value,e)}}),S=a.computed((()=>f.value)),$=a.computed((()=>g.value)),U=a.computed((()=>h.value));function V(e,a,t,n,r,s){let i;if(c.value,m.value,f.value,g.value,h.value,i=e(w),o(i)&&-1===i){const[e,t]=a();return l&&L?n(l):r(e)}if(s(i))return i;throw Error(me.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((a=>Reflect.apply(Z,null,[a,...e])),(()=>ae(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>v(e)))}const G={normalize:function(e){return e.map((e=>v(e)?Ne(e):e))},interpolate:e=>e,type:"vnode"};function B(e){return f.value[e]||{}}Ie++,l&&t&&(a.watch(l.locale,(e=>{i&&(c.value=e,M&&!r&&(M.locale=e),w.locale=e,Y(w,c.value,m.value))})),a.watch(l.fallbackLocale,(e=>{i&&(m.value=e,M&&!r&&(M.fallbackLocale=e),w.fallbackLocale=e,Y(w,c.value,m.value))})));const z={id:Ie,locale:C,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(e){i=e,M&&(M._sync=e),e&&l&&(c.value=l.locale.value,m.value=l.fallbackLocale.value,M&&(M.locale=l.locale.value,M.fallbackLocale=l.fallbackLocale.value),Y(w,c.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return k},set missingWarn(e){k=e,w.missingWarn=k},get fallbackWarn(){return E},set fallbackWarn(e){E=e,w.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=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 O},set escapeParameter(e){O=e,w.escapeParameter=e},t:H,getLocaleMessage:B,setLocaleMessage:function(e,a){f.value[e]=a,M&&M.setLocaleMessage(e,a),w.messages=f.value},mergeLocaleMessage:function(e,a){f.value[e]=f.value[e]||{},M&&M.mergeLocaleMessage(e,a),Le(a,f.value[e]),w.messages=f.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&&(F=Fe(e)),I=e,w.missing=F},[pe]:function(e){D=e,w.pluralRules=D}};return z.datetimeFormats=$,z.numberFormats=U,z.rt=function(...e){const[a,t,n]=e;if(n&&!d(n))throw Error(me.INVALID_ARGUMENT);return H(a,t,u({resolvedMessage:!0},n||{}))},z.te=function(e,a){const t=B(v(a)?a:c.value);return null!==w.messageResolver(t,e)},z.tm=function(e){const a=function(e){let a=null;const t=P(w,m.value,c.value);for(let n=0;n<t.length;n++){const l=f.value[t[n]]||{},r=w.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:l&&l.tm(e)||{}},z.d=function(...e){return V((a=>Reflect.apply(te,null,[a,...e])),(()=>ne(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>v(e)))},z.n=function(...e){return V((a=>Reflect.apply(re,null,[a,...e])),(()=>oe(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>v(e)))},z.getDateTimeFormat=function(e){return g.value[e]||{}},z.setDateTimeFormat=function(e,a){g.value[e]=a,M&&M.setDateTimeFormat(e,a),w.datetimeFormats=g.value,le(w,e,a)},z.mergeDateTimeFormat=function(e,a){g.value[e]=u(g.value[e]||{},a),M&&M.mergeDateTimeFormat(e,a),w.datetimeFormats=g.value,le(w,e,a)},z.getNumberFormat=function(e){return h.value[e]||{}},z.setNumberFormat=function(e,a){h.value[e]=a,M&&M.setNumberFormat(e,a),w.numberFormats=h.value,se(w,e,a)},z.mergeNumberFormat=function(e,a){h.value[e]=u(h.value[e]||{},a),M&&M.mergeNumberFormat(e,a),w.numberFormats=h.value,se(w,e,a)},z[be]=e.__injectWithOption,z[fe]=function(...e){return V((a=>{let t;const n=a;try{n.processor=G,t=Reflect.apply(Z,null,[n,...e])}finally{n.processor=null}return t}),(()=>ae(...e)),0,(a=>a[fe](...e)),(e=>[Ne(e)]),(e=>_(e)))},z[ge]=function(...e){return V((a=>Reflect.apply(te,null,[a,...e])),(()=>ne(...e)),0,(a=>a[ge](...e)),(()=>[]),(e=>v(e)||_(e)))},z[_e]=function(...e){return V((a=>Reflect.apply(re,null,[a,...e])),(()=>oe(...e)),0,(a=>a[_e](...e)),(()=>[]),(e=>v(e)||_(e)))},z[ve]=M,z}const Re={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Oe={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Re),setup(e,t){const{slots:n,attrs:l}=t,r=e.i18n||$e({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=v(e.plural)?+e.plural:e.plural);const s=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,..._(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(t,o),i=r[fe](e.keypath,s,n),c=u({},l),m=v(e.tag)||d(e.tag)?e.tag:"span";return a.h(m,c,i)}}};function We(e,t,n,l){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:d(e.format)&&(v(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((a,t)=>n.includes(t)?u({},a,{[t]:e.format[t]}):a),{}));const i=l(e.value,t,s);let c=[t.key];_(i)?c=i.map(((e,a)=>{const t=r[e.type];return t?t({[e.type]:e.value,index:a,parts:i}):[e.value]})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||d(e.tag)?e.tag:"span";return a.h(f,m,c)}}const Me=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],we={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Re),setup(e,a){const t=e.i18n||$e({useScope:"parent",__useComponent:!0});return We(e,a,Me,((...e)=>t[_e](...e)))}},De=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Ce={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Re),setup(e,a){const t=e.i18n||$e({useScope:"parent",__useComponent:!0});return We(e,a,De,((...e)=>t[ge](...e)))}};let Ae=null,Pe=null;const Se=l("global-vue-i18n");function $e(e={}){const n=a.getCurrentInstance();if(null==n)throw Error(me.MUST_BE_CALL_SETUP_TOP);if(null==Ae||null==Pe)throw Error(me.NOT_INSLALLED);const l=function(e){{const a=e.proxy;if(null==a)throw Error(me.UNEXPECTED_ERROR);let t=a._i18nBridgeRoot;if(t||(t=Pe),!t)throw Error(me.NOT_INSLALLED);return t}}(n),r=function(e){return e.global}(l),o=function(e){return e.proxy.$options}(n),c=function(e,a){return i(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(me.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,l={}){const r="local"===t,o=a.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n)throw Error(me.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=!b(l.inheritLocale)||l.inheritLocale,c=a.ref(r&&i?n.locale.value:v(l.locale)?l.locale:j),u=a.ref(r&&i?n.fallbackLocale.value:v(l.fallbackLocale)||_(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=a.ref(ye(c.value,l)),f=a.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),g=a.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),d=r?n.missingWarn:!b(l.missingWarn)&&!s(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!b(l.fallbackWarn)&&!s(l.fallbackWarn)||l.fallbackWarn,k=r?n.fallbackRoot:!b(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,N=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!b(l.warnHtmlMessage)||l.warnHtmlMessage,F=!!l.escapeParameter,T=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){return[c.value,u.value,m.value,f.value,g.value]}const W=a.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),M=a.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=a.computed((()=>o.value?o.value.messages.value:m.value)),D=a.computed((()=>f.value)),C=a.computed((()=>g.value));function A(){return o.value?o.value.getPostTranslationHandler():N}function P(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():L}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function V(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function G(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function x(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function B(e){return o.value?o.value.tm(e):{}}function Y(e,a){return!!o.value&&o.value.te(e,a)}function z(e){return o.value?o.value.getLocaleMessage(e):{}}function J(e,a){o.value&&(o.value.setLocaleMessage(e,a),m.value[e]=a)}function X(e,a){o.value&&o.value.mergeLocaleMessage(e,a)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function K(e,a){o.value&&(o.value.setDateTimeFormat(e,a),f.value[e]=a)}function Z(e,a){o.value&&o.value.mergeDateTimeFormat(e,a)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,a){o.value&&(o.value.setNumberFormat(e,a),g.value[e]=a)}function ae(e,a){o.value&&o.value.mergeNumberFormat(e,a)}const te={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:M,messages:w,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:T},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:F},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:A,setPostTranslationHandler:P,getMissingHandler:S,setMissingHandler:$,rt:H,d:G,n:x,tm:B,te:Y,getLocaleMessage:z,setLocaleMessage:J,mergeLocaleMessage:X,getDateTimeFormat:q,setDateTimeFormat:K,mergeDateTimeFormat:Z,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:ae};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((a=>{e.mergeLocaleMessage(a,m.value[a])})),Object.keys(f.value).forEach((a=>{e.mergeDateTimeFormat(a,f.value[a])})),Object.keys(g.value).forEach((a=>{e.mergeNumberFormat(a,g.value[a])})),e.escapeParameter=F,e.fallbackFormat=E,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=d,e.warnHtmlMessage=I}return a.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(me.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=o.value=e.proxy.$i18n.__composer;"global"===t?(c.value=a.locale.value,u.value=a.fallbackLocale.value,m.value=a.messages.value,f.value=a.datetimeFormats.value,g.value=a.numberFormats.value):r&&ne(a)})),te}(n,c,r,e)}if("global"===c)return function(e,a,t){let n=d(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=ye(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),d(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(d(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(r,e,o),r;if("parent"===c){let a=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[be]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==a&&(a=r),a}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=Te(l,Ae),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(me.UNEXPECTED_ERROR);const o=l[ve];if(o===e)throw Error(me.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,t&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;a.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0}),n),a.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),n)}}(m,n,f),m.__setInstance(n,f)}return f}return V=function(e,a){if(!d(e))return null;let t=T.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function g(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=F(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!g()){if(r=I(t),i=L[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&T.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},H=P,e.DatetimeFormat=Ce,e.I18nInjectionKey=Se,e.NumberFormat=we,e.Translation=Oe,e.VERSION=ie,e.castToVueI18n=e=>{if(!(de in e))throw Error(me.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){if(Pe)return Pe;Ae=a;const t=!b(e.legacy)||e.legacy,n=!b(e.globalInjection)||e.globalInjection,r=!t||!!e.allowComposition,o=new Map,s=function(e,a,t){if(!he(t))throw Error(me.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Te(e,t)}(e,0,a);l("");{const e=s[ve];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(me.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=y(a[0])?a[0]:{};(!b(t.globalInstall)||t.globalInstall)&&(e.component(Oe.name,Oe),e.component(we.name,we),e.component(Ce.name,Ce))}(a,...l),!t&&n&&function(e,a,t){a.watchLocale(t),e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])}}(a,e,s),a.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Le(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Le(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&y(n)&&Le(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||y(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(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 a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,Ae))}});const a={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,a){o.set(e,a)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),Pe=e,e}},e.useI18n=$e,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
var VueI18nBridge=function(e,a){"use strict";const t="undefined"!=typeof window,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=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),s=e=>"[object RegExp]"===k(e),i=e=>y(e)&&0===Object.keys(e).length;function c(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function g(e,a){return f.call(e,a)}const _=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),E=15,L=[];L[0]={w:[0],i:[3,0],"[":[4],o:[7]},L[1]={w:[1],".":[2],"[":[4],o:[7]},L[2]={w:[2],i:[3,0],0:[3,0]},L[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},L[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},L[5]={"'":[4,0],o:8,l:[5,0]},L[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 F(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,N.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const T=new Map;function R(e,a){return d(e)?e[a]:null}const O=e=>e,W=e=>"",M=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,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function C(e={}){const a=e.locale,t=function(e){const a=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:a:a}(e),n=d(e.pluralRules)&&v(a)&&p(e.pluralRules[a])?e.pluralRules[a]:D,l=d(e.pluralRules)&&v(a)&&p(e.pluralRules[a])?D:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,s);function i(a){const t=p(e.messages)?e.messages(a):!!d(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:M,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:w,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(t,e.length,l)],linked:(a,t)=>{const n=i(a)(m);return v(t)?(l=t,e.modifiers?e.modifiers[l]:O)(n):n;var l},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function A(e,a,t){return[...new Set([t,..._(a)?a:d(a)?Object.keys(a):v(a)?[a]:[t]])]}function P(e,a,t){const n=v(t)?t:j,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;_(e);)e=S(r,e,a);const o=_(a)||!y(a)?a:a.default?a.default:null;e=v(o)?[o]:o,_(e)&&S(r,e,!1),l.__localeChainCache.set(n,r)}return r}function S(e,a,t){let n=!0;for(let l=0;l<a.length&&b(n);l++){const r=a[l];v(r)&&(n=$(e,a[l],t))}return n}function $(e,a,t){let n;const l=a.split("-");do{n=U(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function U(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(_(t)||y(t))&&t[l]&&(n=t[l])}return n}const j="en-US";let V,H;let G=0;function x(e={}){const a=v(e.version)?e.version:"9.2.0-beta.34",t=v(e.locale)?e.locale:j,n=_(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=y(e.messages)?e.messages:{[t]:{}},r=y(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=y(e.numberFormats)?e.numberFormats:{[t]:{}},i=u({},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}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,g=!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,E=!!e.unresolving,L=p(e.postTranslation)?e.postTranslation:null,N=y(e.processor)?e.processor:null,I=!b(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,T=p(e.messageCompiler)?e.messageCompiler:undefined,O=p(e.messageResolver)?e.messageResolver:V||R,W=p(e.localeFallbacker)?e.localeFallbacker:H||A,M=d(e.fallbackContext)?e.fallbackContext:void 0,w=p(e.onWarn)?e.onWarn:c,D=e,C=d(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=d(D.__numberFormatters)?D.__numberFormatters:new Map,S=d(D.__meta)?D.__meta:{};G++;const $={version:a,cid:G,locale:t,fallbackLocale:n,messages:l,modifiers:i,pluralRules:m,missing:f,missingWarn:g,fallbackWarn:h,fallbackFormat:k,unresolving:E,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:F,messageCompiler:T,messageResolver:O,localeFallbacker:W,fallbackContext:M,onWarn:w,__meta:S};return $.datetimeFormats=r,$.numberFormats=o,$.__datetimeFormatters=C,$.__numberFormatters=P,$}function B(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return v(n)?n:a}return a}function Y(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let z=E;const J=()=>++z,X={INVALID_ARGUMENT:z,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},q=()=>"",K=e=>p(e);function Z(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=ae(...a),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,g=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=v(u.default)||b(u.default)?b(u.default)?r?c:()=>c:u.default:t?r?c:()=>c:"",y=t||""!==k,E=v(u.locale)?u.locale:e.locale;p&&function(e){_(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):d(e.named)&&Object.keys(e.named).forEach((a=>{v(e.named[a])&&(e.named[a]=m(e.named[a]))}))}(u);let[L,N,I]=h?[c,E,i[E]||{}]:Q(e,c,E,s,g,f),F=L,T=c;if(h||v(F)||K(F)||y&&(F=k,T=F),!(h||(v(F)||K(F))&&v(N)))return l?-1:c;let R=!1;const O=K(F)?F:ee(e,c,N,F,T,(()=>{R=!0}));if(R)return F;const W=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(t,n);if(null==l&&m){const[,,e]=Q(m,n,a,i,c,u);l=s(e,n)}if(v(l)){let t=!1;const r=ee(e,n,a,l,n,(()=>{t=!0}));return t?q:r}return K(l)?l:q},g={locale:a,modifiers:l,pluralRules:r,messages:f};e.processor&&(g.processor=e.processor);n.list&&(g.list=n.list);n.named&&(g.named=n.named);o(n.plural)&&(g.pluralIndex=n.plural);return g}(e,N,I,u),M=function(e,a,t){return a(t)}(0,O,C(W));return n?n(M):M}function Q(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},g=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(g=i(f,a))&&(g=f[a]),!v(g)&&!p(g));t++){const t=B(e,a,m,0,"translate");t!==a&&(g=t)}return[g,m,f]}function ee(e,a,t,n,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==s){const e=()=>n;return e.locale=t,e.key=a,e}const c=s(n,function(e,a,t,n,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,a,t)=>r({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,i,o));return c.locale=t,c.key=a,c.source=n,c}function ae(...e){const[a,t,n]=e,l={};if(!v(a)&&!o(a)&&!K(a))throw Error(X.INVALID_ARGUMENT);const r=o(a)?String(a):(K(a),a);return o(t)?l.plural=t:v(t)?l.default=t:y(t)&&!i(t)?l.named=t:_(t)&&(l.list=t),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function te(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,m,f,g]=ne(...a);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.DateTimeFormat(p).format(m);let h,k={},E=null;for(let a=0;a<d.length&&(h=d[a],k=t[h]||{},E=k[c],!y(E));a++)B(e,c,h,0,"datetime format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,u({},E,g)),s.set(L,N)),_?N.formatToParts(m):N.format(m)}function ne(...e){const[a,t,n,l]=e;let r,s={},i={};if(v(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(X.INVALID_ISO_DATE_ARGUMENT);const t=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();r=new Date(t);try{r.toISOString()}catch(e){throw Error(X.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(a)){if(isNaN(a.getTime()))throw Error(X.INVALID_DATE_ARGUMENT);r=a}else{if(!o(a))throw Error(X.INVALID_ARGUMENT);r=a}return v(t)?s.key=t:y(t)&&(s=t),v(n)?s.locale=n:y(n)&&(i=n),y(l)&&(i=l),[s.key||"",r,s,i]}function le(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function re(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,m,f,g]=oe(...a);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const _=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.NumberFormat(p).format(m);let h,k={},E=null;for(let a=0;a<d.length&&(h=d[a],k=t[h]||{},E=k[c],!y(E));a++)B(e,c,h,0,"number format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(g)||(L=`${L}__${JSON.stringify(g)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,u({},E,g)),s.set(L,N)),_?N.formatToParts(m):N.format(m)}function oe(...e){const[a,t,n,l]=e;let r={},s={};if(!o(a))throw Error(X.INVALID_ARGUMENT);const i=a;return v(t)?r.key=t:y(t)&&(r=t),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function se(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const ie="9.2.0-beta.34";let ce=E;const ue=()=>++ce,me={UNEXPECTED_RETURN_TYPE:ce,INVALID_ARGUMENT:ue(),MUST_BE_CALL_SETUP_TOP:ue(),NOT_INSLALLED:ue(),NOT_AVAILABLE_IN_LEGACY_MODE:ue(),REQUIRED_VALUE:ue(),INVALID_VALUE:ue(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ue(),NOT_INSLALLED_WITH_PROVIDE:ue(),UNEXPECTED_ERROR:ue(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ue(),BRIDGE_SUPPORT_VUE_2_ONLY:ue(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ue(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ue(),__EXTEND_POINT__:ue()},fe=l("__transrateVNode"),ge=l("__datetimeParts"),_e=l("__numberParts"),pe=l("__setPluralRules"),ve=l("__legacyVueI18n"),be=l("__injectWithOption"),de="__VUE_I18N_BRIDGE__";function he(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ke(e){if(!d(e))return e;for(const a in e)if(g(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],d(l[t[n]])&&ke(l[t[n]])}else d(e[a])&&ke(e[a]);return e}function ye(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=y(t)?t:_(n)?{}:{[e]:{}};if(_(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Le(t,o[a])):Le(t,o)}else v(e)&&Le(JSON.parse(e),o)})),null==l&&r)for(const e in o)g(o,e)&&ke(o[e]);return o}const Ee=e=>!d(e)||_(e);function Le(e,a){if(Ee(e)||Ee(a))throw Error(me.INVALID_VALUE);for(const t in e)g(e,t)&&(Ee(e[t])||Ee(a[t])?a[t]=e[t]:Le(e[t],a[t]))}function Ne(e){return function(e){const a=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:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Ie=0;function Fe(e){return(t,n,l,r)=>e(n,l,a.getCurrentInstance()||void 0,r)}function Te(e={},n){const{__root:l}=e,r=void 0===l;let i=!b(e.inheritLocale)||e.inheritLocale;const c=a.ref(l&&i?l.locale.value:v(e.locale)?e.locale:j),m=a.ref(l&&i?l.fallbackLocale.value:v(e.fallbackLocale)||_(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=a.ref(ye(c.value,e)),g=a.ref(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a.ref(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=l?l.missingWarn:!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,F=p(e.missing)?Fe(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const W=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let M,w,D=e.pluralRules||l&&l.pluralRules;{he(n);const e={locale:c.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:g.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:L,postTranslation:T,pluralizationRules:D,escapeParameterHtml:O,sync:i,silentFallbackWarn:b(E)?!E:E,silentTranslationWarn:b(k)?!k:k,formatFallbackMessages:b(N)?!N:N,warnHtmlInMessage:b(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:de};M=new n(e)}w=function(){const a={version:ie,locale:c.value,fallbackLocale:m.value,messages:f.value,modifiers:W,pluralRules:D,missing:null===F?void 0:F,missingWarn:k,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return a.datetimeFormats=g.value,a.numberFormats=h.value,a.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,a.__numberFormatters=y(w)?w.__numberFormatters:void 0,x(a)}(),Y(w,c.value,m.value);const C=a.computed({get:()=>c.value,set:e=>{c.value=e,M&&!r&&(M.locale=e),w.locale=c.value}}),A=a.computed({get:()=>m.value,set:e=>{m.value=e,M&&!r&&(M.fallbackLocale=e),w.fallbackLocale=m.value,Y(w,c.value,e)}}),S=a.computed((()=>f.value)),$=a.computed((()=>g.value)),U=a.computed((()=>h.value));function V(e,a,t,n,r,s){let i;if(c.value,m.value,f.value,g.value,h.value,i=e(w),o(i)&&-1===i){const[e,t]=a();return l&&L?n(l):r(e)}if(s(i))return i;throw Error(me.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((a=>Reflect.apply(Z,null,[a,...e])),(()=>ae(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>v(e)))}const G={normalize:function(e){return e.map((e=>v(e)?Ne(e):e))},interpolate:e=>e,type:"vnode"};function B(e){return f.value[e]||{}}Ie++,l&&t&&(a.watch(l.locale,(e=>{i&&(c.value=e,M&&!r&&(M.locale=e),w.locale=e,Y(w,c.value,m.value))})),a.watch(l.fallbackLocale,(e=>{i&&(m.value=e,M&&!r&&(M.fallbackLocale=e),w.fallbackLocale=e,Y(w,c.value,m.value))})));const z={id:Ie,locale:C,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(e){i=e,M&&(M._sync=e),e&&l&&(c.value=l.locale.value,m.value=l.fallbackLocale.value,M&&(M.locale=l.locale.value,M.fallbackLocale=l.fallbackLocale.value),Y(w,c.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return k},set missingWarn(e){k=e,w.missingWarn=k},get fallbackWarn(){return E},set fallbackWarn(e){E=e,w.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=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 O},set escapeParameter(e){O=e,w.escapeParameter=e},t:H,getLocaleMessage:B,setLocaleMessage:function(e,a){f.value[e]=a,M&&M.setLocaleMessage(e,a),w.messages=f.value},mergeLocaleMessage:function(e,a){f.value[e]=f.value[e]||{},M&&M.mergeLocaleMessage(e,a),Le(a,f.value[e]),w.messages=f.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&&(F=Fe(e)),I=e,w.missing=F},[pe]:function(e){D=e,w.pluralRules=D}};return z.datetimeFormats=$,z.numberFormats=U,z.rt=function(...e){const[a,t,n]=e;if(n&&!d(n))throw Error(me.INVALID_ARGUMENT);return H(a,t,u({resolvedMessage:!0},n||{}))},z.te=function(e,a){const t=B(v(a)?a:c.value);return null!==w.messageResolver(t,e)},z.tm=function(e){const a=function(e){let a=null;const t=P(w,m.value,c.value);for(let n=0;n<t.length;n++){const l=f.value[t[n]]||{},r=w.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:l&&l.tm(e)||{}},z.d=function(...e){return V((a=>Reflect.apply(te,null,[a,...e])),(()=>ne(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>v(e)))},z.n=function(...e){return V((a=>Reflect.apply(re,null,[a,...e])),(()=>oe(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>v(e)))},z.getDateTimeFormat=function(e){return g.value[e]||{}},z.setDateTimeFormat=function(e,a){g.value[e]=a,M&&M.setDateTimeFormat(e,a),w.datetimeFormats=g.value,le(w,e,a)},z.mergeDateTimeFormat=function(e,a){g.value[e]=u(g.value[e]||{},a),M&&M.mergeDateTimeFormat(e,a),w.datetimeFormats=g.value,le(w,e,a)},z.getNumberFormat=function(e){return h.value[e]||{}},z.setNumberFormat=function(e,a){h.value[e]=a,M&&M.setNumberFormat(e,a),w.numberFormats=h.value,se(w,e,a)},z.mergeNumberFormat=function(e,a){h.value[e]=u(h.value[e]||{},a),M&&M.mergeNumberFormat(e,a),w.numberFormats=h.value,se(w,e,a)},z[be]=e.__injectWithOption,z[fe]=function(...e){return V((a=>{let t;const n=a;try{n.processor=G,t=Reflect.apply(Z,null,[n,...e])}finally{n.processor=null}return t}),(()=>ae(...e)),0,(a=>a[fe](...e)),(e=>[Ne(e)]),(e=>_(e)))},z[ge]=function(...e){return V((a=>Reflect.apply(te,null,[a,...e])),(()=>ne(...e)),0,(a=>a[ge](...e)),(()=>[]),(e=>v(e)||_(e)))},z[_e]=function(...e){return V((a=>Reflect.apply(re,null,[a,...e])),(()=>oe(...e)),0,(a=>a[_e](...e)),(()=>[]),(e=>v(e)||_(e)))},z[ve]=M,z}const Re={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Oe={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Re),setup(e,t){const{slots:n,attrs:l}=t,r=e.i18n||$e({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=v(e.plural)?+e.plural:e.plural);const s=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,..._(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(t,o),i=r[fe](e.keypath,s,n),c=u({},l),m=v(e.tag)||d(e.tag)?e.tag:"span";return a.h(m,c,i)}}};function We(e,t,n,l){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:d(e.format)&&(v(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((a,t)=>n.includes(t)?u({},a,{[t]:e.format[t]}):a),{}));const i=l(e.value,t,s);let c=[t.key];_(i)?c=i.map(((e,a)=>{const t=r[e.type],n=t?t({[e.type]:e.value,index:a,parts:i}):[e.value];var l;return _(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${a}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||d(e.tag)?e.tag:"span";return a.h(f,m,c)}}const Me=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],we={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Re),setup(e,a){const t=e.i18n||$e({useScope:"parent",__useComponent:!0});return We(e,a,Me,((...e)=>t[_e](...e)))}},De=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Ce={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Re),setup(e,a){const t=e.i18n||$e({useScope:"parent",__useComponent:!0});return We(e,a,De,((...e)=>t[ge](...e)))}};let Ae=null,Pe=null;const Se=l("global-vue-i18n");function $e(e={}){const n=a.getCurrentInstance();if(null==n)throw Error(me.MUST_BE_CALL_SETUP_TOP);if(null==Ae||null==Pe)throw Error(me.NOT_INSLALLED);const l=function(e){{const a=e.proxy;if(null==a)throw Error(me.UNEXPECTED_ERROR);let t=a._i18nBridgeRoot;if(t||(t=Pe),!t)throw Error(me.NOT_INSLALLED);return t}}(n),r=function(e){return e.global}(l),o=function(e){return e.proxy.$options}(n),c=function(e,a){return i(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(me.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,l={}){const r="local"===t,o=a.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n)throw Error(me.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=!b(l.inheritLocale)||l.inheritLocale,c=a.ref(r&&i?n.locale.value:v(l.locale)?l.locale:j),u=a.ref(r&&i?n.fallbackLocale.value:v(l.fallbackLocale)||_(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=a.ref(ye(c.value,l)),f=a.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),g=a.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),d=r?n.missingWarn:!b(l.missingWarn)&&!s(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!b(l.fallbackWarn)&&!s(l.fallbackWarn)||l.fallbackWarn,k=r?n.fallbackRoot:!b(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,N=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!b(l.warnHtmlMessage)||l.warnHtmlMessage,F=!!l.escapeParameter,T=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){return[c.value,u.value,m.value,f.value,g.value]}const W=a.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),M=a.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),w=a.computed((()=>o.value?o.value.messages.value:m.value)),D=a.computed((()=>f.value)),C=a.computed((()=>g.value));function A(){return o.value?o.value.getPostTranslationHandler():N}function P(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():L}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function V(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function G(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function x(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function B(e){return o.value?o.value.tm(e):{}}function Y(e,a){return!!o.value&&o.value.te(e,a)}function z(e){return o.value?o.value.getLocaleMessage(e):{}}function J(e,a){o.value&&(o.value.setLocaleMessage(e,a),m.value[e]=a)}function X(e,a){o.value&&o.value.mergeLocaleMessage(e,a)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function K(e,a){o.value&&(o.value.setDateTimeFormat(e,a),f.value[e]=a)}function Z(e,a){o.value&&o.value.mergeDateTimeFormat(e,a)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,a){o.value&&(o.value.setNumberFormat(e,a),g.value[e]=a)}function ae(e,a){o.value&&o.value.mergeNumberFormat(e,a)}const te={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:M,messages:w,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:T},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:F},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:A,setPostTranslationHandler:P,getMissingHandler:S,setMissingHandler:$,rt:H,d:G,n:x,tm:B,te:Y,getLocaleMessage:z,setLocaleMessage:J,mergeLocaleMessage:X,getDateTimeFormat:q,setDateTimeFormat:K,mergeDateTimeFormat:Z,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:ae};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((a=>{e.mergeLocaleMessage(a,m.value[a])})),Object.keys(f.value).forEach((a=>{e.mergeDateTimeFormat(a,f.value[a])})),Object.keys(g.value).forEach((a=>{e.mergeNumberFormat(a,g.value[a])})),e.escapeParameter=F,e.fallbackFormat=E,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=d,e.warnHtmlMessage=I}return a.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(me.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=o.value=e.proxy.$i18n.__composer;"global"===t?(c.value=a.locale.value,u.value=a.fallbackLocale.value,m.value=a.messages.value,f.value=a.datetimeFormats.value,g.value=a.numberFormats.value):r&&ne(a)})),te}(n,c,r,e)}if("global"===c)return function(e,a,t){let n=d(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=ye(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),d(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(d(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(r,e,o),r;if("parent"===c){let a=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[be]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==a&&(a=r),a}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=Te(l,Ae),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(me.UNEXPECTED_ERROR);const o=l[ve];if(o===e)throw Error(me.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,t&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;a.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0}),n),a.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}),n)}}(m,n,f),m.__setInstance(n,f)}return f}return V=function(e,a){if(!d(e))return null;let t=T.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function g(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=F(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!g()){if(r=I(t),i=L[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&T.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},H=P,e.DatetimeFormat=Ce,e.I18nInjectionKey=Se,e.NumberFormat=we,e.Translation=Oe,e.VERSION=ie,e.castToVueI18n=e=>{if(!(de in e))throw Error(me.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){if(Pe)return Pe;Ae=a;const t=!b(e.legacy)||e.legacy,n=!b(e.globalInjection)||e.globalInjection,r=!t||!!e.allowComposition,o=new Map,s=function(e,a,t){if(!he(t))throw Error(me.NOT_COMPATIBLE_LEGACY_VUE_I18N);return Te(e,t)}(e,0,a);l("");{const e=s[ve];Object.defineProperty(e,"global",{get:()=>s}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>r}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(me.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=y(a[0])?a[0]:{};(!b(t.globalInstall)||t.globalInstall)&&(e.component(Oe.name,Oe),e.component(we.name,we),e.component(Ce.name,Ce))}(a,...l),!t&&n&&function(e,a,t){a.watchLocale(t),e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])}}(a,e,s),a.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Le(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Le(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&y(n)&&Le(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||y(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(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 a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,Ae))}});const a={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,a){o.set(e,a)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),Pe=e,e}},e.useI18n=$e,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueCompositionAPI);
{
"name": "vue-i18n-bridge",
"version": "9.2.0-beta.33",
"version": "9.2.0-beta.34",
"description": "A bridge for Vue I18n Legacy",

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

"dependencies": {
"@intlify/core-base": "9.2.0-beta.33",
"@intlify/shared": "9.2.0-beta.33",
"@intlify/vue-devtools": "9.2.0-beta.33",
"@intlify/core-base": "9.2.0-beta.34",
"@intlify/shared": "9.2.0-beta.34",
"@intlify/vue-devtools": "9.2.0-beta.34",
"@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.33"
"@intlify/devtools-if": "9.2.0-beta.34"
},

@@ -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

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