gc_i18n 1.0.0 → 1.0.2

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/lib/gc_i18n.js CHANGED
@@ -1,24 +1,4666 @@
1
1
  import './gc_i18n.css';
2
- import e,{Message as t}from"view-ui-plus";import{effectScope as n,ref as r,shallowRef as o,computed as a,watch as s,isRef as i,defineComponent as l,getCurrentInstance as c,h as u,Fragment as f,inject as d,onMounted as p,onUnmounted as m,createVNode as h,Text as _,resolveComponent as g,createBlock as y,openBlock as b,withCtx as v,createElementVNode as k,toDisplayString as C,createTextVNode as E,createElementBlock as w,nextTick as N,createApp as L}from"vue";import*as I from"lodash-es";import O from"lodash-es";import x from"axios";var T=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,F={exports:{}};const S=K((M||(M=1,F.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),e}function o(e){return a(e)||s(e)||i(e)||c()}function a(e){if(Array.isArray(e))return l(e)}function s(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function i(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=function(){function n(e){t(this,n),this.sourceStr=e,this.subCombos=n.parseComboStr(e),this.keyNames=this.subCombos.reduce((function(e,t){return e.concat(t)}),[])}return r(n,[{key:"check",value:function(e){for(var t=0,n=0;n<this.subCombos.length;n+=1)if(-1===(t=this._checkSubCombo(this.subCombos[n],t,e)))return!1;return!0}},{key:"isEqual",value:function(t){if(!t||"string"!=typeof t&&"object"!==e(t)||("string"==typeof t&&(t=new n(t)),this.subCombos.length!==t.subCombos.length))return!1;for(var r=0;r<this.subCombos.length;r+=1)if(this.subCombos[r].length!==t.subCombos[r].length)return!1;for(var o=0;o<this.subCombos.length;o+=1){for(var a=this.subCombos[o],s=t.subCombos[o].slice(0),i=0;i<a.length;i+=1){var l=a[i],c=s.indexOf(l);c>-1&&s.splice(c,1)}if(0!==s.length)return!1}return!0}},{key:"_checkSubCombo",value:function(e,t,r){e=e.slice(0),r=r.slice(t);for(var o=t,a=0;a<e.length;a+=1){var s=e[a];if("\\"===s[0]){var i=s.slice(1);(i===n.comboDeliminator||i===n.keyDeliminator)&&(s=i)}var l=r.indexOf(s);if(l>-1&&(e.splice(a,1),a-=1,l>o&&(o=l),0===e.length))return o}return-1}}]),n}();u.comboDeliminator=">",u.keyDeliminator="+",u.parseComboStr=function(e){for(var t=u._splitStr(e,u.comboDeliminator),n=[],r=0;r<t.length;r+=1)n.push(u._splitStr(t[r],u.keyDeliminator));return n},u._splitStr=function(e,t){for(var n=e,r=t,o="",a=[],s=0;s<n.length;s+=1)s>0&&n[s]===r&&"\\"!==n[s-1]&&(a.push(o.trim()),o="",s+=1),o+=n[s];return o&&a.push(o.trim()),a};var f=function(){function e(n){t(this,e),this.localeName=n,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(e,[{key:"bindKeyCode",value:function(e,t){"string"==typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function(e,t){"string"==typeof t&&(t=[t]);var n=null;"function"==typeof t&&(n=t,t=null);var r={keyCombo:new u(e),keyNames:t,handler:n};this._macros.push(r)}},{key:"getKeyCodes",value:function(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function(e){if("string"!=typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.setKillKey(t[n])}},{key:"pressKey",value:function(e){if("string"!=typeof e){this.activeTargetKeys.length=0;for(var t=this.getKeyNames(e),n=0;n<t.length;n+=1)this.activeTargetKeys.push(t[n]),-1===this.pressedKeys.indexOf(t[n])&&this.pressedKeys.push(t[n]);this._applyMacros()}else for(var r=this.getKeyCodes(e),o=0;o<r.length;o+=1)this.pressKey(r[o])}},{key:"releaseKey",value:function(e){if("string"==typeof e)for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.releaseKey(t[n]);else{var r=this.getKeyNames(e);if(-1!==this._killKeyCodes.indexOf(e))this.pressedKeys.length=0;else for(var o=0;o<r.length;o+=1){var a=this.pressedKeys.indexOf(r[o]);a>-1&&this.pressedKeys.splice(a,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var e=this._macros.slice(0),t=0;t<e.length;t+=1){var n=e[t];if(n.keyCombo.check(this.pressedKeys)){n.handler&&(n.keyNames=n.handler(this.pressedKeys));for(var r=0;r<n.keyNames.length;r+=1)-1===this.pressedKeys.indexOf(n.keyNames[r])&&this.pressedKeys.push(n.keyNames[r]);this._appliedMacros.push(n)}}}},{key:"_clearMacros",value:function(){for(var e=0;e<this._appliedMacros.length;e+=1){var t=this._appliedMacros[e];if(!t.keyCombo.check(this.pressedKeys)){for(var n=0;n<t.keyNames.length;n+=1){var r=this.pressedKeys.indexOf(t.keyNames[n]);r>-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),e}(),d=function(){function n(e,r,o,a){t(this,n),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:r,targetPlatform:o,targetUserAgent:a},this.setContext("global")}return r(n,[{key:"setLocale",value:function(e,t){var n=null;return"string"==typeof e?t?t(n=new f(e),this._targetPlatform,this._targetUserAgent):n=this._locales[e]||null:e=(n=e)._localeName,this._locale=n,this._locales[e]=n,n&&(this._locale.pressedKeys=n.pressedKeys),this}},{key:"getLocale",value:function(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function(t,n,r,o){if((null===t||"function"==typeof t)&&(o=r,r=n,n=t,t=null),t&&"object"===e(t)&&"number"==typeof t.length){for(var a=0;a<t.length;a+=1)this.bind(t[a],n,r);return this}return this._listeners.push({keyCombo:t?new u(t):null,pressHandler:n||null,releaseHandler:r||null,preventRepeat:!1,preventRepeatByDefault:o||!1,executingHandler:!1}),this}},{key:"addListener",value:function(e,t,n,r){return this.bind(e,t,n,r)}},{key:"on",value:function(e,t,n,r){return this.bind(e,t,n,r)}},{key:"bindPress",value:function(e,t,n){return this.bind(e,t,null,n)}},{key:"bindRelease",value:function(e,t){return this.bind(e,null,t,preventRepeatByDefault)}},{key:"unbind",value:function(t,n,r){if((null===t||"function"==typeof t)&&(r=n,n=t,t=null),t&&"object"===e(t)&&"number"==typeof t.length){for(var o=0;o<t.length;o+=1)this.unbind(t[o],n,r);return this}for(var a=0;a<this._listeners.length;a+=1){var s=this._listeners[a],i=!t&&!s.keyCombo||s.keyCombo&&s.keyCombo.isEqual(t),l=!n&&!r||!n&&!s.pressHandler||n===s.pressHandler,c=!n&&!r||!r&&!s.releaseHandler||r===s.releaseHandler;i&&l&&c&&(this._listeners.splice(a,1),a-=1)}return this}},{key:"removeListener",value:function(e,t,n){return this.unbind(e,t,n)}},{key:"off",value:function(e,t,n){return this.unbind(e,t,n)}},{key:"setContext",value:function(e){if(this._locale&&this.releaseAllKeys(),!this._contexts[e]){var t=this._contexts.global;this._contexts[e]={listeners:[],targetWindow:t.targetWindow,targetElement:t.targetElement,targetPlatform:t.targetPlatform,targetUserAgent:t.targetUserAgent}}var n=this._contexts[e];return this._currentContext=e,this._listeners=n.listeners,this.stop(),this.watch(n.targetWindow,n.targetElement,n.targetPlatform,n.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(e,t){var n=this.getContext();return this.setContext(e),t(),this.setContext(n),this}},{key:"watch",value:function(e,t,n,r){var o=this;this.stop();var a=typeof globalThis<"u"?globalThis:typeof T<"u"?T:typeof window<"u"?window:{};if(!e){if(!a.addEventListener&&!a.attachEvent){if("global"===this._currentContext)return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}e=a}if("number"==typeof e.nodeType&&(r=n,n=t,t=e,e=a),!e.addEventListener&&!e.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!e.addEventListener;var s=e.navigator&&e.navigator.userAgent||"",i=e.navigator&&e.navigator.platform||"";t&&null!==t||(t=e.document),n&&null!==n||(n=i),r&&null!==r||(r=s),this._targetKeyDownBinding=function(e){o.pressKey(e.keyCode,e),o._handleCommandBug(e,i)},this._targetKeyUpBinding=function(e){o.releaseKey(e.keyCode,e)},this._targetResetBinding=function(e){o.releaseAllKeys(e)},this._bindEvent(t,"keydown",this._targetKeyDownBinding),this._bindEvent(t,"keyup",this._targetKeyUpBinding),this._bindEvent(e,"focus",this._targetResetBinding),this._bindEvent(e,"blur",this._targetResetBinding),this._targetElement=t,this._targetWindow=e,this._targetPlatform=n,this._targetUserAgent=r;var l=this._contexts[this._currentContext];return l.targetWindow=this._targetWindow,l.targetElement=this._targetElement,l.targetPlatform=this._targetPlatform,l.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(this._targetElement&&this._targetWindow)return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(e),this._applyBindings(t),this}},{key:"releaseKey",value:function(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(e),this._clearBindings(t),this}},{key:"releaseAllKeys",value:function(e){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(e),this}},{key:"pause",value:function(){return this._paused||(this._locale&&this.releaseAllKeys(),this._paused=!0),this}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(e,t,n){return this._isModernBrowser?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}},{key:"_unbindEvent",value:function(e,t,n){return this._isModernBrowser?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}},{key:"_getGroupedListeners",value:function(){var e=[],t=[],n=this._listeners;return"global"!==this._currentContext&&(n=[].concat(o(n),o(this._contexts.global.listeners))),n.sort((function(e,t){return(t.keyCombo?t.keyCombo.keyNames.length:0)-(e.keyCombo?e.keyCombo.keyNames.length:0)})).forEach((function(n){for(var r=-1,o=0;o<t.length;o+=1)(null===t[o]&&null===n.keyCombo||null!==t[o]&&t[o].isEqual(n.keyCombo))&&(r=o);-1===r&&(r=t.length,t.push(n.keyCombo)),e[r]||(e[r]=[]),e[r].push(n)})),e}},{key:"_applyBindings",value:function(e){var t=this,n=!1;e||(e={}),e.preventRepeat=function(){n=!0},e.pressedKeys=this._locale.pressedKeys.slice(0);for(var r=this._locale.activeTargetKeys,o=this._locale.pressedKeys.slice(0),a=this._getGroupedListeners(),s=function(s){var i=a[s],l=i[0].keyCombo;if(null===l||l.check(o)&&r.some((function(e){return l.keyNames.includes(e)}))){for(var c=0;c<i.length;c+=1){var u=i[c];!u.executingHandler&&u.pressHandler&&!u.preventRepeat&&(u.executingHandler=!0,u.pressHandler.call(t,e),u.executingHandler=!1,(n||u.preventRepeatByDefault)&&(u.preventRepeat=!0,n=!1)),-1===t._appliedListeners.indexOf(u)&&t._appliedListeners.push(u)}if(l)for(var f=0;f<l.keyNames.length;f+=1){var d=o.indexOf(l.keyNames[f]);-1!==d&&(o.splice(d,1),f-=1)}}},i=0;i<a.length;i+=1)s(i)}},{key:"_clearBindings",value:function(e){e||(e={}),e.pressedKeys=this._locale.pressedKeys.slice(0);for(var t=0;t<this._appliedListeners.length;t+=1){var n=this._appliedListeners[t],r=n.keyCombo;(null===r||!r.check(this._locale.pressedKeys))&&(n.preventRepeat=!1,(null!==r||0===e.pressedKeys.length)&&(this._appliedListeners.splice(t,1),t-=1),!n.executingHandler&&n.releaseHandler&&(n.executingHandler=!0,n.releaseHandler.call(this,e),n.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(e,t){var n=["shift","ctrl","alt","capslock","tab","command"];t.match("Mac")&&this._locale.pressedKeys.includes("command")&&!n.includes(this._locale.getKeyNames(e.keyCode)[0])&&this._targetKeyUpBinding(e)}}]),n}();function p(e,t,n){e.bindKeyCode(3,["cancel"]),e.bindKeyCode(8,["backspace"]),e.bindKeyCode(9,["tab"]),e.bindKeyCode(12,["clear"]),e.bindKeyCode(13,["enter"]),e.bindKeyCode(16,["shift"]),e.bindKeyCode(17,["ctrl"]),e.bindKeyCode(18,["alt","menu"]),e.bindKeyCode(19,["pause","break"]),e.bindKeyCode(20,["capslock"]),e.bindKeyCode(27,["escape","esc"]),e.bindKeyCode(32,["space","spacebar"]),e.bindKeyCode(33,["pageup"]),e.bindKeyCode(34,["pagedown"]),e.bindKeyCode(35,["end"]),e.bindKeyCode(36,["home"]),e.bindKeyCode(37,["left"]),e.bindKeyCode(38,["up"]),e.bindKeyCode(39,["right"]),e.bindKeyCode(40,["down"]),e.bindKeyCode(41,["select"]),e.bindKeyCode(42,["printscreen"]),e.bindKeyCode(43,["execute"]),e.bindKeyCode(44,["snapshot"]),e.bindKeyCode(45,["insert","ins"]),e.bindKeyCode(46,["delete","del"]),e.bindKeyCode(47,["help"]),e.bindKeyCode(145,["scrolllock","scroll"]),e.bindKeyCode(188,["comma",","]),e.bindKeyCode(190,["period","."]),e.bindKeyCode(191,["slash","forwardslash","/"]),e.bindKeyCode(192,["graveaccent","`"]),e.bindKeyCode(219,["openbracket","["]),e.bindKeyCode(220,["backslash","\\"]),e.bindKeyCode(221,["closebracket","]"]),e.bindKeyCode(222,["apostrophe","'"]),e.bindKeyCode(48,["zero","0"]),e.bindKeyCode(49,["one","1"]),e.bindKeyCode(50,["two","2"]),e.bindKeyCode(51,["three","3"]),e.bindKeyCode(52,["four","4"]),e.bindKeyCode(53,["five","5"]),e.bindKeyCode(54,["six","6"]),e.bindKeyCode(55,["seven","7"]),e.bindKeyCode(56,["eight","8"]),e.bindKeyCode(57,["nine","9"]),e.bindKeyCode(96,["numzero","num0"]),e.bindKeyCode(97,["numone","num1"]),e.bindKeyCode(98,["numtwo","num2"]),e.bindKeyCode(99,["numthree","num3"]),e.bindKeyCode(100,["numfour","num4"]),e.bindKeyCode(101,["numfive","num5"]),e.bindKeyCode(102,["numsix","num6"]),e.bindKeyCode(103,["numseven","num7"]),e.bindKeyCode(104,["numeight","num8"]),e.bindKeyCode(105,["numnine","num9"]),e.bindKeyCode(106,["nummultiply","num*"]),e.bindKeyCode(107,["numadd","num+"]),e.bindKeyCode(108,["numenter"]),e.bindKeyCode(109,["numsubtract","num-"]),e.bindKeyCode(110,["numdecimal","num."]),e.bindKeyCode(111,["numdivide","num/"]),e.bindKeyCode(144,["numlock","num"]),e.bindKeyCode(112,["f1"]),e.bindKeyCode(113,["f2"]),e.bindKeyCode(114,["f3"]),e.bindKeyCode(115,["f4"]),e.bindKeyCode(116,["f5"]),e.bindKeyCode(117,["f6"]),e.bindKeyCode(118,["f7"]),e.bindKeyCode(119,["f8"]),e.bindKeyCode(120,["f9"]),e.bindKeyCode(121,["f10"]),e.bindKeyCode(122,["f11"]),e.bindKeyCode(123,["f12"]),e.bindKeyCode(124,["f13"]),e.bindKeyCode(125,["f14"]),e.bindKeyCode(126,["f15"]),e.bindKeyCode(127,["f16"]),e.bindKeyCode(128,["f17"]),e.bindKeyCode(129,["f18"]),e.bindKeyCode(130,["f19"]),e.bindKeyCode(131,["f20"]),e.bindKeyCode(132,["f21"]),e.bindKeyCode(133,["f22"]),e.bindKeyCode(134,["f23"]),e.bindKeyCode(135,["f24"]),e.bindMacro("shift + `",["tilde","~"]),e.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),e.bindMacro("shift + 2",["at","@"]),e.bindMacro("shift + 3",["number","#"]),e.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),e.bindMacro("shift + 5",["percent","%"]),e.bindMacro("shift + 6",["caret","^"]),e.bindMacro("shift + 7",["ampersand","and","&"]),e.bindMacro("shift + 8",["asterisk","*"]),e.bindMacro("shift + 9",["openparen","("]),e.bindMacro("shift + 0",["closeparen",")"]),e.bindMacro("shift + -",["underscore","_"]),e.bindMacro("shift + =",["plus","+"]),e.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),e.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),e.bindMacro("shift + \\",["verticalbar","|"]),e.bindMacro("shift + ;",["colon",":"]),e.bindMacro("shift + '",["quotationmark","'"]),e.bindMacro("shift + !,",["openanglebracket","<"]),e.bindMacro("shift + .",["closeanglebracket",">"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var o=String.fromCharCode(r+32),a=String.fromCharCode(r);e.bindKeyCode(r,o),e.bindMacro("shift + "+o,a),e.bindMacro("capslock + "+o,a)}var s,i,l=n.match("Firefox")?59:186,c=n.match("Firefox")?173:189,u=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(s=91,i=93):t.match("Mac")&&n.match("Opera")?(s=17,i=17):t.match("Mac")&&n.match("Firefox")&&(s=224,i=224),e.bindKeyCode(l,["semicolon",";"]),e.bindKeyCode(c,["dash","-"]),e.bindKeyCode(u,["equal","equalsign","="]),e.bindKeyCode(s,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(i,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")}var m=new d;return m.setLocale("us",p),m.Keyboard=d,m.Locale=f,m.KeyCombo=u,m}()),F.exports)),D=typeof window<"u";
2
+ import fn, { Message as _e } from "view-ui-plus";
3
+ import { effectScope as kr, ref as Sr, shallowRef as Dr, computed as je, watch as Rt, isRef as Pr, defineComponent as Xt, getCurrentInstance as qe, h as Zn, Fragment as zn, inject as Rr, onMounted as Mr, onUnmounted as wr, createVNode as ue, Text as Fr, resolveComponent as fe, createBlock as er, openBlock as lt, withCtx as ve, createElementVNode as Ke, toDisplayString as Kr, createTextVNode as Mt, createElementBlock as _n, nextTick as Ur, createApp as Vr } from "vue";
4
+ import X from "lodash-es";
5
+ import Re from "axios";
6
+ var dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
+ function tr(e) {
8
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
+ }
10
+ var ct = { exports: {} }, xr = ct.exports, mn;
11
+ function $r() {
12
+ return mn || (mn = 1, function(e, t) {
13
+ (function(n, r) {
14
+ e.exports = r();
15
+ })(xr, function() {
16
+ function n(o) {
17
+ "@babel/helpers - typeof";
18
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(m) {
19
+ return typeof m;
20
+ } : n = function(m) {
21
+ return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
22
+ }, n(o);
23
+ }
24
+ function r(o, m) {
25
+ if (!(o instanceof m))
26
+ throw new TypeError("Cannot call a class as a function");
27
+ }
28
+ function a(o, m) {
29
+ for (var l = 0; l < m.length; l++) {
30
+ var u = m[l];
31
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(o, u.key, u);
32
+ }
33
+ }
34
+ function s(o, m, l) {
35
+ return m && a(o.prototype, m), o;
36
+ }
37
+ function i(o) {
38
+ return c(o) || f(o) || p(o) || N();
39
+ }
40
+ function c(o) {
41
+ if (Array.isArray(o)) return v(o);
42
+ }
43
+ function f(o) {
44
+ if (typeof Symbol < "u" && Symbol.iterator in Object(o)) return Array.from(o);
45
+ }
46
+ function p(o, m) {
47
+ if (o) {
48
+ if (typeof o == "string") return v(o, m);
49
+ var l = Object.prototype.toString.call(o).slice(8, -1);
50
+ if (l === "Object" && o.constructor && (l = o.constructor.name), l === "Map" || l === "Set") return Array.from(o);
51
+ if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return v(o, m);
52
+ }
53
+ }
54
+ function v(o, m) {
55
+ (m == null || m > o.length) && (m = o.length);
56
+ for (var l = 0, u = new Array(m); l < m; l++) u[l] = o[l];
57
+ return u;
58
+ }
59
+ function N() {
60
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
62
+ }
63
+ var y = /* @__PURE__ */ function() {
64
+ function o(m) {
65
+ r(this, o), this.sourceStr = m, this.subCombos = o.parseComboStr(m), this.keyNames = this.subCombos.reduce(function(l, u) {
66
+ return l.concat(u);
67
+ }, []);
68
+ }
69
+ return s(o, [{
70
+ key: "check",
71
+ value: function(l) {
72
+ for (var u = 0, d = 0; d < this.subCombos.length; d += 1)
73
+ if (u = this._checkSubCombo(this.subCombos[d], u, l), u === -1)
74
+ return !1;
75
+ return !0;
76
+ }
77
+ }, {
78
+ key: "isEqual",
79
+ value: function(l) {
80
+ if (!l || typeof l != "string" && n(l) !== "object" || (typeof l == "string" && (l = new o(l)), this.subCombos.length !== l.subCombos.length))
81
+ return !1;
82
+ for (var u = 0; u < this.subCombos.length; u += 1)
83
+ if (this.subCombos[u].length !== l.subCombos[u].length)
84
+ return !1;
85
+ for (var d = 0; d < this.subCombos.length; d += 1) {
86
+ for (var E = this.subCombos[d], g = l.subCombos[d].slice(0), O = 0; O < E.length; O += 1) {
87
+ var P = E[O], M = g.indexOf(P);
88
+ M > -1 && g.splice(M, 1);
89
+ }
90
+ if (g.length !== 0)
91
+ return !1;
92
+ }
93
+ return !0;
94
+ }
95
+ }, {
96
+ key: "_checkSubCombo",
97
+ value: function(l, u, d) {
98
+ l = l.slice(0), d = d.slice(u);
99
+ for (var E = u, g = 0; g < l.length; g += 1) {
100
+ var O = l[g];
101
+ if (O[0] === "\\") {
102
+ var P = O.slice(1);
103
+ (P === o.comboDeliminator || P === o.keyDeliminator) && (O = P);
104
+ }
105
+ var M = d.indexOf(O);
106
+ if (M > -1 && (l.splice(g, 1), g -= 1, M > E && (E = M), l.length === 0))
107
+ return E;
108
+ }
109
+ return -1;
110
+ }
111
+ }]), o;
112
+ }();
113
+ y.comboDeliminator = ">", y.keyDeliminator = "+", y.parseComboStr = function(o) {
114
+ for (var m = y._splitStr(o, y.comboDeliminator), l = [], u = 0; u < m.length; u += 1)
115
+ l.push(y._splitStr(m[u], y.keyDeliminator));
116
+ return l;
117
+ }, y._splitStr = function(o, m) {
118
+ for (var l = o, u = m, d = "", E = [], g = 0; g < l.length; g += 1)
119
+ g > 0 && l[g] === u && l[g - 1] !== "\\" && (E.push(d.trim()), d = "", g += 1), d += l[g];
120
+ return d && E.push(d.trim()), E;
121
+ };
122
+ var C = /* @__PURE__ */ function() {
123
+ function o(m) {
124
+ r(this, o), this.localeName = m, this.activeTargetKeys = [], this.pressedKeys = [], this._appliedMacros = [], this._keyMap = {}, this._killKeyCodes = [], this._macros = [];
125
+ }
126
+ return s(o, [{
127
+ key: "bindKeyCode",
128
+ value: function(l, u) {
129
+ typeof u == "string" && (u = [u]), this._keyMap[l] = u;
130
+ }
131
+ }, {
132
+ key: "bindMacro",
133
+ value: function(l, u) {
134
+ typeof u == "string" && (u = [u]);
135
+ var d = null;
136
+ typeof u == "function" && (d = u, u = null);
137
+ var E = {
138
+ keyCombo: new y(l),
139
+ keyNames: u,
140
+ handler: d
141
+ };
142
+ this._macros.push(E);
143
+ }
144
+ }, {
145
+ key: "getKeyCodes",
146
+ value: function(l) {
147
+ var u = [];
148
+ for (var d in this._keyMap) {
149
+ var E = this._keyMap[d].indexOf(l);
150
+ E > -1 && u.push(d | 0);
151
+ }
152
+ return u;
153
+ }
154
+ }, {
155
+ key: "getKeyNames",
156
+ value: function(l) {
157
+ return this._keyMap[l] || [];
158
+ }
159
+ }, {
160
+ key: "setKillKey",
161
+ value: function(l) {
162
+ if (typeof l == "string") {
163
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
164
+ this.setKillKey(u[d]);
165
+ return;
166
+ }
167
+ this._killKeyCodes.push(l);
168
+ }
169
+ }, {
170
+ key: "pressKey",
171
+ value: function(l) {
172
+ if (typeof l == "string") {
173
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
174
+ this.pressKey(u[d]);
175
+ return;
176
+ }
177
+ this.activeTargetKeys.length = 0;
178
+ for (var E = this.getKeyNames(l), g = 0; g < E.length; g += 1)
179
+ this.activeTargetKeys.push(E[g]), this.pressedKeys.indexOf(E[g]) === -1 && this.pressedKeys.push(E[g]);
180
+ this._applyMacros();
181
+ }
182
+ }, {
183
+ key: "releaseKey",
184
+ value: function(l) {
185
+ if (typeof l == "string")
186
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
187
+ this.releaseKey(u[d]);
188
+ else {
189
+ var E = this.getKeyNames(l), g = this._killKeyCodes.indexOf(l);
190
+ if (g !== -1)
191
+ this.pressedKeys.length = 0;
192
+ else
193
+ for (var O = 0; O < E.length; O += 1) {
194
+ var P = this.pressedKeys.indexOf(E[O]);
195
+ P > -1 && this.pressedKeys.splice(P, 1);
196
+ }
197
+ this.activeTargetKeys.length = 0, this._clearMacros();
198
+ }
199
+ }
200
+ }, {
201
+ key: "_applyMacros",
202
+ value: function() {
203
+ for (var l = this._macros.slice(0), u = 0; u < l.length; u += 1) {
204
+ var d = l[u];
205
+ if (d.keyCombo.check(this.pressedKeys)) {
206
+ d.handler && (d.keyNames = d.handler(this.pressedKeys));
207
+ for (var E = 0; E < d.keyNames.length; E += 1)
208
+ this.pressedKeys.indexOf(d.keyNames[E]) === -1 && this.pressedKeys.push(d.keyNames[E]);
209
+ this._appliedMacros.push(d);
210
+ }
211
+ }
212
+ }
213
+ }, {
214
+ key: "_clearMacros",
215
+ value: function() {
216
+ for (var l = 0; l < this._appliedMacros.length; l += 1) {
217
+ var u = this._appliedMacros[l];
218
+ if (!u.keyCombo.check(this.pressedKeys)) {
219
+ for (var d = 0; d < u.keyNames.length; d += 1) {
220
+ var E = this.pressedKeys.indexOf(u.keyNames[d]);
221
+ E > -1 && this.pressedKeys.splice(E, 1);
222
+ }
223
+ u.handler && (u.keyNames = null), this._appliedMacros.splice(l, 1), l -= 1;
224
+ }
225
+ }
226
+ }
227
+ }]), o;
228
+ }(), D = /* @__PURE__ */ function() {
229
+ function o(m, l, u, d) {
230
+ r(this, o), this._locale = null, this._currentContext = "", this._contexts = {}, this._listeners = [], this._appliedListeners = [], this._locales = {}, this._targetElement = null, this._targetWindow = null, this._targetPlatform = "", this._targetUserAgent = "", this._isModernBrowser = !1, this._targetKeyDownBinding = null, this._targetKeyUpBinding = null, this._targetResetBinding = null, this._paused = !1, this._contexts.global = {
231
+ listeners: this._listeners,
232
+ targetWindow: m,
233
+ targetElement: l,
234
+ targetPlatform: u,
235
+ targetUserAgent: d
236
+ }, this.setContext("global");
237
+ }
238
+ return s(o, [{
239
+ key: "setLocale",
240
+ value: function(l, u) {
241
+ var d = null;
242
+ return typeof l == "string" ? u ? (d = new C(l), u(d, this._targetPlatform, this._targetUserAgent)) : d = this._locales[l] || null : (d = l, l = d._localeName), this._locale = d, this._locales[l] = d, d && (this._locale.pressedKeys = d.pressedKeys), this;
243
+ }
244
+ }, {
245
+ key: "getLocale",
246
+ value: function(l) {
247
+ return l || (l = this._locale.localeName), this._locales[l] || null;
248
+ }
249
+ }, {
250
+ key: "bind",
251
+ value: function(l, u, d, E) {
252
+ if ((l === null || typeof l == "function") && (E = d, d = u, u = l, l = null), l && n(l) === "object" && typeof l.length == "number") {
253
+ for (var g = 0; g < l.length; g += 1)
254
+ this.bind(l[g], u, d);
255
+ return this;
256
+ }
257
+ return this._listeners.push({
258
+ keyCombo: l ? new y(l) : null,
259
+ pressHandler: u || null,
260
+ releaseHandler: d || null,
261
+ preventRepeat: !1,
262
+ preventRepeatByDefault: E || !1,
263
+ executingHandler: !1
264
+ }), this;
265
+ }
266
+ }, {
267
+ key: "addListener",
268
+ value: function(l, u, d, E) {
269
+ return this.bind(l, u, d, E);
270
+ }
271
+ }, {
272
+ key: "on",
273
+ value: function(l, u, d, E) {
274
+ return this.bind(l, u, d, E);
275
+ }
276
+ }, {
277
+ key: "bindPress",
278
+ value: function(l, u, d) {
279
+ return this.bind(l, u, null, d);
280
+ }
281
+ }, {
282
+ key: "bindRelease",
283
+ value: function(l, u) {
284
+ return this.bind(l, null, u, preventRepeatByDefault);
285
+ }
286
+ }, {
287
+ key: "unbind",
288
+ value: function(l, u, d) {
289
+ if ((l === null || typeof l == "function") && (d = u, u = l, l = null), l && n(l) === "object" && typeof l.length == "number") {
290
+ for (var E = 0; E < l.length; E += 1)
291
+ this.unbind(l[E], u, d);
292
+ return this;
293
+ }
294
+ for (var g = 0; g < this._listeners.length; g += 1) {
295
+ var O = this._listeners[g], P = !l && !O.keyCombo || O.keyCombo && O.keyCombo.isEqual(l), M = !u && !d || !u && !O.pressHandler || u === O.pressHandler, B = !u && !d || !d && !O.releaseHandler || d === O.releaseHandler;
296
+ P && M && B && (this._listeners.splice(g, 1), g -= 1);
297
+ }
298
+ return this;
299
+ }
300
+ }, {
301
+ key: "removeListener",
302
+ value: function(l, u, d) {
303
+ return this.unbind(l, u, d);
304
+ }
305
+ }, {
306
+ key: "off",
307
+ value: function(l, u, d) {
308
+ return this.unbind(l, u, d);
309
+ }
310
+ }, {
311
+ key: "setContext",
312
+ value: function(l) {
313
+ if (this._locale && this.releaseAllKeys(), !this._contexts[l]) {
314
+ var u = this._contexts.global;
315
+ this._contexts[l] = {
316
+ listeners: [],
317
+ targetWindow: u.targetWindow,
318
+ targetElement: u.targetElement,
319
+ targetPlatform: u.targetPlatform,
320
+ targetUserAgent: u.targetUserAgent
321
+ };
322
+ }
323
+ var d = this._contexts[l];
324
+ return this._currentContext = l, this._listeners = d.listeners, this.stop(), this.watch(d.targetWindow, d.targetElement, d.targetPlatform, d.targetUserAgent), this;
325
+ }
326
+ }, {
327
+ key: "getContext",
328
+ value: function() {
329
+ return this._currentContext;
330
+ }
331
+ }, {
332
+ key: "withContext",
333
+ value: function(l, u) {
334
+ var d = this.getContext();
335
+ return this.setContext(l), u(), this.setContext(d), this;
336
+ }
337
+ }, {
338
+ key: "watch",
339
+ value: function(l, u, d, E) {
340
+ var g = this;
341
+ this.stop();
342
+ var O = typeof globalThis < "u" ? globalThis : typeof dn < "u" ? dn : typeof window < "u" ? window : {};
343
+ if (!l) {
344
+ if (!O.addEventListener && !O.attachEvent) {
345
+ if (this._currentContext === "global")
346
+ return;
347
+ throw new Error("Cannot find window functions addEventListener or attachEvent.");
348
+ }
349
+ l = O;
350
+ }
351
+ if (typeof l.nodeType == "number" && (E = d, d = u, u = l, l = O), !l.addEventListener && !l.attachEvent)
352
+ throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");
353
+ this._isModernBrowser = !!l.addEventListener;
354
+ var P = l.navigator && l.navigator.userAgent || "", M = l.navigator && l.navigator.platform || "";
355
+ u && u !== null || (u = l.document), d && d !== null || (d = M), E && E !== null || (E = P), this._targetKeyDownBinding = function(x) {
356
+ g.pressKey(x.keyCode, x), g._handleCommandBug(x, M);
357
+ }, this._targetKeyUpBinding = function(x) {
358
+ g.releaseKey(x.keyCode, x);
359
+ }, this._targetResetBinding = function(x) {
360
+ g.releaseAllKeys(x);
361
+ }, this._bindEvent(u, "keydown", this._targetKeyDownBinding), this._bindEvent(u, "keyup", this._targetKeyUpBinding), this._bindEvent(l, "focus", this._targetResetBinding), this._bindEvent(l, "blur", this._targetResetBinding), this._targetElement = u, this._targetWindow = l, this._targetPlatform = d, this._targetUserAgent = E;
362
+ var B = this._contexts[this._currentContext];
363
+ return B.targetWindow = this._targetWindow, B.targetElement = this._targetElement, B.targetPlatform = this._targetPlatform, B.targetUserAgent = this._targetUserAgent, this;
364
+ }
365
+ }, {
366
+ key: "stop",
367
+ value: function() {
368
+ if (!(!this._targetElement || !this._targetWindow))
369
+ return this._unbindEvent(this._targetElement, "keydown", this._targetKeyDownBinding), this._unbindEvent(this._targetElement, "keyup", this._targetKeyUpBinding), this._unbindEvent(this._targetWindow, "focus", this._targetResetBinding), this._unbindEvent(this._targetWindow, "blur", this._targetResetBinding), this._targetWindow = null, this._targetElement = null, this;
370
+ }
371
+ }, {
372
+ key: "pressKey",
373
+ value: function(l, u) {
374
+ if (this._paused)
375
+ return this;
376
+ if (!this._locale)
377
+ throw new Error("Locale not set");
378
+ return this._locale.pressKey(l), this._applyBindings(u), this;
379
+ }
380
+ }, {
381
+ key: "releaseKey",
382
+ value: function(l, u) {
383
+ if (this._paused)
384
+ return this;
385
+ if (!this._locale)
386
+ throw new Error("Locale not set");
387
+ return this._locale.releaseKey(l), this._clearBindings(u), this;
388
+ }
389
+ }, {
390
+ key: "releaseAllKeys",
391
+ value: function(l) {
392
+ if (this._paused)
393
+ return this;
394
+ if (!this._locale)
395
+ throw new Error("Locale not set");
396
+ return this._locale.pressedKeys.length = 0, this._clearBindings(l), this;
397
+ }
398
+ }, {
399
+ key: "pause",
400
+ value: function() {
401
+ return this._paused ? this : (this._locale && this.releaseAllKeys(), this._paused = !0, this);
402
+ }
403
+ }, {
404
+ key: "resume",
405
+ value: function() {
406
+ return this._paused = !1, this;
407
+ }
408
+ }, {
409
+ key: "reset",
410
+ value: function() {
411
+ return this.releaseAllKeys(), this._listeners.length = 0, this;
412
+ }
413
+ }, {
414
+ key: "_bindEvent",
415
+ value: function(l, u, d) {
416
+ return this._isModernBrowser ? l.addEventListener(u, d, !1) : l.attachEvent("on" + u, d);
417
+ }
418
+ }, {
419
+ key: "_unbindEvent",
420
+ value: function(l, u, d) {
421
+ return this._isModernBrowser ? l.removeEventListener(u, d, !1) : l.detachEvent("on" + u, d);
422
+ }
423
+ }, {
424
+ key: "_getGroupedListeners",
425
+ value: function() {
426
+ var l = [], u = [], d = this._listeners;
427
+ return this._currentContext !== "global" && (d = [].concat(i(d), i(this._contexts.global.listeners))), d.sort(function(E, g) {
428
+ return (g.keyCombo ? g.keyCombo.keyNames.length : 0) - (E.keyCombo ? E.keyCombo.keyNames.length : 0);
429
+ }).forEach(function(E) {
430
+ for (var g = -1, O = 0; O < u.length; O += 1)
431
+ (u[O] === null && E.keyCombo === null || u[O] !== null && u[O].isEqual(E.keyCombo)) && (g = O);
432
+ g === -1 && (g = u.length, u.push(E.keyCombo)), l[g] || (l[g] = []), l[g].push(E);
433
+ }), l;
434
+ }
435
+ }, {
436
+ key: "_applyBindings",
437
+ value: function(l) {
438
+ var u = this, d = !1;
439
+ l || (l = {}), l.preventRepeat = function() {
440
+ d = !0;
441
+ }, l.pressedKeys = this._locale.pressedKeys.slice(0);
442
+ for (var E = this._locale.activeTargetKeys, g = this._locale.pressedKeys.slice(0), O = this._getGroupedListeners(), P = function(x) {
443
+ var oe = O[x], le = oe[0].keyCombo;
444
+ if (le === null || le.check(g) && E.some(function(We) {
445
+ return le.keyNames.includes(We);
446
+ })) {
447
+ for (var Oe = 0; Oe < oe.length; Oe += 1) {
448
+ var ee = oe[Oe];
449
+ !ee.executingHandler && ee.pressHandler && !ee.preventRepeat && (ee.executingHandler = !0, ee.pressHandler.call(u, l), ee.executingHandler = !1, (d || ee.preventRepeatByDefault) && (ee.preventRepeat = !0, d = !1)), u._appliedListeners.indexOf(ee) === -1 && u._appliedListeners.push(ee);
450
+ }
451
+ if (le)
452
+ for (var Ee = 0; Ee < le.keyNames.length; Ee += 1) {
453
+ var Me = g.indexOf(le.keyNames[Ee]);
454
+ Me !== -1 && (g.splice(Me, 1), Ee -= 1);
455
+ }
456
+ }
457
+ }, M = 0; M < O.length; M += 1)
458
+ P(M);
459
+ }
460
+ }, {
461
+ key: "_clearBindings",
462
+ value: function(l) {
463
+ l || (l = {}), l.pressedKeys = this._locale.pressedKeys.slice(0);
464
+ for (var u = 0; u < this._appliedListeners.length; u += 1) {
465
+ var d = this._appliedListeners[u], E = d.keyCombo;
466
+ (E === null || !E.check(this._locale.pressedKeys)) && (d.preventRepeat = !1, (E !== null || l.pressedKeys.length === 0) && (this._appliedListeners.splice(u, 1), u -= 1), !d.executingHandler && d.releaseHandler && (d.executingHandler = !0, d.releaseHandler.call(this, l), d.executingHandler = !1));
467
+ }
468
+ }
469
+ }, {
470
+ key: "_handleCommandBug",
471
+ value: function(l, u) {
472
+ var d = ["shift", "ctrl", "alt", "capslock", "tab", "command"];
473
+ u.match("Mac") && this._locale.pressedKeys.includes("command") && !d.includes(this._locale.getKeyNames(l.keyCode)[0]) && this._targetKeyUpBinding(l);
474
+ }
475
+ }]), o;
476
+ }();
477
+ function A(o, m, l) {
478
+ o.bindKeyCode(3, ["cancel"]), o.bindKeyCode(8, ["backspace"]), o.bindKeyCode(9, ["tab"]), o.bindKeyCode(12, ["clear"]), o.bindKeyCode(13, ["enter"]), o.bindKeyCode(16, ["shift"]), o.bindKeyCode(17, ["ctrl"]), o.bindKeyCode(18, ["alt", "menu"]), o.bindKeyCode(19, ["pause", "break"]), o.bindKeyCode(20, ["capslock"]), o.bindKeyCode(27, ["escape", "esc"]), o.bindKeyCode(32, ["space", "spacebar"]), o.bindKeyCode(33, ["pageup"]), o.bindKeyCode(34, ["pagedown"]), o.bindKeyCode(35, ["end"]), o.bindKeyCode(36, ["home"]), o.bindKeyCode(37, ["left"]), o.bindKeyCode(38, ["up"]), o.bindKeyCode(39, ["right"]), o.bindKeyCode(40, ["down"]), o.bindKeyCode(41, ["select"]), o.bindKeyCode(42, ["printscreen"]), o.bindKeyCode(43, ["execute"]), o.bindKeyCode(44, ["snapshot"]), o.bindKeyCode(45, ["insert", "ins"]), o.bindKeyCode(46, ["delete", "del"]), o.bindKeyCode(47, ["help"]), o.bindKeyCode(145, ["scrolllock", "scroll"]), o.bindKeyCode(188, ["comma", ","]), o.bindKeyCode(190, ["period", "."]), o.bindKeyCode(191, ["slash", "forwardslash", "/"]), o.bindKeyCode(192, ["graveaccent", "`"]), o.bindKeyCode(219, ["openbracket", "["]), o.bindKeyCode(220, ["backslash", "\\"]), o.bindKeyCode(221, ["closebracket", "]"]), o.bindKeyCode(222, ["apostrophe", "'"]), o.bindKeyCode(48, ["zero", "0"]), o.bindKeyCode(49, ["one", "1"]), o.bindKeyCode(50, ["two", "2"]), o.bindKeyCode(51, ["three", "3"]), o.bindKeyCode(52, ["four", "4"]), o.bindKeyCode(53, ["five", "5"]), o.bindKeyCode(54, ["six", "6"]), o.bindKeyCode(55, ["seven", "7"]), o.bindKeyCode(56, ["eight", "8"]), o.bindKeyCode(57, ["nine", "9"]), o.bindKeyCode(96, ["numzero", "num0"]), o.bindKeyCode(97, ["numone", "num1"]), o.bindKeyCode(98, ["numtwo", "num2"]), o.bindKeyCode(99, ["numthree", "num3"]), o.bindKeyCode(100, ["numfour", "num4"]), o.bindKeyCode(101, ["numfive", "num5"]), o.bindKeyCode(102, ["numsix", "num6"]), o.bindKeyCode(103, ["numseven", "num7"]), o.bindKeyCode(104, ["numeight", "num8"]), o.bindKeyCode(105, ["numnine", "num9"]), o.bindKeyCode(106, ["nummultiply", "num*"]), o.bindKeyCode(107, ["numadd", "num+"]), o.bindKeyCode(108, ["numenter"]), o.bindKeyCode(109, ["numsubtract", "num-"]), o.bindKeyCode(110, ["numdecimal", "num."]), o.bindKeyCode(111, ["numdivide", "num/"]), o.bindKeyCode(144, ["numlock", "num"]), o.bindKeyCode(112, ["f1"]), o.bindKeyCode(113, ["f2"]), o.bindKeyCode(114, ["f3"]), o.bindKeyCode(115, ["f4"]), o.bindKeyCode(116, ["f5"]), o.bindKeyCode(117, ["f6"]), o.bindKeyCode(118, ["f7"]), o.bindKeyCode(119, ["f8"]), o.bindKeyCode(120, ["f9"]), o.bindKeyCode(121, ["f10"]), o.bindKeyCode(122, ["f11"]), o.bindKeyCode(123, ["f12"]), o.bindKeyCode(124, ["f13"]), o.bindKeyCode(125, ["f14"]), o.bindKeyCode(126, ["f15"]), o.bindKeyCode(127, ["f16"]), o.bindKeyCode(128, ["f17"]), o.bindKeyCode(129, ["f18"]), o.bindKeyCode(130, ["f19"]), o.bindKeyCode(131, ["f20"]), o.bindKeyCode(132, ["f21"]), o.bindKeyCode(133, ["f22"]), o.bindKeyCode(134, ["f23"]), o.bindKeyCode(135, ["f24"]), o.bindMacro("shift + `", ["tilde", "~"]), o.bindMacro("shift + 1", ["exclamation", "exclamationpoint", "!"]), o.bindMacro("shift + 2", ["at", "@"]), o.bindMacro("shift + 3", ["number", "#"]), o.bindMacro("shift + 4", ["dollar", "dollars", "dollarsign", "$"]), o.bindMacro("shift + 5", ["percent", "%"]), o.bindMacro("shift + 6", ["caret", "^"]), o.bindMacro("shift + 7", ["ampersand", "and", "&"]), o.bindMacro("shift + 8", ["asterisk", "*"]), o.bindMacro("shift + 9", ["openparen", "("]), o.bindMacro("shift + 0", ["closeparen", ")"]), o.bindMacro("shift + -", ["underscore", "_"]), o.bindMacro("shift + =", ["plus", "+"]), o.bindMacro("shift + [", ["opencurlybrace", "opencurlybracket", "{"]), o.bindMacro("shift + ]", ["closecurlybrace", "closecurlybracket", "}"]), o.bindMacro("shift + \\", ["verticalbar", "|"]), o.bindMacro("shift + ;", ["colon", ":"]), o.bindMacro("shift + '", ["quotationmark", "'"]), o.bindMacro("shift + !,", ["openanglebracket", "<"]), o.bindMacro("shift + .", ["closeanglebracket", ">"]), o.bindMacro("shift + /", ["questionmark", "?"]), m.match("Mac") ? o.bindMacro("command", ["mod", "modifier"]) : o.bindMacro("ctrl", ["mod", "modifier"]);
479
+ for (var u = 65; u <= 90; u += 1) {
480
+ var d = String.fromCharCode(u + 32), E = String.fromCharCode(u);
481
+ o.bindKeyCode(u, d), o.bindMacro("shift + " + d, E), o.bindMacro("capslock + " + d, E);
482
+ }
483
+ var g = l.match("Firefox") ? 59 : 186, O = l.match("Firefox") ? 173 : 189, P = l.match("Firefox") ? 61 : 187, M, B;
484
+ m.match("Mac") && (l.match("Safari") || l.match("Chrome")) ? (M = 91, B = 93) : m.match("Mac") && l.match("Opera") ? (M = 17, B = 17) : m.match("Mac") && l.match("Firefox") && (M = 224, B = 224), o.bindKeyCode(g, ["semicolon", ";"]), o.bindKeyCode(O, ["dash", "-"]), o.bindKeyCode(P, ["equal", "equalsign", "="]), o.bindKeyCode(M, ["command", "windows", "win", "super", "leftcommand", "leftwindows", "leftwin", "leftsuper"]), o.bindKeyCode(B, ["command", "windows", "win", "super", "rightcommand", "rightwindows", "rightwin", "rightsuper"]), o.setKillKey("command");
485
+ }
486
+ var k = new D();
487
+ return k.setLocale("us", A), k.Keyboard = D, k.Locale = C, k.KeyCombo = y, k;
488
+ });
489
+ }(ct)), ct.exports;
490
+ }
491
+ var Wr = $r();
492
+ const Gr = /* @__PURE__ */ tr(Wr);
3
493
  /*!
4
494
  * shared v11.1.1
5
495
  * (c) 2025 kazuya kawaguchi
6
496
  * Released under the MIT License.
7
- */let P,V;if("production"!==process.env.NODE_ENV){const e=D&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(P=t=>{e.mark(t)},V=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const $=/\{([0-9a-zA-Z]+)\}/g;function R(e,...t){return 1===t.length&&re(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace($,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}const W=(e,t=!1)=>t?Symbol.for(e):Symbol(e),A=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),U=e=>"number"==typeof e&&isFinite(e),j=e=>"[object RegExp]"===ae(e),H=e=>se(e)&&0===Object.keys(e).length,B=Object.assign,z=Object.create,Y=(e=null)=>z(e);let G;const J=()=>G||(G=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Y());function q(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Q=Object.prototype.hasOwnProperty;function Z(e,t){return Q.call(e,t)}const X=Array.isArray,ee=e=>"function"==typeof e,te=e=>"string"==typeof e,ne=e=>"boolean"==typeof e,re=e=>null!==e&&"object"==typeof e,oe=Object.prototype.toString,ae=e=>oe.call(e),se=e=>"[object Object]"===ae(e);function ie(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function le(e,t){}const ce={};function ue(e){ce[e]||(ce[e]=!0)}function fe(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}const de=e=>!re(e)||X(e);function pe(e,t){if(de(e)||de(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(re(e[r])&&!re(t[r])&&(t[r]=Array.isArray(e[r])?[]:Y()),de(t[r])||de(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}
497
+ */
498
+ const ie = typeof window < "u";
499
+ let re, Se;
500
+ if (process.env.NODE_ENV !== "production") {
501
+ const e = ie && window.performance;
502
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
503
+ e.clearMeasures && (re = (t) => {
504
+ e.mark(t);
505
+ }, Se = (t, n, r) => {
506
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
507
+ });
508
+ }
509
+ const Br = /\{([0-9a-zA-Z]+)\}/g;
510
+ function dt(e, ...t) {
511
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Br, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
512
+ }
513
+ const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Yr = (e, t, n) => Hr({ l: e, k: t, s: n }), Hr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), J = (e) => typeof e == "number" && isFinite(e), jr = (e) => qt(e) === "[object Date]", Ve = (e) => qt(e) === "[object RegExp]", mt = (e) => w(e) && Object.keys(e).length === 0, Q = Object.assign, Xr = Object.create, $ = (e = null) => Xr(e);
514
+ let hn;
515
+ const ke = () => hn || (hn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
516
+ function gn(e) {
517
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
518
+ }
519
+ const qr = Object.prototype.hasOwnProperty;
520
+ function ae(e, t) {
521
+ return qr.call(e, t);
522
+ }
523
+ const q = Array.isArray, W = (e) => typeof e == "function", I = (e) => typeof e == "string", K = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Jr = (e) => F(e) && W(e.then) && W(e.catch), nr = Object.prototype.toString, qt = (e) => nr.call(e), w = (e) => qt(e) === "[object Object]", Qr = (e) => e == null ? "" : q(e) || w(e) && e.toString === nr ? JSON.stringify(e, null, 2) : String(e);
524
+ function Jt(e, t = "") {
525
+ return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
526
+ }
527
+ const pn = 2;
528
+ function Zr(e, t = 0, n = e.length) {
529
+ const r = e.split(/\r?\n/);
530
+ let a = 0;
531
+ const s = [];
532
+ for (let i = 0; i < r.length; i++)
533
+ if (a += r[i].length + 1, a >= t) {
534
+ for (let c = i - pn; c <= i + pn || n > a; c++) {
535
+ if (c < 0 || c >= r.length)
536
+ continue;
537
+ const f = c + 1;
538
+ s.push(`${f}${" ".repeat(3 - String(f).length)}| ${r[c]}`);
539
+ const p = r[c].length;
540
+ if (c === i) {
541
+ const v = t - (a - p) + 1, N = Math.max(1, n > a ? p - v : n - t);
542
+ s.push(" | " + " ".repeat(v) + "^".repeat(N));
543
+ } else if (c > i) {
544
+ if (n > a) {
545
+ const v = Math.max(Math.min(n - a, p), 1);
546
+ s.push(" | " + "^".repeat(v));
547
+ }
548
+ a += p + 1;
549
+ }
550
+ }
551
+ break;
552
+ }
553
+ return s.join(`
554
+ `);
555
+ }
556
+ function Ne(e, t) {
557
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
558
+ }
559
+ const En = {};
560
+ function Qt(e) {
561
+ En[e] || (En[e] = !0, Ne(e));
562
+ }
563
+ function Zt() {
564
+ const e = /* @__PURE__ */ new Map();
565
+ return {
566
+ events: e,
567
+ on(n, r) {
568
+ const a = e.get(n);
569
+ a && a.push(r) || e.set(n, [r]);
570
+ },
571
+ off(n, r) {
572
+ const a = e.get(n);
573
+ a && a.splice(a.indexOf(r) >>> 0, 1);
574
+ },
575
+ emit(n, r) {
576
+ (e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r));
577
+ }
578
+ };
579
+ }
580
+ const at = (e) => !F(e) || q(e);
581
+ function ut(e, t) {
582
+ if (at(e) || at(t))
583
+ throw new Error("Invalid value");
584
+ const n = [{ src: e, des: t }];
585
+ for (; n.length; ) {
586
+ const { src: r, des: a } = n.pop();
587
+ Object.keys(r).forEach((s) => {
588
+ s !== "__proto__" && (F(r[s]) && !F(a[s]) && (a[s] = Array.isArray(r[s]) ? [] : $()), at(a[s]) || at(r[s]) ? a[s] = r[s] : n.push({ src: r[s], des: a[s] }));
589
+ });
590
+ }
591
+ }
8
592
  /*!
9
593
  * message-compiler v11.1.1
10
594
  * (c) 2025 kazuya kawaguchi
11
595
  * Released under the MIT License.
12
- */function me(e,t,n){return{start:e,end:t}}const he=1,_e=2,ge=3,ye=4,be=5,ve=6,ke=7,Ce=8,Ee=9,we=10,Ne=11,Le=12,Ie=13,Oe=14,xe=15,Te=16,Ke={[he]:"Expected token: '{0}'",[_e]:"Invalid token in placeholder: '{0}'",[ge]:"Unterminated single quote in placeholder",[ye]:"Unknown escape sequence: \\{0}",[be]:"Invalid unicode escape sequence: {0}",[ve]:"Unbalanced closing brace",[ke]:"Unterminated closing brace",[Ce]:"Empty placeholder",[Ee]:"Not allowed nest placeholder",[we]:"Invalid linked format",[Ne]:"Plural must have messages",[Le]:"Unexpected empty linked modifier",[Ie]:"Unexpected empty linked key",[Oe]:"Unexpected lexical analysis in token: '{0}'",[xe]:"unhandled codegen node type: '{0}'",[Te]:"unhandled mimifier node type: '{0}'"};function Me(e,t,n={}){const{domain:r,messages:o,args:a}=n,s="production"!==process.env.NODE_ENV?R((o||Ke)[e]||"",...a||[]):e,i=new SyntaxError(String(s));return i.code=e,t&&(i.location=t),i.domain=r,i}function Fe(e){throw e}const Se=/<\/?[\w\s="/.':;#-\/]+>/,De=" ",Pe="\n";function Ve(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>"\r"===t[e]&&t[e+1]===Pe,i=e=>"\u2029"===t[e],l=e=>"\u2028"===t[e],c=e=>s(e)||(e=>t[e]===Pe)(e)||i(e)||l(e),u=e=>s(e)||i(e)||l(e)?Pe:t[e];function f(){return a=0,c(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+a),next:f,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)f();a=0}}}const $e=void 0;function Re(e,t={}){const n=!1!==t.location,r=Ve(e),o=()=>r.index(),a=()=>function(e,t,n){return{line:e,column:t,offset:n}}(r.line(),r.column(),r.index()),s=a(),i=o(),l={currentType:13,offset:i,startLoc:s,endLoc:s,lastType:13,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(e,t,r,...o){const a=c();if(t.column+=r,t.offset+=r,u){const r=Me(e,n?me(a.startLoc,t):null,{domain:"tokenizer",args:o});u(r)}}function d(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=me(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>d(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(f(he,a(),0,t),"")}function h(e){let t="";for(;e.currentPeek()===De||e.currentPeek()===Pe;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=h(e);return e.skipToPeek(),t}function g(e){if(e===$e)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r=function(e){if(e===$e)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){h(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function v(e,t=!0){const n=(t=!1,r="")=>{const o=e.currentPeek();return"{"!==o&&"@"!==o&&o?"|"===o?!(r===De||r===Pe):o===De?(e.peek(),n(!0,De)):o!==Pe||(e.peek(),n(!0,Pe)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===$e?$e:t(n)?(e.next(),n):null}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function E(e){return k(e,C)}function w(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function N(e){return k(e,w)}function L(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,L)}function O(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function x(e){return k(e,O)}function T(e){let t="",n="";for(;t=I(e);)n+=t;return n}function K(e){return"'"!==e&&e!==Pe}function M(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return f(ye,a(),0,t),""}}function F(e,t,n){m(e,t);let r="";for(let o=0;o<n;o++){const n=x(e);if(!n){f(be,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function S(e){return"{"!==e&&"}"!==e&&e!==De&&e!==Pe}function D(e){_(e);const t=m(e,"|");return _(e),t}function P(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&f(Ee,a(),0),e.next(),n=d(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(Ce,a(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f(ke,a(),0),n=V(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,o=!0,s=!0;if(b(e))return t.braceNest>0&&f(ke,a(),0),n=d(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return f(ke,a(),0),t.braceNest=0,$(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,4,function(e){_(e);let t="",n="";for(;t=N(e);)n+=t;return e.currentChar()===$e&&f(ke,a(),0),n}(e)),_(e),n;if(o=y(e,t))return n=d(t,5,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===$e&&f(ke,a(),0),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=d(t,6,function(e){_(e),m(e,"'");let t="",n="";for(;t=k(e,K);)n+="\\"===t?M(e):t;const r=e.currentChar();return r===Pe||r===$e?(f(ge,a(),0),r===Pe&&(e.next(),m(e,"'")),n):(m(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!s)return n=d(t,12,function(e){_(e);let t="",n="";for(;t=k(e,S);)n+=t;return n}(e)),f(_e,a(),0,n.value),_(e),n;break}}return n}function V(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch((7===n||8===n||11===n||9===n)&&(o===Pe||o===De)&&f(we,a(),0),o){case"@":return e.next(),r=d(t,7,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),d(t,8,".");case":":return _(e),e.next(),d(t,9,":");default:return b(e)?(r=d(t,1,D(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;h(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;h(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),V(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;h(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),d(t,11,function(e){let t="",n="";for(;t=E(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===De||!t)&&(t===Pe?(e.peek(),r()):v(e,!1))},o=r();return e.resetPeek(),o}(e,t)?(_(e),"{"===o?P(e,t)||r:d(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r&&r!==De?(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&f(we,a(),0),t.braceNest=0,t.inLinked=!1,$(e,t))}}function $(e,t){let n={type:13};if(t.braceNest>0)return P(e,t)||p(t);if(t.inLinked)return V(e,t)||p(t);switch(e.currentChar()){case"{":return P(e,t)||p(t);case"}":return f(ve,a(),0),e.next(),d(t,3,"}");case"@":return V(e,t)||p(t);default:if(b(e))return n=d(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(v(e))return d(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===De||n===Pe)if(v(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=o(),l.startLoc=a(),r.currentChar()===$e?d(l,13):$(r,l)},currentOffset:o,currentPosition:a,context:c}}const We=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ae(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Ue(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,o,a,...s){const i=e.currentPosition();if(i.offset+=a,i.column+=a,n){const e=Me(r,t?me(o,i):null,{domain:"parser",args:s});n(e)}}function o(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function a(e,n,r,o){t&&(e.end=n,e.loc&&(e.loc.end=r))}function s(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function i(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,i=o(5,r,s);return i.index=parseInt(t,10),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,i=o(4,r,s);return i.key=t,e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,i=o(9,r,s);return i.value=t.replace(We,Ae),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function u(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:i}=n,l=o(8,s,i);return 11!==t.type?(r(e,Le,n.lastStartLoc,0),l.value="",a(l,s,i),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,Oe,n.lastStartLoc,0,je(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&r(e,Oe,t.lastStartLoc,0,je(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&r(e,Oe,t.lastStartLoc,0,je(s)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}(e,s.value||"");break;case 4:null==s.value&&r(e,Oe,t.lastStartLoc,0,je(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&r(e,Oe,t.lastStartLoc,0,je(s)),n.key=i(e,s.value||"");break;case 6:null==s.value&&r(e,Oe,t.lastStartLoc,0,je(s)),n.key=c(e,s.value||"");break;default:{r(e,Ie,t.lastStartLoc,0);const i=e.context(),l=o(7,i.offset,i.startLoc);return l.value="",a(l,i.offset,i.startLoc),n.key=l,a(n,i.offset,i.startLoc),{nextConsumeToken:s,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let f=null;do{const o=f||e.nextToken();switch(f=null,o.type){case 0:null==o.value&&r(e,Oe,t.lastStartLoc,0,je(o)),n.items.push(s(e,o.value||""));break;case 5:null==o.value&&r(e,Oe,t.lastStartLoc,0,je(o)),n.items.push(i(e,o.value||""));break;case 4:null==o.value&&r(e,Oe,t.lastStartLoc,0,je(o)),n.items.push(l(e,o.value||""));break;case 6:null==o.value&&r(e,Oe,t.lastStartLoc,0,je(o)),n.items.push(c(e,o.value||""));break;case 7:{const t=u(e);n.items.push(t.node),f=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function d(e){const t=e.context(),{offset:n,startLoc:s}=t,i=f(e);return 13===t.currentType?i:function(e,t,n,s){const i=e.context();let l=0===s.items.length;const c=o(1,t,n);c.cases=[],c.cases.push(s);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==i.currentType);return l&&r(e,Ne,n,0),a(c,e.currentOffset(),e.currentPosition()),c}(e,n,s,i)}return{parse:function(n){const s=Re(n,B({},e)),i=s.context(),l=o(0,i.offset,i.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=d(s),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==i.currentType&&r(s,Oe,i.lastStartLoc,0,n[i.offset]||""),a(l,s.currentOffset(),s.currentPosition()),l}}}function je(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function He(e,t){for(let n=0;n<e.length;n++)Be(e[n],t)}function Be(e,t){switch(e.type){case 1:He(e.cases,t),t.helper("plural");break;case 2:He(e.items,t);break;case 6:Be(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function ze(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Be(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Ye(e){if(1===e.items.length){const t=e.items[0];(3===t.type||9===t.type)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type||null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=ie(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];(3===n.type||9===n.type)&&delete n.value}}}}function Ge(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ge(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)Ge(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)Ge(n[e]);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;Ge(t.key),t.k=t.key,delete t.key,t.modifier&&(Ge(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("production"!==process.env.NODE_ENV)throw Me(Te,null,{domain:"minifier",args:[e.type]})}delete e.type}function Je(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Je(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(Je(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(Je(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Je(e,t.key),t.modifier?(e.push(", "),Je(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;default:if("production"!==process.env.NODE_ENV)throw Me(xe,null,{domain:"parser",args:[t.type]})}}function qe(e,t={}){const n=B({},t),r=!!n.jit,o=!!n.minify,a=null==n.optimize||n.optimize,s=Ue(n).parse(e);return r?(a&&function(e){const t=e.body;2===t.type?Ye(t):t.cases.forEach((e=>Ye(e)))}(s),o&&Ge(s),{ast:s,code:""}):(ze(s,n),((e,t={})=>{const n=te(t.mode)?t.mode:"normal",r=te(t.filename)?t.filename:"message.intl";t.sourceMap;const o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],i=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,a=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function i(e,t){s.code+=e}function l(e,t=!0){const n=t?r:"";i(o?n+" ".repeat(e):n)}return a&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:i,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{filename:r,breakLineCode:o,needIndent:a});i.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(a),s.length>0&&(i.push(`const { ${ie(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),i.newline()),i.push("return "),Je(i,e),i.deindent(a),i.push("}"),delete e.helpers;const{code:l,map:c}=i.context();return{ast:e,code:l,map:c?c.toJSON():void 0}})(s,n)
596
+ */
597
+ function zr(e, t, n) {
598
+ return { line: e, column: t, offset: n };
599
+ }
600
+ function wt(e, t, n) {
601
+ return { start: e, end: t };
602
+ }
603
+ const R = {
604
+ // tokenizer error codes
605
+ EXPECTED_TOKEN: 1,
606
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
607
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
608
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
609
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
610
+ UNBALANCED_CLOSING_BRACE: 6,
611
+ UNTERMINATED_CLOSING_BRACE: 7,
612
+ EMPTY_PLACEHOLDER: 8,
613
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
614
+ INVALID_LINKED_FORMAT: 10,
615
+ // parser error codes
616
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
617
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
618
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
619
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
620
+ // generator error codes
621
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
622
+ // minifier error codes
623
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
624
+ }, es = 17, ts = {
625
+ // tokenizer error messages
626
+ [R.EXPECTED_TOKEN]: "Expected token: '{0}'",
627
+ [R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
628
+ [R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
629
+ [R.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
630
+ [R.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
631
+ [R.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
632
+ [R.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
633
+ [R.EMPTY_PLACEHOLDER]: "Empty placeholder",
634
+ [R.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
635
+ [R.INVALID_LINKED_FORMAT]: "Invalid linked format",
636
+ // parser error messages
637
+ [R.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
638
+ [R.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
639
+ [R.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
640
+ [R.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
641
+ // generator error messages
642
+ [R.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
643
+ // minimizer error messages
644
+ [R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
645
+ };
646
+ function $e(e, t, n = {}) {
647
+ const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? dt((a || ts)[e] || "", ...s || []) : e, c = new SyntaxError(String(i));
648
+ return c.code = e, t && (c.location = t), c.domain = r, c;
649
+ }
650
+ function ns(e) {
651
+ throw e;
652
+ }
653
+ const rs = /<\/?[\w\s="/.':;#-\/]+>/, ss = (e) => rs.test(e), ge = " ", as = "\r", z = `
654
+ `, is = "\u2028", os = "\u2029";
655
+ function ls(e) {
656
+ const t = e;
657
+ let n = 0, r = 1, a = 1, s = 0;
658
+ const i = (g) => t[g] === as && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === os, p = (g) => t[g] === is, v = (g) => i(g) || c(g) || f(g) || p(g), N = () => n, y = () => r, C = () => a, D = () => s, A = (g) => i(g) || f(g) || p(g) ? z : t[g], k = () => A(n), o = () => A(n + s);
659
+ function m() {
660
+ return s = 0, v(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
661
+ }
662
+ function l() {
663
+ return i(n + s) && s++, s++, t[n + s];
664
+ }
665
+ function u() {
666
+ n = 0, r = 1, a = 1, s = 0;
667
+ }
668
+ function d(g = 0) {
669
+ s = g;
670
+ }
671
+ function E() {
672
+ const g = n + s;
673
+ for (; g !== n; )
674
+ m();
675
+ s = 0;
676
+ }
677
+ return {
678
+ index: N,
679
+ line: y,
680
+ column: C,
681
+ peekOffset: D,
682
+ charAt: A,
683
+ currentChar: k,
684
+ currentPeek: o,
685
+ next: m,
686
+ peek: l,
687
+ reset: u,
688
+ resetPeek: d,
689
+ skipToPeek: E
690
+ };
691
+ }
692
+ const be = void 0, cs = ".", bn = "'", us = "tokenizer";
693
+ function fs(e, t = {}) {
694
+ const n = t.location !== !1, r = ls(e), a = () => r.index(), s = () => zr(r.line(), r.column(), r.index()), i = s(), c = a(), f = {
695
+ currentType: 13,
696
+ offset: c,
697
+ startLoc: i,
698
+ endLoc: i,
699
+ lastType: 13,
700
+ lastOffset: c,
701
+ lastStartLoc: i,
702
+ lastEndLoc: i,
703
+ braceNest: 0,
704
+ inLinked: !1,
705
+ text: ""
706
+ }, p = () => f, { onError: v } = t;
707
+ function N(_, h, T, ...S) {
708
+ const Y = p();
709
+ if (h.column += T, h.offset += T, v) {
710
+ const H = n ? wt(Y.startLoc, h) : null, U = $e(_, H, {
711
+ domain: us,
712
+ args: S
713
+ });
714
+ v(U);
715
+ }
716
+ }
717
+ function y(_, h, T) {
718
+ _.endLoc = s(), _.currentType = h;
719
+ const S = { type: h };
720
+ return n && (S.loc = wt(_.startLoc, _.endLoc)), T != null && (S.value = T), S;
721
+ }
722
+ const C = (_) => y(
723
+ _,
724
+ 13
725
+ /* TokenTypes.EOF */
726
+ );
727
+ function D(_, h) {
728
+ return _.currentChar() === h ? (_.next(), h) : (N(R.EXPECTED_TOKEN, s(), 0, h), "");
729
+ }
730
+ function A(_) {
731
+ let h = "";
732
+ for (; _.currentPeek() === ge || _.currentPeek() === z; )
733
+ h += _.currentPeek(), _.peek();
734
+ return h;
735
+ }
736
+ function k(_) {
737
+ const h = A(_);
738
+ return _.skipToPeek(), h;
739
+ }
740
+ function o(_) {
741
+ if (_ === be)
742
+ return !1;
743
+ const h = _.charCodeAt(0);
744
+ return h >= 97 && h <= 122 || // a-z
745
+ h >= 65 && h <= 90 || // A-Z
746
+ h === 95;
747
+ }
748
+ function m(_) {
749
+ if (_ === be)
750
+ return !1;
751
+ const h = _.charCodeAt(0);
752
+ return h >= 48 && h <= 57;
753
+ }
754
+ function l(_, h) {
755
+ const { currentType: T } = h;
756
+ if (T !== 2)
757
+ return !1;
758
+ A(_);
759
+ const S = o(_.currentPeek());
760
+ return _.resetPeek(), S;
761
+ }
762
+ function u(_, h) {
763
+ const { currentType: T } = h;
764
+ if (T !== 2)
765
+ return !1;
766
+ A(_);
767
+ const S = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), Y = m(S);
768
+ return _.resetPeek(), Y;
769
+ }
770
+ function d(_, h) {
771
+ const { currentType: T } = h;
772
+ if (T !== 2)
773
+ return !1;
774
+ A(_);
775
+ const S = _.currentPeek() === bn;
776
+ return _.resetPeek(), S;
777
+ }
778
+ function E(_, h) {
779
+ const { currentType: T } = h;
780
+ if (T !== 7)
781
+ return !1;
782
+ A(_);
783
+ const S = _.currentPeek() === ".";
784
+ return _.resetPeek(), S;
785
+ }
786
+ function g(_, h) {
787
+ const { currentType: T } = h;
788
+ if (T !== 8)
789
+ return !1;
790
+ A(_);
791
+ const S = o(_.currentPeek());
792
+ return _.resetPeek(), S;
793
+ }
794
+ function O(_, h) {
795
+ const { currentType: T } = h;
796
+ if (!(T === 7 || T === 11))
797
+ return !1;
798
+ A(_);
799
+ const S = _.currentPeek() === ":";
800
+ return _.resetPeek(), S;
801
+ }
802
+ function P(_, h) {
803
+ const { currentType: T } = h;
804
+ if (T !== 9)
805
+ return !1;
806
+ const S = () => {
807
+ const H = _.currentPeek();
808
+ return H === "{" ? o(_.peek()) : H === "@" || H === "|" || H === ":" || H === "." || H === ge || !H ? !1 : H === z ? (_.peek(), S()) : B(_, !1);
809
+ }, Y = S();
810
+ return _.resetPeek(), Y;
811
+ }
812
+ function M(_) {
813
+ A(_);
814
+ const h = _.currentPeek() === "|";
815
+ return _.resetPeek(), h;
816
+ }
817
+ function B(_, h = !0) {
818
+ const T = (Y = !1, H = "") => {
819
+ const U = _.currentPeek();
820
+ return U === "{" || U === "@" || !U ? Y : U === "|" ? !(H === ge || H === z) : U === ge ? (_.peek(), T(!0, ge)) : U === z ? (_.peek(), T(!0, z)) : !0;
821
+ }, S = T();
822
+ return h && _.resetPeek(), S;
823
+ }
824
+ function x(_, h) {
825
+ const T = _.currentChar();
826
+ return T === be ? be : h(T) ? (_.next(), T) : null;
827
+ }
828
+ function oe(_) {
829
+ const h = _.charCodeAt(0);
830
+ return h >= 97 && h <= 122 || // a-z
831
+ h >= 65 && h <= 90 || // A-Z
832
+ h >= 48 && h <= 57 || // 0-9
833
+ h === 95 || // _
834
+ h === 36;
835
+ }
836
+ function le(_) {
837
+ return x(_, oe);
838
+ }
839
+ function Oe(_) {
840
+ const h = _.charCodeAt(0);
841
+ return h >= 97 && h <= 122 || // a-z
842
+ h >= 65 && h <= 90 || // A-Z
843
+ h >= 48 && h <= 57 || // 0-9
844
+ h === 95 || // _
845
+ h === 36 || // $
846
+ h === 45;
847
+ }
848
+ function ee(_) {
849
+ return x(_, Oe);
850
+ }
851
+ function Ee(_) {
852
+ const h = _.charCodeAt(0);
853
+ return h >= 48 && h <= 57;
854
+ }
855
+ function Me(_) {
856
+ return x(_, Ee);
857
+ }
858
+ function We(_) {
859
+ const h = _.charCodeAt(0);
860
+ return h >= 48 && h <= 57 || // 0-9
861
+ h >= 65 && h <= 70 || // A-F
862
+ h >= 97 && h <= 102;
863
+ }
864
+ function he(_) {
865
+ return x(_, We);
866
+ }
867
+ function Ge(_) {
868
+ let h = "", T = "";
869
+ for (; h = Me(_); )
870
+ T += h;
871
+ return T;
872
+ }
873
+ function Et(_) {
874
+ let h = "";
875
+ for (; ; ) {
876
+ const T = _.currentChar();
877
+ if (T === "{" || T === "}" || T === "@" || T === "|" || !T)
878
+ break;
879
+ if (T === ge || T === z)
880
+ if (B(_))
881
+ h += T, _.next();
882
+ else {
883
+ if (M(_))
884
+ break;
885
+ h += T, _.next();
886
+ }
887
+ else
888
+ h += T, _.next();
889
+ }
890
+ return h;
891
+ }
892
+ function bt(_) {
893
+ k(_);
894
+ let h = "", T = "";
895
+ for (; h = ee(_); )
896
+ T += h;
897
+ return _.currentChar() === be && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T;
898
+ }
899
+ function vt(_) {
900
+ k(_);
901
+ let h = "";
902
+ return _.currentChar() === "-" ? (_.next(), h += `-${Ge(_)}`) : h += Ge(_), _.currentChar() === be && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), h;
903
+ }
904
+ function yt(_) {
905
+ return _ !== bn && _ !== z;
906
+ }
907
+ function cn(_) {
908
+ k(_), D(_, "'");
909
+ let h = "", T = "";
910
+ for (; h = x(_, yt); )
911
+ h === "\\" ? T += Nt(_) : T += h;
912
+ const S = _.currentChar();
913
+ return S === z || S === be ? (N(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === z && (_.next(), D(_, "'")), T) : (D(_, "'"), T);
914
+ }
915
+ function Nt(_) {
916
+ const h = _.currentChar();
917
+ switch (h) {
918
+ case "\\":
919
+ case "'":
920
+ return _.next(), `\\${h}`;
921
+ case "u":
922
+ return rt(_, h, 4);
923
+ case "U":
924
+ return rt(_, h, 6);
925
+ default:
926
+ return N(R.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, h), "";
927
+ }
928
+ }
929
+ function rt(_, h, T) {
930
+ D(_, h);
931
+ let S = "";
932
+ for (let Y = 0; Y < T; Y++) {
933
+ const H = he(_);
934
+ if (!H) {
935
+ N(R.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${h}${S}${_.currentChar()}`);
936
+ break;
937
+ }
938
+ S += H;
939
+ }
940
+ return `\\${h}${S}`;
941
+ }
942
+ function Tt(_) {
943
+ return _ !== "{" && _ !== "}" && _ !== ge && _ !== z;
944
+ }
945
+ function Lt(_) {
946
+ k(_);
947
+ let h = "", T = "";
948
+ for (; h = x(_, Tt); )
949
+ T += h;
950
+ return T;
951
+ }
952
+ function Ot(_) {
953
+ let h = "", T = "";
954
+ for (; h = le(_); )
955
+ T += h;
956
+ return T;
957
+ }
958
+ function Ct(_) {
959
+ const h = (T) => {
960
+ const S = _.currentChar();
961
+ return S === "{" || S === "@" || S === "|" || S === "(" || S === ")" || !S || S === ge ? T : (T += S, _.next(), h(T));
962
+ };
963
+ return h("");
964
+ }
965
+ function Be(_) {
966
+ k(_);
967
+ const h = D(
968
+ _,
969
+ "|"
970
+ /* TokenChars.Pipe */
971
+ );
972
+ return k(_), h;
973
+ }
974
+ function Ye(_, h) {
975
+ let T = null;
976
+ switch (_.currentChar()) {
977
+ case "{":
978
+ return h.braceNest >= 1 && N(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), _.next(), T = y(
979
+ h,
980
+ 2,
981
+ "{"
982
+ /* TokenChars.BraceLeft */
983
+ ), k(_), h.braceNest++, T;
984
+ case "}":
985
+ return h.braceNest > 0 && h.currentType === 2 && N(R.EMPTY_PLACEHOLDER, s(), 0), _.next(), T = y(
986
+ h,
987
+ 3,
988
+ "}"
989
+ /* TokenChars.BraceRight */
990
+ ), h.braceNest--, h.braceNest > 0 && k(_), h.inLinked && h.braceNest === 0 && (h.inLinked = !1), T;
991
+ case "@":
992
+ return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = Ce(_, h) || C(h), h.braceNest = 0, T;
993
+ default: {
994
+ let Y = !0, H = !0, U = !0;
995
+ if (M(_))
996
+ return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
997
+ if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
998
+ return N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), h.braceNest = 0, He(_, h);
999
+ if (Y = l(_, h))
1000
+ return T = y(h, 4, bt(_)), k(_), T;
1001
+ if (H = u(_, h))
1002
+ return T = y(h, 5, vt(_)), k(_), T;
1003
+ if (U = d(_, h))
1004
+ return T = y(h, 6, cn(_)), k(_), T;
1005
+ if (!Y && !H && !U)
1006
+ return T = y(h, 12, Lt(_)), N(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, T.value), k(_), T;
1007
+ break;
1008
+ }
1009
+ }
1010
+ return T;
1011
+ }
1012
+ function Ce(_, h) {
1013
+ const { currentType: T } = h;
1014
+ let S = null;
1015
+ const Y = _.currentChar();
1016
+ switch ((T === 7 || T === 8 || T === 11 || T === 9) && (Y === z || Y === ge) && N(R.INVALID_LINKED_FORMAT, s(), 0), Y) {
1017
+ case "@":
1018
+ return _.next(), S = y(
1019
+ h,
1020
+ 7,
1021
+ "@"
1022
+ /* TokenChars.LinkedAlias */
1023
+ ), h.inLinked = !0, S;
1024
+ case ".":
1025
+ return k(_), _.next(), y(
1026
+ h,
1027
+ 8,
1028
+ "."
1029
+ /* TokenChars.LinkedDot */
1030
+ );
1031
+ case ":":
1032
+ return k(_), _.next(), y(
1033
+ h,
1034
+ 9,
1035
+ ":"
1036
+ /* TokenChars.LinkedDelimiter */
1037
+ );
1038
+ default:
1039
+ return M(_) ? (S = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, S) : E(_, h) || O(_, h) ? (k(_), Ce(_, h)) : g(_, h) ? (k(_), y(h, 11, Ot(_))) : P(_, h) ? (k(_), Y === "{" ? Ye(_, h) || S : y(h, 10, Ct(_))) : (T === 7 && N(R.INVALID_LINKED_FORMAT, s(), 0), h.braceNest = 0, h.inLinked = !1, He(_, h));
1040
+ }
1041
+ }
1042
+ function He(_, h) {
1043
+ let T = {
1044
+ type: 13
1045
+ /* TokenTypes.EOF */
1046
+ };
1047
+ if (h.braceNest > 0)
1048
+ return Ye(_, h) || C(h);
1049
+ if (h.inLinked)
1050
+ return Ce(_, h) || C(h);
1051
+ switch (_.currentChar()) {
1052
+ case "{":
1053
+ return Ye(_, h) || C(h);
1054
+ case "}":
1055
+ return N(R.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), y(
1056
+ h,
1057
+ 3,
1058
+ "}"
1059
+ /* TokenChars.BraceRight */
1060
+ );
1061
+ case "@":
1062
+ return Ce(_, h) || C(h);
1063
+ default: {
1064
+ if (M(_))
1065
+ return T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
1066
+ if (B(_))
1067
+ return y(h, 0, Et(_));
1068
+ break;
1069
+ }
1070
+ }
1071
+ return T;
1072
+ }
1073
+ function It() {
1074
+ const { currentType: _, offset: h, startLoc: T, endLoc: S } = f;
1075
+ return f.lastType = _, f.lastOffset = h, f.lastStartLoc = T, f.lastEndLoc = S, f.offset = a(), f.startLoc = s(), r.currentChar() === be ? y(
1076
+ f,
1077
+ 13
1078
+ /* TokenTypes.EOF */
1079
+ ) : He(r, f);
1080
+ }
1081
+ return {
1082
+ nextToken: It,
1083
+ currentOffset: a,
1084
+ currentPosition: s,
1085
+ context: p
1086
+ };
1087
+ }
1088
+ const _s = "parser", ds = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1089
+ function ms(e, t, n) {
1090
+ switch (e) {
1091
+ case "\\\\":
1092
+ return "\\";
1093
+ // eslint-disable-next-line no-useless-escape
1094
+ case "\\'":
1095
+ return "'";
1096
+ default: {
1097
+ const r = parseInt(t || n, 16);
1098
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
1099
+ }
1100
+ }
1101
+ }
1102
+ function hs(e = {}) {
1103
+ const t = e.location !== !1, { onError: n } = e;
1104
+ function r(o, m, l, u, ...d) {
1105
+ const E = o.currentPosition();
1106
+ if (E.offset += u, E.column += u, n) {
1107
+ const g = t ? wt(l, E) : null, O = $e(m, g, {
1108
+ domain: _s,
1109
+ args: d
1110
+ });
1111
+ n(O);
1112
+ }
1113
+ }
1114
+ function a(o, m, l) {
1115
+ const u = { type: o };
1116
+ return t && (u.start = m, u.end = m, u.loc = { start: l, end: l }), u;
1117
+ }
1118
+ function s(o, m, l, u) {
1119
+ t && (o.end = m, o.loc && (o.loc.end = l));
1120
+ }
1121
+ function i(o, m) {
1122
+ const l = o.context(), u = a(3, l.offset, l.startLoc);
1123
+ return u.value = m, s(u, o.currentOffset(), o.currentPosition()), u;
1124
+ }
1125
+ function c(o, m) {
1126
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(5, u, d);
1127
+ return E.index = parseInt(m, 10), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1128
+ }
1129
+ function f(o, m) {
1130
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(4, u, d);
1131
+ return E.key = m, o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1132
+ }
1133
+ function p(o, m) {
1134
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(9, u, d);
1135
+ return E.value = m.replace(ds, ms), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1136
+ }
1137
+ function v(o) {
1138
+ const m = o.nextToken(), l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(8, u, d);
1139
+ return m.type !== 11 ? (r(o, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, l.lastStartLoc, 0), E.value = "", s(E, u, d), {
1140
+ nextConsumeToken: m,
1141
+ node: E
1142
+ }) : (m.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, l.lastStartLoc, 0, ce(m)), E.value = m.value || "", s(E, o.currentOffset(), o.currentPosition()), {
1143
+ node: E
1144
+ });
1145
+ }
1146
+ function N(o, m) {
1147
+ const l = o.context(), u = a(7, l.offset, l.startLoc);
1148
+ return u.value = m, s(u, o.currentOffset(), o.currentPosition()), u;
1149
+ }
1150
+ function y(o) {
1151
+ const m = o.context(), l = a(6, m.offset, m.startLoc);
1152
+ let u = o.nextToken();
1153
+ if (u.type === 8) {
1154
+ const d = v(o);
1155
+ l.modifier = d.node, u = d.nextConsumeToken || o.nextToken();
1156
+ }
1157
+ switch (u.type !== 9 && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), u = o.nextToken(), u.type === 2 && (u = o.nextToken()), u.type) {
1158
+ case 10:
1159
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = N(o, u.value || "");
1160
+ break;
1161
+ case 4:
1162
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = f(o, u.value || "");
1163
+ break;
1164
+ case 5:
1165
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = c(o, u.value || "");
1166
+ break;
1167
+ case 6:
1168
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = p(o, u.value || "");
1169
+ break;
1170
+ default: {
1171
+ r(o, R.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
1172
+ const d = o.context(), E = a(7, d.offset, d.startLoc);
1173
+ return E.value = "", s(E, d.offset, d.startLoc), l.key = E, s(l, d.offset, d.startLoc), {
1174
+ nextConsumeToken: u,
1175
+ node: l
1176
+ };
1177
+ }
1178
+ }
1179
+ return s(l, o.currentOffset(), o.currentPosition()), {
1180
+ node: l
1181
+ };
1182
+ }
1183
+ function C(o) {
1184
+ const m = o.context(), l = m.currentType === 1 ? o.currentOffset() : m.offset, u = m.currentType === 1 ? m.endLoc : m.startLoc, d = a(2, l, u);
1185
+ d.items = [];
1186
+ let E = null;
1187
+ do {
1188
+ const P = E || o.nextToken();
1189
+ switch (E = null, P.type) {
1190
+ case 0:
1191
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(i(o, P.value || ""));
1192
+ break;
1193
+ case 5:
1194
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(c(o, P.value || ""));
1195
+ break;
1196
+ case 4:
1197
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(f(o, P.value || ""));
1198
+ break;
1199
+ case 6:
1200
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(p(o, P.value || ""));
1201
+ break;
1202
+ case 7: {
1203
+ const M = y(o);
1204
+ d.items.push(M.node), E = M.nextConsumeToken || null;
1205
+ break;
1206
+ }
1207
+ }
1208
+ } while (m.currentType !== 13 && m.currentType !== 1);
1209
+ const g = m.currentType === 1 ? m.lastOffset : o.currentOffset(), O = m.currentType === 1 ? m.lastEndLoc : o.currentPosition();
1210
+ return s(d, g, O), d;
1211
+ }
1212
+ function D(o, m, l, u) {
1213
+ const d = o.context();
1214
+ let E = u.items.length === 0;
1215
+ const g = a(1, m, l);
1216
+ g.cases = [], g.cases.push(u);
1217
+ do {
1218
+ const O = C(o);
1219
+ E || (E = O.items.length === 0), g.cases.push(O);
1220
+ } while (d.currentType !== 13);
1221
+ return E && r(o, R.MUST_HAVE_MESSAGES_IN_PLURAL, l, 0), s(g, o.currentOffset(), o.currentPosition()), g;
1222
+ }
1223
+ function A(o) {
1224
+ const m = o.context(), { offset: l, startLoc: u } = m, d = C(o);
1225
+ return m.currentType === 13 ? d : D(o, l, u, d);
1226
+ }
1227
+ function k(o) {
1228
+ const m = fs(o, Q({}, e)), l = m.context(), u = a(0, l.offset, l.startLoc);
1229
+ return t && u.loc && (u.loc.source = o), u.body = A(m), e.onCacheKey && (u.cacheKey = e.onCacheKey(o)), l.currentType !== 13 && r(m, R.UNEXPECTED_LEXICAL_ANALYSIS, l.lastStartLoc, 0, o[l.offset] || ""), s(u, m.currentOffset(), m.currentPosition()), u;
1230
+ }
1231
+ return { parse: k };
1232
+ }
1233
+ function ce(e) {
1234
+ if (e.type === 13)
1235
+ return "EOF";
1236
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1237
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
1238
+ }
1239
+ function gs(e, t = {}) {
1240
+ const n = {
1241
+ ast: e,
1242
+ helpers: /* @__PURE__ */ new Set()
1243
+ };
1244
+ return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
1245
+ }
1246
+ function vn(e, t) {
1247
+ for (let n = 0; n < e.length; n++)
1248
+ zt(e[n], t);
1249
+ }
1250
+ function zt(e, t) {
1251
+ switch (e.type) {
1252
+ case 1:
1253
+ vn(e.cases, t), t.helper(
1254
+ "plural"
1255
+ /* HelperNameMap.PLURAL */
1256
+ );
1257
+ break;
1258
+ case 2:
1259
+ vn(e.items, t);
1260
+ break;
1261
+ case 6: {
1262
+ zt(e.key, t), t.helper(
1263
+ "linked"
1264
+ /* HelperNameMap.LINKED */
1265
+ ), t.helper(
1266
+ "type"
1267
+ /* HelperNameMap.TYPE */
1268
+ );
1269
+ break;
1270
+ }
1271
+ case 5:
1272
+ t.helper(
1273
+ "interpolate"
1274
+ /* HelperNameMap.INTERPOLATE */
1275
+ ), t.helper(
1276
+ "list"
1277
+ /* HelperNameMap.LIST */
1278
+ );
1279
+ break;
1280
+ case 4:
1281
+ t.helper(
1282
+ "interpolate"
1283
+ /* HelperNameMap.INTERPOLATE */
1284
+ ), t.helper(
1285
+ "named"
1286
+ /* HelperNameMap.NAMED */
1287
+ );
1288
+ break;
1289
+ }
1290
+ }
1291
+ function ps(e, t = {}) {
1292
+ const n = gs(e);
1293
+ n.helper(
1294
+ "normalize"
1295
+ /* HelperNameMap.NORMALIZE */
1296
+ ), e.body && zt(e.body, n);
1297
+ const r = n.context();
1298
+ e.helpers = Array.from(r.helpers);
1299
+ }
1300
+ function Es(e) {
1301
+ const t = e.body;
1302
+ return t.type === 2 ? yn(t) : t.cases.forEach((n) => yn(n)), e;
1303
+ }
1304
+ function yn(e) {
1305
+ if (e.items.length === 1) {
1306
+ const t = e.items[0];
1307
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
1308
+ } else {
1309
+ const t = [];
1310
+ for (let n = 0; n < e.items.length; n++) {
1311
+ const r = e.items[n];
1312
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
1313
+ break;
1314
+ t.push(r.value);
1315
+ }
1316
+ if (t.length === e.items.length) {
1317
+ e.static = Jt(t);
1318
+ for (let n = 0; n < e.items.length; n++) {
1319
+ const r = e.items[n];
1320
+ (r.type === 3 || r.type === 9) && delete r.value;
1321
+ }
1322
+ }
1323
+ }
1324
+ }
1325
+ const bs = "minifier";
1326
+ function Ue(e) {
1327
+ switch (e.t = e.type, e.type) {
1328
+ case 0: {
1329
+ const t = e;
1330
+ Ue(t.body), t.b = t.body, delete t.body;
1331
+ break;
1332
+ }
1333
+ case 1: {
1334
+ const t = e, n = t.cases;
1335
+ for (let r = 0; r < n.length; r++)
1336
+ Ue(n[r]);
1337
+ t.c = n, delete t.cases;
1338
+ break;
1339
+ }
1340
+ case 2: {
1341
+ const t = e, n = t.items;
1342
+ for (let r = 0; r < n.length; r++)
1343
+ Ue(n[r]);
1344
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
1345
+ break;
1346
+ }
1347
+ case 3:
1348
+ case 9:
1349
+ case 8:
1350
+ case 7: {
1351
+ const t = e;
1352
+ t.value && (t.v = t.value, delete t.value);
1353
+ break;
1354
+ }
1355
+ case 6: {
1356
+ const t = e;
1357
+ Ue(t.key), t.k = t.key, delete t.key, t.modifier && (Ue(t.modifier), t.m = t.modifier, delete t.modifier);
1358
+ break;
1359
+ }
1360
+ case 5: {
1361
+ const t = e;
1362
+ t.i = t.index, delete t.index;
1363
+ break;
1364
+ }
1365
+ case 4: {
1366
+ const t = e;
1367
+ t.k = t.key, delete t.key;
1368
+ break;
1369
+ }
1370
+ default:
1371
+ if (process.env.NODE_ENV !== "production")
1372
+ throw $e(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1373
+ domain: bs,
1374
+ args: [e.type]
1375
+ });
1376
+ }
1377
+ delete e.type;
1378
+ }
1379
+ const vs = "parser";
1380
+ function ys(e, t) {
1381
+ const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, i = {
1382
+ filename: n,
1383
+ code: "",
1384
+ column: 1,
1385
+ line: 1,
1386
+ offset: 0,
1387
+ map: void 0,
1388
+ breakLineCode: r,
1389
+ needIndent: a,
1390
+ indentLevel: 0
1391
+ };
1392
+ s && e.loc && (i.source = e.loc.source);
1393
+ const c = () => i;
1394
+ function f(A, k) {
1395
+ i.code += A;
1396
+ }
1397
+ function p(A, k = !0) {
1398
+ const o = k ? r : "";
1399
+ f(a ? o + " ".repeat(A) : o);
1400
+ }
1401
+ function v(A = !0) {
1402
+ const k = ++i.indentLevel;
1403
+ A && p(k);
1404
+ }
1405
+ function N(A = !0) {
1406
+ const k = --i.indentLevel;
1407
+ A && p(k);
1408
+ }
1409
+ function y() {
1410
+ p(i.indentLevel);
1411
+ }
1412
+ return {
1413
+ context: c,
1414
+ push: f,
1415
+ indent: v,
1416
+ deindent: N,
1417
+ newline: y,
1418
+ helper: (A) => `_${A}`,
1419
+ needIndent: () => i.needIndent
1420
+ };
1421
+ }
1422
+ function Ns(e, t) {
1423
+ const { helper: n } = e;
1424
+ e.push(`${n(
1425
+ "linked"
1426
+ /* HelperNameMap.LINKED */
1427
+ )}(`), xe(e, t.key), t.modifier ? (e.push(", "), xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1428
+ }
1429
+ function Ts(e, t) {
1430
+ const { helper: n, needIndent: r } = e;
1431
+ e.push(`${n(
1432
+ "normalize"
1433
+ /* HelperNameMap.NORMALIZE */
1434
+ )}([`), e.indent(r());
1435
+ const a = t.items.length;
1436
+ for (let s = 0; s < a && (xe(e, t.items[s]), s !== a - 1); s++)
1437
+ e.push(", ");
1438
+ e.deindent(r()), e.push("])");
1439
+ }
1440
+ function Ls(e, t) {
1441
+ const { helper: n, needIndent: r } = e;
1442
+ if (t.cases.length > 1) {
1443
+ e.push(`${n(
1444
+ "plural"
1445
+ /* HelperNameMap.PLURAL */
1446
+ )}([`), e.indent(r());
1447
+ const a = t.cases.length;
1448
+ for (let s = 0; s < a && (xe(e, t.cases[s]), s !== a - 1); s++)
1449
+ e.push(", ");
1450
+ e.deindent(r()), e.push("])");
1451
+ }
1452
+ }
1453
+ function Os(e, t) {
1454
+ t.body ? xe(e, t.body) : e.push("null");
1455
+ }
1456
+ function xe(e, t) {
1457
+ const { helper: n } = e;
1458
+ switch (t.type) {
1459
+ case 0:
1460
+ Os(e, t);
1461
+ break;
1462
+ case 1:
1463
+ Ls(e, t);
1464
+ break;
1465
+ case 2:
1466
+ Ts(e, t);
1467
+ break;
1468
+ case 6:
1469
+ Ns(e, t);
1470
+ break;
1471
+ case 8:
1472
+ e.push(JSON.stringify(t.value), t);
1473
+ break;
1474
+ case 7:
1475
+ e.push(JSON.stringify(t.value), t);
1476
+ break;
1477
+ case 5:
1478
+ e.push(`${n(
1479
+ "interpolate"
1480
+ /* HelperNameMap.INTERPOLATE */
1481
+ )}(${n(
1482
+ "list"
1483
+ /* HelperNameMap.LIST */
1484
+ )}(${t.index}))`, t);
1485
+ break;
1486
+ case 4:
1487
+ e.push(`${n(
1488
+ "interpolate"
1489
+ /* HelperNameMap.INTERPOLATE */
1490
+ )}(${n(
1491
+ "named"
1492
+ /* HelperNameMap.NAMED */
1493
+ )}(${JSON.stringify(t.key)}))`, t);
1494
+ break;
1495
+ case 9:
1496
+ e.push(JSON.stringify(t.value), t);
1497
+ break;
1498
+ case 3:
1499
+ e.push(JSON.stringify(t.value), t);
1500
+ break;
1501
+ default:
1502
+ if (process.env.NODE_ENV !== "production")
1503
+ throw $e(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1504
+ domain: vs,
1505
+ args: [t.type]
1506
+ });
1507
+ }
1508
+ }
1509
+ const Cs = (e, t = {}) => {
1510
+ const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
1511
+ t.sourceMap;
1512
+ const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1513
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = ys(e, {
1514
+ filename: r,
1515
+ breakLineCode: a,
1516
+ needIndent: s
1517
+ });
1518
+ c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(s), i.length > 0 && (c.push(`const { ${Jt(i.map((v) => `${v}: _${v}`), ", ")} } = ctx`), c.newline()), c.push("return "), xe(c, e), c.deindent(s), c.push("}"), delete e.helpers;
1519
+ const { code: f, map: p } = c.context();
1520
+ return {
1521
+ ast: e,
1522
+ code: f,
1523
+ map: p ? p.toJSON() : void 0
1524
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1525
+ };
1526
+ };
1527
+ function Is(e, t = {}) {
1528
+ const n = Q({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, c = hs(n).parse(e);
1529
+ return r ? (s && Es(c), a && Ue(c), { ast: c, code: "" }) : (ps(c, n), Cs(c, n));
1530
+ }
13
1531
  /*!
14
1532
  * core-base v11.1.1
15
1533
  * (c) 2025 kazuya kawaguchi
16
1534
  * Released under the MIT License.
17
- */)}function Qe(e){return t=>function(e,t){const n=function(e){return ut(e,Ze)}(t);if(null==n)throw ft(0);if(1===at(n)){const t=function(e){return ut(e,Xe,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,et(e,n)]),[]))}return et(e,n)}(t,e)}const Ze=["b","body"];const Xe=["c","cases"];function et(e,t){const n=function(e){return ut(e,tt)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ut(e,nt,[])}(t).reduce(((t,n)=>[...t,rt(e,n)]),[]);return e.normalize(n)}}const tt=["s","static"];const nt=["i","items"];function rt(e,t){const n=at(t);switch(n){case 3:case 9:case 7:case 8:return it(t,n);case 4:{const r=t;if(Z(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Z(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ft(n)}case 5:{const r=t;if(Z(r,"i")&&U(r.i))return e.interpolate(e.list(r.i));if(Z(r,"index")&&U(r.index))return e.interpolate(e.list(r.index));throw ft(n)}case 6:{const n=t,r=function(e){return ut(e,lt)}(n),o=function(e){const t=ut(e,ct);if(t)return t;throw ft(6)}(n);return e.linked(rt(e,o),r?rt(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const ot=["t","type"];function at(e){return ut(e,ot)}const st=["v","value"];function it(e,t){const n=ut(e,st);if(n)return n;throw ft(t)}const lt=["m","modifier"];const ct=["k","key"];function ut(e,t,n){for(let n=0;n<t.length;n++){const r=t[n];if(Z(e,r)&&null!=e[r])return e[r]}return n}function ft(e){return new Error(`unhandled node type: ${e}`)}function dt(e,t){t&&(e=>Se.test(e))(e)&&R("Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.",{source:e})}const pt=e=>e;let mt=Y();function ht(e){return re(e)&&0===at(e)&&(Z(e,"b")||Z(e,"body"))}let _t=null;const gt=yt("function:translate");function yt(e){return t=>_t&&_t.emit(e,t)}const bt=17,vt=18,kt=19,Ct=20,Et=21,wt=22,Nt=23;function Lt(e){return Me(e,null,"production"!==process.env.NODE_ENV?{messages:It}:void 0)}const It={[bt]:"Invalid arguments",[vt]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[kt]:"The argument provided is not a valid ISO date string",[Ct]:"Not support non-string message",[Et]:"cannot support promise value",[wt]:"cannot support async function",[Nt]:"cannot support locale type"};function Ot(e,t){return null!=t.locale?Tt(t.locale):Tt(e.locale)}let xt;function Tt(e){if(te(e))return e;if(ee(e)){if(e.resolvedOnce&&null!=xt)return xt;if("Function"===e.constructor.name){const t=e();if((e=>re(e)&&ee(e.then)&&ee(e.catch))(t))throw Lt(Et);return xt=t}throw Lt(wt)}throw Lt(Nt)}function Kt(e,t,n){return[...new Set([n,...X(t)?t:re(t)?Object.keys(t):te(t)?[t]:[n]])]}function Mt(e,t,n){const r=te(n)?n:Qt,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;X(e);)e=Ft(a,e,t);const s=X(t)||!se(t)?t:t.default?t.default:null;e=te(s)?[s]:s,X(e)&&Ft(a,e,!1),o.__localeChainCache.set(r,a)}return a}function Ft(e,t,n){let r=!0;for(let o=0;o<t.length&&ne(r);o++){const a=t[o];te(a)&&(r=St(e,t[o],n))}return r}function St(e,t,n){let r;const o=t.split("-");do{r=Dt(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Dt(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(X(n)||se(n))&&n[o]&&(r=n[o])}return r}const Pt=[];Pt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pt[1]={w:[1],".":[2],"[":[4],o:[7]},Pt[2]={w:[2],i:[3,0],0:[3,0]},Pt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pt[5]={"'":[4,0],o:8,l:[5,0]},Pt[6]={'"':[4,0],o:8,l:[6,0]};const Vt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $t(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Rt(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(function(e){return Vt.test(e)}(t)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t)}const Wt=new Map;function At(e,t){return re(e)?e[t]:null}const Ut=1,jt=2,Ht=3,Bt=4,zt=5,Yt=6,Gt=7,Jt={[Ut]:"Not found '{key}' key in '{locale}' locale messages.",[jt]:"Fall back to translate '{key}' key with '{target}' locale.",[Ht]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Bt]:"Fall back to number format '{key}' key with '{target}' locale.",[zt]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Yt]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Gt]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function qt(e,...t){return R(Jt[e],...t)}const Qt="en-US",Zt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Xt,en,tn;let nn=null;const rn=()=>nn;let on=null;const an=e=>{on=e};let sn=0;function ln(e={}){const t=ee(e.onWarn)?e.onWarn:le,n=te(e.version)?e.version:"11.1.1",r=te(e.locale)||ee(e.locale)?e.locale:Qt,o=ee(r)?Qt:r,a=X(e.fallbackLocale)||se(e.fallbackLocale)||te(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,s=se(e.messages)?e.messages:cn(o),i=se(e.datetimeFormats)?e.datetimeFormats:cn(o),l=se(e.numberFormats)?e.numberFormats:cn(o),c=B(Y(),e.modifiers,{upper:(e,t)=>"text"===t&&te(e)?e.toUpperCase():"vnode"===t&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&te(e)?e.toLowerCase():"vnode"===t&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&te(e)?Zt(e):"vnode"===t&&re(e)&&"__v_isVNode"in e?Zt(e.children):e}),u=e.pluralRules||Y(),f=ee(e.missing)?e.missing:null,d=!ne(e.missingWarn)&&!j(e.missingWarn)||e.missingWarn,p=!ne(e.fallbackWarn)&&!j(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,h=!!e.unresolving,_=ee(e.postTranslation)?e.postTranslation:null,g=se(e.processor)?e.processor:null,y=!ne(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,v=ee(e.messageCompiler)?e.messageCompiler:Xt;"production"!==process.env.NODE_ENV&&ee(e.messageCompiler)&&ue(qt(Gt));const k=ee(e.messageResolver)?e.messageResolver:en||At,C=ee(e.localeFallbacker)?e.localeFallbacker:tn||Kt,E=re(e.fallbackContext)?e.fallbackContext:void 0,w=e,N=re(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,L=re(w.__numberFormatters)?w.__numberFormatters:new Map,I=re(w.__meta)?w.__meta:{};sn++;const O={version:n,cid:sn,locale:r,fallbackLocale:a,messages:s,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:_,processor:g,warnHtmlMessage:y,escapeParameter:b,messageCompiler:v,messageResolver:k,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:I};return O.datetimeFormats=i,O.numberFormats=l,O.__datetimeFormatters=N,O.__numberFormatters=L,"production"!==process.env.NODE_ENV&&(O.__v_emitter=null!=w.__v_emitter?w.__v_emitter:void 0),("production"!==process.env.NODE_ENV||__INTLIFY_PROD_DEVTOOLS__)&&function(e,t,n){_t&&_t.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(O,n,I),O}const cn=e=>({[e]:Y()});function un(e,t){return e instanceof RegExp?e.test(t):e}function fn(e,t){return e instanceof RegExp?e.test(t):e}function dn(e,t,n,r,o){const{missing:a,onWarn:s}=e;if("production"!==process.env.NODE_ENV){const r=e.__v_emitter;r&&r.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(null!==a){const r=a(e,n,t,o);return te(r)?r:t}return"production"!==process.env.NODE_ENV&&fn(r,t)&&s(qt(Ut,{key:t,locale:n})),t}function pn(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function mn(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function hn(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(mn(e,t[r]))return!0;return!1}const _n=typeof Intl<"u",gn=_n&&typeof Intl.DateTimeFormat<"u",yn=_n&&typeof Intl.NumberFormat<"u";function bn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:i}=e;if("production"!==process.env.NODE_ENV&&!gn)return a(qt(zt)),"";const[l,c,u,f]=kn(...t),d=ne(u.missingWarn)?u.missingWarn:e.missingWarn,p=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Ot(e,u),_=s(e,o,h);if(!te(l)||""===l)return new Intl.DateTimeFormat(h,f).format(c);let g,y={},b=null,v=h,k=null;const C="datetime format";for(let t=0;t<_.length;t++){if(g=k=_[t],"production"!==process.env.NODE_ENV&&h!==g&&un(p,l)&&a(qt(Yt,{key:l,target:g})),"production"!==process.env.NODE_ENV&&h!==g){const t=e.__v_emitter;t&&t.emit("fallback",{type:C,key:l,from:v,to:k,groupId:`${C}:${l}`})}if(y=n[g]||{},b=y[l],se(b))break;dn(e,l,g,d,C),v=k}if(!se(b)||!te(g))return r?-1:l;let E=`${g}__${l}`;H(f)||(E=`${E}__${JSON.stringify(f)}`);let w=i.get(E);return w||(w=new Intl.DateTimeFormat(g,B({},b,f)),i.set(E,w)),m?w.formatToParts(c):w.format(c)}const vn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function kn(...e){const[t,n,r,o]=e,a=Y();let s,i=Y();if(te(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Lt(kt);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Lt(kt)}}else if((e=>"[object Date]"===ae(e))(t)){if(isNaN(t.getTime()))throw Lt(vt);s=t}else{if(!U(t))throw Lt(bt);s=t}return te(n)?a.key=n:se(n)&&Object.keys(n).forEach((e=>{vn.includes(e)?i[e]=n[e]:a[e]=n[e]})),te(r)?a.locale=r:se(r)&&(i=r),se(o)&&(i=o),[a.key||"",s,a,i]}function Cn(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function En(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:i}=e;if("production"!==process.env.NODE_ENV&&!yn)return a(qt(Ht)),"";const[l,c,u,f]=Nn(...t),d=ne(u.missingWarn)?u.missingWarn:e.missingWarn,p=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Ot(e,u),_=s(e,o,h);if(!te(l)||""===l)return new Intl.NumberFormat(h,f).format(c);let g,y={},b=null,v=h,k=null;const C="number format";for(let t=0;t<_.length;t++){if(g=k=_[t],"production"!==process.env.NODE_ENV&&h!==g&&un(p,l)&&a(qt(Bt,{key:l,target:g})),"production"!==process.env.NODE_ENV&&h!==g){const t=e.__v_emitter;t&&t.emit("fallback",{type:C,key:l,from:v,to:k,groupId:`${C}:${l}`})}if(y=n[g]||{},b=y[l],se(b))break;dn(e,l,g,d,C),v=k}if(!se(b)||!te(g))return r?-1:l;let E=`${g}__${l}`;H(f)||(E=`${E}__${JSON.stringify(f)}`);let w=i.get(E);return w||(w=new Intl.NumberFormat(g,B({},b,f)),i.set(E,w)),m?w.formatToParts(c):w.format(c)}const wn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nn(...e){const[t,n,r,o]=e,a=Y();let s=Y();if(!U(t))throw Lt(bt);const i=t;return te(n)?a.key=n:se(n)&&Object.keys(n).forEach((e=>{wn.includes(e)?s[e]=n[e]:a[e]=n[e]})),te(r)?a.locale=r:se(r)&&(s=r),se(o)&&(s=o),[a.key||"",i,a,s]}function Ln(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const In=e=>e,On=e=>"",xn=e=>0===e.length?"":ie(e),Tn=e=>null==e?"":X(e)||se(e)&&e.toString===oe?JSON.stringify(e,null,2):String(e);function Kn(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Mn(e={}){const t=e.locale,n=function(e){const t=U(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(U(e.named.count)||U(e.named.n))?U(e.named.count)?e.named.count:U(e.named.n)?e.named.n:t:t}(e),r=re(e.pluralRules)&&te(t)&&ee(e.pluralRules[t])?e.pluralRules[t]:Kn,o=re(e.pluralRules)&&te(t)&&ee(e.pluralRules[t])?Kn:void 0,a=e.list||[],s=e.named||Y();U(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t,n){return(ee(e.messages)?e.messages(t,!!n):!!re(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):On)}const l=se(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:xn,c=se(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:Tn,u={list:e=>a[e],named:e=>s[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let a="text",s="";1===n.length?re(r)?(s=r.modifier||s,a=r.type||a):te(r)&&(s=r||s):2===n.length&&(te(r)&&(s=r||s),te(o)&&(a=o||a));const l=i(t,!0)(u),c="vnode"===a&&X(l)&&s?l[0]:l;return s?(t=>e.modifiers?e.modifiers[t]:In)(s)(c,a):c},message:i,type:se(e.processor)&&te(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l,values:B(Y(),a,s)};return u}const Fn=()=>"",Sn=e=>ee(e);function Dn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:s,messages:i}=e,[l,c]=$n(...t),u=ne(c.missingWarn)?c.missingWarn:e.missingWarn,f=ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=ne(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,m=te(c.default)||ne(c.default)?ne(c.default)?a?l:()=>l:c.default:n?a?l:()=>l:null,h=n||null!=m&&(te(m)||ee(m)),_=Ot(e,c);d&&function(e){X(e.list)?e.list=e.list.map((e=>te(e)?q(e):e)):re(e.named)&&Object.keys(e.named).forEach((t=>{te(e.named[t])&&(e.named[t]=q(e.named[t]))}))}(c);let[g,y,b]=p?[l,_,i[_]||Y()]:Pn(e,l,_,s,f,u),v=g,k=l;if(!p&&!(te(v)||ht(v)||Sn(v))&&h&&(v=m,k=v),!(p||(te(v)||ht(v)||Sn(v))&&te(y)))return o?-1:l;if("production"!==process.env.NODE_ENV&&te(v)&&null==e.messageCompiler)return l;let C=!1;const E=Sn(v)?v:Vn(e,l,y,v,k,(()=>{C=!0}));if(C)return v;const w=function(e,t,n,r){const{modifiers:o,pluralRules:a,messageResolver:s,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:o,pluralRules:a,messages:(r,o)=>{let a=s(n,r);if(null==a&&(u||o)){const[,,n]=Pn(u||e,r,t,i,l,c);a=s(n,r)}if(te(a)||ht(a)){let n=!1;const o=Vn(e,r,t,a,r,(()=>{n=!0}));return n?Fn:o}return Sn(a)?a:Fn}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),U(r.plural)&&(f.pluralIndex=r.plural),f}(e,y,b,c),N=function(e,t,n){let r,o,a=null;"production"!==process.env.NODE_ENV&&D&&(a=window.performance.now(),r="intlify-message-evaluation-start",o="intlify-message-evaluation-end",P&&P(r));const s=t(n);if("production"!==process.env.NODE_ENV&&D){const n=window.performance.now(),i=e.__v_emitter;i&&a&&i.emit("message-evaluation",{type:"message-evaluation",value:s,time:n-a,groupId:`translate:${t.key}`}),r&&o&&P&&V&&(P(o),V("intlify message evaluation",r,o))}return s}(e,E,Mn(w)),L=r?r(N,l):N;if("production"!==process.env.NODE_ENV||__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:te(l)?l:Sn(v)?v.key:"",locale:y||(Sn(v)?v.locale:""),format:te(v)?v:Sn(v)?v.source:"",message:L};t.meta=B({},e.__meta,rn()||{}),gt(t)}return L}function Pn(e,t,n,r,o,a){const{messages:s,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f,d=Y(),p=null,m=n,h=null;const _="translate";for(let r=0;r<u.length;r++){if(f=h=u[r],"production"!==process.env.NODE_ENV&&n!==f&&!mn(n,f)&&un(o,t)&&i(qt(jt,{key:t,target:f})),"production"!==process.env.NODE_ENV&&n!==f){const n=e.__v_emitter;n&&n.emit("fallback",{type:_,key:t,from:m,to:h,groupId:`${_}:${t}`})}d=s[f]||Y();let c,g,y=null;if("production"!==process.env.NODE_ENV&&D&&(y=window.performance.now(),c="intlify-message-resolve-start",g="intlify-message-resolve-end",P&&P(c)),null===(p=l(d,t))&&(p=d[t]),"production"!==process.env.NODE_ENV&&D){const n=window.performance.now(),r=e.__v_emitter;r&&y&&p&&r.emit("message-resolve",{type:"message-resolve",key:t,message:p,time:n-y,groupId:`${_}:${t}`}),c&&g&&P&&V&&(P(g),V("intlify message resolve",c,g))}if(te(p)||ht(p)||Sn(p))break;if(!hn(f,u)){const n=dn(e,t,f,a,_);n!==t&&(p=n)}m=h}return[p,f,d]}function Vn(e,t,n,r,o,a){const{messageCompiler:s,warnHtmlMessage:i}=e;if(Sn(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}let l,c,u=null;"production"!==process.env.NODE_ENV&&D&&(u=window.performance.now(),l="intlify-message-compilation-start",c="intlify-message-compilation-end",P&&P(l));const f=s(r,function(e,t,n,r,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:t=>{if(a&&a(t),"production"===process.env.NODE_ENV)throw t;{const o=function(e){if(te(e))return e;if(e.loc&&e.loc.source)return e.loc.source}(r),a=(t.message,t.location&&o&&function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const a=[];for(let e=0;e<r.length;e++)if(o+=r[e].length+1,o>=t){for(let s=e-2;s<=e+2||n>o;s++){if(s<0||s>=r.length)continue;const i=s+1;a.push(`${i}${" ".repeat(3-String(i).length)}| ${r[s]}`);const l=r[s].length;if(s===e){const e=t-(o-l)+1,r=Math.max(1,n>o?l-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(s>e){if(n>o){const e=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(e))}o+=l+1}}break}a.join("\n")}(o,t.location.start.offset,t.location.end.offset),e.__v_emitter);a&&o&&a.emit("compile-error",{message:o,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`})}},onCacheKey:e=>((e,t,n)=>A({l:e,k:t,s:n}))(t,n,e)}}(e,n,o,r,i,a));if("production"!==process.env.NODE_ENV&&D){const n=window.performance.now(),o=e.__v_emitter;o&&u&&o.emit("message-compilation",{type:"message-compilation",message:r,time:n-u,groupId:`translate:${t}`}),l&&c&&P&&V&&(P(c),V("intlify message compilation",l,c))}return f.locale=n,f.key=t,f.source=r,f}function $n(...e){const[t,n,r]=e,o=Y();if(!(te(t)||U(t)||Sn(t)||ht(t)))throw Lt(bt);const a=U(t)?String(t):(Sn(t),t);return U(n)?o.plural=n:te(n)?o.default=n:se(n)&&!H(n)?o.named=n:X(n)&&(o.list=n),U(r)?o.plural=r:te(r)?o.default=r:se(r)&&B(o,r),[a,o]}function Rn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(J().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(J().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const Wn="function"==typeof Proxy;let An,Un;function jn(){return void 0!==An||(typeof window<"u"&&window.performance?(An=!0,Un=window.performance):typeof globalThis<"u"&&null!==(e=globalThis.perf_hooks)&&void 0!==e&&e.performance?(An=!0,Un=globalThis.perf_hooks.performance):An=!1),An?Un.now():Date.now();var e}class Hn{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch{}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}o=e},now:()=>jn()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function Bn(e,t){const n=e,r=Rn(),o=Rn().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Wn&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new Hn(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}
1535
+ */
1536
+ function As() {
1537
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1538
+ }
1539
+ function At(e) {
1540
+ return (n) => ks(n, e);
1541
+ }
1542
+ function ks(e, t) {
1543
+ const n = Ds(t);
1544
+ if (n == null)
1545
+ throw Je(
1546
+ 0
1547
+ /* NodeTypes.Resource */
1548
+ );
1549
+ if (en(n) === 1) {
1550
+ const s = Rs(n);
1551
+ return e.plural(s.reduce((i, c) => [
1552
+ ...i,
1553
+ Nn(e, c)
1554
+ ], []));
1555
+ } else
1556
+ return Nn(e, n);
1557
+ }
1558
+ const Ss = ["b", "body"];
1559
+ function Ds(e) {
1560
+ return Te(e, Ss);
1561
+ }
1562
+ const Ps = ["c", "cases"];
1563
+ function Rs(e) {
1564
+ return Te(e, Ps, []);
1565
+ }
1566
+ function Nn(e, t) {
1567
+ const n = ws(t);
1568
+ if (n != null)
1569
+ return e.type === "text" ? n : e.normalize([n]);
1570
+ {
1571
+ const r = Ks(t).reduce((a, s) => [...a, Ft(e, s)], []);
1572
+ return e.normalize(r);
1573
+ }
1574
+ }
1575
+ const Ms = ["s", "static"];
1576
+ function ws(e) {
1577
+ return Te(e, Ms);
1578
+ }
1579
+ const Fs = ["i", "items"];
1580
+ function Ks(e) {
1581
+ return Te(e, Fs, []);
1582
+ }
1583
+ function Ft(e, t) {
1584
+ const n = en(t);
1585
+ switch (n) {
1586
+ case 3:
1587
+ return it(t, n);
1588
+ case 9:
1589
+ return it(t, n);
1590
+ case 4: {
1591
+ const r = t;
1592
+ if (ae(r, "k") && r.k)
1593
+ return e.interpolate(e.named(r.k));
1594
+ if (ae(r, "key") && r.key)
1595
+ return e.interpolate(e.named(r.key));
1596
+ throw Je(n);
1597
+ }
1598
+ case 5: {
1599
+ const r = t;
1600
+ if (ae(r, "i") && J(r.i))
1601
+ return e.interpolate(e.list(r.i));
1602
+ if (ae(r, "index") && J(r.index))
1603
+ return e.interpolate(e.list(r.index));
1604
+ throw Je(n);
1605
+ }
1606
+ case 6: {
1607
+ const r = t, a = $s(r), s = Gs(r);
1608
+ return e.linked(Ft(e, s), a ? Ft(e, a) : void 0, e.type);
1609
+ }
1610
+ case 7:
1611
+ return it(t, n);
1612
+ case 8:
1613
+ return it(t, n);
1614
+ default:
1615
+ throw new Error(`unhandled node on format message part: ${n}`);
1616
+ }
1617
+ }
1618
+ const Us = ["t", "type"];
1619
+ function en(e) {
1620
+ return Te(e, Us);
1621
+ }
1622
+ const Vs = ["v", "value"];
1623
+ function it(e, t) {
1624
+ const n = Te(e, Vs);
1625
+ if (n)
1626
+ return n;
1627
+ throw Je(t);
1628
+ }
1629
+ const xs = ["m", "modifier"];
1630
+ function $s(e) {
1631
+ return Te(e, xs);
1632
+ }
1633
+ const Ws = ["k", "key"];
1634
+ function Gs(e) {
1635
+ const t = Te(e, Ws);
1636
+ if (t)
1637
+ return t;
1638
+ throw Je(
1639
+ 6
1640
+ /* NodeTypes.Linked */
1641
+ );
1642
+ }
1643
+ function Te(e, t, n) {
1644
+ for (let r = 0; r < t.length; r++) {
1645
+ const a = t[r];
1646
+ if (ae(e, a) && e[a] != null)
1647
+ return e[a];
1648
+ }
1649
+ return n;
1650
+ }
1651
+ function Je(e) {
1652
+ return new Error(`unhandled node type: ${e}`);
1653
+ }
1654
+ const Bs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1655
+ function Ys(e, t) {
1656
+ t && ss(e) && Ne(dt(Bs, { source: e }));
1657
+ }
1658
+ const Hs = (e) => e;
1659
+ let ot = $();
1660
+ function ye(e) {
1661
+ return F(e) && en(e) === 0 && (ae(e, "b") || ae(e, "body"));
1662
+ }
1663
+ function js(e, t = {}) {
1664
+ let n = !1;
1665
+ const r = t.onError || ns;
1666
+ return t.onError = (a) => {
1667
+ n = !0, r(a);
1668
+ }, { ...Is(e, t), detectError: n };
1669
+ }
1670
+ // @__NO_SIDE_EFFECTS__
1671
+ function Xs(e, t) {
1672
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
1673
+ const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1674
+ process.env.NODE_ENV !== "production" && Ys(e, n);
1675
+ const a = (t.onCacheKey || Hs)(e), s = ot[a];
1676
+ if (s)
1677
+ return s;
1678
+ const { ast: i, detectError: c } = js(e, {
1679
+ ...t,
1680
+ location: process.env.NODE_ENV !== "production",
1681
+ jit: !0
1682
+ }), f = At(i);
1683
+ return c ? f : ot[a] = f;
1684
+ } else {
1685
+ if (process.env.NODE_ENV !== "production" && !ye(e))
1686
+ return Ne(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1687
+ const n = e.cacheKey;
1688
+ if (n) {
1689
+ const r = ot[n];
1690
+ return r || (ot[n] = At(e));
1691
+ } else
1692
+ return At(e);
1693
+ }
1694
+ }
1695
+ let Qe = null;
1696
+ function qs(e) {
1697
+ Qe = e;
1698
+ }
1699
+ function Js(e, t, n) {
1700
+ Qe && Qe.emit("i18n:init", {
1701
+ timestamp: Date.now(),
1702
+ i18n: e,
1703
+ version: t,
1704
+ meta: n
1705
+ });
1706
+ }
1707
+ const Qs = /* @__PURE__ */ Zs("function:translate");
1708
+ function Zs(e) {
1709
+ return (t) => Qe && Qe.emit(e, t);
1710
+ }
1711
+ const Z = {
1712
+ INVALID_ARGUMENT: es,
1713
+ // 17
1714
+ INVALID_DATE_ARGUMENT: 18,
1715
+ INVALID_ISO_DATE_ARGUMENT: 19,
1716
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1717
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1718
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1719
+ NOT_SUPPORT_LOCALE_TYPE: 23
1720
+ }, zs = 24;
1721
+ function pe(e) {
1722
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: ea } : void 0);
1723
+ }
1724
+ const ea = {
1725
+ [Z.INVALID_ARGUMENT]: "Invalid arguments",
1726
+ [Z.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1727
+ [Z.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1728
+ [Z.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1729
+ [Z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1730
+ [Z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1731
+ [Z.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1732
+ };
1733
+ function tn(e, t) {
1734
+ return t.locale != null ? Tn(t.locale) : Tn(e.locale);
1735
+ }
1736
+ let kt;
1737
+ function Tn(e) {
1738
+ if (I(e))
1739
+ return e;
1740
+ if (W(e)) {
1741
+ if (e.resolvedOnce && kt != null)
1742
+ return kt;
1743
+ if (e.constructor.name === "Function") {
1744
+ const t = e();
1745
+ if (Jr(t))
1746
+ throw pe(Z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1747
+ return kt = t;
1748
+ } else
1749
+ throw pe(Z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1750
+ } else
1751
+ throw pe(Z.NOT_SUPPORT_LOCALE_TYPE);
1752
+ }
1753
+ function ta(e, t, n) {
1754
+ return [.../* @__PURE__ */ new Set([
1755
+ n,
1756
+ ...q(t) ? t : F(t) ? Object.keys(t) : I(t) ? [t] : [n]
1757
+ ])];
1758
+ }
1759
+ function rr(e, t, n) {
1760
+ const r = I(n) ? n : Ze, a = e;
1761
+ a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
1762
+ let s = a.__localeChainCache.get(r);
1763
+ if (!s) {
1764
+ s = [];
1765
+ let i = [n];
1766
+ for (; q(i); )
1767
+ i = Ln(s, i, t);
1768
+ const c = q(t) || !w(t) ? t : t.default ? t.default : null;
1769
+ i = I(c) ? [c] : c, q(i) && Ln(s, i, !1), a.__localeChainCache.set(r, s);
1770
+ }
1771
+ return s;
1772
+ }
1773
+ function Ln(e, t, n) {
1774
+ let r = !0;
1775
+ for (let a = 0; a < t.length && K(r); a++) {
1776
+ const s = t[a];
1777
+ I(s) && (r = na(e, t[a], n));
1778
+ }
1779
+ return r;
1780
+ }
1781
+ function na(e, t, n) {
1782
+ let r;
1783
+ const a = t.split("-");
1784
+ do {
1785
+ const s = a.join("-");
1786
+ r = ra(e, s, n), a.splice(-1, 1);
1787
+ } while (a.length && r === !0);
1788
+ return r;
1789
+ }
1790
+ function ra(e, t, n) {
1791
+ let r = !1;
1792
+ if (!e.includes(t) && (r = !0, t)) {
1793
+ r = t[t.length - 1] !== "!";
1794
+ const a = t.replace(/!/g, "");
1795
+ e.push(a), (q(n) || w(n)) && n[a] && (r = n[a]);
1796
+ }
1797
+ return r;
1798
+ }
1799
+ const Le = [];
1800
+ Le[
1801
+ 0
1802
+ /* States.BEFORE_PATH */
1803
+ ] = {
1804
+ w: [
1805
+ 0
1806
+ /* States.BEFORE_PATH */
1807
+ ],
1808
+ i: [
1809
+ 3,
1810
+ 0
1811
+ /* Actions.APPEND */
1812
+ ],
1813
+ "[": [
1814
+ 4
1815
+ /* States.IN_SUB_PATH */
1816
+ ],
1817
+ o: [
1818
+ 7
1819
+ /* States.AFTER_PATH */
1820
+ ]
1821
+ };
1822
+ Le[
1823
+ 1
1824
+ /* States.IN_PATH */
1825
+ ] = {
1826
+ w: [
1827
+ 1
1828
+ /* States.IN_PATH */
1829
+ ],
1830
+ ".": [
1831
+ 2
1832
+ /* States.BEFORE_IDENT */
1833
+ ],
1834
+ "[": [
1835
+ 4
1836
+ /* States.IN_SUB_PATH */
1837
+ ],
1838
+ o: [
1839
+ 7
1840
+ /* States.AFTER_PATH */
1841
+ ]
1842
+ };
1843
+ Le[
1844
+ 2
1845
+ /* States.BEFORE_IDENT */
1846
+ ] = {
1847
+ w: [
1848
+ 2
1849
+ /* States.BEFORE_IDENT */
1850
+ ],
1851
+ i: [
1852
+ 3,
1853
+ 0
1854
+ /* Actions.APPEND */
1855
+ ],
1856
+ 0: [
1857
+ 3,
1858
+ 0
1859
+ /* Actions.APPEND */
1860
+ ]
1861
+ };
1862
+ Le[
1863
+ 3
1864
+ /* States.IN_IDENT */
1865
+ ] = {
1866
+ i: [
1867
+ 3,
1868
+ 0
1869
+ /* Actions.APPEND */
1870
+ ],
1871
+ 0: [
1872
+ 3,
1873
+ 0
1874
+ /* Actions.APPEND */
1875
+ ],
1876
+ w: [
1877
+ 1,
1878
+ 1
1879
+ /* Actions.PUSH */
1880
+ ],
1881
+ ".": [
1882
+ 2,
1883
+ 1
1884
+ /* Actions.PUSH */
1885
+ ],
1886
+ "[": [
1887
+ 4,
1888
+ 1
1889
+ /* Actions.PUSH */
1890
+ ],
1891
+ o: [
1892
+ 7,
1893
+ 1
1894
+ /* Actions.PUSH */
1895
+ ]
1896
+ };
1897
+ Le[
1898
+ 4
1899
+ /* States.IN_SUB_PATH */
1900
+ ] = {
1901
+ "'": [
1902
+ 5,
1903
+ 0
1904
+ /* Actions.APPEND */
1905
+ ],
1906
+ '"': [
1907
+ 6,
1908
+ 0
1909
+ /* Actions.APPEND */
1910
+ ],
1911
+ "[": [
1912
+ 4,
1913
+ 2
1914
+ /* Actions.INC_SUB_PATH_DEPTH */
1915
+ ],
1916
+ "]": [
1917
+ 1,
1918
+ 3
1919
+ /* Actions.PUSH_SUB_PATH */
1920
+ ],
1921
+ o: 8,
1922
+ l: [
1923
+ 4,
1924
+ 0
1925
+ /* Actions.APPEND */
1926
+ ]
1927
+ };
1928
+ Le[
1929
+ 5
1930
+ /* States.IN_SINGLE_QUOTE */
1931
+ ] = {
1932
+ "'": [
1933
+ 4,
1934
+ 0
1935
+ /* Actions.APPEND */
1936
+ ],
1937
+ o: 8,
1938
+ l: [
1939
+ 5,
1940
+ 0
1941
+ /* Actions.APPEND */
1942
+ ]
1943
+ };
1944
+ Le[
1945
+ 6
1946
+ /* States.IN_DOUBLE_QUOTE */
1947
+ ] = {
1948
+ '"': [
1949
+ 4,
1950
+ 0
1951
+ /* Actions.APPEND */
1952
+ ],
1953
+ o: 8,
1954
+ l: [
1955
+ 6,
1956
+ 0
1957
+ /* Actions.APPEND */
1958
+ ]
1959
+ };
1960
+ const sa = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1961
+ function aa(e) {
1962
+ return sa.test(e);
1963
+ }
1964
+ function ia(e) {
1965
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1966
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1967
+ }
1968
+ function oa(e) {
1969
+ if (e == null)
1970
+ return "o";
1971
+ switch (e.charCodeAt(0)) {
1972
+ case 91:
1973
+ // [
1974
+ case 93:
1975
+ // ]
1976
+ case 46:
1977
+ // .
1978
+ case 34:
1979
+ // "
1980
+ case 39:
1981
+ return e;
1982
+ case 95:
1983
+ // _
1984
+ case 36:
1985
+ // $
1986
+ case 45:
1987
+ return "i";
1988
+ case 9:
1989
+ // Tab (HT)
1990
+ case 10:
1991
+ // Newline (LF)
1992
+ case 13:
1993
+ // Return (CR)
1994
+ case 160:
1995
+ // No-break space (NBSP)
1996
+ case 65279:
1997
+ // Byte Order Mark (BOM)
1998
+ case 8232:
1999
+ // Line Separator (LS)
2000
+ case 8233:
2001
+ return "w";
2002
+ }
2003
+ return "i";
2004
+ }
2005
+ function la(e) {
2006
+ const t = e.trim();
2007
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : aa(t) ? ia(t) : "*" + t;
2008
+ }
2009
+ function ca(e) {
2010
+ const t = [];
2011
+ let n = -1, r = 0, a = 0, s, i, c, f, p, v, N;
2012
+ const y = [];
2013
+ y[
2014
+ 0
2015
+ /* Actions.APPEND */
2016
+ ] = () => {
2017
+ i === void 0 ? i = c : i += c;
2018
+ }, y[
2019
+ 1
2020
+ /* Actions.PUSH */
2021
+ ] = () => {
2022
+ i !== void 0 && (t.push(i), i = void 0);
2023
+ }, y[
2024
+ 2
2025
+ /* Actions.INC_SUB_PATH_DEPTH */
2026
+ ] = () => {
2027
+ y[
2028
+ 0
2029
+ /* Actions.APPEND */
2030
+ ](), a++;
2031
+ }, y[
2032
+ 3
2033
+ /* Actions.PUSH_SUB_PATH */
2034
+ ] = () => {
2035
+ if (a > 0)
2036
+ a--, r = 4, y[
2037
+ 0
2038
+ /* Actions.APPEND */
2039
+ ]();
2040
+ else {
2041
+ if (a = 0, i === void 0 || (i = la(i), i === !1))
2042
+ return !1;
2043
+ y[
2044
+ 1
2045
+ /* Actions.PUSH */
2046
+ ]();
2047
+ }
2048
+ };
2049
+ function C() {
2050
+ const D = e[n + 1];
2051
+ if (r === 5 && D === "'" || r === 6 && D === '"')
2052
+ return n++, c = "\\" + D, y[
2053
+ 0
2054
+ /* Actions.APPEND */
2055
+ ](), !0;
2056
+ }
2057
+ for (; r !== null; )
2058
+ if (n++, s = e[n], !(s === "\\" && C())) {
2059
+ if (f = oa(s), N = Le[r], p = N[f] || N.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (v = y[p[1]], v && (c = s, v() === !1))))
2060
+ return;
2061
+ if (r === 7)
2062
+ return t;
2063
+ }
2064
+ }
2065
+ const On = /* @__PURE__ */ new Map();
2066
+ function ua(e, t) {
2067
+ return F(e) ? e[t] : null;
2068
+ }
2069
+ function fa(e, t) {
2070
+ if (!F(e))
2071
+ return null;
2072
+ let n = On.get(t);
2073
+ if (n || (n = ca(t), n && On.set(t, n)), !n)
2074
+ return null;
2075
+ const r = n.length;
2076
+ let a = e, s = 0;
2077
+ for (; s < r; ) {
2078
+ const i = a[n[s]];
2079
+ if (i === void 0 || W(a))
2080
+ return null;
2081
+ a = i, s++;
2082
+ }
2083
+ return a;
2084
+ }
2085
+ const te = {
2086
+ NOT_FOUND_KEY: 1,
2087
+ FALLBACK_TO_TRANSLATE: 2,
2088
+ CANNOT_FORMAT_NUMBER: 3,
2089
+ FALLBACK_TO_NUMBER_FORMAT: 4,
2090
+ CANNOT_FORMAT_DATE: 5,
2091
+ FALLBACK_TO_DATE_FORMAT: 6,
2092
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
2093
+ }, _a = 8, da = {
2094
+ [te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
2095
+ [te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
2096
+ [te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
2097
+ [te.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
2098
+ [te.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
2099
+ [te.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
2100
+ [te.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."
2101
+ };
2102
+ function De(e, ...t) {
2103
+ return dt(da[e], ...t);
2104
+ }
2105
+ const ma = "11.1.1", ht = -1, Ze = "en-US", _t = "", Cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2106
+ function ha() {
2107
+ return {
2108
+ upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2109
+ lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
2110
+ capitalize: (e, t) => t === "text" && I(e) ? Cn(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? Cn(e.children) : e
2111
+ };
2112
+ }
2113
+ let sr;
2114
+ function ga(e) {
2115
+ sr = e;
2116
+ }
2117
+ let ar;
2118
+ function pa(e) {
2119
+ ar = e;
2120
+ }
2121
+ let ir;
2122
+ function Ea(e) {
2123
+ ir = e;
2124
+ }
2125
+ let or = null;
2126
+ const ba = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2127
+ or = e;
2128
+ }, va = /* @__NO_SIDE_EFFECTS__ */ () => or;
2129
+ let lr = null;
2130
+ const In = (e) => {
2131
+ lr = e;
2132
+ }, ya = () => lr;
2133
+ let An = 0;
2134
+ function Na(e = {}) {
2135
+ const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : ma, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = q(e.fallbackLocale) || w(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = w(e.messages) ? e.messages : St(a), c = w(e.datetimeFormats) ? e.datetimeFormats : St(a), f = w(e.numberFormats) ? e.numberFormats : St(a), p = Q($(), e.modifiers, ha()), v = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, y = K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, k = W(e.postTranslation) ? e.postTranslation : null, o = w(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : sr;
2136
+ process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Qt(De(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2137
+ const d = W(e.messageResolver) ? e.messageResolver : ar || ua, E = W(e.localeFallbacker) ? e.localeFallbacker : ir || ta, g = F(e.fallbackContext) ? e.fallbackContext : void 0, O = e, P = F(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), M = F(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), B = F(O.__meta) ? O.__meta : {};
2138
+ An++;
2139
+ const x = {
2140
+ version: n,
2141
+ cid: An,
2142
+ locale: r,
2143
+ fallbackLocale: s,
2144
+ messages: i,
2145
+ modifiers: p,
2146
+ pluralRules: v,
2147
+ missing: N,
2148
+ missingWarn: y,
2149
+ fallbackWarn: C,
2150
+ fallbackFormat: D,
2151
+ unresolving: A,
2152
+ postTranslation: k,
2153
+ processor: o,
2154
+ warnHtmlMessage: m,
2155
+ escapeParameter: l,
2156
+ messageCompiler: u,
2157
+ messageResolver: d,
2158
+ localeFallbacker: E,
2159
+ fallbackContext: g,
2160
+ onWarn: t,
2161
+ __meta: B
2162
+ };
2163
+ return x.datetimeFormats = c, x.numberFormats = f, x.__datetimeFormatters = P, x.__numberFormatters = M, process.env.NODE_ENV !== "production" && (x.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Js(x, n, B), x;
2164
+ }
2165
+ const St = (e) => ({ [e]: $() });
2166
+ function gt(e, t) {
2167
+ return e instanceof RegExp ? e.test(t) : e;
2168
+ }
2169
+ function cr(e, t) {
2170
+ return e instanceof RegExp ? e.test(t) : e;
2171
+ }
2172
+ function nn(e, t, n, r, a) {
2173
+ const { missing: s, onWarn: i } = e;
2174
+ if (process.env.NODE_ENV !== "production") {
2175
+ const c = e.__v_emitter;
2176
+ c && c.emit("missing", {
2177
+ locale: n,
2178
+ key: t,
2179
+ type: a,
2180
+ groupId: `${a}:${t}`
2181
+ });
2182
+ }
2183
+ if (s !== null) {
2184
+ const c = s(e, n, t, a);
2185
+ return I(c) ? c : t;
2186
+ } else
2187
+ return process.env.NODE_ENV !== "production" && cr(r, t) && i(De(te.NOT_FOUND_KEY, { key: t, locale: n })), t;
2188
+ }
2189
+ function Xe(e, t, n) {
2190
+ const r = e;
2191
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
2192
+ }
2193
+ function ur(e, t) {
2194
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2195
+ }
2196
+ function Ta(e, t) {
2197
+ const n = t.indexOf(e);
2198
+ if (n === -1)
2199
+ return !1;
2200
+ for (let r = n + 1; r < t.length; r++)
2201
+ if (ur(e, t[r]))
2202
+ return !0;
2203
+ return !1;
2204
+ }
2205
+ const kn = typeof Intl < "u", fr = {
2206
+ dateTimeFormat: kn && typeof Intl.DateTimeFormat < "u",
2207
+ numberFormat: kn && typeof Intl.NumberFormat < "u"
2208
+ };
2209
+ function Sn(e, ...t) {
2210
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
2211
+ if (process.env.NODE_ENV !== "production" && !fr.dateTimeFormat)
2212
+ return s(De(te.CANNOT_FORMAT_DATE)), _t;
2213
+ const [f, p, v, N] = Kt(...t), y = K(v.missingWarn) ? v.missingWarn : e.missingWarn, C = K(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = tn(e, v), k = i(
2214
+ e,
2215
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2216
+ a,
2217
+ A
2218
+ );
2219
+ if (!I(f) || f === "")
2220
+ return new Intl.DateTimeFormat(A, N).format(p);
2221
+ let o = {}, m, l = null, u = A, d = null;
2222
+ const E = "datetime format";
2223
+ for (let P = 0; P < k.length; P++) {
2224
+ if (m = d = k[P], process.env.NODE_ENV !== "production" && A !== m && gt(C, f) && s(De(te.FALLBACK_TO_DATE_FORMAT, {
2225
+ key: f,
2226
+ target: m
2227
+ })), process.env.NODE_ENV !== "production" && A !== m) {
2228
+ const M = e.__v_emitter;
2229
+ M && M.emit("fallback", {
2230
+ type: E,
2231
+ key: f,
2232
+ from: u,
2233
+ to: d,
2234
+ groupId: `${E}:${f}`
2235
+ });
2236
+ }
2237
+ if (o = n[m] || {}, l = o[f], w(l))
2238
+ break;
2239
+ nn(e, f, m, y, E), u = d;
2240
+ }
2241
+ if (!w(l) || !I(m))
2242
+ return r ? ht : f;
2243
+ let g = `${m}__${f}`;
2244
+ mt(N) || (g = `${g}__${JSON.stringify(N)}`);
2245
+ let O = c.get(g);
2246
+ return O || (O = new Intl.DateTimeFormat(m, Q({}, l, N)), c.set(g, O)), D ? O.formatToParts(p) : O.format(p);
2247
+ }
2248
+ const _r = [
2249
+ "localeMatcher",
2250
+ "weekday",
2251
+ "era",
2252
+ "year",
2253
+ "month",
2254
+ "day",
2255
+ "hour",
2256
+ "minute",
2257
+ "second",
2258
+ "timeZoneName",
2259
+ "formatMatcher",
2260
+ "hour12",
2261
+ "timeZone",
2262
+ "dateStyle",
2263
+ "timeStyle",
2264
+ "calendar",
2265
+ "dayPeriod",
2266
+ "numberingSystem",
2267
+ "hourCycle",
2268
+ "fractionalSecondDigits"
2269
+ ];
2270
+ function Kt(...e) {
2271
+ const [t, n, r, a] = e, s = $();
2272
+ let i = $(), c;
2273
+ if (I(t)) {
2274
+ const f = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2275
+ if (!f)
2276
+ throw pe(Z.INVALID_ISO_DATE_ARGUMENT);
2277
+ const p = f[3] ? f[3].trim().startsWith("T") ? `${f[1].trim()}${f[3].trim()}` : `${f[1].trim()}T${f[3].trim()}` : f[1].trim();
2278
+ c = new Date(p);
2279
+ try {
2280
+ c.toISOString();
2281
+ } catch {
2282
+ throw pe(Z.INVALID_ISO_DATE_ARGUMENT);
2283
+ }
2284
+ } else if (jr(t)) {
2285
+ if (isNaN(t.getTime()))
2286
+ throw pe(Z.INVALID_DATE_ARGUMENT);
2287
+ c = t;
2288
+ } else if (J(t))
2289
+ c = t;
2290
+ else
2291
+ throw pe(Z.INVALID_ARGUMENT);
2292
+ return I(n) ? s.key = n : w(n) && Object.keys(n).forEach((f) => {
2293
+ _r.includes(f) ? i[f] = n[f] : s[f] = n[f];
2294
+ }), I(r) ? s.locale = r : w(r) && (i = r), w(a) && (i = a), [s.key || "", c, s, i];
2295
+ }
2296
+ function Dn(e, t, n) {
2297
+ const r = e;
2298
+ for (const a in n) {
2299
+ const s = `${t}__${a}`;
2300
+ r.__datetimeFormatters.has(s) && r.__datetimeFormatters.delete(s);
2301
+ }
2302
+ }
2303
+ function Pn(e, ...t) {
2304
+ const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __numberFormatters: c } = e;
2305
+ if (process.env.NODE_ENV !== "production" && !fr.numberFormat)
2306
+ return s(De(te.CANNOT_FORMAT_NUMBER)), _t;
2307
+ const [f, p, v, N] = Ut(...t), y = K(v.missingWarn) ? v.missingWarn : e.missingWarn, C = K(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = tn(e, v), k = i(
2308
+ e,
2309
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2310
+ a,
2311
+ A
2312
+ );
2313
+ if (!I(f) || f === "")
2314
+ return new Intl.NumberFormat(A, N).format(p);
2315
+ let o = {}, m, l = null, u = A, d = null;
2316
+ const E = "number format";
2317
+ for (let P = 0; P < k.length; P++) {
2318
+ if (m = d = k[P], process.env.NODE_ENV !== "production" && A !== m && gt(C, f) && s(De(te.FALLBACK_TO_NUMBER_FORMAT, {
2319
+ key: f,
2320
+ target: m
2321
+ })), process.env.NODE_ENV !== "production" && A !== m) {
2322
+ const M = e.__v_emitter;
2323
+ M && M.emit("fallback", {
2324
+ type: E,
2325
+ key: f,
2326
+ from: u,
2327
+ to: d,
2328
+ groupId: `${E}:${f}`
2329
+ });
2330
+ }
2331
+ if (o = n[m] || {}, l = o[f], w(l))
2332
+ break;
2333
+ nn(e, f, m, y, E), u = d;
2334
+ }
2335
+ if (!w(l) || !I(m))
2336
+ return r ? ht : f;
2337
+ let g = `${m}__${f}`;
2338
+ mt(N) || (g = `${g}__${JSON.stringify(N)}`);
2339
+ let O = c.get(g);
2340
+ return O || (O = new Intl.NumberFormat(m, Q({}, l, N)), c.set(g, O)), D ? O.formatToParts(p) : O.format(p);
2341
+ }
2342
+ const dr = [
2343
+ "localeMatcher",
2344
+ "style",
2345
+ "currency",
2346
+ "currencyDisplay",
2347
+ "currencySign",
2348
+ "useGrouping",
2349
+ "minimumIntegerDigits",
2350
+ "minimumFractionDigits",
2351
+ "maximumFractionDigits",
2352
+ "minimumSignificantDigits",
2353
+ "maximumSignificantDigits",
2354
+ "compactDisplay",
2355
+ "notation",
2356
+ "signDisplay",
2357
+ "unit",
2358
+ "unitDisplay",
2359
+ "roundingMode",
2360
+ "roundingPriority",
2361
+ "roundingIncrement",
2362
+ "trailingZeroDisplay"
2363
+ ];
2364
+ function Ut(...e) {
2365
+ const [t, n, r, a] = e, s = $();
2366
+ let i = $();
2367
+ if (!J(t))
2368
+ throw pe(Z.INVALID_ARGUMENT);
2369
+ const c = t;
2370
+ return I(n) ? s.key = n : w(n) && Object.keys(n).forEach((f) => {
2371
+ dr.includes(f) ? i[f] = n[f] : s[f] = n[f];
2372
+ }), I(r) ? s.locale = r : w(r) && (i = r), w(a) && (i = a), [s.key || "", c, s, i];
2373
+ }
2374
+ function Rn(e, t, n) {
2375
+ const r = e;
2376
+ for (const a in n) {
2377
+ const s = `${t}__${a}`;
2378
+ r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
2379
+ }
2380
+ }
2381
+ const La = (e) => e, Oa = (e) => "", Ca = "text", Ia = (e) => e.length === 0 ? "" : Jt(e), Aa = Qr;
2382
+ function Mn(e, t) {
2383
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2384
+ }
2385
+ function ka(e) {
2386
+ const t = J(e.pluralIndex) ? e.pluralIndex : -1;
2387
+ 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;
2388
+ }
2389
+ function Sa(e, t) {
2390
+ t.count || (t.count = e), t.n || (t.n = e);
2391
+ }
2392
+ function Da(e = {}) {
2393
+ const t = e.locale, n = ka(e), r = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Mn, a = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? Mn : void 0, s = (o) => o[r(n, o.length, a)], i = e.list || [], c = (o) => i[o], f = e.named || $();
2394
+ J(e.pluralIndex) && Sa(n, f);
2395
+ const p = (o) => f[o];
2396
+ function v(o, m) {
2397
+ const l = W(e.messages) ? e.messages(o, !!m) : F(e.messages) ? e.messages[o] : !1;
2398
+ return l || (e.parent ? e.parent.message(o) : Oa);
2399
+ }
2400
+ const N = (o) => e.modifiers ? e.modifiers[o] : La, y = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ia, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Aa, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Ca, k = {
2401
+ list: c,
2402
+ named: p,
2403
+ plural: s,
2404
+ linked: (o, ...m) => {
2405
+ const [l, u] = m;
2406
+ let d = "text", E = "";
2407
+ m.length === 1 ? F(l) ? (E = l.modifier || E, d = l.type || d) : I(l) && (E = l || E) : m.length === 2 && (I(l) && (E = l || E), I(u) && (d = u || d));
2408
+ const g = v(o, !0)(k), O = (
2409
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
2410
+ d === "vnode" && q(g) && E ? g[0] : g
2411
+ );
2412
+ return E ? N(E)(O, d) : O;
2413
+ },
2414
+ message: v,
2415
+ type: D,
2416
+ interpolate: C,
2417
+ normalize: y,
2418
+ values: Q($(), i, f)
2419
+ };
2420
+ return k;
2421
+ }
2422
+ const wn = () => "", se = (e) => W(e);
2423
+ function Fn(e, ...t) {
2424
+ const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: c } = e, [f, p] = Vt(...t), v = K(p.missingWarn) ? p.missingWarn : e.missingWarn, N = K(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, y = K(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, C = !!p.resolvedMessage, D = I(p.default) || K(p.default) ? K(p.default) ? s ? f : () => f : p.default : n ? s ? f : () => f : null, A = n || D != null && (I(D) || W(D)), k = tn(e, p);
2425
+ y && Pa(p);
2426
+ let [o, m, l] = C ? [
2427
+ f,
2428
+ k,
2429
+ c[k] || $()
2430
+ ] : mr(e, f, k, i, N, v), u = o, d = f;
2431
+ if (!C && !(I(u) || ye(u) || se(u)) && A && (u = D, d = u), !C && (!(I(u) || ye(u) || se(u)) || !I(m)))
2432
+ return a ? ht : f;
2433
+ if (process.env.NODE_ENV !== "production" && I(u) && e.messageCompiler == null)
2434
+ return Ne(`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 '${f}'.`), f;
2435
+ let E = !1;
2436
+ const g = () => {
2437
+ E = !0;
2438
+ }, O = se(u) ? u : hr(e, f, m, u, d, g);
2439
+ if (E)
2440
+ return u;
2441
+ const P = Fa(e, m, l, p), M = Da(P), B = Ra(e, O, M), x = r ? r(B, f) : B;
2442
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2443
+ const oe = {
2444
+ timestamp: Date.now(),
2445
+ key: I(f) ? f : se(u) ? u.key : "",
2446
+ locale: m || (se(u) ? u.locale : ""),
2447
+ format: I(u) ? u : se(u) ? u.source : "",
2448
+ message: x
2449
+ };
2450
+ oe.meta = Q({}, e.__meta, /* @__PURE__ */ va() || {}), Qs(oe);
2451
+ }
2452
+ return x;
2453
+ }
2454
+ function Pa(e) {
2455
+ q(e.list) ? e.list = e.list.map((t) => I(t) ? gn(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
2456
+ I(e.named[t]) && (e.named[t] = gn(e.named[t]));
2457
+ });
2458
+ }
2459
+ function mr(e, t, n, r, a, s) {
2460
+ const { messages: i, onWarn: c, messageResolver: f, localeFallbacker: p } = e, v = p(e, r, n);
2461
+ let N = $(), y, C = null, D = n, A = null;
2462
+ const k = "translate";
2463
+ for (let o = 0; o < v.length; o++) {
2464
+ if (y = A = v[o], process.env.NODE_ENV !== "production" && n !== y && !ur(n, y) && gt(a, t) && c(De(te.FALLBACK_TO_TRANSLATE, {
2465
+ key: t,
2466
+ target: y
2467
+ })), process.env.NODE_ENV !== "production" && n !== y) {
2468
+ const d = e.__v_emitter;
2469
+ d && d.emit("fallback", {
2470
+ type: k,
2471
+ key: t,
2472
+ from: D,
2473
+ to: A,
2474
+ groupId: `${k}:${t}`
2475
+ });
2476
+ }
2477
+ N = i[y] || $();
2478
+ let m = null, l, u;
2479
+ if (process.env.NODE_ENV !== "production" && ie && (m = window.performance.now(), l = "intlify-message-resolve-start", u = "intlify-message-resolve-end", re && re(l)), (C = f(N, t)) === null && (C = N[t]), process.env.NODE_ENV !== "production" && ie) {
2480
+ const d = window.performance.now(), E = e.__v_emitter;
2481
+ E && m && C && E.emit("message-resolve", {
2482
+ type: "message-resolve",
2483
+ key: t,
2484
+ message: C,
2485
+ time: d - m,
2486
+ groupId: `${k}:${t}`
2487
+ }), l && u && re && Se && (re(u), Se("intlify message resolve", l, u));
2488
+ }
2489
+ if (I(C) || ye(C) || se(C))
2490
+ break;
2491
+ if (!Ta(y, v)) {
2492
+ const d = nn(
2493
+ e,
2494
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2495
+ t,
2496
+ y,
2497
+ s,
2498
+ k
2499
+ );
2500
+ d !== t && (C = d);
2501
+ }
2502
+ D = A;
2503
+ }
2504
+ return [C, y, N];
2505
+ }
2506
+ function hr(e, t, n, r, a, s) {
2507
+ const { messageCompiler: i, warnHtmlMessage: c } = e;
2508
+ if (se(r)) {
2509
+ const y = r;
2510
+ return y.locale = y.locale || n, y.key = y.key || t, y;
2511
+ }
2512
+ if (i == null) {
2513
+ const y = () => r;
2514
+ return y.locale = n, y.key = t, y;
2515
+ }
2516
+ let f = null, p, v;
2517
+ process.env.NODE_ENV !== "production" && ie && (f = window.performance.now(), p = "intlify-message-compilation-start", v = "intlify-message-compilation-end", re && re(p));
2518
+ const N = i(r, Ma(e, n, a, r, c, s));
2519
+ if (process.env.NODE_ENV !== "production" && ie) {
2520
+ const y = window.performance.now(), C = e.__v_emitter;
2521
+ C && f && C.emit("message-compilation", {
2522
+ type: "message-compilation",
2523
+ message: r,
2524
+ time: y - f,
2525
+ groupId: `translate:${t}`
2526
+ }), p && v && re && Se && (re(v), Se("intlify message compilation", p, v));
2527
+ }
2528
+ return N.locale = n, N.key = t, N.source = r, N;
2529
+ }
2530
+ function Ra(e, t, n) {
2531
+ let r = null, a, s;
2532
+ process.env.NODE_ENV !== "production" && ie && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", re && re(a));
2533
+ const i = t(n);
2534
+ if (process.env.NODE_ENV !== "production" && ie) {
2535
+ const c = window.performance.now(), f = e.__v_emitter;
2536
+ f && r && f.emit("message-evaluation", {
2537
+ type: "message-evaluation",
2538
+ value: i,
2539
+ time: c - r,
2540
+ groupId: `translate:${t.key}`
2541
+ }), a && s && re && Se && (re(s), Se("intlify message evaluation", a, s));
2542
+ }
2543
+ return i;
2544
+ }
2545
+ function Vt(...e) {
2546
+ const [t, n, r] = e, a = $();
2547
+ if (!I(t) && !J(t) && !se(t) && !ye(t))
2548
+ throw pe(Z.INVALID_ARGUMENT);
2549
+ const s = J(t) ? String(t) : (se(t), t);
2550
+ return J(n) ? a.plural = n : I(n) ? a.default = n : w(n) && !mt(n) ? a.named = n : q(n) && (a.list = n), J(r) ? a.plural = r : I(r) ? a.default = r : w(r) && Q(a, r), [s, a];
2551
+ }
2552
+ function Ma(e, t, n, r, a, s) {
2553
+ return {
2554
+ locale: t,
2555
+ key: n,
2556
+ warnHtmlMessage: a,
2557
+ onError: (i) => {
2558
+ if (s && s(i), process.env.NODE_ENV !== "production") {
2559
+ const c = wa(r), f = `Message compilation error: ${i.message}`, p = i.location && c && Zr(c, i.location.start.offset, i.location.end.offset), v = e.__v_emitter;
2560
+ v && c && v.emit("compile-error", {
2561
+ message: c,
2562
+ error: i.message,
2563
+ start: i.location && i.location.start.offset,
2564
+ end: i.location && i.location.end.offset,
2565
+ groupId: `translate:${n}`
2566
+ }), console.error(p ? `${f}
2567
+ ${p}` : f);
2568
+ } else
2569
+ throw i;
2570
+ },
2571
+ onCacheKey: (i) => Yr(t, n, i)
2572
+ };
2573
+ }
2574
+ function wa(e) {
2575
+ if (I(e))
2576
+ return e;
2577
+ if (e.loc && e.loc.source)
2578
+ return e.loc.source;
2579
+ }
2580
+ function Fa(e, t, n, r) {
2581
+ const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: c, fallbackWarn: f, missingWarn: p, fallbackContext: v } = e, y = {
2582
+ locale: t,
2583
+ modifiers: a,
2584
+ pluralRules: s,
2585
+ messages: (C, D) => {
2586
+ let A = i(n, C);
2587
+ if (A == null && (v || D)) {
2588
+ const [, , k] = mr(
2589
+ v || e,
2590
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2591
+ C,
2592
+ t,
2593
+ c,
2594
+ f,
2595
+ p
2596
+ );
2597
+ A = i(k, C);
2598
+ }
2599
+ if (I(A) || ye(A)) {
2600
+ let k = !1;
2601
+ const m = hr(e, C, t, A, C, () => {
2602
+ k = !0;
2603
+ });
2604
+ return k ? wn : m;
2605
+ } else return se(A) ? A : wn;
2606
+ }
2607
+ };
2608
+ return e.processor && (y.processor = e.processor), r.list && (y.list = r.list), r.named && (y.named = r.named), J(r.plural) && (y.pluralIndex = r.plural), y;
2609
+ }
2610
+ As();
2611
+ function Ka() {
2612
+ return gr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2613
+ }
2614
+ function gr() {
2615
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2616
+ }
2617
+ const Ua = typeof Proxy == "function", Va = "devtools-plugin:setup", xa = "plugin:settings:set";
2618
+ let Fe, xt;
2619
+ function $a() {
2620
+ var e;
2621
+ return Fe !== void 0 || (typeof window < "u" && window.performance ? (Fe = !0, xt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Fe = !0, xt = globalThis.perf_hooks.performance) : Fe = !1), Fe;
2622
+ }
2623
+ function Wa() {
2624
+ return $a() ? xt.now() : Date.now();
2625
+ }
2626
+ class Ga {
2627
+ constructor(t, n) {
2628
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2629
+ const r = {};
2630
+ if (t.settings)
2631
+ for (const i in t.settings) {
2632
+ const c = t.settings[i];
2633
+ r[i] = c.defaultValue;
2634
+ }
2635
+ const a = `__vue-devtools-plugin-settings__${t.id}`;
2636
+ let s = Object.assign({}, r);
2637
+ try {
2638
+ const i = localStorage.getItem(a), c = JSON.parse(i);
2639
+ Object.assign(s, c);
2640
+ } catch {
2641
+ }
2642
+ this.fallbacks = {
2643
+ getSettings() {
2644
+ return s;
2645
+ },
2646
+ setSettings(i) {
2647
+ try {
2648
+ localStorage.setItem(a, JSON.stringify(i));
2649
+ } catch {
2650
+ }
2651
+ s = i;
2652
+ },
2653
+ now() {
2654
+ return Wa();
2655
+ }
2656
+ }, n && n.on(xa, (i, c) => {
2657
+ i === this.plugin.id && this.fallbacks.setSettings(c);
2658
+ }), this.proxiedOn = new Proxy({}, {
2659
+ get: (i, c) => this.target ? this.target.on[c] : (...f) => {
2660
+ this.onQueue.push({
2661
+ method: c,
2662
+ args: f
2663
+ });
2664
+ }
2665
+ }), this.proxiedTarget = new Proxy({}, {
2666
+ get: (i, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...f) => (this.targetQueue.push({
2667
+ method: c,
2668
+ args: f,
2669
+ resolve: () => {
2670
+ }
2671
+ }), this.fallbacks[c](...f)) : (...f) => new Promise((p) => {
2672
+ this.targetQueue.push({
2673
+ method: c,
2674
+ args: f,
2675
+ resolve: p
2676
+ });
2677
+ })
2678
+ });
2679
+ }
2680
+ async setRealTarget(t) {
2681
+ this.target = t;
2682
+ for (const n of this.onQueue)
2683
+ this.target.on[n.method](...n.args);
2684
+ for (const n of this.targetQueue)
2685
+ n.resolve(await this.target[n.method](...n.args));
2686
+ }
2687
+ }
2688
+ function Ba(e, t) {
2689
+ const n = e, r = gr(), a = Ka(), s = Ua && n.enableEarlyProxy;
2690
+ if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
2691
+ a.emit(Va, e, t);
2692
+ else {
2693
+ const i = s ? new Ga(n, a) : null;
2694
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2695
+ pluginDescriptor: n,
2696
+ setupFn: t,
2697
+ proxy: i
2698
+ }), i && t(i.proxiedTarget);
2699
+ }
2700
+ }
18
2701
  /*!
19
2702
  * vue-i18n v11.1.1
20
2703
  * (c) 2025 kazuya kawaguchi
21
2704
  * Released under the MIT License.
22
- */const zn=24,Yn=25,Gn=26,Jn=27,qn=28,Qn=29,Zn=30,Xn=31,er=32,tr=33,nr=34;function rr(e,...t){return Me(e,null,"production"!==process.env.NODE_ENV?{messages:or,args:t}:void 0)}const or={[zn]:"Unexpected return type in composer",[Yn]:"Invalid argument",[Gn]:"Must be called at the top of a `setup` function",[Jn]:"Need to install with `app.use` function",[er]:"Unexpected error",[qn]:"Required in value: {0}",[Qn]:"Invalid value",[Zn]:"Cannot setup vue-devtools plugin",[Xn]:"Need to install with `provide` function",[tr]:"Not compatible legacy VueI18n.",[nr]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ar=W("__translateVNode"),sr=W("__datetimeParts"),ir=W("__numberParts"),lr=W("__enableEmitter"),cr=W("__disableEmitter"),ur=W("__setPluralRules"),fr=W("__injectWithOption"),dr=W("__dispose"),pr=8,mr=9,hr=10,_r=11,gr=12,yr={[pr]:"Fall back to {type} '{key}' with root locale.",[mr]:"Not found parent scope. use the global scope.",[hr]:"Ignore object flatten: '{key}' key has an string value",[_r]:"Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",[gr]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function br(e,...t){return R(yr[e],...t)}function vr(e){if(!re(e))return e;for(const t in e)if(Z(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e,a=!1;for(let e=0;e<r;e++){if(n[e]in o||(o[n[e]]=Y()),!re(o[n[e]])){"production"!==process.env.NODE_ENV&&br(hr,{key:n[e]}),a=!0;break}o=o[n[e]]}a||(o[n[r]]=e[t],delete e[t]),re(o[n[r]])&&vr(o[n[r]])}else re(e[t])&&vr(e[t]);return e}function kr(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:a}=t,s=se(n)?n:X(r)?Y():{[e]:Y()};if(X(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||Y(),pe(n,s[t])):pe(n,s)}else te(e)&&pe(JSON.parse(e),s)})),null==o&&a)for(const e in s)Z(s,e)&&vr(s[e]);return s}function Cr(e){return e.type}function Er(e,t,n){let r=re(t.messages)?t.messages:Y();"__i18nGlobal"in n&&(r=kr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),re(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(re(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function wr(e){return h(_,null,e,0)}const Nr=()=>[],Lr=()=>!1;let Ir=0;function Or(e){return(t,n,r,o)=>e(n,r,c()||void 0,o)}function xr(e={}){const{__root:t,__injectWithOption:n}=e,i=void 0===t,l=e.flatJson,c=D?r:o;let u=!ne(e.inheritLocale)||e.inheritLocale;const f=c(t&&u?t.locale.value:te(e.locale)?e.locale:Qt),d=c(t&&u?t.fallbackLocale.value:te(e.fallbackLocale)||X(e.fallbackLocale)||se(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),p=c(kr(f.value,e)),m=c(se(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),h=c(se(e.numberFormats)?e.numberFormats:{[f.value]:{}});let _=t?t.missingWarn:!ne(e.missingWarn)&&!j(e.missingWarn)||e.missingWarn,g=t?t.fallbackWarn:!ne(e.fallbackWarn)&&!j(e.fallbackWarn)||e.fallbackWarn,y=t?t.fallbackRoot:!ne(e.fallbackRoot)||e.fallbackRoot,b=!!e.fallbackFormat,v=ee(e.missing)?e.missing:null,k=ee(e.missing)?Or(e.missing):null,C=ee(e.postTranslation)?e.postTranslation:null,E=t?t.warnHtmlMessage:!ne(e.warnHtmlMessage)||e.warnHtmlMessage,w=!!e.escapeParameter;const N=t?t.modifiers:se(e.modifiers)?e.modifiers:{};let L,I=e.pluralRules||t&&t.pluralRules;L=(()=>{i&&an(null);const t={version:"11.1.1",locale:f.value,fallbackLocale:d.value,messages:p.value,modifiers:N,pluralRules:I,missing:null===k?void 0:k,missingWarn:_,fallbackWarn:g,fallbackFormat:b,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:E,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=m.value,t.numberFormats=h.value,t.__datetimeFormatters=se(L)?L.__datetimeFormatters:void 0,t.__numberFormatters=se(L)?L.__numberFormatters:void 0,"production"!==process.env.NODE_ENV&&(t.__v_emitter=se(L)?L.__v_emitter:void 0);const n=ln(t);return i&&an(n),n})(),pn(L,f.value,d.value);const O=a({get:()=>f.value,set:e=>{L.locale=e,f.value=e}}),x=a({get:()=>d.value,set:e=>{L.fallbackLocale=e,d.value=e,pn(L,f.value,e)}}),T=a((()=>p.value)),K=a((()=>m.value)),M=a((()=>h.value));const F=(e,n,r,o,a,s)=>{let l;f.value,d.value,p.value,m.value,h.value;try{"production"!==process.env.NODE_ENV||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=t?on:void 0),l=e(L)}finally{"production"!==process.env.NODE_ENV||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=void 0)}if("translate exists"!==r&&U(l)&&-1===l||"translate exists"===r&&!l){const[e,s]=n();if("production"!==process.env.NODE_ENV&&t&&te(e)&&function(e,t){return"translate"!==e||!t.resolvedMessage}(r,s)&&(y&&(un(g,e)||fn(_,e))&&br(pr,{key:e,type:r}),"production"!==process.env.NODE_ENV)){const{__v_emitter:t}=L;t&&y&&t.emit("fallback",{type:r,key:e,to:"global",groupId:`${r}:${e}`})}return t&&y?o(t):a(e)}if(s(l))return l;throw rr(zn)};function S(...e){return F((t=>Reflect.apply(Dn,null,[t,...e])),(()=>$n(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>te(e)))}const P={normalize:function(e){return e.map((e=>te(e)||U(e)||ne(e)?wr(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return p.value[e]||{}}Ir++,t&&D&&(s(t.locale,(e=>{u&&(f.value=e,L.locale=e,pn(L,f.value,d.value))})),s(t.fallbackLocale,(e=>{u&&(d.value=e,L.fallbackLocale=e,pn(L,f.value,d.value))})));const $={id:Ir,locale:O,fallbackLocale:x,get inheritLocale(){return u},set inheritLocale(e){u=e,e&&t&&(f.value=t.locale.value,d.value=t.fallbackLocale.value,pn(L,f.value,d.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:T,get modifiers(){return N},get pluralRules(){return I||{}},get isGlobal(){return i},get missingWarn(){return _},set missingWarn(e){_=e,L.missingWarn=_},get fallbackWarn(){return g},set fallbackWarn(e){g=e,L.fallbackWarn=g},get fallbackRoot(){return y},set fallbackRoot(e){y=e},get fallbackFormat(){return b},set fallbackFormat(e){b=e,L.fallbackFormat=b},get warnHtmlMessage(){return E},set warnHtmlMessage(e){E=e,L.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,L.escapeParameter=e},t:S,getLocaleMessage:V,setLocaleMessage:function(e,t){if(l){const n={[e]:t};for(const e in n)Z(n,e)&&vr(n[e]);t=n[e]}p.value[e]=t,L.messages=p.value},mergeLocaleMessage:function(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(l)for(const e in n)Z(n,e)&&vr(n[e]);pe(t=n[e],p.value[e]),L.messages=p.value},getPostTranslationHandler:function(){return ee(C)?C:null},setPostTranslationHandler:function(e){C=e,L.postTranslation=e},getMissingHandler:function(){return v},setMissingHandler:function(e){null!==e&&(k=Or(e)),v=e,L.missing=k},[ur]:function(e){I=e,L.pluralRules=I}};return $.datetimeFormats=K,$.numberFormats=M,$.rt=function(...e){const[t,n,r]=e;if(r&&!re(r))throw rr(Yn);return S(t,n,B({resolvedMessage:!0},r||{}))},$.te=function(e,t){return F((()=>{if(!e)return!1;const n=V(te(t)?t:f.value),r=L.messageResolver(n,e);return ht(r)||Sn(r)||te(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Lr,(e=>ne(e)))},$.tm=function(e){return function(e){let t=null;const n=Mt(L,d.value,f.value);for(let r=0;r<n.length;r++){const o=p.value[n[r]]||{},a=L.messageResolver(o,e);if(null!=a){t=a;break}}return t}(e)??(t&&t.tm(e)||{})},$.d=function(...e){return F((t=>Reflect.apply(bn,null,[t,...e])),(()=>kn(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>te(e)))},$.n=function(...e){return F((t=>Reflect.apply(En,null,[t,...e])),(()=>Nn(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>te(e)))},$.getDateTimeFormat=function(e){return m.value[e]||{}},$.setDateTimeFormat=function(e,t){m.value[e]=t,L.datetimeFormats=m.value,Cn(L,e,t)},$.mergeDateTimeFormat=function(e,t){m.value[e]=B(m.value[e]||{},t),L.datetimeFormats=m.value,Cn(L,e,t)},$.getNumberFormat=function(e){return h.value[e]||{}},$.setNumberFormat=function(e,t){h.value[e]=t,L.numberFormats=h.value,Ln(L,e,t)},$.mergeNumberFormat=function(e,t){h.value[e]=B(h.value[e]||{},t),L.numberFormats=h.value,Ln(L,e,t)},$[fr]=n,$[ar]=function(...e){return F((t=>{let n;const r=t;try{r.processor=P,n=Reflect.apply(Dn,null,[r,...e])}finally{r.processor=null}return n}),(()=>$n(...e)),"translate",(t=>t[ar](...e)),(e=>[wr(e)]),(e=>X(e)))},$[sr]=function(...e){return F((t=>Reflect.apply(bn,null,[t,...e])),(()=>kn(...e)),"datetime format",(t=>t[sr](...e)),Nr,(e=>te(e)||X(e)))},$[ir]=function(...e){return F((t=>Reflect.apply(En,null,[t,...e])),(()=>Nn(...e)),"number format",(t=>t[ir](...e)),Nr,(e=>te(e)||X(e)))},"production"!==process.env.NODE_ENV&&($[lr]=e=>{L.__v_emitter=e},$[cr]=()=>{L.__v_emitter=void 0}),$}const Tr="vue-i18n: composer properties",Kr="Vue I18n DevTools",Mr="Vue I18n DevTools",Fr="Vue I18n",Sr="Search for scopes ...",Dr=16764185;let Pr;async function Vr(e,t){return new Promise(((n,r)=>{try{Bn({id:"vue-devtools-plugin-vue-i18n",label:Kr,packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Tr],app:e},(r=>{Pr=r,r.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{!function(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n={label:`i18n (${$r(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)})),r.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el&&e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&Rr(n,e.vnode.el.__VUE_I18N__):Rr(n,e.vnode.el.__VUE_I18N__))})),r.addInspector({id:"vue-i18n-resource-inspector",label:Mr,icon:"language",treeFilterPlaceholder:Sr}),r.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,o]of t.__instances){const a="composition"===t.mode?o:o.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${$r(r)} Scope`})}}(n,t)}));const o=new Map;r.on.getInspectorState((async n=>{if(n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId)if(r.unhighlightElement(),function(e,t){const n=Hr(e.nodeId,t);n&&(e.state=function(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 o="Locale messages info",a=[{type:o,key:"messages",editable:!1,value:Wr(e.messages.value)}];t[o]=a;{const n="Datetime formats info",r=[{type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[n]=r;const o="Datetime formats info",a=[{type:o,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[o]=a}return t}(n))}(n,t),"global"===n.nodeId){if(!o.has(n.app)){const[e]=await r.getComponentInstances(n.app);o.set(n.app,e)}r.highlightElement(o.get(n.app))}else{const e=function(e,t){let n=null;if("global"!==e)for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}return n}(n.nodeId,t);e&&r.highlightElement(e)}})),r.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=Hr(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&te(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(te(e.state.value)||X(e.state.value)||re(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&ne(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)})),r.addTimelineLayer({id:"vue-i18n-timeline",label:Fr,color:Dr}),n(!0)}))}catch(e){r(!1)}}))}function $r(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Rr(e,t){const n=Tr;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:Wr(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 Wr(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];ee(r)&&"source"in r?t[n]=function(e){return{_custom:{type:"function",display:"<span>ƒ</span> "+(e.source?`("${Ur(e.source)}")`:"(?)")}}}(r):ht(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:re(r)?t[n]=Wr(r):t[n]=r})),t}const Ar={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Ur(e){return e.replace(/[<>"&]/g,jr)}function jr(e){return Ar[e]||e}function Hr(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function Br(e,t){if(Pr){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Pr.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function zr(e={}){const t=xr(function(e){const t=te(e.locale)?e.locale:Qt,n=te(e.fallbackLocale)||X(e.fallbackLocale)||se(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=ee(e.missing)?e.missing:void 0,o=!ne(e.silentTranslationWarn)&&!j(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!ne(e.silentFallbackWarn)&&!j(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!ne(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,l=se(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=ee(e.postTranslation)?e.postTranslation:void 0,f=!te(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,d=!!e.escapeParameterHtml,p=!ne(e.sync)||e.sync;let m=e.messages;if(se(e.sharedMessages)){const t=e.sharedMessages;m=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return B(r,t[n]),e}),m||{})}const{__i18n:h,__root:_,__injectWithOption:g}=e,y=e.datetimeFormats,b=e.numberFormats;return{locale:t,fallbackLocale:n,messages:m,flatJson:e.flatJson,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:o,fallbackWarn:a,fallbackRoot:s,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:_,__injectWithOption:g}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},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(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ne(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ne(e)?!e:e},get silentFallbackWarn(){return ne(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ne(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,"production"!==process.env.NODE_ENV&&(r.__enableEmitter=e=>{const n=t;n[lr]&&n[lr](e)},r.__disableEmitter=()=>{const e=t;e[cr]&&e[cr]()}),r}function Yr(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[ur](t.pluralizationRules||e.pluralizationRules);const n=kr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Gr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Jr(){return f}const qr=l({name:"i18n-t",props:B({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>U(e)||!isNaN(e)}},Gr),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||so({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter((e=>"_"!==e)),s=Y();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=te(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===f?t.children:[t]]),[]):t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),Y())}(t,a),l=o[ar](e.keypath,i,s),c=B(Y(),r),d=te(e.tag)||re(e.tag)?e.tag:Jr();return u(d,c,l)}}}),Qr=qr;function Zr(e,t,n,r){const{slots:o,attrs:a}=t;return()=>{const t={part:!0};let s=Y();e.locale&&(t.locale=e.locale),te(e.format)?t.key=e.format:re(e.format)&&(te(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?B(Y(),t,{[r]:e.format[r]}):t),Y()));const i=r(e.value,t,s);let l=[t.key];X(i)?l=i.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];return function(e){return X(e)&&!te(e[0])}(r)&&(r[0].key=`${e.type}-${t}`),r})):te(i)&&(l=[i]);const c=B(Y(),a),f=te(e.tag)||re(e.tag)?e.tag:Jr();return u(f,c,l)}}const Xr=l({name:"i18n-n",props:B({value:{type:Number,required:!0},format:{type:[String,Object]}},Gr),setup(e,t){const n=e.i18n||so({useScope:e.scope,__useComponent:!0});return Zr(e,t,wn,((...e)=>n[ir](...e)))}}),eo=Xr;function to(e){if(te(e))return{path:e};if(se(e)){if(!("path"in e))throw rr(qn,"path");return e}throw rr(Qn)}function no(e){const{path:t,locale:n,args:r,choice:o,plural:a}=e,s={},i=r||{};return te(n)&&(s.locale=n),U(o)&&(s.plural=o),U(a)&&(s.plural=a),[t,i,s]}function ro(e,t,...n){const r=se(n[0])?n[0]:{};(!ne(r.globalInstall)||r.globalInstall)&&([Qr.name,"I18nT"].forEach((t=>e.component(t,Qr))),[eo.name,"I18nN"].forEach((t=>e.component(t,eo))),[uo.name,"I18nD"].forEach((t=>e.component(t,uo)))),e.directive("t",function(e){const t=t=>{"production"!==process.env.NODE_ENV&&ue(br(gr));const{instance:n,value:r}=t;if(!n||!n.$)throw rr(er);const o=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),a=to(r);return[Reflect.apply(o.t,o,[...no(a)]),o]};return{created:(n,r)=>{const[o,a]=t(r);D&&e.global===a&&(n.__i18nWatcher=s(a.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=a,n.textContent=o},unmounted:e=>{D&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=to(t);e.textContent=Reflect.apply(n.t,n,[...no(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const oo=W("global-vue-i18n");function ao(e={}){const t=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;"production"!==process.env.NODE_ENV&&t&&ue(br(_r));const r=!ne(e.globalInjection)||e.globalInjection,o=new Map,[a,s]=function(e,t){const r=n(),o=__VUE_I18N_LEGACY_API__&&t?r.run((()=>zr(e))):r.run((()=>xr(e)));if(null==o)throw rr(er);return[r,o]}(e,t),l=W("production"!==process.env.NODE_ENV?"vue-i18n":"");const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...n){if("production"!==process.env.NODE_ENV&&(e.__VUE_I18N__=u),e.__VUE_I18N_SYMBOL__=l,e.provide(e.__VUE_I18N_SYMBOL__,u),se(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let o=null;!t&&r&&(o=function(e,t){const n=Object.create(null);return io.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw rr(er);const o=i(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,lo.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw rr(er);Object.defineProperty(e.config.globalProperties,`$${n}`,r)})),()=>{delete e.config.globalProperties.$i18n,lo.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}(e,u.global)),__VUE_I18N_FULL_INSTALL__&&ro(e,u,...n),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=c();if(!r)throw rr(er);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Yr(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=zr(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Yr(e,o);else{this.$i18n=zr({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Er(t,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if("production"!==process.env.NODE_ENV&&this.$el&&this.$i18n){const e=this.$i18n;this.$el.__VUE_I18N__=e.__composer;const t=this.__v_emitter=fe();e.__enableEmitter&&e.__enableEmitter(t),t.on("*",Br)}},unmounted(){const e=c();if(!e)throw rr(er);const t=this.$i18n;"production"!==process.env.NODE_ENV&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Br),delete this.__v_emitter),this.$i18n&&(t.__disableEmitter&&t.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(s,s.__composer,u));const a=e.unmount;if(e.unmount=()=>{o&&o(),u.dispose(),a()},"production"!==process.env.NODE_ENV){if(!await Vr(e,u))throw rr(Zn);const n=fe();if(t){const e=s;e.__enableEmitter&&e.__enableEmitter(n)}else{const e=s;e[lr]&&e[lr](n)}n.on("*",Br)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return u}function so(e={}){const t=c();if(null==t)throw rr(Gn);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rr(Jn);const n=function(e){const t=d(e.isCE?oo:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rr(e.isCE?Xn:er);return t}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),o=Cr(t),a=function(e,t){return H(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===a)return Er(r,e,o),r;if("parent"===a){let o=function(e,t,n=!1){let r=null;const o=t.root;let a=function(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}(t,n);for(;null!=a;){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(a);null!=e&&(r=e.__composer,n&&r&&!r[fr]&&(r=null))}if(null!=r||o===a)break;a=a.parent}return r}(n,t,e.__useComponent);return null==o&&("production"!==process.env.NODE_ENV&&br(mr),o=r),o}const s=n;let i=s.__getInstance(t);if(null==i){const n=B({},e);"__i18n"in o&&(n.__i18n=o.__i18n),r&&(n.__root=r),i=xr(n),s.__composerExtend&&(i[dr]=s.__composerExtend(i)),function(e,t,n){let r=null;p((()=>{if("production"!==process.env.NODE_ENV&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=fe();const e=n;e[lr]&&e[lr](r),r.on("*",Br)}}),t),m((()=>{const o=n;"production"!==process.env.NODE_ENV&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Br),o[cr]&&o[cr](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=o[dr];a&&(a(),delete o[dr])}),t)}(s,t,i),s.__setInstance(t,i)}return i}const io=["locale","fallbackLocale","availableLocales"],lo=["t","rt","d","n","tm","te"];const co=l({name:"i18n-d",props:B({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Gr),setup(e,t){const n=e.i18n||so({useScope:e.scope,__useComponent:!0});return Zr(e,t,vn,((...e)=>n[sr](...e)))}}),uo=co;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(J().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(J().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(J().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(J().__INTLIFY_PROD_DEVTOOLS__=!1),Xt=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&te(e)){const n=!ne(t.warnHtmlMessage)||t.warnHtmlMessage;"production"!==process.env.NODE_ENV&&dt(e,n);const r=(t.onCacheKey||pt)(e),o=mt[r];if(o)return o;const{ast:a,detectError:s}=function(e,t={}){let n=!1;const r=t.onError||Fe;return t.onError=e=>{n=!0,r(e)},{...qe(e,t),detectError:n}}(e,{...t,location:"production"!==process.env.NODE_ENV,jit:!0}),i=Qe(a);return s?i:mt[r]=i}{if("production"!==process.env.NODE_ENV&&!ht(e))return t.key,()=>e;const n=e.cacheKey;return n?mt[n]||(mt[n]=Qe(e)):Qe(e)}},function(e){en=e}((function(e,t){if(!re(e))return null;let n=Wt.get(t);if(n||(n=function(e){const t=[];let n,r,o,a,s,i,l,c=-1,u=0,f=0;const d=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===r?r=o:r+=o},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),f++},d[3]=()=>{if(f>0)f--,u=4,d[0]();else{if(f=0,void 0===r||(r=Rt(r),!1===r))return!1;d[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(a=$t(n),l=Pt[u],s=l[a]||l.l||8,8===s||(u=s[0],void 0!==s[1]&&(i=d[s[1]],i&&(o=n,!1===i()))))return;if(7===u)return t}}(t),n&&Wt.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const e=o[n[a]];if(void 0===e||ee(o))return null;o=e,a++}return o})),function(e){tn=e}(Mt),"production"!==process.env.NODE_ENV||__INTLIFY_PROD_DEVTOOLS__){const e=J();e.__INTLIFY__=!0,function(e){_t=e}(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var fo,po={exports:{}},mo=po.exports;
2705
+ */
2706
+ const Ya = "11.1.1";
2707
+ function Ha() {
2708
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ke().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ke().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1);
2709
+ }
2710
+ const G = {
2711
+ // composer module errors
2712
+ UNEXPECTED_RETURN_TYPE: zs,
2713
+ // 24
2714
+ // legacy module errors
2715
+ INVALID_ARGUMENT: 25,
2716
+ // i18n module errors
2717
+ MUST_BE_CALL_SETUP_TOP: 26,
2718
+ NOT_INSTALLED: 27,
2719
+ // directive module errors
2720
+ REQUIRED_VALUE: 28,
2721
+ INVALID_VALUE: 29,
2722
+ // vue-devtools errors
2723
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2724
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2725
+ // unexpected error
2726
+ UNEXPECTED_ERROR: 32,
2727
+ // not compatible legacy vue-i18n constructor
2728
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2729
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2730
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2731
+ };
2732
+ function ne(e, ...t) {
2733
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: ja, args: t } : void 0);
2734
+ }
2735
+ const ja = {
2736
+ [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2737
+ [G.INVALID_ARGUMENT]: "Invalid argument",
2738
+ [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2739
+ [G.NOT_INSTALLED]: "Need to install with `app.use` function",
2740
+ [G.UNEXPECTED_ERROR]: "Unexpected error",
2741
+ [G.REQUIRED_VALUE]: "Required in value: {0}",
2742
+ [G.INVALID_VALUE]: "Invalid value",
2743
+ [G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2744
+ [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2745
+ [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2746
+ [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2747
+ }, $t = /* @__PURE__ */ me("__translateVNode"), Wt = /* @__PURE__ */ me("__datetimeParts"), Gt = /* @__PURE__ */ me("__numberParts"), Pe = /* @__PURE__ */ me("__enableEmitter"), ze = /* @__PURE__ */ me("__disableEmitter"), pr = me("__setPluralRules"), Er = /* @__PURE__ */ me("__injectWithOption"), Bt = /* @__PURE__ */ me("__dispose"), de = {
2748
+ FALLBACK_TO_ROOT: _a,
2749
+ // 8
2750
+ NOT_FOUND_PARENT_SCOPE: 9,
2751
+ IGNORE_OBJ_FLATTEN: 10,
2752
+ /**
2753
+ * @deprecated will be removed at vue-i18n v12
2754
+ */
2755
+ DEPRECATE_LEGACY_MODE: 11,
2756
+ /**
2757
+ * @deprecated will be removed at vue-i18n v12
2758
+ */
2759
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
2760
+ }, Xa = {
2761
+ [de.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2762
+ [de.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2763
+ [de.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2764
+ /**
2765
+ * @deprecated will be removed at vue-i18n v12
2766
+ */
2767
+ [de.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2768
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2769
+ /**
2770
+ * @deprecated will be removed at vue-i18n v12
2771
+ */
2772
+ [de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
2773
+ };
2774
+ function nt(e, ...t) {
2775
+ return dt(Xa[e], ...t);
2776
+ }
2777
+ function et(e) {
2778
+ if (!F(e))
2779
+ return e;
2780
+ for (const t in e)
2781
+ if (ae(e, t))
2782
+ if (!t.includes("."))
2783
+ F(e[t]) && et(e[t]);
2784
+ else {
2785
+ const n = t.split("."), r = n.length - 1;
2786
+ let a = e, s = !1;
2787
+ for (let i = 0; i < r; i++) {
2788
+ if (n[i] in a || (a[n[i]] = $()), !F(a[n[i]])) {
2789
+ process.env.NODE_ENV !== "production" && Ne(nt(de.IGNORE_OBJ_FLATTEN, {
2790
+ key: n[i]
2791
+ })), s = !0;
2792
+ break;
2793
+ }
2794
+ a = a[n[i]];
2795
+ }
2796
+ s || (a[n[r]] = e[t], delete e[t]), F(a[n[r]]) && et(a[n[r]]);
2797
+ }
2798
+ return e;
2799
+ }
2800
+ function rn(e, t) {
2801
+ const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, i = w(n) ? n : q(r) ? $() : { [e]: $() };
2802
+ if (q(r) && r.forEach((c) => {
2803
+ if ("locale" in c && "resource" in c) {
2804
+ const { locale: f, resource: p } = c;
2805
+ f ? (i[f] = i[f] || $(), ut(p, i[f])) : ut(p, i);
2806
+ } else
2807
+ I(c) && ut(JSON.parse(c), i);
2808
+ }), a == null && s)
2809
+ for (const c in i)
2810
+ ae(i, c) && et(i[c]);
2811
+ return i;
2812
+ }
2813
+ function br(e) {
2814
+ return e.type;
2815
+ }
2816
+ function vr(e, t, n) {
2817
+ let r = F(t.messages) ? t.messages : $();
2818
+ "__i18nGlobal" in n && (r = rn(e.locale.value, {
2819
+ messages: r,
2820
+ __i18n: n.__i18nGlobal
2821
+ }));
2822
+ const a = Object.keys(r);
2823
+ a.length && a.forEach((s) => {
2824
+ e.mergeLocaleMessage(s, r[s]);
2825
+ });
2826
+ {
2827
+ if (F(t.datetimeFormats)) {
2828
+ const s = Object.keys(t.datetimeFormats);
2829
+ s.length && s.forEach((i) => {
2830
+ e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2831
+ });
2832
+ }
2833
+ if (F(t.numberFormats)) {
2834
+ const s = Object.keys(t.numberFormats);
2835
+ s.length && s.forEach((i) => {
2836
+ e.mergeNumberFormat(i, t.numberFormats[i]);
2837
+ });
2838
+ }
2839
+ }
2840
+ }
2841
+ function Kn(e) {
2842
+ return ue(Fr, null, e, 0);
2843
+ }
2844
+ const Un = "__INTLIFY_META__", Vn = () => [], qa = () => !1;
2845
+ let xn = 0;
2846
+ function $n(e) {
2847
+ return (t, n, r, a) => e(n, r, qe() || void 0, a);
2848
+ }
2849
+ const Ja = /* @__NO_SIDE_EFFECTS__ */ () => {
2850
+ const e = qe();
2851
+ let t = null;
2852
+ return e && (t = br(e)[Un]) ? { [Un]: t } : null;
2853
+ };
2854
+ function sn(e = {}) {
2855
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = ie ? Sr : Dr;
2856
+ let i = K(e.inheritLocale) ? e.inheritLocale : !0;
2857
+ const c = s(
2858
+ // prettier-ignore
2859
+ t && i ? t.locale.value : I(e.locale) ? e.locale : Ze
2860
+ ), f = s(
2861
+ // prettier-ignore
2862
+ t && i ? t.fallbackLocale.value : I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
2863
+ ), p = s(rn(c.value, e)), v = s(w(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), N = s(w(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
2864
+ let y = t ? t.missingWarn : K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, k = W(e.missing) ? e.missing : null, o = W(e.missing) ? $n(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, l = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
2865
+ const d = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
2866
+ let E = e.pluralRules || t && t.pluralRules, g;
2867
+ g = (() => {
2868
+ r && In(null);
2869
+ const b = {
2870
+ version: Ya,
2871
+ locale: c.value,
2872
+ fallbackLocale: f.value,
2873
+ messages: p.value,
2874
+ modifiers: d,
2875
+ pluralRules: E,
2876
+ missing: o === null ? void 0 : o,
2877
+ missingWarn: y,
2878
+ fallbackWarn: C,
2879
+ fallbackFormat: A,
2880
+ unresolving: !0,
2881
+ postTranslation: m === null ? void 0 : m,
2882
+ warnHtmlMessage: l,
2883
+ escapeParameter: u,
2884
+ messageResolver: e.messageResolver,
2885
+ messageCompiler: e.messageCompiler,
2886
+ __meta: { framework: "vue" }
2887
+ };
2888
+ b.datetimeFormats = v.value, b.numberFormats = N.value, b.__datetimeFormatters = w(g) ? g.__datetimeFormatters : void 0, b.__numberFormatters = w(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = w(g) ? g.__v_emitter : void 0);
2889
+ const L = Na(b);
2890
+ return r && In(L), L;
2891
+ })(), Xe(g, c.value, f.value);
2892
+ function P() {
2893
+ return [
2894
+ c.value,
2895
+ f.value,
2896
+ p.value,
2897
+ v.value,
2898
+ N.value
2899
+ ];
2900
+ }
2901
+ const M = je({
2902
+ get: () => c.value,
2903
+ set: (b) => {
2904
+ g.locale = b, c.value = b;
2905
+ }
2906
+ }), B = je({
2907
+ get: () => f.value,
2908
+ set: (b) => {
2909
+ g.fallbackLocale = b, f.value = b, Xe(g, c.value, b);
2910
+ }
2911
+ }), x = je(() => p.value), oe = /* @__PURE__ */ je(() => v.value), le = /* @__PURE__ */ je(() => N.value);
2912
+ function Oe() {
2913
+ return W(m) ? m : null;
2914
+ }
2915
+ function ee(b) {
2916
+ m = b, g.postTranslation = b;
2917
+ }
2918
+ function Ee() {
2919
+ return k;
2920
+ }
2921
+ function Me(b) {
2922
+ b !== null && (o = $n(b)), k = b, g.missing = o;
2923
+ }
2924
+ function We(b, L) {
2925
+ return b !== "translate" || !L.resolvedMessage;
2926
+ }
2927
+ const he = (b, L, V, j, Ie, st) => {
2928
+ P();
2929
+ let we;
2930
+ try {
2931
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? ya() : void 0), we = b(g);
2932
+ } finally {
2933
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2934
+ }
2935
+ if (V !== "translate exists" && // for not `te` (e.g `t`)
2936
+ J(we) && we === ht || V === "translate exists" && !we) {
2937
+ const [Ae, Ar] = L();
2938
+ if (process.env.NODE_ENV !== "production" && t && I(Ae) && We(V, Ar) && (D && (gt(C, Ae) || cr(y, Ae)) && Ne(nt(de.FALLBACK_TO_ROOT, {
2939
+ key: Ae,
2940
+ type: V
2941
+ })), process.env.NODE_ENV !== "production")) {
2942
+ const { __v_emitter: un } = g;
2943
+ un && D && un.emit("fallback", {
2944
+ type: V,
2945
+ key: Ae,
2946
+ to: "global",
2947
+ groupId: `${V}:${Ae}`
2948
+ });
2949
+ }
2950
+ return t && D ? j(t) : Ie(Ae);
2951
+ } else {
2952
+ if (st(we))
2953
+ return we;
2954
+ throw ne(G.UNEXPECTED_RETURN_TYPE);
2955
+ }
2956
+ };
2957
+ function Ge(...b) {
2958
+ return he((L) => Reflect.apply(Fn, null, [L, ...b]), () => Vt(...b), "translate", (L) => Reflect.apply(L.t, L, [...b]), (L) => L, (L) => I(L));
2959
+ }
2960
+ function Et(...b) {
2961
+ const [L, V, j] = b;
2962
+ if (j && !F(j))
2963
+ throw ne(G.INVALID_ARGUMENT);
2964
+ return Ge(L, V, Q({ resolvedMessage: !0 }, j || {}));
2965
+ }
2966
+ function bt(...b) {
2967
+ return he((L) => Reflect.apply(Sn, null, [L, ...b]), () => Kt(...b), "datetime format", (L) => Reflect.apply(L.d, L, [...b]), () => _t, (L) => I(L));
2968
+ }
2969
+ function vt(...b) {
2970
+ return he((L) => Reflect.apply(Pn, null, [L, ...b]), () => Ut(...b), "number format", (L) => Reflect.apply(L.n, L, [...b]), () => _t, (L) => I(L));
2971
+ }
2972
+ function yt(b) {
2973
+ return b.map((L) => I(L) || J(L) || K(L) ? Kn(String(L)) : L);
2974
+ }
2975
+ const Nt = {
2976
+ normalize: yt,
2977
+ interpolate: (b) => b,
2978
+ type: "vnode"
2979
+ };
2980
+ function rt(...b) {
2981
+ return he((L) => {
2982
+ let V;
2983
+ const j = L;
2984
+ try {
2985
+ j.processor = Nt, V = Reflect.apply(Fn, null, [j, ...b]);
2986
+ } finally {
2987
+ j.processor = null;
2988
+ }
2989
+ return V;
2990
+ }, () => Vt(...b), "translate", (L) => L[$t](...b), (L) => [Kn(L)], (L) => q(L));
2991
+ }
2992
+ function Tt(...b) {
2993
+ return he((L) => Reflect.apply(Pn, null, [L, ...b]), () => Ut(...b), "number format", (L) => L[Gt](...b), Vn, (L) => I(L) || q(L));
2994
+ }
2995
+ function Lt(...b) {
2996
+ return he((L) => Reflect.apply(Sn, null, [L, ...b]), () => Kt(...b), "datetime format", (L) => L[Wt](...b), Vn, (L) => I(L) || q(L));
2997
+ }
2998
+ function Ot(b) {
2999
+ E = b, g.pluralRules = E;
3000
+ }
3001
+ function Ct(b, L) {
3002
+ return he(() => {
3003
+ if (!b)
3004
+ return !1;
3005
+ const V = I(L) ? L : c.value, j = Ce(V), Ie = g.messageResolver(j, b);
3006
+ return ye(Ie) || se(Ie) || I(Ie);
3007
+ }, () => [b], "translate exists", (V) => Reflect.apply(V.te, V, [b, L]), qa, (V) => K(V));
3008
+ }
3009
+ function Be(b) {
3010
+ let L = null;
3011
+ const V = rr(g, f.value, c.value);
3012
+ for (let j = 0; j < V.length; j++) {
3013
+ const Ie = p.value[V[j]] || {}, st = g.messageResolver(Ie, b);
3014
+ if (st != null) {
3015
+ L = st;
3016
+ break;
3017
+ }
3018
+ }
3019
+ return L;
3020
+ }
3021
+ function Ye(b) {
3022
+ const L = Be(b);
3023
+ return L ?? (t ? t.tm(b) || {} : {});
3024
+ }
3025
+ function Ce(b) {
3026
+ return p.value[b] || {};
3027
+ }
3028
+ function He(b, L) {
3029
+ if (a) {
3030
+ const V = { [b]: L };
3031
+ for (const j in V)
3032
+ ae(V, j) && et(V[j]);
3033
+ L = V[b];
3034
+ }
3035
+ p.value[b] = L, g.messages = p.value;
3036
+ }
3037
+ function It(b, L) {
3038
+ p.value[b] = p.value[b] || {};
3039
+ const V = { [b]: L };
3040
+ if (a)
3041
+ for (const j in V)
3042
+ ae(V, j) && et(V[j]);
3043
+ L = V[b], ut(L, p.value[b]), g.messages = p.value;
3044
+ }
3045
+ function _(b) {
3046
+ return v.value[b] || {};
3047
+ }
3048
+ function h(b, L) {
3049
+ v.value[b] = L, g.datetimeFormats = v.value, Dn(g, b, L);
3050
+ }
3051
+ function T(b, L) {
3052
+ v.value[b] = Q(v.value[b] || {}, L), g.datetimeFormats = v.value, Dn(g, b, L);
3053
+ }
3054
+ function S(b) {
3055
+ return N.value[b] || {};
3056
+ }
3057
+ function Y(b, L) {
3058
+ N.value[b] = L, g.numberFormats = N.value, Rn(g, b, L);
3059
+ }
3060
+ function H(b, L) {
3061
+ N.value[b] = Q(N.value[b] || {}, L), g.numberFormats = N.value, Rn(g, b, L);
3062
+ }
3063
+ xn++, t && ie && (Rt(t.locale, (b) => {
3064
+ i && (c.value = b, g.locale = b, Xe(g, c.value, f.value));
3065
+ }), Rt(t.fallbackLocale, (b) => {
3066
+ i && (f.value = b, g.fallbackLocale = b, Xe(g, c.value, f.value));
3067
+ }));
3068
+ const U = {
3069
+ id: xn,
3070
+ locale: M,
3071
+ fallbackLocale: B,
3072
+ get inheritLocale() {
3073
+ return i;
3074
+ },
3075
+ set inheritLocale(b) {
3076
+ i = b, b && t && (c.value = t.locale.value, f.value = t.fallbackLocale.value, Xe(g, c.value, f.value));
3077
+ },
3078
+ get availableLocales() {
3079
+ return Object.keys(p.value).sort();
3080
+ },
3081
+ messages: x,
3082
+ get modifiers() {
3083
+ return d;
3084
+ },
3085
+ get pluralRules() {
3086
+ return E || {};
3087
+ },
3088
+ get isGlobal() {
3089
+ return r;
3090
+ },
3091
+ get missingWarn() {
3092
+ return y;
3093
+ },
3094
+ set missingWarn(b) {
3095
+ y = b, g.missingWarn = y;
3096
+ },
3097
+ get fallbackWarn() {
3098
+ return C;
3099
+ },
3100
+ set fallbackWarn(b) {
3101
+ C = b, g.fallbackWarn = C;
3102
+ },
3103
+ get fallbackRoot() {
3104
+ return D;
3105
+ },
3106
+ set fallbackRoot(b) {
3107
+ D = b;
3108
+ },
3109
+ get fallbackFormat() {
3110
+ return A;
3111
+ },
3112
+ set fallbackFormat(b) {
3113
+ A = b, g.fallbackFormat = A;
3114
+ },
3115
+ get warnHtmlMessage() {
3116
+ return l;
3117
+ },
3118
+ set warnHtmlMessage(b) {
3119
+ l = b, g.warnHtmlMessage = b;
3120
+ },
3121
+ get escapeParameter() {
3122
+ return u;
3123
+ },
3124
+ set escapeParameter(b) {
3125
+ u = b, g.escapeParameter = b;
3126
+ },
3127
+ t: Ge,
3128
+ getLocaleMessage: Ce,
3129
+ setLocaleMessage: He,
3130
+ mergeLocaleMessage: It,
3131
+ getPostTranslationHandler: Oe,
3132
+ setPostTranslationHandler: ee,
3133
+ getMissingHandler: Ee,
3134
+ setMissingHandler: Me,
3135
+ [pr]: Ot
3136
+ };
3137
+ return U.datetimeFormats = oe, U.numberFormats = le, U.rt = Et, U.te = Ct, U.tm = Ye, U.d = bt, U.n = vt, U.getDateTimeFormat = _, U.setDateTimeFormat = h, U.mergeDateTimeFormat = T, U.getNumberFormat = S, U.setNumberFormat = Y, U.mergeNumberFormat = H, U[Er] = n, U[$t] = rt, U[Wt] = Lt, U[Gt] = Tt, process.env.NODE_ENV !== "production" && (U[Pe] = (b) => {
3138
+ g.__v_emitter = b;
3139
+ }, U[ze] = () => {
3140
+ g.__v_emitter = void 0;
3141
+ }), U;
3142
+ }
3143
+ const yr = "vue-i18n: composer properties", Dt = {
3144
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
3145
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
3146
+ "vue-i18n-timeline": "Vue I18n"
3147
+ }, Qa = {
3148
+ "vue-i18n-resource-inspector": "Search for scopes ..."
3149
+ }, Za = {
3150
+ "vue-i18n-timeline": 16764185
3151
+ };
3152
+ let Yt;
3153
+ async function za(e, t) {
3154
+ return new Promise((n, r) => {
3155
+ try {
3156
+ Ba({
3157
+ id: "vue-devtools-plugin-vue-i18n",
3158
+ label: Dt["vue-devtools-plugin-vue-i18n"],
3159
+ packageName: "vue-i18n",
3160
+ homepage: "https://vue-i18n.intlify.dev",
3161
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
3162
+ componentStateTypes: [yr],
3163
+ app: e
3164
+ // eslint-disable-line @typescript-eslint/no-explicit-any
3165
+ }, (a) => {
3166
+ Yt = a, a.on.visitComponentTree(({ componentInstance: i, treeNode: c }) => {
3167
+ ei(i, c, t);
3168
+ }), a.on.inspectComponent(({ componentInstance: i, instanceData: c }) => {
3169
+ i.vnode.el && i.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? i.vnode.el.__VUE_I18N__ !== t.global.__composer && Wn(c, i.vnode.el.__VUE_I18N__) : Wn(c, i.vnode.el.__VUE_I18N__));
3170
+ }), a.addInspector({
3171
+ id: "vue-i18n-resource-inspector",
3172
+ label: Dt["vue-i18n-resource-inspector"],
3173
+ icon: "language",
3174
+ treeFilterPlaceholder: Qa["vue-i18n-resource-inspector"]
3175
+ }), a.on.getInspectorTree((i) => {
3176
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && ai(i, t);
3177
+ });
3178
+ const s = /* @__PURE__ */ new Map();
3179
+ a.on.getInspectorState(async (i) => {
3180
+ if (i.app === e && i.inspectorId === "vue-i18n-resource-inspector")
3181
+ if (a.unhighlightElement(), oi(i, t), i.nodeId === "global") {
3182
+ if (!s.has(i.app)) {
3183
+ const [c] = await a.getComponentInstances(i.app);
3184
+ s.set(i.app, c);
3185
+ }
3186
+ a.highlightElement(s.get(i.app));
3187
+ } else {
3188
+ const c = ii(i.nodeId, t);
3189
+ c && a.highlightElement(c);
3190
+ }
3191
+ }), a.on.editInspectorState((i) => {
3192
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && ci(i, t);
3193
+ }), a.addTimelineLayer({
3194
+ id: "vue-i18n-timeline",
3195
+ label: Dt["vue-i18n-timeline"],
3196
+ color: Za["vue-i18n-timeline"]
3197
+ }), n(!0);
3198
+ });
3199
+ } catch (a) {
3200
+ console.error(a), r(!1);
3201
+ }
3202
+ });
3203
+ }
3204
+ function Nr(e) {
3205
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
3206
+ }
3207
+ function ei(e, t, n) {
3208
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
3209
+ if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
3210
+ const a = {
3211
+ label: `i18n (${Nr(e)} Scope)`,
3212
+ textColor: 0,
3213
+ backgroundColor: 16764185
3214
+ };
3215
+ t.tags.push(a);
3216
+ }
3217
+ }
3218
+ function Wn(e, t) {
3219
+ const n = yr;
3220
+ e.state.push({
3221
+ type: n,
3222
+ key: "locale",
3223
+ editable: !0,
3224
+ value: t.locale.value
3225
+ }), e.state.push({
3226
+ type: n,
3227
+ key: "availableLocales",
3228
+ editable: !1,
3229
+ value: t.availableLocales
3230
+ }), e.state.push({
3231
+ type: n,
3232
+ key: "fallbackLocale",
3233
+ editable: !0,
3234
+ value: t.fallbackLocale.value
3235
+ }), e.state.push({
3236
+ type: n,
3237
+ key: "inheritLocale",
3238
+ editable: !0,
3239
+ value: t.inheritLocale
3240
+ }), e.state.push({
3241
+ type: n,
3242
+ key: "messages",
3243
+ editable: !1,
3244
+ value: an(t.messages.value)
3245
+ }), e.state.push({
3246
+ type: n,
3247
+ key: "datetimeFormats",
3248
+ editable: !1,
3249
+ value: t.datetimeFormats.value
3250
+ }), e.state.push({
3251
+ type: n,
3252
+ key: "numberFormats",
3253
+ editable: !1,
3254
+ value: t.numberFormats.value
3255
+ });
3256
+ }
3257
+ function an(e) {
3258
+ const t = {};
3259
+ return Object.keys(e).forEach((n) => {
3260
+ const r = e[n];
3261
+ W(r) && "source" in r ? t[n] = si(r) : ye(r) && r.loc && r.loc.source ? t[n] = r.loc.source : F(r) ? t[n] = an(r) : t[n] = r;
3262
+ }), t;
3263
+ }
3264
+ const ti = {
3265
+ "<": "&lt;",
3266
+ ">": "&gt;",
3267
+ '"': "&quot;",
3268
+ "&": "&amp;"
3269
+ };
3270
+ function ni(e) {
3271
+ return e.replace(/[<>"&]/g, ri);
3272
+ }
3273
+ function ri(e) {
3274
+ return ti[e] || e;
3275
+ }
3276
+ function si(e) {
3277
+ return {
3278
+ _custom: {
3279
+ type: "function",
3280
+ display: `<span>ƒ</span> ${e.source ? `("${ni(e.source)}")` : "(?)"}`
3281
+ }
3282
+ };
3283
+ }
3284
+ function ai(e, t) {
3285
+ e.rootNodes.push({
3286
+ id: "global",
3287
+ label: "Global Scope"
3288
+ });
3289
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
3290
+ for (const [r, a] of t.__instances) {
3291
+ const s = t.mode === "composition" ? a : a.__composer;
3292
+ n !== s && e.rootNodes.push({
3293
+ id: s.id.toString(),
3294
+ label: `${Nr(r)} Scope`
3295
+ });
3296
+ }
3297
+ }
3298
+ function ii(e, t) {
3299
+ let n = null;
3300
+ if (e !== "global") {
3301
+ for (const [r, a] of t.__instances.entries())
3302
+ if (a.id.toString() === e) {
3303
+ n = r;
3304
+ break;
3305
+ }
3306
+ }
3307
+ return n;
3308
+ }
3309
+ function Tr(e, t) {
3310
+ if (e === "global")
3311
+ return t.mode === "composition" ? t.global : t.global.__composer;
3312
+ {
3313
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
3314
+ return n ? t.mode === "composition" ? n : n.__composer : null;
3315
+ }
3316
+ }
3317
+ function oi(e, t) {
3318
+ const n = Tr(e.nodeId, t);
3319
+ return n && (e.state = li(n)), null;
3320
+ }
3321
+ function li(e) {
3322
+ const t = {}, n = "Locale related info", r = [
3323
+ {
3324
+ type: n,
3325
+ key: "locale",
3326
+ editable: !0,
3327
+ value: e.locale.value
3328
+ },
3329
+ {
3330
+ type: n,
3331
+ key: "fallbackLocale",
3332
+ editable: !0,
3333
+ value: e.fallbackLocale.value
3334
+ },
3335
+ {
3336
+ type: n,
3337
+ key: "availableLocales",
3338
+ editable: !1,
3339
+ value: e.availableLocales
3340
+ },
3341
+ {
3342
+ type: n,
3343
+ key: "inheritLocale",
3344
+ editable: !0,
3345
+ value: e.inheritLocale
3346
+ }
3347
+ ];
3348
+ t[n] = r;
3349
+ const a = "Locale messages info", s = [
3350
+ {
3351
+ type: a,
3352
+ key: "messages",
3353
+ editable: !1,
3354
+ value: an(e.messages.value)
3355
+ }
3356
+ ];
3357
+ t[a] = s;
3358
+ {
3359
+ const i = "Datetime formats info", c = [
3360
+ {
3361
+ type: i,
3362
+ key: "datetimeFormats",
3363
+ editable: !1,
3364
+ value: e.datetimeFormats.value
3365
+ }
3366
+ ];
3367
+ t[i] = c;
3368
+ const f = "Datetime formats info", p = [
3369
+ {
3370
+ type: f,
3371
+ key: "numberFormats",
3372
+ editable: !1,
3373
+ value: e.numberFormats.value
3374
+ }
3375
+ ];
3376
+ t[f] = p;
3377
+ }
3378
+ return t;
3379
+ }
3380
+ function tt(e, t) {
3381
+ if (Yt) {
3382
+ let n;
3383
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), Yt.addTimelineEvent({
3384
+ layerId: "vue-i18n-timeline",
3385
+ event: {
3386
+ title: e,
3387
+ groupId: n,
3388
+ time: Date.now(),
3389
+ meta: {},
3390
+ data: t || {},
3391
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
3392
+ }
3393
+ });
3394
+ }
3395
+ }
3396
+ function ci(e, t) {
3397
+ const n = Tr(e.nodeId, t);
3398
+ if (n) {
3399
+ const [r] = e.path;
3400
+ r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || q(e.state.value) || F(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && K(e.state.value) && (n.inheritLocale = e.state.value);
3401
+ }
3402
+ }
3403
+ function ui(e) {
3404
+ const t = I(e.locale) ? e.locale : Ze, n = I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || Ve(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = K(e.silentFallbackWarn) || Ve(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = K(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, f = w(e.modifiers) ? e.modifiers : {}, p = e.pluralizationRules, v = W(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, y = !!e.escapeParameterHtml, C = K(e.sync) ? e.sync : !0;
3405
+ let D = e.messages;
3406
+ if (w(e.sharedMessages)) {
3407
+ const d = e.sharedMessages;
3408
+ D = Object.keys(d).reduce((g, O) => {
3409
+ const P = g[O] || (g[O] = {});
3410
+ return Q(P, d[O]), g;
3411
+ }, D || {});
3412
+ }
3413
+ const { __i18n: A, __root: k, __injectWithOption: o } = e, m = e.datetimeFormats, l = e.numberFormats, u = e.flatJson;
3414
+ return {
3415
+ locale: t,
3416
+ fallbackLocale: n,
3417
+ messages: D,
3418
+ flatJson: u,
3419
+ datetimeFormats: m,
3420
+ numberFormats: l,
3421
+ missing: r,
3422
+ missingWarn: a,
3423
+ fallbackWarn: s,
3424
+ fallbackRoot: i,
3425
+ fallbackFormat: c,
3426
+ modifiers: f,
3427
+ pluralRules: p,
3428
+ postTranslation: v,
3429
+ warnHtmlMessage: N,
3430
+ escapeParameter: y,
3431
+ messageResolver: e.messageResolver,
3432
+ inheritLocale: C,
3433
+ __i18n: A,
3434
+ __root: k,
3435
+ __injectWithOption: o
3436
+ };
3437
+ }
3438
+ function Ht(e = {}) {
3439
+ const t = sn(ui(e)), { __extender: n } = e, r = {
3440
+ // id
3441
+ id: t.id,
3442
+ // locale
3443
+ get locale() {
3444
+ return t.locale.value;
3445
+ },
3446
+ set locale(a) {
3447
+ t.locale.value = a;
3448
+ },
3449
+ // fallbackLocale
3450
+ get fallbackLocale() {
3451
+ return t.fallbackLocale.value;
3452
+ },
3453
+ set fallbackLocale(a) {
3454
+ t.fallbackLocale.value = a;
3455
+ },
3456
+ // messages
3457
+ get messages() {
3458
+ return t.messages.value;
3459
+ },
3460
+ // datetimeFormats
3461
+ get datetimeFormats() {
3462
+ return t.datetimeFormats.value;
3463
+ },
3464
+ // numberFormats
3465
+ get numberFormats() {
3466
+ return t.numberFormats.value;
3467
+ },
3468
+ // availableLocales
3469
+ get availableLocales() {
3470
+ return t.availableLocales;
3471
+ },
3472
+ // missing
3473
+ get missing() {
3474
+ return t.getMissingHandler();
3475
+ },
3476
+ set missing(a) {
3477
+ t.setMissingHandler(a);
3478
+ },
3479
+ // silentTranslationWarn
3480
+ get silentTranslationWarn() {
3481
+ return K(t.missingWarn) ? !t.missingWarn : t.missingWarn;
3482
+ },
3483
+ set silentTranslationWarn(a) {
3484
+ t.missingWarn = K(a) ? !a : a;
3485
+ },
3486
+ // silentFallbackWarn
3487
+ get silentFallbackWarn() {
3488
+ return K(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
3489
+ },
3490
+ set silentFallbackWarn(a) {
3491
+ t.fallbackWarn = K(a) ? !a : a;
3492
+ },
3493
+ // modifiers
3494
+ get modifiers() {
3495
+ return t.modifiers;
3496
+ },
3497
+ // formatFallbackMessages
3498
+ get formatFallbackMessages() {
3499
+ return t.fallbackFormat;
3500
+ },
3501
+ set formatFallbackMessages(a) {
3502
+ t.fallbackFormat = a;
3503
+ },
3504
+ // postTranslation
3505
+ get postTranslation() {
3506
+ return t.getPostTranslationHandler();
3507
+ },
3508
+ set postTranslation(a) {
3509
+ t.setPostTranslationHandler(a);
3510
+ },
3511
+ // sync
3512
+ get sync() {
3513
+ return t.inheritLocale;
3514
+ },
3515
+ set sync(a) {
3516
+ t.inheritLocale = a;
3517
+ },
3518
+ // warnInHtmlMessage
3519
+ get warnHtmlInMessage() {
3520
+ return t.warnHtmlMessage ? "warn" : "off";
3521
+ },
3522
+ set warnHtmlInMessage(a) {
3523
+ t.warnHtmlMessage = a !== "off";
3524
+ },
3525
+ // escapeParameterHtml
3526
+ get escapeParameterHtml() {
3527
+ return t.escapeParameter;
3528
+ },
3529
+ set escapeParameterHtml(a) {
3530
+ t.escapeParameter = a;
3531
+ },
3532
+ // pluralizationRules
3533
+ get pluralizationRules() {
3534
+ return t.pluralRules || {};
3535
+ },
3536
+ // for internal
3537
+ __composer: t,
3538
+ // t
3539
+ t(...a) {
3540
+ return Reflect.apply(t.t, t, [...a]);
3541
+ },
3542
+ // rt
3543
+ rt(...a) {
3544
+ return Reflect.apply(t.rt, t, [...a]);
3545
+ },
3546
+ // te
3547
+ te(a, s) {
3548
+ return t.te(a, s);
3549
+ },
3550
+ // tm
3551
+ tm(a) {
3552
+ return t.tm(a);
3553
+ },
3554
+ // getLocaleMessage
3555
+ getLocaleMessage(a) {
3556
+ return t.getLocaleMessage(a);
3557
+ },
3558
+ // setLocaleMessage
3559
+ setLocaleMessage(a, s) {
3560
+ t.setLocaleMessage(a, s);
3561
+ },
3562
+ // mergeLocaleMessage
3563
+ mergeLocaleMessage(a, s) {
3564
+ t.mergeLocaleMessage(a, s);
3565
+ },
3566
+ // d
3567
+ d(...a) {
3568
+ return Reflect.apply(t.d, t, [...a]);
3569
+ },
3570
+ // getDateTimeFormat
3571
+ getDateTimeFormat(a) {
3572
+ return t.getDateTimeFormat(a);
3573
+ },
3574
+ // setDateTimeFormat
3575
+ setDateTimeFormat(a, s) {
3576
+ t.setDateTimeFormat(a, s);
3577
+ },
3578
+ // mergeDateTimeFormat
3579
+ mergeDateTimeFormat(a, s) {
3580
+ t.mergeDateTimeFormat(a, s);
3581
+ },
3582
+ // n
3583
+ n(...a) {
3584
+ return Reflect.apply(t.n, t, [...a]);
3585
+ },
3586
+ // getNumberFormat
3587
+ getNumberFormat(a) {
3588
+ return t.getNumberFormat(a);
3589
+ },
3590
+ // setNumberFormat
3591
+ setNumberFormat(a, s) {
3592
+ t.setNumberFormat(a, s);
3593
+ },
3594
+ // mergeNumberFormat
3595
+ mergeNumberFormat(a, s) {
3596
+ t.mergeNumberFormat(a, s);
3597
+ }
3598
+ };
3599
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (a) => {
3600
+ const s = t;
3601
+ s[Pe] && s[Pe](a);
3602
+ }, r.__disableEmitter = () => {
3603
+ const a = t;
3604
+ a[ze] && a[ze]();
3605
+ }), r;
3606
+ }
3607
+ function fi(e, t, n) {
3608
+ return {
3609
+ beforeCreate() {
3610
+ const r = qe();
3611
+ if (!r)
3612
+ throw ne(G.UNEXPECTED_ERROR);
3613
+ const a = this.$options;
3614
+ if (a.i18n) {
3615
+ const s = a.i18n;
3616
+ if (a.__i18n && (s.__i18n = a.__i18n), s.__root = t, this === this.$root)
3617
+ this.$i18n = Gn(e, s);
3618
+ else {
3619
+ s.__injectWithOption = !0, s.__extender = n.__vueI18nExtend, this.$i18n = Ht(s);
3620
+ const i = this.$i18n;
3621
+ i.__extender && (i.__disposer = i.__extender(this.$i18n));
3622
+ }
3623
+ } else if (a.__i18n)
3624
+ if (this === this.$root)
3625
+ this.$i18n = Gn(e, a);
3626
+ else {
3627
+ this.$i18n = Ht({
3628
+ __i18n: a.__i18n,
3629
+ __injectWithOption: !0,
3630
+ __extender: n.__vueI18nExtend,
3631
+ __root: t
3632
+ });
3633
+ const s = this.$i18n;
3634
+ s.__extender && (s.__disposer = s.__extender(this.$i18n));
3635
+ }
3636
+ else
3637
+ this.$i18n = e;
3638
+ a.__i18nGlobal && vr(t, a, a), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, i) => this.$i18n.te(s, i), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(r, this.$i18n);
3639
+ },
3640
+ mounted() {
3641
+ if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
3642
+ const r = this.$i18n;
3643
+ this.$el.__VUE_I18N__ = r.__composer;
3644
+ const a = this.__v_emitter = Zt();
3645
+ r.__enableEmitter && r.__enableEmitter(a), a.on("*", tt);
3646
+ }
3647
+ },
3648
+ unmounted() {
3649
+ const r = qe();
3650
+ if (!r)
3651
+ throw ne(G.UNEXPECTED_ERROR);
3652
+ const a = this.$i18n;
3653
+ process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", tt), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(r), delete this.$i18n;
3654
+ }
3655
+ };
3656
+ }
3657
+ function Gn(e, t) {
3658
+ 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[pr](t.pluralizationRules || e.pluralizationRules);
3659
+ const n = rn(e.locale, {
3660
+ messages: t.messages,
3661
+ __i18n: t.__i18n
3662
+ });
3663
+ 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;
3664
+ }
3665
+ const on = {
3666
+ tag: {
3667
+ type: [String, Object]
3668
+ },
3669
+ locale: {
3670
+ type: String
3671
+ },
3672
+ scope: {
3673
+ type: String,
3674
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
3675
+ validator: (e) => e === "parent" || e === "global",
3676
+ default: "parent"
3677
+ /* ComponentI18nScope */
3678
+ },
3679
+ i18n: {
3680
+ type: Object
3681
+ }
3682
+ };
3683
+ function _i({ slots: e }, t) {
3684
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
3685
+ ...r,
3686
+ // prettier-ignore
3687
+ ...a.type === zn ? a.children : [a]
3688
+ ], []) : t.reduce((n, r) => {
3689
+ const a = e[r];
3690
+ return a && (n[r] = a()), n;
3691
+ }, $());
3692
+ }
3693
+ function Lr() {
3694
+ return zn;
3695
+ }
3696
+ const di = /* @__PURE__ */ Xt({
3697
+ /* eslint-disable */
3698
+ name: "i18n-t",
3699
+ props: Q({
3700
+ keypath: {
3701
+ type: String,
3702
+ required: !0
3703
+ },
3704
+ plural: {
3705
+ type: [Number, String],
3706
+ validator: (e) => J(e) || !isNaN(e)
3707
+ }
3708
+ }, on),
3709
+ /* eslint-enable */
3710
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3711
+ setup(e, t) {
3712
+ const { slots: n, attrs: r } = t, a = e.i18n || ln({
3713
+ useScope: e.scope,
3714
+ __useComponent: !0
3715
+ });
3716
+ return () => {
3717
+ const s = Object.keys(n).filter((N) => N !== "_"), i = $();
3718
+ e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = I(e.plural) ? +e.plural : e.plural);
3719
+ const c = _i(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), v = I(e.tag) || F(e.tag) ? e.tag : Lr();
3720
+ return Zn(v, p, f);
3721
+ };
3722
+ }
3723
+ }), Bn = di;
3724
+ function mi(e) {
3725
+ return q(e) && !I(e[0]);
3726
+ }
3727
+ function Or(e, t, n, r) {
3728
+ const { slots: a, attrs: s } = t;
3729
+ return () => {
3730
+ const i = { part: !0 };
3731
+ let c = $();
3732
+ e.locale && (i.locale = e.locale), I(e.format) ? i.key = e.format : F(e.format) && (I(e.format.key) && (i.key = e.format.key), c = Object.keys(e.format).reduce((y, C) => n.includes(C) ? Q($(), y, { [C]: e.format[C] }) : y, $()));
3733
+ const f = r(e.value, i, c);
3734
+ let p = [i.key];
3735
+ q(f) ? p = f.map((y, C) => {
3736
+ const D = a[y.type], A = D ? D({ [y.type]: y.value, index: C, parts: f }) : [y.value];
3737
+ return mi(A) && (A[0].key = `${y.type}-${C}`), A;
3738
+ }) : I(f) && (p = [f]);
3739
+ const v = Q($(), s), N = I(e.tag) || F(e.tag) ? e.tag : Lr();
3740
+ return Zn(N, v, p);
3741
+ };
3742
+ }
3743
+ const hi = /* @__PURE__ */ Xt({
3744
+ /* eslint-disable */
3745
+ name: "i18n-n",
3746
+ props: Q({
3747
+ value: {
3748
+ type: Number,
3749
+ required: !0
3750
+ },
3751
+ format: {
3752
+ type: [String, Object]
3753
+ }
3754
+ }, on),
3755
+ /* eslint-enable */
3756
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3757
+ setup(e, t) {
3758
+ const n = e.i18n || ln({
3759
+ useScope: e.scope,
3760
+ __useComponent: !0
3761
+ });
3762
+ return Or(e, t, dr, (...r) => (
3763
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3764
+ n[Gt](...r)
3765
+ ));
3766
+ }
3767
+ }), Yn = hi;
3768
+ function gi(e, t) {
3769
+ const n = e;
3770
+ if (e.mode === "composition")
3771
+ return n.__getInstance(t) || e.global;
3772
+ {
3773
+ const r = n.__getInstance(t);
3774
+ return r != null ? r.__composer : e.global.__composer;
3775
+ }
3776
+ }
3777
+ function pi(e) {
3778
+ const t = (i) => {
3779
+ process.env.NODE_ENV !== "production" && Qt(nt(de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3780
+ const { instance: c, value: f } = i;
3781
+ if (!c || !c.$)
3782
+ throw ne(G.UNEXPECTED_ERROR);
3783
+ const p = gi(e, c.$), v = Hn(f);
3784
+ return [
3785
+ Reflect.apply(p.t, p, [...jn(v)]),
3786
+ p
3787
+ ];
3788
+ };
3789
+ return {
3790
+ created: (i, c) => {
3791
+ const [f, p] = t(c);
3792
+ ie && e.global === p && (i.__i18nWatcher = Rt(p.locale, () => {
3793
+ c.instance && c.instance.$forceUpdate();
3794
+ })), i.__composer = p, i.textContent = f;
3795
+ },
3796
+ unmounted: (i) => {
3797
+ ie && i.__i18nWatcher && (i.__i18nWatcher(), i.__i18nWatcher = void 0, delete i.__i18nWatcher), i.__composer && (i.__composer = void 0, delete i.__composer);
3798
+ },
3799
+ beforeUpdate: (i, { value: c }) => {
3800
+ if (i.__composer) {
3801
+ const f = i.__composer, p = Hn(c);
3802
+ i.textContent = Reflect.apply(f.t, f, [
3803
+ ...jn(p)
3804
+ ]);
3805
+ }
3806
+ },
3807
+ getSSRProps: (i) => {
3808
+ const [c] = t(i);
3809
+ return { textContent: c };
3810
+ }
3811
+ };
3812
+ }
3813
+ function Hn(e) {
3814
+ if (I(e))
3815
+ return { path: e };
3816
+ if (w(e)) {
3817
+ if (!("path" in e))
3818
+ throw ne(G.REQUIRED_VALUE, "path");
3819
+ return e;
3820
+ } else
3821
+ throw ne(G.INVALID_VALUE);
3822
+ }
3823
+ function jn(e) {
3824
+ const { path: t, locale: n, args: r, choice: a, plural: s } = e, i = {}, c = r || {};
3825
+ return I(n) && (i.locale = n), J(a) && (i.plural = a), J(s) && (i.plural = s), [t, c, i];
3826
+ }
3827
+ function Ei(e, t, ...n) {
3828
+ const r = w(n[0]) ? n[0] : {};
3829
+ (K(r.globalInstall) ? r.globalInstall : !0) && ([Bn.name, "I18nT"].forEach((s) => e.component(s, Bn)), [Yn.name, "I18nN"].forEach((s) => e.component(s, Yn)), [qn.name, "I18nD"].forEach((s) => e.component(s, qn))), e.directive("t", pi(t));
3830
+ }
3831
+ const bi = /* @__PURE__ */ me("global-vue-i18n");
3832
+ function vi(e = {}) {
3833
+ const t = __VUE_I18N_LEGACY_API__ && K(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3834
+ process.env.NODE_ENV !== "production" && t && Qt(nt(de.DEPRECATE_LEGACY_MODE));
3835
+ const n = K(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = yi(e, t), i = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3836
+ function c(N) {
3837
+ return r.get(N) || null;
3838
+ }
3839
+ function f(N, y) {
3840
+ r.set(N, y);
3841
+ }
3842
+ function p(N) {
3843
+ r.delete(N);
3844
+ }
3845
+ const v = {
3846
+ // mode
3847
+ get mode() {
3848
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
3849
+ },
3850
+ // install plugin
3851
+ async install(N, ...y) {
3852
+ if (process.env.NODE_ENV !== "production" && (N.__VUE_I18N__ = v), N.__VUE_I18N_SYMBOL__ = i, N.provide(N.__VUE_I18N_SYMBOL__, v), w(y[0])) {
3853
+ const A = y[0];
3854
+ v.__composerExtend = A.__composerExtend, v.__vueI18nExtend = A.__vueI18nExtend;
3855
+ }
3856
+ let C = null;
3857
+ !t && n && (C = ki(N, v.global)), __VUE_I18N_FULL_INSTALL__ && Ei(N, v, ...y), __VUE_I18N_LEGACY_API__ && t && N.mixin(fi(s, s.__composer, v));
3858
+ const D = N.unmount;
3859
+ if (N.unmount = () => {
3860
+ C && C(), v.dispose(), D();
3861
+ }, process.env.NODE_ENV !== "production") {
3862
+ if (!await za(N, v))
3863
+ throw ne(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3864
+ const k = Zt();
3865
+ if (t) {
3866
+ const o = s;
3867
+ o.__enableEmitter && o.__enableEmitter(k);
3868
+ } else {
3869
+ const o = s;
3870
+ o[Pe] && o[Pe](k);
3871
+ }
3872
+ k.on("*", tt);
3873
+ }
3874
+ },
3875
+ // global accessor
3876
+ get global() {
3877
+ return s;
3878
+ },
3879
+ dispose() {
3880
+ a.stop();
3881
+ },
3882
+ // @internal
3883
+ __instances: r,
3884
+ // @internal
3885
+ __getInstance: c,
3886
+ // @internal
3887
+ __setInstance: f,
3888
+ // @internal
3889
+ __deleteInstance: p
3890
+ };
3891
+ return v;
3892
+ }
3893
+ function ln(e = {}) {
3894
+ const t = qe();
3895
+ if (t == null)
3896
+ throw ne(G.MUST_BE_CALL_SETUP_TOP);
3897
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3898
+ throw ne(G.NOT_INSTALLED);
3899
+ const n = Ni(t), r = Li(n), a = br(t), s = Ti(e, a);
3900
+ if (s === "global")
3901
+ return vr(r, e, a), r;
3902
+ if (s === "parent") {
3903
+ let f = Oi(n, t, e.__useComponent);
3904
+ return f == null && (process.env.NODE_ENV !== "production" && Ne(nt(de.NOT_FOUND_PARENT_SCOPE)), f = r), f;
3905
+ }
3906
+ const i = n;
3907
+ let c = i.__getInstance(t);
3908
+ if (c == null) {
3909
+ const f = Q({}, e);
3910
+ "__i18n" in a && (f.__i18n = a.__i18n), r && (f.__root = r), c = sn(f), i.__composerExtend && (c[Bt] = i.__composerExtend(c)), Ii(i, t, c), i.__setInstance(t, c);
3911
+ }
3912
+ return c;
3913
+ }
3914
+ function yi(e, t) {
3915
+ const n = kr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => sn(e));
3916
+ if (r == null)
3917
+ throw ne(G.UNEXPECTED_ERROR);
3918
+ return [n, r];
3919
+ }
3920
+ function Ni(e) {
3921
+ const t = Rr(e.isCE ? bi : e.appContext.app.__VUE_I18N_SYMBOL__);
3922
+ if (!t)
3923
+ throw ne(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
3924
+ return t;
3925
+ }
3926
+ function Ti(e, t) {
3927
+ return mt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3928
+ }
3929
+ function Li(e) {
3930
+ return e.mode === "composition" ? e.global : e.global.__composer;
3931
+ }
3932
+ function Oi(e, t, n = !1) {
3933
+ let r = null;
3934
+ const a = t.root;
3935
+ let s = Ci(t, n);
3936
+ for (; s != null; ) {
3937
+ const i = e;
3938
+ if (e.mode === "composition")
3939
+ r = i.__getInstance(s);
3940
+ else if (__VUE_I18N_LEGACY_API__) {
3941
+ const c = i.__getInstance(s);
3942
+ c != null && (r = c.__composer, n && r && !r[Er] && (r = null));
3943
+ }
3944
+ if (r != null || a === s)
3945
+ break;
3946
+ s = s.parent;
3947
+ }
3948
+ return r;
3949
+ }
3950
+ function Ci(e, t = !1) {
3951
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3952
+ }
3953
+ function Ii(e, t, n) {
3954
+ let r = null;
3955
+ Mr(() => {
3956
+ if (process.env.NODE_ENV !== "production" && t.vnode.el) {
3957
+ t.vnode.el.__VUE_I18N__ = n, r = Zt();
3958
+ const a = n;
3959
+ a[Pe] && a[Pe](r), r.on("*", tt);
3960
+ }
3961
+ }, t), wr(() => {
3962
+ const a = n;
3963
+ process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", tt), a[ze] && a[ze](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
3964
+ const s = a[Bt];
3965
+ s && (s(), delete a[Bt]);
3966
+ }, t);
3967
+ }
3968
+ const Ai = [
3969
+ "locale",
3970
+ "fallbackLocale",
3971
+ "availableLocales"
3972
+ ], Xn = ["t", "rt", "d", "n", "tm", "te"];
3973
+ function ki(e, t) {
3974
+ const n = /* @__PURE__ */ Object.create(null);
3975
+ return Ai.forEach((a) => {
3976
+ const s = Object.getOwnPropertyDescriptor(t, a);
3977
+ if (!s)
3978
+ throw ne(G.UNEXPECTED_ERROR);
3979
+ const i = Pr(s.value) ? {
3980
+ get() {
3981
+ return s.value.value;
3982
+ },
3983
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3984
+ set(c) {
3985
+ s.value.value = c;
3986
+ }
3987
+ } : {
3988
+ get() {
3989
+ return s.get && s.get();
3990
+ }
3991
+ };
3992
+ Object.defineProperty(n, a, i);
3993
+ }), e.config.globalProperties.$i18n = n, Xn.forEach((a) => {
3994
+ const s = Object.getOwnPropertyDescriptor(t, a);
3995
+ if (!s || !s.value)
3996
+ throw ne(G.UNEXPECTED_ERROR);
3997
+ Object.defineProperty(e.config.globalProperties, `$${a}`, s);
3998
+ }), () => {
3999
+ delete e.config.globalProperties.$i18n, Xn.forEach((a) => {
4000
+ delete e.config.globalProperties[`$${a}`];
4001
+ });
4002
+ };
4003
+ }
4004
+ const Si = /* @__PURE__ */ Xt({
4005
+ /* eslint-disable */
4006
+ name: "i18n-d",
4007
+ props: Q({
4008
+ value: {
4009
+ type: [Number, Date],
4010
+ required: !0
4011
+ },
4012
+ format: {
4013
+ type: [String, Object]
4014
+ }
4015
+ }, on),
4016
+ /* eslint-enable */
4017
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4018
+ setup(e, t) {
4019
+ const n = e.i18n || ln({
4020
+ useScope: e.scope,
4021
+ __useComponent: !0
4022
+ });
4023
+ return Or(e, t, _r, (...r) => (
4024
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4025
+ n[Wt](...r)
4026
+ ));
4027
+ }
4028
+ }), qn = Si;
4029
+ Ha();
4030
+ ga(Xs);
4031
+ pa(fa);
4032
+ Ea(rr);
4033
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
4034
+ const e = ke();
4035
+ e.__INTLIFY__ = !0, qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
4036
+ }
4037
+ process.env.NODE_ENV;
4038
+ var ft = { exports: {} };
23
4039
  /*! store2 - v2.14.4 - 2024-12-26
24
- * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var ho=(fo||(fo=1,function(e){var t,n,r,o;t=mo,n=mo&&mo.define,r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch{return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var o=r.inherit(r.storeAPI,(function(e,t,n){return 0===arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,n):void 0!==t?o.set(e,t,n):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()}));o._id=e;try{var a="__store2_test";t.setItem(a,"ok"),o._area=t,t.removeItem(a)}catch{o._area=r.storage("fake")}return o._ns=n||"",r.areas[e]||(r.areas[e]=o._area),r.apis[o._ns+o._id]||(r.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var n=this[e];return(!n||!n.area)&&(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var o=e,a=this[o];if(!(a&&a.namespace||(a=r.Store(this._id,this._area,this._ns+o+n),a._delim=n,this[o]||(this[o]=a),t)))for(var s in r.areas)a.area(s,r.areas[s]);return a},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,o=r.length(this._area);n<o;n++){var a=this._out(r.key(this._area,n));if(void 0!==a&&!1===e.call(this,a,this.get(a),t))break;o>r.length(this._area)&&(o--,n--)}return t||this},keys:function(e){return this.each((function(e,t,n){n.push(e)}),e||[])},get:function(e,t){var n,o=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==o?r.parse(o,n):t??o},getAll:function(e){return this.each((function(e,t,n){n[e]=t}),e||{})},transact:function(e,t,n){var r=this.get(e,n),o=t(r);return this.set(e,void 0===o?r:o),this},set:function(e,t,n){var o,a=this.get(e);return null!=a&&!1===n?t:("function"==typeof n&&(o=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,o),n)||a)},setAll:function(e,t){var n,r;for(var o in e)r=e[o],this.set(o,r,t)!==r&&(n=!0);return n},add:function(e,t,n){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var a=typeof o;if(a===typeof t&&"object"===a){for(var s in t)o[s]=t[s];t=o}else t=o+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each((function(e){r.remove(this._area,this._in(e))}),1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},(o=r.Store("local",function(){try{return localStorage}catch{}}())).local=o,o._=r,o.area("session",function(){try{return sessionStorage}catch{}}()),o.area("page",r.storage("page")),"function"==typeof n&&void 0!==n.amd?n("store2",[],(function(){return o})):e.exports?e.exports=o:(t.store&&(r.conflict=t.store),t.store=o)}(po)),po.exports);const _o="https://test.ihotel.cn",go=K(ho).namespace("i18n"),yo="eyJhbGciOiJIUzUxMiJ9.eyJkZXZpY2VUeXBlIjoiQ09NUFVURVIiLCJtYWluQXBwQ29kZSI6IlNTTyIsIm9yZ0NvZGUiOiJHQ0JaRyIsInVjU2VydmVyVXJsIjoiaHR0cHM6Ly90ZXN0Lmlob3RlbC5jbi91Yy13ZWIvIiwiYXBwQ29kZSI6IlNTTyIsInVzZXJUeXBlIjoiTk9STUFMIiwibG9naW5BdCI6MTczODczNTczOTAwMCwicHJpbmNpcGFsVXNlckNvZGUiOiJHQ0JaR19BRE1JTiIsImV4cCI6MzI1MDM2NTEyMDAsInVzZXJDb2RlIjoiR0NCWkdfQURNSU4iLCJzc28iOiJTU09fU0VSVkVSIn0.KQt1YbUdJ7DfqrfXEVYT0Ux-7Zlo2GQBiIoq0rxK0cv1LHqOOMtBkv8kmChM6VavtdnlyXM2GkW6YMvIIHvu0Q",bo=async()=>x.get(_o+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:yo}}),vo=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:r})=>new Promise((async(o,a)=>{const s=_o+"/i18n-web/kv_translate/kv_translates",i=r?s+"?lastPullDate="+r:s,l=await x({url:i,method:"GET",headers:{appCode:e,page:n,language:t}});l&&0==l.result?o(l.retVal):a(l)})),ko=async({appCode:e,language:t="zh-CN"})=>new Promise((async(n,r)=>{const o=go.namespace(e),a={appCode:e,language:t},s=o.get(t);if(s&&s.lastPullDate){const{lastPullDate:r}=s,o=await vo({...a,lastPullDate:r});if(o){const a=O.get(s,"translatesDTOs");if(O.isEmpty(o.translatesDTOs))n(a);else{const s=((e,t)=>(t.forEach((t=>{const n=O.find(e,{key:t.key});n?O.merge(n,t):e.push(t)})),e))(a,o.translatesDTOs),i={lastPullDate:r,translatesDTOs:s};go[e].set(t,i,":"),n(s)}}}else{const e=await vo(a);e&&(o.set(t,e),n(e.translatesDTOs))}})),Co={data:()=>({isModalVisible:!1,searchText:"",languages:[],data:[]}),computed:{firstResult(){return this.data.firstResult/this.data.pageSize+1},columns(){let e=[{title:"关键字",fixed:"left",width:200,key:"dictKey"}];return O.map(this.languages,(t=>{const n=t.code;return e.push({title:t.name,key:n,width:200,render:(e,{row:t,index:r})=>{const o=t[n];return h(g("Input"),{modelValue:o,onOnChange:e=>{this.data.datas[r][n]=e.target.value}},null)}})})),e}},props:{appCode:String,name:String,setLanguage:Function},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal(){this.isModalVisible||(this.isModalVisible=!0,this.init())},findShallowStringDiff(e,t){const{appCode:n,dictKey:r,page:o,unitCode:a}=e,s=[];return O.forIn(e,((e,i)=>{O.isEqual(e,t[i])||s.push({appCode:n,key:r,page:o,unitCode:a,lang:i,value:e})})),s},async saveData({msg:e=""}){const n=O.differenceWith(this.data.datas,this.initialData.datas,O.isEqual);let r=[];for(let e=0;e<n.length;e++){const t=n[e],o=O.find(this.initialData.datas,{dictKey:t.dictKey}),a=this.findShallowStringDiff(t,o);r=O.concat(r,a)}const o=await(async e=>x({url:_o+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{token:yo}}))({appCode:this.appCode,language:this.language,data:r});o&&0===o.result&&(t.success(e||o.msg),this.setLanguage(),this.initialData.datas=O.cloneDeep(this.data.datas))},async saveNoEqual(){O.isEqual(this.initialData,this.data)||this.saveData({msg:"已为您自动保存"})},changePage(e){this.saveNoEqual(),this.search({firstResult:(e-1)*this.data.pageSize})},async search(e){const t={appCode:this.appCode,searchBlur:this.searchText,page:this.name?O.toUpper(this.name):"HOME",commaSeparatedLangs:O.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},n=await(async e=>x({url:_o+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{token:yo}}))(t);n&&(this.initialData=O.cloneDeep(n.retVal),this.data=n.retVal)},async init(){const e=await bo();e&&0==e.result?(this.languages=e.retVal,this.search()):t.error("获取语言失败,出错了")}}},Eo=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},wo={class:"extra"},No={class:"gc_i18n_page"},Lo={style:{display:"flex"}};const Io=Eo(Co,[["render",function(e,t,n,r,o,a){const s=g("Table"),i=g("TabPane"),l=g("Input"),c=g("Tabs"),u=g("Page"),f=g("Button"),d=g("Modal");return b(),y(d,{modelValue:o.isModalVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>o.isModalVisible=e),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:v((()=>[h(c,{type:"card",class:"gc_i18n_tabs"},{extra:v((()=>[k("div",wo,[h(l,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:o.searchText,"onUpdate:modelValue":t[0]||(t[0]=e=>o.searchText=e),clearable:"",onOnEnter:a.search,onOnClear:a.search},null,8,["modelValue","onOnEnter","onOnClear"])])])),default:v((()=>[h(i,{label:"当前页面"},{default:v((()=>[h(s,{border:"",height:550,columns:a.columns,data:o.data.datas},null,8,["columns","data"])])),_:1})])),_:1}),k("div",No,[k("div",Lo,[h(u,{modelValue:a.firstResult,"onUpdate:modelValue":t[1]||(t[1]=e=>a.firstResult=e),total:o.data.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:a.changePage},null,8,["modelValue","total","onOnChange"]),k("div",null,"共 "+C(o.data.totalRows)+" 项数据",1)]),k("div",null,[h(f,{style:{"margin-right":"10px"},onClick:a.closeModal},{default:v((()=>t[3]||(t[3]=[E("关闭")]))),_:1},8,["onClick"]),h(f,{type:"primary",onClick:a.saveData},{default:v((()=>t[4]||(t[4]=[E("保存")]))),_:1},8,["onClick"])])])])),_:1},8,["modelValue"])}]]),Oo={name:"LangChange",data:()=>({languages:[],language:""}),props:{more:{type:Boolean,default:!1}},async mounted(){this.language=navigator.language||"zh-CN";const e=await bo();e&&0===e.result&&(this.languages=e.retVal)}},xo={key:0};const To=Eo(Oo,[["render",function(e,t,n,r,o,a){const s=g("Option"),i=g("Select");return b(),w("div",null,[n.more?(b(),w("div",xo,t[1]||(t[1]=[k("span",null,"切换语种",-1)]))):(b(),y(i,{key:1,modelValue:o.language,"onUpdate:modelValue":t[0]||(t[0]=e=>o.language=e)},{default:v((()=>[h(s,{value:"zh-CN"},{default:v((()=>t[2]||(t[2]=[E("中文")]))),_:1})])),_:1},8,["modelValue"]))])}]]);t.config({duration:3}),x.defaults.timeout=6e4,x.interceptors.request.use((e=>{const t=localStorage.getItem("token");return I.isEmpty(t)||(e.headers.Authorization=t),e.headers["Content-Type"]="application/json",e}),(e=>(t.error({content:"请求超时!"}),Promise.resolve(e)))),x.interceptors.response.use((e=>{const{nomsg:n}=e.config.headers;return e.status&&200!=e.status?n||t.error({content:e.data.message||"未知错误"}):e.data.success=!0,e.data}),(e=>(e.response?504==e.response.status||404==e.response.status?t.error({content:"服务器被吃了⊙﹏⊙∥"}):403==e.response.status?t.error({content:"权限不足,请联系管理员!"}):t.error({content:`${e.response.status}:${e.response.statusText||e.response.error}`}):"ECONNABORTED"===e.code&&-1!==e.message.indexOf("timeout")?t.error({content:"请求超时!"}):t.error({content:e.message||"未知错误!"}),Promise.resolve(e))));class Ko{constructor(e={}){const{router:t}=e;this.appCode=e.appCode,this.router=t,this.locale=navigator.language||"zh-CN",this.modalLoad=!1,this.messages=e.messages||{},this.i18n=ao({locale:"zh-CN",globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...e});const n=this.i18n.global.t;this.i18n.global.t=e=>{var r,o;const a=null==(o=null==(r=null==t?void 0:t.currentRoute)?void 0:r.value)?void 0:o.name,s=n(e);if(s===e&&a){return n(`${a}.${e}`)}return s},this.i18n.global.changeLocal=e=>{this.setLanguage(e||this.locale)},t.afterEach(((e,t)=>{const{language:n}=e.query;this.setLanguage(n),N((()=>{this.configInstance?this.configInstance.closeModal():this.createModal(e.name)}))}))}async setLanguage(e="zh-CN"){this.locale=e;const t=await ko({appCode:this.appCode,language:e});if(t){const n=(e=>{const t={};for(const n of e)t[n.key]=n.value;return t})(t);this.i18n.global.setLocaleMessage(e,O.assign({},O.get(this.messages,e),n))}this.i18n.global.locale.value=e}createModal(t){this.modalLoad=!0,this.configInstance=L(Io,{appCode:this.appCode,setLanguage:this.setLanguage.bind(this),name:t}).use(e).mount(document.createElement("div")),S.bind("shift > t",(e=>{this.configInstance.openModal()}))}install(t,{router:n}){t.use(this.i18n),t.use(e),t.component("LangChange",To)}}export{Ko as default};
4040
+ * Copyright (c) 2024 Nathan Bubna; Licensed MIT */
4041
+ var Pt = ft.exports, Jn;
4042
+ function Di() {
4043
+ return Jn || (Jn = 1, function(e) {
4044
+ (function(t, n) {
4045
+ var r = {
4046
+ version: "2.14.4",
4047
+ areas: {},
4048
+ apis: {},
4049
+ nsdelim: ".",
4050
+ // utilities
4051
+ inherit: function(s, i) {
4052
+ for (var c in s)
4053
+ i.hasOwnProperty(c) || Object.defineProperty(i, c, Object.getOwnPropertyDescriptor(s, c));
4054
+ return i;
4055
+ },
4056
+ stringify: function(s, i) {
4057
+ return s === void 0 || typeof s == "function" ? s + "" : JSON.stringify(s, i || r.replace);
4058
+ },
4059
+ parse: function(s, i) {
4060
+ try {
4061
+ return JSON.parse(s, i || r.revive);
4062
+ } catch {
4063
+ return s;
4064
+ }
4065
+ },
4066
+ // extension hooks
4067
+ fn: function(s, i) {
4068
+ r.storeAPI[s] = i;
4069
+ for (var c in r.apis)
4070
+ r.apis[c][s] = i;
4071
+ },
4072
+ get: function(s, i) {
4073
+ return s.getItem(i);
4074
+ },
4075
+ set: function(s, i, c) {
4076
+ s.setItem(i, c);
4077
+ },
4078
+ remove: function(s, i) {
4079
+ s.removeItem(i);
4080
+ },
4081
+ key: function(s, i) {
4082
+ return s.key(i);
4083
+ },
4084
+ length: function(s) {
4085
+ return s.length;
4086
+ },
4087
+ clear: function(s) {
4088
+ s.clear();
4089
+ },
4090
+ // core functions
4091
+ Store: function(s, i, c) {
4092
+ var f = r.inherit(r.storeAPI, function(v, N, y) {
4093
+ return arguments.length === 0 ? f.getAll() : typeof N == "function" ? f.transact(v, N, y) : N !== void 0 ? f.set(v, N, y) : typeof v == "string" || typeof v == "number" ? f.get(v) : typeof v == "function" ? f.each(v) : v ? f.setAll(v, N) : f.clear();
4094
+ });
4095
+ f._id = s;
4096
+ try {
4097
+ var p = "__store2_test";
4098
+ i.setItem(p, "ok"), f._area = i, i.removeItem(p);
4099
+ } catch {
4100
+ f._area = r.storage("fake");
4101
+ }
4102
+ return f._ns = c || "", r.areas[s] || (r.areas[s] = f._area), r.apis[f._ns + f._id] || (r.apis[f._ns + f._id] = f), f;
4103
+ },
4104
+ storeAPI: {
4105
+ // admin functions
4106
+ area: function(s, i) {
4107
+ var c = this[s];
4108
+ return (!c || !c.area) && (c = r.Store(s, i, this._ns), this[s] || (this[s] = c)), c;
4109
+ },
4110
+ namespace: function(s, i, c) {
4111
+ if (c = c || this._delim || r.nsdelim, !s)
4112
+ return this._ns ? this._ns.substring(0, this._ns.length - c.length) : "";
4113
+ var f = s, p = this[f];
4114
+ if ((!p || !p.namespace) && (p = r.Store(this._id, this._area, this._ns + f + c), p._delim = c, this[f] || (this[f] = p), !i))
4115
+ for (var v in r.areas)
4116
+ p.area(v, r.areas[v]);
4117
+ return p;
4118
+ },
4119
+ isFake: function(s) {
4120
+ return s ? (this._real = this._area, this._area = r.storage("fake")) : s === !1 && (this._area = this._real || this._area), this._area.name === "fake";
4121
+ },
4122
+ toString: function() {
4123
+ return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]";
4124
+ },
4125
+ // storage functions
4126
+ has: function(s) {
4127
+ return this._area.has ? this._area.has(this._in(s)) : this._in(s) in this._area;
4128
+ },
4129
+ size: function() {
4130
+ return this.keys().length;
4131
+ },
4132
+ each: function(s, i) {
4133
+ for (var c = 0, f = r.length(this._area); c < f; c++) {
4134
+ var p = this._out(r.key(this._area, c));
4135
+ if (p !== void 0 && s.call(this, p, this.get(p), i) === !1)
4136
+ break;
4137
+ f > r.length(this._area) && (f--, c--);
4138
+ }
4139
+ return i || this;
4140
+ },
4141
+ keys: function(s) {
4142
+ return this.each(function(i, c, f) {
4143
+ f.push(i);
4144
+ }, s || []);
4145
+ },
4146
+ get: function(s, i) {
4147
+ var c = r.get(this._area, this._in(s)), f;
4148
+ return typeof i == "function" && (f = i, i = null), c !== null ? r.parse(c, f) : i ?? c;
4149
+ },
4150
+ getAll: function(s) {
4151
+ return this.each(function(i, c, f) {
4152
+ f[i] = c;
4153
+ }, s || {});
4154
+ },
4155
+ transact: function(s, i, c) {
4156
+ var f = this.get(s, c), p = i(f);
4157
+ return this.set(s, p === void 0 ? f : p), this;
4158
+ },
4159
+ set: function(s, i, c) {
4160
+ var f = this.get(s), p;
4161
+ return f != null && c === !1 ? i : (typeof c == "function" && (p = c, c = void 0), r.set(this._area, this._in(s), r.stringify(i, p), c) || f);
4162
+ },
4163
+ setAll: function(s, i) {
4164
+ var c, f;
4165
+ for (var p in s)
4166
+ f = s[p], this.set(p, f, i) !== f && (c = !0);
4167
+ return c;
4168
+ },
4169
+ add: function(s, i, c) {
4170
+ var f = this.get(s);
4171
+ if (f instanceof Array)
4172
+ i = f.concat(i);
4173
+ else if (f !== null) {
4174
+ var p = typeof f;
4175
+ if (p === typeof i && p === "object") {
4176
+ for (var v in i)
4177
+ f[v] = i[v];
4178
+ i = f;
4179
+ } else
4180
+ i = f + i;
4181
+ }
4182
+ return r.set(this._area, this._in(s), r.stringify(i, c)), i;
4183
+ },
4184
+ remove: function(s, i) {
4185
+ var c = this.get(s, i);
4186
+ return r.remove(this._area, this._in(s)), c;
4187
+ },
4188
+ clear: function() {
4189
+ return this._ns ? this.each(function(s) {
4190
+ r.remove(this._area, this._in(s));
4191
+ }, 1) : r.clear(this._area), this;
4192
+ },
4193
+ clearAll: function() {
4194
+ var s = this._area;
4195
+ for (var i in r.areas)
4196
+ r.areas.hasOwnProperty(i) && (this._area = r.areas[i], this.clear());
4197
+ return this._area = s, this;
4198
+ },
4199
+ // internal use functions
4200
+ _in: function(s) {
4201
+ return typeof s != "string" && (s = r.stringify(s)), this._ns ? this._ns + s : s;
4202
+ },
4203
+ _out: function(s) {
4204
+ return this._ns ? s && s.indexOf(this._ns) === 0 ? s.substring(this._ns.length) : void 0 : (
4205
+ // so each() knows to skip it
4206
+ s
4207
+ );
4208
+ }
4209
+ },
4210
+ // end _.storeAPI
4211
+ storage: function(s) {
4212
+ return r.inherit(r.storageAPI, { items: {}, name: s });
4213
+ },
4214
+ storageAPI: {
4215
+ length: 0,
4216
+ has: function(s) {
4217
+ return this.items.hasOwnProperty(s);
4218
+ },
4219
+ key: function(s) {
4220
+ var i = 0;
4221
+ for (var c in this.items)
4222
+ if (this.has(c) && s === i++)
4223
+ return c;
4224
+ },
4225
+ setItem: function(s, i) {
4226
+ this.has(s) || this.length++, this.items[s] = i;
4227
+ },
4228
+ removeItem: function(s) {
4229
+ this.has(s) && (delete this.items[s], this.length--);
4230
+ },
4231
+ getItem: function(s) {
4232
+ return this.has(s) ? this.items[s] : null;
4233
+ },
4234
+ clear: function() {
4235
+ for (var s in this.items)
4236
+ this.removeItem(s);
4237
+ }
4238
+ }
4239
+ // end _.storageAPI
4240
+ }, a = (
4241
+ // safely set this up (throws error in IE10/32bit mode for local files)
4242
+ r.Store("local", function() {
4243
+ try {
4244
+ return localStorage;
4245
+ } catch {
4246
+ }
4247
+ }())
4248
+ );
4249
+ a.local = a, a._ = r, a.area("session", function() {
4250
+ try {
4251
+ return sessionStorage;
4252
+ } catch {
4253
+ }
4254
+ }()), a.area("page", r.storage("page")), typeof n == "function" && n.amd !== void 0 ? n("store2", [], function() {
4255
+ return a;
4256
+ }) : e.exports ? e.exports = a : (t.store && (r.conflict = t.store), t.store = a);
4257
+ })(Pt, Pt && Pt.define);
4258
+ }(ft)), ft.exports;
4259
+ }
4260
+ var Pi = Di();
4261
+ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4262
+ const t = {};
4263
+ for (const n of e)
4264
+ t[n.key] = n.value;
4265
+ return t;
4266
+ }, Mi = (e, t) => (t.forEach((n) => {
4267
+ const r = X.find(e, { key: n.key });
4268
+ r ? X.merge(r, n) : e.push(n);
4269
+ }), e), pt = "https://test.ihotel.cn", Cr = async (e) => Re.get(pt + "/i18n-web/sysoption/getsupportedlangs", {
4270
+ headers: {
4271
+ Authorization: e
4272
+ }
4273
+ }), Qn = async ({
4274
+ appCode: e,
4275
+ language: t = "zh-CN",
4276
+ page: n,
4277
+ lastPullDate: r,
4278
+ token: a
4279
+ }) => new Promise(async (s, i) => {
4280
+ const c = pt + "/i18n-web/kv_translate/kv_translates", f = r ? c + "?lastPullDate=" + r : c, p = await Re({
4281
+ url: f,
4282
+ method: "GET",
4283
+ headers: {
4284
+ appCode: e,
4285
+ page: n,
4286
+ language: t,
4287
+ Authorization: a
4288
+ }
4289
+ });
4290
+ p && p.result == 0 ? s(p.retVal) : i(p);
4291
+ }), wi = async (e, t) => Re({
4292
+ url: pt + "/i18n-web/kv_translate/kv_translates",
4293
+ method: "POST",
4294
+ data: e,
4295
+ headers: { token: t }
4296
+ }), Fi = async (e, t) => Re({
4297
+ url: pt + "/i18n-web/kv_translate/batch",
4298
+ method: "POST",
4299
+ data: e,
4300
+ headers: { token: t }
4301
+ }), Ki = async ({ appCode: e, language: t = "zh-CN", token: n }) => new Promise(async (r, a) => {
4302
+ const s = jt.namespace(`i18n_${e}`), i = {
4303
+ appCode: e,
4304
+ language: t,
4305
+ token: n
4306
+ }, c = s.get(t);
4307
+ if (!c || !c.lastPullDate) {
4308
+ const f = await Qn(i);
4309
+ f && (s.set(t, f), r(f.translatesDTOs));
4310
+ } else {
4311
+ const { lastPullDate: f } = c, p = await Qn({
4312
+ ...i,
4313
+ lastPullDate: f
4314
+ });
4315
+ if (p) {
4316
+ const v = X.get(c, "translatesDTOs");
4317
+ if (X.isEmpty(p.translatesDTOs))
4318
+ r(v);
4319
+ else {
4320
+ const N = Mi(v, p.translatesDTOs), y = { lastPullDate: f, translatesDTOs: N };
4321
+ jt.namespace(`i18n_${e}`).set(t, y, ":"), r(N);
4322
+ }
4323
+ }
4324
+ }
4325
+ }), Ui = {
4326
+ data() {
4327
+ return {
4328
+ isModalVisible: !1,
4329
+ searchText: "",
4330
+ languages: [],
4331
+ data: []
4332
+ };
4333
+ },
4334
+ computed: {
4335
+ firstResult() {
4336
+ return this.data.firstResult / this.data.pageSize + 1;
4337
+ },
4338
+ columns() {
4339
+ let e = [{
4340
+ title: "关键字",
4341
+ fixed: "left",
4342
+ width: 200,
4343
+ key: "dictKey"
4344
+ }];
4345
+ return X.map(this.languages, (t) => {
4346
+ const n = t.code;
4347
+ return e.push({
4348
+ title: t.name,
4349
+ key: n,
4350
+ width: 200,
4351
+ render: (r, {
4352
+ row: a,
4353
+ index: s
4354
+ }) => {
4355
+ const i = a[n];
4356
+ return ue(fe("Input"), {
4357
+ modelValue: i,
4358
+ onOnChange: (c) => {
4359
+ this.data.datas[s][n] = c.target.value;
4360
+ }
4361
+ }, null);
4362
+ }
4363
+ });
4364
+ }), e;
4365
+ }
4366
+ },
4367
+ props: {
4368
+ appCode: String,
4369
+ name: String,
4370
+ setLanguage: Function,
4371
+ token: String
4372
+ },
4373
+ methods: {
4374
+ closeModal() {
4375
+ this.searchText = "", this.isModalVisible = !1;
4376
+ },
4377
+ openModal() {
4378
+ this.isModalVisible || (this.isModalVisible = !0, this.init());
4379
+ },
4380
+ findShallowStringDiff(e, t) {
4381
+ const {
4382
+ appCode: n,
4383
+ dictKey: r,
4384
+ page: a,
4385
+ unitCode: s
4386
+ } = e, i = [];
4387
+ return X.forIn(e, (c, f) => {
4388
+ X.isEqual(c, t[f]) || i.push({
4389
+ appCode: n,
4390
+ key: r,
4391
+ page: a,
4392
+ unitCode: s,
4393
+ lang: f,
4394
+ value: c
4395
+ });
4396
+ }), i;
4397
+ },
4398
+ async saveData({
4399
+ msg: e = ""
4400
+ }) {
4401
+ const t = X.differenceWith(this.data.datas, this.initialData.datas, X.isEqual);
4402
+ let n = [];
4403
+ for (let a = 0; a < t.length; a++) {
4404
+ const s = t[a], i = X.find(this.initialData.datas, {
4405
+ dictKey: s.dictKey
4406
+ }), c = this.findShallowStringDiff(s, i);
4407
+ n = X.concat(n, c);
4408
+ }
4409
+ const r = await Fi({
4410
+ appCode: this.appCode,
4411
+ language: this.language,
4412
+ data: n
4413
+ }, this.token);
4414
+ r && r.result === 0 && (_e.success(e || r.msg), this.setLanguage(), this.initialData.datas = X.cloneDeep(this.data.datas));
4415
+ },
4416
+ async saveNoEqual() {
4417
+ X.isEqual(this.initialData, this.data) || this.saveData({
4418
+ msg: "已为您自动保存"
4419
+ });
4420
+ },
4421
+ changePage(e) {
4422
+ this.saveNoEqual(), this.search({
4423
+ firstResult: (e - 1) * this.data.pageSize
4424
+ });
4425
+ },
4426
+ async search(e) {
4427
+ const t = {
4428
+ appCode: this.appCode,
4429
+ searchBlur: this.searchText,
4430
+ page: this.name ? X.toUpper(this.name) : "HOME",
4431
+ commaSeparatedLangs: X.map(this.languages, "code").toString(),
4432
+ firstResult: 0,
4433
+ pageSize: 10,
4434
+ ...e
4435
+ }, n = await wi(t, this.token);
4436
+ n && (this.initialData = X.cloneDeep(n.retVal), this.data = n.retVal);
4437
+ },
4438
+ async init() {
4439
+ const e = await Cr(this.token);
4440
+ e && e.result == 0 ? (this.languages = e.retVal, this.search()) : _e.error("获取语言失败,出错了");
4441
+ }
4442
+ }
4443
+ }, Ir = (e, t) => {
4444
+ const n = e.__vccOpts || e;
4445
+ for (const [r, a] of t)
4446
+ n[r] = a;
4447
+ return n;
4448
+ }, Vi = { class: "extra" }, xi = { class: "gc_i18n_page" }, $i = { style: { display: "flex" } };
4449
+ function Wi(e, t, n, r, a, s) {
4450
+ const i = fe("Table"), c = fe("TabPane"), f = fe("Input"), p = fe("Tabs"), v = fe("Page"), N = fe("Button"), y = fe("Modal");
4451
+ return lt(), er(y, {
4452
+ modelValue: a.isModalVisible,
4453
+ "onUpdate:modelValue": t[2] || (t[2] = (C) => a.isModalVisible = C),
4454
+ "mask-closable": !1,
4455
+ width: 70,
4456
+ title: "多语言管理中心",
4457
+ "footer-hide": ""
4458
+ }, {
4459
+ default: ve(() => [
4460
+ ue(p, {
4461
+ type: "card",
4462
+ class: "gc_i18n_tabs"
4463
+ }, {
4464
+ extra: ve(() => [
4465
+ Ke("div", Vi, [
4466
+ ue(f, {
4467
+ prefix: "ios-search",
4468
+ placeholder: "请输入搜索内容",
4469
+ modelValue: a.searchText,
4470
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => a.searchText = C),
4471
+ clearable: "",
4472
+ onOnEnter: s.search,
4473
+ onOnClear: s.search
4474
+ }, null, 8, ["modelValue", "onOnEnter", "onOnClear"])
4475
+ ])
4476
+ ]),
4477
+ default: ve(() => [
4478
+ ue(c, { label: "当前页面" }, {
4479
+ default: ve(() => [
4480
+ ue(i, {
4481
+ border: "",
4482
+ height: 550,
4483
+ columns: s.columns,
4484
+ data: a.data.datas
4485
+ }, null, 8, ["columns", "data"])
4486
+ ]),
4487
+ _: 1
4488
+ })
4489
+ ]),
4490
+ _: 1
4491
+ }),
4492
+ Ke("div", xi, [
4493
+ Ke("div", $i, [
4494
+ ue(v, {
4495
+ modelValue: s.firstResult,
4496
+ "onUpdate:modelValue": t[1] || (t[1] = (C) => s.firstResult = C),
4497
+ total: a.data.totalRows,
4498
+ "page-size": 10,
4499
+ simple: "",
4500
+ "show-total": "",
4501
+ onOnChange: s.changePage
4502
+ }, null, 8, ["modelValue", "total", "onOnChange"]),
4503
+ Ke("div", null, "共 " + Kr(a.data.totalRows) + " 项数据", 1)
4504
+ ]),
4505
+ Ke("div", null, [
4506
+ ue(N, {
4507
+ style: { "margin-right": "10px" },
4508
+ onClick: s.closeModal
4509
+ }, {
4510
+ default: ve(() => t[3] || (t[3] = [
4511
+ Mt("关闭")
4512
+ ])),
4513
+ _: 1
4514
+ }, 8, ["onClick"]),
4515
+ ue(N, {
4516
+ type: "primary",
4517
+ onClick: s.saveData
4518
+ }, {
4519
+ default: ve(() => t[4] || (t[4] = [
4520
+ Mt("保存")
4521
+ ])),
4522
+ _: 1
4523
+ }, 8, ["onClick"])
4524
+ ])
4525
+ ])
4526
+ ]),
4527
+ _: 1
4528
+ }, 8, ["modelValue"]);
4529
+ }
4530
+ const Gi = /* @__PURE__ */ Ir(Ui, [["render", Wi]]), Bi = {
4531
+ name: "LangChange",
4532
+ data() {
4533
+ return {
4534
+ languages: [],
4535
+ language: ""
4536
+ };
4537
+ },
4538
+ props: {
4539
+ more: {
4540
+ type: Boolean,
4541
+ default: !1
4542
+ }
4543
+ },
4544
+ async mounted() {
4545
+ this.language = navigator.language || "zh-CN";
4546
+ const e = await Cr();
4547
+ e && e.result === 0 && (this.languages = e.retVal);
4548
+ }
4549
+ }, Yi = { key: 0 };
4550
+ function Hi(e, t, n, r, a, s) {
4551
+ const i = fe("Option"), c = fe("Select");
4552
+ return lt(), _n("div", null, [
4553
+ n.more ? (lt(), _n("div", Yi, t[1] || (t[1] = [
4554
+ Ke("span", null, "切换语种", -1)
4555
+ ]))) : (lt(), er(c, {
4556
+ key: 1,
4557
+ modelValue: a.language,
4558
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => a.language = f)
4559
+ }, {
4560
+ default: ve(() => [
4561
+ ue(i, { value: "zh-CN" }, {
4562
+ default: ve(() => t[2] || (t[2] = [
4563
+ Mt("中文")
4564
+ ])),
4565
+ _: 1
4566
+ })
4567
+ ]),
4568
+ _: 1
4569
+ }, 8, ["modelValue"]))
4570
+ ]);
4571
+ }
4572
+ const ji = /* @__PURE__ */ Ir(Bi, [["render", Hi]]);
4573
+ _e.config({
4574
+ duration: 3
4575
+ });
4576
+ Re.defaults.timeout = 6e4;
4577
+ Re.interceptors.request.use(
4578
+ (e) => (e.headers["Content-Type"] = "application/json", e),
4579
+ (e) => (_e.error({
4580
+ content: "请求超时!"
4581
+ }), Promise.resolve(e))
4582
+ );
4583
+ Re.interceptors.response.use(
4584
+ (e) => {
4585
+ const { nomsg: t } = e.config.headers;
4586
+ return e.status && e.status != 200 ? t || _e.error({
4587
+ content: e.data.message || "未知错误"
4588
+ }) : e.data.success = !0, e.data;
4589
+ },
4590
+ (e) => (e.response ? e.response.status == 504 || e.response.status == 404 ? _e.error({ content: "服务器被吃了⊙﹏⊙∥" }) : e.response.status == 403 ? _e.error({ content: "权限不足,请联系管理员!" }) : _e.error({
4591
+ content: `${e.response.status}:${e.response.statusText || e.response.error}`
4592
+ }) : e.code === "ECONNABORTED" && e.message.indexOf("timeout") !== -1 ? _e.error({
4593
+ content: "请求超时!"
4594
+ }) : _e.error({ content: e.message || "未知错误!" }), Promise.resolve(e))
4595
+ );
4596
+ class Zi {
4597
+ constructor(t = {}) {
4598
+ const { router: n, appCode: r, messages: a, token: s } = t;
4599
+ this.token = s || jt.get("token"), this.appCode = r, this.router = n, this.locale = navigator.language || "zh-CN", this.modalLoad = !1, this.messages = a || {}, this.i18n = vi({
4600
+ locale: "zh-CN",
4601
+ globalInjection: !0,
4602
+ legacy: !1,
4603
+ silentTranslationWarn: !0,
4604
+ // 屏蔽翻译未找到的警告
4605
+ silentFallbackWarn: !0,
4606
+ // 屏蔽回退语言的警告
4607
+ missingWarn: !1,
4608
+ // 屏蔽缺失翻译的警告
4609
+ fallbackWarn: !1,
4610
+ // 屏蔽回退过程中的警告
4611
+ ...t
4612
+ });
4613
+ const i = this.i18n.global.t;
4614
+ this.i18n.global.t = (c, f) => {
4615
+ var N, y;
4616
+ const p = X.toUpper((y = (N = n == null ? void 0 : n.currentRoute) == null ? void 0 : N.value) == null ? void 0 : y.name), v = i(c);
4617
+ if (v === c && p) {
4618
+ const C = `${p}.${c}`, D = i(C);
4619
+ return D !== C ? D : f && X.has(f, "comment") ? X.get(f, "comment") : c;
4620
+ }
4621
+ return v;
4622
+ }, this.i18n.global.changeLocal = (c) => {
4623
+ this.setLanguage(c || this.locale);
4624
+ }, n.afterEach((c, f) => {
4625
+ const { language: p, token: v } = c.query;
4626
+ v && this.setToken(v), this.setLanguage(p), Ur(() => {
4627
+ this.configInstance ? this.configInstance.closeModal() : this.createModal(c.name);
4628
+ });
4629
+ });
4630
+ }
4631
+ setToken(t) {
4632
+ this.token = t;
4633
+ }
4634
+ async setLanguage(t = "zh-CN") {
4635
+ this.locale = t;
4636
+ const n = await Ki({
4637
+ appCode: this.appCode,
4638
+ language: t,
4639
+ token: this.token
4640
+ });
4641
+ if (n) {
4642
+ const r = Ri(n);
4643
+ this.i18n.global.setLocaleMessage(
4644
+ t,
4645
+ X.assign({}, X.get(this.messages, t), r)
4646
+ );
4647
+ }
4648
+ this.i18n.global.locale.value = t;
4649
+ }
4650
+ createModal(t) {
4651
+ this.modalLoad = !0, this.configInstance = Vr(Gi, {
4652
+ appCode: this.appCode,
4653
+ token: this.token,
4654
+ setLanguage: this.setLanguage.bind(this),
4655
+ name: t
4656
+ }).use(fn).mount(document.createElement("div")), Gr.bind("shift > t", (n) => {
4657
+ this.configInstance.openModal();
4658
+ });
4659
+ }
4660
+ install(t, { router: n }) {
4661
+ t.use(this.i18n), t.use(fn), t.component("LangChange", ji);
4662
+ }
4663
+ }
4664
+ export {
4665
+ Zi as default
4666
+ };