gc_i18n 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gc_i18n.js CHANGED
@@ -1,24 +1,4661 @@
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 Sr, ref as Dr, shallowRef as Pr, computed as Xe, watch as Rt, isRef as Rr, defineComponent as Xt, getCurrentInstance as Je, h as zn, Fragment as er, inject as Mr, onMounted as wr, onUnmounted as Fr, createVNode as ue, Text as Ur, resolveComponent as fe, createBlock as tr, openBlock as lt, withCtx as ve, createElementVNode as Ue, toDisplayString as Kr, createTextVNode as Mt, createElementBlock as _n, nextTick as Vr, createApp as xr } from "vue";
4
+ import * as $r from "lodash-es";
5
+ import j from "lodash-es";
6
+ import Re from "axios";
7
+ var dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
+ function nr(e) {
9
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
+ }
11
+ var ct = { exports: {} }, Wr = ct.exports, mn;
12
+ function Gr() {
13
+ return mn || (mn = 1, function(e, t) {
14
+ (function(n, r) {
15
+ e.exports = r();
16
+ })(Wr, function() {
17
+ function n(o) {
18
+ "@babel/helpers - typeof";
19
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(m) {
20
+ return typeof m;
21
+ } : n = function(m) {
22
+ return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
23
+ }, n(o);
24
+ }
25
+ function r(o, m) {
26
+ if (!(o instanceof m))
27
+ throw new TypeError("Cannot call a class as a function");
28
+ }
29
+ function a(o, m) {
30
+ for (var l = 0; l < m.length; l++) {
31
+ var u = m[l];
32
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(o, u.key, u);
33
+ }
34
+ }
35
+ function s(o, m, l) {
36
+ return m && a(o.prototype, m), o;
37
+ }
38
+ function i(o) {
39
+ return c(o) || f(o) || p(o) || N();
40
+ }
41
+ function c(o) {
42
+ if (Array.isArray(o)) return v(o);
43
+ }
44
+ function f(o) {
45
+ if (typeof Symbol < "u" && Symbol.iterator in Object(o)) return Array.from(o);
46
+ }
47
+ function p(o, m) {
48
+ if (o) {
49
+ if (typeof o == "string") return v(o, m);
50
+ var l = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (l === "Object" && o.constructor && (l = o.constructor.name), l === "Map" || l === "Set") return Array.from(o);
52
+ if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return v(o, m);
53
+ }
54
+ }
55
+ function v(o, m) {
56
+ (m == null || m > o.length) && (m = o.length);
57
+ for (var l = 0, u = new Array(m); l < m; l++) u[l] = o[l];
58
+ return u;
59
+ }
60
+ function N() {
61
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
63
+ }
64
+ var y = /* @__PURE__ */ function() {
65
+ function o(m) {
66
+ r(this, o), this.sourceStr = m, this.subCombos = o.parseComboStr(m), this.keyNames = this.subCombos.reduce(function(l, u) {
67
+ return l.concat(u);
68
+ }, []);
69
+ }
70
+ return s(o, [{
71
+ key: "check",
72
+ value: function(l) {
73
+ for (var u = 0, d = 0; d < this.subCombos.length; d += 1)
74
+ if (u = this._checkSubCombo(this.subCombos[d], u, l), u === -1)
75
+ return !1;
76
+ return !0;
77
+ }
78
+ }, {
79
+ key: "isEqual",
80
+ value: function(l) {
81
+ if (!l || typeof l != "string" && n(l) !== "object" || (typeof l == "string" && (l = new o(l)), this.subCombos.length !== l.subCombos.length))
82
+ return !1;
83
+ for (var u = 0; u < this.subCombos.length; u += 1)
84
+ if (this.subCombos[u].length !== l.subCombos[u].length)
85
+ return !1;
86
+ for (var d = 0; d < this.subCombos.length; d += 1) {
87
+ for (var E = this.subCombos[d], g = l.subCombos[d].slice(0), O = 0; O < E.length; O += 1) {
88
+ var P = E[O], M = g.indexOf(P);
89
+ M > -1 && g.splice(M, 1);
90
+ }
91
+ if (g.length !== 0)
92
+ return !1;
93
+ }
94
+ return !0;
95
+ }
96
+ }, {
97
+ key: "_checkSubCombo",
98
+ value: function(l, u, d) {
99
+ l = l.slice(0), d = d.slice(u);
100
+ for (var E = u, g = 0; g < l.length; g += 1) {
101
+ var O = l[g];
102
+ if (O[0] === "\\") {
103
+ var P = O.slice(1);
104
+ (P === o.comboDeliminator || P === o.keyDeliminator) && (O = P);
105
+ }
106
+ var M = d.indexOf(O);
107
+ if (M > -1 && (l.splice(g, 1), g -= 1, M > E && (E = M), l.length === 0))
108
+ return E;
109
+ }
110
+ return -1;
111
+ }
112
+ }]), o;
113
+ }();
114
+ y.comboDeliminator = ">", y.keyDeliminator = "+", y.parseComboStr = function(o) {
115
+ for (var m = y._splitStr(o, y.comboDeliminator), l = [], u = 0; u < m.length; u += 1)
116
+ l.push(y._splitStr(m[u], y.keyDeliminator));
117
+ return l;
118
+ }, y._splitStr = function(o, m) {
119
+ for (var l = o, u = m, d = "", E = [], g = 0; g < l.length; g += 1)
120
+ g > 0 && l[g] === u && l[g - 1] !== "\\" && (E.push(d.trim()), d = "", g += 1), d += l[g];
121
+ return d && E.push(d.trim()), E;
122
+ };
123
+ var C = /* @__PURE__ */ function() {
124
+ function o(m) {
125
+ r(this, o), this.localeName = m, this.activeTargetKeys = [], this.pressedKeys = [], this._appliedMacros = [], this._keyMap = {}, this._killKeyCodes = [], this._macros = [];
126
+ }
127
+ return s(o, [{
128
+ key: "bindKeyCode",
129
+ value: function(l, u) {
130
+ typeof u == "string" && (u = [u]), this._keyMap[l] = u;
131
+ }
132
+ }, {
133
+ key: "bindMacro",
134
+ value: function(l, u) {
135
+ typeof u == "string" && (u = [u]);
136
+ var d = null;
137
+ typeof u == "function" && (d = u, u = null);
138
+ var E = {
139
+ keyCombo: new y(l),
140
+ keyNames: u,
141
+ handler: d
142
+ };
143
+ this._macros.push(E);
144
+ }
145
+ }, {
146
+ key: "getKeyCodes",
147
+ value: function(l) {
148
+ var u = [];
149
+ for (var d in this._keyMap) {
150
+ var E = this._keyMap[d].indexOf(l);
151
+ E > -1 && u.push(d | 0);
152
+ }
153
+ return u;
154
+ }
155
+ }, {
156
+ key: "getKeyNames",
157
+ value: function(l) {
158
+ return this._keyMap[l] || [];
159
+ }
160
+ }, {
161
+ key: "setKillKey",
162
+ value: function(l) {
163
+ if (typeof l == "string") {
164
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
165
+ this.setKillKey(u[d]);
166
+ return;
167
+ }
168
+ this._killKeyCodes.push(l);
169
+ }
170
+ }, {
171
+ key: "pressKey",
172
+ value: function(l) {
173
+ if (typeof l == "string") {
174
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
175
+ this.pressKey(u[d]);
176
+ return;
177
+ }
178
+ this.activeTargetKeys.length = 0;
179
+ for (var E = this.getKeyNames(l), g = 0; g < E.length; g += 1)
180
+ this.activeTargetKeys.push(E[g]), this.pressedKeys.indexOf(E[g]) === -1 && this.pressedKeys.push(E[g]);
181
+ this._applyMacros();
182
+ }
183
+ }, {
184
+ key: "releaseKey",
185
+ value: function(l) {
186
+ if (typeof l == "string")
187
+ for (var u = this.getKeyCodes(l), d = 0; d < u.length; d += 1)
188
+ this.releaseKey(u[d]);
189
+ else {
190
+ var E = this.getKeyNames(l), g = this._killKeyCodes.indexOf(l);
191
+ if (g !== -1)
192
+ this.pressedKeys.length = 0;
193
+ else
194
+ for (var O = 0; O < E.length; O += 1) {
195
+ var P = this.pressedKeys.indexOf(E[O]);
196
+ P > -1 && this.pressedKeys.splice(P, 1);
197
+ }
198
+ this.activeTargetKeys.length = 0, this._clearMacros();
199
+ }
200
+ }
201
+ }, {
202
+ key: "_applyMacros",
203
+ value: function() {
204
+ for (var l = this._macros.slice(0), u = 0; u < l.length; u += 1) {
205
+ var d = l[u];
206
+ if (d.keyCombo.check(this.pressedKeys)) {
207
+ d.handler && (d.keyNames = d.handler(this.pressedKeys));
208
+ for (var E = 0; E < d.keyNames.length; E += 1)
209
+ this.pressedKeys.indexOf(d.keyNames[E]) === -1 && this.pressedKeys.push(d.keyNames[E]);
210
+ this._appliedMacros.push(d);
211
+ }
212
+ }
213
+ }
214
+ }, {
215
+ key: "_clearMacros",
216
+ value: function() {
217
+ for (var l = 0; l < this._appliedMacros.length; l += 1) {
218
+ var u = this._appliedMacros[l];
219
+ if (!u.keyCombo.check(this.pressedKeys)) {
220
+ for (var d = 0; d < u.keyNames.length; d += 1) {
221
+ var E = this.pressedKeys.indexOf(u.keyNames[d]);
222
+ E > -1 && this.pressedKeys.splice(E, 1);
223
+ }
224
+ u.handler && (u.keyNames = null), this._appliedMacros.splice(l, 1), l -= 1;
225
+ }
226
+ }
227
+ }
228
+ }]), o;
229
+ }(), D = /* @__PURE__ */ function() {
230
+ function o(m, l, u, d) {
231
+ 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 = {
232
+ listeners: this._listeners,
233
+ targetWindow: m,
234
+ targetElement: l,
235
+ targetPlatform: u,
236
+ targetUserAgent: d
237
+ }, this.setContext("global");
238
+ }
239
+ return s(o, [{
240
+ key: "setLocale",
241
+ value: function(l, u) {
242
+ var d = null;
243
+ 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;
244
+ }
245
+ }, {
246
+ key: "getLocale",
247
+ value: function(l) {
248
+ return l || (l = this._locale.localeName), this._locales[l] || null;
249
+ }
250
+ }, {
251
+ key: "bind",
252
+ value: function(l, u, d, E) {
253
+ if ((l === null || typeof l == "function") && (E = d, d = u, u = l, l = null), l && n(l) === "object" && typeof l.length == "number") {
254
+ for (var g = 0; g < l.length; g += 1)
255
+ this.bind(l[g], u, d);
256
+ return this;
257
+ }
258
+ return this._listeners.push({
259
+ keyCombo: l ? new y(l) : null,
260
+ pressHandler: u || null,
261
+ releaseHandler: d || null,
262
+ preventRepeat: !1,
263
+ preventRepeatByDefault: E || !1,
264
+ executingHandler: !1
265
+ }), this;
266
+ }
267
+ }, {
268
+ key: "addListener",
269
+ value: function(l, u, d, E) {
270
+ return this.bind(l, u, d, E);
271
+ }
272
+ }, {
273
+ key: "on",
274
+ value: function(l, u, d, E) {
275
+ return this.bind(l, u, d, E);
276
+ }
277
+ }, {
278
+ key: "bindPress",
279
+ value: function(l, u, d) {
280
+ return this.bind(l, u, null, d);
281
+ }
282
+ }, {
283
+ key: "bindRelease",
284
+ value: function(l, u) {
285
+ return this.bind(l, null, u, preventRepeatByDefault);
286
+ }
287
+ }, {
288
+ key: "unbind",
289
+ value: function(l, u, d) {
290
+ if ((l === null || typeof l == "function") && (d = u, u = l, l = null), l && n(l) === "object" && typeof l.length == "number") {
291
+ for (var E = 0; E < l.length; E += 1)
292
+ this.unbind(l[E], u, d);
293
+ return this;
294
+ }
295
+ for (var g = 0; g < this._listeners.length; g += 1) {
296
+ 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;
297
+ P && M && B && (this._listeners.splice(g, 1), g -= 1);
298
+ }
299
+ return this;
300
+ }
301
+ }, {
302
+ key: "removeListener",
303
+ value: function(l, u, d) {
304
+ return this.unbind(l, u, d);
305
+ }
306
+ }, {
307
+ key: "off",
308
+ value: function(l, u, d) {
309
+ return this.unbind(l, u, d);
310
+ }
311
+ }, {
312
+ key: "setContext",
313
+ value: function(l) {
314
+ if (this._locale && this.releaseAllKeys(), !this._contexts[l]) {
315
+ var u = this._contexts.global;
316
+ this._contexts[l] = {
317
+ listeners: [],
318
+ targetWindow: u.targetWindow,
319
+ targetElement: u.targetElement,
320
+ targetPlatform: u.targetPlatform,
321
+ targetUserAgent: u.targetUserAgent
322
+ };
323
+ }
324
+ var d = this._contexts[l];
325
+ return this._currentContext = l, this._listeners = d.listeners, this.stop(), this.watch(d.targetWindow, d.targetElement, d.targetPlatform, d.targetUserAgent), this;
326
+ }
327
+ }, {
328
+ key: "getContext",
329
+ value: function() {
330
+ return this._currentContext;
331
+ }
332
+ }, {
333
+ key: "withContext",
334
+ value: function(l, u) {
335
+ var d = this.getContext();
336
+ return this.setContext(l), u(), this.setContext(d), this;
337
+ }
338
+ }, {
339
+ key: "watch",
340
+ value: function(l, u, d, E) {
341
+ var g = this;
342
+ this.stop();
343
+ var O = typeof globalThis < "u" ? globalThis : typeof dn < "u" ? dn : typeof window < "u" ? window : {};
344
+ if (!l) {
345
+ if (!O.addEventListener && !O.attachEvent) {
346
+ if (this._currentContext === "global")
347
+ return;
348
+ throw new Error("Cannot find window functions addEventListener or attachEvent.");
349
+ }
350
+ l = O;
351
+ }
352
+ if (typeof l.nodeType == "number" && (E = d, d = u, u = l, l = O), !l.addEventListener && !l.attachEvent)
353
+ throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");
354
+ this._isModernBrowser = !!l.addEventListener;
355
+ var P = l.navigator && l.navigator.userAgent || "", M = l.navigator && l.navigator.platform || "";
356
+ u && u !== null || (u = l.document), d && d !== null || (d = M), E && E !== null || (E = P), this._targetKeyDownBinding = function(x) {
357
+ g.pressKey(x.keyCode, x), g._handleCommandBug(x, M);
358
+ }, this._targetKeyUpBinding = function(x) {
359
+ g.releaseKey(x.keyCode, x);
360
+ }, this._targetResetBinding = function(x) {
361
+ g.releaseAllKeys(x);
362
+ }, 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;
363
+ var B = this._contexts[this._currentContext];
364
+ return B.targetWindow = this._targetWindow, B.targetElement = this._targetElement, B.targetPlatform = this._targetPlatform, B.targetUserAgent = this._targetUserAgent, this;
365
+ }
366
+ }, {
367
+ key: "stop",
368
+ value: function() {
369
+ if (!(!this._targetElement || !this._targetWindow))
370
+ 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;
371
+ }
372
+ }, {
373
+ key: "pressKey",
374
+ value: function(l, u) {
375
+ if (this._paused)
376
+ return this;
377
+ if (!this._locale)
378
+ throw new Error("Locale not set");
379
+ return this._locale.pressKey(l), this._applyBindings(u), this;
380
+ }
381
+ }, {
382
+ key: "releaseKey",
383
+ value: function(l, u) {
384
+ if (this._paused)
385
+ return this;
386
+ if (!this._locale)
387
+ throw new Error("Locale not set");
388
+ return this._locale.releaseKey(l), this._clearBindings(u), this;
389
+ }
390
+ }, {
391
+ key: "releaseAllKeys",
392
+ value: function(l) {
393
+ if (this._paused)
394
+ return this;
395
+ if (!this._locale)
396
+ throw new Error("Locale not set");
397
+ return this._locale.pressedKeys.length = 0, this._clearBindings(l), this;
398
+ }
399
+ }, {
400
+ key: "pause",
401
+ value: function() {
402
+ return this._paused ? this : (this._locale && this.releaseAllKeys(), this._paused = !0, this);
403
+ }
404
+ }, {
405
+ key: "resume",
406
+ value: function() {
407
+ return this._paused = !1, this;
408
+ }
409
+ }, {
410
+ key: "reset",
411
+ value: function() {
412
+ return this.releaseAllKeys(), this._listeners.length = 0, this;
413
+ }
414
+ }, {
415
+ key: "_bindEvent",
416
+ value: function(l, u, d) {
417
+ return this._isModernBrowser ? l.addEventListener(u, d, !1) : l.attachEvent("on" + u, d);
418
+ }
419
+ }, {
420
+ key: "_unbindEvent",
421
+ value: function(l, u, d) {
422
+ return this._isModernBrowser ? l.removeEventListener(u, d, !1) : l.detachEvent("on" + u, d);
423
+ }
424
+ }, {
425
+ key: "_getGroupedListeners",
426
+ value: function() {
427
+ var l = [], u = [], d = this._listeners;
428
+ return this._currentContext !== "global" && (d = [].concat(i(d), i(this._contexts.global.listeners))), d.sort(function(E, g) {
429
+ return (g.keyCombo ? g.keyCombo.keyNames.length : 0) - (E.keyCombo ? E.keyCombo.keyNames.length : 0);
430
+ }).forEach(function(E) {
431
+ for (var g = -1, O = 0; O < u.length; O += 1)
432
+ (u[O] === null && E.keyCombo === null || u[O] !== null && u[O].isEqual(E.keyCombo)) && (g = O);
433
+ g === -1 && (g = u.length, u.push(E.keyCombo)), l[g] || (l[g] = []), l[g].push(E);
434
+ }), l;
435
+ }
436
+ }, {
437
+ key: "_applyBindings",
438
+ value: function(l) {
439
+ var u = this, d = !1;
440
+ l || (l = {}), l.preventRepeat = function() {
441
+ d = !0;
442
+ }, l.pressedKeys = this._locale.pressedKeys.slice(0);
443
+ for (var E = this._locale.activeTargetKeys, g = this._locale.pressedKeys.slice(0), O = this._getGroupedListeners(), P = function(x) {
444
+ var oe = O[x], le = oe[0].keyCombo;
445
+ if (le === null || le.check(g) && E.some(function(We) {
446
+ return le.keyNames.includes(We);
447
+ })) {
448
+ for (var Oe = 0; Oe < oe.length; Oe += 1) {
449
+ var ee = oe[Oe];
450
+ !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);
451
+ }
452
+ if (le)
453
+ for (var Ee = 0; Ee < le.keyNames.length; Ee += 1) {
454
+ var Me = g.indexOf(le.keyNames[Ee]);
455
+ Me !== -1 && (g.splice(Me, 1), Ee -= 1);
456
+ }
457
+ }
458
+ }, M = 0; M < O.length; M += 1)
459
+ P(M);
460
+ }
461
+ }, {
462
+ key: "_clearBindings",
463
+ value: function(l) {
464
+ l || (l = {}), l.pressedKeys = this._locale.pressedKeys.slice(0);
465
+ for (var u = 0; u < this._appliedListeners.length; u += 1) {
466
+ var d = this._appliedListeners[u], E = d.keyCombo;
467
+ (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));
468
+ }
469
+ }
470
+ }, {
471
+ key: "_handleCommandBug",
472
+ value: function(l, u) {
473
+ var d = ["shift", "ctrl", "alt", "capslock", "tab", "command"];
474
+ u.match("Mac") && this._locale.pressedKeys.includes("command") && !d.includes(this._locale.getKeyNames(l.keyCode)[0]) && this._targetKeyUpBinding(l);
475
+ }
476
+ }]), o;
477
+ }();
478
+ function A(o, m, l) {
479
+ 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"]);
480
+ for (var u = 65; u <= 90; u += 1) {
481
+ var d = String.fromCharCode(u + 32), E = String.fromCharCode(u);
482
+ o.bindKeyCode(u, d), o.bindMacro("shift + " + d, E), o.bindMacro("capslock + " + d, E);
483
+ }
484
+ var g = l.match("Firefox") ? 59 : 186, O = l.match("Firefox") ? 173 : 189, P = l.match("Firefox") ? 61 : 187, M, B;
485
+ 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");
486
+ }
487
+ var k = new D();
488
+ return k.setLocale("us", A), k.Keyboard = D, k.Locale = C, k.KeyCombo = y, k;
489
+ });
490
+ }(ct)), ct.exports;
491
+ }
492
+ var Br = Gr();
493
+ const Yr = /* @__PURE__ */ nr(Br);
3
494
  /*!
4
495
  * shared v11.1.1
5
496
  * (c) 2025 kazuya kawaguchi
6
497
  * 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]}))}))}}
498
+ */
499
+ const ie = typeof window < "u";
500
+ let re, Se;
501
+ if (process.env.NODE_ENV !== "production") {
502
+ const e = ie && window.performance;
503
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
504
+ e.clearMeasures && (re = (t) => {
505
+ e.mark(t);
506
+ }, Se = (t, n, r) => {
507
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
508
+ });
509
+ }
510
+ const Hr = /\{([0-9a-zA-Z]+)\}/g;
511
+ function dt(e, ...t) {
512
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Hr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
513
+ }
514
+ const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Xr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), q = (e) => typeof e == "number" && isFinite(e), Jr = (e) => jt(e) === "[object Date]", Ve = (e) => jt(e) === "[object RegExp]", mt = (e) => w(e) && Object.keys(e).length === 0, Q = Object.assign, qr = Object.create, $ = (e = null) => qr(e);
515
+ let hn;
516
+ const ke = () => hn || (hn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
517
+ function gn(e) {
518
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
519
+ }
520
+ const Qr = Object.prototype.hasOwnProperty;
521
+ function ae(e, t) {
522
+ return Qr.call(e, t);
523
+ }
524
+ const J = Array.isArray, W = (e) => typeof e == "function", I = (e) => typeof e == "string", U = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Zr = (e) => F(e) && W(e.then) && W(e.catch), rr = Object.prototype.toString, jt = (e) => rr.call(e), w = (e) => jt(e) === "[object Object]", zr = (e) => e == null ? "" : J(e) || w(e) && e.toString === rr ? JSON.stringify(e, null, 2) : String(e);
525
+ function Jt(e, t = "") {
526
+ return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
527
+ }
528
+ const pn = 2;
529
+ function es(e, t = 0, n = e.length) {
530
+ const r = e.split(/\r?\n/);
531
+ let a = 0;
532
+ const s = [];
533
+ for (let i = 0; i < r.length; i++)
534
+ if (a += r[i].length + 1, a >= t) {
535
+ for (let c = i - pn; c <= i + pn || n > a; c++) {
536
+ if (c < 0 || c >= r.length)
537
+ continue;
538
+ const f = c + 1;
539
+ s.push(`${f}${" ".repeat(3 - String(f).length)}| ${r[c]}`);
540
+ const p = r[c].length;
541
+ if (c === i) {
542
+ const v = t - (a - p) + 1, N = Math.max(1, n > a ? p - v : n - t);
543
+ s.push(" | " + " ".repeat(v) + "^".repeat(N));
544
+ } else if (c > i) {
545
+ if (n > a) {
546
+ const v = Math.max(Math.min(n - a, p), 1);
547
+ s.push(" | " + "^".repeat(v));
548
+ }
549
+ a += p + 1;
550
+ }
551
+ }
552
+ break;
553
+ }
554
+ return s.join(`
555
+ `);
556
+ }
557
+ function Ne(e, t) {
558
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
559
+ }
560
+ const En = {};
561
+ function qt(e) {
562
+ En[e] || (En[e] = !0, Ne(e));
563
+ }
564
+ function Qt() {
565
+ const e = /* @__PURE__ */ new Map();
566
+ return {
567
+ events: e,
568
+ on(n, r) {
569
+ const a = e.get(n);
570
+ a && a.push(r) || e.set(n, [r]);
571
+ },
572
+ off(n, r) {
573
+ const a = e.get(n);
574
+ a && a.splice(a.indexOf(r) >>> 0, 1);
575
+ },
576
+ emit(n, r) {
577
+ (e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r));
578
+ }
579
+ };
580
+ }
581
+ const at = (e) => !F(e) || J(e);
582
+ function ut(e, t) {
583
+ if (at(e) || at(t))
584
+ throw new Error("Invalid value");
585
+ const n = [{ src: e, des: t }];
586
+ for (; n.length; ) {
587
+ const { src: r, des: a } = n.pop();
588
+ Object.keys(r).forEach((s) => {
589
+ 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] }));
590
+ });
591
+ }
592
+ }
8
593
  /*!
9
594
  * message-compiler v11.1.1
10
595
  * (c) 2025 kazuya kawaguchi
11
596
  * 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)
597
+ */
598
+ function ts(e, t, n) {
599
+ return { line: e, column: t, offset: n };
600
+ }
601
+ function wt(e, t, n) {
602
+ return { start: e, end: t };
603
+ }
604
+ const R = {
605
+ // tokenizer error codes
606
+ EXPECTED_TOKEN: 1,
607
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
608
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
609
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
610
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
611
+ UNBALANCED_CLOSING_BRACE: 6,
612
+ UNTERMINATED_CLOSING_BRACE: 7,
613
+ EMPTY_PLACEHOLDER: 8,
614
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
615
+ INVALID_LINKED_FORMAT: 10,
616
+ // parser error codes
617
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
618
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
619
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
620
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
621
+ // generator error codes
622
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
623
+ // minifier error codes
624
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
625
+ }, ns = 17, rs = {
626
+ // tokenizer error messages
627
+ [R.EXPECTED_TOKEN]: "Expected token: '{0}'",
628
+ [R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
629
+ [R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
630
+ [R.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
631
+ [R.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
632
+ [R.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
633
+ [R.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
634
+ [R.EMPTY_PLACEHOLDER]: "Empty placeholder",
635
+ [R.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
636
+ [R.INVALID_LINKED_FORMAT]: "Invalid linked format",
637
+ // parser error messages
638
+ [R.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
639
+ [R.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
640
+ [R.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
641
+ [R.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
642
+ // generator error messages
643
+ [R.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
644
+ // minimizer error messages
645
+ [R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
646
+ };
647
+ function $e(e, t, n = {}) {
648
+ const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? dt((a || rs)[e] || "", ...s || []) : e, c = new SyntaxError(String(i));
649
+ return c.code = e, t && (c.location = t), c.domain = r, c;
650
+ }
651
+ function ss(e) {
652
+ throw e;
653
+ }
654
+ const as = /<\/?[\w\s="/.':;#-\/]+>/, is = (e) => as.test(e), ge = " ", os = "\r", z = `
655
+ `, ls = "\u2028", cs = "\u2029";
656
+ function us(e) {
657
+ const t = e;
658
+ let n = 0, r = 1, a = 1, s = 0;
659
+ const i = (g) => t[g] === os && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === cs, p = (g) => t[g] === ls, 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);
660
+ function m() {
661
+ return s = 0, v(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
662
+ }
663
+ function l() {
664
+ return i(n + s) && s++, s++, t[n + s];
665
+ }
666
+ function u() {
667
+ n = 0, r = 1, a = 1, s = 0;
668
+ }
669
+ function d(g = 0) {
670
+ s = g;
671
+ }
672
+ function E() {
673
+ const g = n + s;
674
+ for (; g !== n; )
675
+ m();
676
+ s = 0;
677
+ }
678
+ return {
679
+ index: N,
680
+ line: y,
681
+ column: C,
682
+ peekOffset: D,
683
+ charAt: A,
684
+ currentChar: k,
685
+ currentPeek: o,
686
+ next: m,
687
+ peek: l,
688
+ reset: u,
689
+ resetPeek: d,
690
+ skipToPeek: E
691
+ };
692
+ }
693
+ const be = void 0, fs = ".", bn = "'", _s = "tokenizer";
694
+ function ds(e, t = {}) {
695
+ const n = t.location !== !1, r = us(e), a = () => r.index(), s = () => ts(r.line(), r.column(), r.index()), i = s(), c = a(), f = {
696
+ currentType: 13,
697
+ offset: c,
698
+ startLoc: i,
699
+ endLoc: i,
700
+ lastType: 13,
701
+ lastOffset: c,
702
+ lastStartLoc: i,
703
+ lastEndLoc: i,
704
+ braceNest: 0,
705
+ inLinked: !1,
706
+ text: ""
707
+ }, p = () => f, { onError: v } = t;
708
+ function N(_, h, T, ...S) {
709
+ const Y = p();
710
+ if (h.column += T, h.offset += T, v) {
711
+ const H = n ? wt(Y.startLoc, h) : null, K = $e(_, H, {
712
+ domain: _s,
713
+ args: S
714
+ });
715
+ v(K);
716
+ }
717
+ }
718
+ function y(_, h, T) {
719
+ _.endLoc = s(), _.currentType = h;
720
+ const S = { type: h };
721
+ return n && (S.loc = wt(_.startLoc, _.endLoc)), T != null && (S.value = T), S;
722
+ }
723
+ const C = (_) => y(
724
+ _,
725
+ 13
726
+ /* TokenTypes.EOF */
727
+ );
728
+ function D(_, h) {
729
+ return _.currentChar() === h ? (_.next(), h) : (N(R.EXPECTED_TOKEN, s(), 0, h), "");
730
+ }
731
+ function A(_) {
732
+ let h = "";
733
+ for (; _.currentPeek() === ge || _.currentPeek() === z; )
734
+ h += _.currentPeek(), _.peek();
735
+ return h;
736
+ }
737
+ function k(_) {
738
+ const h = A(_);
739
+ return _.skipToPeek(), h;
740
+ }
741
+ function o(_) {
742
+ if (_ === be)
743
+ return !1;
744
+ const h = _.charCodeAt(0);
745
+ return h >= 97 && h <= 122 || // a-z
746
+ h >= 65 && h <= 90 || // A-Z
747
+ h === 95;
748
+ }
749
+ function m(_) {
750
+ if (_ === be)
751
+ return !1;
752
+ const h = _.charCodeAt(0);
753
+ return h >= 48 && h <= 57;
754
+ }
755
+ function l(_, h) {
756
+ const { currentType: T } = h;
757
+ if (T !== 2)
758
+ return !1;
759
+ A(_);
760
+ const S = o(_.currentPeek());
761
+ return _.resetPeek(), S;
762
+ }
763
+ function u(_, h) {
764
+ const { currentType: T } = h;
765
+ if (T !== 2)
766
+ return !1;
767
+ A(_);
768
+ const S = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), Y = m(S);
769
+ return _.resetPeek(), Y;
770
+ }
771
+ function d(_, h) {
772
+ const { currentType: T } = h;
773
+ if (T !== 2)
774
+ return !1;
775
+ A(_);
776
+ const S = _.currentPeek() === bn;
777
+ return _.resetPeek(), S;
778
+ }
779
+ function E(_, h) {
780
+ const { currentType: T } = h;
781
+ if (T !== 7)
782
+ return !1;
783
+ A(_);
784
+ const S = _.currentPeek() === ".";
785
+ return _.resetPeek(), S;
786
+ }
787
+ function g(_, h) {
788
+ const { currentType: T } = h;
789
+ if (T !== 8)
790
+ return !1;
791
+ A(_);
792
+ const S = o(_.currentPeek());
793
+ return _.resetPeek(), S;
794
+ }
795
+ function O(_, h) {
796
+ const { currentType: T } = h;
797
+ if (!(T === 7 || T === 11))
798
+ return !1;
799
+ A(_);
800
+ const S = _.currentPeek() === ":";
801
+ return _.resetPeek(), S;
802
+ }
803
+ function P(_, h) {
804
+ const { currentType: T } = h;
805
+ if (T !== 9)
806
+ return !1;
807
+ const S = () => {
808
+ const H = _.currentPeek();
809
+ return H === "{" ? o(_.peek()) : H === "@" || H === "|" || H === ":" || H === "." || H === ge || !H ? !1 : H === z ? (_.peek(), S()) : B(_, !1);
810
+ }, Y = S();
811
+ return _.resetPeek(), Y;
812
+ }
813
+ function M(_) {
814
+ A(_);
815
+ const h = _.currentPeek() === "|";
816
+ return _.resetPeek(), h;
817
+ }
818
+ function B(_, h = !0) {
819
+ const T = (Y = !1, H = "") => {
820
+ const K = _.currentPeek();
821
+ return K === "{" || K === "@" || !K ? Y : K === "|" ? !(H === ge || H === z) : K === ge ? (_.peek(), T(!0, ge)) : K === z ? (_.peek(), T(!0, z)) : !0;
822
+ }, S = T();
823
+ return h && _.resetPeek(), S;
824
+ }
825
+ function x(_, h) {
826
+ const T = _.currentChar();
827
+ return T === be ? be : h(T) ? (_.next(), T) : null;
828
+ }
829
+ function oe(_) {
830
+ const h = _.charCodeAt(0);
831
+ return h >= 97 && h <= 122 || // a-z
832
+ h >= 65 && h <= 90 || // A-Z
833
+ h >= 48 && h <= 57 || // 0-9
834
+ h === 95 || // _
835
+ h === 36;
836
+ }
837
+ function le(_) {
838
+ return x(_, oe);
839
+ }
840
+ function Oe(_) {
841
+ const h = _.charCodeAt(0);
842
+ return h >= 97 && h <= 122 || // a-z
843
+ h >= 65 && h <= 90 || // A-Z
844
+ h >= 48 && h <= 57 || // 0-9
845
+ h === 95 || // _
846
+ h === 36 || // $
847
+ h === 45;
848
+ }
849
+ function ee(_) {
850
+ return x(_, Oe);
851
+ }
852
+ function Ee(_) {
853
+ const h = _.charCodeAt(0);
854
+ return h >= 48 && h <= 57;
855
+ }
856
+ function Me(_) {
857
+ return x(_, Ee);
858
+ }
859
+ function We(_) {
860
+ const h = _.charCodeAt(0);
861
+ return h >= 48 && h <= 57 || // 0-9
862
+ h >= 65 && h <= 70 || // A-F
863
+ h >= 97 && h <= 102;
864
+ }
865
+ function he(_) {
866
+ return x(_, We);
867
+ }
868
+ function Ge(_) {
869
+ let h = "", T = "";
870
+ for (; h = Me(_); )
871
+ T += h;
872
+ return T;
873
+ }
874
+ function Et(_) {
875
+ let h = "";
876
+ for (; ; ) {
877
+ const T = _.currentChar();
878
+ if (T === "{" || T === "}" || T === "@" || T === "|" || !T)
879
+ break;
880
+ if (T === ge || T === z)
881
+ if (B(_))
882
+ h += T, _.next();
883
+ else {
884
+ if (M(_))
885
+ break;
886
+ h += T, _.next();
887
+ }
888
+ else
889
+ h += T, _.next();
890
+ }
891
+ return h;
892
+ }
893
+ function bt(_) {
894
+ k(_);
895
+ let h = "", T = "";
896
+ for (; h = ee(_); )
897
+ T += h;
898
+ return _.currentChar() === be && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T;
899
+ }
900
+ function vt(_) {
901
+ k(_);
902
+ let h = "";
903
+ return _.currentChar() === "-" ? (_.next(), h += `-${Ge(_)}`) : h += Ge(_), _.currentChar() === be && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), h;
904
+ }
905
+ function yt(_) {
906
+ return _ !== bn && _ !== z;
907
+ }
908
+ function cn(_) {
909
+ k(_), D(_, "'");
910
+ let h = "", T = "";
911
+ for (; h = x(_, yt); )
912
+ h === "\\" ? T += Nt(_) : T += h;
913
+ const S = _.currentChar();
914
+ return S === z || S === be ? (N(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === z && (_.next(), D(_, "'")), T) : (D(_, "'"), T);
915
+ }
916
+ function Nt(_) {
917
+ const h = _.currentChar();
918
+ switch (h) {
919
+ case "\\":
920
+ case "'":
921
+ return _.next(), `\\${h}`;
922
+ case "u":
923
+ return rt(_, h, 4);
924
+ case "U":
925
+ return rt(_, h, 6);
926
+ default:
927
+ return N(R.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, h), "";
928
+ }
929
+ }
930
+ function rt(_, h, T) {
931
+ D(_, h);
932
+ let S = "";
933
+ for (let Y = 0; Y < T; Y++) {
934
+ const H = he(_);
935
+ if (!H) {
936
+ N(R.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${h}${S}${_.currentChar()}`);
937
+ break;
938
+ }
939
+ S += H;
940
+ }
941
+ return `\\${h}${S}`;
942
+ }
943
+ function Tt(_) {
944
+ return _ !== "{" && _ !== "}" && _ !== ge && _ !== z;
945
+ }
946
+ function Lt(_) {
947
+ k(_);
948
+ let h = "", T = "";
949
+ for (; h = x(_, Tt); )
950
+ T += h;
951
+ return T;
952
+ }
953
+ function Ot(_) {
954
+ let h = "", T = "";
955
+ for (; h = le(_); )
956
+ T += h;
957
+ return T;
958
+ }
959
+ function Ct(_) {
960
+ const h = (T) => {
961
+ const S = _.currentChar();
962
+ return S === "{" || S === "@" || S === "|" || S === "(" || S === ")" || !S || S === ge ? T : (T += S, _.next(), h(T));
963
+ };
964
+ return h("");
965
+ }
966
+ function Be(_) {
967
+ k(_);
968
+ const h = D(
969
+ _,
970
+ "|"
971
+ /* TokenChars.Pipe */
972
+ );
973
+ return k(_), h;
974
+ }
975
+ function Ye(_, h) {
976
+ let T = null;
977
+ switch (_.currentChar()) {
978
+ case "{":
979
+ return h.braceNest >= 1 && N(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), _.next(), T = y(
980
+ h,
981
+ 2,
982
+ "{"
983
+ /* TokenChars.BraceLeft */
984
+ ), k(_), h.braceNest++, T;
985
+ case "}":
986
+ return h.braceNest > 0 && h.currentType === 2 && N(R.EMPTY_PLACEHOLDER, s(), 0), _.next(), T = y(
987
+ h,
988
+ 3,
989
+ "}"
990
+ /* TokenChars.BraceRight */
991
+ ), h.braceNest--, h.braceNest > 0 && k(_), h.inLinked && h.braceNest === 0 && (h.inLinked = !1), T;
992
+ case "@":
993
+ return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = Ce(_, h) || C(h), h.braceNest = 0, T;
994
+ default: {
995
+ let Y = !0, H = !0, K = !0;
996
+ if (M(_))
997
+ return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
998
+ if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
999
+ return N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), h.braceNest = 0, He(_, h);
1000
+ if (Y = l(_, h))
1001
+ return T = y(h, 4, bt(_)), k(_), T;
1002
+ if (H = u(_, h))
1003
+ return T = y(h, 5, vt(_)), k(_), T;
1004
+ if (K = d(_, h))
1005
+ return T = y(h, 6, cn(_)), k(_), T;
1006
+ if (!Y && !H && !K)
1007
+ return T = y(h, 12, Lt(_)), N(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, T.value), k(_), T;
1008
+ break;
1009
+ }
1010
+ }
1011
+ return T;
1012
+ }
1013
+ function Ce(_, h) {
1014
+ const { currentType: T } = h;
1015
+ let S = null;
1016
+ const Y = _.currentChar();
1017
+ switch ((T === 7 || T === 8 || T === 11 || T === 9) && (Y === z || Y === ge) && N(R.INVALID_LINKED_FORMAT, s(), 0), Y) {
1018
+ case "@":
1019
+ return _.next(), S = y(
1020
+ h,
1021
+ 7,
1022
+ "@"
1023
+ /* TokenChars.LinkedAlias */
1024
+ ), h.inLinked = !0, S;
1025
+ case ".":
1026
+ return k(_), _.next(), y(
1027
+ h,
1028
+ 8,
1029
+ "."
1030
+ /* TokenChars.LinkedDot */
1031
+ );
1032
+ case ":":
1033
+ return k(_), _.next(), y(
1034
+ h,
1035
+ 9,
1036
+ ":"
1037
+ /* TokenChars.LinkedDelimiter */
1038
+ );
1039
+ default:
1040
+ 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));
1041
+ }
1042
+ }
1043
+ function He(_, h) {
1044
+ let T = {
1045
+ type: 13
1046
+ /* TokenTypes.EOF */
1047
+ };
1048
+ if (h.braceNest > 0)
1049
+ return Ye(_, h) || C(h);
1050
+ if (h.inLinked)
1051
+ return Ce(_, h) || C(h);
1052
+ switch (_.currentChar()) {
1053
+ case "{":
1054
+ return Ye(_, h) || C(h);
1055
+ case "}":
1056
+ return N(R.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), y(
1057
+ h,
1058
+ 3,
1059
+ "}"
1060
+ /* TokenChars.BraceRight */
1061
+ );
1062
+ case "@":
1063
+ return Ce(_, h) || C(h);
1064
+ default: {
1065
+ if (M(_))
1066
+ return T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
1067
+ if (B(_))
1068
+ return y(h, 0, Et(_));
1069
+ break;
1070
+ }
1071
+ }
1072
+ return T;
1073
+ }
1074
+ function It() {
1075
+ const { currentType: _, offset: h, startLoc: T, endLoc: S } = f;
1076
+ return f.lastType = _, f.lastOffset = h, f.lastStartLoc = T, f.lastEndLoc = S, f.offset = a(), f.startLoc = s(), r.currentChar() === be ? y(
1077
+ f,
1078
+ 13
1079
+ /* TokenTypes.EOF */
1080
+ ) : He(r, f);
1081
+ }
1082
+ return {
1083
+ nextToken: It,
1084
+ currentOffset: a,
1085
+ currentPosition: s,
1086
+ context: p
1087
+ };
1088
+ }
1089
+ const ms = "parser", hs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1090
+ function gs(e, t, n) {
1091
+ switch (e) {
1092
+ case "\\\\":
1093
+ return "\\";
1094
+ // eslint-disable-next-line no-useless-escape
1095
+ case "\\'":
1096
+ return "'";
1097
+ default: {
1098
+ const r = parseInt(t || n, 16);
1099
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
1100
+ }
1101
+ }
1102
+ }
1103
+ function ps(e = {}) {
1104
+ const t = e.location !== !1, { onError: n } = e;
1105
+ function r(o, m, l, u, ...d) {
1106
+ const E = o.currentPosition();
1107
+ if (E.offset += u, E.column += u, n) {
1108
+ const g = t ? wt(l, E) : null, O = $e(m, g, {
1109
+ domain: ms,
1110
+ args: d
1111
+ });
1112
+ n(O);
1113
+ }
1114
+ }
1115
+ function a(o, m, l) {
1116
+ const u = { type: o };
1117
+ return t && (u.start = m, u.end = m, u.loc = { start: l, end: l }), u;
1118
+ }
1119
+ function s(o, m, l, u) {
1120
+ t && (o.end = m, o.loc && (o.loc.end = l));
1121
+ }
1122
+ function i(o, m) {
1123
+ const l = o.context(), u = a(3, l.offset, l.startLoc);
1124
+ return u.value = m, s(u, o.currentOffset(), o.currentPosition()), u;
1125
+ }
1126
+ function c(o, m) {
1127
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(5, u, d);
1128
+ return E.index = parseInt(m, 10), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1129
+ }
1130
+ function f(o, m) {
1131
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(4, u, d);
1132
+ return E.key = m, o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1133
+ }
1134
+ function p(o, m) {
1135
+ const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(9, u, d);
1136
+ return E.value = m.replace(hs, gs), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1137
+ }
1138
+ function v(o) {
1139
+ const m = o.nextToken(), l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(8, u, d);
1140
+ return m.type !== 11 ? (r(o, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, l.lastStartLoc, 0), E.value = "", s(E, u, d), {
1141
+ nextConsumeToken: m,
1142
+ node: E
1143
+ }) : (m.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, l.lastStartLoc, 0, ce(m)), E.value = m.value || "", s(E, o.currentOffset(), o.currentPosition()), {
1144
+ node: E
1145
+ });
1146
+ }
1147
+ function N(o, m) {
1148
+ const l = o.context(), u = a(7, l.offset, l.startLoc);
1149
+ return u.value = m, s(u, o.currentOffset(), o.currentPosition()), u;
1150
+ }
1151
+ function y(o) {
1152
+ const m = o.context(), l = a(6, m.offset, m.startLoc);
1153
+ let u = o.nextToken();
1154
+ if (u.type === 8) {
1155
+ const d = v(o);
1156
+ l.modifier = d.node, u = d.nextConsumeToken || o.nextToken();
1157
+ }
1158
+ 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) {
1159
+ case 10:
1160
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = N(o, u.value || "");
1161
+ break;
1162
+ case 4:
1163
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = f(o, u.value || "");
1164
+ break;
1165
+ case 5:
1166
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = c(o, u.value || "");
1167
+ break;
1168
+ case 6:
1169
+ u.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), l.key = p(o, u.value || "");
1170
+ break;
1171
+ default: {
1172
+ r(o, R.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
1173
+ const d = o.context(), E = a(7, d.offset, d.startLoc);
1174
+ return E.value = "", s(E, d.offset, d.startLoc), l.key = E, s(l, d.offset, d.startLoc), {
1175
+ nextConsumeToken: u,
1176
+ node: l
1177
+ };
1178
+ }
1179
+ }
1180
+ return s(l, o.currentOffset(), o.currentPosition()), {
1181
+ node: l
1182
+ };
1183
+ }
1184
+ function C(o) {
1185
+ 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);
1186
+ d.items = [];
1187
+ let E = null;
1188
+ do {
1189
+ const P = E || o.nextToken();
1190
+ switch (E = null, P.type) {
1191
+ case 0:
1192
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(i(o, P.value || ""));
1193
+ break;
1194
+ case 5:
1195
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(c(o, P.value || ""));
1196
+ break;
1197
+ case 4:
1198
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(f(o, P.value || ""));
1199
+ break;
1200
+ case 6:
1201
+ P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(p(o, P.value || ""));
1202
+ break;
1203
+ case 7: {
1204
+ const M = y(o);
1205
+ d.items.push(M.node), E = M.nextConsumeToken || null;
1206
+ break;
1207
+ }
1208
+ }
1209
+ } while (m.currentType !== 13 && m.currentType !== 1);
1210
+ const g = m.currentType === 1 ? m.lastOffset : o.currentOffset(), O = m.currentType === 1 ? m.lastEndLoc : o.currentPosition();
1211
+ return s(d, g, O), d;
1212
+ }
1213
+ function D(o, m, l, u) {
1214
+ const d = o.context();
1215
+ let E = u.items.length === 0;
1216
+ const g = a(1, m, l);
1217
+ g.cases = [], g.cases.push(u);
1218
+ do {
1219
+ const O = C(o);
1220
+ E || (E = O.items.length === 0), g.cases.push(O);
1221
+ } while (d.currentType !== 13);
1222
+ return E && r(o, R.MUST_HAVE_MESSAGES_IN_PLURAL, l, 0), s(g, o.currentOffset(), o.currentPosition()), g;
1223
+ }
1224
+ function A(o) {
1225
+ const m = o.context(), { offset: l, startLoc: u } = m, d = C(o);
1226
+ return m.currentType === 13 ? d : D(o, l, u, d);
1227
+ }
1228
+ function k(o) {
1229
+ const m = ds(o, Q({}, e)), l = m.context(), u = a(0, l.offset, l.startLoc);
1230
+ 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;
1231
+ }
1232
+ return { parse: k };
1233
+ }
1234
+ function ce(e) {
1235
+ if (e.type === 13)
1236
+ return "EOF";
1237
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1238
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
1239
+ }
1240
+ function Es(e, t = {}) {
1241
+ const n = {
1242
+ ast: e,
1243
+ helpers: /* @__PURE__ */ new Set()
1244
+ };
1245
+ return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
1246
+ }
1247
+ function vn(e, t) {
1248
+ for (let n = 0; n < e.length; n++)
1249
+ Zt(e[n], t);
1250
+ }
1251
+ function Zt(e, t) {
1252
+ switch (e.type) {
1253
+ case 1:
1254
+ vn(e.cases, t), t.helper(
1255
+ "plural"
1256
+ /* HelperNameMap.PLURAL */
1257
+ );
1258
+ break;
1259
+ case 2:
1260
+ vn(e.items, t);
1261
+ break;
1262
+ case 6: {
1263
+ Zt(e.key, t), t.helper(
1264
+ "linked"
1265
+ /* HelperNameMap.LINKED */
1266
+ ), t.helper(
1267
+ "type"
1268
+ /* HelperNameMap.TYPE */
1269
+ );
1270
+ break;
1271
+ }
1272
+ case 5:
1273
+ t.helper(
1274
+ "interpolate"
1275
+ /* HelperNameMap.INTERPOLATE */
1276
+ ), t.helper(
1277
+ "list"
1278
+ /* HelperNameMap.LIST */
1279
+ );
1280
+ break;
1281
+ case 4:
1282
+ t.helper(
1283
+ "interpolate"
1284
+ /* HelperNameMap.INTERPOLATE */
1285
+ ), t.helper(
1286
+ "named"
1287
+ /* HelperNameMap.NAMED */
1288
+ );
1289
+ break;
1290
+ }
1291
+ }
1292
+ function bs(e, t = {}) {
1293
+ const n = Es(e);
1294
+ n.helper(
1295
+ "normalize"
1296
+ /* HelperNameMap.NORMALIZE */
1297
+ ), e.body && Zt(e.body, n);
1298
+ const r = n.context();
1299
+ e.helpers = Array.from(r.helpers);
1300
+ }
1301
+ function vs(e) {
1302
+ const t = e.body;
1303
+ return t.type === 2 ? yn(t) : t.cases.forEach((n) => yn(n)), e;
1304
+ }
1305
+ function yn(e) {
1306
+ if (e.items.length === 1) {
1307
+ const t = e.items[0];
1308
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
1309
+ } else {
1310
+ const t = [];
1311
+ for (let n = 0; n < e.items.length; n++) {
1312
+ const r = e.items[n];
1313
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
1314
+ break;
1315
+ t.push(r.value);
1316
+ }
1317
+ if (t.length === e.items.length) {
1318
+ e.static = Jt(t);
1319
+ for (let n = 0; n < e.items.length; n++) {
1320
+ const r = e.items[n];
1321
+ (r.type === 3 || r.type === 9) && delete r.value;
1322
+ }
1323
+ }
1324
+ }
1325
+ }
1326
+ const ys = "minifier";
1327
+ function Ke(e) {
1328
+ switch (e.t = e.type, e.type) {
1329
+ case 0: {
1330
+ const t = e;
1331
+ Ke(t.body), t.b = t.body, delete t.body;
1332
+ break;
1333
+ }
1334
+ case 1: {
1335
+ const t = e, n = t.cases;
1336
+ for (let r = 0; r < n.length; r++)
1337
+ Ke(n[r]);
1338
+ t.c = n, delete t.cases;
1339
+ break;
1340
+ }
1341
+ case 2: {
1342
+ const t = e, n = t.items;
1343
+ for (let r = 0; r < n.length; r++)
1344
+ Ke(n[r]);
1345
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
1346
+ break;
1347
+ }
1348
+ case 3:
1349
+ case 9:
1350
+ case 8:
1351
+ case 7: {
1352
+ const t = e;
1353
+ t.value && (t.v = t.value, delete t.value);
1354
+ break;
1355
+ }
1356
+ case 6: {
1357
+ const t = e;
1358
+ Ke(t.key), t.k = t.key, delete t.key, t.modifier && (Ke(t.modifier), t.m = t.modifier, delete t.modifier);
1359
+ break;
1360
+ }
1361
+ case 5: {
1362
+ const t = e;
1363
+ t.i = t.index, delete t.index;
1364
+ break;
1365
+ }
1366
+ case 4: {
1367
+ const t = e;
1368
+ t.k = t.key, delete t.key;
1369
+ break;
1370
+ }
1371
+ default:
1372
+ if (process.env.NODE_ENV !== "production")
1373
+ throw $e(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1374
+ domain: ys,
1375
+ args: [e.type]
1376
+ });
1377
+ }
1378
+ delete e.type;
1379
+ }
1380
+ const Ns = "parser";
1381
+ function Ts(e, t) {
1382
+ const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, i = {
1383
+ filename: n,
1384
+ code: "",
1385
+ column: 1,
1386
+ line: 1,
1387
+ offset: 0,
1388
+ map: void 0,
1389
+ breakLineCode: r,
1390
+ needIndent: a,
1391
+ indentLevel: 0
1392
+ };
1393
+ s && e.loc && (i.source = e.loc.source);
1394
+ const c = () => i;
1395
+ function f(A, k) {
1396
+ i.code += A;
1397
+ }
1398
+ function p(A, k = !0) {
1399
+ const o = k ? r : "";
1400
+ f(a ? o + " ".repeat(A) : o);
1401
+ }
1402
+ function v(A = !0) {
1403
+ const k = ++i.indentLevel;
1404
+ A && p(k);
1405
+ }
1406
+ function N(A = !0) {
1407
+ const k = --i.indentLevel;
1408
+ A && p(k);
1409
+ }
1410
+ function y() {
1411
+ p(i.indentLevel);
1412
+ }
1413
+ return {
1414
+ context: c,
1415
+ push: f,
1416
+ indent: v,
1417
+ deindent: N,
1418
+ newline: y,
1419
+ helper: (A) => `_${A}`,
1420
+ needIndent: () => i.needIndent
1421
+ };
1422
+ }
1423
+ function Ls(e, t) {
1424
+ const { helper: n } = e;
1425
+ e.push(`${n(
1426
+ "linked"
1427
+ /* HelperNameMap.LINKED */
1428
+ )}(`), xe(e, t.key), t.modifier ? (e.push(", "), xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1429
+ }
1430
+ function Os(e, t) {
1431
+ const { helper: n, needIndent: r } = e;
1432
+ e.push(`${n(
1433
+ "normalize"
1434
+ /* HelperNameMap.NORMALIZE */
1435
+ )}([`), e.indent(r());
1436
+ const a = t.items.length;
1437
+ for (let s = 0; s < a && (xe(e, t.items[s]), s !== a - 1); s++)
1438
+ e.push(", ");
1439
+ e.deindent(r()), e.push("])");
1440
+ }
1441
+ function Cs(e, t) {
1442
+ const { helper: n, needIndent: r } = e;
1443
+ if (t.cases.length > 1) {
1444
+ e.push(`${n(
1445
+ "plural"
1446
+ /* HelperNameMap.PLURAL */
1447
+ )}([`), e.indent(r());
1448
+ const a = t.cases.length;
1449
+ for (let s = 0; s < a && (xe(e, t.cases[s]), s !== a - 1); s++)
1450
+ e.push(", ");
1451
+ e.deindent(r()), e.push("])");
1452
+ }
1453
+ }
1454
+ function Is(e, t) {
1455
+ t.body ? xe(e, t.body) : e.push("null");
1456
+ }
1457
+ function xe(e, t) {
1458
+ const { helper: n } = e;
1459
+ switch (t.type) {
1460
+ case 0:
1461
+ Is(e, t);
1462
+ break;
1463
+ case 1:
1464
+ Cs(e, t);
1465
+ break;
1466
+ case 2:
1467
+ Os(e, t);
1468
+ break;
1469
+ case 6:
1470
+ Ls(e, t);
1471
+ break;
1472
+ case 8:
1473
+ e.push(JSON.stringify(t.value), t);
1474
+ break;
1475
+ case 7:
1476
+ e.push(JSON.stringify(t.value), t);
1477
+ break;
1478
+ case 5:
1479
+ e.push(`${n(
1480
+ "interpolate"
1481
+ /* HelperNameMap.INTERPOLATE */
1482
+ )}(${n(
1483
+ "list"
1484
+ /* HelperNameMap.LIST */
1485
+ )}(${t.index}))`, t);
1486
+ break;
1487
+ case 4:
1488
+ e.push(`${n(
1489
+ "interpolate"
1490
+ /* HelperNameMap.INTERPOLATE */
1491
+ )}(${n(
1492
+ "named"
1493
+ /* HelperNameMap.NAMED */
1494
+ )}(${JSON.stringify(t.key)}))`, t);
1495
+ break;
1496
+ case 9:
1497
+ e.push(JSON.stringify(t.value), t);
1498
+ break;
1499
+ case 3:
1500
+ e.push(JSON.stringify(t.value), t);
1501
+ break;
1502
+ default:
1503
+ if (process.env.NODE_ENV !== "production")
1504
+ throw $e(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1505
+ domain: Ns,
1506
+ args: [t.type]
1507
+ });
1508
+ }
1509
+ }
1510
+ const As = (e, t = {}) => {
1511
+ const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
1512
+ t.sourceMap;
1513
+ const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1514
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = Ts(e, {
1515
+ filename: r,
1516
+ breakLineCode: a,
1517
+ needIndent: s
1518
+ });
1519
+ 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;
1520
+ const { code: f, map: p } = c.context();
1521
+ return {
1522
+ ast: e,
1523
+ code: f,
1524
+ map: p ? p.toJSON() : void 0
1525
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1526
+ };
1527
+ };
1528
+ function ks(e, t = {}) {
1529
+ const n = Q({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, c = ps(n).parse(e);
1530
+ return r ? (s && vs(c), a && Ke(c), { ast: c, code: "" }) : (bs(c, n), As(c, n));
1531
+ }
13
1532
  /*!
14
1533
  * core-base v11.1.1
15
1534
  * (c) 2025 kazuya kawaguchi
16
1535
  * 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)}
1536
+ */
1537
+ function Ss() {
1538
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1539
+ }
1540
+ function At(e) {
1541
+ return (n) => Ds(n, e);
1542
+ }
1543
+ function Ds(e, t) {
1544
+ const n = Rs(t);
1545
+ if (n == null)
1546
+ throw qe(
1547
+ 0
1548
+ /* NodeTypes.Resource */
1549
+ );
1550
+ if (zt(n) === 1) {
1551
+ const s = ws(n);
1552
+ return e.plural(s.reduce((i, c) => [
1553
+ ...i,
1554
+ Nn(e, c)
1555
+ ], []));
1556
+ } else
1557
+ return Nn(e, n);
1558
+ }
1559
+ const Ps = ["b", "body"];
1560
+ function Rs(e) {
1561
+ return Te(e, Ps);
1562
+ }
1563
+ const Ms = ["c", "cases"];
1564
+ function ws(e) {
1565
+ return Te(e, Ms, []);
1566
+ }
1567
+ function Nn(e, t) {
1568
+ const n = Us(t);
1569
+ if (n != null)
1570
+ return e.type === "text" ? n : e.normalize([n]);
1571
+ {
1572
+ const r = Vs(t).reduce((a, s) => [...a, Ft(e, s)], []);
1573
+ return e.normalize(r);
1574
+ }
1575
+ }
1576
+ const Fs = ["s", "static"];
1577
+ function Us(e) {
1578
+ return Te(e, Fs);
1579
+ }
1580
+ const Ks = ["i", "items"];
1581
+ function Vs(e) {
1582
+ return Te(e, Ks, []);
1583
+ }
1584
+ function Ft(e, t) {
1585
+ const n = zt(t);
1586
+ switch (n) {
1587
+ case 3:
1588
+ return it(t, n);
1589
+ case 9:
1590
+ return it(t, n);
1591
+ case 4: {
1592
+ const r = t;
1593
+ if (ae(r, "k") && r.k)
1594
+ return e.interpolate(e.named(r.k));
1595
+ if (ae(r, "key") && r.key)
1596
+ return e.interpolate(e.named(r.key));
1597
+ throw qe(n);
1598
+ }
1599
+ case 5: {
1600
+ const r = t;
1601
+ if (ae(r, "i") && q(r.i))
1602
+ return e.interpolate(e.list(r.i));
1603
+ if (ae(r, "index") && q(r.index))
1604
+ return e.interpolate(e.list(r.index));
1605
+ throw qe(n);
1606
+ }
1607
+ case 6: {
1608
+ const r = t, a = Gs(r), s = Ys(r);
1609
+ return e.linked(Ft(e, s), a ? Ft(e, a) : void 0, e.type);
1610
+ }
1611
+ case 7:
1612
+ return it(t, n);
1613
+ case 8:
1614
+ return it(t, n);
1615
+ default:
1616
+ throw new Error(`unhandled node on format message part: ${n}`);
1617
+ }
1618
+ }
1619
+ const xs = ["t", "type"];
1620
+ function zt(e) {
1621
+ return Te(e, xs);
1622
+ }
1623
+ const $s = ["v", "value"];
1624
+ function it(e, t) {
1625
+ const n = Te(e, $s);
1626
+ if (n)
1627
+ return n;
1628
+ throw qe(t);
1629
+ }
1630
+ const Ws = ["m", "modifier"];
1631
+ function Gs(e) {
1632
+ return Te(e, Ws);
1633
+ }
1634
+ const Bs = ["k", "key"];
1635
+ function Ys(e) {
1636
+ const t = Te(e, Bs);
1637
+ if (t)
1638
+ return t;
1639
+ throw qe(
1640
+ 6
1641
+ /* NodeTypes.Linked */
1642
+ );
1643
+ }
1644
+ function Te(e, t, n) {
1645
+ for (let r = 0; r < t.length; r++) {
1646
+ const a = t[r];
1647
+ if (ae(e, a) && e[a] != null)
1648
+ return e[a];
1649
+ }
1650
+ return n;
1651
+ }
1652
+ function qe(e) {
1653
+ return new Error(`unhandled node type: ${e}`);
1654
+ }
1655
+ const Hs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1656
+ function Xs(e, t) {
1657
+ t && is(e) && Ne(dt(Hs, { source: e }));
1658
+ }
1659
+ const js = (e) => e;
1660
+ let ot = $();
1661
+ function ye(e) {
1662
+ return F(e) && zt(e) === 0 && (ae(e, "b") || ae(e, "body"));
1663
+ }
1664
+ function Js(e, t = {}) {
1665
+ let n = !1;
1666
+ const r = t.onError || ss;
1667
+ return t.onError = (a) => {
1668
+ n = !0, r(a);
1669
+ }, { ...ks(e, t), detectError: n };
1670
+ }
1671
+ // @__NO_SIDE_EFFECTS__
1672
+ function qs(e, t) {
1673
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
1674
+ const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1675
+ process.env.NODE_ENV !== "production" && Xs(e, n);
1676
+ const a = (t.onCacheKey || js)(e), s = ot[a];
1677
+ if (s)
1678
+ return s;
1679
+ const { ast: i, detectError: c } = Js(e, {
1680
+ ...t,
1681
+ location: process.env.NODE_ENV !== "production",
1682
+ jit: !0
1683
+ }), f = At(i);
1684
+ return c ? f : ot[a] = f;
1685
+ } else {
1686
+ if (process.env.NODE_ENV !== "production" && !ye(e))
1687
+ return Ne(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1688
+ const n = e.cacheKey;
1689
+ if (n) {
1690
+ const r = ot[n];
1691
+ return r || (ot[n] = At(e));
1692
+ } else
1693
+ return At(e);
1694
+ }
1695
+ }
1696
+ let Qe = null;
1697
+ function Qs(e) {
1698
+ Qe = e;
1699
+ }
1700
+ function Zs(e, t, n) {
1701
+ Qe && Qe.emit("i18n:init", {
1702
+ timestamp: Date.now(),
1703
+ i18n: e,
1704
+ version: t,
1705
+ meta: n
1706
+ });
1707
+ }
1708
+ const zs = /* @__PURE__ */ ea("function:translate");
1709
+ function ea(e) {
1710
+ return (t) => Qe && Qe.emit(e, t);
1711
+ }
1712
+ const Z = {
1713
+ INVALID_ARGUMENT: ns,
1714
+ // 17
1715
+ INVALID_DATE_ARGUMENT: 18,
1716
+ INVALID_ISO_DATE_ARGUMENT: 19,
1717
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1718
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1719
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1720
+ NOT_SUPPORT_LOCALE_TYPE: 23
1721
+ }, ta = 24;
1722
+ function pe(e) {
1723
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: na } : void 0);
1724
+ }
1725
+ const na = {
1726
+ [Z.INVALID_ARGUMENT]: "Invalid arguments",
1727
+ [Z.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1728
+ [Z.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1729
+ [Z.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1730
+ [Z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1731
+ [Z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1732
+ [Z.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1733
+ };
1734
+ function en(e, t) {
1735
+ return t.locale != null ? Tn(t.locale) : Tn(e.locale);
1736
+ }
1737
+ let kt;
1738
+ function Tn(e) {
1739
+ if (I(e))
1740
+ return e;
1741
+ if (W(e)) {
1742
+ if (e.resolvedOnce && kt != null)
1743
+ return kt;
1744
+ if (e.constructor.name === "Function") {
1745
+ const t = e();
1746
+ if (Zr(t))
1747
+ throw pe(Z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1748
+ return kt = t;
1749
+ } else
1750
+ throw pe(Z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1751
+ } else
1752
+ throw pe(Z.NOT_SUPPORT_LOCALE_TYPE);
1753
+ }
1754
+ function ra(e, t, n) {
1755
+ return [.../* @__PURE__ */ new Set([
1756
+ n,
1757
+ ...J(t) ? t : F(t) ? Object.keys(t) : I(t) ? [t] : [n]
1758
+ ])];
1759
+ }
1760
+ function sr(e, t, n) {
1761
+ const r = I(n) ? n : Ze, a = e;
1762
+ a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
1763
+ let s = a.__localeChainCache.get(r);
1764
+ if (!s) {
1765
+ s = [];
1766
+ let i = [n];
1767
+ for (; J(i); )
1768
+ i = Ln(s, i, t);
1769
+ const c = J(t) || !w(t) ? t : t.default ? t.default : null;
1770
+ i = I(c) ? [c] : c, J(i) && Ln(s, i, !1), a.__localeChainCache.set(r, s);
1771
+ }
1772
+ return s;
1773
+ }
1774
+ function Ln(e, t, n) {
1775
+ let r = !0;
1776
+ for (let a = 0; a < t.length && U(r); a++) {
1777
+ const s = t[a];
1778
+ I(s) && (r = sa(e, t[a], n));
1779
+ }
1780
+ return r;
1781
+ }
1782
+ function sa(e, t, n) {
1783
+ let r;
1784
+ const a = t.split("-");
1785
+ do {
1786
+ const s = a.join("-");
1787
+ r = aa(e, s, n), a.splice(-1, 1);
1788
+ } while (a.length && r === !0);
1789
+ return r;
1790
+ }
1791
+ function aa(e, t, n) {
1792
+ let r = !1;
1793
+ if (!e.includes(t) && (r = !0, t)) {
1794
+ r = t[t.length - 1] !== "!";
1795
+ const a = t.replace(/!/g, "");
1796
+ e.push(a), (J(n) || w(n)) && n[a] && (r = n[a]);
1797
+ }
1798
+ return r;
1799
+ }
1800
+ const Le = [];
1801
+ Le[
1802
+ 0
1803
+ /* States.BEFORE_PATH */
1804
+ ] = {
1805
+ w: [
1806
+ 0
1807
+ /* States.BEFORE_PATH */
1808
+ ],
1809
+ i: [
1810
+ 3,
1811
+ 0
1812
+ /* Actions.APPEND */
1813
+ ],
1814
+ "[": [
1815
+ 4
1816
+ /* States.IN_SUB_PATH */
1817
+ ],
1818
+ o: [
1819
+ 7
1820
+ /* States.AFTER_PATH */
1821
+ ]
1822
+ };
1823
+ Le[
1824
+ 1
1825
+ /* States.IN_PATH */
1826
+ ] = {
1827
+ w: [
1828
+ 1
1829
+ /* States.IN_PATH */
1830
+ ],
1831
+ ".": [
1832
+ 2
1833
+ /* States.BEFORE_IDENT */
1834
+ ],
1835
+ "[": [
1836
+ 4
1837
+ /* States.IN_SUB_PATH */
1838
+ ],
1839
+ o: [
1840
+ 7
1841
+ /* States.AFTER_PATH */
1842
+ ]
1843
+ };
1844
+ Le[
1845
+ 2
1846
+ /* States.BEFORE_IDENT */
1847
+ ] = {
1848
+ w: [
1849
+ 2
1850
+ /* States.BEFORE_IDENT */
1851
+ ],
1852
+ i: [
1853
+ 3,
1854
+ 0
1855
+ /* Actions.APPEND */
1856
+ ],
1857
+ 0: [
1858
+ 3,
1859
+ 0
1860
+ /* Actions.APPEND */
1861
+ ]
1862
+ };
1863
+ Le[
1864
+ 3
1865
+ /* States.IN_IDENT */
1866
+ ] = {
1867
+ i: [
1868
+ 3,
1869
+ 0
1870
+ /* Actions.APPEND */
1871
+ ],
1872
+ 0: [
1873
+ 3,
1874
+ 0
1875
+ /* Actions.APPEND */
1876
+ ],
1877
+ w: [
1878
+ 1,
1879
+ 1
1880
+ /* Actions.PUSH */
1881
+ ],
1882
+ ".": [
1883
+ 2,
1884
+ 1
1885
+ /* Actions.PUSH */
1886
+ ],
1887
+ "[": [
1888
+ 4,
1889
+ 1
1890
+ /* Actions.PUSH */
1891
+ ],
1892
+ o: [
1893
+ 7,
1894
+ 1
1895
+ /* Actions.PUSH */
1896
+ ]
1897
+ };
1898
+ Le[
1899
+ 4
1900
+ /* States.IN_SUB_PATH */
1901
+ ] = {
1902
+ "'": [
1903
+ 5,
1904
+ 0
1905
+ /* Actions.APPEND */
1906
+ ],
1907
+ '"': [
1908
+ 6,
1909
+ 0
1910
+ /* Actions.APPEND */
1911
+ ],
1912
+ "[": [
1913
+ 4,
1914
+ 2
1915
+ /* Actions.INC_SUB_PATH_DEPTH */
1916
+ ],
1917
+ "]": [
1918
+ 1,
1919
+ 3
1920
+ /* Actions.PUSH_SUB_PATH */
1921
+ ],
1922
+ o: 8,
1923
+ l: [
1924
+ 4,
1925
+ 0
1926
+ /* Actions.APPEND */
1927
+ ]
1928
+ };
1929
+ Le[
1930
+ 5
1931
+ /* States.IN_SINGLE_QUOTE */
1932
+ ] = {
1933
+ "'": [
1934
+ 4,
1935
+ 0
1936
+ /* Actions.APPEND */
1937
+ ],
1938
+ o: 8,
1939
+ l: [
1940
+ 5,
1941
+ 0
1942
+ /* Actions.APPEND */
1943
+ ]
1944
+ };
1945
+ Le[
1946
+ 6
1947
+ /* States.IN_DOUBLE_QUOTE */
1948
+ ] = {
1949
+ '"': [
1950
+ 4,
1951
+ 0
1952
+ /* Actions.APPEND */
1953
+ ],
1954
+ o: 8,
1955
+ l: [
1956
+ 6,
1957
+ 0
1958
+ /* Actions.APPEND */
1959
+ ]
1960
+ };
1961
+ const ia = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1962
+ function oa(e) {
1963
+ return ia.test(e);
1964
+ }
1965
+ function la(e) {
1966
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1967
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1968
+ }
1969
+ function ca(e) {
1970
+ if (e == null)
1971
+ return "o";
1972
+ switch (e.charCodeAt(0)) {
1973
+ case 91:
1974
+ // [
1975
+ case 93:
1976
+ // ]
1977
+ case 46:
1978
+ // .
1979
+ case 34:
1980
+ // "
1981
+ case 39:
1982
+ return e;
1983
+ case 95:
1984
+ // _
1985
+ case 36:
1986
+ // $
1987
+ case 45:
1988
+ return "i";
1989
+ case 9:
1990
+ // Tab (HT)
1991
+ case 10:
1992
+ // Newline (LF)
1993
+ case 13:
1994
+ // Return (CR)
1995
+ case 160:
1996
+ // No-break space (NBSP)
1997
+ case 65279:
1998
+ // Byte Order Mark (BOM)
1999
+ case 8232:
2000
+ // Line Separator (LS)
2001
+ case 8233:
2002
+ return "w";
2003
+ }
2004
+ return "i";
2005
+ }
2006
+ function ua(e) {
2007
+ const t = e.trim();
2008
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : oa(t) ? la(t) : "*" + t;
2009
+ }
2010
+ function fa(e) {
2011
+ const t = [];
2012
+ let n = -1, r = 0, a = 0, s, i, c, f, p, v, N;
2013
+ const y = [];
2014
+ y[
2015
+ 0
2016
+ /* Actions.APPEND */
2017
+ ] = () => {
2018
+ i === void 0 ? i = c : i += c;
2019
+ }, y[
2020
+ 1
2021
+ /* Actions.PUSH */
2022
+ ] = () => {
2023
+ i !== void 0 && (t.push(i), i = void 0);
2024
+ }, y[
2025
+ 2
2026
+ /* Actions.INC_SUB_PATH_DEPTH */
2027
+ ] = () => {
2028
+ y[
2029
+ 0
2030
+ /* Actions.APPEND */
2031
+ ](), a++;
2032
+ }, y[
2033
+ 3
2034
+ /* Actions.PUSH_SUB_PATH */
2035
+ ] = () => {
2036
+ if (a > 0)
2037
+ a--, r = 4, y[
2038
+ 0
2039
+ /* Actions.APPEND */
2040
+ ]();
2041
+ else {
2042
+ if (a = 0, i === void 0 || (i = ua(i), i === !1))
2043
+ return !1;
2044
+ y[
2045
+ 1
2046
+ /* Actions.PUSH */
2047
+ ]();
2048
+ }
2049
+ };
2050
+ function C() {
2051
+ const D = e[n + 1];
2052
+ if (r === 5 && D === "'" || r === 6 && D === '"')
2053
+ return n++, c = "\\" + D, y[
2054
+ 0
2055
+ /* Actions.APPEND */
2056
+ ](), !0;
2057
+ }
2058
+ for (; r !== null; )
2059
+ if (n++, s = e[n], !(s === "\\" && C())) {
2060
+ if (f = ca(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))))
2061
+ return;
2062
+ if (r === 7)
2063
+ return t;
2064
+ }
2065
+ }
2066
+ const On = /* @__PURE__ */ new Map();
2067
+ function _a(e, t) {
2068
+ return F(e) ? e[t] : null;
2069
+ }
2070
+ function da(e, t) {
2071
+ if (!F(e))
2072
+ return null;
2073
+ let n = On.get(t);
2074
+ if (n || (n = fa(t), n && On.set(t, n)), !n)
2075
+ return null;
2076
+ const r = n.length;
2077
+ let a = e, s = 0;
2078
+ for (; s < r; ) {
2079
+ const i = a[n[s]];
2080
+ if (i === void 0 || W(a))
2081
+ return null;
2082
+ a = i, s++;
2083
+ }
2084
+ return a;
2085
+ }
2086
+ const te = {
2087
+ NOT_FOUND_KEY: 1,
2088
+ FALLBACK_TO_TRANSLATE: 2,
2089
+ CANNOT_FORMAT_NUMBER: 3,
2090
+ FALLBACK_TO_NUMBER_FORMAT: 4,
2091
+ CANNOT_FORMAT_DATE: 5,
2092
+ FALLBACK_TO_DATE_FORMAT: 6,
2093
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
2094
+ }, ma = 8, ha = {
2095
+ [te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
2096
+ [te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
2097
+ [te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
2098
+ [te.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
2099
+ [te.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
2100
+ [te.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
2101
+ [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."
2102
+ };
2103
+ function De(e, ...t) {
2104
+ return dt(ha[e], ...t);
2105
+ }
2106
+ const ga = "11.1.1", ht = -1, Ze = "en-US", _t = "", Cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2107
+ function pa() {
2108
+ return {
2109
+ upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2110
+ lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
2111
+ capitalize: (e, t) => t === "text" && I(e) ? Cn(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? Cn(e.children) : e
2112
+ };
2113
+ }
2114
+ let ar;
2115
+ function Ea(e) {
2116
+ ar = e;
2117
+ }
2118
+ let ir;
2119
+ function ba(e) {
2120
+ ir = e;
2121
+ }
2122
+ let or;
2123
+ function va(e) {
2124
+ or = e;
2125
+ }
2126
+ let lr = null;
2127
+ const ya = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2128
+ lr = e;
2129
+ }, Na = /* @__NO_SIDE_EFFECTS__ */ () => lr;
2130
+ let cr = null;
2131
+ const In = (e) => {
2132
+ cr = e;
2133
+ }, Ta = () => cr;
2134
+ let An = 0;
2135
+ function La(e = {}) {
2136
+ const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : ga, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = J(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, pa()), v = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, y = U(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = U(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 = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : ar;
2137
+ process.env.NODE_ENV !== "production" && W(e.messageCompiler) && qt(De(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2138
+ const d = W(e.messageResolver) ? e.messageResolver : ir || _a, E = W(e.localeFallbacker) ? e.localeFallbacker : or || ra, 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 : {};
2139
+ An++;
2140
+ const x = {
2141
+ version: n,
2142
+ cid: An,
2143
+ locale: r,
2144
+ fallbackLocale: s,
2145
+ messages: i,
2146
+ modifiers: p,
2147
+ pluralRules: v,
2148
+ missing: N,
2149
+ missingWarn: y,
2150
+ fallbackWarn: C,
2151
+ fallbackFormat: D,
2152
+ unresolving: A,
2153
+ postTranslation: k,
2154
+ processor: o,
2155
+ warnHtmlMessage: m,
2156
+ escapeParameter: l,
2157
+ messageCompiler: u,
2158
+ messageResolver: d,
2159
+ localeFallbacker: E,
2160
+ fallbackContext: g,
2161
+ onWarn: t,
2162
+ __meta: B
2163
+ };
2164
+ 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__) && Zs(x, n, B), x;
2165
+ }
2166
+ const St = (e) => ({ [e]: $() });
2167
+ function gt(e, t) {
2168
+ return e instanceof RegExp ? e.test(t) : e;
2169
+ }
2170
+ function ur(e, t) {
2171
+ return e instanceof RegExp ? e.test(t) : e;
2172
+ }
2173
+ function tn(e, t, n, r, a) {
2174
+ const { missing: s, onWarn: i } = e;
2175
+ if (process.env.NODE_ENV !== "production") {
2176
+ const c = e.__v_emitter;
2177
+ c && c.emit("missing", {
2178
+ locale: n,
2179
+ key: t,
2180
+ type: a,
2181
+ groupId: `${a}:${t}`
2182
+ });
2183
+ }
2184
+ if (s !== null) {
2185
+ const c = s(e, n, t, a);
2186
+ return I(c) ? c : t;
2187
+ } else
2188
+ return process.env.NODE_ENV !== "production" && ur(r, t) && i(De(te.NOT_FOUND_KEY, { key: t, locale: n })), t;
2189
+ }
2190
+ function je(e, t, n) {
2191
+ const r = e;
2192
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
2193
+ }
2194
+ function fr(e, t) {
2195
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2196
+ }
2197
+ function Oa(e, t) {
2198
+ const n = t.indexOf(e);
2199
+ if (n === -1)
2200
+ return !1;
2201
+ for (let r = n + 1; r < t.length; r++)
2202
+ if (fr(e, t[r]))
2203
+ return !0;
2204
+ return !1;
2205
+ }
2206
+ const kn = typeof Intl < "u", _r = {
2207
+ dateTimeFormat: kn && typeof Intl.DateTimeFormat < "u",
2208
+ numberFormat: kn && typeof Intl.NumberFormat < "u"
2209
+ };
2210
+ function Sn(e, ...t) {
2211
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
2212
+ if (process.env.NODE_ENV !== "production" && !_r.dateTimeFormat)
2213
+ return s(De(te.CANNOT_FORMAT_DATE)), _t;
2214
+ const [f, p, v, N] = Ut(...t), y = U(v.missingWarn) ? v.missingWarn : e.missingWarn, C = U(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = en(e, v), k = i(
2215
+ e,
2216
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2217
+ a,
2218
+ A
2219
+ );
2220
+ if (!I(f) || f === "")
2221
+ return new Intl.DateTimeFormat(A, N).format(p);
2222
+ let o = {}, m, l = null, u = A, d = null;
2223
+ const E = "datetime format";
2224
+ for (let P = 0; P < k.length; P++) {
2225
+ if (m = d = k[P], process.env.NODE_ENV !== "production" && A !== m && gt(C, f) && s(De(te.FALLBACK_TO_DATE_FORMAT, {
2226
+ key: f,
2227
+ target: m
2228
+ })), process.env.NODE_ENV !== "production" && A !== m) {
2229
+ const M = e.__v_emitter;
2230
+ M && M.emit("fallback", {
2231
+ type: E,
2232
+ key: f,
2233
+ from: u,
2234
+ to: d,
2235
+ groupId: `${E}:${f}`
2236
+ });
2237
+ }
2238
+ if (o = n[m] || {}, l = o[f], w(l))
2239
+ break;
2240
+ tn(e, f, m, y, E), u = d;
2241
+ }
2242
+ if (!w(l) || !I(m))
2243
+ return r ? ht : f;
2244
+ let g = `${m}__${f}`;
2245
+ mt(N) || (g = `${g}__${JSON.stringify(N)}`);
2246
+ let O = c.get(g);
2247
+ return O || (O = new Intl.DateTimeFormat(m, Q({}, l, N)), c.set(g, O)), D ? O.formatToParts(p) : O.format(p);
2248
+ }
2249
+ const dr = [
2250
+ "localeMatcher",
2251
+ "weekday",
2252
+ "era",
2253
+ "year",
2254
+ "month",
2255
+ "day",
2256
+ "hour",
2257
+ "minute",
2258
+ "second",
2259
+ "timeZoneName",
2260
+ "formatMatcher",
2261
+ "hour12",
2262
+ "timeZone",
2263
+ "dateStyle",
2264
+ "timeStyle",
2265
+ "calendar",
2266
+ "dayPeriod",
2267
+ "numberingSystem",
2268
+ "hourCycle",
2269
+ "fractionalSecondDigits"
2270
+ ];
2271
+ function Ut(...e) {
2272
+ const [t, n, r, a] = e, s = $();
2273
+ let i = $(), c;
2274
+ if (I(t)) {
2275
+ const f = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2276
+ if (!f)
2277
+ throw pe(Z.INVALID_ISO_DATE_ARGUMENT);
2278
+ 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();
2279
+ c = new Date(p);
2280
+ try {
2281
+ c.toISOString();
2282
+ } catch {
2283
+ throw pe(Z.INVALID_ISO_DATE_ARGUMENT);
2284
+ }
2285
+ } else if (Jr(t)) {
2286
+ if (isNaN(t.getTime()))
2287
+ throw pe(Z.INVALID_DATE_ARGUMENT);
2288
+ c = t;
2289
+ } else if (q(t))
2290
+ c = t;
2291
+ else
2292
+ throw pe(Z.INVALID_ARGUMENT);
2293
+ return I(n) ? s.key = n : w(n) && Object.keys(n).forEach((f) => {
2294
+ dr.includes(f) ? i[f] = n[f] : s[f] = n[f];
2295
+ }), I(r) ? s.locale = r : w(r) && (i = r), w(a) && (i = a), [s.key || "", c, s, i];
2296
+ }
2297
+ function Dn(e, t, n) {
2298
+ const r = e;
2299
+ for (const a in n) {
2300
+ const s = `${t}__${a}`;
2301
+ r.__datetimeFormatters.has(s) && r.__datetimeFormatters.delete(s);
2302
+ }
2303
+ }
2304
+ function Pn(e, ...t) {
2305
+ const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __numberFormatters: c } = e;
2306
+ if (process.env.NODE_ENV !== "production" && !_r.numberFormat)
2307
+ return s(De(te.CANNOT_FORMAT_NUMBER)), _t;
2308
+ const [f, p, v, N] = Kt(...t), y = U(v.missingWarn) ? v.missingWarn : e.missingWarn, C = U(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = en(e, v), k = i(
2309
+ e,
2310
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2311
+ a,
2312
+ A
2313
+ );
2314
+ if (!I(f) || f === "")
2315
+ return new Intl.NumberFormat(A, N).format(p);
2316
+ let o = {}, m, l = null, u = A, d = null;
2317
+ const E = "number format";
2318
+ for (let P = 0; P < k.length; P++) {
2319
+ if (m = d = k[P], process.env.NODE_ENV !== "production" && A !== m && gt(C, f) && s(De(te.FALLBACK_TO_NUMBER_FORMAT, {
2320
+ key: f,
2321
+ target: m
2322
+ })), process.env.NODE_ENV !== "production" && A !== m) {
2323
+ const M = e.__v_emitter;
2324
+ M && M.emit("fallback", {
2325
+ type: E,
2326
+ key: f,
2327
+ from: u,
2328
+ to: d,
2329
+ groupId: `${E}:${f}`
2330
+ });
2331
+ }
2332
+ if (o = n[m] || {}, l = o[f], w(l))
2333
+ break;
2334
+ tn(e, f, m, y, E), u = d;
2335
+ }
2336
+ if (!w(l) || !I(m))
2337
+ return r ? ht : f;
2338
+ let g = `${m}__${f}`;
2339
+ mt(N) || (g = `${g}__${JSON.stringify(N)}`);
2340
+ let O = c.get(g);
2341
+ return O || (O = new Intl.NumberFormat(m, Q({}, l, N)), c.set(g, O)), D ? O.formatToParts(p) : O.format(p);
2342
+ }
2343
+ const mr = [
2344
+ "localeMatcher",
2345
+ "style",
2346
+ "currency",
2347
+ "currencyDisplay",
2348
+ "currencySign",
2349
+ "useGrouping",
2350
+ "minimumIntegerDigits",
2351
+ "minimumFractionDigits",
2352
+ "maximumFractionDigits",
2353
+ "minimumSignificantDigits",
2354
+ "maximumSignificantDigits",
2355
+ "compactDisplay",
2356
+ "notation",
2357
+ "signDisplay",
2358
+ "unit",
2359
+ "unitDisplay",
2360
+ "roundingMode",
2361
+ "roundingPriority",
2362
+ "roundingIncrement",
2363
+ "trailingZeroDisplay"
2364
+ ];
2365
+ function Kt(...e) {
2366
+ const [t, n, r, a] = e, s = $();
2367
+ let i = $();
2368
+ if (!q(t))
2369
+ throw pe(Z.INVALID_ARGUMENT);
2370
+ const c = t;
2371
+ return I(n) ? s.key = n : w(n) && Object.keys(n).forEach((f) => {
2372
+ mr.includes(f) ? i[f] = n[f] : s[f] = n[f];
2373
+ }), I(r) ? s.locale = r : w(r) && (i = r), w(a) && (i = a), [s.key || "", c, s, i];
2374
+ }
2375
+ function Rn(e, t, n) {
2376
+ const r = e;
2377
+ for (const a in n) {
2378
+ const s = `${t}__${a}`;
2379
+ r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
2380
+ }
2381
+ }
2382
+ const Ca = (e) => e, Ia = (e) => "", Aa = "text", ka = (e) => e.length === 0 ? "" : Jt(e), Sa = zr;
2383
+ function Mn(e, t) {
2384
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2385
+ }
2386
+ function Da(e) {
2387
+ const t = q(e.pluralIndex) ? e.pluralIndex : -1;
2388
+ return e.named && (q(e.named.count) || q(e.named.n)) ? q(e.named.count) ? e.named.count : q(e.named.n) ? e.named.n : t : t;
2389
+ }
2390
+ function Pa(e, t) {
2391
+ t.count || (t.count = e), t.n || (t.n = e);
2392
+ }
2393
+ function Ra(e = {}) {
2394
+ const t = e.locale, n = Da(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 || $();
2395
+ q(e.pluralIndex) && Pa(n, f);
2396
+ const p = (o) => f[o];
2397
+ function v(o, m) {
2398
+ const l = W(e.messages) ? e.messages(o, !!m) : F(e.messages) ? e.messages[o] : !1;
2399
+ return l || (e.parent ? e.parent.message(o) : Ia);
2400
+ }
2401
+ const N = (o) => e.modifiers ? e.modifiers[o] : Ca, y = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : ka, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Sa, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Aa, k = {
2402
+ list: c,
2403
+ named: p,
2404
+ plural: s,
2405
+ linked: (o, ...m) => {
2406
+ const [l, u] = m;
2407
+ let d = "text", E = "";
2408
+ 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));
2409
+ const g = v(o, !0)(k), O = (
2410
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
2411
+ d === "vnode" && J(g) && E ? g[0] : g
2412
+ );
2413
+ return E ? N(E)(O, d) : O;
2414
+ },
2415
+ message: v,
2416
+ type: D,
2417
+ interpolate: C,
2418
+ normalize: y,
2419
+ values: Q($(), i, f)
2420
+ };
2421
+ return k;
2422
+ }
2423
+ const wn = () => "", se = (e) => W(e);
2424
+ function Fn(e, ...t) {
2425
+ const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: c } = e, [f, p] = Vt(...t), v = U(p.missingWarn) ? p.missingWarn : e.missingWarn, N = U(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, y = U(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, C = !!p.resolvedMessage, D = I(p.default) || U(p.default) ? U(p.default) ? s ? f : () => f : p.default : n ? s ? f : () => f : null, A = n || D != null && (I(D) || W(D)), k = en(e, p);
2426
+ y && Ma(p);
2427
+ let [o, m, l] = C ? [
2428
+ f,
2429
+ k,
2430
+ c[k] || $()
2431
+ ] : hr(e, f, k, i, N, v), u = o, d = f;
2432
+ if (!C && !(I(u) || ye(u) || se(u)) && A && (u = D, d = u), !C && (!(I(u) || ye(u) || se(u)) || !I(m)))
2433
+ return a ? ht : f;
2434
+ if (process.env.NODE_ENV !== "production" && I(u) && e.messageCompiler == null)
2435
+ 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;
2436
+ let E = !1;
2437
+ const g = () => {
2438
+ E = !0;
2439
+ }, O = se(u) ? u : gr(e, f, m, u, d, g);
2440
+ if (E)
2441
+ return u;
2442
+ const P = Ka(e, m, l, p), M = Ra(P), B = wa(e, O, M), x = r ? r(B, f) : B;
2443
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2444
+ const oe = {
2445
+ timestamp: Date.now(),
2446
+ key: I(f) ? f : se(u) ? u.key : "",
2447
+ locale: m || (se(u) ? u.locale : ""),
2448
+ format: I(u) ? u : se(u) ? u.source : "",
2449
+ message: x
2450
+ };
2451
+ oe.meta = Q({}, e.__meta, /* @__PURE__ */ Na() || {}), zs(oe);
2452
+ }
2453
+ return x;
2454
+ }
2455
+ function Ma(e) {
2456
+ J(e.list) ? e.list = e.list.map((t) => I(t) ? gn(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
2457
+ I(e.named[t]) && (e.named[t] = gn(e.named[t]));
2458
+ });
2459
+ }
2460
+ function hr(e, t, n, r, a, s) {
2461
+ const { messages: i, onWarn: c, messageResolver: f, localeFallbacker: p } = e, v = p(e, r, n);
2462
+ let N = $(), y, C = null, D = n, A = null;
2463
+ const k = "translate";
2464
+ for (let o = 0; o < v.length; o++) {
2465
+ if (y = A = v[o], process.env.NODE_ENV !== "production" && n !== y && !fr(n, y) && gt(a, t) && c(De(te.FALLBACK_TO_TRANSLATE, {
2466
+ key: t,
2467
+ target: y
2468
+ })), process.env.NODE_ENV !== "production" && n !== y) {
2469
+ const d = e.__v_emitter;
2470
+ d && d.emit("fallback", {
2471
+ type: k,
2472
+ key: t,
2473
+ from: D,
2474
+ to: A,
2475
+ groupId: `${k}:${t}`
2476
+ });
2477
+ }
2478
+ N = i[y] || $();
2479
+ let m = null, l, u;
2480
+ 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) {
2481
+ const d = window.performance.now(), E = e.__v_emitter;
2482
+ E && m && C && E.emit("message-resolve", {
2483
+ type: "message-resolve",
2484
+ key: t,
2485
+ message: C,
2486
+ time: d - m,
2487
+ groupId: `${k}:${t}`
2488
+ }), l && u && re && Se && (re(u), Se("intlify message resolve", l, u));
2489
+ }
2490
+ if (I(C) || ye(C) || se(C))
2491
+ break;
2492
+ if (!Oa(y, v)) {
2493
+ const d = tn(
2494
+ e,
2495
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2496
+ t,
2497
+ y,
2498
+ s,
2499
+ k
2500
+ );
2501
+ d !== t && (C = d);
2502
+ }
2503
+ D = A;
2504
+ }
2505
+ return [C, y, N];
2506
+ }
2507
+ function gr(e, t, n, r, a, s) {
2508
+ const { messageCompiler: i, warnHtmlMessage: c } = e;
2509
+ if (se(r)) {
2510
+ const y = r;
2511
+ return y.locale = y.locale || n, y.key = y.key || t, y;
2512
+ }
2513
+ if (i == null) {
2514
+ const y = () => r;
2515
+ return y.locale = n, y.key = t, y;
2516
+ }
2517
+ let f = null, p, v;
2518
+ process.env.NODE_ENV !== "production" && ie && (f = window.performance.now(), p = "intlify-message-compilation-start", v = "intlify-message-compilation-end", re && re(p));
2519
+ const N = i(r, Fa(e, n, a, r, c, s));
2520
+ if (process.env.NODE_ENV !== "production" && ie) {
2521
+ const y = window.performance.now(), C = e.__v_emitter;
2522
+ C && f && C.emit("message-compilation", {
2523
+ type: "message-compilation",
2524
+ message: r,
2525
+ time: y - f,
2526
+ groupId: `translate:${t}`
2527
+ }), p && v && re && Se && (re(v), Se("intlify message compilation", p, v));
2528
+ }
2529
+ return N.locale = n, N.key = t, N.source = r, N;
2530
+ }
2531
+ function wa(e, t, n) {
2532
+ let r = null, a, s;
2533
+ process.env.NODE_ENV !== "production" && ie && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", re && re(a));
2534
+ const i = t(n);
2535
+ if (process.env.NODE_ENV !== "production" && ie) {
2536
+ const c = window.performance.now(), f = e.__v_emitter;
2537
+ f && r && f.emit("message-evaluation", {
2538
+ type: "message-evaluation",
2539
+ value: i,
2540
+ time: c - r,
2541
+ groupId: `translate:${t.key}`
2542
+ }), a && s && re && Se && (re(s), Se("intlify message evaluation", a, s));
2543
+ }
2544
+ return i;
2545
+ }
2546
+ function Vt(...e) {
2547
+ const [t, n, r] = e, a = $();
2548
+ if (!I(t) && !q(t) && !se(t) && !ye(t))
2549
+ throw pe(Z.INVALID_ARGUMENT);
2550
+ const s = q(t) ? String(t) : (se(t), t);
2551
+ return q(n) ? a.plural = n : I(n) ? a.default = n : w(n) && !mt(n) ? a.named = n : J(n) && (a.list = n), q(r) ? a.plural = r : I(r) ? a.default = r : w(r) && Q(a, r), [s, a];
2552
+ }
2553
+ function Fa(e, t, n, r, a, s) {
2554
+ return {
2555
+ locale: t,
2556
+ key: n,
2557
+ warnHtmlMessage: a,
2558
+ onError: (i) => {
2559
+ if (s && s(i), process.env.NODE_ENV !== "production") {
2560
+ const c = Ua(r), f = `Message compilation error: ${i.message}`, p = i.location && c && es(c, i.location.start.offset, i.location.end.offset), v = e.__v_emitter;
2561
+ v && c && v.emit("compile-error", {
2562
+ message: c,
2563
+ error: i.message,
2564
+ start: i.location && i.location.start.offset,
2565
+ end: i.location && i.location.end.offset,
2566
+ groupId: `translate:${n}`
2567
+ }), console.error(p ? `${f}
2568
+ ${p}` : f);
2569
+ } else
2570
+ throw i;
2571
+ },
2572
+ onCacheKey: (i) => Xr(t, n, i)
2573
+ };
2574
+ }
2575
+ function Ua(e) {
2576
+ if (I(e))
2577
+ return e;
2578
+ if (e.loc && e.loc.source)
2579
+ return e.loc.source;
2580
+ }
2581
+ function Ka(e, t, n, r) {
2582
+ const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: c, fallbackWarn: f, missingWarn: p, fallbackContext: v } = e, y = {
2583
+ locale: t,
2584
+ modifiers: a,
2585
+ pluralRules: s,
2586
+ messages: (C, D) => {
2587
+ let A = i(n, C);
2588
+ if (A == null && (v || D)) {
2589
+ const [, , k] = hr(
2590
+ v || e,
2591
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2592
+ C,
2593
+ t,
2594
+ c,
2595
+ f,
2596
+ p
2597
+ );
2598
+ A = i(k, C);
2599
+ }
2600
+ if (I(A) || ye(A)) {
2601
+ let k = !1;
2602
+ const m = gr(e, C, t, A, C, () => {
2603
+ k = !0;
2604
+ });
2605
+ return k ? wn : m;
2606
+ } else return se(A) ? A : wn;
2607
+ }
2608
+ };
2609
+ return e.processor && (y.processor = e.processor), r.list && (y.list = r.list), r.named && (y.named = r.named), q(r.plural) && (y.pluralIndex = r.plural), y;
2610
+ }
2611
+ Ss();
2612
+ function Va() {
2613
+ return pr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2614
+ }
2615
+ function pr() {
2616
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2617
+ }
2618
+ const xa = typeof Proxy == "function", $a = "devtools-plugin:setup", Wa = "plugin:settings:set";
2619
+ let Fe, xt;
2620
+ function Ga() {
2621
+ var e;
2622
+ 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;
2623
+ }
2624
+ function Ba() {
2625
+ return Ga() ? xt.now() : Date.now();
2626
+ }
2627
+ class Ya {
2628
+ constructor(t, n) {
2629
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2630
+ const r = {};
2631
+ if (t.settings)
2632
+ for (const i in t.settings) {
2633
+ const c = t.settings[i];
2634
+ r[i] = c.defaultValue;
2635
+ }
2636
+ const a = `__vue-devtools-plugin-settings__${t.id}`;
2637
+ let s = Object.assign({}, r);
2638
+ try {
2639
+ const i = localStorage.getItem(a), c = JSON.parse(i);
2640
+ Object.assign(s, c);
2641
+ } catch {
2642
+ }
2643
+ this.fallbacks = {
2644
+ getSettings() {
2645
+ return s;
2646
+ },
2647
+ setSettings(i) {
2648
+ try {
2649
+ localStorage.setItem(a, JSON.stringify(i));
2650
+ } catch {
2651
+ }
2652
+ s = i;
2653
+ },
2654
+ now() {
2655
+ return Ba();
2656
+ }
2657
+ }, n && n.on(Wa, (i, c) => {
2658
+ i === this.plugin.id && this.fallbacks.setSettings(c);
2659
+ }), this.proxiedOn = new Proxy({}, {
2660
+ get: (i, c) => this.target ? this.target.on[c] : (...f) => {
2661
+ this.onQueue.push({
2662
+ method: c,
2663
+ args: f
2664
+ });
2665
+ }
2666
+ }), this.proxiedTarget = new Proxy({}, {
2667
+ get: (i, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...f) => (this.targetQueue.push({
2668
+ method: c,
2669
+ args: f,
2670
+ resolve: () => {
2671
+ }
2672
+ }), this.fallbacks[c](...f)) : (...f) => new Promise((p) => {
2673
+ this.targetQueue.push({
2674
+ method: c,
2675
+ args: f,
2676
+ resolve: p
2677
+ });
2678
+ })
2679
+ });
2680
+ }
2681
+ async setRealTarget(t) {
2682
+ this.target = t;
2683
+ for (const n of this.onQueue)
2684
+ this.target.on[n.method](...n.args);
2685
+ for (const n of this.targetQueue)
2686
+ n.resolve(await this.target[n.method](...n.args));
2687
+ }
2688
+ }
2689
+ function Ha(e, t) {
2690
+ const n = e, r = pr(), a = Va(), s = xa && n.enableEarlyProxy;
2691
+ if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
2692
+ a.emit($a, e, t);
2693
+ else {
2694
+ const i = s ? new Ya(n, a) : null;
2695
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2696
+ pluginDescriptor: n,
2697
+ setupFn: t,
2698
+ proxy: i
2699
+ }), i && t(i.proxiedTarget);
2700
+ }
2701
+ }
18
2702
  /*!
19
2703
  * vue-i18n v11.1.1
20
2704
  * (c) 2025 kazuya kawaguchi
21
2705
  * 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;
2706
+ */
2707
+ const Xa = "11.1.1";
2708
+ function ja() {
2709
+ 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);
2710
+ }
2711
+ const G = {
2712
+ // composer module errors
2713
+ UNEXPECTED_RETURN_TYPE: ta,
2714
+ // 24
2715
+ // legacy module errors
2716
+ INVALID_ARGUMENT: 25,
2717
+ // i18n module errors
2718
+ MUST_BE_CALL_SETUP_TOP: 26,
2719
+ NOT_INSTALLED: 27,
2720
+ // directive module errors
2721
+ REQUIRED_VALUE: 28,
2722
+ INVALID_VALUE: 29,
2723
+ // vue-devtools errors
2724
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2725
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2726
+ // unexpected error
2727
+ UNEXPECTED_ERROR: 32,
2728
+ // not compatible legacy vue-i18n constructor
2729
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2730
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2731
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2732
+ };
2733
+ function ne(e, ...t) {
2734
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: Ja, args: t } : void 0);
2735
+ }
2736
+ const Ja = {
2737
+ [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2738
+ [G.INVALID_ARGUMENT]: "Invalid argument",
2739
+ [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2740
+ [G.NOT_INSTALLED]: "Need to install with `app.use` function",
2741
+ [G.UNEXPECTED_ERROR]: "Unexpected error",
2742
+ [G.REQUIRED_VALUE]: "Required in value: {0}",
2743
+ [G.INVALID_VALUE]: "Invalid value",
2744
+ [G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2745
+ [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2746
+ [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2747
+ [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"
2748
+ }, $t = /* @__PURE__ */ me("__translateVNode"), Wt = /* @__PURE__ */ me("__datetimeParts"), Gt = /* @__PURE__ */ me("__numberParts"), Pe = /* @__PURE__ */ me("__enableEmitter"), ze = /* @__PURE__ */ me("__disableEmitter"), Er = me("__setPluralRules"), br = /* @__PURE__ */ me("__injectWithOption"), Bt = /* @__PURE__ */ me("__dispose"), de = {
2749
+ FALLBACK_TO_ROOT: ma,
2750
+ // 8
2751
+ NOT_FOUND_PARENT_SCOPE: 9,
2752
+ IGNORE_OBJ_FLATTEN: 10,
2753
+ /**
2754
+ * @deprecated will be removed at vue-i18n v12
2755
+ */
2756
+ DEPRECATE_LEGACY_MODE: 11,
2757
+ /**
2758
+ * @deprecated will be removed at vue-i18n v12
2759
+ */
2760
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
2761
+ }, qa = {
2762
+ [de.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2763
+ [de.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2764
+ [de.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2765
+ /**
2766
+ * @deprecated will be removed at vue-i18n v12
2767
+ */
2768
+ [de.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2769
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2770
+ /**
2771
+ * @deprecated will be removed at vue-i18n v12
2772
+ */
2773
+ [de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
2774
+ };
2775
+ function nt(e, ...t) {
2776
+ return dt(qa[e], ...t);
2777
+ }
2778
+ function et(e) {
2779
+ if (!F(e))
2780
+ return e;
2781
+ for (const t in e)
2782
+ if (ae(e, t))
2783
+ if (!t.includes("."))
2784
+ F(e[t]) && et(e[t]);
2785
+ else {
2786
+ const n = t.split("."), r = n.length - 1;
2787
+ let a = e, s = !1;
2788
+ for (let i = 0; i < r; i++) {
2789
+ if (n[i] in a || (a[n[i]] = $()), !F(a[n[i]])) {
2790
+ process.env.NODE_ENV !== "production" && Ne(nt(de.IGNORE_OBJ_FLATTEN, {
2791
+ key: n[i]
2792
+ })), s = !0;
2793
+ break;
2794
+ }
2795
+ a = a[n[i]];
2796
+ }
2797
+ s || (a[n[r]] = e[t], delete e[t]), F(a[n[r]]) && et(a[n[r]]);
2798
+ }
2799
+ return e;
2800
+ }
2801
+ function nn(e, t) {
2802
+ const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, i = w(n) ? n : J(r) ? $() : { [e]: $() };
2803
+ if (J(r) && r.forEach((c) => {
2804
+ if ("locale" in c && "resource" in c) {
2805
+ const { locale: f, resource: p } = c;
2806
+ f ? (i[f] = i[f] || $(), ut(p, i[f])) : ut(p, i);
2807
+ } else
2808
+ I(c) && ut(JSON.parse(c), i);
2809
+ }), a == null && s)
2810
+ for (const c in i)
2811
+ ae(i, c) && et(i[c]);
2812
+ return i;
2813
+ }
2814
+ function vr(e) {
2815
+ return e.type;
2816
+ }
2817
+ function yr(e, t, n) {
2818
+ let r = F(t.messages) ? t.messages : $();
2819
+ "__i18nGlobal" in n && (r = nn(e.locale.value, {
2820
+ messages: r,
2821
+ __i18n: n.__i18nGlobal
2822
+ }));
2823
+ const a = Object.keys(r);
2824
+ a.length && a.forEach((s) => {
2825
+ e.mergeLocaleMessage(s, r[s]);
2826
+ });
2827
+ {
2828
+ if (F(t.datetimeFormats)) {
2829
+ const s = Object.keys(t.datetimeFormats);
2830
+ s.length && s.forEach((i) => {
2831
+ e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2832
+ });
2833
+ }
2834
+ if (F(t.numberFormats)) {
2835
+ const s = Object.keys(t.numberFormats);
2836
+ s.length && s.forEach((i) => {
2837
+ e.mergeNumberFormat(i, t.numberFormats[i]);
2838
+ });
2839
+ }
2840
+ }
2841
+ }
2842
+ function Un(e) {
2843
+ return ue(Ur, null, e, 0);
2844
+ }
2845
+ const Kn = "__INTLIFY_META__", Vn = () => [], Qa = () => !1;
2846
+ let xn = 0;
2847
+ function $n(e) {
2848
+ return (t, n, r, a) => e(n, r, Je() || void 0, a);
2849
+ }
2850
+ const Za = /* @__NO_SIDE_EFFECTS__ */ () => {
2851
+ const e = Je();
2852
+ let t = null;
2853
+ return e && (t = vr(e)[Kn]) ? { [Kn]: t } : null;
2854
+ };
2855
+ function rn(e = {}) {
2856
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = ie ? Dr : Pr;
2857
+ let i = U(e.inheritLocale) ? e.inheritLocale : !0;
2858
+ const c = s(
2859
+ // prettier-ignore
2860
+ t && i ? t.locale.value : I(e.locale) ? e.locale : Ze
2861
+ ), f = s(
2862
+ // prettier-ignore
2863
+ t && i ? t.fallbackLocale.value : I(e.fallbackLocale) || J(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
2864
+ ), p = s(nn(c.value, e)), v = s(w(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), N = s(w(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
2865
+ let y = t ? t.missingWarn : U(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : U(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : U(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 : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
2866
+ const d = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
2867
+ let E = e.pluralRules || t && t.pluralRules, g;
2868
+ g = (() => {
2869
+ r && In(null);
2870
+ const b = {
2871
+ version: Xa,
2872
+ locale: c.value,
2873
+ fallbackLocale: f.value,
2874
+ messages: p.value,
2875
+ modifiers: d,
2876
+ pluralRules: E,
2877
+ missing: o === null ? void 0 : o,
2878
+ missingWarn: y,
2879
+ fallbackWarn: C,
2880
+ fallbackFormat: A,
2881
+ unresolving: !0,
2882
+ postTranslation: m === null ? void 0 : m,
2883
+ warnHtmlMessage: l,
2884
+ escapeParameter: u,
2885
+ messageResolver: e.messageResolver,
2886
+ messageCompiler: e.messageCompiler,
2887
+ __meta: { framework: "vue" }
2888
+ };
2889
+ 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);
2890
+ const L = La(b);
2891
+ return r && In(L), L;
2892
+ })(), je(g, c.value, f.value);
2893
+ function P() {
2894
+ return [
2895
+ c.value,
2896
+ f.value,
2897
+ p.value,
2898
+ v.value,
2899
+ N.value
2900
+ ];
2901
+ }
2902
+ const M = Xe({
2903
+ get: () => c.value,
2904
+ set: (b) => {
2905
+ g.locale = b, c.value = b;
2906
+ }
2907
+ }), B = Xe({
2908
+ get: () => f.value,
2909
+ set: (b) => {
2910
+ g.fallbackLocale = b, f.value = b, je(g, c.value, b);
2911
+ }
2912
+ }), x = Xe(() => p.value), oe = /* @__PURE__ */ Xe(() => v.value), le = /* @__PURE__ */ Xe(() => N.value);
2913
+ function Oe() {
2914
+ return W(m) ? m : null;
2915
+ }
2916
+ function ee(b) {
2917
+ m = b, g.postTranslation = b;
2918
+ }
2919
+ function Ee() {
2920
+ return k;
2921
+ }
2922
+ function Me(b) {
2923
+ b !== null && (o = $n(b)), k = b, g.missing = o;
2924
+ }
2925
+ function We(b, L) {
2926
+ return b !== "translate" || !L.resolvedMessage;
2927
+ }
2928
+ const he = (b, L, V, X, Ie, st) => {
2929
+ P();
2930
+ let we;
2931
+ try {
2932
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? Ta() : void 0), we = b(g);
2933
+ } finally {
2934
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2935
+ }
2936
+ if (V !== "translate exists" && // for not `te` (e.g `t`)
2937
+ q(we) && we === ht || V === "translate exists" && !we) {
2938
+ const [Ae, kr] = L();
2939
+ if (process.env.NODE_ENV !== "production" && t && I(Ae) && We(V, kr) && (D && (gt(C, Ae) || ur(y, Ae)) && Ne(nt(de.FALLBACK_TO_ROOT, {
2940
+ key: Ae,
2941
+ type: V
2942
+ })), process.env.NODE_ENV !== "production")) {
2943
+ const { __v_emitter: un } = g;
2944
+ un && D && un.emit("fallback", {
2945
+ type: V,
2946
+ key: Ae,
2947
+ to: "global",
2948
+ groupId: `${V}:${Ae}`
2949
+ });
2950
+ }
2951
+ return t && D ? X(t) : Ie(Ae);
2952
+ } else {
2953
+ if (st(we))
2954
+ return we;
2955
+ throw ne(G.UNEXPECTED_RETURN_TYPE);
2956
+ }
2957
+ };
2958
+ function Ge(...b) {
2959
+ return he((L) => Reflect.apply(Fn, null, [L, ...b]), () => Vt(...b), "translate", (L) => Reflect.apply(L.t, L, [...b]), (L) => L, (L) => I(L));
2960
+ }
2961
+ function Et(...b) {
2962
+ const [L, V, X] = b;
2963
+ if (X && !F(X))
2964
+ throw ne(G.INVALID_ARGUMENT);
2965
+ return Ge(L, V, Q({ resolvedMessage: !0 }, X || {}));
2966
+ }
2967
+ function bt(...b) {
2968
+ return he((L) => Reflect.apply(Sn, null, [L, ...b]), () => Ut(...b), "datetime format", (L) => Reflect.apply(L.d, L, [...b]), () => _t, (L) => I(L));
2969
+ }
2970
+ function vt(...b) {
2971
+ return he((L) => Reflect.apply(Pn, null, [L, ...b]), () => Kt(...b), "number format", (L) => Reflect.apply(L.n, L, [...b]), () => _t, (L) => I(L));
2972
+ }
2973
+ function yt(b) {
2974
+ return b.map((L) => I(L) || q(L) || U(L) ? Un(String(L)) : L);
2975
+ }
2976
+ const Nt = {
2977
+ normalize: yt,
2978
+ interpolate: (b) => b,
2979
+ type: "vnode"
2980
+ };
2981
+ function rt(...b) {
2982
+ return he((L) => {
2983
+ let V;
2984
+ const X = L;
2985
+ try {
2986
+ X.processor = Nt, V = Reflect.apply(Fn, null, [X, ...b]);
2987
+ } finally {
2988
+ X.processor = null;
2989
+ }
2990
+ return V;
2991
+ }, () => Vt(...b), "translate", (L) => L[$t](...b), (L) => [Un(L)], (L) => J(L));
2992
+ }
2993
+ function Tt(...b) {
2994
+ return he((L) => Reflect.apply(Pn, null, [L, ...b]), () => Kt(...b), "number format", (L) => L[Gt](...b), Vn, (L) => I(L) || J(L));
2995
+ }
2996
+ function Lt(...b) {
2997
+ return he((L) => Reflect.apply(Sn, null, [L, ...b]), () => Ut(...b), "datetime format", (L) => L[Wt](...b), Vn, (L) => I(L) || J(L));
2998
+ }
2999
+ function Ot(b) {
3000
+ E = b, g.pluralRules = E;
3001
+ }
3002
+ function Ct(b, L) {
3003
+ return he(() => {
3004
+ if (!b)
3005
+ return !1;
3006
+ const V = I(L) ? L : c.value, X = Ce(V), Ie = g.messageResolver(X, b);
3007
+ return ye(Ie) || se(Ie) || I(Ie);
3008
+ }, () => [b], "translate exists", (V) => Reflect.apply(V.te, V, [b, L]), Qa, (V) => U(V));
3009
+ }
3010
+ function Be(b) {
3011
+ let L = null;
3012
+ const V = sr(g, f.value, c.value);
3013
+ for (let X = 0; X < V.length; X++) {
3014
+ const Ie = p.value[V[X]] || {}, st = g.messageResolver(Ie, b);
3015
+ if (st != null) {
3016
+ L = st;
3017
+ break;
3018
+ }
3019
+ }
3020
+ return L;
3021
+ }
3022
+ function Ye(b) {
3023
+ const L = Be(b);
3024
+ return L ?? (t ? t.tm(b) || {} : {});
3025
+ }
3026
+ function Ce(b) {
3027
+ return p.value[b] || {};
3028
+ }
3029
+ function He(b, L) {
3030
+ if (a) {
3031
+ const V = { [b]: L };
3032
+ for (const X in V)
3033
+ ae(V, X) && et(V[X]);
3034
+ L = V[b];
3035
+ }
3036
+ p.value[b] = L, g.messages = p.value;
3037
+ }
3038
+ function It(b, L) {
3039
+ p.value[b] = p.value[b] || {};
3040
+ const V = { [b]: L };
3041
+ if (a)
3042
+ for (const X in V)
3043
+ ae(V, X) && et(V[X]);
3044
+ L = V[b], ut(L, p.value[b]), g.messages = p.value;
3045
+ }
3046
+ function _(b) {
3047
+ return v.value[b] || {};
3048
+ }
3049
+ function h(b, L) {
3050
+ v.value[b] = L, g.datetimeFormats = v.value, Dn(g, b, L);
3051
+ }
3052
+ function T(b, L) {
3053
+ v.value[b] = Q(v.value[b] || {}, L), g.datetimeFormats = v.value, Dn(g, b, L);
3054
+ }
3055
+ function S(b) {
3056
+ return N.value[b] || {};
3057
+ }
3058
+ function Y(b, L) {
3059
+ N.value[b] = L, g.numberFormats = N.value, Rn(g, b, L);
3060
+ }
3061
+ function H(b, L) {
3062
+ N.value[b] = Q(N.value[b] || {}, L), g.numberFormats = N.value, Rn(g, b, L);
3063
+ }
3064
+ xn++, t && ie && (Rt(t.locale, (b) => {
3065
+ i && (c.value = b, g.locale = b, je(g, c.value, f.value));
3066
+ }), Rt(t.fallbackLocale, (b) => {
3067
+ i && (f.value = b, g.fallbackLocale = b, je(g, c.value, f.value));
3068
+ }));
3069
+ const K = {
3070
+ id: xn,
3071
+ locale: M,
3072
+ fallbackLocale: B,
3073
+ get inheritLocale() {
3074
+ return i;
3075
+ },
3076
+ set inheritLocale(b) {
3077
+ i = b, b && t && (c.value = t.locale.value, f.value = t.fallbackLocale.value, je(g, c.value, f.value));
3078
+ },
3079
+ get availableLocales() {
3080
+ return Object.keys(p.value).sort();
3081
+ },
3082
+ messages: x,
3083
+ get modifiers() {
3084
+ return d;
3085
+ },
3086
+ get pluralRules() {
3087
+ return E || {};
3088
+ },
3089
+ get isGlobal() {
3090
+ return r;
3091
+ },
3092
+ get missingWarn() {
3093
+ return y;
3094
+ },
3095
+ set missingWarn(b) {
3096
+ y = b, g.missingWarn = y;
3097
+ },
3098
+ get fallbackWarn() {
3099
+ return C;
3100
+ },
3101
+ set fallbackWarn(b) {
3102
+ C = b, g.fallbackWarn = C;
3103
+ },
3104
+ get fallbackRoot() {
3105
+ return D;
3106
+ },
3107
+ set fallbackRoot(b) {
3108
+ D = b;
3109
+ },
3110
+ get fallbackFormat() {
3111
+ return A;
3112
+ },
3113
+ set fallbackFormat(b) {
3114
+ A = b, g.fallbackFormat = A;
3115
+ },
3116
+ get warnHtmlMessage() {
3117
+ return l;
3118
+ },
3119
+ set warnHtmlMessage(b) {
3120
+ l = b, g.warnHtmlMessage = b;
3121
+ },
3122
+ get escapeParameter() {
3123
+ return u;
3124
+ },
3125
+ set escapeParameter(b) {
3126
+ u = b, g.escapeParameter = b;
3127
+ },
3128
+ t: Ge,
3129
+ getLocaleMessage: Ce,
3130
+ setLocaleMessage: He,
3131
+ mergeLocaleMessage: It,
3132
+ getPostTranslationHandler: Oe,
3133
+ setPostTranslationHandler: ee,
3134
+ getMissingHandler: Ee,
3135
+ setMissingHandler: Me,
3136
+ [Er]: Ot
3137
+ };
3138
+ return K.datetimeFormats = oe, K.numberFormats = le, K.rt = Et, K.te = Ct, K.tm = Ye, K.d = bt, K.n = vt, K.getDateTimeFormat = _, K.setDateTimeFormat = h, K.mergeDateTimeFormat = T, K.getNumberFormat = S, K.setNumberFormat = Y, K.mergeNumberFormat = H, K[br] = n, K[$t] = rt, K[Wt] = Lt, K[Gt] = Tt, process.env.NODE_ENV !== "production" && (K[Pe] = (b) => {
3139
+ g.__v_emitter = b;
3140
+ }, K[ze] = () => {
3141
+ g.__v_emitter = void 0;
3142
+ }), K;
3143
+ }
3144
+ const Nr = "vue-i18n: composer properties", Dt = {
3145
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
3146
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
3147
+ "vue-i18n-timeline": "Vue I18n"
3148
+ }, za = {
3149
+ "vue-i18n-resource-inspector": "Search for scopes ..."
3150
+ }, ei = {
3151
+ "vue-i18n-timeline": 16764185
3152
+ };
3153
+ let Yt;
3154
+ async function ti(e, t) {
3155
+ return new Promise((n, r) => {
3156
+ try {
3157
+ Ha({
3158
+ id: "vue-devtools-plugin-vue-i18n",
3159
+ label: Dt["vue-devtools-plugin-vue-i18n"],
3160
+ packageName: "vue-i18n",
3161
+ homepage: "https://vue-i18n.intlify.dev",
3162
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
3163
+ componentStateTypes: [Nr],
3164
+ app: e
3165
+ // eslint-disable-line @typescript-eslint/no-explicit-any
3166
+ }, (a) => {
3167
+ Yt = a, a.on.visitComponentTree(({ componentInstance: i, treeNode: c }) => {
3168
+ ni(i, c, t);
3169
+ }), a.on.inspectComponent(({ componentInstance: i, instanceData: c }) => {
3170
+ 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__));
3171
+ }), a.addInspector({
3172
+ id: "vue-i18n-resource-inspector",
3173
+ label: Dt["vue-i18n-resource-inspector"],
3174
+ icon: "language",
3175
+ treeFilterPlaceholder: za["vue-i18n-resource-inspector"]
3176
+ }), a.on.getInspectorTree((i) => {
3177
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && oi(i, t);
3178
+ });
3179
+ const s = /* @__PURE__ */ new Map();
3180
+ a.on.getInspectorState(async (i) => {
3181
+ if (i.app === e && i.inspectorId === "vue-i18n-resource-inspector")
3182
+ if (a.unhighlightElement(), ci(i, t), i.nodeId === "global") {
3183
+ if (!s.has(i.app)) {
3184
+ const [c] = await a.getComponentInstances(i.app);
3185
+ s.set(i.app, c);
3186
+ }
3187
+ a.highlightElement(s.get(i.app));
3188
+ } else {
3189
+ const c = li(i.nodeId, t);
3190
+ c && a.highlightElement(c);
3191
+ }
3192
+ }), a.on.editInspectorState((i) => {
3193
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && fi(i, t);
3194
+ }), a.addTimelineLayer({
3195
+ id: "vue-i18n-timeline",
3196
+ label: Dt["vue-i18n-timeline"],
3197
+ color: ei["vue-i18n-timeline"]
3198
+ }), n(!0);
3199
+ });
3200
+ } catch (a) {
3201
+ console.error(a), r(!1);
3202
+ }
3203
+ });
3204
+ }
3205
+ function Tr(e) {
3206
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
3207
+ }
3208
+ function ni(e, t, n) {
3209
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
3210
+ if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
3211
+ const a = {
3212
+ label: `i18n (${Tr(e)} Scope)`,
3213
+ textColor: 0,
3214
+ backgroundColor: 16764185
3215
+ };
3216
+ t.tags.push(a);
3217
+ }
3218
+ }
3219
+ function Wn(e, t) {
3220
+ const n = Nr;
3221
+ e.state.push({
3222
+ type: n,
3223
+ key: "locale",
3224
+ editable: !0,
3225
+ value: t.locale.value
3226
+ }), e.state.push({
3227
+ type: n,
3228
+ key: "availableLocales",
3229
+ editable: !1,
3230
+ value: t.availableLocales
3231
+ }), e.state.push({
3232
+ type: n,
3233
+ key: "fallbackLocale",
3234
+ editable: !0,
3235
+ value: t.fallbackLocale.value
3236
+ }), e.state.push({
3237
+ type: n,
3238
+ key: "inheritLocale",
3239
+ editable: !0,
3240
+ value: t.inheritLocale
3241
+ }), e.state.push({
3242
+ type: n,
3243
+ key: "messages",
3244
+ editable: !1,
3245
+ value: sn(t.messages.value)
3246
+ }), e.state.push({
3247
+ type: n,
3248
+ key: "datetimeFormats",
3249
+ editable: !1,
3250
+ value: t.datetimeFormats.value
3251
+ }), e.state.push({
3252
+ type: n,
3253
+ key: "numberFormats",
3254
+ editable: !1,
3255
+ value: t.numberFormats.value
3256
+ });
3257
+ }
3258
+ function sn(e) {
3259
+ const t = {};
3260
+ return Object.keys(e).forEach((n) => {
3261
+ const r = e[n];
3262
+ W(r) && "source" in r ? t[n] = ii(r) : ye(r) && r.loc && r.loc.source ? t[n] = r.loc.source : F(r) ? t[n] = sn(r) : t[n] = r;
3263
+ }), t;
3264
+ }
3265
+ const ri = {
3266
+ "<": "&lt;",
3267
+ ">": "&gt;",
3268
+ '"': "&quot;",
3269
+ "&": "&amp;"
3270
+ };
3271
+ function si(e) {
3272
+ return e.replace(/[<>"&]/g, ai);
3273
+ }
3274
+ function ai(e) {
3275
+ return ri[e] || e;
3276
+ }
3277
+ function ii(e) {
3278
+ return {
3279
+ _custom: {
3280
+ type: "function",
3281
+ display: `<span>ƒ</span> ${e.source ? `("${si(e.source)}")` : "(?)"}`
3282
+ }
3283
+ };
3284
+ }
3285
+ function oi(e, t) {
3286
+ e.rootNodes.push({
3287
+ id: "global",
3288
+ label: "Global Scope"
3289
+ });
3290
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
3291
+ for (const [r, a] of t.__instances) {
3292
+ const s = t.mode === "composition" ? a : a.__composer;
3293
+ n !== s && e.rootNodes.push({
3294
+ id: s.id.toString(),
3295
+ label: `${Tr(r)} Scope`
3296
+ });
3297
+ }
3298
+ }
3299
+ function li(e, t) {
3300
+ let n = null;
3301
+ if (e !== "global") {
3302
+ for (const [r, a] of t.__instances.entries())
3303
+ if (a.id.toString() === e) {
3304
+ n = r;
3305
+ break;
3306
+ }
3307
+ }
3308
+ return n;
3309
+ }
3310
+ function Lr(e, t) {
3311
+ if (e === "global")
3312
+ return t.mode === "composition" ? t.global : t.global.__composer;
3313
+ {
3314
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
3315
+ return n ? t.mode === "composition" ? n : n.__composer : null;
3316
+ }
3317
+ }
3318
+ function ci(e, t) {
3319
+ const n = Lr(e.nodeId, t);
3320
+ return n && (e.state = ui(n)), null;
3321
+ }
3322
+ function ui(e) {
3323
+ const t = {}, n = "Locale related info", r = [
3324
+ {
3325
+ type: n,
3326
+ key: "locale",
3327
+ editable: !0,
3328
+ value: e.locale.value
3329
+ },
3330
+ {
3331
+ type: n,
3332
+ key: "fallbackLocale",
3333
+ editable: !0,
3334
+ value: e.fallbackLocale.value
3335
+ },
3336
+ {
3337
+ type: n,
3338
+ key: "availableLocales",
3339
+ editable: !1,
3340
+ value: e.availableLocales
3341
+ },
3342
+ {
3343
+ type: n,
3344
+ key: "inheritLocale",
3345
+ editable: !0,
3346
+ value: e.inheritLocale
3347
+ }
3348
+ ];
3349
+ t[n] = r;
3350
+ const a = "Locale messages info", s = [
3351
+ {
3352
+ type: a,
3353
+ key: "messages",
3354
+ editable: !1,
3355
+ value: sn(e.messages.value)
3356
+ }
3357
+ ];
3358
+ t[a] = s;
3359
+ {
3360
+ const i = "Datetime formats info", c = [
3361
+ {
3362
+ type: i,
3363
+ key: "datetimeFormats",
3364
+ editable: !1,
3365
+ value: e.datetimeFormats.value
3366
+ }
3367
+ ];
3368
+ t[i] = c;
3369
+ const f = "Datetime formats info", p = [
3370
+ {
3371
+ type: f,
3372
+ key: "numberFormats",
3373
+ editable: !1,
3374
+ value: e.numberFormats.value
3375
+ }
3376
+ ];
3377
+ t[f] = p;
3378
+ }
3379
+ return t;
3380
+ }
3381
+ function tt(e, t) {
3382
+ if (Yt) {
3383
+ let n;
3384
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), Yt.addTimelineEvent({
3385
+ layerId: "vue-i18n-timeline",
3386
+ event: {
3387
+ title: e,
3388
+ groupId: n,
3389
+ time: Date.now(),
3390
+ meta: {},
3391
+ data: t || {},
3392
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
3393
+ }
3394
+ });
3395
+ }
3396
+ }
3397
+ function fi(e, t) {
3398
+ const n = Lr(e.nodeId, t);
3399
+ if (n) {
3400
+ const [r] = e.path;
3401
+ r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || J(e.state.value) || F(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && U(e.state.value) && (n.inheritLocale = e.state.value);
3402
+ }
3403
+ }
3404
+ function _i(e) {
3405
+ const t = I(e.locale) ? e.locale : Ze, n = I(e.fallbackLocale) || J(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, a = U(e.silentTranslationWarn) || Ve(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = U(e.silentFallbackWarn) || Ve(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = U(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 = U(e.sync) ? e.sync : !0;
3406
+ let D = e.messages;
3407
+ if (w(e.sharedMessages)) {
3408
+ const d = e.sharedMessages;
3409
+ D = Object.keys(d).reduce((g, O) => {
3410
+ const P = g[O] || (g[O] = {});
3411
+ return Q(P, d[O]), g;
3412
+ }, D || {});
3413
+ }
3414
+ const { __i18n: A, __root: k, __injectWithOption: o } = e, m = e.datetimeFormats, l = e.numberFormats, u = e.flatJson;
3415
+ return {
3416
+ locale: t,
3417
+ fallbackLocale: n,
3418
+ messages: D,
3419
+ flatJson: u,
3420
+ datetimeFormats: m,
3421
+ numberFormats: l,
3422
+ missing: r,
3423
+ missingWarn: a,
3424
+ fallbackWarn: s,
3425
+ fallbackRoot: i,
3426
+ fallbackFormat: c,
3427
+ modifiers: f,
3428
+ pluralRules: p,
3429
+ postTranslation: v,
3430
+ warnHtmlMessage: N,
3431
+ escapeParameter: y,
3432
+ messageResolver: e.messageResolver,
3433
+ inheritLocale: C,
3434
+ __i18n: A,
3435
+ __root: k,
3436
+ __injectWithOption: o
3437
+ };
3438
+ }
3439
+ function Ht(e = {}) {
3440
+ const t = rn(_i(e)), { __extender: n } = e, r = {
3441
+ // id
3442
+ id: t.id,
3443
+ // locale
3444
+ get locale() {
3445
+ return t.locale.value;
3446
+ },
3447
+ set locale(a) {
3448
+ t.locale.value = a;
3449
+ },
3450
+ // fallbackLocale
3451
+ get fallbackLocale() {
3452
+ return t.fallbackLocale.value;
3453
+ },
3454
+ set fallbackLocale(a) {
3455
+ t.fallbackLocale.value = a;
3456
+ },
3457
+ // messages
3458
+ get messages() {
3459
+ return t.messages.value;
3460
+ },
3461
+ // datetimeFormats
3462
+ get datetimeFormats() {
3463
+ return t.datetimeFormats.value;
3464
+ },
3465
+ // numberFormats
3466
+ get numberFormats() {
3467
+ return t.numberFormats.value;
3468
+ },
3469
+ // availableLocales
3470
+ get availableLocales() {
3471
+ return t.availableLocales;
3472
+ },
3473
+ // missing
3474
+ get missing() {
3475
+ return t.getMissingHandler();
3476
+ },
3477
+ set missing(a) {
3478
+ t.setMissingHandler(a);
3479
+ },
3480
+ // silentTranslationWarn
3481
+ get silentTranslationWarn() {
3482
+ return U(t.missingWarn) ? !t.missingWarn : t.missingWarn;
3483
+ },
3484
+ set silentTranslationWarn(a) {
3485
+ t.missingWarn = U(a) ? !a : a;
3486
+ },
3487
+ // silentFallbackWarn
3488
+ get silentFallbackWarn() {
3489
+ return U(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
3490
+ },
3491
+ set silentFallbackWarn(a) {
3492
+ t.fallbackWarn = U(a) ? !a : a;
3493
+ },
3494
+ // modifiers
3495
+ get modifiers() {
3496
+ return t.modifiers;
3497
+ },
3498
+ // formatFallbackMessages
3499
+ get formatFallbackMessages() {
3500
+ return t.fallbackFormat;
3501
+ },
3502
+ set formatFallbackMessages(a) {
3503
+ t.fallbackFormat = a;
3504
+ },
3505
+ // postTranslation
3506
+ get postTranslation() {
3507
+ return t.getPostTranslationHandler();
3508
+ },
3509
+ set postTranslation(a) {
3510
+ t.setPostTranslationHandler(a);
3511
+ },
3512
+ // sync
3513
+ get sync() {
3514
+ return t.inheritLocale;
3515
+ },
3516
+ set sync(a) {
3517
+ t.inheritLocale = a;
3518
+ },
3519
+ // warnInHtmlMessage
3520
+ get warnHtmlInMessage() {
3521
+ return t.warnHtmlMessage ? "warn" : "off";
3522
+ },
3523
+ set warnHtmlInMessage(a) {
3524
+ t.warnHtmlMessage = a !== "off";
3525
+ },
3526
+ // escapeParameterHtml
3527
+ get escapeParameterHtml() {
3528
+ return t.escapeParameter;
3529
+ },
3530
+ set escapeParameterHtml(a) {
3531
+ t.escapeParameter = a;
3532
+ },
3533
+ // pluralizationRules
3534
+ get pluralizationRules() {
3535
+ return t.pluralRules || {};
3536
+ },
3537
+ // for internal
3538
+ __composer: t,
3539
+ // t
3540
+ t(...a) {
3541
+ return Reflect.apply(t.t, t, [...a]);
3542
+ },
3543
+ // rt
3544
+ rt(...a) {
3545
+ return Reflect.apply(t.rt, t, [...a]);
3546
+ },
3547
+ // te
3548
+ te(a, s) {
3549
+ return t.te(a, s);
3550
+ },
3551
+ // tm
3552
+ tm(a) {
3553
+ return t.tm(a);
3554
+ },
3555
+ // getLocaleMessage
3556
+ getLocaleMessage(a) {
3557
+ return t.getLocaleMessage(a);
3558
+ },
3559
+ // setLocaleMessage
3560
+ setLocaleMessage(a, s) {
3561
+ t.setLocaleMessage(a, s);
3562
+ },
3563
+ // mergeLocaleMessage
3564
+ mergeLocaleMessage(a, s) {
3565
+ t.mergeLocaleMessage(a, s);
3566
+ },
3567
+ // d
3568
+ d(...a) {
3569
+ return Reflect.apply(t.d, t, [...a]);
3570
+ },
3571
+ // getDateTimeFormat
3572
+ getDateTimeFormat(a) {
3573
+ return t.getDateTimeFormat(a);
3574
+ },
3575
+ // setDateTimeFormat
3576
+ setDateTimeFormat(a, s) {
3577
+ t.setDateTimeFormat(a, s);
3578
+ },
3579
+ // mergeDateTimeFormat
3580
+ mergeDateTimeFormat(a, s) {
3581
+ t.mergeDateTimeFormat(a, s);
3582
+ },
3583
+ // n
3584
+ n(...a) {
3585
+ return Reflect.apply(t.n, t, [...a]);
3586
+ },
3587
+ // getNumberFormat
3588
+ getNumberFormat(a) {
3589
+ return t.getNumberFormat(a);
3590
+ },
3591
+ // setNumberFormat
3592
+ setNumberFormat(a, s) {
3593
+ t.setNumberFormat(a, s);
3594
+ },
3595
+ // mergeNumberFormat
3596
+ mergeNumberFormat(a, s) {
3597
+ t.mergeNumberFormat(a, s);
3598
+ }
3599
+ };
3600
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (a) => {
3601
+ const s = t;
3602
+ s[Pe] && s[Pe](a);
3603
+ }, r.__disableEmitter = () => {
3604
+ const a = t;
3605
+ a[ze] && a[ze]();
3606
+ }), r;
3607
+ }
3608
+ function di(e, t, n) {
3609
+ return {
3610
+ beforeCreate() {
3611
+ const r = Je();
3612
+ if (!r)
3613
+ throw ne(G.UNEXPECTED_ERROR);
3614
+ const a = this.$options;
3615
+ if (a.i18n) {
3616
+ const s = a.i18n;
3617
+ if (a.__i18n && (s.__i18n = a.__i18n), s.__root = t, this === this.$root)
3618
+ this.$i18n = Gn(e, s);
3619
+ else {
3620
+ s.__injectWithOption = !0, s.__extender = n.__vueI18nExtend, this.$i18n = Ht(s);
3621
+ const i = this.$i18n;
3622
+ i.__extender && (i.__disposer = i.__extender(this.$i18n));
3623
+ }
3624
+ } else if (a.__i18n)
3625
+ if (this === this.$root)
3626
+ this.$i18n = Gn(e, a);
3627
+ else {
3628
+ this.$i18n = Ht({
3629
+ __i18n: a.__i18n,
3630
+ __injectWithOption: !0,
3631
+ __extender: n.__vueI18nExtend,
3632
+ __root: t
3633
+ });
3634
+ const s = this.$i18n;
3635
+ s.__extender && (s.__disposer = s.__extender(this.$i18n));
3636
+ }
3637
+ else
3638
+ this.$i18n = e;
3639
+ a.__i18nGlobal && yr(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);
3640
+ },
3641
+ mounted() {
3642
+ if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
3643
+ const r = this.$i18n;
3644
+ this.$el.__VUE_I18N__ = r.__composer;
3645
+ const a = this.__v_emitter = Qt();
3646
+ r.__enableEmitter && r.__enableEmitter(a), a.on("*", tt);
3647
+ }
3648
+ },
3649
+ unmounted() {
3650
+ const r = Je();
3651
+ if (!r)
3652
+ throw ne(G.UNEXPECTED_ERROR);
3653
+ const a = this.$i18n;
3654
+ 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;
3655
+ }
3656
+ };
3657
+ }
3658
+ function Gn(e, t) {
3659
+ 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[Er](t.pluralizationRules || e.pluralizationRules);
3660
+ const n = nn(e.locale, {
3661
+ messages: t.messages,
3662
+ __i18n: t.__i18n
3663
+ });
3664
+ 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;
3665
+ }
3666
+ const an = {
3667
+ tag: {
3668
+ type: [String, Object]
3669
+ },
3670
+ locale: {
3671
+ type: String
3672
+ },
3673
+ scope: {
3674
+ type: String,
3675
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
3676
+ validator: (e) => e === "parent" || e === "global",
3677
+ default: "parent"
3678
+ /* ComponentI18nScope */
3679
+ },
3680
+ i18n: {
3681
+ type: Object
3682
+ }
3683
+ };
3684
+ function mi({ slots: e }, t) {
3685
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
3686
+ ...r,
3687
+ // prettier-ignore
3688
+ ...a.type === er ? a.children : [a]
3689
+ ], []) : t.reduce((n, r) => {
3690
+ const a = e[r];
3691
+ return a && (n[r] = a()), n;
3692
+ }, $());
3693
+ }
3694
+ function Or() {
3695
+ return er;
3696
+ }
3697
+ const hi = /* @__PURE__ */ Xt({
3698
+ /* eslint-disable */
3699
+ name: "i18n-t",
3700
+ props: Q({
3701
+ keypath: {
3702
+ type: String,
3703
+ required: !0
3704
+ },
3705
+ plural: {
3706
+ type: [Number, String],
3707
+ validator: (e) => q(e) || !isNaN(e)
3708
+ }
3709
+ }, an),
3710
+ /* eslint-enable */
3711
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3712
+ setup(e, t) {
3713
+ const { slots: n, attrs: r } = t, a = e.i18n || on({
3714
+ useScope: e.scope,
3715
+ __useComponent: !0
3716
+ });
3717
+ return () => {
3718
+ const s = Object.keys(n).filter((N) => N !== "_"), i = $();
3719
+ e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = I(e.plural) ? +e.plural : e.plural);
3720
+ const c = mi(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), v = I(e.tag) || F(e.tag) ? e.tag : Or();
3721
+ return zn(v, p, f);
3722
+ };
3723
+ }
3724
+ }), Bn = hi;
3725
+ function gi(e) {
3726
+ return J(e) && !I(e[0]);
3727
+ }
3728
+ function Cr(e, t, n, r) {
3729
+ const { slots: a, attrs: s } = t;
3730
+ return () => {
3731
+ const i = { part: !0 };
3732
+ let c = $();
3733
+ 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, $()));
3734
+ const f = r(e.value, i, c);
3735
+ let p = [i.key];
3736
+ J(f) ? p = f.map((y, C) => {
3737
+ const D = a[y.type], A = D ? D({ [y.type]: y.value, index: C, parts: f }) : [y.value];
3738
+ return gi(A) && (A[0].key = `${y.type}-${C}`), A;
3739
+ }) : I(f) && (p = [f]);
3740
+ const v = Q($(), s), N = I(e.tag) || F(e.tag) ? e.tag : Or();
3741
+ return zn(N, v, p);
3742
+ };
3743
+ }
3744
+ const pi = /* @__PURE__ */ Xt({
3745
+ /* eslint-disable */
3746
+ name: "i18n-n",
3747
+ props: Q({
3748
+ value: {
3749
+ type: Number,
3750
+ required: !0
3751
+ },
3752
+ format: {
3753
+ type: [String, Object]
3754
+ }
3755
+ }, an),
3756
+ /* eslint-enable */
3757
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3758
+ setup(e, t) {
3759
+ const n = e.i18n || on({
3760
+ useScope: e.scope,
3761
+ __useComponent: !0
3762
+ });
3763
+ return Cr(e, t, mr, (...r) => (
3764
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3765
+ n[Gt](...r)
3766
+ ));
3767
+ }
3768
+ }), Yn = pi;
3769
+ function Ei(e, t) {
3770
+ const n = e;
3771
+ if (e.mode === "composition")
3772
+ return n.__getInstance(t) || e.global;
3773
+ {
3774
+ const r = n.__getInstance(t);
3775
+ return r != null ? r.__composer : e.global.__composer;
3776
+ }
3777
+ }
3778
+ function bi(e) {
3779
+ const t = (i) => {
3780
+ process.env.NODE_ENV !== "production" && qt(nt(de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3781
+ const { instance: c, value: f } = i;
3782
+ if (!c || !c.$)
3783
+ throw ne(G.UNEXPECTED_ERROR);
3784
+ const p = Ei(e, c.$), v = Hn(f);
3785
+ return [
3786
+ Reflect.apply(p.t, p, [...Xn(v)]),
3787
+ p
3788
+ ];
3789
+ };
3790
+ return {
3791
+ created: (i, c) => {
3792
+ const [f, p] = t(c);
3793
+ ie && e.global === p && (i.__i18nWatcher = Rt(p.locale, () => {
3794
+ c.instance && c.instance.$forceUpdate();
3795
+ })), i.__composer = p, i.textContent = f;
3796
+ },
3797
+ unmounted: (i) => {
3798
+ ie && i.__i18nWatcher && (i.__i18nWatcher(), i.__i18nWatcher = void 0, delete i.__i18nWatcher), i.__composer && (i.__composer = void 0, delete i.__composer);
3799
+ },
3800
+ beforeUpdate: (i, { value: c }) => {
3801
+ if (i.__composer) {
3802
+ const f = i.__composer, p = Hn(c);
3803
+ i.textContent = Reflect.apply(f.t, f, [
3804
+ ...Xn(p)
3805
+ ]);
3806
+ }
3807
+ },
3808
+ getSSRProps: (i) => {
3809
+ const [c] = t(i);
3810
+ return { textContent: c };
3811
+ }
3812
+ };
3813
+ }
3814
+ function Hn(e) {
3815
+ if (I(e))
3816
+ return { path: e };
3817
+ if (w(e)) {
3818
+ if (!("path" in e))
3819
+ throw ne(G.REQUIRED_VALUE, "path");
3820
+ return e;
3821
+ } else
3822
+ throw ne(G.INVALID_VALUE);
3823
+ }
3824
+ function Xn(e) {
3825
+ const { path: t, locale: n, args: r, choice: a, plural: s } = e, i = {}, c = r || {};
3826
+ return I(n) && (i.locale = n), q(a) && (i.plural = a), q(s) && (i.plural = s), [t, c, i];
3827
+ }
3828
+ function vi(e, t, ...n) {
3829
+ const r = w(n[0]) ? n[0] : {};
3830
+ (U(r.globalInstall) ? r.globalInstall : !0) && ([Bn.name, "I18nT"].forEach((s) => e.component(s, Bn)), [Yn.name, "I18nN"].forEach((s) => e.component(s, Yn)), [Jn.name, "I18nD"].forEach((s) => e.component(s, Jn))), e.directive("t", bi(t));
3831
+ }
3832
+ const yi = /* @__PURE__ */ me("global-vue-i18n");
3833
+ function Ni(e = {}) {
3834
+ const t = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3835
+ process.env.NODE_ENV !== "production" && t && qt(nt(de.DEPRECATE_LEGACY_MODE));
3836
+ const n = U(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Ti(e, t), i = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3837
+ function c(N) {
3838
+ return r.get(N) || null;
3839
+ }
3840
+ function f(N, y) {
3841
+ r.set(N, y);
3842
+ }
3843
+ function p(N) {
3844
+ r.delete(N);
3845
+ }
3846
+ const v = {
3847
+ // mode
3848
+ get mode() {
3849
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
3850
+ },
3851
+ // install plugin
3852
+ async install(N, ...y) {
3853
+ 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])) {
3854
+ const A = y[0];
3855
+ v.__composerExtend = A.__composerExtend, v.__vueI18nExtend = A.__vueI18nExtend;
3856
+ }
3857
+ let C = null;
3858
+ !t && n && (C = Di(N, v.global)), __VUE_I18N_FULL_INSTALL__ && vi(N, v, ...y), __VUE_I18N_LEGACY_API__ && t && N.mixin(di(s, s.__composer, v));
3859
+ const D = N.unmount;
3860
+ if (N.unmount = () => {
3861
+ C && C(), v.dispose(), D();
3862
+ }, process.env.NODE_ENV !== "production") {
3863
+ if (!await ti(N, v))
3864
+ throw ne(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3865
+ const k = Qt();
3866
+ if (t) {
3867
+ const o = s;
3868
+ o.__enableEmitter && o.__enableEmitter(k);
3869
+ } else {
3870
+ const o = s;
3871
+ o[Pe] && o[Pe](k);
3872
+ }
3873
+ k.on("*", tt);
3874
+ }
3875
+ },
3876
+ // global accessor
3877
+ get global() {
3878
+ return s;
3879
+ },
3880
+ dispose() {
3881
+ a.stop();
3882
+ },
3883
+ // @internal
3884
+ __instances: r,
3885
+ // @internal
3886
+ __getInstance: c,
3887
+ // @internal
3888
+ __setInstance: f,
3889
+ // @internal
3890
+ __deleteInstance: p
3891
+ };
3892
+ return v;
3893
+ }
3894
+ function on(e = {}) {
3895
+ const t = Je();
3896
+ if (t == null)
3897
+ throw ne(G.MUST_BE_CALL_SETUP_TOP);
3898
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3899
+ throw ne(G.NOT_INSTALLED);
3900
+ const n = Li(t), r = Ci(n), a = vr(t), s = Oi(e, a);
3901
+ if (s === "global")
3902
+ return yr(r, e, a), r;
3903
+ if (s === "parent") {
3904
+ let f = Ii(n, t, e.__useComponent);
3905
+ return f == null && (process.env.NODE_ENV !== "production" && Ne(nt(de.NOT_FOUND_PARENT_SCOPE)), f = r), f;
3906
+ }
3907
+ const i = n;
3908
+ let c = i.__getInstance(t);
3909
+ if (c == null) {
3910
+ const f = Q({}, e);
3911
+ "__i18n" in a && (f.__i18n = a.__i18n), r && (f.__root = r), c = rn(f), i.__composerExtend && (c[Bt] = i.__composerExtend(c)), ki(i, t, c), i.__setInstance(t, c);
3912
+ }
3913
+ return c;
3914
+ }
3915
+ function Ti(e, t) {
3916
+ const n = Sr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => rn(e));
3917
+ if (r == null)
3918
+ throw ne(G.UNEXPECTED_ERROR);
3919
+ return [n, r];
3920
+ }
3921
+ function Li(e) {
3922
+ const t = Mr(e.isCE ? yi : e.appContext.app.__VUE_I18N_SYMBOL__);
3923
+ if (!t)
3924
+ throw ne(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
3925
+ return t;
3926
+ }
3927
+ function Oi(e, t) {
3928
+ return mt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3929
+ }
3930
+ function Ci(e) {
3931
+ return e.mode === "composition" ? e.global : e.global.__composer;
3932
+ }
3933
+ function Ii(e, t, n = !1) {
3934
+ let r = null;
3935
+ const a = t.root;
3936
+ let s = Ai(t, n);
3937
+ for (; s != null; ) {
3938
+ const i = e;
3939
+ if (e.mode === "composition")
3940
+ r = i.__getInstance(s);
3941
+ else if (__VUE_I18N_LEGACY_API__) {
3942
+ const c = i.__getInstance(s);
3943
+ c != null && (r = c.__composer, n && r && !r[br] && (r = null));
3944
+ }
3945
+ if (r != null || a === s)
3946
+ break;
3947
+ s = s.parent;
3948
+ }
3949
+ return r;
3950
+ }
3951
+ function Ai(e, t = !1) {
3952
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3953
+ }
3954
+ function ki(e, t, n) {
3955
+ let r = null;
3956
+ wr(() => {
3957
+ if (process.env.NODE_ENV !== "production" && t.vnode.el) {
3958
+ t.vnode.el.__VUE_I18N__ = n, r = Qt();
3959
+ const a = n;
3960
+ a[Pe] && a[Pe](r), r.on("*", tt);
3961
+ }
3962
+ }, t), Fr(() => {
3963
+ const a = n;
3964
+ 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);
3965
+ const s = a[Bt];
3966
+ s && (s(), delete a[Bt]);
3967
+ }, t);
3968
+ }
3969
+ const Si = [
3970
+ "locale",
3971
+ "fallbackLocale",
3972
+ "availableLocales"
3973
+ ], jn = ["t", "rt", "d", "n", "tm", "te"];
3974
+ function Di(e, t) {
3975
+ const n = /* @__PURE__ */ Object.create(null);
3976
+ return Si.forEach((a) => {
3977
+ const s = Object.getOwnPropertyDescriptor(t, a);
3978
+ if (!s)
3979
+ throw ne(G.UNEXPECTED_ERROR);
3980
+ const i = Rr(s.value) ? {
3981
+ get() {
3982
+ return s.value.value;
3983
+ },
3984
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3985
+ set(c) {
3986
+ s.value.value = c;
3987
+ }
3988
+ } : {
3989
+ get() {
3990
+ return s.get && s.get();
3991
+ }
3992
+ };
3993
+ Object.defineProperty(n, a, i);
3994
+ }), e.config.globalProperties.$i18n = n, jn.forEach((a) => {
3995
+ const s = Object.getOwnPropertyDescriptor(t, a);
3996
+ if (!s || !s.value)
3997
+ throw ne(G.UNEXPECTED_ERROR);
3998
+ Object.defineProperty(e.config.globalProperties, `$${a}`, s);
3999
+ }), () => {
4000
+ delete e.config.globalProperties.$i18n, jn.forEach((a) => {
4001
+ delete e.config.globalProperties[`$${a}`];
4002
+ });
4003
+ };
4004
+ }
4005
+ const Pi = /* @__PURE__ */ Xt({
4006
+ /* eslint-disable */
4007
+ name: "i18n-d",
4008
+ props: Q({
4009
+ value: {
4010
+ type: [Number, Date],
4011
+ required: !0
4012
+ },
4013
+ format: {
4014
+ type: [String, Object]
4015
+ }
4016
+ }, an),
4017
+ /* eslint-enable */
4018
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4019
+ setup(e, t) {
4020
+ const n = e.i18n || on({
4021
+ useScope: e.scope,
4022
+ __useComponent: !0
4023
+ });
4024
+ return Cr(e, t, dr, (...r) => (
4025
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4026
+ n[Wt](...r)
4027
+ ));
4028
+ }
4029
+ }), Jn = Pi;
4030
+ ja();
4031
+ Ea(qs);
4032
+ ba(da);
4033
+ va(sr);
4034
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
4035
+ const e = ke();
4036
+ e.__INTLIFY__ = !0, Qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
4037
+ }
4038
+ process.env.NODE_ENV;
4039
+ var ft = { exports: {} };
23
4040
  /*! 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};
4041
+ * Copyright (c) 2024 Nathan Bubna; Licensed MIT */
4042
+ var Pt = ft.exports, qn;
4043
+ function Ri() {
4044
+ return qn || (qn = 1, function(e) {
4045
+ (function(t, n) {
4046
+ var r = {
4047
+ version: "2.14.4",
4048
+ areas: {},
4049
+ apis: {},
4050
+ nsdelim: ".",
4051
+ // utilities
4052
+ inherit: function(s, i) {
4053
+ for (var c in s)
4054
+ i.hasOwnProperty(c) || Object.defineProperty(i, c, Object.getOwnPropertyDescriptor(s, c));
4055
+ return i;
4056
+ },
4057
+ stringify: function(s, i) {
4058
+ return s === void 0 || typeof s == "function" ? s + "" : JSON.stringify(s, i || r.replace);
4059
+ },
4060
+ parse: function(s, i) {
4061
+ try {
4062
+ return JSON.parse(s, i || r.revive);
4063
+ } catch {
4064
+ return s;
4065
+ }
4066
+ },
4067
+ // extension hooks
4068
+ fn: function(s, i) {
4069
+ r.storeAPI[s] = i;
4070
+ for (var c in r.apis)
4071
+ r.apis[c][s] = i;
4072
+ },
4073
+ get: function(s, i) {
4074
+ return s.getItem(i);
4075
+ },
4076
+ set: function(s, i, c) {
4077
+ s.setItem(i, c);
4078
+ },
4079
+ remove: function(s, i) {
4080
+ s.removeItem(i);
4081
+ },
4082
+ key: function(s, i) {
4083
+ return s.key(i);
4084
+ },
4085
+ length: function(s) {
4086
+ return s.length;
4087
+ },
4088
+ clear: function(s) {
4089
+ s.clear();
4090
+ },
4091
+ // core functions
4092
+ Store: function(s, i, c) {
4093
+ var f = r.inherit(r.storeAPI, function(v, N, y) {
4094
+ 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();
4095
+ });
4096
+ f._id = s;
4097
+ try {
4098
+ var p = "__store2_test";
4099
+ i.setItem(p, "ok"), f._area = i, i.removeItem(p);
4100
+ } catch {
4101
+ f._area = r.storage("fake");
4102
+ }
4103
+ 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;
4104
+ },
4105
+ storeAPI: {
4106
+ // admin functions
4107
+ area: function(s, i) {
4108
+ var c = this[s];
4109
+ return (!c || !c.area) && (c = r.Store(s, i, this._ns), this[s] || (this[s] = c)), c;
4110
+ },
4111
+ namespace: function(s, i, c) {
4112
+ if (c = c || this._delim || r.nsdelim, !s)
4113
+ return this._ns ? this._ns.substring(0, this._ns.length - c.length) : "";
4114
+ var f = s, p = this[f];
4115
+ if ((!p || !p.namespace) && (p = r.Store(this._id, this._area, this._ns + f + c), p._delim = c, this[f] || (this[f] = p), !i))
4116
+ for (var v in r.areas)
4117
+ p.area(v, r.areas[v]);
4118
+ return p;
4119
+ },
4120
+ isFake: function(s) {
4121
+ return s ? (this._real = this._area, this._area = r.storage("fake")) : s === !1 && (this._area = this._real || this._area), this._area.name === "fake";
4122
+ },
4123
+ toString: function() {
4124
+ return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]";
4125
+ },
4126
+ // storage functions
4127
+ has: function(s) {
4128
+ return this._area.has ? this._area.has(this._in(s)) : this._in(s) in this._area;
4129
+ },
4130
+ size: function() {
4131
+ return this.keys().length;
4132
+ },
4133
+ each: function(s, i) {
4134
+ for (var c = 0, f = r.length(this._area); c < f; c++) {
4135
+ var p = this._out(r.key(this._area, c));
4136
+ if (p !== void 0 && s.call(this, p, this.get(p), i) === !1)
4137
+ break;
4138
+ f > r.length(this._area) && (f--, c--);
4139
+ }
4140
+ return i || this;
4141
+ },
4142
+ keys: function(s) {
4143
+ return this.each(function(i, c, f) {
4144
+ f.push(i);
4145
+ }, s || []);
4146
+ },
4147
+ get: function(s, i) {
4148
+ var c = r.get(this._area, this._in(s)), f;
4149
+ return typeof i == "function" && (f = i, i = null), c !== null ? r.parse(c, f) : i ?? c;
4150
+ },
4151
+ getAll: function(s) {
4152
+ return this.each(function(i, c, f) {
4153
+ f[i] = c;
4154
+ }, s || {});
4155
+ },
4156
+ transact: function(s, i, c) {
4157
+ var f = this.get(s, c), p = i(f);
4158
+ return this.set(s, p === void 0 ? f : p), this;
4159
+ },
4160
+ set: function(s, i, c) {
4161
+ var f = this.get(s), p;
4162
+ 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);
4163
+ },
4164
+ setAll: function(s, i) {
4165
+ var c, f;
4166
+ for (var p in s)
4167
+ f = s[p], this.set(p, f, i) !== f && (c = !0);
4168
+ return c;
4169
+ },
4170
+ add: function(s, i, c) {
4171
+ var f = this.get(s);
4172
+ if (f instanceof Array)
4173
+ i = f.concat(i);
4174
+ else if (f !== null) {
4175
+ var p = typeof f;
4176
+ if (p === typeof i && p === "object") {
4177
+ for (var v in i)
4178
+ f[v] = i[v];
4179
+ i = f;
4180
+ } else
4181
+ i = f + i;
4182
+ }
4183
+ return r.set(this._area, this._in(s), r.stringify(i, c)), i;
4184
+ },
4185
+ remove: function(s, i) {
4186
+ var c = this.get(s, i);
4187
+ return r.remove(this._area, this._in(s)), c;
4188
+ },
4189
+ clear: function() {
4190
+ return this._ns ? this.each(function(s) {
4191
+ r.remove(this._area, this._in(s));
4192
+ }, 1) : r.clear(this._area), this;
4193
+ },
4194
+ clearAll: function() {
4195
+ var s = this._area;
4196
+ for (var i in r.areas)
4197
+ r.areas.hasOwnProperty(i) && (this._area = r.areas[i], this.clear());
4198
+ return this._area = s, this;
4199
+ },
4200
+ // internal use functions
4201
+ _in: function(s) {
4202
+ return typeof s != "string" && (s = r.stringify(s)), this._ns ? this._ns + s : s;
4203
+ },
4204
+ _out: function(s) {
4205
+ return this._ns ? s && s.indexOf(this._ns) === 0 ? s.substring(this._ns.length) : void 0 : (
4206
+ // so each() knows to skip it
4207
+ s
4208
+ );
4209
+ }
4210
+ },
4211
+ // end _.storeAPI
4212
+ storage: function(s) {
4213
+ return r.inherit(r.storageAPI, { items: {}, name: s });
4214
+ },
4215
+ storageAPI: {
4216
+ length: 0,
4217
+ has: function(s) {
4218
+ return this.items.hasOwnProperty(s);
4219
+ },
4220
+ key: function(s) {
4221
+ var i = 0;
4222
+ for (var c in this.items)
4223
+ if (this.has(c) && s === i++)
4224
+ return c;
4225
+ },
4226
+ setItem: function(s, i) {
4227
+ this.has(s) || this.length++, this.items[s] = i;
4228
+ },
4229
+ removeItem: function(s) {
4230
+ this.has(s) && (delete this.items[s], this.length--);
4231
+ },
4232
+ getItem: function(s) {
4233
+ return this.has(s) ? this.items[s] : null;
4234
+ },
4235
+ clear: function() {
4236
+ for (var s in this.items)
4237
+ this.removeItem(s);
4238
+ }
4239
+ }
4240
+ // end _.storageAPI
4241
+ }, a = (
4242
+ // safely set this up (throws error in IE10/32bit mode for local files)
4243
+ r.Store("local", function() {
4244
+ try {
4245
+ return localStorage;
4246
+ } catch {
4247
+ }
4248
+ }())
4249
+ );
4250
+ a.local = a, a._ = r, a.area("session", function() {
4251
+ try {
4252
+ return sessionStorage;
4253
+ } catch {
4254
+ }
4255
+ }()), a.area("page", r.storage("page")), typeof n == "function" && n.amd !== void 0 ? n("store2", [], function() {
4256
+ return a;
4257
+ }) : e.exports ? e.exports = a : (t.store && (r.conflict = t.store), t.store = a);
4258
+ })(Pt, Pt && Pt.define);
4259
+ }(ft)), ft.exports;
4260
+ }
4261
+ var Mi = Ri();
4262
+ const Qn = /* @__PURE__ */ nr(Mi), wi = (e) => {
4263
+ const t = {};
4264
+ for (const n of e)
4265
+ t[n.key] = n.value;
4266
+ return t;
4267
+ }, Fi = (e, t) => (t.forEach((n) => {
4268
+ const r = j.find(e, { key: n.key });
4269
+ r ? j.merge(r, n) : e.push(n);
4270
+ }), e), pt = "https://test.ihotel.cn", ln = "eyJhbGciOiJIUzUxMiJ9.eyJkZXZpY2VUeXBlIjoiQ09NUFVURVIiLCJtYWluQXBwQ29kZSI6IlNTTyIsIm9yZ0NvZGUiOiJHQ0JaRyIsInVjU2VydmVyVXJsIjoiaHR0cHM6Ly90ZXN0Lmlob3RlbC5jbi91Yy13ZWIvIiwiYXBwQ29kZSI6IlNTTyIsInVzZXJUeXBlIjoiTk9STUFMIiwibG9naW5BdCI6MTczODczNTczOTAwMCwicHJpbmNpcGFsVXNlckNvZGUiOiJHQ0JaR19BRE1JTiIsImV4cCI6MzI1MDM2NTEyMDAsInVzZXJDb2RlIjoiR0NCWkdfQURNSU4iLCJzc28iOiJTU09fU0VSVkVSIn0.KQt1YbUdJ7DfqrfXEVYT0Ux-7Zlo2GQBiIoq0rxK0cv1LHqOOMtBkv8kmChM6VavtdnlyXM2GkW6YMvIIHvu0Q", Ir = async () => Re.get(pt + "/i18n-web/sysoption/getsupportedlangs", {
4271
+ headers: {
4272
+ Authorization: ln
4273
+ }
4274
+ }), Zn = async ({
4275
+ appCode: e,
4276
+ language: t = "zh-CN",
4277
+ page: n,
4278
+ lastPullDate: r
4279
+ }) => new Promise(async (a, s) => {
4280
+ const i = pt + "/i18n-web/kv_translate/kv_translates", c = r ? i + "?lastPullDate=" + r : i, f = await Re({
4281
+ url: c,
4282
+ method: "GET",
4283
+ headers: {
4284
+ appCode: e,
4285
+ page: n,
4286
+ language: t
4287
+ }
4288
+ });
4289
+ f && f.result == 0 ? a(f.retVal) : s(f);
4290
+ }), Ui = async (e) => Re({
4291
+ url: pt + "/i18n-web/kv_translate/kv_translates",
4292
+ method: "POST",
4293
+ data: e,
4294
+ headers: { token: ln }
4295
+ }), Ki = async (e) => Re({
4296
+ url: pt + "/i18n-web/kv_translate/batch",
4297
+ method: "POST",
4298
+ data: e,
4299
+ headers: { token: ln }
4300
+ }), Vi = async ({ appCode: e, language: t = "zh-CN" }) => new Promise(async (n, r) => {
4301
+ const a = Qn.namespace(`i18n_${e}`), s = {
4302
+ appCode: e,
4303
+ language: t
4304
+ }, i = a.get(t);
4305
+ if (!i || !i.lastPullDate) {
4306
+ const c = await Zn(s);
4307
+ c && (a.set(t, c), n(c.translatesDTOs));
4308
+ } else {
4309
+ const { lastPullDate: c } = i, f = await Zn({
4310
+ ...s,
4311
+ lastPullDate: c
4312
+ });
4313
+ if (f) {
4314
+ const p = j.get(i, "translatesDTOs");
4315
+ if (j.isEmpty(f.translatesDTOs))
4316
+ n(p);
4317
+ else {
4318
+ const v = Fi(p, f.translatesDTOs), N = { lastPullDate: c, translatesDTOs: v };
4319
+ Qn.namespace(`i18n_${e}`).set(t, N, ":"), n(v);
4320
+ }
4321
+ }
4322
+ }
4323
+ }), xi = {
4324
+ data() {
4325
+ return {
4326
+ isModalVisible: !1,
4327
+ searchText: "",
4328
+ languages: [],
4329
+ data: []
4330
+ };
4331
+ },
4332
+ computed: {
4333
+ firstResult() {
4334
+ return this.data.firstResult / this.data.pageSize + 1;
4335
+ },
4336
+ columns() {
4337
+ let e = [{
4338
+ title: "关键字",
4339
+ fixed: "left",
4340
+ width: 200,
4341
+ key: "dictKey"
4342
+ }];
4343
+ return j.map(this.languages, (t) => {
4344
+ const n = t.code;
4345
+ return e.push({
4346
+ title: t.name,
4347
+ key: n,
4348
+ width: 200,
4349
+ render: (r, {
4350
+ row: a,
4351
+ index: s
4352
+ }) => {
4353
+ const i = a[n];
4354
+ return ue(fe("Input"), {
4355
+ modelValue: i,
4356
+ onOnChange: (c) => {
4357
+ this.data.datas[s][n] = c.target.value;
4358
+ }
4359
+ }, null);
4360
+ }
4361
+ });
4362
+ }), e;
4363
+ }
4364
+ },
4365
+ props: {
4366
+ appCode: String,
4367
+ name: String,
4368
+ setLanguage: Function
4369
+ },
4370
+ methods: {
4371
+ closeModal() {
4372
+ this.searchText = "", this.isModalVisible = !1;
4373
+ },
4374
+ openModal() {
4375
+ this.isModalVisible || (this.isModalVisible = !0, this.init());
4376
+ },
4377
+ findShallowStringDiff(e, t) {
4378
+ const {
4379
+ appCode: n,
4380
+ dictKey: r,
4381
+ page: a,
4382
+ unitCode: s
4383
+ } = e, i = [];
4384
+ return j.forIn(e, (c, f) => {
4385
+ j.isEqual(c, t[f]) || i.push({
4386
+ appCode: n,
4387
+ key: r,
4388
+ page: a,
4389
+ unitCode: s,
4390
+ lang: f,
4391
+ value: c
4392
+ });
4393
+ }), i;
4394
+ },
4395
+ async saveData({
4396
+ msg: e = ""
4397
+ }) {
4398
+ const t = j.differenceWith(this.data.datas, this.initialData.datas, j.isEqual);
4399
+ let n = [];
4400
+ for (let a = 0; a < t.length; a++) {
4401
+ const s = t[a], i = j.find(this.initialData.datas, {
4402
+ dictKey: s.dictKey
4403
+ }), c = this.findShallowStringDiff(s, i);
4404
+ n = j.concat(n, c);
4405
+ }
4406
+ const r = await Ki({
4407
+ appCode: this.appCode,
4408
+ language: this.language,
4409
+ data: n
4410
+ });
4411
+ r && r.result === 0 && (_e.success(e || r.msg), this.setLanguage(), this.initialData.datas = j.cloneDeep(this.data.datas));
4412
+ },
4413
+ async saveNoEqual() {
4414
+ j.isEqual(this.initialData, this.data) || this.saveData({
4415
+ msg: "已为您自动保存"
4416
+ });
4417
+ },
4418
+ changePage(e) {
4419
+ this.saveNoEqual(), this.search({
4420
+ firstResult: (e - 1) * this.data.pageSize
4421
+ });
4422
+ },
4423
+ async search(e) {
4424
+ const t = {
4425
+ appCode: this.appCode,
4426
+ searchBlur: this.searchText,
4427
+ page: this.name ? j.toUpper(this.name) : "HOME",
4428
+ commaSeparatedLangs: j.map(this.languages, "code").toString(),
4429
+ firstResult: 0,
4430
+ pageSize: 10,
4431
+ ...e
4432
+ }, n = await Ui(t);
4433
+ n && (this.initialData = j.cloneDeep(n.retVal), this.data = n.retVal);
4434
+ },
4435
+ async init() {
4436
+ const e = await Ir();
4437
+ e && e.result == 0 ? (this.languages = e.retVal, this.search()) : _e.error("获取语言失败,出错了");
4438
+ }
4439
+ }
4440
+ }, Ar = (e, t) => {
4441
+ const n = e.__vccOpts || e;
4442
+ for (const [r, a] of t)
4443
+ n[r] = a;
4444
+ return n;
4445
+ }, $i = { class: "extra" }, Wi = { class: "gc_i18n_page" }, Gi = { style: { display: "flex" } };
4446
+ function Bi(e, t, n, r, a, s) {
4447
+ const i = fe("Table"), c = fe("TabPane"), f = fe("Input"), p = fe("Tabs"), v = fe("Page"), N = fe("Button"), y = fe("Modal");
4448
+ return lt(), tr(y, {
4449
+ modelValue: a.isModalVisible,
4450
+ "onUpdate:modelValue": t[2] || (t[2] = (C) => a.isModalVisible = C),
4451
+ "mask-closable": !1,
4452
+ width: 70,
4453
+ title: "多语言管理中心",
4454
+ "footer-hide": ""
4455
+ }, {
4456
+ default: ve(() => [
4457
+ ue(p, {
4458
+ type: "card",
4459
+ class: "gc_i18n_tabs"
4460
+ }, {
4461
+ extra: ve(() => [
4462
+ Ue("div", $i, [
4463
+ ue(f, {
4464
+ prefix: "ios-search",
4465
+ placeholder: "请输入搜索内容",
4466
+ modelValue: a.searchText,
4467
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => a.searchText = C),
4468
+ clearable: "",
4469
+ onOnEnter: s.search,
4470
+ onOnClear: s.search
4471
+ }, null, 8, ["modelValue", "onOnEnter", "onOnClear"])
4472
+ ])
4473
+ ]),
4474
+ default: ve(() => [
4475
+ ue(c, { label: "当前页面" }, {
4476
+ default: ve(() => [
4477
+ ue(i, {
4478
+ border: "",
4479
+ height: 550,
4480
+ columns: s.columns,
4481
+ data: a.data.datas
4482
+ }, null, 8, ["columns", "data"])
4483
+ ]),
4484
+ _: 1
4485
+ })
4486
+ ]),
4487
+ _: 1
4488
+ }),
4489
+ Ue("div", Wi, [
4490
+ Ue("div", Gi, [
4491
+ ue(v, {
4492
+ modelValue: s.firstResult,
4493
+ "onUpdate:modelValue": t[1] || (t[1] = (C) => s.firstResult = C),
4494
+ total: a.data.totalRows,
4495
+ "page-size": 10,
4496
+ simple: "",
4497
+ "show-total": "",
4498
+ onOnChange: s.changePage
4499
+ }, null, 8, ["modelValue", "total", "onOnChange"]),
4500
+ Ue("div", null, "共 " + Kr(a.data.totalRows) + " 项数据", 1)
4501
+ ]),
4502
+ Ue("div", null, [
4503
+ ue(N, {
4504
+ style: { "margin-right": "10px" },
4505
+ onClick: s.closeModal
4506
+ }, {
4507
+ default: ve(() => t[3] || (t[3] = [
4508
+ Mt("关闭")
4509
+ ])),
4510
+ _: 1
4511
+ }, 8, ["onClick"]),
4512
+ ue(N, {
4513
+ type: "primary",
4514
+ onClick: s.saveData
4515
+ }, {
4516
+ default: ve(() => t[4] || (t[4] = [
4517
+ Mt("保存")
4518
+ ])),
4519
+ _: 1
4520
+ }, 8, ["onClick"])
4521
+ ])
4522
+ ])
4523
+ ]),
4524
+ _: 1
4525
+ }, 8, ["modelValue"]);
4526
+ }
4527
+ const Yi = /* @__PURE__ */ Ar(xi, [["render", Bi]]), Hi = {
4528
+ name: "LangChange",
4529
+ data() {
4530
+ return {
4531
+ languages: [],
4532
+ language: ""
4533
+ };
4534
+ },
4535
+ props: {
4536
+ more: {
4537
+ type: Boolean,
4538
+ default: !1
4539
+ }
4540
+ },
4541
+ async mounted() {
4542
+ this.language = navigator.language || "zh-CN";
4543
+ const e = await Ir();
4544
+ e && e.result === 0 && (this.languages = e.retVal);
4545
+ }
4546
+ }, Xi = { key: 0 };
4547
+ function ji(e, t, n, r, a, s) {
4548
+ const i = fe("Option"), c = fe("Select");
4549
+ return lt(), _n("div", null, [
4550
+ n.more ? (lt(), _n("div", Xi, t[1] || (t[1] = [
4551
+ Ue("span", null, "切换语种", -1)
4552
+ ]))) : (lt(), tr(c, {
4553
+ key: 1,
4554
+ modelValue: a.language,
4555
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => a.language = f)
4556
+ }, {
4557
+ default: ve(() => [
4558
+ ue(i, { value: "zh-CN" }, {
4559
+ default: ve(() => t[2] || (t[2] = [
4560
+ Mt("中文")
4561
+ ])),
4562
+ _: 1
4563
+ })
4564
+ ]),
4565
+ _: 1
4566
+ }, 8, ["modelValue"]))
4567
+ ]);
4568
+ }
4569
+ const Ji = /* @__PURE__ */ Ar(Hi, [["render", ji]]);
4570
+ _e.config({
4571
+ duration: 3
4572
+ });
4573
+ Re.defaults.timeout = 6e4;
4574
+ Re.interceptors.request.use(
4575
+ (e) => {
4576
+ const t = localStorage.getItem("token");
4577
+ return $r.isEmpty(t) || (e.headers.Authorization = t), e.headers["Content-Type"] = "application/json", e;
4578
+ },
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 eo {
4597
+ constructor(t = {}) {
4598
+ const { router: n } = t;
4599
+ this.appCode = t.appCode, this.router = n, this.locale = navigator.language || "zh-CN", this.modalLoad = !1, this.messages = t.messages || {}, this.i18n = Ni({
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 r = this.i18n.global.t;
4614
+ this.i18n.global.t = (a, s) => {
4615
+ var f, p;
4616
+ const i = j.toUpper((p = (f = n == null ? void 0 : n.currentRoute) == null ? void 0 : f.value) == null ? void 0 : p.name), c = r(a);
4617
+ if (c === a && i) {
4618
+ const v = `${i}.${a}`, N = r(v);
4619
+ return N !== v ? N : s && j.has(s, "comment") ? j.get(s, "comment") : a;
4620
+ }
4621
+ return c;
4622
+ }, this.i18n.global.changeLocal = (a) => {
4623
+ this.setLanguage(a || this.locale);
4624
+ }, n.afterEach((a, s) => {
4625
+ const { language: i } = a.query;
4626
+ this.setLanguage(i), Vr(() => {
4627
+ this.configInstance ? this.configInstance.closeModal() : this.createModal(a.name);
4628
+ });
4629
+ });
4630
+ }
4631
+ async setLanguage(t = "zh-CN") {
4632
+ this.locale = t;
4633
+ const n = await Vi({
4634
+ appCode: this.appCode,
4635
+ language: t
4636
+ });
4637
+ if (n) {
4638
+ const r = wi(n);
4639
+ this.i18n.global.setLocaleMessage(
4640
+ t,
4641
+ j.assign({}, j.get(this.messages, t), r)
4642
+ );
4643
+ }
4644
+ this.i18n.global.locale.value = t;
4645
+ }
4646
+ createModal(t) {
4647
+ this.modalLoad = !0, this.configInstance = xr(Yi, {
4648
+ appCode: this.appCode,
4649
+ setLanguage: this.setLanguage.bind(this),
4650
+ name: t
4651
+ }).use(fn).mount(document.createElement("div")), Yr.bind("shift > t", (n) => {
4652
+ this.configInstance.openModal();
4653
+ });
4654
+ }
4655
+ install(t, { router: n }) {
4656
+ t.use(this.i18n), t.use(fn), t.component("LangChange", Ji);
4657
+ }
4658
+ }
4659
+ export {
4660
+ eo as default
4661
+ };