lty-protocol 1.0.25 → 1.0.26

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/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { MyButton, Button2, Input, InputNumber, MyLibPlugin, IpInput };
19
19
  */
20
20
  export * from './models';
21
21
  export * from './types';
22
+ export * from './keys';
22
23
  /**
23
24
  * 导出插件
24
25
  */
@@ -3986,6 +3986,7 @@ export {
3986
3986
  ls as ProtocolCollection,
3987
3987
  re as ProtocolItem,
3988
3988
  Ee as ProtocolType,
3989
+ ar as UI_KEY,
3989
3990
  Ni as default,
3990
3991
  lt as protocolMap
3991
3992
  };
@@ -1,6 +1,6 @@
1
- (function(K,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],v):(K=typeof globalThis<"u"?globalThis:K||self,v(K["lty-protocol"]={},K.Vue))})(this,(function(K,v){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const mt=yr(v),Pr=v.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(v.openBlock(),v.createElementBlock("button",{class:"my-btn",onClick:r},[v.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),on=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ln=on(Pr,[["__scopeId","data-v-c654f959"]]),cn=on(v.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(v.openBlock(),v.createElementBlock("button",{class:"my-btn",onClick:r},[v.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),un=Symbol("UI_KEY"),Qe=v.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=v.inject(un);if(!s||!s.Input)throw new Error("Input not registered");const a=s.Input,o=a.modelProp??"modelValue",i=a.modelEvent??"update:modelValue",u="on"+i.charAt(0).toUpperCase()+i.slice(1),m=v.computed(()=>({[o]:n.modelValue,[u]:N=>r("update:modelValue",N)})),b=a.component;return(N,T)=>(v.openBlock(),v.createBlock(v.resolveDynamicComponent(v.unref(b)),v.normalizeProps(v.guardReactiveProps(m.value)),null,16))}}),Dr={style:{display:"flex",gap:"6px"}},dt=v.defineComponent({__name:"IpInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=v.computed({get:()=>(n.modelValue||"0.0.0.0").split("."),set:o=>r("update:modelValue",o.join("."))}),a=(o,i)=>{const u=[...s.value];u[o]=i,s.value=u};return(o,i)=>(v.openBlock(),v.createElementBlock("div",Dr,[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(s.value,(u,m)=>(v.openBlock(),v.createBlock(Qe,{key:m,"model-value":u,"onUpdate:modelValue":b=>a(m,b)},null,8,["model-value","onUpdate:modelValue"]))),128))]))}}),pt=v.defineComponent({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=v.inject("UIComponents",{}).InputNumber;if(!a)throw new Error("InputNumber not registered");const o=a.modelProp??"modelValue",i=a.modelEvent??"update:modelValue",u="on"+i.charAt(0).toUpperCase()+i.slice(1),m=v.computed(()=>({[o]:n.modelValue,[u]:N=>r("update:modelValue",N)})),b=a.component;return(N,T)=>(v.openBlock(),v.createBlock(v.resolveDynamicComponent(v.unref(b)),v.normalizeProps(v.guardReactiveProps(m.value)),null,16))}}),kr={install(e,t){e.provide(un,t)}};class ne{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){ne.registry[t]=n}static fromPlain(t){const n=ne.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class Mr{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,s=t.tab;return{baseInfo:n,config:r,tab:s}}}const Rr={type:"Ethernet",baseInfo:[{key:"name",name:{i18nKey:"name"},defaultValue:"Ethernet"},{key:"supplier",name:{i18nKey:"supplier"},defaultValue:{i18nKey:"company"}},{key:"version",name:{i18nKey:"verison"},defaultValue:"1.0.0.0"},{key:"description",name:{i18nKey:"description"},defaultValue:{i18nKey:"descriptionMap.ethernet"}},{key:"category",name:{i18nKey:"category"},defaultValue:{i18nKey:"ethernet"}}],tab:[{name:{i18nKey:"general"},key:"general"},{name:{i18nKey:"ioMapping"},key:"ioMapping"}],configuration:{general:[{key:"netInterface",name:{i18nKey:"netInterface"},dataType:"string",componentType:"strInput",defaultValue:""},{key:"ipAddress",name:{i18nKey:"ipAddress"},dataType:"string",componentType:"ipInput",defaultValue:"192.168.1.1"},{key:"subnetMask",name:{i18nKey:"subnetMask"},dataType:"string",componentType:"ipInput",defaultValue:"255.255.255.0"},{key:"defaultGateway",name:{i18nKey:"defaultGateway"},dataType:"string",componentType:"ipInput",defaultValue:"0.0.0.0"},{key:"adaptedOSConfiguration",name:{i18nKey:"adaptedOSConfiguration"},dataType:"boolean",componentType:"switch",defaultValue:!1}],ioMapping:[{key:"busCycleTask",name:{i18nKey:"busCycleTask"},dataType:"string",componentType:"select",defaultValue:"-1"}]}};class we extends ne{type=ue.ETHERNET;moduleType=$e[ue.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:s}=Mr.getDefaultConfig(Rr);this.baseInfo=n,this.config=r,this.tab=s}static fromPlain(t){return new we(t)}}class qe extends ne{type=ue.MODBUS_TCP_SERVER;moduleType=$e[ue.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new qe(t)}}class Ze extends ne{type=ue.MODBUS_TCP_CLIENT;moduleType=$e[ue.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new Ze(t)}}class ze extends ne{type=ue.MODBUS_TCP_SLAVE_DEVICE;moduleType=$e[ue.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new ze(t)}}var ue=(e=>(e.ETHERNET="Ethernet",e.MODBUS_TCP_SERVER="ModbusTCPServer",e.MODBUS_TCP_CLIENT="ModbusTCPClient",e.MODBUS_TCP_SLAVE_DEVICE="ModbusTCPSlaveDevice",e.MODBUS_SERIAL_PORT="ModbusSerialPort",e.MODBUS_MASTER="ModbusMaster",e.MODBUS_SLAVE="ModbusSlave",e.MODBUS_SERIAL="ModbusSerial",e.OPCUA_SERVER="OPCUAServer",e.ETHER_CAT_MASTER="EtherCatMaster",e.ETHER_CAT_SLAVE="EtherCatSlave",e.ETHER_CAT_MODULE="EtherCatModule",e))(ue||{});const $e={Pprogrammable:4096,Protgrammable_Safety:4098,CAN_Master:16,CAN_Slave:17,CAN_Device:18,EtherCat_Master:64,EtherCat_Slave:65,ProfinetIO_Master:80,ProfinetIO_Device:81,EthernetIP_Scanner:100,EthernetIP_Adapter:101,Ethernet:110,ModbusTCPServer:88,ModbusTCPClient:89,ModbusTCPSlaveDevice:115,ModbusSerialPort:92,ModbusMaster:90,ModbusSlave:91,ModbusSerial:94,OPCUAServer:128,EtherCatMaster:64,EtherCatSlave:16384,EtherCatModule:16384};class fn{map=new Map;constructor(){ne.register("Ethernet",we),ne.register("ModbusTCPServer",qe),ne.register("ModbusTCPClient",Ze),ne.register("ModbusTCPSlaveDevice",ze)}init(t){this.clear(),t.forEach(n=>{const r=ne.fromPlain(n);this.map.set(n.id,r)})}build(t){return""}get(t){const n=Array.isArray(t)?t.map(r=>this.map.get(r)).filter(r=>r!==void 0):this.map.get(t);if(Array.isArray(n)&&!n.length||!n)throw new Error(`Protocol ${t} is not found.`);return n}add(t){this.map.set(t.id,t)}delete(t){Array.isArray(t)?t.forEach(n=>this.map.delete(n)):this.map.delete(t)}clear(){this.map.clear()}}const Fr=v.defineComponent({__name:"App",setup(e){const t=v.ref("192.168.1.1"),n=v.ref("123"),r=v.ref(12345);return new fn,new we({id:1,deviceId:1,type:"Ethernet"}),(s,a)=>{const o=v.resolveComponent("IpInput"),i=v.resolveComponent("Input"),u=v.resolveComponent("InputNumber");return v.openBlock(),v.createElementBlock("div",null,[v.createVNode(o,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=m=>t.value=m)},null,8,["modelValue"]),v.createVNode(i,{value:n.value,"onUpdate:value":a[1]||(a[1]=m=>n.value=m)},null,8,["value"]),v.createVNode(u,{value:r.value,"onUpdate:value":a[2]||(a[2]=m=>r.value=m),"show-button":!1},null,8,["value"])])}}});function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _n={};function Et(e){_n[e]||(_n[e]=!0,fe(e))}const le=typeof window<"u";let re,be;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(re=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Ur=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ur,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wr=(e,t,n)=>$r({l:e,k:t,s:n}),$r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Vr=e=>gt(e)==="[object Date]",Se=e=>gt(e)==="[object RegExp]",tt=e=>R(e)&&Object.keys(e).length===0,Q=Object.assign,Wr=Object.create,W=(e=null)=>Wr(e);let mn;const Ie=()=>mn||(mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function dn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function pn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,a)=>`${s}="${pn(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,a)=>`${s}='${pn(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Br=Object.prototype.hasOwnProperty;function ie(e,t){return Br.call(e,t)}const x=Array.isArray,G=e=>typeof e=="function",L=e=>typeof e=="string",U=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",Hr=e=>F(e)&&G(e.then)&&G(e.catch),En=Object.prototype.toString,gt=e=>En.call(e),R=e=>gt(e)==="[object Object]",xr=e=>e==null?"":x(e)||R(e)&&e.toString===En?JSON.stringify(e,null,2):String(e);function Tt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const gn=2;function Yr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const a=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=t){for(let i=o-gn;i<=o+gn||n>s;i++){if(i<0||i>=r.length)continue;const u=i+1;a.push(`${u}${" ".repeat(3-String(u).length)}| ${r[i]}`);const m=r[i].length;if(i===o){const b=t-(s-m)+1,N=Math.max(1,n>s?m-b:n-t);a.push(" | "+" ".repeat(b)+"^".repeat(N))}else if(i>o){if(n>s){const b=Math.max(Math.min(n-s,m),1);a.push(" | "+"^".repeat(b))}s+=m+1}}break}return a.join(`
2
- `)}function Nt(){const e=new Map;return{events:e,on(n,r){const s=e.get(n);s&&s.push(r)||e.set(n,[r])},off(n,r){const s=e.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(s=>s(r)),(e.get("*")||[]).slice().map(s=>s(n,r))}}}const nt=e=>!F(e)||x(e);function rt(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(a=>{a!=="__proto__"&&(F(r[a])&&!F(s[a])&&(s[a]=Array.isArray(r[a])?[]:W()),nt(s[a])||nt(r[a])?s[a]=r[a]:n.push({src:r[a],des:s[a]}))})}}function Kr(e,t,n){return{line:e,column:t,offset:n}}function bt(e,t,n){return{start:e,end:t}}const D={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},jr=17,Xr={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ye(e,t,n={}){const{domain:r,messages:s,args:a}=n,o=process.env.NODE_ENV!=="production"?et((s||Xr)[e]||"",...a||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function Jr(e){throw e}const Qr=/<\/?[\w\s="/.':;#-\/]+>/,qr=e=>Qr.test(e),me=" ",Zr="\r",Z=`
3
- `,zr="\u2028",es="\u2029";function ts(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===Zr&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===es,m=E=>t[E]===zr,b=E=>o(E)||i(E)||u(E)||m(E),N=()=>n,T=()=>r,S=()=>s,k=()=>a,A=E=>o(E)||u(E)||m(E)?Z:t[E],y=()=>A(n),f=()=>A(n+a);function d(){return a=0,b(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+a)&&a++,a++,t[n+a]}function p(){n=0,r=1,s=1,a=0}function O(E=0){a=E}function C(){const E=n+a;for(;E!==n;)d();a=0}return{index:N,line:T,column:S,peekOffset:k,charAt:A,currentChar:y,currentPeek:f,next:d,peek:h,reset:p,resetPeek:O,skipToPeek:C}}const pe=void 0,ns=".",Tn="'",rs="tokenizer";function ss(e,t={}){const n=t.location!==!1,r=ts(e),s=()=>r.index(),a=()=>Kr(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:b}=t;function N(l,c,g,...P){const H=m();if(c.column+=g,c.offset+=g,b){const j=n?bt(H.startLoc,c):null,w=ye(l,j,{domain:rs,args:P});b(w)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const P={type:c};return n&&(P.loc=bt(l.startLoc,l.endLoc)),g!=null&&(P.value=g),P}const S=l=>T(l,13);function k(l,c){return l.currentChar()===c?(l.next(),c):(N(D.EXPECTED_TOKEN,a(),0,c),"")}function A(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function y(l){const c=A(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function d(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function h(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function p(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),H=d(P);return l.resetPeek(),H}function O(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()===Tn;return l.resetPeek(),P}function C(l,c){const{currentType:g}=c;if(g!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===me||!j?!1:j===Z?(l.peek(),P()):ce(l,!1)},H=P();return l.resetPeek(),H}function q(l){A(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(H=!1,j="")=>{const w=l.currentPeek();return w==="{"||w==="@"||!w?H:w==="|"?!(j===me||j===Z):w===me?(l.peek(),g(!0,me)):w===Z?(l.peek(),g(!0,Z)):!0},P=g();return c&&l.resetPeek(),P}function Y(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Yt(l){return Y(l,Fe)}function Kt(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function jt(l){return Y(l,Kt)}function Xt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Jt(l){return Y(l,Xt)}function Qt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return Y(l,Qt)}function Ke(l){let c="",g="";for(;c=Jt(l);)g+=c;return g}function qt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function Zt(l){y(l);let c="",g="";for(;c=jt(l);)g+=c;const P=l.currentChar();if(P&&P!=="}"&&P!==pe&&P!==me&&P!==Z&&P!==" "){const H=ft(l);return N(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+H),g+H}return l.currentChar()===pe&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g}function zt(l){y(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),c}function en(l){return l!==Tn&&l!==Z}function Ar(l){y(l),k(l,"'");let c="",g="";for(;c=Y(l,en);)c==="\\"?g+=tn(l):g+=c;const P=l.currentChar();return P===Z||P===pe?(N(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),P===Z&&(l.next(),k(l,"'")),g):(k(l,"'"),g)}function tn(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return ut(l,c,4);case"U":return ut(l,c,6);default:return N(D.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function ut(l,c,g){k(l,c);let P="";for(let H=0;H<g;H++){const j=ge(l);if(!j){N(D.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${P}${l.currentChar()}`);break}P+=j}return`\\${c}${P}`}function nn(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ft(l){y(l);let c="",g="";for(;c=Y(l,nn);)g+=c;return g}function rn(l){let c="",g="";for(;c=Yt(l);)g+=c;return g}function sn(l){const c=g=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===me?g:(g+=P,l.next(),c(g))};return c("")}function je(l){y(l);const c=k(l,"|");return y(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&N(D.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),y(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&N(D.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&y(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=Oe(l,c)||S(c),c.braceNest=0,g;default:{let H=!0,j=!0,w=!0;if(q(l))return c.braceNest>0&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return N(D.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(H=h(l,c))return g=T(c,4,Zt(l)),y(l),g;if(j=p(l,c))return g=T(c,5,zt(l)),y(l),g;if(w=O(l,c))return g=T(c,6,Ar(l)),y(l),g;if(!H&&!j&&!w)return g=T(c,12,ft(l)),N(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),y(l),g;break}}return g}function Oe(l,c){const{currentType:g}=c;let P=null;const H=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(H===Z||H===me)&&N(D.INVALID_LINKED_FORMAT,a(),0),H){case"@":return l.next(),P=T(c,7,"@"),c.inLinked=!0,P;case".":return y(l),l.next(),T(c,8,".");case":":return y(l),l.next(),T(c,9,":");default:return q(l)?(P=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,P):C(l,c)||M(l,c)?(y(l),Oe(l,c)):E(l,c)?(y(l),T(c,11,rn(l))):$(l,c)?(y(l),H==="{"?Xe(l,c)||P:T(c,10,sn(l))):(g===7&&N(D.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||S(c);if(c.inLinked)return Oe(l,c)||S(c);switch(l.currentChar()){case"{":return Xe(l,c)||S(c);case"}":return N(D.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return Oe(l,c)||S(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,qt(l));break}}return g}function an(){const{currentType:l,offset:c,startLoc:g,endLoc:P}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=P,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:an,currentOffset:s,currentPosition:a,context:m}}const as="parser",os=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ls(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function is(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,d,h,p,...O){const C=f.currentPosition();if(C.offset+=p,C.column+=p,n){const E=t?bt(h,C):null,M=ye(d,E,{domain:as,args:O});n(M)}}function s(f,d,h){const p={type:f};return t&&(p.start=d,p.end=d,p.loc={start:h,end:h}),p}function a(f,d,h,p){t&&(f.end=d,f.loc&&(f.loc.end=h))}function o(f,d){const h=f.context(),p=s(3,h.offset,h.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function i(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(5,p,O);return C.index=parseInt(d,10),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function u(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(4,p,O);return C.key=d,f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function m(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(9,p,O);return C.value=d.replace(os,ls),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function b(f){const d=f.nextToken(),h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(8,p,O);return d.type!==11?(r(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,h.lastStartLoc,0),C.value="",a(C,p,O),{nextConsumeToken:d,node:C}):(d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,de(d)),C.value=d.value||"",a(C,f.currentOffset(),f.currentPosition()),{node:C})}function N(f,d){const h=f.context(),p=s(7,h.offset,h.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function T(f){const d=f.context(),h=s(6,d.offset,d.startLoc);let p=f.nextToken();if(p.type===8){const O=b(f);h.modifier=O.node,p=O.nextConsumeToken||f.nextToken()}switch(p.type!==9&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=N(f,p.value||"");break;case 4:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=u(f,p.value||"");break;case 5:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=i(f,p.value||"");break;case 6:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=m(f,p.value||"");break;default:{r(f,D.UNEXPECTED_EMPTY_LINKED_KEY,d.lastStartLoc,0);const O=f.context(),C=s(7,O.offset,O.startLoc);return C.value="",a(C,O.offset,O.startLoc),h.key=C,a(h,O.offset,O.startLoc),{nextConsumeToken:p,node:h}}}return a(h,f.currentOffset(),f.currentPosition()),{node:h}}function S(f){const d=f.context(),h=d.currentType===1?f.currentOffset():d.offset,p=d.currentType===1?d.endLoc:d.startLoc,O=s(2,h,p);O.items=[];let C=null;do{const $=C||f.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(m(f,$.value||""));break;case 7:{const q=T(f);O.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(d.currentType!==13&&d.currentType!==1);const E=d.currentType===1?d.lastOffset:f.currentOffset(),M=d.currentType===1?d.lastEndLoc:f.currentPosition();return a(O,E,M),O}function k(f,d,h,p){const O=f.context();let C=p.items.length===0;const E=s(1,d,h);E.cases=[],E.cases.push(p);do{const M=S(f);C||(C=M.items.length===0),E.cases.push(M)}while(O.currentType!==13);return C&&r(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,h,0),a(E,f.currentOffset(),f.currentPosition()),E}function A(f){const d=f.context(),{offset:h,startLoc:p}=d,O=S(f);return d.currentType===13?O:k(f,h,p,O)}function y(f){const d=ss(f,Q({},e)),h=d.context(),p=s(0,h.offset,h.startLoc);return t&&p.loc&&(p.loc.source=f),p.body=A(d),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),h.currentType!==13&&r(d,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,f[h.offset]||""),a(p,d.currentOffset(),d.currentPosition()),p}return{parse:y}}function de(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function cs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Nn(e,t){for(let n=0;n<e.length;n++)It(e[n],t)}function It(e,t){switch(e.type){case 1:Nn(e.cases,t),t.helper("plural");break;case 2:Nn(e.items,t);break;case 6:{It(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 us(e,t={}){const n=cs(e);n.helper("normalize"),e.body&&It(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function fs(e){const t=e.body;return t.type===2?bn(t):t.cases.forEach(n=>bn(n)),e}function bn(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Tt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const _s="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);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;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(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:if(process.env.NODE_ENV!=="production")throw ye(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:_s,args:[e.type]})}delete e.type}const ms="parser";function ds(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(A,y){o.code+=A}function m(A,y=!0){const f=y?r:"";u(s?f+" ".repeat(A):f)}function b(A=!0){const y=++o.indentLevel;A&&m(y)}function N(A=!0){const y=--o.indentLevel;A&&m(y)}function T(){m(o.indentLevel)}return{context:i,push:u,indent:b,deindent:N,newline:T,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function ps(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),De(e,t.key),t.modifier?(e.push(", "),De(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Es(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(De(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function gs(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(De(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Ts(e,t){t.body?De(e,t.body):e.push("null")}function De(e,t){const{helper:n}=e;switch(t.type){case 0:Ts(e,t);break;case 1:gs(e,t);break;case 2:Es(e,t);break;case 6:ps(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:if(process.env.NODE_ENV!=="production")throw ye(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ms,args:[t.type]})}}const Ns=(e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
- `,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=ds(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${Tt(o.map(b=>`${b}: _${b}`),", ")} } = ctx`),i.newline()),i.push("return "),De(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:m}=i.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function bs(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=is(n).parse(e);return r?(a&&fs(i),s&&Pe(i),{ast:i,code:""}):(us(i,n),Ns(i,n))}function Is(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&ht(e)===0&&(ie(e,"b")||ie(e,"body"))}const In=["b","body"];function hs(e){return Te(e,In)}const hn=["c","cases"];function vs(e){return Te(e,hn,[])}const vn=["s","static"];function Ls(e){return Te(e,vn)}const Ln=["i","items"];function Os(e){return Te(e,Ln,[])}const On=["t","type"];function ht(e){return Te(e,On)}const Cn=["v","value"];function st(e,t){const n=Te(e,Cn);if(n!=null)return n;throw Ve(t)}const An=["m","modifier"];function Cs(e){return Te(e,An)}const Sn=["k","key"];function As(e){const t=Te(e,Sn);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const yn=[...In,...hn,...vn,...Ln,...Sn,...An,...Cn,...On];function Ve(e){return new Error(`unhandled node type: ${e}`)}function vt(e){return n=>Ss(n,e)}function Ss(e,t){const n=hs(t);if(n==null)throw Ve(0);if(ht(n)===1){const a=vs(n);return e.plural(a.reduce((o,i)=>[...o,Pn(e,i)],[]))}else return Pn(e,n)}function Pn(e,t){const n=Ls(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Os(t).reduce((s,a)=>[...s,Lt(e,a)],[]);return e.normalize(r)}}function Lt(e,t){const n=ht(t);switch(n){case 3:return st(t,n);case 9:return st(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=Cs(r),a=As(r);return e.linked(Lt(e,a),s?Lt(e,s):void 0,e.type)}case 7:return st(t,n);case 8:return st(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ys="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ps(e,t){t&&qr(e)&&fe(et(ys,{source:e}))}const Ds=e=>e;let at=W();function ks(e,t={}){let n=!1;const r=t.onError||Jr;return t.onError=s=>{n=!0,r(s)},{...bs(e,t),detectError:n}}function Ms(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&L(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ps(e,n);const s=(t.onCacheKey||Ds)(e),a=at[s];if(a)return a;const{ast:o,detectError:i}=ks(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=vt(o);return i?u:at[s]=u}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=at[n];return r||(at[n]=vt(e))}else return vt(e)}}let We=null;function Rs(e){We=e}function Fs(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Us=ws("function:translate");function ws(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:jr,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},$s=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:Vs}:void 0)}const Vs={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ot(e,t){return t.locale!=null?Dn(t.locale):Dn(e.locale)}let Ct;function Dn(e){if(L(e))return e;if(G(e)){if(e.resolvedOnce&&Ct!=null)return Ct;if(e.constructor.name==="Function"){const t=e();if(Hr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ct=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Ws(e,t,n){return[...new Set([n,...x(t)?t:F(t)?Object.keys(t):L(t)?[t]:[n]])]}function kn(e,t,n){const r=L(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;x(o);)o=Mn(a,o,t);const i=x(t)||!R(t)?t:t.default?t.default:null;o=L(i)?[i]:i,x(o)&&Mn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function Mn(e,t,n){let r=!0;for(let s=0;s<t.length&&U(r);s++){const a=t[s];L(a)&&(r=Gs(e,t[s],n))}return r}function Gs(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Bs(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Bs(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(x(n)||R(n))&&n[s]&&(r=n[s])}return r}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Hs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function xs(e){return Hs.test(e)}function Ys(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 Ks(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 js(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:xs(t)?Ys(t):"*"+t}function Xs(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,m,b,N;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=js(o),o===!1))return!1;T[1]()}};function S(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,i="\\"+k,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(u=Ks(a),N=Ne[r],m=N[u]||N.l||8,m===8||(r=m[0],m[1]!==void 0&&(b=T[m[1]],b&&(i=a,b()===!1))))return;if(r===7)return t}}const Rn=new Map;function Js(e,t){return F(e)?e[t]:null}function Qs(e,t){if(!F(e))return null;let n=Rn.get(t);if(n||(n=Xs(t),n&&Rn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(yn.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}const ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},qs=8,Zs={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.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 he(e,...t){return et(Zs[e],...t)}const zs="11.2.8",ot=-1,Ge="en-US",lt="",Fn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ea(){return{upper:(e,t)=>t==="text"&&L(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&L(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&L(e)?Fn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Fn(e.children):e}}let Un;function ta(e){Un=e}let wn;function na(e){wn=e}let $n;function ra(e){$n=e}let Vn=null;const sa=e=>{Vn=e},aa=()=>Vn;let Wn=null;const Gn=e=>{Wn=e},oa=()=>Wn;let Bn=0;function la(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=L(e.version)?e.version:zs,r=L(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=x(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:At(s),i=R(e.datetimeFormats)?e.datetimeFormats:At(s),u=R(e.numberFormats)?e.numberFormats:At(s),m=Q(W(),e.modifiers,ea()),b=e.pluralRules||W(),N=G(e.missing)?e.missing:null,T=U(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=U(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,A=!!e.unresolving,y=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,d=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,p=G(e.messageCompiler)?e.messageCompiler:Un;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&Et(he(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=G(e.messageResolver)?e.messageResolver:wn||Js,C=G(e.localeFallbacker)?e.localeFallbacker:$n||Ws,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};Bn++;const Y={version:n,cid:Bn,locale:r,fallbackLocale:a,messages:o,modifiers:m,pluralRules:b,missing:N,missingWarn:T,fallbackWarn:S,fallbackFormat:k,unresolving:A,postTranslation:y,processor:f,warnHtmlMessage:d,escapeParameter:h,messageCompiler:p,messageResolver:O,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:ce};return Y.datetimeFormats=i,Y.numberFormats=u,Y.__datetimeFormatters=$,Y.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(Y.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Fs(Y,n,ce),Y}const At=e=>({[e]:W()});function it(e,t){return e instanceof RegExp?e.test(t):e}function Hn(e,t){return e instanceof RegExp?e.test(t):e}function St(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return L(i)?i:t}else return process.env.NODE_ENV!=="production"&&Hn(r,t)&&o(he(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function xn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ia(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(xn(e,t[r]))return!0;return!1}const Yn=typeof Intl<"u",Kn={dateTimeFormat:Yn&&typeof Intl.DateTimeFormat<"u",numberFormat:Yn&&typeof Intl.NumberFormat<"u"};function jn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Kn.dateTimeFormat)return a(he(ee.CANNOT_FORMAT_DATE)),lt;const[u,m,b,N]=yt(...t),T=U(b.missingWarn)?b.missingWarn:e.missingWarn,S=U(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,k=!!b.part,A=Ot(e,b),y=o(e,s,A);if(!L(u)||u==="")return new Intl.DateTimeFormat(A,N).format(m);let f={},d,h=null,p=A,O=null;const C="datetime format";for(let $=0;$<y.length;$++){if(d=O=y[$],process.env.NODE_ENV!=="production"&&A!==d&&it(S,u)&&a(he(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:O,groupId:`${C}:${u}`})}if(f=n[d]||{},h=f[u],R(h))break;St(e,u,d,T,C),p=O}if(!R(h)||!L(d))return r?ot:u;let E=`${d}__${u}`;tt(N)||(E=`${E}__${JSON.stringify(N)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(d,Q({},h,N)),i.set(E,M)),k?M.formatToParts(m):M.format(m)}const Xn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yt(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(L(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(m);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Vr(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Xn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Jn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Qn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Kn.numberFormat)return a(he(ee.CANNOT_FORMAT_NUMBER)),lt;const[u,m,b,N]=Pt(...t),T=U(b.missingWarn)?b.missingWarn:e.missingWarn,S=U(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,k=!!b.part,A=Ot(e,b),y=o(e,s,A);if(!L(u)||u==="")return new Intl.NumberFormat(A,N).format(m);let f={},d,h=null,p=A,O=null;const C="number format";for(let $=0;$<y.length;$++){if(d=O=y[$],process.env.NODE_ENV!=="production"&&A!==d&&it(S,u)&&a(he(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:O,groupId:`${C}:${u}`})}if(f=n[d]||{},h=f[u],R(h))break;St(e,u,d,T,C),p=O}if(!R(h)||!L(d))return r?ot:u;let E=`${d}__${u}`;tt(N)||(E=`${E}__${JSON.stringify(N)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(d,Q({},h,N)),i.set(E,M)),k?M.formatToParts(m):M.format(m)}const qn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Pt(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{qn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Zn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const ca=e=>e,ua=e=>"",fa="text",_a=e=>e.length===0?"":Tt(e),ma=xr;function zn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function da(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function pa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ea(e={}){const t=e.locale,n=da(e),r=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?e.pluralRules[t]:zn,s=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?zn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&pa(n,u);const m=f=>u[f];function b(f,d){const h=G(e.messages)?e.messages(f,!!d):F(e.messages)?e.messages[f]:!1;return h||(e.parent?e.parent.message(f):ua)}const N=f=>e.modifiers?e.modifiers[f]:ca,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:_a,S=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:ma,k=R(e.processor)&&L(e.processor.type)?e.processor.type:fa,y={list:i,named:m,plural:a,linked:(f,...d)=>{const[h,p]=d;let O="text",C="";d.length===1?F(h)?(C=h.modifier||C,O=h.type||O):L(h)&&(C=h||C):d.length===2&&(L(h)&&(C=h||C),L(p)&&(O=p||O));const E=b(f,!0)(y),M=O==="vnode"&&x(E)&&C?E[0]:E;return C?N(C)(M,O):M},message:b,type:k,interpolate:S,normalize:T,values:Q(W(),o,u)};return y}const er=()=>"",ae=e=>G(e);function tr(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,m]=Dt(...t),b=U(m.missingWarn)?m.missingWarn:e.missingWarn,N=U(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,T=U(m.escapeParameter)?m.escapeParameter:e.escapeParameter,S=!!m.resolvedMessage,k=L(m.default)||U(m.default)?U(m.default)?a?u:()=>u:m.default:n?a?u:()=>u:null,A=n||k!=null&&(L(k)||G(k)),y=Ot(e,m);T&&ga(m);let[f,d,h]=S?[u,y,i[y]||W()]:nr(e,u,y,o,N,b),p=f,O=u;if(!S&&!(L(p)||se(p)||ae(p))&&A&&(p=k,O=p),!S&&(!(L(p)||se(p)||ae(p))||!L(d)))return s?ot:u;if(process.env.NODE_ENV!=="production"&&L(p)&&e.messageCompiler==null)return fe(`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 C=!1;const E=()=>{C=!0},M=ae(p)?p:rr(e,u,d,p,O,E);if(C)return p;const $=Ia(e,d,h,m),q=Ea($),ce=Ta(e,M,q);let Y=r?r(ce,u):ce;if(T&&L(Y)&&(Y=Gr(Y)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:L(u)?u:ae(p)?p.key:"",locale:d||(ae(p)?p.locale:""),format:L(p)?p:ae(p)?p.source:"",message:Y};Fe.meta=Q({},e.__meta,aa()||{}),Us(Fe)}return Y}function ga(e){x(e.list)?e.list=e.list.map(t=>L(t)?dn(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{L(e.named[t])&&(e.named[t]=dn(e.named[t]))})}function nr(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:m}=e,b=m(e,r,n);let N=W(),T,S=null,k=n,A=null;const y="translate";for(let f=0;f<b.length;f++){if(T=A=b[f],process.env.NODE_ENV!=="production"&&n!==T&&!xn(n,T)&&it(s,t)&&i(he(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const O=e.__v_emitter;O&&O.emit("fallback",{type:y,key:t,from:k,to:A,groupId:`${y}:${t}`})}N=o[T]||W();let d=null,h,p;if(process.env.NODE_ENV!=="production"&&le&&(d=window.performance.now(),h="intlify-message-resolve-start",p="intlify-message-resolve-end",re&&re(h)),(S=u(N,t))===null&&(S=N[t]),process.env.NODE_ENV!=="production"&&le){const O=window.performance.now(),C=e.__v_emitter;C&&d&&S&&C.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:O-d,groupId:`${y}:${t}`}),h&&p&&re&&be&&(re(p),be("intlify message resolve",h,p))}if(L(S)||se(S)||ae(S))break;if(!ia(T,b)){const O=St(e,t,T,a,y);O!==t&&(S=O)}k=A}return[S,T,N]}function rr(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,m,b;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),m="intlify-message-compilation-start",b="intlify-message-compilation-end",re&&re(m));const N=o(r,Na(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),S=e.__v_emitter;S&&u&&S.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),m&&b&&re&&be&&(re(b),be("intlify message compilation",m,b))}return N.locale=n,N.key=t,N.source=r,N}function Ta(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function Dt(...e){const[t,n,r]=e,s=W();if(!L(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:L(n)?s.default=n:R(n)&&!tt(n)?s.named=n:x(n)&&(s.list=n),J(r)?s.plural=r:L(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function Na(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=ba(r),u=`Message compilation error: ${o.message}`,m=o.location&&i&&Yr(i,o.location.start.offset,o.location.end.offset),b=e.__v_emitter;b&&i&&b.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
5
- ${m}`:u)}else throw o},onCacheKey:o=>wr(t,n,o)}}function ba(e){if(L(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ia(e,t,n,r){const{modifiers:s,pluralRules:a,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:m,fallbackContext:b}=e,T={locale:t,modifiers:s,pluralRules:a,messages:(S,k)=>{let A=o(n,S);if(A==null&&(b||k)){const[,,y]=nr(b||e,S,t,i,u,m);A=o(y,S)}if(L(A)||se(A)){let y=!1;const d=rr(e,S,t,A,S,()=>{y=!0});return y?er:d}else return ae(A)?A:er}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),J(r.plural)&&(T.pluralIndex=r.plural),T}Is();function ha(){return sr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function sr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const va=typeof Proxy=="function",La="devtools-plugin:setup",Oa="plugin:settings:set";let ke,kt;function Ca(){var e;return ke!==void 0||(typeof window<"u"&&window.performance?(ke=!0,kt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ke=!0,kt=globalThis.perf_hooks.performance):ke=!1),ke}function Aa(){return Ca()?kt.now():Date.now()}class Sa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(s),i=JSON.parse(o);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}a=o},now(){return Aa()}},n&&n.on(Oa,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(m=>{this.targetQueue.push({method:i,args:u,resolve:m})})})}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 ya(e,t){const n=e,r=sr(),s=ha(),a=va&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(La,e,t);else{const o=a?new Sa(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const Pa="11.2.8";function Da(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ie().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ie().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1)}const B={UNEXPECTED_RETURN_TYPE:$s,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:ka,args:t}:void 0)}const ka={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mt=_e("__translateVNode"),Rt=_e("__datetimeParts"),Ft=_e("__numberParts"),ve=_e("__enableEmitter"),He=_e("__disableEmitter"),ar=_e("__setPluralRules"),or=_e("__injectWithOption"),Ut=_e("__dispose"),oe={FALLBACK_TO_ROOT:qs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Ma={[oe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[oe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[oe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[oe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
6
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Me(e,...t){return et(Ma[e],...t)}function xe(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&xe(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?yn.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&xe(o)}}return e}function wt(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:x(r)?W():{[e]:W()};if(x(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(o[u]=o[u]||W(),rt(m,o[u])):rt(m,o)}else L(i)&&rt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&xe(o[i]);return o}function lr(e){return e.type}function ir(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=wt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function cr(e){return v.createVNode(v.Text,null,e,0)}function Re(){const e="currentInstance";return e in mt?mt[e]:mt.getCurrentInstance()}const ur="__INTLIFY_META__",fr=()=>[],Ra=()=>!1;let _r=0;function mr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const Fa=()=>{const e=Re();let t=null;return e&&(t=lr(e)[ur])?{[ur]:t}:null};function $t(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?v.ref:v.shallowRef;let o=U(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:L(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:L(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=a(wt(i.value,e)),b=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),N=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:U(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:U(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=G(e.missing)?e.missing:null,f=G(e.missing)?mr(e.missing):null,d=G(e.postTranslation)?e.postTranslation:null,h=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const O=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Gn(null);const _={version:Pa,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:O,pluralRules:C,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:d===null?void 0:d,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=b.value,_.numberFormats=N.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const I=la(_);return r&&Gn(I),I})(),Be(E,i.value,u.value);function $(){return[i.value,u.value,m.value,b.value,N.value]}const q=v.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=v.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,Be(E,i.value,_)}}),Y=v.computed(()=>m.value),Fe=v.computed(()=>b.value),Yt=v.computed(()=>N.value);function Kt(){return G(d)?d:null}function jt(_){d=_,E.postTranslation=_}function Xt(){return y}function Jt(_){_!==null&&(f=mr(_)),y=_,E.missing=f}function Qt(_,I){return _!=="translate"||!I.resolvedMessage}const ge=(_,I,V,X,Ce,_t)=>{$();let Ue;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?oa():void 0),Ue=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(Ue)&&Ue===ot||V==="translate exists"&&!Ue){const[Ae,Eo]=I();if(process.env.NODE_ENV!=="production"&&t&&L(Ae)&&Qt(V,Eo)&&(k&&(it(S,Ae)||Hn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Sr}=E;Sr&&k&&Sr.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&k?X(t):Ce(Ae)}else{if(_t(Ue))return Ue;throw te(B.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(I=>Reflect.apply(tr,null,[I,..._]),()=>Dt(..._),"translate",I=>Reflect.apply(I.t,I,[..._]),I=>I,I=>L(I))}function qt(..._){const[I,V,X]=_;if(X&&!F(X))throw te(B.INVALID_ARGUMENT);return Ke(I,V,Q({resolvedMessage:!0},X||{}))}function Zt(..._){return ge(I=>Reflect.apply(jn,null,[I,..._]),()=>yt(..._),"datetime format",I=>Reflect.apply(I.d,I,[..._]),()=>lt,I=>L(I)||x(I))}function zt(..._){return ge(I=>Reflect.apply(Qn,null,[I,..._]),()=>Pt(..._),"number format",I=>Reflect.apply(I.n,I,[..._]),()=>lt,I=>L(I)||x(I))}function en(_){return _.map(I=>L(I)||J(I)||U(I)?cr(String(I)):I)}const tn={normalize:en,interpolate:_=>_,type:"vnode"};function ut(..._){return ge(I=>{let V;const X=I;try{X.processor=tn,V=Reflect.apply(tr,null,[X,..._])}finally{X.processor=null}return V},()=>Dt(..._),"translate",I=>I[Mt](..._),I=>[cr(I)],I=>x(I))}function nn(..._){return ge(I=>Reflect.apply(Qn,null,[I,..._]),()=>Pt(..._),"number format",I=>I[Ft](..._),fr,I=>L(I)||x(I))}function ft(..._){return ge(I=>Reflect.apply(jn,null,[I,..._]),()=>yt(..._),"datetime format",I=>I[Rt](..._),fr,I=>L(I)||x(I))}function rn(_){C=_,E.pluralRules=C}function sn(_,I){return ge(()=>{if(!_)return!1;const V=L(I)?I:i.value,X=Oe(V),Ce=E.messageResolver(X,_);return se(Ce)||ae(Ce)||L(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,I]),Ra,V=>U(V))}function je(_){let I=null;const V=kn(E,u.value,i.value);for(let X=0;X<V.length;X++){const Ce=m.value[V[X]]||{},_t=E.messageResolver(Ce,_);if(_t!=null){I=_t;break}}return I}function Xe(_){const I=je(_);return I??(t?t.tm(_)||{}:{})}function Oe(_){return m.value[_]||{}}function Je(_,I){if(s){const V={[_]:I};for(const X in V)ie(V,X)&&xe(V[X]);I=V[_]}m.value[_]=I,E.messages=m.value}function an(_,I){m.value[_]=m.value[_]||{};const V={[_]:I};if(s)for(const X in V)ie(V,X)&&xe(V[X]);I=V[_],rt(I,m.value[_]),E.messages=m.value}function l(_){return b.value[_]||{}}function c(_,I){b.value[_]=I,E.datetimeFormats=b.value,Jn(E,_,I)}function g(_,I){b.value[_]=Q(b.value[_]||{},I),E.datetimeFormats=b.value,Jn(E,_,I)}function P(_){return N.value[_]||{}}function H(_,I){N.value[_]=I,E.numberFormats=N.value,Zn(E,_,I)}function j(_,I){N.value[_]=Q(N.value[_]||{},I),E.numberFormats=N.value,Zn(E,_,I)}_r++,t&&le&&(v.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,Be(E,i.value,u.value))}),v.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,Be(E,i.value,u.value))}));const w={id:_r,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Be(E,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:Y,get modifiers(){return O},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return S},set fallbackWarn(_){S=_,E.fallbackWarn=S},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,E.fallbackFormat=A},get warnHtmlMessage(){return h},set warnHtmlMessage(_){h=_,E.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,E.escapeParameter=_},t:Ke,getLocaleMessage:Oe,setLocaleMessage:Je,mergeLocaleMessage:an,getPostTranslationHandler:Kt,setPostTranslationHandler:jt,getMissingHandler:Xt,setMissingHandler:Jt,[ar]:rn};return w.datetimeFormats=Fe,w.numberFormats=Yt,w.rt=qt,w.te=sn,w.tm=Xe,w.d=Zt,w.n=zt,w.getDateTimeFormat=l,w.setDateTimeFormat=c,w.mergeDateTimeFormat=g,w.getNumberFormat=P,w.setNumberFormat=H,w.mergeNumberFormat=j,w[or]=n,w[Mt]=ut,w[Rt]=ft,w[Ft]=nn,process.env.NODE_ENV!=="production"&&(w[ve]=_=>{E.__v_emitter=_},w[He]=()=>{E.__v_emitter=void 0}),w}const dr="vue-i18n: composer properties",Vt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ua={"vue-i18n-resource-inspector":"Search for scopes ..."},wa={"vue-i18n-timeline":16764185};let Wt;async function $a(e,t){return new Promise((n,r)=>{try{ya({id:"vue-devtools-plugin-vue-i18n",label:Vt["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:[dr],app:e},s=>{Wt=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Va(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&Er(i,o.__VUE_I18N__):Er(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Vt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ua["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&xa(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Ka(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=Ya(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Xa(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Vt["vue-i18n-timeline"],color:wa["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function pr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Va(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${pr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Er(e,t){const n=dr;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:Gt(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 Gt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Ha(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=Gt(r):t[n]=r}),t}const Wa={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Ga(e){return e.replace(/[<>"&]/g,Ba)}function Ba(e){return Wa[e]||e}function Ha(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Ga(e.source)}")`:"(?)"}`}}}function xa(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${pr(r)} Scope`})}}function Ya(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function gr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Ka(e,t){const n=gr(e.nodeId,t);return n&&(e.state=ja(n)),null}function ja(e){const t={},n="Locale related info",r=[{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]=r;const s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:Gt(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function Ye(e,t){if(Wt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Wt.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 Xa(e,t){const n=gr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&L(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(L(e.state.value)||x(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ja(e){const t=L(e.locale)?e.locale:Ge,n=L(e.fallbackLocale)||x(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=U(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=U(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=U(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,b=G(e.postTranslation)?e.postTranslation:void 0,N=L(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,S=U(e.sync)?e.sync:!0;let k=e.messages;if(R(e.sharedMessages)){const O=e.sharedMessages;k=Object.keys(O).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,O[M]),E},k||{})}const{__i18n:A,__root:y,__injectWithOption:f}=e,d=e.datetimeFormats,h=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:p,datetimeFormats:d,numberFormats:h,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:b,warnHtmlMessage:N,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:f}}function Bt(e={}){const t=$t(Ja(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=U(s)?!s:s},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=U(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[ve]&&a[ve](s)},r.__disableEmitter=()=>{const s=t;s[He]&&s[He]()}),r}function Qa(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=Tr(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Bt(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Tr(e,s);else{this.$i18n=Bt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&ir(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=Nt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",Ye)}},unmounted(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ye),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Tr(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[ar](t.pluralizationRules||e.pluralizationRules);const n=wt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Ht={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function qa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===v.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function Nr(){return v.Fragment}const br=v.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Ht),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(N=>N[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=L(e.plural)?+e.plural:e.plural);const i=qa(t,a),u=s[Mt](e.keypath,i,o),m=Q(W(),r),b=L(e.tag)||F(e.tag)?e.tag:Nr();return v.h(b,m,u)}}});function Za(e){return x(e)&&!L(e[0])}function Ir(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),L(e.format)?o.key=e.format:F(e.format)&&(L(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,S)=>n.includes(S)?Q(W(),T,{[S]:e.format[S]}):T,W()));const u=r(e.value,o,i);let m=[o.key];x(u)?m=u.map((T,S)=>{const k=s[T.type],A=k?k({[T.type]:T.value,index:S,parts:u}):[T.value];return Za(A)&&(A[0].key=`${T.type}-${S}`),A}):L(u)&&(m=[u]);const b=Q(W(),a),N=L(e.tag)||F(e.tag)?e.tag:Nr();return v.h(N,b,m)}}const hr=v.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Ht),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return Ir(e,t,qn,(...r)=>n[Ft](...r))}});function za(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function eo(e){const t=o=>{process.env.NODE_ENV!=="production"&&Et(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(B.UNEXPECTED_ERROR);const m=za(e,i.$),b=vr(u);return[Reflect.apply(m.t,m,[...Lr(b)]),m]};return{created:(o,i)=>{const[u,m]=t(i);le&&e.global===m&&(o.__i18nWatcher=v.watch(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=m,o.textContent=u},unmounted:o=>{le&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const u=o.__composer,m=vr(i);o.textContent=Reflect.apply(u.t,u,[...Lr(m)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function vr(e){if(L(e))return{path:e};if(R(e)){if(!("path"in e))throw te(B.REQUIRED_VALUE,"path");return e}else throw te(B.INVALID_VALUE)}function Lr(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return L(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function to(e,t,...n){const r=R(n[0])?n[0]:{};(!U(r.globalInstall)||r.globalInstall)&&([br.name,"I18nT"].forEach(a=>e.component(a,br)),[hr.name,"I18nN"].forEach(a=>e.component(a,hr)),[Cr.name,"I18nD"].forEach(a=>e.component(a,Cr))),e.directive("t",eo(t))}const no=_e("global-vue-i18n");function ro(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Et(Me(oe.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=so(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(N){return r.get(N)||null}function u(N,T){r.set(N,T)}function m(N){r.delete(N)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(N,...T){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=b),N.__VUE_I18N_SYMBOL__=o,N.provide(N.__VUE_I18N_SYMBOL__,b),R(T[0])){const A=T[0];b.__composerExtend=A.__composerExtend,b.__vueI18nExtend=A.__vueI18nExtend}let S=null;!t&&n&&(S=_o(N,b.global)),__VUE_I18N_FULL_INSTALL__&&to(N,b,...T),__VUE_I18N_LEGACY_API__&&t&&N.mixin(Qa(a,a.__composer,b));const k=N.unmount;if(N.unmount=()=>{S&&S(),b.dispose(),k()},process.env.NODE_ENV!=="production"){if(!await $a(N,b))throw te(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=Nt();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(y)}else{const f=a;f[ve]&&f[ve](y)}y.on("*",Ye)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:m};return b}function xt(e={}){const t=Re();if(t==null)throw te(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(B.NOT_INSTALLED);const n=ao(t),r=lo(n),s=lr(t),a=oo(e,s);if(a==="global")return ir(r,e,s),r;if(a==="parent"){let u=io(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=$t(u),o.__composerExtend&&(i[Ut]=o.__composerExtend(i)),uo(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function so(e,t){const n=v.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Bt(e)):n.run(()=>$t(e));if(r==null)throw te(B.UNEXPECTED_ERROR);return[n,r]}function ao(e){const t=v.inject(e.isCE?no:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function oo(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function lo(e){return e.mode==="composition"?e.global:e.global.__composer}function io(e,t,n=!1){let r=null;const s=t.root;let a=co(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[or]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function co(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function uo(e,t,n){let r=null;v.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=Nt();const s=n;s[ve]&&s[ve](r),r.on("*",Ye)}},t),v.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Ye),s[He]&&s[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[Ut];a&&(a(),delete s[Ut])},t)}const fo=["locale","fallbackLocale","availableLocales"],Or=["t","rt","d","n","tm","te"];function _o(e,t){const n=Object.create(null);return fo.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(B.UNEXPECTED_ERROR);const o=v.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Or.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,Or.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Cr=v.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ht),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return Ir(e,t,Xn,(...r)=>n[Rt](...r))}});if(Da(),ta(Ms),na(Qs),ra(kn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ie();e.__INTLIFY__=!0,Rs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Le=ro({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Le.global.t.bind(Le.global),Object.defineProperty(window,"$locale",{get(){return typeof Le.global.locale=="string"?Le.global.locale:Le.global.locale.value},set(e){Le.global.locale=e}}));const ct=v.createApp(Fr).use(Le);ct.component("Input",Qe),ct.component("InputNumber",pt),ct.component("IpInput",dt),ct.mount("#app");const mo=[ln,cn,Qe,pt,dt],po={install(e){mo.forEach(t=>{e.component(t.name,t)})}};K.Button2=cn,K.EthernetProtocolItem=we,K.Input=Qe,K.InputNumber=pt,K.IpInput=dt,K.ModbusTCPClientProtocolItem=Ze,K.ModbusTCPServerProtocolItem=qe,K.ModbusTCPSlaveDeviceProtocolItem=ze,K.MyButton=ln,K.MyLibPlugin=kr,K.ProtocolCollection=fn,K.ProtocolItem=ne,K.ProtocolType=ue,K.default=po,K.protocolMap=$e,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(x,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],v):(x=typeof globalThis<"u"?globalThis:x||self,v(x["lty-protocol"]={},x.Vue))})(this,(function(x,v){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const mt=yr(v),Pr=v.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(v.openBlock(),v.createElementBlock("button",{class:"my-btn",onClick:r},[v.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),ln=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},cn=ln(Pr,[["__scopeId","data-v-c654f959"]]),un=ln(v.defineComponent({name:"MyButton",__name:"button2",emits:["click"],setup(e,{emit:t}){const n=t,r=()=>{n("click")};return(s,a)=>(v.openBlock(),v.createElementBlock("button",{class:"my-btn",onClick:r},[v.renderSlot(s.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-1477cfc3"]]),dt=Symbol("UI_KEY"),Qe=v.defineComponent({__name:"Input",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=v.inject(dt);if(!s||!s.Input)throw new Error("Input not registered");const a=s.Input,o=a.modelProp??"modelValue",i=a.modelEvent??"update:modelValue",u="on"+i.charAt(0).toUpperCase()+i.slice(1),m=v.computed(()=>({[o]:n.modelValue,[u]:N=>r("update:modelValue",N)})),b=a.component;return(N,T)=>(v.openBlock(),v.createBlock(v.resolveDynamicComponent(v.unref(b)),v.normalizeProps(v.guardReactiveProps(m.value)),null,16))}}),Dr={style:{display:"flex",gap:"6px"}},pt=v.defineComponent({__name:"IpInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=v.computed({get:()=>(n.modelValue||"0.0.0.0").split("."),set:o=>r("update:modelValue",o.join("."))}),a=(o,i)=>{const u=[...s.value];u[o]=i,s.value=u};return(o,i)=>(v.openBlock(),v.createElementBlock("div",Dr,[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(s.value,(u,m)=>(v.openBlock(),v.createBlock(Qe,{key:m,"model-value":u,"onUpdate:modelValue":b=>a(m,b)},null,8,["model-value","onUpdate:modelValue"]))),128))]))}}),Et=v.defineComponent({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=v.inject("UIComponents",{}).InputNumber;if(!a)throw new Error("InputNumber not registered");const o=a.modelProp??"modelValue",i=a.modelEvent??"update:modelValue",u="on"+i.charAt(0).toUpperCase()+i.slice(1),m=v.computed(()=>({[o]:n.modelValue,[u]:N=>r("update:modelValue",N)})),b=a.component;return(N,T)=>(v.openBlock(),v.createBlock(v.resolveDynamicComponent(v.unref(b)),v.normalizeProps(v.guardReactiveProps(m.value)),null,16))}}),kr={install(e,t){e.provide(dt,t)}};class ne{id;deviceId;type;static registry={};constructor(t){this.id=t.id,this.deviceId=t.deviceId}static register(t,n){ne.registry[t]=n}static fromPlain(t){const n=ne.registry[t.type];if(!n)throw new Error(`Unsupported protocol type: ${t.type}`);return n.fromPlain(t)}}class Mr{static getDefaultConfig(t){console.log(1231231,t);const n=t.baseInfo,r=t.configuration,s=t.tab;return{baseInfo:n,config:r,tab:s}}}const Rr={type:"Ethernet",baseInfo:[{key:"name",name:{i18nKey:"name"},defaultValue:"Ethernet"},{key:"supplier",name:{i18nKey:"supplier"},defaultValue:{i18nKey:"company"}},{key:"version",name:{i18nKey:"verison"},defaultValue:"1.0.0.0"},{key:"description",name:{i18nKey:"description"},defaultValue:{i18nKey:"descriptionMap.ethernet"}},{key:"category",name:{i18nKey:"category"},defaultValue:{i18nKey:"ethernet"}}],tab:[{name:{i18nKey:"general"},key:"general"},{name:{i18nKey:"ioMapping"},key:"ioMapping"}],configuration:{general:[{key:"netInterface",name:{i18nKey:"netInterface"},dataType:"string",componentType:"strInput",defaultValue:""},{key:"ipAddress",name:{i18nKey:"ipAddress"},dataType:"string",componentType:"ipInput",defaultValue:"192.168.1.1"},{key:"subnetMask",name:{i18nKey:"subnetMask"},dataType:"string",componentType:"ipInput",defaultValue:"255.255.255.0"},{key:"defaultGateway",name:{i18nKey:"defaultGateway"},dataType:"string",componentType:"ipInput",defaultValue:"0.0.0.0"},{key:"adaptedOSConfiguration",name:{i18nKey:"adaptedOSConfiguration"},dataType:"boolean",componentType:"switch",defaultValue:!1}],ioMapping:[{key:"busCycleTask",name:{i18nKey:"busCycleTask"},dataType:"string",componentType:"select",defaultValue:"-1"}]}};class we extends ne{type=ue.ETHERNET;moduleType=$e[ue.ETHERNET];baseInfo;config;tab;constructor(t){super(t);const{baseInfo:n,config:r,tab:s}=Mr.getDefaultConfig(Rr);this.baseInfo=n,this.config=r,this.tab=s}static fromPlain(t){return new we(t)}}class qe extends ne{type=ue.MODBUS_TCP_SERVER;moduleType=$e[ue.MODBUS_TCP_SERVER];constructor(t){super(t)}static fromPlain(t){return new qe(t)}}class Ze extends ne{type=ue.MODBUS_TCP_CLIENT;moduleType=$e[ue.MODBUS_TCP_CLIENT];constructor(t){super(t)}static fromPlain(t){return new Ze(t)}}class ze extends ne{type=ue.MODBUS_TCP_SLAVE_DEVICE;moduleType=$e[ue.MODBUS_TCP_SLAVE_DEVICE];constructor(t){super(t)}static fromPlain(t){return new ze(t)}}var ue=(e=>(e.ETHERNET="Ethernet",e.MODBUS_TCP_SERVER="ModbusTCPServer",e.MODBUS_TCP_CLIENT="ModbusTCPClient",e.MODBUS_TCP_SLAVE_DEVICE="ModbusTCPSlaveDevice",e.MODBUS_SERIAL_PORT="ModbusSerialPort",e.MODBUS_MASTER="ModbusMaster",e.MODBUS_SLAVE="ModbusSlave",e.MODBUS_SERIAL="ModbusSerial",e.OPCUA_SERVER="OPCUAServer",e.ETHER_CAT_MASTER="EtherCatMaster",e.ETHER_CAT_SLAVE="EtherCatSlave",e.ETHER_CAT_MODULE="EtherCatModule",e))(ue||{});const $e={Pprogrammable:4096,Protgrammable_Safety:4098,CAN_Master:16,CAN_Slave:17,CAN_Device:18,EtherCat_Master:64,EtherCat_Slave:65,ProfinetIO_Master:80,ProfinetIO_Device:81,EthernetIP_Scanner:100,EthernetIP_Adapter:101,Ethernet:110,ModbusTCPServer:88,ModbusTCPClient:89,ModbusTCPSlaveDevice:115,ModbusSerialPort:92,ModbusMaster:90,ModbusSlave:91,ModbusSerial:94,OPCUAServer:128,EtherCatMaster:64,EtherCatSlave:16384,EtherCatModule:16384};class fn{map=new Map;constructor(){ne.register("Ethernet",we),ne.register("ModbusTCPServer",qe),ne.register("ModbusTCPClient",Ze),ne.register("ModbusTCPSlaveDevice",ze)}init(t){this.clear(),t.forEach(n=>{const r=ne.fromPlain(n);this.map.set(n.id,r)})}build(t){return""}get(t){const n=Array.isArray(t)?t.map(r=>this.map.get(r)).filter(r=>r!==void 0):this.map.get(t);if(Array.isArray(n)&&!n.length||!n)throw new Error(`Protocol ${t} is not found.`);return n}add(t){this.map.set(t.id,t)}delete(t){Array.isArray(t)?t.forEach(n=>this.map.delete(n)):this.map.delete(t)}clear(){this.map.clear()}}const Fr=v.defineComponent({__name:"App",setup(e){const t=v.ref("192.168.1.1"),n=v.ref("123"),r=v.ref(12345);return new fn,new we({id:1,deviceId:1,type:"Ethernet"}),(s,a)=>{const o=v.resolveComponent("IpInput"),i=v.resolveComponent("Input"),u=v.resolveComponent("InputNumber");return v.openBlock(),v.createElementBlock("div",null,[v.createVNode(o,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=m=>t.value=m)},null,8,["modelValue"]),v.createVNode(i,{value:n.value,"onUpdate:value":a[1]||(a[1]=m=>n.value=m)},null,8,["value"]),v.createVNode(u,{value:r.value,"onUpdate:value":a[2]||(a[2]=m=>r.value=m),"show-button":!1},null,8,["value"])])}}});function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _n={};function gt(e){_n[e]||(_n[e]=!0,fe(e))}const le=typeof window<"u";let re,be;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(re=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Ur=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ur,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wr=(e,t,n)=>$r({l:e,k:t,s:n}),$r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Vr=e=>Tt(e)==="[object Date]",Se=e=>Tt(e)==="[object RegExp]",tt=e=>R(e)&&Object.keys(e).length===0,Q=Object.assign,Wr=Object.create,W=(e=null)=>Wr(e);let mn;const Ie=()=>mn||(mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function dn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function pn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,a)=>`${s}="${pn(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,a)=>`${s}='${pn(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Br=Object.prototype.hasOwnProperty;function ie(e,t){return Br.call(e,t)}const Y=Array.isArray,G=e=>typeof e=="function",L=e=>typeof e=="string",U=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",Hr=e=>F(e)&&G(e.then)&&G(e.catch),En=Object.prototype.toString,Tt=e=>En.call(e),R=e=>Tt(e)==="[object Object]",Yr=e=>e==null?"":Y(e)||R(e)&&e.toString===En?JSON.stringify(e,null,2):String(e);function Nt(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const gn=2;function xr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const a=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=t){for(let i=o-gn;i<=o+gn||n>s;i++){if(i<0||i>=r.length)continue;const u=i+1;a.push(`${u}${" ".repeat(3-String(u).length)}| ${r[i]}`);const m=r[i].length;if(i===o){const b=t-(s-m)+1,N=Math.max(1,n>s?m-b:n-t);a.push(" | "+" ".repeat(b)+"^".repeat(N))}else if(i>o){if(n>s){const b=Math.max(Math.min(n-s,m),1);a.push(" | "+"^".repeat(b))}s+=m+1}}break}return a.join(`
2
+ `)}function bt(){const e=new Map;return{events:e,on(n,r){const s=e.get(n);s&&s.push(r)||e.set(n,[r])},off(n,r){const s=e.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(s=>s(r)),(e.get("*")||[]).slice().map(s=>s(n,r))}}}const nt=e=>!F(e)||Y(e);function rt(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(a=>{a!=="__proto__"&&(F(r[a])&&!F(s[a])&&(s[a]=Array.isArray(r[a])?[]:W()),nt(s[a])||nt(r[a])?s[a]=r[a]:n.push({src:r[a],des:s[a]}))})}}function Kr(e,t,n){return{line:e,column:t,offset:n}}function It(e,t,n){return{start:e,end:t}}const D={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},jr=17,Xr={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ye(e,t,n={}){const{domain:r,messages:s,args:a}=n,o=process.env.NODE_ENV!=="production"?et((s||Xr)[e]||"",...a||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function Jr(e){throw e}const Qr=/<\/?[\w\s="/.':;#-\/]+>/,qr=e=>Qr.test(e),me=" ",Zr="\r",Z=`
3
+ `,zr="\u2028",es="\u2029";function ts(e){const t=e;let n=0,r=1,s=1,a=0;const o=E=>t[E]===Zr&&t[E+1]===Z,i=E=>t[E]===Z,u=E=>t[E]===es,m=E=>t[E]===zr,b=E=>o(E)||i(E)||u(E)||m(E),N=()=>n,T=()=>r,S=()=>s,k=()=>a,A=E=>o(E)||u(E)||m(E)?Z:t[E],y=()=>A(n),f=()=>A(n+a);function d(){return a=0,b(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+a)&&a++,a++,t[n+a]}function p(){n=0,r=1,s=1,a=0}function O(E=0){a=E}function C(){const E=n+a;for(;E!==n;)d();a=0}return{index:N,line:T,column:S,peekOffset:k,charAt:A,currentChar:y,currentPeek:f,next:d,peek:h,reset:p,resetPeek:O,skipToPeek:C}}const pe=void 0,ns=".",Tn="'",rs="tokenizer";function ss(e,t={}){const n=t.location!==!1,r=ts(e),s=()=>r.index(),a=()=>Kr(r.line(),r.column(),r.index()),o=a(),i=s(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:b}=t;function N(l,c,g,...P){const H=m();if(c.column+=g,c.offset+=g,b){const j=n?It(H.startLoc,c):null,w=ye(l,j,{domain:rs,args:P});b(w)}}function T(l,c,g){l.endLoc=a(),l.currentType=c;const P={type:c};return n&&(P.loc=It(l.startLoc,l.endLoc)),g!=null&&(P.value=g),P}const S=l=>T(l,13);function k(l,c){return l.currentChar()===c?(l.next(),c):(N(D.EXPECTED_TOKEN,a(),0,c),"")}function A(l){let c="";for(;l.currentPeek()===me||l.currentPeek()===Z;)c+=l.currentPeek(),l.peek();return c}function y(l){const c=A(l);return l.skipToPeek(),c}function f(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function d(l){if(l===pe)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function h(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function p(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),H=d(P);return l.resetPeek(),H}function O(l,c){const{currentType:g}=c;if(g!==2)return!1;A(l);const P=l.currentPeek()===Tn;return l.resetPeek(),P}function C(l,c){const{currentType:g}=c;if(g!==7)return!1;A(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function E(l,c){const{currentType:g}=c;if(g!==8)return!1;A(l);const P=f(l.currentPeek());return l.resetPeek(),P}function M(l,c){const{currentType:g}=c;if(!(g===7||g===11))return!1;A(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function $(l,c){const{currentType:g}=c;if(g!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===me||!j?!1:j===Z?(l.peek(),P()):ce(l,!1)},H=P();return l.resetPeek(),H}function q(l){A(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ce(l,c=!0){const g=(H=!1,j="")=>{const w=l.currentPeek();return w==="{"||w==="@"||!w?H:w==="|"?!(j===me||j===Z):w===me?(l.peek(),g(!0,me)):w===Z?(l.peek(),g(!0,Z)):!0},P=g();return c&&l.resetPeek(),P}function K(l,c){const g=l.currentChar();return g===pe?pe:c(g)?(l.next(),g):null}function Fe(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function Kt(l){return K(l,Fe)}function jt(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function Xt(l){return K(l,jt)}function Jt(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function Qt(l){return K(l,Jt)}function qt(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ge(l){return K(l,qt)}function Ke(l){let c="",g="";for(;c=Qt(l);)g+=c;return g}function Zt(l){let c="";for(;;){const g=l.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g===me||g===Z)if(ce(l))c+=g,l.next();else{if(q(l))break;c+=g,l.next()}else c+=g,l.next()}return c}function zt(l){y(l);let c="",g="";for(;c=Xt(l);)g+=c;const P=l.currentChar();if(P&&P!=="}"&&P!==pe&&P!==me&&P!==Z&&P!==" "){const H=ft(l);return N(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g+H),g+H}return l.currentChar()===pe&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g}function en(l){y(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Ke(l)}`):c+=Ke(l),l.currentChar()===pe&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),c}function tn(l){return l!==Tn&&l!==Z}function Ar(l){y(l),k(l,"'");let c="",g="";for(;c=K(l,tn);)c==="\\"?g+=nn(l):g+=c;const P=l.currentChar();return P===Z||P===pe?(N(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),P===Z&&(l.next(),k(l,"'")),g):(k(l,"'"),g)}function nn(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return ut(l,c,4);case"U":return ut(l,c,6);default:return N(D.UNKNOWN_ESCAPE_SEQUENCE,a(),0,c),""}}function ut(l,c,g){k(l,c);let P="";for(let H=0;H<g;H++){const j=ge(l);if(!j){N(D.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${c}${P}${l.currentChar()}`);break}P+=j}return`\\${c}${P}`}function rn(l){return l!=="{"&&l!=="}"&&l!==me&&l!==Z}function ft(l){y(l);let c="",g="";for(;c=K(l,rn);)g+=c;return g}function sn(l){let c="",g="";for(;c=Kt(l);)g+=c;return g}function an(l){const c=g=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===me?g:(g+=P,l.next(),c(g))};return c("")}function je(l){y(l);const c=k(l,"|");return y(l),c}function Xe(l,c){let g=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&N(D.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),l.next(),g=T(c,2,"{"),y(l),c.braceNest++,g;case"}":return c.braceNest>0&&c.currentType===2&&N(D.EMPTY_PLACEHOLDER,a(),0),l.next(),g=T(c,3,"}"),c.braceNest--,c.braceNest>0&&y(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),g;case"@":return c.braceNest>0&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=Oe(l,c)||S(c),c.braceNest=0,g;default:{let H=!0,j=!0,w=!0;if(q(l))return c.braceNest>0&&N(D.UNTERMINATED_CLOSING_BRACE,a(),0),g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return N(D.UNTERMINATED_CLOSING_BRACE,a(),0),c.braceNest=0,Je(l,c);if(H=h(l,c))return g=T(c,4,zt(l)),y(l),g;if(j=p(l,c))return g=T(c,5,en(l)),y(l),g;if(w=O(l,c))return g=T(c,6,Ar(l)),y(l),g;if(!H&&!j&&!w)return g=T(c,12,ft(l)),N(D.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,g.value),y(l),g;break}}return g}function Oe(l,c){const{currentType:g}=c;let P=null;const H=l.currentChar();switch((g===7||g===8||g===11||g===9)&&(H===Z||H===me)&&N(D.INVALID_LINKED_FORMAT,a(),0),H){case"@":return l.next(),P=T(c,7,"@"),c.inLinked=!0,P;case".":return y(l),l.next(),T(c,8,".");case":":return y(l),l.next(),T(c,9,":");default:return q(l)?(P=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,P):C(l,c)||M(l,c)?(y(l),Oe(l,c)):E(l,c)?(y(l),T(c,11,sn(l))):$(l,c)?(y(l),H==="{"?Xe(l,c)||P:T(c,10,an(l))):(g===7&&N(D.INVALID_LINKED_FORMAT,a(),0),c.braceNest=0,c.inLinked=!1,Je(l,c))}}function Je(l,c){let g={type:13};if(c.braceNest>0)return Xe(l,c)||S(c);if(c.inLinked)return Oe(l,c)||S(c);switch(l.currentChar()){case"{":return Xe(l,c)||S(c);case"}":return N(D.UNBALANCED_CLOSING_BRACE,a(),0),l.next(),T(c,3,"}");case"@":return Oe(l,c)||S(c);default:{if(q(l))return g=T(c,1,je(l)),c.braceNest=0,c.inLinked=!1,g;if(ce(l))return T(c,0,Zt(l));break}}return g}function on(){const{currentType:l,offset:c,startLoc:g,endLoc:P}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=g,u.lastEndLoc=P,u.offset=s(),u.startLoc=a(),r.currentChar()===pe?T(u,13):Je(r,u)}return{nextToken:on,currentOffset:s,currentPosition:a,context:m}}const as="parser",os=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ls(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function is(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,d,h,p,...O){const C=f.currentPosition();if(C.offset+=p,C.column+=p,n){const E=t?It(h,C):null,M=ye(d,E,{domain:as,args:O});n(M)}}function s(f,d,h){const p={type:f};return t&&(p.start=d,p.end=d,p.loc={start:h,end:h}),p}function a(f,d,h,p){t&&(f.end=d,f.loc&&(f.loc.end=h))}function o(f,d){const h=f.context(),p=s(3,h.offset,h.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function i(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(5,p,O);return C.index=parseInt(d,10),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function u(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(4,p,O);return C.key=d,f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function m(f,d){const h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(9,p,O);return C.value=d.replace(os,ls),f.nextToken(),a(C,f.currentOffset(),f.currentPosition()),C}function b(f){const d=f.nextToken(),h=f.context(),{lastOffset:p,lastStartLoc:O}=h,C=s(8,p,O);return d.type!==11?(r(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,h.lastStartLoc,0),C.value="",a(C,p,O),{nextConsumeToken:d,node:C}):(d.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,de(d)),C.value=d.value||"",a(C,f.currentOffset(),f.currentPosition()),{node:C})}function N(f,d){const h=f.context(),p=s(7,h.offset,h.startLoc);return p.value=d,a(p,f.currentOffset(),f.currentPosition()),p}function T(f){const d=f.context(),h=s(6,d.offset,d.startLoc);let p=f.nextToken();if(p.type===8){const O=b(f);h.modifier=O.node,p=O.nextConsumeToken||f.nextToken()}switch(p.type!==9&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=N(f,p.value||"");break;case 4:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=u(f,p.value||"");break;case 5:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=i(f,p.value||"");break;case 6:p.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de(p)),h.key=m(f,p.value||"");break;default:{r(f,D.UNEXPECTED_EMPTY_LINKED_KEY,d.lastStartLoc,0);const O=f.context(),C=s(7,O.offset,O.startLoc);return C.value="",a(C,O.offset,O.startLoc),h.key=C,a(h,O.offset,O.startLoc),{nextConsumeToken:p,node:h}}}return a(h,f.currentOffset(),f.currentPosition()),{node:h}}function S(f){const d=f.context(),h=d.currentType===1?f.currentOffset():d.offset,p=d.currentType===1?d.endLoc:d.startLoc,O=s(2,h,p);O.items=[];let C=null;do{const $=C||f.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(o(f,$.value||""));break;case 5:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(i(f,$.value||""));break;case 4:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(u(f,$.value||""));break;case 6:$.value==null&&r(f,D.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,de($)),O.items.push(m(f,$.value||""));break;case 7:{const q=T(f);O.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(d.currentType!==13&&d.currentType!==1);const E=d.currentType===1?d.lastOffset:f.currentOffset(),M=d.currentType===1?d.lastEndLoc:f.currentPosition();return a(O,E,M),O}function k(f,d,h,p){const O=f.context();let C=p.items.length===0;const E=s(1,d,h);E.cases=[],E.cases.push(p);do{const M=S(f);C||(C=M.items.length===0),E.cases.push(M)}while(O.currentType!==13);return C&&r(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,h,0),a(E,f.currentOffset(),f.currentPosition()),E}function A(f){const d=f.context(),{offset:h,startLoc:p}=d,O=S(f);return d.currentType===13?O:k(f,h,p,O)}function y(f){const d=ss(f,Q({},e)),h=d.context(),p=s(0,h.offset,h.startLoc);return t&&p.loc&&(p.loc.source=f),p.body=A(d),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),h.currentType!==13&&r(d,D.UNEXPECTED_LEXICAL_ANALYSIS,h.lastStartLoc,0,f[h.offset]||""),a(p,d.currentOffset(),d.currentPosition()),p}return{parse:y}}function de(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function cs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Nn(e,t){for(let n=0;n<e.length;n++)ht(e[n],t)}function ht(e,t){switch(e.type){case 1:Nn(e.cases,t),t.helper("plural");break;case 2:Nn(e.items,t);break;case 6:{ht(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 us(e,t={}){const n=cs(e);n.helper("normalize"),e.body&&ht(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function fs(e){const t=e.body;return t.type===2?bn(t):t.cases.forEach(n=>bn(n)),e}function bn(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Nt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const _s="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);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;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(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:if(process.env.NODE_ENV!=="production")throw ye(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:_s,args:[e.type]})}delete e.type}const ms="parser";function ds(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(A,y){o.code+=A}function m(A,y=!0){const f=y?r:"";u(s?f+" ".repeat(A):f)}function b(A=!0){const y=++o.indentLevel;A&&m(y)}function N(A=!0){const y=--o.indentLevel;A&&m(y)}function T(){m(o.indentLevel)}return{context:i,push:u,indent:b,deindent:N,newline:T,helper:A=>`_${A}`,needIndent:()=>o.needIndent}}function ps(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),De(e,t.key),t.modifier?(e.push(", "),De(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Es(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let a=0;a<s&&(De(e,t.items[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function gs(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let a=0;a<s&&(De(e,t.cases[a]),a!==s-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Ts(e,t){t.body?De(e,t.body):e.push("null")}function De(e,t){const{helper:n}=e;switch(t.type){case 0:Ts(e,t);break;case 1:gs(e,t);break;case 2:Es(e,t);break;case 6:ps(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:if(process.env.NODE_ENV!=="production")throw ye(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ms,args:[t.type]})}}const Ns=(e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
+ `,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=ds(e,{filename:r,breakLineCode:s,needIndent:a});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),o.length>0&&(i.push(`const { ${Nt(o.map(b=>`${b}: _${b}`),", ")} } = ctx`),i.newline()),i.push("return "),De(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:u,map:m}=i.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function bs(e,t={}){const n=Q({},t),r=!!n.jit,s=!!n.minify,a=n.optimize==null?!0:n.optimize,i=is(n).parse(e);return r?(a&&fs(i),s&&Pe(i),{ast:i,code:""}):(us(i,n),Ns(i,n))}function Is(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return F(e)&&vt(e)===0&&(ie(e,"b")||ie(e,"body"))}const In=["b","body"];function hs(e){return Te(e,In)}const hn=["c","cases"];function vs(e){return Te(e,hn,[])}const vn=["s","static"];function Ls(e){return Te(e,vn)}const Ln=["i","items"];function Os(e){return Te(e,Ln,[])}const On=["t","type"];function vt(e){return Te(e,On)}const Cn=["v","value"];function st(e,t){const n=Te(e,Cn);if(n!=null)return n;throw Ve(t)}const An=["m","modifier"];function Cs(e){return Te(e,An)}const Sn=["k","key"];function As(e){const t=Te(e,Sn);if(t)return t;throw Ve(6)}function Te(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(ie(e,s)&&e[s]!=null)return e[s]}return n}const yn=[...In,...hn,...vn,...Ln,...Sn,...An,...Cn,...On];function Ve(e){return new Error(`unhandled node type: ${e}`)}function Lt(e){return n=>Ss(n,e)}function Ss(e,t){const n=hs(t);if(n==null)throw Ve(0);if(vt(n)===1){const a=vs(n);return e.plural(a.reduce((o,i)=>[...o,Pn(e,i)],[]))}else return Pn(e,n)}function Pn(e,t){const n=Ls(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Os(t).reduce((s,a)=>[...s,Ot(e,a)],[]);return e.normalize(r)}}function Ot(e,t){const n=vt(t);switch(n){case 3:return st(t,n);case 9:return st(t,n);case 4:{const r=t;if(ie(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ie(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(ie(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(ie(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,s=Cs(r),a=As(r);return e.linked(Ot(e,a),s?Ot(e,s):void 0,e.type)}case 7:return st(t,n);case 8:return st(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ys="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ps(e,t){t&&qr(e)&&fe(et(ys,{source:e}))}const Ds=e=>e;let at=W();function ks(e,t={}){let n=!1;const r=t.onError||Jr;return t.onError=s=>{n=!0,r(s)},{...bs(e,t),detectError:n}}function Ms(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&L(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ps(e,n);const s=(t.onCacheKey||Ds)(e),a=at[s];if(a)return a;const{ast:o,detectError:i}=ks(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Lt(o);return i?u:at[s]=u}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=at[n];return r||(at[n]=Lt(e))}else return Lt(e)}}let We=null;function Rs(e){We=e}function Fs(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Us=ws("function:translate");function ws(e){return t=>We&&We.emit(e,t)}const z={INVALID_ARGUMENT:jr,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},$s=24;function Ee(e){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:Vs}:void 0)}const Vs={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ct(e,t){return t.locale!=null?Dn(t.locale):Dn(e.locale)}let At;function Dn(e){if(L(e))return e;if(G(e)){if(e.resolvedOnce&&At!=null)return At;if(e.constructor.name==="Function"){const t=e();if(Hr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return At=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Ws(e,t,n){return[...new Set([n,...Y(t)?t:F(t)?Object.keys(t):L(t)?[t]:[n]])]}function kn(e,t,n){const r=L(n)?n:Ge,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;Y(o);)o=Mn(a,o,t);const i=Y(t)||!R(t)?t:t.default?t.default:null;o=L(i)?[i]:i,Y(o)&&Mn(a,o,!1),s.__localeChainCache.set(r,a)}return a}function Mn(e,t,n){let r=!0;for(let s=0;s<t.length&&U(r);s++){const a=t[s];L(a)&&(r=Gs(e,t[s],n))}return r}function Gs(e,t,n){let r;const s=t.split("-");do{const a=s.join("-");r=Bs(e,a,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Bs(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(Y(n)||R(n))&&n[s]&&(r=n[s])}return r}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Hs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ys(e){return Hs.test(e)}function xs(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 Ks(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 js(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ys(t)?xs(t):"*"+t}function Xs(e){const t=[];let n=-1,r=0,s=0,a,o,i,u,m,b,N;const T=[];T[0]=()=>{o===void 0?o=i:o+=i},T[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,r=4,T[0]();else{if(s=0,o===void 0||(o=js(o),o===!1))return!1;T[1]()}};function S(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,i="\\"+k,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(u=Ks(a),N=Ne[r],m=N[u]||N.l||8,m===8||(r=m[0],m[1]!==void 0&&(b=T[m[1]],b&&(i=a,b()===!1))))return;if(r===7)return t}}const Rn=new Map;function Js(e,t){return F(e)?e[t]:null}function Qs(e,t){if(!F(e))return null;let n=Rn.get(t);if(n||(n=Xs(t),n&&Rn.set(t,n)),!n)return null;const r=n.length;let s=e,a=0;for(;a<r;){const o=n[a];if(yn.includes(o)&&se(s))return null;const i=s[o];if(i===void 0||G(s))return null;s=i,a++}return s}const ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},qs=8,Zs={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.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 he(e,...t){return et(Zs[e],...t)}const zs="11.2.8",ot=-1,Ge="en-US",lt="",Fn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ea(){return{upper:(e,t)=>t==="text"&&L(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&L(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&L(e)?Fn(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?Fn(e.children):e}}let Un;function ta(e){Un=e}let wn;function na(e){wn=e}let $n;function ra(e){$n=e}let Vn=null;const sa=e=>{Vn=e},aa=()=>Vn;let Wn=null;const Gn=e=>{Wn=e},oa=()=>Wn;let Bn=0;function la(e={}){const t=G(e.onWarn)?e.onWarn:fe,n=L(e.version)?e.version:zs,r=L(e.locale)||G(e.locale)?e.locale:Ge,s=G(r)?Ge:r,a=Y(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=R(e.messages)?e.messages:St(s),i=R(e.datetimeFormats)?e.datetimeFormats:St(s),u=R(e.numberFormats)?e.numberFormats:St(s),m=Q(W(),e.modifiers,ea()),b=e.pluralRules||W(),N=G(e.missing)?e.missing:null,T=U(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=U(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,A=!!e.unresolving,y=G(e.postTranslation)?e.postTranslation:null,f=R(e.processor)?e.processor:null,d=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,p=G(e.messageCompiler)?e.messageCompiler:Un;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&gt(he(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=G(e.messageResolver)?e.messageResolver:wn||Js,C=G(e.localeFallbacker)?e.localeFallbacker:$n||Ws,E=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,q=F(M.__numberFormatters)?M.__numberFormatters:new Map,ce=F(M.__meta)?M.__meta:{};Bn++;const K={version:n,cid:Bn,locale:r,fallbackLocale:a,messages:o,modifiers:m,pluralRules:b,missing:N,missingWarn:T,fallbackWarn:S,fallbackFormat:k,unresolving:A,postTranslation:y,processor:f,warnHtmlMessage:d,escapeParameter:h,messageCompiler:p,messageResolver:O,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:ce};return K.datetimeFormats=i,K.numberFormats=u,K.__datetimeFormatters=$,K.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(K.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Fs(K,n,ce),K}const St=e=>({[e]:W()});function it(e,t){return e instanceof RegExp?e.test(t):e}function Hn(e,t){return e instanceof RegExp?e.test(t):e}function yt(e,t,n,r,s){const{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(a!==null){const i=a(e,n,t,s);return L(i)?i:t}else return process.env.NODE_ENV!=="production"&&Hn(r,t)&&o(he(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Yn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ia(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Yn(e,t[r]))return!0;return!1}const xn=typeof Intl<"u",Kn={dateTimeFormat:xn&&typeof Intl.DateTimeFormat<"u",numberFormat:xn&&typeof Intl.NumberFormat<"u"};function jn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Kn.dateTimeFormat)return a(he(ee.CANNOT_FORMAT_DATE)),lt;const[u,m,b,N]=Pt(...t),T=U(b.missingWarn)?b.missingWarn:e.missingWarn,S=U(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,k=!!b.part,A=Ct(e,b),y=o(e,s,A);if(!L(u)||u==="")return new Intl.DateTimeFormat(A,N).format(m);let f={},d,h=null,p=A,O=null;const C="datetime format";for(let $=0;$<y.length;$++){if(d=O=y[$],process.env.NODE_ENV!=="production"&&A!==d&&it(S,u)&&a(he(ee.FALLBACK_TO_DATE_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:O,groupId:`${C}:${u}`})}if(f=n[d]||{},h=f[u],R(h))break;yt(e,u,d,T,C),p=O}if(!R(h)||!L(d))return r?ot:u;let E=`${d}__${u}`;tt(N)||(E=`${E}__${JSON.stringify(N)}`);let M=i.get(E);return M||(M=new Intl.DateTimeFormat(d,Q({},h,N)),i.set(E,M)),k?M.formatToParts(m):M.format(m)}const Xn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Pt(...e){const[t,n,r,s]=e,a=W();let o=W(),i;if(L(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(m);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Vr(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{Xn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Jn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function Qn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Kn.numberFormat)return a(he(ee.CANNOT_FORMAT_NUMBER)),lt;const[u,m,b,N]=Dt(...t),T=U(b.missingWarn)?b.missingWarn:e.missingWarn,S=U(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,k=!!b.part,A=Ct(e,b),y=o(e,s,A);if(!L(u)||u==="")return new Intl.NumberFormat(A,N).format(m);let f={},d,h=null,p=A,O=null;const C="number format";for(let $=0;$<y.length;$++){if(d=O=y[$],process.env.NODE_ENV!=="production"&&A!==d&&it(S,u)&&a(he(ee.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:d})),process.env.NODE_ENV!=="production"&&A!==d){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:u,from:p,to:O,groupId:`${C}:${u}`})}if(f=n[d]||{},h=f[u],R(h))break;yt(e,u,d,T,C),p=O}if(!R(h)||!L(d))return r?ot:u;let E=`${d}__${u}`;tt(N)||(E=`${E}__${JSON.stringify(N)}`);let M=i.get(E);return M||(M=new Intl.NumberFormat(d,Q({},h,N)),i.set(E,M)),k?M.formatToParts(m):M.format(m)}const qn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Dt(...e){const[t,n,r,s]=e,a=W();let o=W();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return L(n)?a.key=n:R(n)&&Object.keys(n).forEach(u=>{qn.includes(u)?o[u]=n[u]:a[u]=n[u]}),L(r)?a.locale=r:R(r)&&(o=r),R(s)&&(o=s),[a.key||"",i,a,o]}function Zn(e,t,n){const r=e;for(const s in n){const a=`${t}__${s}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const ca=e=>e,ua=e=>"",fa="text",_a=e=>e.length===0?"":Nt(e),ma=Yr;function zn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function da(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function pa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ea(e={}){const t=e.locale,n=da(e),r=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?e.pluralRules[t]:zn,s=F(e.pluralRules)&&L(t)&&G(e.pluralRules[t])?zn:void 0,a=f=>f[r(n,f.length,s)],o=e.list||[],i=f=>o[f],u=e.named||W();J(e.pluralIndex)&&pa(n,u);const m=f=>u[f];function b(f,d){const h=G(e.messages)?e.messages(f,!!d):F(e.messages)?e.messages[f]:!1;return h||(e.parent?e.parent.message(f):ua)}const N=f=>e.modifiers?e.modifiers[f]:ca,T=R(e.processor)&&G(e.processor.normalize)?e.processor.normalize:_a,S=R(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:ma,k=R(e.processor)&&L(e.processor.type)?e.processor.type:fa,y={list:i,named:m,plural:a,linked:(f,...d)=>{const[h,p]=d;let O="text",C="";d.length===1?F(h)?(C=h.modifier||C,O=h.type||O):L(h)&&(C=h||C):d.length===2&&(L(h)&&(C=h||C),L(p)&&(O=p||O));const E=b(f,!0)(y),M=O==="vnode"&&Y(E)&&C?E[0]:E;return C?N(C)(M,O):M},message:b,type:k,interpolate:S,normalize:T,values:Q(W(),o,u)};return y}const er=()=>"",ae=e=>G(e);function tr(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:a,fallbackLocale:o,messages:i}=e,[u,m]=kt(...t),b=U(m.missingWarn)?m.missingWarn:e.missingWarn,N=U(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,T=U(m.escapeParameter)?m.escapeParameter:e.escapeParameter,S=!!m.resolvedMessage,k=L(m.default)||U(m.default)?U(m.default)?a?u:()=>u:m.default:n?a?u:()=>u:null,A=n||k!=null&&(L(k)||G(k)),y=Ct(e,m);T&&ga(m);let[f,d,h]=S?[u,y,i[y]||W()]:nr(e,u,y,o,N,b),p=f,O=u;if(!S&&!(L(p)||se(p)||ae(p))&&A&&(p=k,O=p),!S&&(!(L(p)||se(p)||ae(p))||!L(d)))return s?ot:u;if(process.env.NODE_ENV!=="production"&&L(p)&&e.messageCompiler==null)return fe(`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 C=!1;const E=()=>{C=!0},M=ae(p)?p:rr(e,u,d,p,O,E);if(C)return p;const $=Ia(e,d,h,m),q=Ea($),ce=Ta(e,M,q);let K=r?r(ce,u):ce;if(T&&L(K)&&(K=Gr(K)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Fe={timestamp:Date.now(),key:L(u)?u:ae(p)?p.key:"",locale:d||(ae(p)?p.locale:""),format:L(p)?p:ae(p)?p.source:"",message:K};Fe.meta=Q({},e.__meta,aa()||{}),Us(Fe)}return K}function ga(e){Y(e.list)?e.list=e.list.map(t=>L(t)?dn(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{L(e.named[t])&&(e.named[t]=dn(e.named[t]))})}function nr(e,t,n,r,s,a){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:m}=e,b=m(e,r,n);let N=W(),T,S=null,k=n,A=null;const y="translate";for(let f=0;f<b.length;f++){if(T=A=b[f],process.env.NODE_ENV!=="production"&&n!==T&&!Yn(n,T)&&it(s,t)&&i(he(ee.FALLBACK_TO_TRANSLATE,{key:t,target:T})),process.env.NODE_ENV!=="production"&&n!==T){const O=e.__v_emitter;O&&O.emit("fallback",{type:y,key:t,from:k,to:A,groupId:`${y}:${t}`})}N=o[T]||W();let d=null,h,p;if(process.env.NODE_ENV!=="production"&&le&&(d=window.performance.now(),h="intlify-message-resolve-start",p="intlify-message-resolve-end",re&&re(h)),(S=u(N,t))===null&&(S=N[t]),process.env.NODE_ENV!=="production"&&le){const O=window.performance.now(),C=e.__v_emitter;C&&d&&S&&C.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:O-d,groupId:`${y}:${t}`}),h&&p&&re&&be&&(re(p),be("intlify message resolve",h,p))}if(L(S)||se(S)||ae(S))break;if(!ia(T,b)){const O=yt(e,t,T,a,y);O!==t&&(S=O)}k=A}return[S,T,N]}function rr(e,t,n,r,s,a){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ae(r)){const T=r;return T.locale=T.locale||n,T.key=T.key||t,T}if(o==null){const T=(()=>r);return T.locale=n,T.key=t,T}let u=null,m,b;process.env.NODE_ENV!=="production"&&le&&(u=window.performance.now(),m="intlify-message-compilation-start",b="intlify-message-compilation-end",re&&re(m));const N=o(r,Na(e,n,s,r,i,a));if(process.env.NODE_ENV!=="production"&&le){const T=window.performance.now(),S=e.__v_emitter;S&&u&&S.emit("message-compilation",{type:"message-compilation",message:r,time:T-u,groupId:`translate:${t}`}),m&&b&&re&&be&&(re(b),be("intlify message compilation",m,b))}return N.locale=n,N.key=t,N.source=r,N}function Ta(e,t,n){let r=null,s,a;process.env.NODE_ENV!=="production"&&le&&(r=window.performance.now(),s="intlify-message-evaluation-start",a="intlify-message-evaluation-end",re&&re(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&le){const i=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),s&&a&&re&&be&&(re(a),be("intlify message evaluation",s,a))}return o}function kt(...e){const[t,n,r]=e,s=W();if(!L(t)&&!J(t)&&!ae(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const a=J(t)?String(t):(ae(t),t);return J(n)?s.plural=n:L(n)?s.default=n:R(n)&&!tt(n)?s.named=n:Y(n)&&(s.list=n),J(r)?s.plural=r:L(r)?s.default=r:R(r)&&Q(s,r),[a,s]}function Na(e,t,n,r,s,a){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(a&&a(o),process.env.NODE_ENV!=="production"){const i=ba(r),u=`Message compilation error: ${o.message}`,m=o.location&&i&&xr(i,o.location.start.offset,o.location.end.offset),b=e.__v_emitter;b&&i&&b.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
5
+ ${m}`:u)}else throw o},onCacheKey:o=>wr(t,n,o)}}function ba(e){if(L(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ia(e,t,n,r){const{modifiers:s,pluralRules:a,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:m,fallbackContext:b}=e,T={locale:t,modifiers:s,pluralRules:a,messages:(S,k)=>{let A=o(n,S);if(A==null&&(b||k)){const[,,y]=nr(b||e,S,t,i,u,m);A=o(y,S)}if(L(A)||se(A)){let y=!1;const d=rr(e,S,t,A,S,()=>{y=!0});return y?er:d}else return ae(A)?A:er}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),J(r.plural)&&(T.pluralIndex=r.plural),T}Is();function ha(){return sr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function sr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const va=typeof Proxy=="function",La="devtools-plugin:setup",Oa="plugin:settings:set";let ke,Mt;function Ca(){var e;return ke!==void 0||(typeof window<"u"&&window.performance?(ke=!0,Mt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ke=!0,Mt=globalThis.perf_hooks.performance):ke=!1),ke}function Aa(){return Ca()?Mt.now():Date.now()}class Sa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(s),i=JSON.parse(o);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}a=o},now(){return Aa()}},n&&n.on(Oa,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(m=>{this.targetQueue.push({method:i,args:u,resolve:m})})})}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 ya(e,t){const n=e,r=sr(),s=ha(),a=va&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(La,e,t);else{const o=a?new Sa(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const Pa="11.2.8";function Da(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ie().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ie().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1)}const B={UNEXPECTED_RETURN_TYPE:$s,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ye(e,null,process.env.NODE_ENV!=="production"?{messages:ka,args:t}:void 0)}const ka={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Rt=_e("__translateVNode"),Ft=_e("__datetimeParts"),Ut=_e("__numberParts"),ve=_e("__enableEmitter"),He=_e("__disableEmitter"),ar=_e("__setPluralRules"),or=_e("__injectWithOption"),wt=_e("__dispose"),oe={FALLBACK_TO_ROOT:qs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Ma={[oe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[oe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[oe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[oe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
6
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[oe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Me(e,...t){return et(Ma[e],...t)}function Ye(e){if(!F(e)||se(e))return e;for(const t in e)if(ie(e,t))if(!t.includes("."))F(e[t])&&Ye(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&fe(Me(oe.IGNORE_OBJ_FLATTEN,{key:n[o]})),a=!0;break}s=s[n[o]]}if(a||(se(s)?yn.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!se(s)){const o=s[n[r]];F(o)&&Ye(o)}}return e}function $t(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:a}=t,o=R(n)?n:Y(r)?W():{[e]:W()};if(Y(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(o[u]=o[u]||W(),rt(m,o[u])):rt(m,o)}else L(i)&&rt(JSON.parse(i),o)}),s==null&&a)for(const i in o)ie(o,i)&&Ye(o[i]);return o}function lr(e){return e.type}function ir(e,t,n){let r=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=$t(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(F(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function cr(e){return v.createVNode(v.Text,null,e,0)}function Re(){const e="currentInstance";return e in mt?mt[e]:mt.getCurrentInstance()}const ur="__INTLIFY_META__",fr=()=>[],Ra=()=>!1;let _r=0;function mr(e){return((t,n,r,s)=>e(n,r,Re()||void 0,s))}const Fa=()=>{const e=Re();let t=null;return e&&(t=lr(e)[ur])?{[ur]:t}:null};function Vt(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,a=le?v.ref:v.shallowRef;let o=U(e.inheritLocale)?e.inheritLocale:!0;const i=a(t&&o?t.locale.value:L(e.locale)?e.locale:Ge),u=a(t&&o?t.fallbackLocale.value:L(e.fallbackLocale)||Y(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=a($t(i.value,e)),b=a(R(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),N=a(R(e.numberFormats)?e.numberFormats:{[i.value]:{}});let T=t?t.missingWarn:U(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,S=t?t.fallbackWarn:U(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,y=G(e.missing)?e.missing:null,f=G(e.missing)?mr(e.missing):null,d=G(e.postTranslation)?e.postTranslation:null,h=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const O=t?t.modifiers:R(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&Gn(null);const _={version:Pa,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:O,pluralRules:C,missing:f===null?void 0:f,missingWarn:T,fallbackWarn:S,fallbackFormat:A,unresolving:!0,postTranslation:d===null?void 0:d,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=b.value,_.numberFormats=N.value,_.__datetimeFormatters=R(E)?E.__datetimeFormatters:void 0,_.__numberFormatters=R(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=R(E)?E.__v_emitter:void 0);const I=la(_);return r&&Gn(I),I})(),Be(E,i.value,u.value);function $(){return[i.value,u.value,m.value,b.value,N.value]}const q=v.computed({get:()=>i.value,set:_=>{E.locale=_,i.value=_}}),ce=v.computed({get:()=>u.value,set:_=>{E.fallbackLocale=_,u.value=_,Be(E,i.value,_)}}),K=v.computed(()=>m.value),Fe=v.computed(()=>b.value),Kt=v.computed(()=>N.value);function jt(){return G(d)?d:null}function Xt(_){d=_,E.postTranslation=_}function Jt(){return y}function Qt(_){_!==null&&(f=mr(_)),y=_,E.missing=f}function qt(_,I){return _!=="translate"||!I.resolvedMessage}const ge=(_,I,V,X,Ce,_t)=>{$();let Ue;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?oa():void 0),Ue=_(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(V!=="translate exists"&&J(Ue)&&Ue===ot||V==="translate exists"&&!Ue){const[Ae,Eo]=I();if(process.env.NODE_ENV!=="production"&&t&&L(Ae)&&qt(V,Eo)&&(k&&(it(S,Ae)||Hn(T,Ae))&&fe(Me(oe.FALLBACK_TO_ROOT,{key:Ae,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:Sr}=E;Sr&&k&&Sr.emit("fallback",{type:V,key:Ae,to:"global",groupId:`${V}:${Ae}`})}return t&&k?X(t):Ce(Ae)}else{if(_t(Ue))return Ue;throw te(B.UNEXPECTED_RETURN_TYPE)}};function Ke(..._){return ge(I=>Reflect.apply(tr,null,[I,..._]),()=>kt(..._),"translate",I=>Reflect.apply(I.t,I,[..._]),I=>I,I=>L(I))}function Zt(..._){const[I,V,X]=_;if(X&&!F(X))throw te(B.INVALID_ARGUMENT);return Ke(I,V,Q({resolvedMessage:!0},X||{}))}function zt(..._){return ge(I=>Reflect.apply(jn,null,[I,..._]),()=>Pt(..._),"datetime format",I=>Reflect.apply(I.d,I,[..._]),()=>lt,I=>L(I)||Y(I))}function en(..._){return ge(I=>Reflect.apply(Qn,null,[I,..._]),()=>Dt(..._),"number format",I=>Reflect.apply(I.n,I,[..._]),()=>lt,I=>L(I)||Y(I))}function tn(_){return _.map(I=>L(I)||J(I)||U(I)?cr(String(I)):I)}const nn={normalize:tn,interpolate:_=>_,type:"vnode"};function ut(..._){return ge(I=>{let V;const X=I;try{X.processor=nn,V=Reflect.apply(tr,null,[X,..._])}finally{X.processor=null}return V},()=>kt(..._),"translate",I=>I[Rt](..._),I=>[cr(I)],I=>Y(I))}function rn(..._){return ge(I=>Reflect.apply(Qn,null,[I,..._]),()=>Dt(..._),"number format",I=>I[Ut](..._),fr,I=>L(I)||Y(I))}function ft(..._){return ge(I=>Reflect.apply(jn,null,[I,..._]),()=>Pt(..._),"datetime format",I=>I[Ft](..._),fr,I=>L(I)||Y(I))}function sn(_){C=_,E.pluralRules=C}function an(_,I){return ge(()=>{if(!_)return!1;const V=L(I)?I:i.value,X=Oe(V),Ce=E.messageResolver(X,_);return se(Ce)||ae(Ce)||L(Ce)},()=>[_],"translate exists",V=>Reflect.apply(V.te,V,[_,I]),Ra,V=>U(V))}function je(_){let I=null;const V=kn(E,u.value,i.value);for(let X=0;X<V.length;X++){const Ce=m.value[V[X]]||{},_t=E.messageResolver(Ce,_);if(_t!=null){I=_t;break}}return I}function Xe(_){const I=je(_);return I??(t?t.tm(_)||{}:{})}function Oe(_){return m.value[_]||{}}function Je(_,I){if(s){const V={[_]:I};for(const X in V)ie(V,X)&&Ye(V[X]);I=V[_]}m.value[_]=I,E.messages=m.value}function on(_,I){m.value[_]=m.value[_]||{};const V={[_]:I};if(s)for(const X in V)ie(V,X)&&Ye(V[X]);I=V[_],rt(I,m.value[_]),E.messages=m.value}function l(_){return b.value[_]||{}}function c(_,I){b.value[_]=I,E.datetimeFormats=b.value,Jn(E,_,I)}function g(_,I){b.value[_]=Q(b.value[_]||{},I),E.datetimeFormats=b.value,Jn(E,_,I)}function P(_){return N.value[_]||{}}function H(_,I){N.value[_]=I,E.numberFormats=N.value,Zn(E,_,I)}function j(_,I){N.value[_]=Q(N.value[_]||{},I),E.numberFormats=N.value,Zn(E,_,I)}_r++,t&&le&&(v.watch(t.locale,_=>{o&&(i.value=_,E.locale=_,Be(E,i.value,u.value))}),v.watch(t.fallbackLocale,_=>{o&&(u.value=_,E.fallbackLocale=_,Be(E,i.value,u.value))}));const w={id:_r,locale:q,fallbackLocale:ce,get inheritLocale(){return o},set inheritLocale(_){o=_,_&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Be(E,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:K,get modifiers(){return O},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_){T=_,E.missingWarn=T},get fallbackWarn(){return S},set fallbackWarn(_){S=_,E.fallbackWarn=S},get fallbackRoot(){return k},set fallbackRoot(_){k=_},get fallbackFormat(){return A},set fallbackFormat(_){A=_,E.fallbackFormat=A},get warnHtmlMessage(){return h},set warnHtmlMessage(_){h=_,E.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,E.escapeParameter=_},t:Ke,getLocaleMessage:Oe,setLocaleMessage:Je,mergeLocaleMessage:on,getPostTranslationHandler:jt,setPostTranslationHandler:Xt,getMissingHandler:Jt,setMissingHandler:Qt,[ar]:sn};return w.datetimeFormats=Fe,w.numberFormats=Kt,w.rt=Zt,w.te=an,w.tm=Xe,w.d=zt,w.n=en,w.getDateTimeFormat=l,w.setDateTimeFormat=c,w.mergeDateTimeFormat=g,w.getNumberFormat=P,w.setNumberFormat=H,w.mergeNumberFormat=j,w[or]=n,w[Rt]=ut,w[Ft]=ft,w[Ut]=rn,process.env.NODE_ENV!=="production"&&(w[ve]=_=>{E.__v_emitter=_},w[He]=()=>{E.__v_emitter=void 0}),w}const dr="vue-i18n: composer properties",Wt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ua={"vue-i18n-resource-inspector":"Search for scopes ..."},wa={"vue-i18n-timeline":16764185};let Gt;async function $a(e,t){return new Promise((n,r)=>{try{ya({id:"vue-devtools-plugin-vue-i18n",label:Wt["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:[dr],app:e},s=>{Gt=s,s.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Va(o,i,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.__VUE_I18N__&&i&&(t.mode==="legacy"?o.__VUE_I18N__!==t.global.__composer&&Er(i,o.__VUE_I18N__):Er(i,o.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Wt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ua["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ya(o,t)});const a=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Ka(o,t),o.nodeId==="global"){if(!a.has(o.app)){const[i]=await s.getComponentInstances(o.app);a.set(o.app,i)}s.highlightElement(a.get(o.app))}else{const i=xa(o.nodeId,t);i&&s.highlightElement(i)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Xa(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Wt["vue-i18n-timeline"],color:wa["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function pr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Va(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const s={label:`i18n (${pr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Er(e,t){const n=dr;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:Bt(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 Bt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Ha(r):se(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=Bt(r):t[n]=r}),t}const Wa={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Ga(e){return e.replace(/[<>"&]/g,Ba)}function Ba(e){return Wa[e]||e}function Ha(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Ga(e.source)}")`:"(?)"}`}}}function Ya(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,s]of t.__instances){const a=t.mode==="composition"?s:s.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${pr(r)} Scope`})}}function xa(e,t){let n=null;if(e!=="global"){for(const[r,s]of t.__instances.entries())if(s.id.toString()===e){n=r;break}}return n}function gr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Ka(e,t){const n=gr(e.nodeId,t);return n&&(e.state=ja(n)),null}function ja(e){const t={},n="Locale related info",r=[{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]=r;const s="Locale messages info",a=[{type:s,key:"messages",editable:!1,value:Bt(e.messages.value)}];t[s]=a;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function xe(e,t){if(Gt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Gt.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 Xa(e,t){const n=gr(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&L(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(L(e.state.value)||Y(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ja(e){const t=L(e.locale)?e.locale:Ge,n=L(e.fallbackLocale)||Y(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,s=U(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=U(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=U(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=R(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,b=G(e.postTranslation)?e.postTranslation:void 0,N=L(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,S=U(e.sync)?e.sync:!0;let k=e.messages;if(R(e.sharedMessages)){const O=e.sharedMessages;k=Object.keys(O).reduce((E,M)=>{const $=E[M]||(E[M]={});return Q($,O[M]),E},k||{})}const{__i18n:A,__root:y,__injectWithOption:f}=e,d=e.datetimeFormats,h=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:p,datetimeFormats:d,numberFormats:h,missing:r,missingWarn:s,fallbackWarn:a,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:b,warnHtmlMessage:N,escapeParameter:T,messageResolver:e.messageResolver,inheritLocale:S,__i18n:A,__root:y,__injectWithOption:f}}function Ht(e={}){const t=Vt(Ja(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=U(s)?!s:s},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=U(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,a){return t.te(s,a)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,a){t.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){t.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,a){t.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){t.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,a){t.setNumberFormat(s,a)},mergeNumberFormat(s,a){t.mergeNumberFormat(s,a)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const a=t;a[ve]&&a[ve](s)},r.__disableEmitter=()=>{const s=t;s[He]&&s[He]()}),r}function Qa(e,t,n){return{beforeCreate(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=t,this===this.$root)this.$i18n=Tr(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Ht(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Tr(e,s);else{this.$i18n=Ht({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&ir(t,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Re();if(!r)return;const s=this.$i18n;r.__VUE_I18N__=s.__composer;const a=this.__v_emitter=bt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",xe)}},unmounted(){const r=Re();if(!r)throw te(B.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",xe),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Tr(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[ar](t.pluralizationRules||e.pluralizationRules);const n=$t(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Yt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function qa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===v.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},W())}function Nr(){return v.Fragment}const br=v.defineComponent({name:"i18n-t",props:Q({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},Yt),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(N=>N[0]!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=L(e.plural)?+e.plural:e.plural);const i=qa(t,a),u=s[Rt](e.keypath,i,o),m=Q(W(),r),b=L(e.tag)||F(e.tag)?e.tag:Nr();return v.h(b,m,u)}}});function Za(e){return Y(e)&&!L(e[0])}function Ir(e,t,n,r){const{slots:s,attrs:a}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),L(e.format)?o.key=e.format:F(e.format)&&(L(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((T,S)=>n.includes(S)?Q(W(),T,{[S]:e.format[S]}):T,W()));const u=r(e.value,o,i);let m=[o.key];Y(u)?m=u.map((T,S)=>{const k=s[T.type],A=k?k({[T.type]:T.value,index:S,parts:u}):[T.value];return Za(A)&&(A[0].key=`${T.type}-${S}`),A}):L(u)&&(m=[u]);const b=Q(W(),a),N=L(e.tag)||F(e.tag)?e.tag:Nr();return v.h(N,b,m)}}const hr=v.defineComponent({name:"i18n-n",props:Q({value:{type:Number,required:!0},format:{type:[String,Object]}},Yt),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return Ir(e,t,qn,(...r)=>n[Ut](...r))}});function za(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function eo(e){const t=o=>{process.env.NODE_ENV!=="production"&&gt(Me(oe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:i,value:u}=o;if(!i||!i.$)throw te(B.UNEXPECTED_ERROR);const m=za(e,i.$),b=vr(u);return[Reflect.apply(m.t,m,[...Lr(b)]),m]};return{created:(o,i)=>{const[u,m]=t(i);le&&e.global===m&&(o.__i18nWatcher=v.watch(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=m,o.textContent=u},unmounted:o=>{le&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const u=o.__composer,m=vr(i);o.textContent=Reflect.apply(u.t,u,[...Lr(m)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function vr(e){if(L(e))return{path:e};if(R(e)){if(!("path"in e))throw te(B.REQUIRED_VALUE,"path");return e}else throw te(B.INVALID_VALUE)}function Lr(e){const{path:t,locale:n,args:r,choice:s,plural:a}=e,o={},i=r||{};return L(n)&&(o.locale=n),J(s)&&(o.plural=s),J(a)&&(o.plural=a),[t,i,o]}function to(e,t,...n){const r=R(n[0])?n[0]:{};(!U(r.globalInstall)||r.globalInstall)&&([br.name,"I18nT"].forEach(a=>e.component(a,br)),[hr.name,"I18nN"].forEach(a=>e.component(a,hr)),[Cr.name,"I18nD"].forEach(a=>e.component(a,Cr))),e.directive("t",eo(t))}const no=_e("global-vue-i18n");function ro(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&gt(Me(oe.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=so(e,t),o=_e(process.env.NODE_ENV!=="production"?"vue-i18n":"");function i(N){return r.get(N)||null}function u(N,T){r.set(N,T)}function m(N){r.delete(N)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(N,...T){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=b),N.__VUE_I18N_SYMBOL__=o,N.provide(N.__VUE_I18N_SYMBOL__,b),R(T[0])){const A=T[0];b.__composerExtend=A.__composerExtend,b.__vueI18nExtend=A.__vueI18nExtend}let S=null;!t&&n&&(S=_o(N,b.global)),__VUE_I18N_FULL_INSTALL__&&to(N,b,...T),__VUE_I18N_LEGACY_API__&&t&&N.mixin(Qa(a,a.__composer,b));const k=N.unmount;if(N.unmount=()=>{S&&S(),b.dispose(),k()},process.env.NODE_ENV!=="production"){if(!await $a(N,b))throw te(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=bt();if(t){const f=a;f.__enableEmitter&&f.__enableEmitter(y)}else{const f=a;f[ve]&&f[ve](y)}y.on("*",xe)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:i,__setInstance:u,__deleteInstance:m};return b}function xt(e={}){const t=Re();if(t==null)throw te(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(B.NOT_INSTALLED);const n=ao(t),r=lo(n),s=lr(t),a=oo(e,s);if(a==="global")return ir(r,e,s),r;if(a==="parent"){let u=io(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&fe(Me(oe.NOT_FOUND_PARENT_SCOPE)),u=r),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Q({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),i=Vt(u),o.__composerExtend&&(i[wt]=o.__composerExtend(i)),uo(o,t,i),o.__setInstance(t,i)}else process.env.NODE_ENV!=="production"&&a==="local"&&fe(Me(oe.DUPLICATE_USE_I18N_CALLING));return i}function so(e,t){const n=v.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ht(e)):n.run(()=>Vt(e));if(r==null)throw te(B.UNEXPECTED_ERROR);return[n,r]}function ao(e){const t=v.inject(e.isCE?no:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function oo(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function lo(e){return e.mode==="composition"?e.global:e.global.__composer}function io(e,t,n=!1){let r=null;const s=t.root;let a=co(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(a);i!=null&&(r=i.__composer,n&&r&&!r[or]&&(r=null))}if(r!=null||s===a)break;a=a.parent}return r}function co(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function uo(e,t,n){let r=null;v.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=bt();const s=n;s[ve]&&s[ve](r),r.on("*",xe)}},t),v.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",xe),s[He]&&s[He](),delete t.__VUE_I18N__),e.__deleteInstance(t);const a=s[wt];a&&(a(),delete s[wt])},t)}const fo=["locale","fallbackLocale","availableLocales"],Or=["t","rt","d","n","tm","te"];function _o(e,t){const n=Object.create(null);return fo.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a)throw te(B.UNEXPECTED_ERROR);const o=v.isRef(a.value)?{get(){return a.value.value},set(i){a.value.value=i}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Or.forEach(s=>{const a=Object.getOwnPropertyDescriptor(t,s);if(!a||!a.value)throw te(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)}),()=>{delete e.config.globalProperties.$i18n,Or.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Cr=v.defineComponent({name:"i18n-d",props:Q({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yt),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return Ir(e,t,Xn,(...r)=>n[Ft](...r))}});if(Da(),ta(Ms),na(Qs),ra(kn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ie();e.__INTLIFY__=!0,Rs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Le=ro({legacy:!1,locale:"zh",fallbackLocale:"en",messages:{zh:{name:"名称",supplier:"供应商",version:"版本",description:"描述",category:"类别",general:"通用",ioMapping:"I/O映射",modbusSlaveChannel:"Modbus从站通道",status:"状态",ethernet:"以太网",modbusTcpServer:"Modbus TCP服务器",modbusTcpClient:"Modbus TCP客户端",modbusTCPSlaveDevice:"Modbus TCP从站设备",company:"成都数字创新科技有限公司",descriptionMap:{ethernet:"一种在以太网上充当Modbus服务器的设备。",modbusTcpServer:"一种在以太网上充当Modbus TCP服务器的设备。",modbusTcpClient:"一种在以太网上充当Modbus TCP客户端的设备。",modbusTCPSlaveDevice:"一种在以太网上充当Modbus TCP从站设备。"},netInterface:"网络接口",ipAddress:"IP地址",subnetMask:"子网掩码",defaultGateway:"默认网关",adaptedOSConfiguration:"适配操作系统配置",busCycleTask:"总线周期任务",defaultTask:"使用父总线循环设置",responseTimeout:"响应超时(ms)",socketTimeout:"Socket超时(ms)",reconnect:"自动重连",slaveIpAddress:"从站IP地址",port:"端口",watchDog:" 看门狗",slavePort:"从站端口",bindToAdapter:"绑定到适配器",holdingRegister:"保持寄存器",writable:"可写入",inputRegister:"输入寄存器",discreteBitArea:"离散位区域",coil:"线圈",discreteInput:"离散输入",dataModel:"数据模型",startAddress:"起始地址"},en:{name:"Name",supplier:"Supplier",version:"Version",description:"Description",category:"Category",general:"General",ioMapping:"I/O Mapping",modbusSlaveChannel:"Modbus Slave Channel",status:"Status",ethernet:"Ethernet",modbusTcpServer:"Modbus TCP Server",modbusTcpClient:"Modbus TCP Client",modbusTCPSlaveDevice:"Modbus TCP Slave Device",company:"Chengdu AIOSYS Innovation Technology Co., Ltd.",descriptionMap:{ethernet:"A device that works as a Modbus Server on Ethernet.",modbusTcpServer:"A device that works as a Modbus TCP Server.",modbusTcpClient:"A device that works as a Modbus TCP Client.",modbusTCPSlaveDevice:"A device that works as a Modbus TCP Slave Device."},netInterface:"Network Interface",ipAddress:"IP Address",subnetMask:"Subnet Mask",defaultGateway:"Default Gateway",adaptedOSConfiguration:"Adapted OS Configuration",busCycleTask:"Bus Cycle Task",defaultTask:"Use Parent Bus Cycle Setting",responseTimeout:"Response Timeout(ms)",socketTimeout:"Socket Timeout(ms)",reconnect:"Reconnect",slaveIpAddress:"Slave IP Address",port:"Port",watchDog:"Watch Dog",slavePort:"Slave Port",bindToAdapter:"Bind to Adapter",holdingRegister:"Holding Register",writable:"Writable",inputRegister:"Input Register",discreteBitArea:"Discrete Bit Area",coil:"Coil",discreteInput:"Discrete Input",dataModel:"Data Model",startAddress:"Start Address"}}});typeof window<"u"&&(window.$t=Le.global.t.bind(Le.global),Object.defineProperty(window,"$locale",{get(){return typeof Le.global.locale=="string"?Le.global.locale:Le.global.locale.value},set(e){Le.global.locale=e}}));const ct=v.createApp(Fr).use(Le);ct.component("Input",Qe),ct.component("InputNumber",Et),ct.component("IpInput",pt),ct.mount("#app");const mo=[cn,un,Qe,Et,pt],po={install(e){mo.forEach(t=>{e.component(t.name,t)})}};x.Button2=un,x.EthernetProtocolItem=we,x.Input=Qe,x.InputNumber=Et,x.IpInput=pt,x.ModbusTCPClientProtocolItem=Ze,x.ModbusTCPServerProtocolItem=qe,x.ModbusTCPSlaveDeviceProtocolItem=ze,x.MyButton=cn,x.MyLibPlugin=kr,x.ProtocolCollection=fn,x.ProtocolItem=ne,x.ProtocolType=ue,x.UI_KEY=dt,x.default=po,x.protocolMap=$e,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lty-protocol",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "main": "dist/lty-protocol.umd.js",
5
5
  "module": "dist/lty-protocol.mjs",
6
6
  "style": "dist/lty-protocol.css",