simple-web-lib 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/lib/simple-web-lib.js +23 -0
- package/lib/style.css +1 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Simple Web Library
|
|
2
|
+
|
|
3
|
+
一个简单的组件库示例,用于演示如何构建一个具有国际化支持的 Vue 3 组件库,并使用 VitePress 编写文档。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
|
|
7
|
+
- **Vue 3 支持**: 使用 Composition API 和最新的 Vue 3 特性
|
|
8
|
+
- **国际化**: 基于 vue-i18n 的完整国际化支持
|
|
9
|
+
- **VitePress 文档**: 使用 VitePress 构建美观的文档站点
|
|
10
|
+
- **TypeScript**: 完整的 TypeScript 支持
|
|
11
|
+
- **按需加载**: 支持按需加载组件
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install simple-web-lib
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 使用
|
|
20
|
+
|
|
21
|
+
### 完整引入
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
import { createApp } from 'vue'
|
|
25
|
+
import SimpleWebLib from 'simple-web-lib'
|
|
26
|
+
import 'simple-web-lib/dist/style.css'
|
|
27
|
+
|
|
28
|
+
import App from './App.vue'
|
|
29
|
+
|
|
30
|
+
const app = createApp(App)
|
|
31
|
+
|
|
32
|
+
app.use(SimpleWebLib)
|
|
33
|
+
app.mount('#app')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 按需引入
|
|
37
|
+
|
|
38
|
+
```javascript
|
|
39
|
+
import { createApp } from 'vue'
|
|
40
|
+
import { SimpleButton, SimpleCard } from 'simple-web-lib'
|
|
41
|
+
import 'simple-web-lib/dist/style.css'
|
|
42
|
+
|
|
43
|
+
import App from './App.vue'
|
|
44
|
+
|
|
45
|
+
const app = createApp(App)
|
|
46
|
+
|
|
47
|
+
// 分别安装组件
|
|
48
|
+
app.use(SimpleButton)
|
|
49
|
+
app.use(SimpleCard)
|
|
50
|
+
|
|
51
|
+
app.mount('#app')
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 开发
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# 安装依赖
|
|
58
|
+
npm install
|
|
59
|
+
|
|
60
|
+
# 启动文档站点
|
|
61
|
+
npm run docs:dev
|
|
62
|
+
|
|
63
|
+
# 构建文档
|
|
64
|
+
npm run docs:build
|
|
65
|
+
|
|
66
|
+
# 构建组件库
|
|
67
|
+
npm run lib:build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 许可证
|
|
71
|
+
|
|
72
|
+
MIT
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(function(ge,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],D):(ge=typeof globalThis<"u"?globalThis:ge||self,D(ge.SimpleWebLib={},ge.Vue))})(this,function(ge,D){"use strict";const Ur={name:"SimpleButton"},wr=D.defineComponent({...Ur,setup(e){const t=D.ref(0),n=()=>{t.value++};return(a,s)=>(D.openBlock(),D.createElementBlock("button",{class:"simple-button",onClick:n},D.toDisplayString(a.$t("simpleButton.clickMe"))+" ("+D.toDisplayString(t.value)+") ",1))}}),zt=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},en=zt(wr,[["__scopeId","data-v-916874a8"]]);function Vr(e){e.component(en.name||"SimpleButton",en)}const tn={install:Vr},$r={class:"simple-card"},Wr={class:"simple-card__header"},Gr={class:"simple-card__body"},Hr={name:"SimpleCard"},xr=D.defineComponent({...Hr,setup(e){return(t,n)=>(D.openBlock(),D.createElementBlock("div",$r,[D.createElementVNode("div",Wr,[D.createElementVNode("h3",null,D.toDisplayString(t.$t("simpleCard.title")),1)]),D.createElementVNode("div",Gr,[D.createElementVNode("p",null,D.toDisplayString(t.$t("simpleCard.content")),1),D.renderSlot(t.$slots,"default",{},void 0,!0)])]))}}),nn=zt(xr,[["__scopeId","data-v-df720db0"]]);function Yr(e){e.component(nn.name||"SimpleCard",nn)}const rn={install:Yr};/*!
|
|
2
|
+
* shared v9.14.5
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/function z(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const an={};function sn(e){an[e]||(an[e]=!0,z(e))}const me=typeof window<"u";let ie,Pe;if(process.env.NODE_ENV!=="production"){const e=me&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ie=t=>{e.mark(t)},Pe=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const Br=/\{([0-9a-zA-Z]+)\}/g;function At(e,...t){return t.length===1&&$(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Br,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const pe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),jr=(e,t,n)=>Kr({l:e,k:t,s:n}),Kr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),q=e=>typeof e=="number"&&isFinite(e),Xr=e=>fn(e)==="[object Date]",be=e=>fn(e)==="[object RegExp]",mt=e=>U(e)&&Object.keys(e).length===0,ne=Object.assign,Jr=Object.create,Y=(e=null)=>Jr(e);let ln;const Oe=()=>ln||(ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Y());function on(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function cn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Qr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(a,s,r)=>`${s}="${cn(r)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(a,s,r)=>`${s}='${cn(r)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&z("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(a=>{e=e.replace(a,"$1javascript:")}),e}const qr=Object.prototype.hasOwnProperty;function de(e,t){return qr.call(e,t)}const K=Array.isArray,B=e=>typeof e=="function",v=e=>typeof e=="string",w=e=>typeof e=="boolean",$=e=>e!==null&&typeof e=="object",Zr=e=>$(e)&&B(e.then)&&B(e.catch),un=Object.prototype.toString,fn=e=>un.call(e),U=e=>{if(!$(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},zr=e=>e==null?"":K(e)||U(e)&&e.toString===un?JSON.stringify(e,null,2):String(e);function ea(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const _n=2;function ta(e,t=0,n=e.length){const a=e.split(/\r?\n/);let s=0;const r=[];for(let l=0;l<a.length;l++)if(s+=a[l].length+1,s>=t){for(let o=l-_n;o<=l+_n||n>s;o++){if(o<0||o>=a.length)continue;const u=o+1;r.push(`${u}${" ".repeat(3-String(u).length)}| ${a[o]}`);const _=a[o].length;if(o===l){const N=t-(s-_)+1,T=Math.max(1,n>s?_-N:n-t);r.push(" | "+" ".repeat(N)+"^".repeat(T))}else if(o>l){if(n>s){const N=Math.max(Math.min(n-s,_),1);r.push(" | "+"^".repeat(N))}s+=_+1}}break}return r.join(`
|
|
6
|
+
`)}function dt(e){let t=e;return()=>++t}function Ct(){const e=new Map;return{events:e,on(n,a){const s=e.get(n);s&&s.push(a)||e.set(n,[a])},off(n,a){const s=e.get(n);s&&s.splice(s.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(s=>s(a)),(e.get("*")||[]).slice().map(s=>s(n,a))}}}const Et=e=>!$(e)||K(e);function gt(e,t){if(Et(e)||Et(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:s}=n.pop();Object.keys(a).forEach(r=>{r!=="__proto__"&&($(a[r])&&!$(s[r])&&(s[r]=Array.isArray(a[r])?[]:Y()),Et(s[r])||Et(a[r])?s[r]=a[r]:n.push({src:a[r],des:s[r]}))})}}/*!
|
|
7
|
+
* message-compiler v9.14.5
|
|
8
|
+
* (c) 2025 kazuya kawaguchi
|
|
9
|
+
* Released under the MIT License.
|
|
10
|
+
*/function na(e,t,n){return{line:e,column:t,offset:n}}function pt(e,t,n){return{start:e,end:t}}const ra=/\{([0-9a-zA-Z]+)\}/g;function mn(e,...t){return t.length===1&&aa(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ra,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const dn=Object.assign,En=e=>typeof e=="string",aa=e=>e!==null&&typeof e=="object";function gn(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const Nt={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},sa={[Nt.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function la(e,t,...n){const a=mn(sa[e],...n||[]),s={message:String(a),code:e};return t&&(s.location=t),s}const F={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},oa={[F.EXPECTED_TOKEN]:"Expected token: '{0}'",[F.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[F.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[F.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[F.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[F.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[F.EMPTY_PLACEHOLDER]:"Empty placeholder",[F.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[F.INVALID_LINKED_FORMAT]:"Invalid linked format",[F.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[F.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[F.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[F.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[F.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[F.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Fe(e,t,n={}){const{domain:a,messages:s,args:r}=n,l=mn((s||oa)[e]||"",...r||[]),o=new SyntaxError(String(l));return o.code=e,t&&(o.location=t),o.domain=a,o}function ia(e){throw e}const ca=/<\/?[\w\s="/.':;#-\/]+>/,ua=e=>ca.test(e),Le=" ",fa="\r",ae=`
|
|
11
|
+
`,_a="\u2028",ma="\u2029";function da(e){const t=e;let n=0,a=1,s=1,r=0;const l=I=>t[I]===fa&&t[I+1]===ae,o=I=>t[I]===ae,u=I=>t[I]===ma,_=I=>t[I]===_a,N=I=>l(I)||o(I)||u(I)||_(I),T=()=>n,d=()=>a,A=()=>s,R=()=>r,P=I=>l(I)||u(I)||_(I)?ae:t[I],S=()=>P(n),M=()=>P(n+r);function k(){return r=0,N(n)&&(a++,s=0),l(n)&&n++,n++,s++,t[n]}function f(){return l(n+r)&&r++,r++,t[n+r]}function E(){n=0,a=1,s=1,r=0}function L(I=0){r=I}function g(){const I=n+r;for(;I!==n;)k();r=0}return{index:T,line:d,column:A,peekOffset:R,charAt:P,currentChar:S,currentPeek:M,next:k,peek:f,reset:E,resetPeek:L,skipToPeek:g}}const he=void 0,Ea=".",pn="'",ga="tokenizer";function pa(e,t={}){const n=t.location!==!1,a=da(e),s=()=>a.index(),r=()=>na(a.line(),a.column(),a.index()),l=r(),o=s(),u={currentType:14,offset:o,startLoc:l,endLoc:l,lastType:14,lastOffset:o,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},_=()=>u,{onError:N}=t;function T(i,c,p,...y){const Q=_();if(c.column+=p,c.offset+=p,N){const j=n?pt(Q.startLoc,c):null,x=Fe(i,j,{domain:ga,args:y});N(x)}}function d(i,c,p){i.endLoc=r(),i.currentType=c;const y={type:c};return n&&(y.loc=pt(i.startLoc,i.endLoc)),p!=null&&(y.value=p),y}const A=i=>d(i,14);function R(i,c){return i.currentChar()===c?(i.next(),c):(T(F.EXPECTED_TOKEN,r(),0,c),"")}function P(i){let c="";for(;i.currentPeek()===Le||i.currentPeek()===ae;)c+=i.currentPeek(),i.peek();return c}function S(i){const c=P(i);return i.skipToPeek(),c}function M(i){if(i===he)return!1;const c=i.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(i){if(i===he)return!1;const c=i.charCodeAt(0);return c>=48&&c<=57}function f(i,c){const{currentType:p}=c;if(p!==2)return!1;P(i);const y=M(i.currentPeek());return i.resetPeek(),y}function E(i,c){const{currentType:p}=c;if(p!==2)return!1;P(i);const y=i.currentPeek()==="-"?i.peek():i.currentPeek(),Q=k(y);return i.resetPeek(),Q}function L(i,c){const{currentType:p}=c;if(p!==2)return!1;P(i);const y=i.currentPeek()===pn;return i.resetPeek(),y}function g(i,c){const{currentType:p}=c;if(p!==8)return!1;P(i);const y=i.currentPeek()===".";return i.resetPeek(),y}function I(i,c){const{currentType:p}=c;if(p!==9)return!1;P(i);const y=M(i.currentPeek());return i.resetPeek(),y}function C(i,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;P(i);const y=i.currentPeek()===":";return i.resetPeek(),y}function b(i,c){const{currentType:p}=c;if(p!==10)return!1;const y=()=>{const j=i.currentPeek();return j==="{"?M(i.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Le||!j?!1:j===ae?(i.peek(),y()):V(i,!1)},Q=y();return i.resetPeek(),Q}function X(i){P(i);const c=i.currentPeek()==="|";return i.resetPeek(),c}function ce(i){const c=P(i),p=i.currentPeek()==="%"&&i.peek()==="{";return i.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function V(i,c=!0){const p=(Q=!1,j="",x=!1)=>{const m=i.currentPeek();return m==="{"?j==="%"?!1:Q:m==="@"||!m?j==="%"?!0:Q:m==="%"?(i.peek(),p(Q,"%",!0)):m==="|"?j==="%"||x?!0:!(j===Le||j===ae):m===Le?(i.peek(),p(!0,Le,x)):m===ae?(i.peek(),p(!0,ae,x)):!0},y=p();return c&&i.resetPeek(),y}function re(i,c){const p=i.currentChar();return p===he?he:c(p)?(i.next(),p):null}function qe(i){const c=i.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Ze(i){return re(i,qe)}function Te(i){const c=i.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function ze(i){return re(i,Te)}function et(i){const c=i.charCodeAt(0);return c>=48&&c<=57}function tt(i){return re(i,et)}function nt(i){const c=i.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function rt(i){return re(i,nt)}function _e(i){let c="",p="";for(;c=tt(i);)p+=c;return p}function Ge(i){S(i);const c=i.currentChar();return c!=="%"&&T(F.EXPECTED_TOKEN,r(),0,c),i.next(),"%"}function He(i){let c="";for(;;){const p=i.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(V(i))c+=p,i.next();else break;else if(p===Le||p===ae)if(V(i))c+=p,i.next();else{if(X(i))break;c+=p,i.next()}else c+=p,i.next()}return c}function at(i){S(i);let c="",p="";for(;c=ze(i);)p+=c;return i.currentChar()===he&&T(F.UNTERMINATED_CLOSING_BRACE,r(),0),p}function st(i){S(i);let c="";return i.currentChar()==="-"?(i.next(),c+=`-${_e(i)}`):c+=_e(i),i.currentChar()===he&&T(F.UNTERMINATED_CLOSING_BRACE,r(),0),c}function lt(i){return i!==pn&&i!==ae}function ht(i){S(i),R(i,"'");let c="",p="";for(;c=re(i,lt);)c==="\\"?p+=ot(i):p+=c;const y=i.currentChar();return y===ae||y===he?(T(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),y===ae&&(i.next(),R(i,"'")),p):(R(i,"'"),p)}function ot(i){const c=i.currentChar();switch(c){case"\\":case"'":return i.next(),`\\${c}`;case"u":return xe(i,c,4);case"U":return xe(i,c,6);default:return T(F.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function xe(i,c,p){R(i,c);let y="";for(let Q=0;Q<p;Q++){const j=rt(i);if(!j){T(F.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${y}${i.currentChar()}`);break}y+=j}return`\\${c}${y}`}function it(i){return i!=="{"&&i!=="}"&&i!==Le&&i!==ae}function ct(i){S(i);let c="",p="";for(;c=re(i,it);)p+=c;return p}function ut(i){let c="",p="";for(;c=Ze(i);)p+=c;return p}function h(i){const c=p=>{const y=i.currentChar();return y==="{"||y==="%"||y==="@"||y==="|"||y==="("||y===")"||!y||y===Le?p:(p+=y,i.next(),c(p))};return c("")}function G(i){S(i);const c=R(i,"|");return S(i),c}function ft(i,c){let p=null;switch(i.currentChar()){case"{":return c.braceNest>=1&&T(F.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),i.next(),p=d(c,2,"{"),S(i),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&T(F.EMPTY_PLACEHOLDER,r(),0),i.next(),p=d(c,3,"}"),c.braceNest--,c.braceNest>0&&S(i),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&T(F.UNTERMINATED_CLOSING_BRACE,r(),0),p=ye(i,c)||A(c),c.braceNest=0,p;default:{let Q=!0,j=!0,x=!0;if(X(i))return c.braceNest>0&&T(F.UNTERMINATED_CLOSING_BRACE,r(),0),p=d(c,1,G(i)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return T(F.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,_t(i,c);if(Q=f(i,c))return p=d(c,5,at(i)),S(i),p;if(j=E(i,c))return p=d(c,6,st(i)),S(i),p;if(x=L(i,c))return p=d(c,7,ht(i)),S(i),p;if(!Q&&!j&&!x)return p=d(c,13,ct(i)),T(F.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),S(i),p;break}}return p}function ye(i,c){const{currentType:p}=c;let y=null;const Q=i.currentChar();switch((p===8||p===9||p===12||p===10)&&(Q===ae||Q===Le)&&T(F.INVALID_LINKED_FORMAT,r(),0),Q){case"@":return i.next(),y=d(c,8,"@"),c.inLinked=!0,y;case".":return S(i),i.next(),d(c,9,".");case":":return S(i),i.next(),d(c,10,":");default:return X(i)?(y=d(c,1,G(i)),c.braceNest=0,c.inLinked=!1,y):g(i,c)||C(i,c)?(S(i),ye(i,c)):I(i,c)?(S(i),d(c,12,ut(i))):b(i,c)?(S(i),Q==="{"?ft(i,c)||y:d(c,11,h(i))):(p===8&&T(F.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,_t(i,c))}}function _t(i,c){let p={type:14};if(c.braceNest>0)return ft(i,c)||A(c);if(c.inLinked)return ye(i,c)||A(c);switch(i.currentChar()){case"{":return ft(i,c)||A(c);case"}":return T(F.UNBALANCED_CLOSING_BRACE,r(),0),i.next(),d(c,3,"}");case"@":return ye(i,c)||A(c);default:{if(X(i))return p=d(c,1,G(i)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:Q,hasSpace:j}=ce(i);if(Q)return j?d(c,0,He(i)):d(c,4,Ge(i));if(V(i))return d(c,0,He(i));break}}return p}function Zt(){const{currentType:i,offset:c,startLoc:p,endLoc:y}=u;return u.lastType=i,u.lastOffset=c,u.lastStartLoc=p,u.lastEndLoc=y,u.offset=s(),u.startLoc=r(),a.currentChar()===he?d(u,14):_t(a,u)}return{nextToken:Zt,currentOffset:s,currentPosition:r,context:_}}const Na="parser",Ta=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Oa(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function La(e={}){const t=e.location!==!1,{onError:n,onWarn:a}=e;function s(f,E,L,g,...I){const C=f.currentPosition();if(C.offset+=g,C.column+=g,n){const b=t?pt(L,C):null,X=Fe(E,b,{domain:Na,args:I});n(X)}}function r(f,E,L,g,...I){const C=f.currentPosition();if(C.offset+=g,C.column+=g,a){const b=t?pt(L,C):null;a(la(E,b,I))}}function l(f,E,L){const g={type:f};return t&&(g.start=E,g.end=E,g.loc={start:L,end:L}),g}function o(f,E,L,g){t&&(f.end=E,f.loc&&(f.loc.end=L))}function u(f,E){const L=f.context(),g=l(3,L.offset,L.startLoc);return g.value=E,o(g,f.currentOffset(),f.currentPosition()),g}function _(f,E){const L=f.context(),{lastOffset:g,lastStartLoc:I}=L,C=l(5,g,I);return C.index=parseInt(E,10),f.nextToken(),o(C,f.currentOffset(),f.currentPosition()),C}function N(f,E,L){const g=f.context(),{lastOffset:I,lastStartLoc:C}=g,b=l(4,I,C);return b.key=E,L===!0&&(b.modulo=!0),f.nextToken(),o(b,f.currentOffset(),f.currentPosition()),b}function T(f,E){const L=f.context(),{lastOffset:g,lastStartLoc:I}=L,C=l(9,g,I);return C.value=E.replace(Ta,Oa),f.nextToken(),o(C,f.currentOffset(),f.currentPosition()),C}function d(f){const E=f.nextToken(),L=f.context(),{lastOffset:g,lastStartLoc:I}=L,C=l(8,g,I);return E.type!==12?(s(f,F.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),C.value="",o(C,g,I),{nextConsumeToken:E,node:C}):(E.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,Ee(E)),C.value=E.value||"",o(C,f.currentOffset(),f.currentPosition()),{node:C})}function A(f,E){const L=f.context(),g=l(7,L.offset,L.startLoc);return g.value=E,o(g,f.currentOffset(),f.currentPosition()),g}function R(f){const E=f.context(),L=l(6,E.offset,E.startLoc);let g=f.nextToken();if(g.type===9){const I=d(f);L.modifier=I.node,g=I.nextConsumeToken||f.nextToken()}switch(g.type!==10&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(g)),g=f.nextToken(),g.type===2&&(g=f.nextToken()),g.type){case 11:g.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(g)),L.key=A(f,g.value||"");break;case 5:g.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(g)),L.key=N(f,g.value||"");break;case 6:g.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(g)),L.key=_(f,g.value||"");break;case 7:g.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(g)),L.key=T(f,g.value||"");break;default:{s(f,F.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const I=f.context(),C=l(7,I.offset,I.startLoc);return C.value="",o(C,I.offset,I.startLoc),L.key=C,o(L,I.offset,I.startLoc),{nextConsumeToken:g,node:L}}}return o(L,f.currentOffset(),f.currentPosition()),{node:L}}function P(f){const E=f.context(),L=E.currentType===1?f.currentOffset():E.offset,g=E.currentType===1?E.endLoc:E.startLoc,I=l(2,L,g);I.items=[];let C=null,b=null;do{const V=C||f.nextToken();switch(C=null,V.type){case 0:V.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(V)),I.items.push(u(f,V.value||""));break;case 6:V.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(V)),I.items.push(_(f,V.value||""));break;case 4:b=!0;break;case 5:V.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(V)),I.items.push(N(f,V.value||"",!!b)),b&&(r(f,Nt.USE_MODULO_SYNTAX,E.lastStartLoc,0,Ee(V)),b=null);break;case 7:V.value==null&&s(f,F.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ee(V)),I.items.push(T(f,V.value||""));break;case 8:{const re=R(f);I.items.push(re.node),C=re.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const X=E.currentType===1?E.lastOffset:f.currentOffset(),ce=E.currentType===1?E.lastEndLoc:f.currentPosition();return o(I,X,ce),I}function S(f,E,L,g){const I=f.context();let C=g.items.length===0;const b=l(1,E,L);b.cases=[],b.cases.push(g);do{const X=P(f);C||(C=X.items.length===0),b.cases.push(X)}while(I.currentType!==14);return C&&s(f,F.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),o(b,f.currentOffset(),f.currentPosition()),b}function M(f){const E=f.context(),{offset:L,startLoc:g}=E,I=P(f);return E.currentType===14?I:S(f,L,g,I)}function k(f){const E=pa(f,dn({},e)),L=E.context(),g=l(0,L.offset,L.startLoc);return t&&g.loc&&(g.loc.source=f),g.body=M(E),e.onCacheKey&&(g.cacheKey=e.onCacheKey(f)),L.currentType!==14&&s(E,F.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,f[L.offset]||""),o(g,E.currentOffset(),E.currentPosition()),g}return{parse:k}}function Ee(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ia(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Nn(e,t){for(let n=0;n<e.length;n++)Pt(e[n],t)}function Pt(e,t){switch(e.type){case 1:Nn(e.cases,t),t.helper("plural");break;case 2:Nn(e.items,t);break;case 6:{Pt(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ba(e,t={}){const n=Ia(e);n.helper("normalize"),e.body&&Pt(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function ha(e){const t=e.body;return t.type===2?Tn(t):t.cases.forEach(n=>Tn(n)),e}function Tn(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=gn(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const va="minifier";function Ue(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ue(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let a=0;a<n.length;a++)Ue(n[a]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let a=0;a<n.length;a++)Ue(n[a]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ue(t.key),t.k=t.key,delete t.key,t.modifier&&(Ue(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Fe(F.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:va,args:[e.type]})}delete e.type}const Aa="parser";function Ca(e,t){const{filename:n,breakLineCode:a,needIndent:s}=t,r=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:s,indentLevel:0};r&&e.loc&&(l.source=e.loc.source);const o=()=>l;function u(P,S){l.code+=P}function _(P,S=!0){const M=S?a:"";u(s?M+" ".repeat(P):M)}function N(P=!0){const S=++l.indentLevel;P&&_(S)}function T(P=!0){const S=--l.indentLevel;P&&_(S)}function d(){_(l.indentLevel)}return{context:o,push:u,indent:N,deindent:T,newline:d,helper:P=>`_${P}`,needIndent:()=>l.needIndent}}function Pa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),we(e,t.key),t.modifier?(e.push(", "),we(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Sa(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(we(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function Da(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(we(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Ra(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:Ra(e,t);break;case 1:Da(e,t);break;case 2:Sa(e,t);break;case 6:Pa(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Fe(F.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Aa,args:[t.type]})}}const ka=(e,t={})=>{const n=En(t.mode)?t.mode:"normal",a=En(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,r=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],o=Ca(e,{filename:a,breakLineCode:s,needIndent:r});o.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(r),l.length>0&&(o.push(`const { ${gn(l.map(N=>`${N}: _${N}`),", ")} } = ctx`),o.newline()),o.push("return "),we(o,e),o.deindent(r),o.push("}"),delete e.helpers;const{code:u,map:_}=o.context();return{ast:e,code:u,map:_?_.toJSON():void 0}};function ya(e,t={}){const n=dn({},t),a=!!n.jit,s=!!n.minify,r=n.optimize==null?!0:n.optimize,o=La(n).parse(e);return a?(r&&ha(o),s&&Ue(o),{ast:o,code:""}):(ba(o,n),ka(o,n))}/*!
|
|
13
|
+
* core-base v9.14.5
|
|
14
|
+
* (c) 2025 kazuya kawaguchi
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/function Ma(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oe().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Oe().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Oe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ue(e){return $(e)&&St(e)===0&&(de(e,"b")||de(e,"body"))}const On=["b","body"];function Fa(e){return ve(e,On)}const Ln=["c","cases"];function Ua(e){return ve(e,Ln,[])}const In=["s","static"];function wa(e){return ve(e,In)}const bn=["i","items"];function Va(e){return ve(e,bn,[])}const hn=["t","type"];function St(e){return ve(e,hn)}const vn=["v","value"];function Tt(e,t){const n=ve(e,vn);if(n!=null)return n;throw Be(t)}const An=["m","modifier"];function $a(e){return ve(e,An)}const Cn=["k","key"];function Wa(e){const t=ve(e,Cn);if(t)return t;throw Be(6)}function ve(e,t,n){for(let a=0;a<t.length;a++){const s=t[a];if(de(e,s)&&e[s]!=null)return e[s]}return n}const Pn=[...On,...Ln,...In,...bn,...Cn,...An,...vn,...hn];function Be(e){return new Error(`unhandled node type: ${e}`)}const Ae=[];Ae[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ae[1]={w:[1],".":[2],"[":[4],o:[7]},Ae[2]={w:[2],i:[3,0],0:[3,0]},Ae[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ae[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ae[5]={"'":[4,0],o:8,l:[5,0]},Ae[6]={'"':[4,0],o:8,l:[6,0]};const Ga=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ha(e){return Ga.test(e)}function xa(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Ya(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ba(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ha(t)?xa(t):"*"+t}function ja(e){const t=[];let n=-1,a=0,s=0,r,l,o,u,_,N,T;const d=[];d[0]=()=>{l===void 0?l=o:l+=o},d[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,a=4,d[0]();else{if(s=0,l===void 0||(l=Ba(l),l===!1))return!1;d[1]()}};function A(){const R=e[n+1];if(a===5&&R==="'"||a===6&&R==='"')return n++,o="\\"+R,d[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&A())){if(u=Ya(r),T=Ae[a],_=T[u]||T.l||8,_===8||(a=_[0],_[1]!==void 0&&(N=d[_[1]],N&&(o=r,N()===!1))))return;if(a===7)return t}}const Sn=new Map;function Ka(e,t){return $(e)?e[t]:null}function Xa(e,t){if(!$(e))return null;let n=Sn.get(t);if(n||(n=ja(t),n&&Sn.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const l=n[r];if(Pn.includes(l)&&ue(s))return null;const o=s[l];if(o===void 0||B(s))return null;s=o,r++}return s}const Ja=e=>e,Qa=e=>"",qa="text",Za=e=>e.length===0?"":ea(e),za=zr;function Dn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function es(e){const t=q(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(q(e.named.count)||q(e.named.n))?q(e.named.count)?e.named.count:q(e.named.n)?e.named.n:t:t}function ts(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ns(e={}){const t=e.locale,n=es(e),a=$(e.pluralRules)&&v(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Dn,s=$(e.pluralRules)&&v(t)&&B(e.pluralRules[t])?Dn:void 0,r=M=>M[a(n,M.length,s)],l=e.list||[],o=M=>l[M],u=e.named||Y();q(e.pluralIndex)&&ts(n,u);const _=M=>u[M];function N(M){const k=B(e.messages)?e.messages(M):$(e.messages)?e.messages[M]:!1;return k||(e.parent?e.parent.message(M):Qa)}const T=M=>e.modifiers?e.modifiers[M]:Ja,d=U(e.processor)&&B(e.processor.normalize)?e.processor.normalize:Za,A=U(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:za,R=U(e.processor)&&v(e.processor.type)?e.processor.type:qa,S={list:o,named:_,plural:r,linked:(M,...k)=>{const[f,E]=k;let L="text",g="";k.length===1?$(f)?(g=f.modifier||g,L=f.type||L):v(f)&&(g=f||g):k.length===2&&(v(f)&&(g=f||g),v(E)&&(L=E||L));const I=N(M)(S),C=L==="vnode"&&K(I)&&g?I[0]:I;return g?T(g)(C,L):C},message:N,type:R,interpolate:A,normalize:d,values:ne(Y(),l,u)};return S}let je=null;function rs(e){je=e}function as(e,t,n){je&&je.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ss=ls("function:translate");function ls(e){return t=>je&&je.emit(e,t)}const Rn=Nt.__EXTEND_POINT__,Se=dt(Rn),se={NOT_FOUND_KEY:Rn,FALLBACK_TO_TRANSLATE:Se(),CANNOT_FORMAT_NUMBER:Se(),FALLBACK_TO_NUMBER_FORMAT:Se(),CANNOT_FORMAT_DATE:Se(),FALLBACK_TO_DATE_FORMAT:Se(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Se(),__EXTEND_POINT__:Se()},os={[se.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[se.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[se.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[se.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[se.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[se.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[se.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function De(e,...t){return At(os[e],...t)}const kn=F.__EXTEND_POINT__,Re=dt(kn),te={INVALID_ARGUMENT:kn,INVALID_DATE_ARGUMENT:Re(),INVALID_ISO_DATE_ARGUMENT:Re(),NOT_SUPPORT_NON_STRING_MESSAGE:Re(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Re(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Re(),NOT_SUPPORT_LOCALE_TYPE:Re(),__EXTEND_POINT__:Re()};function Ne(e){return Fe(e,null,process.env.NODE_ENV!=="production"?{messages:is}:void 0)}const is={[te.INVALID_ARGUMENT]:"Invalid arguments",[te.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[te.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[te.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[te.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[te.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Dt(e,t){return t.locale!=null?yn(t.locale):yn(e.locale)}let Rt;function yn(e){if(v(e))return e;if(B(e)){if(e.resolvedOnce&&Rt!=null)return Rt;if(e.constructor.name==="Function"){const t=e();if(Zr(t))throw Ne(te.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Rt=t}else throw Ne(te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ne(te.NOT_SUPPORT_LOCALE_TYPE)}function cs(e,t,n){return[...new Set([n,...K(t)?t:$(t)?Object.keys(t):v(t)?[t]:[n]])]}function Mn(e,t,n){const a=v(n)?n:Ve,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let l=[n];for(;K(l);)l=Fn(r,l,t);const o=K(t)||!U(t)?t:t.default?t.default:null;l=v(o)?[o]:o,K(l)&&Fn(r,l,!1),s.__localeChainCache.set(a,r)}return r}function Fn(e,t,n){let a=!0;for(let s=0;s<t.length&&w(a);s++){const r=t[s];v(r)&&(a=us(e,t[s],n))}return a}function us(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=fs(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function fs(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(K(n)||U(n))&&n[s]&&(a=n[s])}return a}const _s="9.14.5",Ot=-1,Ve="en-US",Lt="",Un=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ms(){return{upper:(e,t)=>t==="text"&&v(e)?e.toUpperCase():t==="vnode"&&$(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&v(e)?e.toLowerCase():t==="vnode"&&$(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&v(e)?Un(e):t==="vnode"&&$(e)&&"__v_isVNode"in e?Un(e.children):e}}let wn;function Vn(e){wn=e}let $n;function ds(e){$n=e}let Wn;function Es(e){Wn=e}let Gn=null;const gs=e=>{Gn=e},ps=()=>Gn;let Hn=null;const xn=e=>{Hn=e},Ns=()=>Hn;let Yn=0;function Ts(e={}){const t=B(e.onWarn)?e.onWarn:z,n=v(e.version)?e.version:_s,a=v(e.locale)||B(e.locale)?e.locale:Ve,s=B(a)?Ve:a,r=K(e.fallbackLocale)||U(e.fallbackLocale)||v(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,l=U(e.messages)?e.messages:kt(s),o=U(e.datetimeFormats)?e.datetimeFormats:kt(s),u=U(e.numberFormats)?e.numberFormats:kt(s),_=ne(Y(),e.modifiers,ms()),N=e.pluralRules||Y(),T=B(e.missing)?e.missing:null,d=w(e.missingWarn)||be(e.missingWarn)?e.missingWarn:!0,A=w(e.fallbackWarn)||be(e.fallbackWarn)?e.fallbackWarn:!0,R=!!e.fallbackFormat,P=!!e.unresolving,S=B(e.postTranslation)?e.postTranslation:null,M=U(e.processor)?e.processor:null,k=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,f=!!e.escapeParameter,E=B(e.messageCompiler)?e.messageCompiler:wn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&sn(De(se.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=B(e.messageResolver)?e.messageResolver:$n||Ka,g=B(e.localeFallbacker)?e.localeFallbacker:Wn||cs,I=$(e.fallbackContext)?e.fallbackContext:void 0,C=e,b=$(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,X=$(C.__numberFormatters)?C.__numberFormatters:new Map,ce=$(C.__meta)?C.__meta:{};Yn++;const V={version:n,cid:Yn,locale:a,fallbackLocale:r,messages:l,modifiers:_,pluralRules:N,missing:T,missingWarn:d,fallbackWarn:A,fallbackFormat:R,unresolving:P,postTranslation:S,processor:M,warnHtmlMessage:k,escapeParameter:f,messageCompiler:E,messageResolver:L,localeFallbacker:g,fallbackContext:I,onWarn:t,__meta:ce};return V.datetimeFormats=o,V.numberFormats=u,V.__datetimeFormatters=b,V.__numberFormatters=X,process.env.NODE_ENV!=="production"&&(V.__v_emitter=C.__v_emitter!=null?C.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&as(V,n,ce),V}const kt=e=>({[e]:Y()});function It(e,t){return e instanceof RegExp?e.test(t):e}function Bn(e,t){return e instanceof RegExp?e.test(t):e}function yt(e,t,n,a,s){const{missing:r,onWarn:l}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const o=r(e,n,t,s);return v(o)?o:t}else return process.env.NODE_ENV!=="production"&&Bn(a,t)&&l(De(se.NOT_FOUND_KEY,{key:t,locale:n})),t}function Ke(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function jn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Os(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let a=n+1;a<t.length;a++)if(jn(e,t[a]))return!0;return!1}function Mt(e){return n=>Ls(n,e)}function Ls(e,t){const n=Fa(t);if(n==null)throw Be(0);if(St(n)===1){const r=Ua(n);return e.plural(r.reduce((l,o)=>[...l,Kn(e,o)],[]))}else return Kn(e,n)}function Kn(e,t){const n=wa(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const a=Va(t).reduce((s,r)=>[...s,Ft(e,r)],[]);return e.normalize(a)}}function Ft(e,t){const n=St(t);switch(n){case 3:return Tt(t,n);case 9:return Tt(t,n);case 4:{const a=t;if(de(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(de(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw Be(n)}case 5:{const a=t;if(de(a,"i")&&q(a.i))return e.interpolate(e.list(a.i));if(de(a,"index")&&q(a.index))return e.interpolate(e.list(a.index));throw Be(n)}case 6:{const a=t,s=$a(a),r=Wa(a);return e.linked(Ft(e,r),s?Ft(e,s):void 0,e.type)}case 7:return Tt(t,n);case 8:return Tt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Is="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Xn(e,t){t&&ua(e)&&z(At(Is,{source:e}))}const Jn=e=>e;let $e=Y();function Qn(e){e.code===Nt.USE_MODULO_SYNTAX&&z(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
|
+
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
+
(message compiler warning message: ${e.message})`)}function qn(e,t={}){let n=!1;const a=t.onError||ia;return t.onError=s=>{n=!0,a(s)},{...ya(e,t),detectError:n}}const bs=(e,t)=>{if(!v(e))throw Ne(te.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=Qn);{const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Xn(e,n);const s=(t.onCacheKey||Jn)(e),r=$e[s];if(r)return r;const{code:l,detectError:o}=qn(e,t),u=new Function(`return ${l}`)();return o?u:$e[s]=u}};function hs(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=Qn),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&v(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Xn(e,n);const s=(t.onCacheKey||Jn)(e),r=$e[s];if(r)return r;const{ast:l,detectError:o}=qn(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Mt(l);return o?u:$e[s]=u}else{if(process.env.NODE_ENV!=="production"&&!ue(e))return z(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const a=$e[n];return a||($e[n]=Mt(e))}else return Mt(e)}}const Zn=()=>"",fe=e=>B(e);function zn(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:l,messages:o}=e,[u,_]=Ut(...t),N=w(_.missingWarn)?_.missingWarn:e.missingWarn,T=w(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,d=w(_.escapeParameter)?_.escapeParameter:e.escapeParameter,A=!!_.resolvedMessage,R=v(_.default)||w(_.default)?w(_.default)?r?u:()=>u:_.default:n?r?u:()=>u:"",P=n||R!=="",S=Dt(e,_);d&&vs(_);let[M,k,f]=A?[u,S,o[S]||Y()]:er(e,u,S,l,T,N),E=M,L=u;if(!A&&!(v(E)||ue(E)||fe(E))&&P&&(E=R,L=E),!A&&(!(v(E)||ue(E)||fe(E))||!v(k)))return s?Ot:u;if(process.env.NODE_ENV!=="production"&&v(E)&&e.messageCompiler==null)return z(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let g=!1;const I=()=>{g=!0},C=fe(E)?E:tr(e,u,k,E,L,I);if(g)return E;const b=Ss(e,k,f,_),X=ns(b),ce=As(e,C,X);let V=a?a(ce,u):ce;if(d&&v(V)&&(V=Qr(V)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const re={timestamp:Date.now(),key:v(u)?u:fe(E)?E.key:"",locale:k||(fe(E)?E.locale:""),format:v(E)?E:fe(E)?E.source:"",message:V};re.meta=ne({},e.__meta,ps()||{}),ss(re)}return V}function vs(e){K(e.list)?e.list=e.list.map(t=>v(t)?on(t):t):$(e.named)&&Object.keys(e.named).forEach(t=>{v(e.named[t])&&(e.named[t]=on(e.named[t]))})}function er(e,t,n,a,s,r){const{messages:l,onWarn:o,messageResolver:u,localeFallbacker:_}=e,N=_(e,a,n);let T=Y(),d,A=null,R=n,P=null;const S="translate";for(let M=0;M<N.length;M++){if(d=P=N[M],process.env.NODE_ENV!=="production"&&n!==d&&!jn(n,d)&&It(s,t)&&o(De(se.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const L=e.__v_emitter;L&&L.emit("fallback",{type:S,key:t,from:R,to:P,groupId:`${S}:${t}`})}T=l[d]||Y();let k=null,f,E;if(process.env.NODE_ENV!=="production"&&me&&(k=window.performance.now(),f="intlify-message-resolve-start",E="intlify-message-resolve-end",ie&&ie(f)),(A=u(T,t))===null&&(A=T[t]),process.env.NODE_ENV!=="production"&&me){const L=window.performance.now(),g=e.__v_emitter;g&&k&&A&&g.emit("message-resolve",{type:"message-resolve",key:t,message:A,time:L-k,groupId:`${S}:${t}`}),f&&E&&ie&&Pe&&(ie(E),Pe("intlify message resolve",f,E))}if(v(A)||ue(A)||fe(A))break;if(!Os(d,N)){const L=yt(e,t,d,r,S);L!==t&&(A=L)}R=P}return[A,d,T]}function tr(e,t,n,a,s,r){const{messageCompiler:l,warnHtmlMessage:o}=e;if(fe(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(l==null){const d=()=>a;return d.locale=n,d.key=t,d}let u=null,_,N;process.env.NODE_ENV!=="production"&&me&&(u=window.performance.now(),_="intlify-message-compilation-start",N="intlify-message-compilation-end",ie&&ie(_));const T=l(a,Cs(e,n,s,a,o,r));if(process.env.NODE_ENV!=="production"&&me){const d=window.performance.now(),A=e.__v_emitter;A&&u&&A.emit("message-compilation",{type:"message-compilation",message:a,time:d-u,groupId:`translate:${t}`}),_&&N&&ie&&Pe&&(ie(N),Pe("intlify message compilation",_,N))}return T.locale=n,T.key=t,T.source=a,T}function As(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&me&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ie&&ie(s));const l=t(n);if(process.env.NODE_ENV!=="production"&&me){const o=window.performance.now(),u=e.__v_emitter;u&&a&&u.emit("message-evaluation",{type:"message-evaluation",value:l,time:o-a,groupId:`translate:${t.key}`}),s&&r&&ie&&Pe&&(ie(r),Pe("intlify message evaluation",s,r))}return l}function Ut(...e){const[t,n,a]=e,s=Y();if(!v(t)&&!q(t)&&!fe(t)&&!ue(t))throw Ne(te.INVALID_ARGUMENT);const r=q(t)?String(t):(fe(t),t);return q(n)?s.plural=n:v(n)?s.default=n:U(n)&&!mt(n)?s.named=n:K(n)&&(s.list=n),q(a)?s.plural=a:v(a)?s.default=a:U(a)&&ne(s,a),[r,s]}function Cs(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:l=>{if(r&&r(l),process.env.NODE_ENV!=="production"){const o=Ps(a),u=`Message compilation error: ${l.message}`,_=l.location&&o&&ta(o,l.location.start.offset,l.location.end.offset),N=e.__v_emitter;N&&o&&N.emit("compile-error",{message:o,error:l.message,start:l.location&&l.location.start.offset,end:l.location&&l.location.end.offset,groupId:`translate:${n}`}),console.error(_?`${u}
|
|
19
|
+
${_}`:u)}else throw l},onCacheKey:l=>jr(t,n,l)}}function Ps(e){if(v(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ss(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:l,fallbackLocale:o,fallbackWarn:u,missingWarn:_,fallbackContext:N}=e,d={locale:t,modifiers:s,pluralRules:r,messages:A=>{let R=l(n,A);if(R==null&&N){const[,,P]=er(N,A,t,o,u,_);R=l(P,A)}if(v(R)||ue(R)){let P=!1;const M=tr(e,A,t,R,A,()=>{P=!0});return P?Zn:M}else return fe(R)?R:Zn}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),q(a.plural)&&(d.pluralIndex=a.plural),d}const nr=typeof Intl<"u",rr={dateTimeFormat:nr&&typeof Intl.DateTimeFormat<"u",numberFormat:nr&&typeof Intl.NumberFormat<"u"};function ar(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:l}=e,{__datetimeFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!rr.dateTimeFormat)return r(De(se.CANNOT_FORMAT_DATE)),Lt;const[u,_,N,T]=wt(...t),d=w(N.missingWarn)?N.missingWarn:e.missingWarn,A=w(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,R=!!N.part,P=Dt(e,N),S=l(e,s,P);if(!v(u)||u==="")return new Intl.DateTimeFormat(P,T).format(_);let M={},k,f=null,E=P,L=null;const g="datetime format";for(let b=0;b<S.length;b++){if(k=L=S[b],process.env.NODE_ENV!=="production"&&P!==k&&It(A,u)&&r(De(se.FALLBACK_TO_DATE_FORMAT,{key:u,target:k})),process.env.NODE_ENV!=="production"&&P!==k){const X=e.__v_emitter;X&&X.emit("fallback",{type:g,key:u,from:E,to:L,groupId:`${g}:${u}`})}if(M=n[k]||{},f=M[u],U(f))break;yt(e,u,k,d,g),E=L}if(!U(f)||!v(k))return a?Ot:u;let I=`${k}__${u}`;mt(T)||(I=`${I}__${JSON.stringify(T)}`);let C=o.get(I);return C||(C=new Intl.DateTimeFormat(k,ne({},f,T)),o.set(I,C)),R?C.formatToParts(_):C.format(_)}const sr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function wt(...e){const[t,n,a,s]=e,r=Y();let l=Y(),o;if(v(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ne(te.INVALID_ISO_DATE_ARGUMENT);const _=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();o=new Date(_);try{o.toISOString()}catch{throw Ne(te.INVALID_ISO_DATE_ARGUMENT)}}else if(Xr(t)){if(isNaN(t.getTime()))throw Ne(te.INVALID_DATE_ARGUMENT);o=t}else if(q(t))o=t;else throw Ne(te.INVALID_ARGUMENT);return v(n)?r.key=n:U(n)&&Object.keys(n).forEach(u=>{sr.includes(u)?l[u]=n[u]:r[u]=n[u]}),v(a)?r.locale=a:U(a)&&(l=a),U(s)&&(l=s),[r.key||"",o,r,l]}function lr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function or(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:l}=e,{__numberFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!rr.numberFormat)return r(De(se.CANNOT_FORMAT_NUMBER)),Lt;const[u,_,N,T]=Vt(...t),d=w(N.missingWarn)?N.missingWarn:e.missingWarn,A=w(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,R=!!N.part,P=Dt(e,N),S=l(e,s,P);if(!v(u)||u==="")return new Intl.NumberFormat(P,T).format(_);let M={},k,f=null,E=P,L=null;const g="number format";for(let b=0;b<S.length;b++){if(k=L=S[b],process.env.NODE_ENV!=="production"&&P!==k&&It(A,u)&&r(De(se.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:k})),process.env.NODE_ENV!=="production"&&P!==k){const X=e.__v_emitter;X&&X.emit("fallback",{type:g,key:u,from:E,to:L,groupId:`${g}:${u}`})}if(M=n[k]||{},f=M[u],U(f))break;yt(e,u,k,d,g),E=L}if(!U(f)||!v(k))return a?Ot:u;let I=`${k}__${u}`;mt(T)||(I=`${I}__${JSON.stringify(T)}`);let C=o.get(I);return C||(C=new Intl.NumberFormat(k,ne({},f,T)),o.set(I,C)),R?C.formatToParts(_):C.format(_)}const ir=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Vt(...e){const[t,n,a,s]=e,r=Y();let l=Y();if(!q(t))throw Ne(te.INVALID_ARGUMENT);const o=t;return v(n)?r.key=n:U(n)&&Object.keys(n).forEach(u=>{ir.includes(u)?l[u]=n[u]:r[u]=n[u]}),v(a)?r.locale=a:U(a)&&(l=a),U(s)&&(l=s),[r.key||"",o,r,l]}function cr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Ma();function Ds(){return ur().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ur(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Rs=typeof Proxy=="function",ks="devtools-plugin:setup",ys="plugin:settings:set";let We,$t;function Ms(){var e;return We!==void 0||(typeof window<"u"&&window.performance?(We=!0,$t=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(We=!0,$t=globalThis.perf_hooks.performance):We=!1),We}function Fs(){return Ms()?$t.now():Date.now()}class Us{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const l in t.settings){const o=t.settings[l];a[l]=o.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},a);try{const l=localStorage.getItem(s),o=JSON.parse(l);Object.assign(r,o)}catch{}this.fallbacks={getSettings(){return r},setSettings(l){try{localStorage.setItem(s,JSON.stringify(l))}catch{}r=l},now(){return Fs()}},n&&n.on(ys,(l,o)=>{l===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(l,o)=>this.target?this.target.on[o]:(...u)=>{this.onQueue.push({method:o,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...u)=>(this.targetQueue.push({method:o,args:u,resolve:()=>{}}),this.fallbacks[o](...u)):(...u)=>new Promise(_=>{this.targetQueue.push({method:o,args:u,resolve:_})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ws(e,t){const n=e,a=ur(),s=Ds(),r=Rs&&n.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(ks,e,t);else{const l=r?new Us(n,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
|
|
20
|
+
* vue-i18n v9.14.5
|
|
21
|
+
* (c) 2025 kazuya kawaguchi
|
|
22
|
+
* Released under the MIT License.
|
|
23
|
+
*/const Vs="9.14.5";function $s(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Oe().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Oe().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Oe().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Oe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oe().__INTLIFY_PROD_DEVTOOLS__=!1)}const fr=se.__EXTEND_POINT__,Ie=dt(fr),J={FALLBACK_TO_ROOT:fr,NOT_SUPPORTED_PRESERVE:Ie(),NOT_SUPPORTED_FORMATTER:Ie(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ie(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ie(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ie(),NOT_FOUND_PARENT_SCOPE:Ie(),IGNORE_OBJ_FLATTEN:Ie(),NOTICE_DROP_ALLOW_COMPOSITION:Ie(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ie()},Ws={[J.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[J.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[J.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[J.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[J.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[J.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[J.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[J.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[J.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[J.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function le(e,...t){return At(Ws[e],...t)}const _r=te.__EXTEND_POINT__,oe=dt(_r),W={UNEXPECTED_RETURN_TYPE:_r,INVALID_ARGUMENT:oe(),MUST_BE_CALL_SETUP_TOP:oe(),NOT_INSTALLED:oe(),NOT_AVAILABLE_IN_LEGACY_MODE:oe(),REQUIRED_VALUE:oe(),INVALID_VALUE:oe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:oe(),NOT_INSTALLED_WITH_PROVIDE:oe(),UNEXPECTED_ERROR:oe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:oe(),BRIDGE_SUPPORT_VUE_2_ONLY:oe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:oe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:oe(),__EXTEND_POINT__:oe()};function ee(e,...t){return Fe(e,null,process.env.NODE_ENV!=="production"?{messages:Gs,args:t}:void 0)}const Gs={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Wt=pe("__translateVNode"),Gt=pe("__datetimeParts"),Ht=pe("__numberParts"),ke=pe("__enableEmitter"),Xe=pe("__disableEmitter"),mr=pe("__setPluralRules"),dr=pe("__injectWithOption"),xt=pe("__dispose");function Je(e){if(!$(e)||ue(e))return e;for(const t in e)if(de(e,t))if(!t.includes("."))$(e[t])&&Je(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let l=0;l<a;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in s||(s[n[l]]=Y()),!$(s[n[l]])){process.env.NODE_ENV!=="production"&&z(le(J.IGNORE_OBJ_FLATTEN,{key:n[l]})),r=!0;break}s=s[n[l]]}if(r||(ue(s)?Pn.includes(n[a])||delete e[t]:(s[n[a]]=e[t],delete e[t])),!ue(s)){const l=s[n[a]];$(l)&&Je(l)}}return e}function bt(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,l=U(n)?n:K(a)?Y():{[e]:Y()};if(K(a)&&a.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:_}=o;u?(l[u]=l[u]||Y(),gt(_,l[u])):gt(_,l)}else v(o)&>(JSON.parse(o),l)}),s==null&&r)for(const o in l)de(l,o)&&Je(l[o]);return l}function Er(e){return e.type}function gr(e,t,n){let a=$(t.messages)?t.messages:Y();"__i18nGlobal"in n&&(a=bt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if($(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if($(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function pr(e){return D.createVNode(D.Text,null,e,0)}const Nr="__INTLIFY_META__",Tr=()=>[],Hs=()=>!1;let Or=0;function Lr(e){return(t,n,a,s)=>e(n,a,D.getCurrentInstance()||void 0,s)}const xs=()=>{const e=D.getCurrentInstance();let t=null;return e&&(t=Er(e)[Nr])?{[Nr]:t}:null};function Yt(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,l=me?D.ref:D.shallowRef,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&sn(le(J.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=w(e.inheritLocale)?e.inheritLocale:!0;const _=l(n&&u?n.locale.value:v(e.locale)?e.locale:Ve),N=l(n&&u?n.fallbackLocale.value:v(e.fallbackLocale)||K(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),T=l(bt(_.value,e)),d=l(U(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),A=l(U(e.numberFormats)?e.numberFormats:{[_.value]:{}});let R=n?n.missingWarn:w(e.missingWarn)||be(e.missingWarn)?e.missingWarn:!0,P=n?n.fallbackWarn:w(e.fallbackWarn)||be(e.fallbackWarn)?e.fallbackWarn:!0,S=n?n.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,M=!!e.fallbackFormat,k=B(e.missing)?e.missing:null,f=B(e.missing)?Lr(e.missing):null,E=B(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const I=n?n.modifiers:U(e.modifiers)?e.modifiers:{};let C=e.pluralRules||n&&n.pluralRules,b;b=(()=>{s&&xn(null);const m={version:Vs,locale:_.value,fallbackLocale:N.value,messages:T.value,modifiers:I,pluralRules:C,missing:f===null?void 0:f,missingWarn:R,fallbackWarn:P,fallbackFormat:M,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:L,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};m.datetimeFormats=d.value,m.numberFormats=A.value,m.__datetimeFormatters=U(b)?b.__datetimeFormatters:void 0,m.__numberFormatters=U(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(m.__v_emitter=U(b)?b.__v_emitter:void 0);const O=Ts(m);return s&&xn(O),O})(),Ke(b,_.value,N.value);function ce(){return[_.value,N.value,T.value,d.value,A.value]}const V=D.computed({get:()=>_.value,set:m=>{_.value=m,b.locale=_.value}}),re=D.computed({get:()=>N.value,set:m=>{N.value=m,b.fallbackLocale=N.value,Ke(b,_.value,m)}}),qe=D.computed(()=>T.value),Ze=D.computed(()=>d.value),Te=D.computed(()=>A.value);function ze(){return B(E)?E:null}function et(m){E=m,b.postTranslation=m}function tt(){return k}function nt(m){m!==null&&(f=Lr(m)),k=m,b.missing=f}function rt(m,O){return m!=="translate"||!O.resolvedMessage}const _e=(m,O,H,Z,Ce,vt)=>{ce();let Ye;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(b.fallbackContext=n?Ns():void 0),Ye=m(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(b.fallbackContext=void 0)}if(H!=="translate exists"&&q(Ye)&&Ye===Ot||H==="translate exists"&&!Ye){const[Me,Al]=O();if(process.env.NODE_ENV!=="production"&&n&&v(Me)&&rt(H,Al)&&(S&&(It(P,Me)||Bn(R,Me))&&z(le(J.FALLBACK_TO_ROOT,{key:Me,type:H})),process.env.NODE_ENV!=="production")){const{__v_emitter:Fr}=b;Fr&&S&&Fr.emit("fallback",{type:H,key:Me,to:"global",groupId:`${H}:${Me}`})}return n&&S?Z(n):Ce(Me)}else{if(vt(Ye))return Ye;throw ee(W.UNEXPECTED_RETURN_TYPE)}};function Ge(...m){return _e(O=>Reflect.apply(zn,null,[O,...m]),()=>Ut(...m),"translate",O=>Reflect.apply(O.t,O,[...m]),O=>O,O=>v(O))}function He(...m){const[O,H,Z]=m;if(Z&&!$(Z))throw ee(W.INVALID_ARGUMENT);return Ge(O,H,ne({resolvedMessage:!0},Z||{}))}function at(...m){return _e(O=>Reflect.apply(ar,null,[O,...m]),()=>wt(...m),"datetime format",O=>Reflect.apply(O.d,O,[...m]),()=>Lt,O=>v(O))}function st(...m){return _e(O=>Reflect.apply(or,null,[O,...m]),()=>Vt(...m),"number format",O=>Reflect.apply(O.n,O,[...m]),()=>Lt,O=>v(O))}function lt(m){return m.map(O=>v(O)||q(O)||w(O)?pr(String(O)):O)}const ot={normalize:lt,interpolate:m=>m,type:"vnode"};function xe(...m){return _e(O=>{let H;const Z=O;try{Z.processor=ot,H=Reflect.apply(zn,null,[Z,...m])}finally{Z.processor=null}return H},()=>Ut(...m),"translate",O=>O[Wt](...m),O=>[pr(O)],O=>K(O))}function it(...m){return _e(O=>Reflect.apply(or,null,[O,...m]),()=>Vt(...m),"number format",O=>O[Ht](...m),Tr,O=>v(O)||K(O))}function ct(...m){return _e(O=>Reflect.apply(ar,null,[O,...m]),()=>wt(...m),"datetime format",O=>O[Gt](...m),Tr,O=>v(O)||K(O))}function ut(m){C=m,b.pluralRules=C}function h(m,O){return _e(()=>{if(!m)return!1;const H=v(O)?O:_.value,Z=ye(H),Ce=b.messageResolver(Z,m);return o?Ce!=null:ue(Ce)||fe(Ce)||v(Ce)},()=>[m],"translate exists",H=>Reflect.apply(H.te,H,[m,O]),Hs,H=>w(H))}function G(m){let O=null;const H=Mn(b,N.value,_.value);for(let Z=0;Z<H.length;Z++){const Ce=T.value[H[Z]]||{},vt=b.messageResolver(Ce,m);if(vt!=null){O=vt;break}}return O}function ft(m){const O=G(m);return O??(n?n.tm(m)||{}:{})}function ye(m){return T.value[m]||{}}function _t(m,O){if(r){const H={[m]:O};for(const Z in H)de(H,Z)&&Je(H[Z]);O=H[m]}T.value[m]=O,b.messages=T.value}function Zt(m,O){T.value[m]=T.value[m]||{};const H={[m]:O};if(r)for(const Z in H)de(H,Z)&&Je(H[Z]);O=H[m],gt(O,T.value[m]),b.messages=T.value}function i(m){return d.value[m]||{}}function c(m,O){d.value[m]=O,b.datetimeFormats=d.value,lr(b,m,O)}function p(m,O){d.value[m]=ne(d.value[m]||{},O),b.datetimeFormats=d.value,lr(b,m,O)}function y(m){return A.value[m]||{}}function Q(m,O){A.value[m]=O,b.numberFormats=A.value,cr(b,m,O)}function j(m,O){A.value[m]=ne(A.value[m]||{},O),b.numberFormats=A.value,cr(b,m,O)}Or++,n&&me&&(D.watch(n.locale,m=>{u&&(_.value=m,b.locale=m,Ke(b,_.value,N.value))}),D.watch(n.fallbackLocale,m=>{u&&(N.value=m,b.fallbackLocale=m,Ke(b,_.value,N.value))}));const x={id:Or,locale:V,fallbackLocale:re,get inheritLocale(){return u},set inheritLocale(m){u=m,m&&n&&(_.value=n.locale.value,N.value=n.fallbackLocale.value,Ke(b,_.value,N.value))},get availableLocales(){return Object.keys(T.value).sort()},messages:qe,get modifiers(){return I},get pluralRules(){return C||{}},get isGlobal(){return s},get missingWarn(){return R},set missingWarn(m){R=m,b.missingWarn=R},get fallbackWarn(){return P},set fallbackWarn(m){P=m,b.fallbackWarn=P},get fallbackRoot(){return S},set fallbackRoot(m){S=m},get fallbackFormat(){return M},set fallbackFormat(m){M=m,b.fallbackFormat=M},get warnHtmlMessage(){return L},set warnHtmlMessage(m){L=m,b.warnHtmlMessage=m},get escapeParameter(){return g},set escapeParameter(m){g=m,b.escapeParameter=m},t:Ge,getLocaleMessage:ye,setLocaleMessage:_t,mergeLocaleMessage:Zt,getPostTranslationHandler:ze,setPostTranslationHandler:et,getMissingHandler:tt,setMissingHandler:nt,[mr]:ut};return x.datetimeFormats=Ze,x.numberFormats=Te,x.rt=He,x.te=h,x.tm=ft,x.d=at,x.n=st,x.getDateTimeFormat=i,x.setDateTimeFormat=c,x.mergeDateTimeFormat=p,x.getNumberFormat=y,x.setNumberFormat=Q,x.mergeNumberFormat=j,x[dr]=a,x[Wt]=xe,x[Gt]=ct,x[Ht]=it,process.env.NODE_ENV!=="production"&&(x[ke]=m=>{b.__v_emitter=m},x[Xe]=()=>{b.__v_emitter=void 0}),x}function Ys(e){const t=v(e.locale)?e.locale:Ve,n=v(e.fallbackLocale)||K(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=B(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||be(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=w(e.silentFallbackWarn)||be(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=w(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,u=U(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,N=B(e.postTranslation)?e.postTranslation:void 0,T=v(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,A=w(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&z(le(J.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let R=e.messages;if(U(e.sharedMessages)){const g=e.sharedMessages;R=Object.keys(g).reduce((C,b)=>{const X=C[b]||(C[b]={});return ne(X,g[b]),C},R||{})}const{__i18n:P,__root:S,__injectWithOption:M}=e,k=e.datetimeFormats,f=e.numberFormats,E=e.flatJson,L=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:R,flatJson:E,datetimeFormats:k,numberFormats:f,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:l,fallbackFormat:o,modifiers:u,pluralRules:_,postTranslation:N,warnHtmlMessage:T,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:A,translateExistCompatible:L,__i18n:P,__root:S,__injectWithOption:M}}function Bt(e={},t){{const n=Yt(Ys(e)),{__extender:a}=e,s={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&z(le(J.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&z(le(J.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return w(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=w(r)?!r:r},get silentFallbackWarn(){return w(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=w(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[l,o,u]=r,_={};let N=null,T=null;if(!v(l))throw ee(W.INVALID_ARGUMENT);const d=l;return v(o)?_.locale=o:K(o)?N=o:U(o)&&(T=o),K(u)?N=u:U(u)&&(T=u),Reflect.apply(n.t,n,[d,N||T||{},_])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[l,o,u]=r,_={plural:1};let N=null,T=null;if(!v(l))throw ee(W.INVALID_ARGUMENT);const d=l;return v(o)?_.locale=o:q(o)?_.plural=o:K(o)?N=o:U(o)&&(T=o),v(u)?_.locale=u:K(u)?N=u:U(u)&&(T=u),Reflect.apply(n.t,n,[d,N||T||{},_])},te(r,l){return n.te(r,l)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,l){n.setLocaleMessage(r,l)},mergeLocaleMessage(r,l){n.mergeLocaleMessage(r,l)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,l){n.setDateTimeFormat(r,l)},mergeDateTimeFormat(r,l){n.mergeDateTimeFormat(r,l)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,l){n.setNumberFormat(r,l)},mergeNumberFormat(r,l){n.mergeNumberFormat(r,l)},getChoiceIndex(r,l){return process.env.NODE_ENV!=="production"&&z(le(J.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=r=>{const l=n;l[ke]&&l[ke](r)},s.__disableEmitter=()=>{const r=n;r[Xe]&&r[Xe]()}),s}}const jt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bs({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===D.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},Y())}function Ir(e){return D.Fragment}const Kt=D.defineComponent({name:"i18n-t",props:ne({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>q(e)||!isNaN(e)}},jt),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||qt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(T=>T!=="_"),l=Y();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=v(e.plural)?+e.plural:e.plural);const o=Bs(t,r),u=s[Wt](e.keypath,o,l),_=ne(Y(),a),N=v(e.tag)||$(e.tag)?e.tag:Ir();return D.h(N,_,u)}}});function js(e){return K(e)&&!v(e[0])}function br(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const l={part:!0};let o=Y();e.locale&&(l.locale=e.locale),v(e.format)?l.key=e.format:$(e.format)&&(v(e.format.key)&&(l.key=e.format.key),o=Object.keys(e.format).reduce((d,A)=>n.includes(A)?ne(Y(),d,{[A]:e.format[A]}):d,Y()));const u=a(e.value,l,o);let _=[l.key];K(u)?_=u.map((d,A)=>{const R=s[d.type],P=R?R({[d.type]:d.value,index:A,parts:u}):[d.value];return js(P)&&(P[0].key=`${d.type}-${A}`),P}):v(u)&&(_=[u]);const N=ne(Y(),r),T=v(e.tag)||$(e.tag)?e.tag:Ir();return D.h(T,N,_)}}const hr=D.defineComponent({name:"i18n-n",props:ne({value:{type:Number,required:!0},format:{type:[String,Object]}},jt),setup(e,t){const n=e.i18n||qt({useScope:e.scope,__useComponent:!0});return br(e,t,ir,(...a)=>n[Ht](...a))}}),vr=D.defineComponent({name:"i18n-d",props:ne({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},jt),setup(e,t){const n=e.i18n||qt({useScope:e.scope,__useComponent:!0});return br(e,t,sr,(...a)=>n[Gt](...a))}});function Ks(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Xs(e){const t=l=>{const{instance:o,modifiers:u,value:_}=l;if(!o||!o.$)throw ee(W.UNEXPECTED_ERROR);const N=Ks(e,o.$);process.env.NODE_ENV!=="production"&&u.preserve&&z(le(J.NOT_SUPPORTED_PRESERVE));const T=Ar(_);return[Reflect.apply(N.t,N,[...Cr(T)]),N]};return{created:(l,o)=>{const[u,_]=t(o);me&&e.global===_&&(l.__i18nWatcher=D.watch(_.locale,()=>{o.instance&&o.instance.$forceUpdate()})),l.__composer=_,l.textContent=u},unmounted:l=>{me&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:o})=>{if(l.__composer){const u=l.__composer,_=Ar(o);l.textContent=Reflect.apply(u.t,u,[...Cr(_)])}},getSSRProps:l=>{const[o]=t(l);return{textContent:o}}}}function Ar(e){if(v(e))return{path:e};if(U(e)){if(!("path"in e))throw ee(W.REQUIRED_VALUE,"path");return e}else throw ee(W.INVALID_VALUE)}function Cr(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,l={},o=a||{};return v(n)&&(l.locale=n),q(s)&&(l.plural=s),q(r)&&(l.plural=r),[t,o,l]}function Js(e,t,...n){const a=U(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=w(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&s&&z(le(J.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Kt.name})),r&&([s?"i18n":Kt.name,"I18nT"].forEach(l=>e.component(l,Kt)),[hr.name,"I18nN"].forEach(l=>e.component(l,hr)),[vr.name,"I18nD"].forEach(l=>e.component(l,vr))),e.directive("t",Xs(t))}const Xt={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Qs={"vue-i18n-resource-inspector":"Search for scopes ..."},qs={"vue-i18n-timeline":16764185},Pr="vue-i18n: composer properties";let Jt;async function Zs(e,t){return new Promise((n,a)=>{try{ws({id:"vue-devtools-plugin-vue-i18n",label:Xt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Pr],app:e},s=>{Jt=s,s.on.visitComponentTree(({componentInstance:l,treeNode:o})=>{zs(l,o,t)}),s.on.inspectComponent(({componentInstance:l,instanceData:o})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?l.vnode.el.__VUE_I18N__!==t.global.__composer&&Dr(o,l.vnode.el.__VUE_I18N__):Dr(o,l.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Xt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Qs["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&al(l,t)});const r=new Map;s.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),ll(l,t),l.nodeId==="global"){if(!r.has(l.app)){const[o]=await s.getComponentInstances(l.app);r.set(l.app,o)}s.highlightElement(r.get(l.app))}else{const o=sl(l.nodeId,t);o&&s.highlightElement(o)}}),s.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&il(l,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Xt["vue-i18n-timeline"],color:qs["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),a(!1)}})}function Sr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function zs(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Sr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Dr(e,t){const n=Pr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Qt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Qt(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];B(a)&&"source"in a?t[n]=rl(a):ue(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:$(a)?t[n]=Qt(a):t[n]=a}),t}const el={"<":"<",">":">",'"':""","&":"&"};function tl(e){return e.replace(/[<>"&]/g,nl)}function nl(e){return el[e]||e}function rl(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${tl(e.source)}")`:"(?)"}`}}}function al(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Sr(a)} Scope`})}}function sl(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function Rr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ll(e,t){const n=Rr(e.nodeId,t);return n&&(e.state=ol(n)),null}function ol(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:Qt(e.messages.value)}];t[s]=r;{const l="Datetime formats info",o=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[l]=o;const u="Datetime formats info",_=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=_}return t}function Qe(e,t){if(Jt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Jt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function il(e,t){const n=Rr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&v(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(v(e.state.value)||K(e.state.value)||$(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function cl(e,t,n){return{beforeCreate(){const a=D.getCurrentInstance();if(!a)throw ee(W.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=kr(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Bt(r);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=kr(e,s);else{this.$i18n=Bt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&gr(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,l)=>this.$i18n.te(r,l),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Ct();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",Qe)}},unmounted(){const a=D.getCurrentInstance();if(!a)throw ee(W.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Qe),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function kr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[mr](t.pluralizationRules||e.pluralizationRules);const n=bt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const ul=pe("global-vue-i18n");function fl(e={},t){const n=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=w(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[l,o]=_l(e,n),u=pe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&s&&z(le(J.NOTICE_DROP_ALLOW_COMPOSITION));function _(d){return r.get(d)||null}function N(d,A){r.set(d,A)}function T(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(A,...R){if(process.env.NODE_ENV!=="production"&&(A.__VUE_I18N__=d),A.__VUE_I18N_SYMBOL__=u,A.provide(A.__VUE_I18N_SYMBOL__,d),U(R[0])){const M=R[0];d.__composerExtend=M.__composerExtend,d.__vueI18nExtend=M.__vueI18nExtend}let P=null;!n&&a&&(P=Ll(A,d.global)),__VUE_I18N_FULL_INSTALL__&&Js(A,d,...R),__VUE_I18N_LEGACY_API__&&n&&A.mixin(cl(o,o.__composer,d));const S=A.unmount;if(A.unmount=()=>{P&&P(),d.dispose(),S()},process.env.NODE_ENV!=="production"){if(!await Zs(A,d))throw ee(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=Ct();if(n){const f=o;f.__enableEmitter&&f.__enableEmitter(k)}else{const f=o;f[ke]&&f[ke](k)}k.on("*",Qe)}},get global(){return o},dispose(){l.stop()},__instances:r,__getInstance:_,__setInstance:N,__deleteInstance:T};return d}}function qt(e={}){const t=D.getCurrentInstance();if(t==null)throw ee(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ee(W.NOT_INSTALLED);const n=ml(t),a=El(n),s=Er(t),r=dl(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ee(W.NOT_AVAILABLE_IN_LEGACY_MODE);return Tl(t,r,a,e)}if(r==="global")return gr(a,e,s),a;if(r==="parent"){let u=gl(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&z(le(J.NOT_FOUND_PARENT_SCOPE)),u=a),u}const l=n;let o=l.__getInstance(t);if(o==null){const u=ne({},e);"__i18n"in s&&(u.__i18n=s.__i18n),a&&(u.__root=a),o=Yt(u),l.__composerExtend&&(o[xt]=l.__composerExtend(o)),Nl(l,t,o),l.__setInstance(t,o)}return o}function _l(e,t,n){const a=D.effectScope();{const s=__VUE_I18N_LEGACY_API__&&t?a.run(()=>Bt(e)):a.run(()=>Yt(e));if(s==null)throw ee(W.UNEXPECTED_ERROR);return[a,s]}}function ml(e){{const t=D.inject(e.isCE?ul:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ee(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}}function dl(e,t){return mt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function El(e){return e.mode==="composition"?e.global:e.global.__composer}function gl(e,t,n=!1){let a=null;const s=t.root;let r=pl(t,n);for(;r!=null;){const l=e;if(e.mode==="composition")a=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const o=l.__getInstance(r);o!=null&&(a=o.__composer,n&&a&&!a[dr]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function pl(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Nl(e,t,n){let a=null;D.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Ct();const s=n;s[ke]&&s[ke](a),a.on("*",Qe)}},t),D.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",Qe),s[Xe]&&s[Xe](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[xt];r&&(r(),delete s[xt])},t)}function Tl(e,t,n,a={}){const s=t==="local",r=D.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ee(W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=w(a.inheritLocale)?a.inheritLocale:!v(a.locale),o=D.ref(!s||l?n.locale.value:v(a.locale)?a.locale:Ve),u=D.ref(!s||l?n.fallbackLocale.value:v(a.fallbackLocale)||K(a.fallbackLocale)||U(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:o.value),_=D.ref(bt(o.value,a)),N=D.ref(U(a.datetimeFormats)?a.datetimeFormats:{[o.value]:{}}),T=D.ref(U(a.numberFormats)?a.numberFormats:{[o.value]:{}}),d=s?n.missingWarn:w(a.missingWarn)||be(a.missingWarn)?a.missingWarn:!0,A=s?n.fallbackWarn:w(a.fallbackWarn)||be(a.fallbackWarn)?a.fallbackWarn:!0,R=s?n.fallbackRoot:w(a.fallbackRoot)?a.fallbackRoot:!0,P=!!a.fallbackFormat,S=B(a.missing)?a.missing:null,M=B(a.postTranslation)?a.postTranslation:null,k=s?n.warnHtmlMessage:w(a.warnHtmlMessage)?a.warnHtmlMessage:!0,f=!!a.escapeParameter,E=s?n.modifiers:U(a.modifiers)?a.modifiers:{},L=a.pluralRules||s&&n.pluralRules;function g(){return[o.value,u.value,_.value,N.value,T.value]}const I=D.computed({get:()=>r.value?r.value.locale.value:o.value,set:h=>{r.value&&(r.value.locale.value=h),o.value=h}}),C=D.computed({get:()=>r.value?r.value.fallbackLocale.value:u.value,set:h=>{r.value&&(r.value.fallbackLocale.value=h),u.value=h}}),b=D.computed(()=>r.value?r.value.messages.value:_.value),X=D.computed(()=>N.value),ce=D.computed(()=>T.value);function V(){return r.value?r.value.getPostTranslationHandler():M}function re(h){r.value&&r.value.setPostTranslationHandler(h)}function qe(){return r.value?r.value.getMissingHandler():S}function Ze(h){r.value&&r.value.setMissingHandler(h)}function Te(h){return g(),h()}function ze(...h){return r.value?Te(()=>Reflect.apply(r.value.t,null,[...h])):Te(()=>"")}function et(...h){return r.value?Reflect.apply(r.value.rt,null,[...h]):""}function tt(...h){return r.value?Te(()=>Reflect.apply(r.value.d,null,[...h])):Te(()=>"")}function nt(...h){return r.value?Te(()=>Reflect.apply(r.value.n,null,[...h])):Te(()=>"")}function rt(h){return r.value?r.value.tm(h):{}}function _e(h,G){return r.value?r.value.te(h,G):!1}function Ge(h){return r.value?r.value.getLocaleMessage(h):{}}function He(h,G){r.value&&(r.value.setLocaleMessage(h,G),_.value[h]=G)}function at(h,G){r.value&&r.value.mergeLocaleMessage(h,G)}function st(h){return r.value?r.value.getDateTimeFormat(h):{}}function lt(h,G){r.value&&(r.value.setDateTimeFormat(h,G),N.value[h]=G)}function ht(h,G){r.value&&r.value.mergeDateTimeFormat(h,G)}function ot(h){return r.value?r.value.getNumberFormat(h):{}}function xe(h,G){r.value&&(r.value.setNumberFormat(h,G),T.value[h]=G)}function it(h,G){r.value&&r.value.mergeNumberFormat(h,G)}const ct={get id(){return r.value?r.value.id:-1},locale:I,fallbackLocale:C,messages:b,datetimeFormats:X,numberFormats:ce,get inheritLocale(){return r.value?r.value.inheritLocale:l},set inheritLocale(h){r.value&&(r.value.inheritLocale=h)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(_.value)},get modifiers(){return r.value?r.value.modifiers:E},get pluralRules(){return r.value?r.value.pluralRules:L},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(h){r.value&&(r.value.missingWarn=h)},get fallbackWarn(){return r.value?r.value.fallbackWarn:A},set fallbackWarn(h){r.value&&(r.value.missingWarn=h)},get fallbackRoot(){return r.value?r.value.fallbackRoot:R},set fallbackRoot(h){r.value&&(r.value.fallbackRoot=h)},get fallbackFormat(){return r.value?r.value.fallbackFormat:P},set fallbackFormat(h){r.value&&(r.value.fallbackFormat=h)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(h){r.value&&(r.value.warnHtmlMessage=h)},get escapeParameter(){return r.value?r.value.escapeParameter:f},set escapeParameter(h){r.value&&(r.value.escapeParameter=h)},t:ze,getPostTranslationHandler:V,setPostTranslationHandler:re,getMissingHandler:qe,setMissingHandler:Ze,rt:et,d:tt,n:nt,tm:rt,te:_e,getLocaleMessage:Ge,setLocaleMessage:He,mergeLocaleMessage:at,getDateTimeFormat:st,setDateTimeFormat:lt,mergeDateTimeFormat:ht,getNumberFormat:ot,setNumberFormat:xe,mergeNumberFormat:it};function ut(h){h.locale.value=o.value,h.fallbackLocale.value=u.value,Object.keys(_.value).forEach(G=>{h.mergeLocaleMessage(G,_.value[G])}),Object.keys(N.value).forEach(G=>{h.mergeDateTimeFormat(G,N.value[G])}),Object.keys(T.value).forEach(G=>{h.mergeNumberFormat(G,T.value[G])}),h.escapeParameter=f,h.fallbackFormat=P,h.fallbackRoot=R,h.fallbackWarn=A,h.missingWarn=d,h.warnHtmlMessage=k}return D.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ee(W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const h=r.value=e.proxy.$i18n.__composer;t==="global"?(o.value=h.locale.value,u.value=h.fallbackLocale.value,_.value=h.messages.value,N.value=h.datetimeFormats.value,T.value=h.numberFormats.value):s&&ut(h)}),ct}const Ol=["locale","fallbackLocale","availableLocales"],yr=["t","rt","d","n","tm","te"];function Ll(e,t){const n=Object.create(null);return Ol.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw ee(W.UNEXPECTED_ERROR);const l=D.isRef(r.value)?{get(){return r.value.value},set(o){r.value.value=o}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,l)}),e.config.globalProperties.$i18n=n,yr.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw ee(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,yr.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if($s(),__INTLIFY_JIT_COMPILATION__?Vn(hs):Vn(bs),ds(Xa),Es(Mn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Oe();e.__INTLIFY__=!0,rs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Il={simpleButton:{clickMe:"点击我",clicked:"已点击 {count} 次"},simpleCard:{title:"简单卡片",content:"这是一个简单的卡片组件"}},bl={simpleButton:{clickMe:"Click Me",clicked:"Clicked {count} times"},simpleCard:{title:"Simple Card",content:"This is a simple card component"}},hl=[tn,rn],Mr=e=>{hl.forEach(s=>{e.use(s)});const t=fl({legacy:!1,locale:"zh_CN",fallbackLocale:"zh_CN",messages:{zh_CN:Il,en_US:bl}});e.use(t),t.global.locale.value="zh_CN",Object.assign(t,{switchLocale:s=>{t.global.locale.value=s},mergeLocaleMessage:(s,r)=>{t.global.mergeLocaleMessage(s,r)}})},vl={install:Mr};ge.SimpleButton=tn,ge.SimpleCard=rn,ge.default=vl,ge.install=Mr,Object.defineProperties(ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/lib/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.simple-button[data-v-916874a8]{padding:10px 20px;background-color:#409eff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px}.simple-button[data-v-916874a8]:hover{background-color:#66b1ff}.simple-card[data-v-df720db0]{border:1px solid #ebeef5;border-radius:4px;background-color:#fff;overflow:hidden;box-shadow:0 2px 12px #0000001a}.simple-card__header[data-v-df720db0]{padding:18px 20px;border-bottom:1px solid #ebeef5;font-size:16px;font-weight:700;color:#303133}.simple-card__body[data-v-df720db0]{padding:20px;color:#606266}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "simple-web-lib",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A simple component library with VitePress documentation and i18n support",
|
|
5
|
+
"main": "lib/simple-web-lib.js",
|
|
6
|
+
"module": "lib/simple-web-lib.js",
|
|
7
|
+
"unpkg": "lib/simple-web-lib.js",
|
|
8
|
+
"style": "lib/style.css",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"files": [
|
|
11
|
+
"lib"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"lib": "vite build --mode lib",
|
|
17
|
+
"docs:dev": "vitepress dev docs",
|
|
18
|
+
"docs:build": "vitepress build docs",
|
|
19
|
+
"docs:serve": "vitepress serve docs"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"vue",
|
|
23
|
+
"component-library",
|
|
24
|
+
"vitepress",
|
|
25
|
+
"i18n",
|
|
26
|
+
"typescript"
|
|
27
|
+
],
|
|
28
|
+
"author": "Mr.Fang",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"homepage": "https://github.com/your-username/simple-web-lib#readme",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/your-username/simple-web-lib.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/your-username/simple-web-lib/issues"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"vue": "^3.5.13",
|
|
40
|
+
"vue-i18n": "^9.14.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
44
|
+
"@vitepress-demo-preview/component": "^2.3.2",
|
|
45
|
+
"@vitepress-demo-preview/plugin": "^1.2.3",
|
|
46
|
+
"vite": "^5.0.0",
|
|
47
|
+
"vitepress": "^1.0.0-rc.4",
|
|
48
|
+
"vue": "^3.5.13",
|
|
49
|
+
"vue-i18n": "^9.14.0",
|
|
50
|
+
"typescript": "^5.0.2"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"element-plus": "^2.8.0"
|
|
54
|
+
}
|
|
55
|
+
}
|