From e4f21505d1147e47783a97e6d56aea418c2e10c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 11 Mar 2025 09:07:23 +0100 Subject: [PATCH] bundle --- lnbits/static/bundle.min.js | 6 +++--- lnbits/static/vendor/vue-i18n.global.prod.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lnbits/static/bundle.min.js b/lnbits/static/bundle.min.js index 555da30bb..695cbb3b4 100644 --- a/lnbits/static/bundle.min.js +++ b/lnbits/static/bundle.min.js @@ -22,10 +22,10 @@ var Vue=function(e){"use strict";var t,n;let a,i,r,o,s,l,u,c,d,h,p,f;/*! #__NO_S * (c) 2022 Evan You * @license MIT */ -var Vuex=function(e){"use strict";var t="store";function n(){return"undefined"!=typeof navigator?window:"undefined"!=typeof global?global:{}}var a="devtools-plugin:setup";function i(e,t){var i=n().__VUE_DEVTOOLS_GLOBAL_HOOK__;if(i)i.emit(a,e,t);else{var r=n();(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t})}}function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,a=(n=function(t){return t.original===e},t.filter(n)[0]);if(a)return a.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=r(e[n],t)})),i}function o(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"==typeof e}function l(e,t){if(!e)throw new Error("[vuex] "+t)}function u(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function c(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;h(e,n,[],e._modules.root,!0),d(e,n,t)}function d(t,n,a){var i=t._state,r=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,u={},c={},d=e.effectScope(!0);d.run((function(){o(s,(function(n,a){u[a]=function(e,t){return function(){return e(t)}}(n,t),c[a]=e.computed((function(){return u[a]()})),Object.defineProperty(t.getters,a,{get:function(){return c[a].value},enumerable:!0})}))})),t._state=e.reactive({data:n}),t._scope=d,t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){l(t._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}(t),i&&a&&t._withCommit((function(){i.data=null})),r&&r.stop()}function h(e,t,n,a,i){var r=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o]&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[o]=a),!r&&!i){var s=f(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[l]=a.state}))}var u=a.context=function(e,t,n){var a=""===t,i={dispatch:a?e.dispatch:function(n,a,i){var r=m(n,a,i),o=r.payload,s=r.options,l=r.type;if(s&&s.root||(l=t+l,e._actions[l]))return e.dispatch(l,o);console.error("[vuex] unknown local action type: "+r.type+", global type: "+l)},commit:a?e.commit:function(n,a,i){var r=m(n,a,i),o=r.payload,s=r.options,l=r.type;s&&s.root||(l=t+l,e._mutations[l])?e.commit(l,o,s):console.error("[vuex] unknown local mutation type: "+r.type+", global type: "+l)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return p(e,t)}},state:{get:function(){return f(e.state,n)}}}),i}(e,o,n);a.forEachMutation((function(t,n){!function(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,a.state,t)}))}(e,o+n,t,u)})),a.forEachAction((function(t,n){var a=t.root?n:o+n,i=t.handler||t;!function(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i,r=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(i=r)&&"function"==typeof i.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,a,i,u)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return void console.error("[vuex] duplicate getter key: "+t);e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,o+n,t,u)})),a.forEachChild((function(a,r){h(e,t,n.concat(r),a,i)}))}function p(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,a)===t){var r=i.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function f(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),l("string"==typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var g="vuex:mutations",_="vuex:actions",v="vuex",b=0;function y(e,t){i({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:g,label:"Vuex Mutations",color:w}),n.addTimelineLayer({id:_,label:"Vuex Actions",color:w}),n.addInspector({id:v,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===v)if(n.filter){var a=[];C(a,t._modules.root,n.filter,""),n.rootNodes=a}else n.rootNodes=[S(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===v){var a=n.nodeId;p(t,a),n.state=function(e,t,n){t="root"===n?t:t[n];var a=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(a.length){var r=function(e){var t={};return Object.keys(e).forEach((function(n){var a=n.split("/");if(a.length>1){var i=t,r=a.pop();a.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=T((function(){return e[n]}))}else t[n]=T((function(){return e[n]}))})),t}(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?x(e):e,editable:!1,value:T((function(){return r[e]}))}}))}return i}((i=t._modules,(o=(r=a).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var a=e[t];if(!a)throw new Error('Missing module "'+t+'" for path "'+r+'".');return n===o.length-1?a:a._children}),"root"===r?i:i.root._children)),"root"===a?t.getters:t._makeLocalGettersCache,a)}var i,r,o})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===v){var a=n.nodeId,i=n.path;"root"!==a&&(i=a.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var a={};e.payload&&(a.payload=e.payload),a.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(v),n.sendInspectorState(v),n.addTimelineEvent({layerId:g,event:{time:Date.now(),title:e.type,data:a}})})),t.subscribeAction({before:function(e,t){var a={};e.payload&&(a.payload=e.payload),e._id=b++,e._time=Date.now(),a.state=t,n.addTimelineEvent({layerId:_,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:a}})},after:function(e,t){var a={},i=Date.now()-e._time;a.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(a.payload=e.payload),a.state=t,n.addTimelineEvent({layerId:_,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:a}})}})}))}var w=8702998,k={label:"namespaced",textColor:16777215,backgroundColor:6710886};function x(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function S(e,t){return{id:t||"root",label:x(t),tags:e.namespaced?[k]:[],children:Object.keys(e._children).map((function(n){return S(e._children[n],t+n+"/")}))}}function C(e,t,n,a){a.includes(n)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[k]:[]}),Object.keys(t._children).forEach((function(i){C(e,t._children[i],n,a+i+"/")}))}function T(e){try{return e()}catch(e){return e}}var E=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},P={namespaced:{configurable:!0}};P.namespaced.get=function(){return!!this._rawModule.namespaced},E.prototype.addChild=function(e,t){this._children[e]=t},E.prototype.removeChild=function(e){delete this._children[e]},E.prototype.getChild=function(e){return this._children[e]},E.prototype.hasChild=function(e){return e in this._children},E.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},E.prototype.forEachChild=function(e){o(this._children,e)},E.prototype.forEachGetter=function(e){this._rawModule.getters&&o(this._rawModule.getters,e)},E.prototype.forEachAction=function(e){this._rawModule.actions&&o(this._rawModule.actions,e)},E.prototype.forEachMutation=function(e){this._rawModule.mutations&&o(this._rawModule.mutations,e)},Object.defineProperties(E.prototype,P);var A=function(e){this.register([],e,!1)};function L(e,t,n){if(R(e,n),t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return void console.warn("[vuex] trying to add a new module '"+a+"' on hot reloading, manual reload is needed");L(e.concat(a),t.getChild(a),n.modules[a])}}A.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},A.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},A.prototype.update=function(e){L([],this.root,e)},A.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0),R(e,t);var i=new E(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&o(t.modules,(function(t,i){a.register(e.concat(i),t,n)}))},A.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a?a.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},A.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var M={assert:function(e){return"function"==typeof e},expected:"function"},z={getters:M,mutations:M,actions:{assert:function(e){return"function"==typeof e||"object"==typeof e&&"function"==typeof e.handler},expected:'function or object with "handler" function'}};function R(e,t){Object.keys(z).forEach((function(n){if(t[n]){var a=z[n];o(t[n],(function(t,i){l(a.assert(t),function(e,t,n,a,i){var r=t+" should be "+i+' but "'+t+"."+n+'"';e.length>0&&(r+=' in module "'+e.join(".")+'"');return r+=" is "+JSON.stringify(a)+".",r}(e,n,i,t,a.expected))}))}}))}var N=function e(t){var n=this;void 0===t&&(t={}),l("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),l(this instanceof e,"store must be called with the new operator.");var a=t.plugins;void 0===a&&(a=[]);var i=t.strict;void 0===i&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,s=this.dispatch,u=this.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return u.call(o,e,t,n)},this.strict=i;var c=this._modules.root.state;h(this,c,[],this._modules.root),d(this,c),a.forEach((function(e){return e(n)}))},I={state:{configurable:!0}};N.prototype.install=function(e,n){e.provide(n||t,this),e.config.globalProperties.$store=this,(void 0===this._devtools||this._devtools)&&y(e,this)},I.state.get=function(){return this._state.data},I.state.set=function(e){l(!1,"use store.replaceState() to explicit replace store state.")},N.prototype.commit=function(e,t,n){var a=this,i=m(e,t,n),r=i.type,o=i.payload,s=i.options,l={type:r,payload:o},u=this._mutations[r];u?(this._withCommit((function(){u.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(l,a.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+r+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+r)},N.prototype.dispatch=function(e,t){var n=this,a=m(e,t),i=a.type,r=a.payload,o={type:i,payload:r},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){console.warn("[vuex] error in before action subscribers: "),console.error(e)}var l=s.length>1?Promise.all(s.map((function(e){return e(r)}))):s[0](r);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){console.warn("[vuex] error in after action subscribers: "),console.error(e)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(e){console.warn("[vuex] error in error action subscribers: "),console.error(e)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},N.prototype.subscribe=function(e,t){return u(e,this._subscribers,t)},N.prototype.subscribeAction=function(e,t){return u("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},N.prototype.watch=function(t,n,a){var i=this;return l("function"==typeof t,"store.watch only accepts a function."),e.watch((function(){return t(i.state,i.getters)}),n,Object.assign({},a))},N.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},N.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),l(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),h(this,this.state,e,this._modules.get(e),n.preserveState),d(this,this.state)},N.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){delete f(t.state,e.slice(0,-1))[e[e.length-1]]})),c(this)},N.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},N.prototype.hotUpdate=function(e){this._modules.update(e),c(this,!0)},N.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(N.prototype,I);var O=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=V(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[a].vuex=!0})),n})),q=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var r=V(this.$store,"mapMutations",e);if(!r)return;a=r.context.commit}return"function"==typeof i?i.apply(this,[a].concat(t)):a.apply(this.$store,[i].concat(t))}})),n})),D=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;i=e+i,n[a]=function(){if(!e||V(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[a].vuex=!0})),n})),j=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var r=V(this.$store,"mapActions",e);if(!r)return;a=r.context.dispatch}return"function"==typeof i?i.apply(this,[a].concat(t)):a.apply(this.$store,[i].concat(t))}})),n}));function B(e){return $(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return Array.isArray(e)||s(e)}function F(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function V(e,t,n){var a=e._modulesNamespaceMap[n];return a||console.error("[vuex] module namespace not found in "+t+"(): "+n),a}function U(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(n){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function G(e,t){return n="0",a=t-e.toString().length,new Array(a+1).join(n)+e;var n,a}return{version:"4.1.0",Store:N,storeKey:t,createStore:function(e){return new N(e)},useStore:function(n){return void 0===n&&(n=null),e.inject(null!==n?n:t)},mapState:O,mapMutations:q,mapGetters:D,mapActions:j,createNamespacedHelpers:function(e){return{mapState:O.bind(null,e),mapGetters:D.bind(null,e),mapMutations:q.bind(null,e),mapActions:j.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=r(e.state);void 0!==c&&(l&&e.subscribe((function(e,o){var s=r(o);if(n(e,d,s)){var l=W(),u=i(e),h="mutation "+e.type+l;U(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),H(c)}d=s})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var a=W(),i=s(e),r="action "+e.type+a;U(c,r,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}}}(Vue),VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),i=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===x(e),l=e=>"[object RegExp]"===x(e),u=e=>S(e)&&0===Object.keys(e).length,c=Object.assign,d=Object.create,h=(e=null)=>d(e);function p(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const g=Array.isArray,_=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,y=e=>null!==e&&"object"==typeof e,w=e=>y(e)&&_(e.then)&&_(e.catch),k=Object.prototype.toString,x=e=>k.call(e),S=e=>"[object Object]"===x(e);function C(e,t=""){return e.reduce(((e,n,a)=>0===a?e+n:e+t+n),"")}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const E=e=>!y(e)||g(e);function P(e,t){if(E(e)||E(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((a=>{"__proto__"!==a&&(y(e[a])&&!y(t[a])&&(t[a]=Array.isArray(e[a])?[]:h()),E(t[a])||E(e[a])?t[a]=e[a]:n.push({src:e[a],des:t[a]}))}))}}const A={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function L(e){throw e}const M=" ",z="\r",R="\n",N=String.fromCharCode(8232),I=String.fromCharCode(8233);function O(e){const t=e;let n=0,a=1,i=1,r=0;const o=e=>t[e]===z&&t[e+1]===R,s=e=>t[e]===I,l=e=>t[e]===N,u=e=>o(e)||s(e)||l(e)?R:t[e];function c(){return r=0,(e=>o(e)||(e=>t[e]===R)(e)||s(e)||l(e))(n)&&(a++,i=0),o(n)&&n++,n++,i++,t[n]}return{index:()=>n,line:()=>a,column:()=>i,peekOffset:()=>r,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+r),next:c,peek:function(){return o(n+r)&&r++,r++,t[n+r]},reset:function(){n=0,a=1,i=1,r=0},resetPeek:function(e=0){r=e},skipToPeek:function(){const e=n+r;for(;e!==n;)c();r=0}}}const q=void 0,D="'";function j(e,t={}){const n=!1!==t.location,a=O(e),i=()=>a.index(),r=()=>({line:a.line(),column:a.column(),offset:a.index()}),o=r(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},{onError:u}=t;function c(e,t,a){e.endLoc=r(),e.currentType=t;const i={type:t};return n&&(i.loc=function(e,t){return{start:e,end:t}}(e.startLoc,e.endLoc)),null!=a&&(i.value=a),i}const d=e=>c(e,13);function h(e,t){return e.currentChar()===t?(e.next(),t):(A.EXPECTED_TOKEN,r(),"")}function p(e){let t="";for(;e.currentPeek()===M||e.currentPeek()===R;)t+=e.currentPeek(),e.peek();return t}function f(e){const t=p(e);return e.skipToPeek(),t}function m(e){if(e===q)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,a="")=>{const i=e.currentPeek();return"{"===i?t:"@"!==i&&i?"|"===i?!(a===M||a===R):i===M?(e.peek(),n(!0,M)):i!==R||(e.peek(),n(!0,R)):t},a=n();return t&&e.resetPeek(),a}function v(e,t){const n=e.currentChar();return n===q?q:t(n)?(e.next(),n):null}function b(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function y(e){return v(e,b)}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 k(e){return v(e,w)}function x(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function S(e){return v(e,x)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function T(e){return v(e,C)}function E(e){let t="",n="";for(;t=S(e);)n+=t;return n}function P(e){return e!==D&&e!==R}function L(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return z(e,t,4);case"U":return z(e,t,6);default:return A.UNKNOWN_ESCAPE_SEQUENCE,r(),""}}function z(e,t,n){h(e,t);let a="";for(let t=0;t=1&&(A.NOT_ALLOW_NEST_PLACEHOLDER,r()),e.next(),n=c(t,2,"{"),f(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(A.EMPTY_PLACEHOLDER,r()),e.next(),n=c(t,3,"}"),t.braceNest--,t.braceNest>0&&f(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,r()),n=B(e,t)||d(t),t.braceNest=0,n;default:{let a=!0,i=!0,o=!0;if(g(e))return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,r()),n=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return A.UNTERMINATED_CLOSING_BRACE,r(),t.braceNest=0,$(e,t);if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=m(e.currentPeek());return e.resetPeek(),a}(e,t))return n=c(t,4,function(e){f(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===q&&(A.UNTERMINATED_CLOSING_BRACE,r()),n}(e)),f(e),n;if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=function(e){if(e===q)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),a}(e,t))return n=c(t,5,function(e){f(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===q&&(A.UNTERMINATED_CLOSING_BRACE,r()),t}(e)),f(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=e.currentPeek()===D;return e.resetPeek(),a}(e,t))return n=c(t,6,function(e){f(e),h(e,"'");let t="",n="";for(;t=v(e,P);)n+="\\"===t?L(e):t;const a=e.currentChar();return a===R||a===q?(A.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),a===R&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),f(e),n;if(!a&&!i&&!o)return n=c(t,12,function(e){f(e);let t="",n="";for(;t=v(e,N);)n+=t;return n}(e)),A.INVALID_TOKEN_IN_PLACEHOLDER,r(),n.value,f(e),n;break}}return n}function B(e,t){const{currentType:n}=t;let a=null;const i=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||i!==R&&i!==M||(A.INVALID_LINKED_FORMAT,r()),i){case"@":return e.next(),a=c(t,7,"@"),t.inLinked=!0,a;case".":return f(e),e.next(),c(t,8,".");case":":return f(e),e.next(),c(t,9,":");default:return g(e)?(a=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,a):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(e);const a="."===e.currentPeek();return e.resetPeek(),a}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;p(e);const a=":"===e.currentPeek();return e.resetPeek(),a}(e,t)?(f(e),B(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const a=m(e.currentPeek());return e.resetPeek(),a}(e,t)?(f(e),c(t,11,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const a=()=>{const t=e.currentPeek();return"{"===t?m(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===M||!t)&&(t===R?(e.peek(),a()):_(e,!1))},i=a();return e.resetPeek(),i}(e,t)?(f(e),"{"===i?j(e,t)||a:c(t,10,function(e){const t=n=>{const a=e.currentChar();return"{"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===M?n:(n+=a,e.next(),t(n)):n};return t("")}(e))):(7===n&&(A.INVALID_LINKED_FORMAT,r()),t.braceNest=0,t.inLinked=!1,$(e,t))}}function $(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||d(t);if(t.inLinked)return B(e,t)||d(t);switch(e.currentChar()){case"{":return j(e,t)||d(t);case"}":return A.UNBALANCED_CLOSING_BRACE,r(),e.next(),c(t,3,"}");case"@":return B(e,t)||d(t);default:if(g(e))return n=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return c(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===M||n===R)if(_(e))t+=n,e.next();else{if(g(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:o}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=o,l.offset=i(),l.startLoc=r(),a.currentChar()===q?c(l,13):$(a,l)},currentOffset:i,currentPosition:r,context:()=>l}}const B=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(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 F(e={}){const t=!1!==e.location,{onError:n}=e;function a(e,n,a){const i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:a,end:a}),i}function i(e,n,a,i){t&&(e.end=n,e.loc&&(e.loc.end=a))}function r(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function o(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(5,r,o);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(4,r,o);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(9,r,o);return s.value=t.replace(B,$),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let r=e.nextToken();if(8===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(8,r,o);return 11!==t.type?(A.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",i(s,r,o),{nextConsumeToken:t,node:s}):(null==t.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,V(t)),s.value=t.value||"",i(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(9!==r.type&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 10:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=function(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 4:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=s(e,r.value||"");break;case 5:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=o(e,r.value||"");break;case 6:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=l(e,r.value||"");break;default:{A.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const o=e.context(),s=a(7,o.offset,o.startLoc);return s.value="",i(s,o.offset,o.startLoc),n.key=s,i(n,o.offset,o.startLoc),{nextConsumeToken:r,node:n}}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=a(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const a=c||e.nextToken();switch(c=null,a.type){case 0:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(r(e,a.value||""));break;case 5:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(o(e,a.value||""));break;case 4:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(s(e,a.value||""));break;case 6:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(l(e,a.value||""));break;case 7:{const t=u(e);n.items.push(t.node),c=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const r=j(n,c({},e)),o=r.context(),s=a(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=function(e){const t=e.context(),{offset:n,startLoc:r}=t,o=d(e);return 13===t.currentType?o:function(e,t,n,r){const o=e.context();let s=0===r.items.length;const l=a(1,t,n);l.cases=[],l.cases.push(r);do{const t=d(e);s||(s=0===t.items.length),l.cases.push(t)}while(13!==o.currentType);return i(l,e.currentOffset(),e.currentPosition()),l}(e,n,r,o)}(r),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),13!==o.currentType&&(A.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),i(s,r.currentOffset(),r.currentPosition()),s}}}function V(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 U(e,t){for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(a());const i=t.cases.length;for(let n=0;n{const n=v(t.mode)?t.mode:"normal",a=v(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:a,breakLineCode:i,needIndent:r}=t,o={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};function s(e,t){o.code+=e}function l(e,t=!0){const n=t?i:"";s(r?n+" ".repeat(e):n)}return!1!==t.location&&e.loc&&(o.source=e.loc.source),{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&l(t)},newline:function(){l(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{mode:n,filename:a,sourceMap:i,breakLineCode:r,needIndent:o});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${C(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Y(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function Q(e,t={}){const n=c({},t),a=!!n.jit,i=!!n.minify,r=null==n.optimize||n.optimize,o=F(n).parse(e);return a?(r&&function(e){const t=e.body;2===t.type?W(t):t.cases.forEach((e=>W(e)))}(o),i&&G(o),{ast:o,code:""}):(function(e){const t=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);t.helper("normalize"),e.body&&H(e.body,t);const n=t.context();e.helpers=Array.from(n.helpers)}(o,n),K(o,n))}function Z(e){return t=>function(e,t){const n=ue(t,J);if(null==n)throw ce(0);if(1===re(n)){const t=function(e){return ue(e,X,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ee(e,n)]),[]))}return ee(e,n)}(t,e)}const J=["b","body"],X=["c","cases"];function ee(e,t){const n=function(e){return ue(e,te)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ue(e,ne,[])}(t).reduce(((t,n)=>[...t,ae(e,n)]),[]);return e.normalize(n)}}const te=["s","static"],ne=["i","items"];function ae(e,t){const n=re(t);switch(n){case 3:case 9:case 7:case 8:return function(e,t){const n=ue(e,oe);if(n)return n;throw ce(t)}(t,n);case 4:{const a=t;if(m(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(m(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw ce(n)}case 5:{const a=t;if(m(a,"i")&&o(a.i))return e.interpolate(e.list(a.i));if(m(a,"index")&&o(a.index))return e.interpolate(e.list(a.index));throw ce(n)}case 6:{const n=t,a=function(e){return ue(e,se)}(n),i=function(e){const t=ue(e,le);if(t)return t;throw ce(6)}(n);return e.linked(ae(e,i),a?ae(e,a):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const ie=["t","type"];function re(e){return ue(e,ie)}const oe=["v","value"];const se=["m","modifier"],le=["k","key"];function ue(e,t,n){for(let n=0;ne;let he=h();function pe(e){return y(e)&&0===re(e)&&(m(e,"b")||m(e,"body"))}const fe={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function me(e,t){return null!=t.locale?_e(t.locale):_e(e.locale)}let ge;function _e(e){if(v(e))return e;if(_(e)){if(e.resolvedOnce&&null!=ge)return ge;if("Function"===e.constructor.name){const t=e();if(w(t))throw Error(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ge=t}throw Error(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(fe.NOT_SUPPORT_LOCALE_TYPE)}function ve(e,t,n){return[...new Set([n,...g(t)?t:y(t)?Object.keys(t):v(t)?[t]:[n]])]}function be(e,t,n){const a=v(n)?n:Le,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(a);if(!r){r=[];let e=[n];for(;g(e);)e=ye(r,e,t);const o=g(t)||!S(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&ye(r,e,!1),i.__localeChainCache.set(a,r)}return r}function ye(e,t,n){let a=!0;for(let i=0;i`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Re,Ne,Ie,Oe=null;const qe=e=>{Oe=e},De=()=>Oe;let je=0;function Be(e={}){const t=_(e.onWarn)?e.onWarn:T,n=v(e.version)?e.version:Pe,a=v(e.locale)||_(e.locale)?e.locale:Le,i=_(a)?Le:a,r=g(e.fallbackLocale)||S(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i,o=S(e.messages)?e.messages:$e(i),s=S(e.datetimeFormats)?e.datetimeFormats:$e(i),u=S(e.numberFormats)?e.numberFormats:$e(i),d=c(h(),e.modifiers,{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?ze(e):"vnode"===t&&y(e)&&"__v_isVNode"in e?ze(e.children):e}),p=e.pluralRules||h(),f=_(e.missing)?e.missing:null,m=!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,w=!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,x=!!e.unresolving,C=_(e.postTranslation)?e.postTranslation:null,E=S(e.processor)?e.processor:null,P=!b(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,L=_(e.messageCompiler)?e.messageCompiler:Re,M=_(e.messageResolver)?e.messageResolver:Ne||Ee,z=_(e.localeFallbacker)?e.localeFallbacker:Ie||ve,R=y(e.fallbackContext)?e.fallbackContext:void 0,N=e,I=y(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,O=y(N.__numberFormatters)?N.__numberFormatters:new Map,q=y(N.__meta)?N.__meta:{};je++;const D={version:n,cid:je,locale:a,fallbackLocale:r,messages:o,modifiers:d,pluralRules:p,missing:f,missingWarn:m,fallbackWarn:w,fallbackFormat:k,unresolving:x,postTranslation:C,processor:E,warnHtmlMessage:P,escapeParameter:A,messageCompiler:L,messageResolver:M,localeFallbacker:z,fallbackContext:R,onWarn:t,__meta:q};return D.datetimeFormats=s,D.numberFormats=u,D.__datetimeFormatters=I,D.__numberFormatters=O,D}const $e=e=>({[e]:h()});function Fe(e,t,n,a,i){const{missing:r,onWarn:o}=e;if(null!==r){const a=r(e,n,t,i);return v(a)?a:t}return t}function Ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ue(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r{We.includes(e)?u[e]=n[e]:r[e]=n[e]})),v(a)?r.locale=a:S(a)&&(u=a),S(i)&&(u=i),[r.key||"",l,r,u]}function Ye(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function Ke(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,d,h,p]=Ze(...t);b(h.missingWarn)?h.missingWarn:e.missingWarn,b(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn;const f=!!h.part,m=me(e,h),g=o(e,i,m);if(!v(l)||""===l)return new Intl.NumberFormat(m,p).format(d);let _,y={},w=null;for(let t=0;t{Qe.includes(e)?s[e]=n[e]:r[e]=n[e]})),v(a)?r.locale=a:S(a)&&(s=a),S(i)&&(s=i),[r.key||"",l,r,s]}function Je(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const Xe=e=>e,et=e=>"",tt="text",nt=e=>0===e.length?"":C(e),at=e=>null==e?"":g(e)||S(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function it(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function rt(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),a=y(e.pluralRules)&&v(t)&&_(e.pluralRules[t])?e.pluralRules[t]:it,i=y(e.pluralRules)&&v(t)&&_(e.pluralRules[t])?it:void 0,r=e.list||[],s=e.named||h();function l(t,n){return(_(e.messages)?e.messages(t,!!n):!!y(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):et)}o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const u=S(e.processor)&&_(e.processor.normalize)?e.processor.normalize:nt,d=S(e.processor)&&_(e.processor.interpolate)?e.processor.interpolate:at,p={list:e=>r[e],named:e=>s[e],plural:e=>e[a(n,e.length,i)],linked:(t,...n)=>{const[a,i]=n;let r="text",o="";1===n.length?y(a)?(o=a.modifier||o,r=a.type||r):v(a)&&(o=a||o):2===n.length&&(v(a)&&(o=a||o),v(i)&&(r=i||r));const s=l(t,!0)(p),u="vnode"===r&&g(s)&&o?s[0]:s;return o?(c=o,e.modifiers?e.modifiers[c]:Xe)(u,r):u;var c},message:l,type:S(e.processor)&&v(e.processor.type)?e.processor.type:tt,interpolate:d,normalize:u,values:c(h(),r,s)};return p}const ot=()=>"",st=e=>_(e);function lt(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:i,messageCompiler:r,fallbackLocale:s,messages:l}=e,[u,c]=dt(...t),d=b(c.missingWarn)?c.missingWarn:e.missingWarn,f=b(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=b(c.escapeParameter)?c.escapeParameter:e.escapeParameter,w=!!c.resolvedMessage,k=v(c.default)||b(c.default)?b(c.default)?r?u:()=>u:c.default:n?r?u:()=>u:null,x=n||null!=k&&(v(k)||_(k)),S=me(e,c);m&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?p(e):e)):y(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=p(e.named[t]))}))}(c);let[C,T,E]=w?[u,S,l[S]||h()]:ut(e,u,S,s,f,d),P=C,A=u;if(w||v(P)||pe(P)||st(P)||x&&(P=k,A=P),!(w||(v(P)||pe(P)||st(P))&&v(T)))return i?Ae:u;let L=!1;const M=st(P)?P:ct(e,u,T,P,A,(()=>{L=!0}));if(L)return P;const z=function(e,t,n,a){const{modifiers:i,pluralRules:r,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,h={locale:t,modifiers:i,pluralRules:r,messages:(a,i)=>{let r=s(n,a);if(null==r&&(d||i)){const[,,n]=ut(d||e,a,t,l,u,c);r=s(n,a)}if(v(r)||pe(r)){let n=!1;const i=ct(e,a,t,r,a,(()=>{n=!0}));return n?ot:i}return st(r)?r:ot}};return e.processor&&(h.processor=e.processor),a.list&&(h.list=a.list),a.named&&(h.named=a.named),o(a.plural)&&(h.pluralIndex=a.plural),h}(e,T,E,c),R=function(e,t,n){return t(n)}(0,M,rt(z));return a?a(R,u):R}function ut(e,t,n,a,i,r){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,a,n);let d,p=h(),f=null;for(let n=0;na;return e.locale=n,e.key=t,e}const u=s(a,function(e,t,n,a,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>i(t,n,e)}}(0,n,r,0,l,o));return u.locale=n,u.key=t,u.source=a,u}function dt(...e){const[t,n,a]=e,i=h();if(!(v(t)||o(t)||st(t)||pe(t)))throw Error(fe.INVALID_ARGUMENT);const r=o(t)?String(t):(st(t),t);return o(n)?i.plural=n:v(n)?i.default=n:S(n)&&!u(n)?i.named=n:g(n)&&(i.list=n),o(a)?i.plural=a:v(a)?i.default=a:S(a)&&c(i,a),[r,i]}const ht="10.0.5",pt={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},ft=a("__translateVNode"),mt=a("__datetimeParts"),gt=a("__numberParts"),_t=a("__setPluralRules"),vt=a("__injectWithOption"),bt=a("__dispose");function yt(e){if(!y(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let i=e,r=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||h(),P(n,o[t])):P(n,o)}else v(e)&&P(JSON.parse(e),o)})),null==i&&r)for(const e in o)m(o,e)&&yt(o[e]);return o}function kt(e,t,n){let a=y(t.messages)?t.messages:h();"__i18nGlobal"in n&&(a=wt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const i=Object.keys(a);if(i.length&&i.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),y(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(y(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function xt(e){return t.createVNode(t.Text,null,e,0)}const St=()=>[],Ct=()=>!1;let Tt=0;function Et(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}function Pt(e={}){const{__root:a,__injectWithOption:i}=e,r=void 0===a,s=e.flatJson,u=n?t.ref:t.shallowRef;let d=!b(e.inheritLocale)||e.inheritLocale;const h=u(a&&d?a.locale.value:v(e.locale)?e.locale:Le),p=u(a&&d?a.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:h.value),f=u(wt(h.value,e)),w=u(S(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),k=u(S(e.numberFormats)?e.numberFormats:{[h.value]:{}});let x=a?a.missingWarn:!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,C=a?a.fallbackWarn:!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,A=_(e.missing)?e.missing:null,L=_(e.missing)?Et(e.missing):null,M=_(e.postTranslation)?e.postTranslation:null,z=a?a.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter;const N=a?a.modifiers:S(e.modifiers)?e.modifiers:{};let I,O=e.pluralRules||a&&a.pluralRules;I=(()=>{r&&qe(null);const t={version:ht,locale:h.value,fallbackLocale:p.value,messages:f.value,modifiers:N,pluralRules:O,missing:null===L?void 0:L,missingWarn:x,fallbackWarn:C,fallbackFormat:E,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:z,escapeParameter:R,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=w.value,t.numberFormats=k.value,t.__datetimeFormatters=S(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=S(I)?I.__numberFormatters:void 0;const n=Be(t);return r&&qe(n),n})(),Ve(I,h.value,p.value);const q=t.computed({get:()=>h.value,set:e=>{h.value=e,I.locale=h.value}}),D=t.computed({get:()=>p.value,set:e=>{p.value=e,I.fallbackLocale=p.value,Ve(I,h.value,e)}}),j=t.computed((()=>f.value)),B=t.computed((()=>w.value)),$=t.computed((()=>k.value)),F=(e,t,n,i,s,l)=>{let u;h.value,p.value,f.value,w.value,k.value;try{r||(I.fallbackContext=a?De():void 0),u=e(I)}finally{r||(I.fallbackContext=void 0)}if("translate exists"!==n&&o(u)&&u===Ae||"translate exists"===n&&!u){const[e,n]=t();return a&&T?i(a):s(e)}if(l(u))return u;throw Error(pt.UNEXPECTED_RETURN_TYPE)};function V(...e){return F((t=>Reflect.apply(lt,null,[t,...e])),(()=>dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const U={normalize:function(e){return e.map((e=>v(e)||o(e)||b(e)?xt(String(e)):e))},interpolate:e=>e,type:"vnode"};function H(e){return f.value[e]||{}}Tt++,a&&n&&(t.watch(a.locale,(e=>{d&&(h.value=e,I.locale=e,Ve(I,h.value,p.value))})),t.watch(a.fallbackLocale,(e=>{d&&(p.value=e,I.fallbackLocale=e,Ve(I,h.value,p.value))})));const W={id:Tt,locale:q,fallbackLocale:D,get inheritLocale(){return d},set inheritLocale(e){d=e,e&&a&&(h.value=a.locale.value,p.value=a.fallbackLocale.value,Ve(I,h.value,p.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:j,get modifiers(){return N},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return x},set missingWarn(e){x=e,I.missingWarn=x},get fallbackWarn(){return C},set fallbackWarn(e){C=e,I.fallbackWarn=C},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,I.fallbackFormat=E},get warnHtmlMessage(){return z},set warnHtmlMessage(e){z=e,I.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,I.escapeParameter=e},t:V,getLocaleMessage:H,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)m(n,e)&&yt(n[e]);t=n[e]}f.value[e]=t,I.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{};const n={[e]:t};if(s)for(const e in n)m(n,e)&&yt(n[e]);P(t=n[e],f.value[e]),I.messages=f.value},getPostTranslationHandler:function(){return _(M)?M:null},setPostTranslationHandler:function(e){M=e,I.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(L=Et(e)),A=e,I.missing=L},[_t]:function(e){O=e,I.pluralRules=O}};return W.datetimeFormats=B,W.numberFormats=$,W.rt=function(...e){const[t,n,a]=e;if(a&&!y(a))throw Error(pt.INVALID_ARGUMENT);return V(t,n,c({resolvedMessage:!0},a||{}))},W.te=function(e,t){return F((()=>{if(!e)return!1;const n=H(v(t)?t:h.value),a=I.messageResolver(n,e);return pe(a)||st(a)||v(a)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Ct,(e=>b(e)))},W.tm=function(e){const t=function(e){let t=null;const n=be(I,p.value,h.value);for(let a=0;aReflect.apply(He,null,[t,...e])),(()=>Ge(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Me),(e=>v(e)))},W.n=function(...e){return F((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Ze(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Me),(e=>v(e)))},W.getDateTimeFormat=function(e){return w.value[e]||{}},W.setDateTimeFormat=function(e,t){w.value[e]=t,I.datetimeFormats=w.value,Ye(I,e,t)},W.mergeDateTimeFormat=function(e,t){w.value[e]=c(w.value[e]||{},t),I.datetimeFormats=w.value,Ye(I,e,t)},W.getNumberFormat=function(e){return k.value[e]||{}},W.setNumberFormat=function(e,t){k.value[e]=t,I.numberFormats=k.value,Je(I,e,t)},W.mergeNumberFormat=function(e,t){k.value[e]=c(k.value[e]||{},t),I.numberFormats=k.value,Je(I,e,t)},W[vt]=i,W[ft]=function(...e){return F((t=>{let n;const a=t;try{a.processor=U,n=Reflect.apply(lt,null,[a,...e])}finally{a.processor=null}return n}),(()=>dt(...e)),"translate",(t=>t[ft](...e)),(e=>[xt(e)]),(e=>g(e)))},W[mt]=function(...e){return F((t=>Reflect.apply(He,null,[t,...e])),(()=>Ge(...e)),"datetime format",(t=>t[mt](...e)),St,(e=>v(e)||g(e)))},W[gt]=function(...e){return F((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Ze(...e)),"number format",(t=>t[gt](...e)),St,(e=>v(e)||g(e)))},W}function At(e={}){const t=Pt(function(e){const t=v(e.locale)?e.locale:Le,n=v(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,a=_(e.missing)?e.missing:void 0,i=!b(e.silentTranslationWarn)&&!l(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!b(e.silentFallbackWarn)&&!l(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!b(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=S(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,h=_(e.postTranslation)?e.postTranslation:void 0,p=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!b(e.sync)||e.sync;let y=e.messages;if(S(e.sharedMessages)){const t=e.sharedMessages;y=Object.keys(t).reduce(((e,n)=>{const a=e[n]||(e[n]={});return c(a,t[n]),e}),y||{})}const{__i18n:w,__root:k,__injectWithOption:x}=e,C=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:n,messages:y,flatJson:e.flatJson,datetimeFormats:C,numberFormats:T,missing:a,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:d,postTranslation:h,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:k,__injectWithOption:x}}(e)),{__extender:n}=e,a={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 b(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=b(e)?!e:e},get silentFallbackWarn(){return b(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=b(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]),tc(...e){const[n,a,i]=e,r={plural:1};let s=null,l=null;if(!v(n))throw Error(pt.INVALID_ARGUMENT);const u=n;return v(a)?r.locale=a:o(a)?r.plural=a:g(a)?s=a:S(a)&&(l=a),v(i)?r.locale=i:g(i)?s=i:S(i)&&(l=i),Reflect.apply(t.t,t,[u,s||l||{},r])},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 a.__extender=n,a}function Lt(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[_t](t.pluralizationRules||e.pluralizationRules);const n=wt(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 Mt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function zt(){return t.Fragment}const Rt=t.defineComponent({name:"i18n-t",props:c({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Mt),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(a).filter((e=>"_"!==e)),s=h();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=v(e.plural)?+e.plural:e.plural);const l=function({slots:e},n){return 1===n.length&&"default"===n[0]?(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]):n.reduce(((t,n)=>{const a=e[n];return a&&(t[n]=a()),t}),h())}(n,o),u=r[ft](e.keypath,l,s),d=c(h(),i),p=v(e.tag)||y(e.tag)?e.tag:zt();return t.h(p,d,u)}}}),Nt=Rt;function It(e,n,a,i){const{slots:r,attrs:o}=n;return()=>{const n={part:!0};let s=h();e.locale&&(n.locale=e.locale),v(e.format)?n.key=e.format:y(e.format)&&(v(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?c(h(),t,{[n]:e.format[n]}):t),h()));const l=i(e.value,n,s);let u=[n.key];g(l)?u=l.map(((e,t)=>{const n=r[e.type],a=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];var i;return g(i=a)&&!v(i[0])&&(a[0].key=`${e.type}-${t}`),a})):v(l)&&(u=[l]);const d=c(h(),o),p=v(e.tag)||y(e.tag)?e.tag:zt();return t.h(p,d,u)}}const Ot=t.defineComponent({name:"i18n-n",props:c({value:{type:Number,required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return It(e,t,Qe,((...e)=>n[gt](...e)))}}),qt=Ot,Dt=t.defineComponent({name:"i18n-d",props:c({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return It(e,t,We,((...e)=>n[mt](...e)))}}),jt=Dt;function Bt(e){const a=t=>{const{instance:n,value:a}=t;if(!n||!n.$)throw Error(pt.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return null!=a?a.__composer:e.global.__composer}}(e,n.$),r=$t(a);return[Reflect.apply(i.t,i,[...Ft(r)]),i]};return{created:(i,r)=>{const[o,s]=a(r);n&&e.global===s&&(i.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),i.__composer=s,i.textContent=o},unmounted:e=>{n&&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,a=$t(t);e.textContent=Reflect.apply(n.t,n,[...Ft(a)])}},getSSRProps:e=>{const[t]=a(e);return{textContent:t}}}}function $t(e){if(v(e))return{path:e};if(S(e)){if(!("path"in e))throw Error(pt.REQUIRED_VALUE,"path");return e}throw Error(pt.INVALID_VALUE)}function Ft(e){const{path:t,locale:n,args:a,choice:i,plural:r}=e,s={},l=a||{};return v(n)&&(s.locale=n),o(i)&&(s.plural=i),o(r)&&(s.plural=r),[t,l,s]}const Vt=a("global-vue-i18n");function Ut(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(pt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(pt.NOT_INSTALLED);const a=function(e){const n=t.inject(e.isCE?Vt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?pt.NOT_INSTALLED_WITH_PROVIDE:pt.UNEXPECTED_ERROR);return n}(n),i=function(e){return"composition"===e.mode?e.global:e.global.__composer}(a),r=function(e){return e.type}(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===o)return kt(i,e,r),i;if("parent"===o){let t=function(e,t,n=!1){let a=null;const i=t.root;let r=function(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}(t,n);for(;null!=r;){const t=e;if("composition"===e.mode)a=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(a=e.__composer,n&&a&&!a[vt]&&(a=null))}if(null!=a)break;if(i===r)break;r=r.parent}return a}(a,n,e.__useComponent);return null==t&&(t=i),t}const s=a;let l=s.__getInstance(n);if(null==l){const a=c({},e);"__i18n"in r&&(a.__i18n=r.__i18n),i&&(a.__root=i),l=Pt(a),s.__composerExtend&&(l[bt]=s.__composerExtend(l)),function(e,n,a){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=a;e.__deleteInstance(n);const i=t[bt];i&&(i(),delete t[bt])}),n)}(s,n,l),s.__setInstance(n,l)}return l}const Ht=["locale","fallbackLocale","availableLocales"],Wt=["t","rt","d","n","tm","te"];return Re=function(e,t){if(v(e)){!b(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||de)(e),a=he[n];if(a)return a;const{ast:i,detectError:r}=function(e,t={}){let n=!1;const a=t.onError||L;return t.onError=e=>{n=!0,a(e)},{...Q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),o=Z(i);return r?o:he[n]=o}{const t=e.cacheKey;if(t){return he[t]||(he[t]=Z(e))}return Z(e)}},Ne=function(e,t){if(!y(e))return null;let n=Te.get(t);if(n||(n=function(e){const t=[];let n,a,i,r,o,s,l,u=-1,c=0,d=0;const h=[];function p(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,i="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===a?a=i:a+=i},h[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,c=4,h[0]();else{if(d=0,void 0===a)return!1;if(a=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Se.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(a),!1===a)return!1;h[1]()}};null!==c;)if(u++,n=e[u],"\\"!==n||!p()){if(r=Ce(n),l=xe[c],o=l[r]||l.l||8,8===o)return;if(c=o[0],void 0!==o[1]&&(s=h[o[1]],s&&(i=n,!1===s())))return;if(7===c)return t}}(t),n&&Te.set(t,n)),!n)return null;const a=n.length;let i=e,r=0;for(;rAt(e))):a.run((()=>Pt(e)));if(null==i)throw Error(pt.UNEXPECTED_ERROR);return[a,i]}(e,i),u=a(""),c={get mode(){return i?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=u,e.provide(e.__VUE_I18N_SYMBOL__,c),S(n[0])){const e=n[0];c.__composerExtend=e.__composerExtend,c.__vueI18nExtend=e.__vueI18nExtend}let a=null;!i&&r&&(a=function(e,n){const a=Object.create(null);Ht.forEach((e=>{const i=Object.getOwnPropertyDescriptor(n,e);if(!i)throw Error(pt.UNEXPECTED_ERROR);const r=t.isRef(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,Wt.forEach((t=>{const a=Object.getOwnPropertyDescriptor(n,t);if(!a||!a.value)throw Error(pt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,a)}));return()=>{delete e.config.globalProperties.$i18n,Wt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}(e,c.global)),function(e,t,...n){const a=S(n[0])?n[0]:{};(!b(a.globalInstall)||a.globalInstall)&&([Rt.name,"I18nT"].forEach((t=>e.component(t,Rt))),[Ot.name,"I18nN"].forEach((t=>e.component(t,Ot))),[Dt.name,"I18nD"].forEach((t=>e.component(t,Dt)))),e.directive("t",Bt(t))}(e,c,...n),i&&e.mixin(function(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Error(pt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;if(r.__i18n&&(t.__i18n=r.__i18n),t.__root=n,this===this.$root)this.$i18n=Lt(e,t);else{t.__injectWithOption=!0,t.__extender=a.__vueI18nExtend,this.$i18n=At(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Lt(e,r);else{this.$i18n=At({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&kt(n,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(pt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),a.__deleteInstance(e),delete this.$i18n}}}(l,l.__composer,c));const o=e.unmount;e.unmount=()=>{a&&a(),c.dispose(),o()}},get global(){return l},dispose(){s.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 c},e.useI18n=Ut,e.vTDirective=Bt,e}({},Vue),VueRouter=function(e,t){"use strict";const n="undefined"!=typeof document;function a(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function i(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&a(e.default)}const r=Object.assign;function o(e,t){const n={};for(const a in t){const i=t[a];n[a]=l(i)?i.map(e):e(i)}return n}const s=()=>{},l=Array.isArray;function u(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const c=/#/g,d=/&/g,h=/\//g,p=/=/g,f=/\?/g,m=/\+/g,g=/%5B/g,_=/%5D/g,v=/%5E/g,b=/%60/g,y=/%7B/g,w=/%7C/g,k=/%7D/g,x=/%20/g;function S(e){return encodeURI(""+e).replace(w,"|").replace(g,"[").replace(_,"]")}function C(e){return S(e).replace(m,"%2B").replace(x,"+").replace(c,"%23").replace(d,"%26").replace(b,"`").replace(y,"{").replace(k,"}").replace(v,"^")}function T(e){return null==e?"":function(e){return S(e).replace(c,"%23").replace(f,"%3F")}(e).replace(h,"%2F")}function E(e){try{return decodeURIComponent(""+e)}catch(t){u(`Error decoding "${e}". Using original value`)}return""+e}const P=/\/$/,A=e=>e.replace(P,"");function L(e,t,n="/"){let a,i={},r="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(a=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),i=e(r)),s>-1&&(a=a||t.slice(0,s),o=t.slice(s,t.length)),a=function(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return u(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),a=e.split("/"),i=a[a.length-1];".."!==i&&"."!==i||a.push("");let r,o,s=n.length-1;for(r=0;r1&&s--}return n.slice(0,s).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,n),{fullPath:a+(r&&"?")+r+o,path:a,query:i,hash:E(o)}}function M(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function z(e,t,n){const a=t.matched.length-1,i=n.matched.length-1;return a>-1&&a===i&&R(t.matched[a],n.matched[i])&&N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function R(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!I(e[n],t[n]))return!1;return!0}function I(e,t){return l(e)?O(e,t):l(t)?O(t,e):e===t}function O(e,t){return l(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const q={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var D,j;!function(e){e.pop="pop",e.push="push"}(D||(D={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(j||(j={}));function B(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),A(e)}const $=/^[^#]+#/;function F(e,t){return e.replace($,"#")+t}const V=()=>({left:window.scrollX,top:window.scrollY});function U(e){let t;if("el"in e){const n=e.el,a="string"==typeof n&&n.startsWith("#");if(!("string"!=typeof e.el||a&&document.getElementById(e.el.slice(1))))try{const t=document.querySelector(e.el);if(a&&t)return void u(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`)}catch(t){return void u(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`)}const i="string"==typeof n?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return void u(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);t=function(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function H(e,t){return(history.state?history.state.position-t:-1)+e}const W=new Map;let G=()=>location.protocol+"//"+location.host;function Y(e,t){const{pathname:n,search:a,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),M(n,"")}return M(n,e)+a+i}function K(e,t,n,a=!1,i=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:i?V():null}}function Q(e){const t=function(e){const{history:t,location:n}=window,a={value:Y(e,n)},i={value:t.state};function o(a,r,o){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+a:G()+e+a;try{t[o?"replaceState":"pushState"](r,"",l),i.value=r}catch(e){u("Error with push/replace State",e),n[o?"replace":"assign"](l)}}return i.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:i,push:function(e,n){const s=r({},i.value,t.state,{forward:e,scroll:V()});t.state||u("history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\nhistory.replaceState(history.state, '', url)\n\nYou can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state"),o(s.current,s,!0),o(e,r({},K(a.value,e,null),{position:s.position+1},n),!1),a.value=e},replace:function(e,n){o(e,r({},t.state,K(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),a.value=e}}}(e=B(e)),n=function(e,t,n,a){let i=[],o=[],s=null;const l=({state:r})=>{const o=Y(e,location),l=n.value,u=t.value;let c=0;if(r){if(n.value=o,t.value=r,s&&s===l)return void(s=null);c=u?r.position-u.position:0}else a(o);i.forEach((e=>{e(n.value,l,{delta:c,type:D.pop,direction:c?c>0?j.forward:j.back:j.unknown})}))};function u(){const{history:e}=window;e.state&&e.replaceState(r({},e.state,{scroll:V()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}}}(e,t.state,t.location,t.replace);const a=r({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:F.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Z(e){return"string"==typeof e||e&&"object"==typeof e}function J(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("navigation failure");var ee;e.NavigationFailureType=void 0,(ee=e.NavigationFailureType||(e.NavigationFailureType={}))[ee.aborted=4]="aborted",ee[ee.cancelled=8]="cancelled",ee[ee.duplicated=16]="duplicated";const te={1:({location:e,currentLocation:t})=>`No match for\n ${JSON.stringify(e)}${t?"\nwhile being at\n"+JSON.stringify(t):""}`,2:({from:e,to:t})=>`Redirected from "${e.fullPath}" to "${function(e){if("string"==typeof e)return e;if(null!=e.path)return e.path;const t={};for(const n of ie)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}(t)}" via a navigation guard.`,4:({from:e,to:t})=>`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`,8:({from:e,to:t})=>`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`,16:({from:e,to:t})=>`Avoided redundant navigation to current location: "${e.fullPath}".`};function ne(e,t){return r(new Error(te[e](t)),{type:e,[X]:!0},t)}function ae(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}const ie=["params","query","hash"];const re="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},se=/[.+*?^${}()[\]/\\]/g;function le(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ue(e,t){let n=0;const a=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const de={type:0,value:""},he=/[a-zA-Z0-9_]/;function pe(e,t,n){const a=function(e,t){const n=r({},oe,t),a=[];let i=n.start?"^":"";const o=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(i+="/");for(let a=0;a1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l{o(m)}:s}function o(e){if(J(e)){const t=a.get(e);t&&(a.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function l(e){const t=function(e,t){let n=0,a=t.length;for(;n!==a;){const i=n+a>>1;ue(e,t[i])<0?a=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(Se(t)&&0===ue(e,t))return t;return}(e);i&&(a=t.lastIndexOf(i,a-1),a<0&&u(`Finding ancestor route "${i.record.path}" failed for "${e.record.path}"`));return a}(e,n);n.splice(t,0,e),e.record.name&&!ve(e)&&a.set(e.record.name,e)}return t=ye({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,o,s,l={};if("name"in e&&e.name){if(i=a.get(e.name),!i)throw ne(1,{location:e});{const t=Object.keys(e.params||{}).filter((e=>!i.keys.find((t=>t.name===e))));t.length&&u(`Discarded invalid param(s) "${t.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}s=i.record.name,l=r(me(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&me(e.params,i.keys.map((e=>e.name)))),o=i.stringify(l)}else if(null!=e.path)o=e.path,o.startsWith("/")||u(`The Matcher cannot resolve relative paths but received "${o}". Unless you directly called \`matcher.resolve("${o}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),i=n.find((e=>e.re.test(o))),i&&(l=i.parse(o),s=i.record.name);else{if(i=t.name?a.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw ne(1,{location:e,currentLocation:t});s=i.record.name,l=r({},t.params,e.params),o=i.stringify(l)}const c=[];let d=i;for(;d;)c.unshift(d.record),d=d.parent;return{name:s,path:o,params:l,matched:c,meta:be(c)}},removeRoute:o,clearRoutes:function(){n.length=0,a.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return a.get(e)}}}function me(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function ge(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _e(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]="object"==typeof n?n[a]:n;return t}function ve(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function be(e){return e.reduce(((e,t)=>r(e,t.meta)),{})}function ye(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function we(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function ke(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(we.bind(null,n)))return u(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(we.bind(null,n)))return u(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function xe(e,t){for(const n of t.keys)if(!e.keys.find(we.bind(null,n)))return u(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Se({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&C(e))):[a&&C(a)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ee(e){const t={};for(const n in e){const a=e[n];void 0!==a&&(t[n]=l(a)?a.map((e=>null==e?null:""+e)):null==a?a:""+a)}return t}const Pe=Symbol("router view location matched"),Ae=Symbol("router view depth"),Le=Symbol("router"),Me=Symbol("route location"),ze=Symbol("router view location");function Re(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ne(e,n,a){const i=()=>{e[n].delete(a)};t.onUnmounted(i),t.onDeactivated(i),t.onActivated((()=>{e[n].add(a)})),e[n].add(a)}function Ie(e,t,n,a,i,r=e=>e()){const o=a&&(a.enterCallbacks[i]=a.enterCallbacks[i]||[]);return()=>new Promise(((s,l)=>{const c=e=>{!1===e?l(ne(4,{from:n,to:t})):e instanceof Error?l(e):Z(e)?l(ne(2,{from:t,to:e})):(o&&a.enterCallbacks[i]===o&&"function"==typeof e&&o.push(e),s())},d=r((()=>e.call(a&&a.instances[i],t,n,function(e,t,n){let a=0;return function(){1==a++&&u(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,1===a&&e.apply(null,arguments)}}(c,t,n))));let h=Promise.resolve(d);if(e.length<3&&(h=h.then(c)),e.length>2){const t=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:\n${e.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if("object"==typeof d&&"then"in d)h=h.then((e=>c._called?e:(u(t),Promise.reject(new Error("Invalid navigation guard")))));else if(void 0!==d&&!c._called)return u(t),void l(new Error("Invalid navigation guard"))}h.catch((e=>l(e)))}))}function Oe(e,t,n,r,o=e=>e()){const s=[];for(const l of e){l.components||l.children.length||u(`Record with path "${l.path}" is either missing a "component(s)" or "children" property.`);for(const e in l.components){let c=l.components[e];if(!c||"object"!=typeof c&&"function"!=typeof c)throw u(`Component "${e}" in record with path "${l.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){u(`Component "${e}" in record with path "${l.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const t=c;c=()=>t}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,u(`Component "${e}" in record with path "${l.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));if("beforeRouteEnter"===t||l.instances[e])if(a(c)){const a=(c.__vccOpts||c)[t];a&&s.push(Ie(a,n,r,l,e,o))}else{let a=c();"catch"in a||(u(`Component "${e}" in record with path "${l.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),a=Promise.resolve(a)),s.push((()=>a.then((a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${l.path}"`);const s=i(a)?a.default:a;l.mods[e]=a,l.components[e]=s;const u=(s.__vccOpts||s)[t];return u&&Ie(u,n,r,l,e,o)()}))))}}}return s}function qe(e){const a=t.inject(Le),i=t.inject(Me);let r=!1,o=null;const c=t.computed((()=>{const n=t.unref(e.to);return r&&n===o||(Z(n)||(r?u('Invalid value for prop "to" in useLink()\n- to:',n,"\n- previous to:",o,"\n- props:",e):u('Invalid value for prop "to" in useLink()\n- to:',n,"\n- props:",e)),o=n,r=!0),a.resolve(n)})),d=t.computed((()=>{const{matched:e}=c.value,{length:t}=e,n=e[t-1],a=i.matched;if(!n||!a.length)return-1;const r=a.findIndex(R.bind(null,n));if(r>-1)return r;const o=je(e[t-2]);return t>1&&je(n)===o&&a[a.length-1].path!==o?a.findIndex(R.bind(null,e[t-2])):r})),h=t.computed((()=>d.value>-1&&function(e,t){for(const n in t){const a=t[n],i=e[n];if("string"==typeof a){if(a!==i)return!1}else if(!l(i)||i.length!==a.length||a.some(((e,t)=>e!==i[t])))return!1}return!0}(i.params,c.value.params))),p=t.computed((()=>d.value>-1&&d.value===i.matched.length-1&&N(i.params,c.value.params)));if(n){const n=t.getCurrentInstance();if(n){const a={route:c.value,isActive:h.value,isExactActive:p.value,error:null};n.__vrl_devtools=n.__vrl_devtools||[],n.__vrl_devtools.push(a),t.watchEffect((()=>{a.route=c.value,a.isActive=h.value,a.isExactActive=p.value,a.error=Z(t.unref(e.to))?null:'Invalid "to" value'}),{flush:"post"})}}return{route:c,href:t.computed((()=>c.value.href)),isActive:h,isExactActive:p,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?a[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(s):Promise.resolve()}}}const De=t.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qe,setup(e,{slots:n}){const a=t.reactive(qe(e)),{options:i}=t.inject(Le),r=t.computed((()=>({[Be(e.activeClass,i.linkActiveClass,"router-link-active")]:a.isActive,[Be(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:a.isExactActive})));return()=>{const i=n.default&&n.default(a);return e.custom?i:t.h("a",{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:r.value},i)}}});function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>null!=e?e:null!=t?t:n;function $e(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Fe=t.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:a,slots:i}){!function(){const e=t.getCurrentInstance(),n=e.parent&&e.parent.type.name,a=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(n&&("KeepAlive"===n||n.includes("Transition"))&&"object"==typeof a&&"RouterView"===a.name){const e="KeepAlive"===n?"keep-alive":"transition";u(` can no longer be used directly inside or .\nUse slot props instead:\n\n\n <${e}>\n \n \n`)}}();const o=t.inject(ze),s=t.computed((()=>e.route||o.value)),c=t.inject(Ae,0),d=t.computed((()=>{let e=t.unref(c);const{matched:n}=s.value;let a;for(;(a=n[e])&&!a.components;)e++;return e})),h=t.computed((()=>s.value.matched[d.value]));t.provide(Ae,t.computed((()=>d.value+1))),t.provide(Pe,h),t.provide(ze,s);const p=t.ref();return t.watch((()=>[p.value,h.value,e.name]),(([e,t,n],[a,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&R(t,i)&&a||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=s.value,u=e.name,c=h.value,f=c&&c.components[u];if(!f)return $e(i.default,{Component:f,route:o});const m=c.props[u],g=m?!0===m?o.params:"function"==typeof m?m(o):m:null,_=t.h(f,r({},g,a,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(c.instances[u]=null)},ref:p}));if(n&&_.ref){const e={depth:d.value,name:c.name,path:c.path,meta:c.meta};(l(_.ref)?_.ref.map((e=>e.i)):[_.ref.i]).forEach((t=>{t.__vrv_devtools=e}))}return $e(i.default,{Component:_,route:o})||_}}});function Ve(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const Ue="function"==typeof Proxy,He="devtools-plugin:setup";let We,Ge;function Ye(){return void 0!==We||("undefined"!=typeof window&&window.performance?(We=!0,Ge=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(We=!0,Ge=globalThis.perf_hooks.performance):We=!1),We?Ge.now():Date.now();var e}class Ke{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 a=e.settings[t];n[t]=a.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(a),t=JSON.parse(e);Object.assign(i,t)}catch(e){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){}i=e},now:()=>Ye()},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 Qe(e,t){const n=e,a=Ve(),i=Ve().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=Ue&&n.enableEarlyProxy;if(!i||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new Ke(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit(He,e,t)}function Ze(e,t){const n=r({},e,{matched:e.matched.map((e=>function(e,t){const n={};for(const a in e)t.includes(a)||(n[a]=e[a]);return n}(e,["instances","children","aliasOf"])))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Je(e){return{_custom:{display:e}}}let Xe=0;function et(e,n,a){if(n.__hasDevtools)return;n.__hasDevtools=!0;const i=Xe++;Qe({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},(r=>{"function"!=typeof r.now&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.on.inspectComponent(((e,t)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ze(n.currentRoute.value,"Current Route")})})),r.on.visitComponentTree((({treeNode:e,componentInstance:t})=>{if(t.__vrv_devtools){const n=t.__vrv_devtools;e.tags.push({label:(n.name?`${n.name.toString()}: `:"")+n.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:nt})}l(t.__vrl_devtools)&&(t.__devtoolsApi=r,t.__vrl_devtools.forEach((t=>{let n=t.route.path,a=ot,i="",r=0;t.error?(n=t.error,a=lt,r=ut):t.isExactActive?(a=it,i="This is exactly active"):t.isActive&&(a=at,i="This link is active"),e.tags.push({label:n,textColor:r,tooltip:i,backgroundColor:a})})))})),t.watch(n.currentRoute,(()=>{c(),r.notifyComponentUpdate(),r.sendInspectorTree(u),r.sendInspectorState(u)}));const o="router:navigations:"+i;r.addTimelineLayer({id:o,label:`Router${i?" "+i:""} Navigations`,color:4237508}),n.onError(((e,t)=>{r.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:r.now(),data:{error:e},groupId:t.meta.__navigationId}})}));let s=0;n.beforeEach(((e,t)=>{const n={guard:Je("beforeEach"),from:Ze(t,"Current Location during this navigation"),to:Ze(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:s++}),r.addTimelineEvent({layerId:o,event:{time:r.now(),title:"Start of navigation",subtitle:e.fullPath,data:n,groupId:e.meta.__navigationId}})})),n.afterEach(((e,t,n)=>{const a={guard:Je("afterEach")};n?(a.failure={_custom:{type:Error,readOnly:!0,display:n?n.message:"",tooltip:"Navigation Failure",value:n}},a.status=Je("❌")):a.status=Je("✅"),a.from=Ze(t,"Current Location during this navigation"),a.to=Ze(e,"Target location"),r.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:e.fullPath,time:r.now(),data:a,logType:n?"warning":"default",groupId:e.meta.__navigationId}})}));const u="router-inspector:"+i;function c(){if(!d)return;const e=d;let t=a.getRoutes().filter((e=>!e.parent||!e.parent.record.components));t.forEach(ft),e.filter&&(t=t.filter((t=>mt(t,e.filter.toLowerCase())))),t.forEach((e=>pt(e,n.currentRoute.value))),e.rootNodes=t.map(ct)}let d;r.addInspector({id:u,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"}),r.on.getInspectorTree((t=>{d=t,t.app===e&&t.inspectorId===u&&c()})),r.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===u){const e=a.getRoutes().find((e=>e.record.__vd_id===t.nodeId));e&&(t.state={options:tt(e)})}})),r.sendInspectorTree(u),r.sendInspectorState(u)}))}function tt(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return null!=t.name&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map((e=>`${e.name}${function(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}}),null!=t.redirect&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map((e=>e.record.path))}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const nt=15485081,at=2450411,it=8702998,rt=2282478,ot=16486972,st=6710886,lt=16704226,ut=12131356;function ct(e){const t=[],{record:n}=e;null!=n.name&&t.push({label:String(n.name),textColor:0,backgroundColor:rt}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:ot}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:nt}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:it}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:at}),n.redirect&&t.push({label:"string"==typeof n.redirect?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:st});let a=n.__vd_id;return null==a&&(a=String(dt++),n.__vd_id=a),{id:a,label:n.path,tags:t,children:e.children.map(ct)}}let dt=0;const ht=/^\/(.*)\/([a-z]*)$/;function pt(e,t){const n=t.matched.length&&R(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some((t=>R(t,e.record)))),e.children.forEach((e=>pt(e,t)))}function ft(e){e.__vd_match=!1,e.children.forEach(ft)}function mt(e,t){const n=String(e.re).match(ht);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach((e=>mt(e,t))),("/"!==e.record.path||"/"===t)&&(e.__vd_match=e.re.test(t),!0);const a=e.record.path.toLowerCase(),i=E(a);return!(t.startsWith("/")||!i.includes(t)&&!a.includes(t))||(!(!i.startsWith(t)&&!a.startsWith(t))||(!(!e.record.name||!String(e.record.name).includes(t))||e.children.some((e=>mt(e,t)))))}return e.RouterLink=De,e.RouterView=Fe,e.START_LOCATION=q,e.createMemoryHistory=function(e=""){let t=[],n=[""],a=0;function i(e){a++,a!==n.length&&n.splice(a),n.push(e)}const r={location:"",state:{},base:e=B(e),createHref:F.bind(null,e),replace(e){n.splice(a--,1),i(e)},push(e,t){i(e)},listen:e=>(t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}),destroy(){t=[],n=[""],a=0},go(e,i=!0){const r=this.location,o=e<0?j.back:j.forward;a=Math.max(0,Math.min(a+e,n.length-1)),i&&function(e,n,{direction:a,delta:i}){const r={direction:a,delta:i,type:D.pop};for(const a of t)a(e,n,r)}(this.location,r,{direction:o,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n[a]}),r},e.createRouter=function(e){const a=fe(e.routes,e),i=e.parseQuery||Ce,c=e.stringifyQuery||Te,d=e.history;if(!d)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const h=Re(),p=Re(),f=Re(),m=t.shallowRef(q);let g=q;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=o.bind(null,(e=>""+e)),b=o.bind(null,T),w=o.bind(null,E);function x(e,t){if(t=r({},t||m.value),"string"==typeof e){const n=L(i,e,t.path),o=a.resolve({path:n.path},t),s=d.createHref(n.fullPath);return s.startsWith("//")?u(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`):o.matched.length||u(`No match found for location with path "${e}"`),r(n,o,{params:w(o.params),hash:E(n.hash),redirectedFrom:void 0,href:s})}if(!Z(e))return u("router.resolve() was passed an invalid location. This will fail in production.\n- Location:",e),x({});let n;if(null!=e.path)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&u(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),n=r({},e,{path:L(i,e.path,t.path).path});else{const a=r({},e.params);for(const e in a)null==a[e]&&delete a[e];n=r({},e,{params:b(a)}),t.params=b(t.params)}const o=a.resolve(n,t),s=e.hash||"";s&&!s.startsWith("#")&&u(`A \`hash\` should always start with the character "#". Replace "${s}" with "#${s}".`),o.params=_(w(o.params));const l=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(c,r({},e,{hash:(h=s,S(h).replace(y,"{").replace(k,"}").replace(v,"^")),path:o.path}));var h;const p=d.createHref(l);return p.startsWith("//")?u(`Location "${e}" resolved to "${p}". A resolved location cannot start with multiple slashes.`):o.matched.length||u(`No match found for location with path "${null!=e.path?e.path:e}"`),r({fullPath:l,hash:s,query:c===Te?Ee(e.query):e.query||{}},o,{redirectedFrom:void 0,href:p})}function C(e){return"string"==typeof e?L(i,e,m.value.path):r({},e)}function P(e,t){if(g!==e)return ne(8,{from:t,to:e})}function A(e){return N(e)}function M(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;if("string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=C(a):{path:a},a.params={}),null==a.path&&!("name"in a))throw u(`Invalid redirect found:\n${JSON.stringify(a,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return r({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function N(e,t){const n=g=x(e),a=m.value,i=e.state,o=e.force,s=!0===e.replace,l=M(n);if(l)return N(r(C(l),{state:"object"==typeof l?r({},i,l.state):i,force:o,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!o&&z(c,a,n)&&(h=ne(16,{to:d,from:a}),te(a,a,!0,!1)),(h?Promise.resolve(h):j(d,a)).catch((e=>ae(e)?ae(e,2)?e:ee(e):X(e,d,a))).then((e=>{if(e){if(ae(e,2))return z(c,x(e.to),d)&&t&&(t._count=t._count?t._count+1:1)>30?(u(`Detected a possibly infinite redirection in a navigation guard when going from "${a.fullPath}" to "${d.fullPath}". Aborting to avoid a Stack Overflow.\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):N(r({replace:s},C(e.to),{state:"object"==typeof e.to?r({},i,e.to.state):i,force:o}),t||d)}else e=$(d,a,!0,s,i);return B(d,a,e),e}))}function I(e,t){const n=P(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){const t=oe.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function j(e,t){let n;const[a,i,r]=function(e,t){const n=[],a=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;oR(e,r)))?a.push(r):n.push(r));const s=e.matched[o];s&&(t.matched.find((e=>R(e,s)))||i.push(s))}return[n,a,i]}(e,t);n=Oe(a.reverse(),"beforeRouteLeave",e,t);for(const i of a)i.leaveGuards.forEach((a=>{n.push(Ie(a,e,t))}));const o=I.bind(null,e,t);return n.push(o),le(n).then((()=>{n=[];for(const a of h.list())n.push(Ie(a,e,t));return n.push(o),le(n)})).then((()=>{n=Oe(i,"beforeRouteUpdate",e,t);for(const a of i)a.updateGuards.forEach((a=>{n.push(Ie(a,e,t))}));return n.push(o),le(n)})).then((()=>{n=[];for(const a of r)if(a.beforeEnter)if(l(a.beforeEnter))for(const i of a.beforeEnter)n.push(Ie(i,e,t));else n.push(Ie(a.beforeEnter,e,t));return n.push(o),le(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Oe(r,"beforeRouteEnter",e,t,O),n.push(o),le(n)))).then((()=>{n=[];for(const a of p.list())n.push(Ie(a,e,t));return n.push(o),le(n)})).catch((e=>ae(e,8)?e:Promise.reject(e)))}function B(e,t,n){f.list().forEach((a=>O((()=>a(e,t,n)))))}function $(e,t,a,i,o){const s=P(e,t);if(s)return s;const l=t===q,u=n?history.state:{};a&&(i||l?d.replace(e.fullPath,r({scroll:l&&u&&u.scroll},o)):d.push(e.fullPath,o)),m.value=e,te(e,t,a,l),ee()}let F;function G(){F||(F=d.listen(((e,t,a)=>{if(!se.listening)return;const i=x(e),o=M(i);if(o)return void N(r(o,{replace:!0}),i).catch(s);g=i;const l=m.value;var u,c;n&&(u=H(l.fullPath,a.delta),c=V(),W.set(u,c)),j(i,l).catch((e=>ae(e,12)?e:ae(e,2)?(N(e.to,i).then((e=>{ae(e,20)&&!a.delta&&a.type===D.pop&&d.go(-1,!1)})).catch(s),Promise.reject()):(a.delta&&d.go(-a.delta,!1),X(e,i,l)))).then((e=>{(e=e||$(i,l,!1))&&(a.delta&&!ae(e,8)?d.go(-a.delta,!1):a.type===D.pop&&ae(e,20)&&d.go(-1,!1)),B(i,l,e)})).catch(s)})))}let Y,K=Re(),Q=Re();function X(e,t,n){ee(e);const a=Q.list();return a.length?a.forEach((a=>a(e,t,n))):(u("uncaught error during route navigation:"),console.error(e)),Promise.reject(e)}function ee(e){return Y||(Y=!e,G(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function te(a,i,r,o){const{scrollBehavior:s}=e;if(!n||!s)return Promise.resolve();const l=!r&&function(e){const t=W.get(e);return W.delete(e),t}(H(a.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return t.nextTick().then((()=>s(a,i,l))).then((e=>e&&U(e))).catch((e=>X(e,a,i)))}const ie=e=>d.go(e);let re;const oe=new Set,se={currentRoute:m,listening:!0,addRoute:function(e,t){let n,i;return J(e)?(n=a.getRecordMatcher(e),n||u(`Parent route "${String(e)}" not found when adding child route`,t),i=t):i=e,a.addRoute(i,n)},removeRoute:function(e){const t=a.getRecordMatcher(e);t?a.removeRoute(t):u(`Cannot remove non-existent route "${String(e)}"`)},clearRoutes:a.clearRoutes,hasRoute:function(e){return!!a.getRecordMatcher(e)},getRoutes:function(){return a.getRoutes().map((e=>e.record))},resolve:x,options:e,push:A,replace:function(e){return A(r(C(e),{replace:!0}))},go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:h.add,beforeResolve:p.add,afterEach:f.add,onError:Q.add,isReady:function(){return Y&&m.value!==q?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))},install(e){const i=this;e.component("RouterLink",De),e.component("RouterView",Fe),e.config.globalProperties.$router=i,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t.unref(m)}),n&&!re&&m.value===q&&(re=!0,A(d.location).catch((e=>{u("Unexpected error when starting the router:",e)})));const r={};for(const e in q)Object.defineProperty(r,e,{get:()=>m.value[e],enumerable:!0});e.provide(Le,i),e.provide(Me,t.shallowReactive(r)),e.provide(ze,m);const o=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(g=q,F&&F(),F=null,m.value=q,re=!1,Y=!1),o()},n&&et(e,i,a)}};function le(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return se},e.createRouterMatcher=fe,e.createWebHashHistory=function(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),e.endsWith("#/")||e.endsWith("#")||u(`A hash base must end with a "#":\n"${e}" should be "${e.replace(/#.*$/,"#")}".`),Q(e)},e.createWebHistory=Q,e.isNavigationFailure=ae,e.loadRouteLocation=function(e){return e.matched.every((e=>e.redirect))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((e=>e.components&&Promise.all(Object.keys(e.components).reduce(((t,n)=>{const a=e.components[n];return"function"!=typeof a||"displayName"in a||t.push(a().then((t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=i(t)?t.default:t;e.mods[n]=t,e.components[n]=a}))),t}),[]))))).then((()=>e))},e.matchedRouteKey=Pe,e.onBeforeRouteLeave=function(e){if(!t.getCurrentInstance())return void u("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");const n=t.inject(Pe,{}).value;n?Ne(n,"leaveGuards",e):u("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of . Maybe you called it inside of App.vue?")},e.onBeforeRouteUpdate=function(e){if(!t.getCurrentInstance())return void u("getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function");const n=t.inject(Pe,{}).value;n?Ne(n,"updateGuards",e):u("No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of . Maybe you called it inside of App.vue?")},e.parseQuery=Ce,e.routeLocationKey=Me,e.routerKey=Le,e.routerViewLocationKey=ze,e.stringifyQuery=Te,e.useLink=qe,e.useRoute=function(e){return t.inject(Me)},e.useRouter=function(){return t.inject(Le)},e.viewDepthKey=Ae,e}({},Vue); +var Vuex=function(e){"use strict";var t="store";function n(){return"undefined"!=typeof navigator?window:"undefined"!=typeof global?global:{}}var a="devtools-plugin:setup";function i(e,t){var i=n().__VUE_DEVTOOLS_GLOBAL_HOOK__;if(i)i.emit(a,e,t);else{var r=n();(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t})}}function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,a=(n=function(t){return t.original===e},t.filter(n)[0]);if(a)return a.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=r(e[n],t)})),i}function o(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"==typeof e}function l(e,t){if(!e)throw new Error("[vuex] "+t)}function u(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function c(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;h(e,n,[],e._modules.root,!0),d(e,n,t)}function d(t,n,a){var i=t._state,r=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,u={},c={},d=e.effectScope(!0);d.run((function(){o(s,(function(n,a){u[a]=function(e,t){return function(){return e(t)}}(n,t),c[a]=e.computed((function(){return u[a]()})),Object.defineProperty(t.getters,a,{get:function(){return c[a].value},enumerable:!0})}))})),t._state=e.reactive({data:n}),t._scope=d,t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){l(t._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}(t),i&&a&&t._withCommit((function(){i.data=null})),r&&r.stop()}function h(e,t,n,a,i){var r=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o]&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[o]=a),!r&&!i){var s=f(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[l]=a.state}))}var u=a.context=function(e,t,n){var a=""===t,i={dispatch:a?e.dispatch:function(n,a,i){var r=m(n,a,i),o=r.payload,s=r.options,l=r.type;if(s&&s.root||(l=t+l,e._actions[l]))return e.dispatch(l,o);console.error("[vuex] unknown local action type: "+r.type+", global type: "+l)},commit:a?e.commit:function(n,a,i){var r=m(n,a,i),o=r.payload,s=r.options,l=r.type;s&&s.root||(l=t+l,e._mutations[l])?e.commit(l,o,s):console.error("[vuex] unknown local mutation type: "+r.type+", global type: "+l)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return p(e,t)}},state:{get:function(){return f(e.state,n)}}}),i}(e,o,n);a.forEachMutation((function(t,n){!function(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,a.state,t)}))}(e,o+n,t,u)})),a.forEachAction((function(t,n){var a=t.root?n:o+n,i=t.handler||t;!function(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i,r=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(i=r)&&"function"==typeof i.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,a,i,u)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return void console.error("[vuex] duplicate getter key: "+t);e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,o+n,t,u)})),a.forEachChild((function(a,r){h(e,t,n.concat(r),a,i)}))}function p(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,a)===t){var r=i.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function f(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),l("string"==typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var g="vuex:mutations",_="vuex:actions",v="vuex",b=0;function y(e,t){i({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:g,label:"Vuex Mutations",color:w}),n.addTimelineLayer({id:_,label:"Vuex Actions",color:w}),n.addInspector({id:v,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===v)if(n.filter){var a=[];C(a,t._modules.root,n.filter,""),n.rootNodes=a}else n.rootNodes=[S(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===v){var a=n.nodeId;p(t,a),n.state=function(e,t,n){t="root"===n?t:t[n];var a=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(a.length){var r=function(e){var t={};return Object.keys(e).forEach((function(n){var a=n.split("/");if(a.length>1){var i=t,r=a.pop();a.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=T((function(){return e[n]}))}else t[n]=T((function(){return e[n]}))})),t}(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?x(e):e,editable:!1,value:T((function(){return r[e]}))}}))}return i}((i=t._modules,(o=(r=a).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var a=e[t];if(!a)throw new Error('Missing module "'+t+'" for path "'+r+'".');return n===o.length-1?a:a._children}),"root"===r?i:i.root._children)),"root"===a?t.getters:t._makeLocalGettersCache,a)}var i,r,o})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===v){var a=n.nodeId,i=n.path;"root"!==a&&(i=a.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var a={};e.payload&&(a.payload=e.payload),a.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(v),n.sendInspectorState(v),n.addTimelineEvent({layerId:g,event:{time:Date.now(),title:e.type,data:a}})})),t.subscribeAction({before:function(e,t){var a={};e.payload&&(a.payload=e.payload),e._id=b++,e._time=Date.now(),a.state=t,n.addTimelineEvent({layerId:_,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:a}})},after:function(e,t){var a={},i=Date.now()-e._time;a.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(a.payload=e.payload),a.state=t,n.addTimelineEvent({layerId:_,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:a}})}})}))}var w=8702998,k={label:"namespaced",textColor:16777215,backgroundColor:6710886};function x(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function S(e,t){return{id:t||"root",label:x(t),tags:e.namespaced?[k]:[],children:Object.keys(e._children).map((function(n){return S(e._children[n],t+n+"/")}))}}function C(e,t,n,a){a.includes(n)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[k]:[]}),Object.keys(t._children).forEach((function(i){C(e,t._children[i],n,a+i+"/")}))}function T(e){try{return e()}catch(e){return e}}var E=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},P={namespaced:{configurable:!0}};P.namespaced.get=function(){return!!this._rawModule.namespaced},E.prototype.addChild=function(e,t){this._children[e]=t},E.prototype.removeChild=function(e){delete this._children[e]},E.prototype.getChild=function(e){return this._children[e]},E.prototype.hasChild=function(e){return e in this._children},E.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},E.prototype.forEachChild=function(e){o(this._children,e)},E.prototype.forEachGetter=function(e){this._rawModule.getters&&o(this._rawModule.getters,e)},E.prototype.forEachAction=function(e){this._rawModule.actions&&o(this._rawModule.actions,e)},E.prototype.forEachMutation=function(e){this._rawModule.mutations&&o(this._rawModule.mutations,e)},Object.defineProperties(E.prototype,P);var A=function(e){this.register([],e,!1)};function L(e,t,n){if(R(e,n),t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return void console.warn("[vuex] trying to add a new module '"+a+"' on hot reloading, manual reload is needed");L(e.concat(a),t.getChild(a),n.modules[a])}}A.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},A.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},A.prototype.update=function(e){L([],this.root,e)},A.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0),R(e,t);var i=new E(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&o(t.modules,(function(t,i){a.register(e.concat(i),t,n)}))},A.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a?a.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},A.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var M={assert:function(e){return"function"==typeof e},expected:"function"},z={getters:M,mutations:M,actions:{assert:function(e){return"function"==typeof e||"object"==typeof e&&"function"==typeof e.handler},expected:'function or object with "handler" function'}};function R(e,t){Object.keys(z).forEach((function(n){if(t[n]){var a=z[n];o(t[n],(function(t,i){l(a.assert(t),function(e,t,n,a,i){var r=t+" should be "+i+' but "'+t+"."+n+'"';e.length>0&&(r+=' in module "'+e.join(".")+'"');return r+=" is "+JSON.stringify(a)+".",r}(e,n,i,t,a.expected))}))}}))}var N=function e(t){var n=this;void 0===t&&(t={}),l("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),l(this instanceof e,"store must be called with the new operator.");var a=t.plugins;void 0===a&&(a=[]);var i=t.strict;void 0===i&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,s=this.dispatch,u=this.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return u.call(o,e,t,n)},this.strict=i;var c=this._modules.root.state;h(this,c,[],this._modules.root),d(this,c),a.forEach((function(e){return e(n)}))},I={state:{configurable:!0}};N.prototype.install=function(e,n){e.provide(n||t,this),e.config.globalProperties.$store=this,(void 0===this._devtools||this._devtools)&&y(e,this)},I.state.get=function(){return this._state.data},I.state.set=function(e){l(!1,"use store.replaceState() to explicit replace store state.")},N.prototype.commit=function(e,t,n){var a=this,i=m(e,t,n),r=i.type,o=i.payload,s=i.options,l={type:r,payload:o},u=this._mutations[r];u?(this._withCommit((function(){u.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(l,a.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+r+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+r)},N.prototype.dispatch=function(e,t){var n=this,a=m(e,t),i=a.type,r=a.payload,o={type:i,payload:r},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){console.warn("[vuex] error in before action subscribers: "),console.error(e)}var l=s.length>1?Promise.all(s.map((function(e){return e(r)}))):s[0](r);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){console.warn("[vuex] error in after action subscribers: "),console.error(e)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(e){console.warn("[vuex] error in error action subscribers: "),console.error(e)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},N.prototype.subscribe=function(e,t){return u(e,this._subscribers,t)},N.prototype.subscribeAction=function(e,t){return u("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},N.prototype.watch=function(t,n,a){var i=this;return l("function"==typeof t,"store.watch only accepts a function."),e.watch((function(){return t(i.state,i.getters)}),n,Object.assign({},a))},N.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},N.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),l(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),h(this,this.state,e,this._modules.get(e),n.preserveState),d(this,this.state)},N.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){delete f(t.state,e.slice(0,-1))[e[e.length-1]]})),c(this)},N.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},N.prototype.hotUpdate=function(e){this._modules.update(e),c(this,!0)},N.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(N.prototype,I);var O=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=V(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[a].vuex=!0})),n})),q=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var r=V(this.$store,"mapMutations",e);if(!r)return;a=r.context.commit}return"function"==typeof i?i.apply(this,[a].concat(t)):a.apply(this.$store,[i].concat(t))}})),n})),D=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;i=e+i,n[a]=function(){if(!e||V(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[a].vuex=!0})),n})),j=F((function(e,t){var n={};return $(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var a=t.key,i=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var r=V(this.$store,"mapActions",e);if(!r)return;a=r.context.dispatch}return"function"==typeof i?i.apply(this,[a].concat(t)):a.apply(this.$store,[i].concat(t))}})),n}));function B(e){return $(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return Array.isArray(e)||s(e)}function F(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function V(e,t,n){var a=e._modulesNamespaceMap[n];return a||console.error("[vuex] module namespace not found in "+t+"(): "+n),a}function U(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(n){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function G(e,t){return n="0",a=t-e.toString().length,new Array(a+1).join(n)+e;var n,a}return{version:"4.1.0",Store:N,storeKey:t,createStore:function(e){return new N(e)},useStore:function(n){return void 0===n&&(n=null),e.inject(null!==n?n:t)},mapState:O,mapMutations:q,mapGetters:D,mapActions:j,createNamespacedHelpers:function(e){return{mapState:O.bind(null,e),mapGetters:D.bind(null,e),mapMutations:q.bind(null,e),mapActions:j.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=r(e.state);void 0!==c&&(l&&e.subscribe((function(e,o){var s=r(o);if(n(e,d,s)){var l=W(),u=i(e),h="mutation "+e.type+l;U(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),H(c)}d=s})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var a=W(),i=s(e),r="action "+e.type+a;U(c,r,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}}}(Vue),VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),i=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===x(e),l=e=>"[object RegExp]"===x(e),u=e=>S(e)&&0===Object.keys(e).length,c=Object.assign,d=Object.create,h=(e=null)=>d(e);function p(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}const g=Array.isArray,_=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,y=e=>null!==e&&"object"==typeof e,w=e=>y(e)&&_(e.then)&&_(e.catch),k=Object.prototype.toString,x=e=>k.call(e),S=e=>"[object Object]"===x(e);function C(e,t=""){return e.reduce(((e,n,a)=>0===a?e+n:e+t+n),"")}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const E=e=>!y(e)||g(e);function P(e,t){if(E(e)||E(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((a=>{"__proto__"!==a&&(y(e[a])&&!y(t[a])&&(t[a]=Array.isArray(e[a])?[]:h()),E(t[a])||E(e[a])?t[a]=e[a]:n.push({src:e[a],des:t[a]}))}))}}const A={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function L(e){throw e}const M=" ",z="\r",R="\n",N=String.fromCharCode(8232),I=String.fromCharCode(8233);function O(e){const t=e;let n=0,a=1,i=1,r=0;const o=e=>t[e]===z&&t[e+1]===R,s=e=>t[e]===I,l=e=>t[e]===N,u=e=>o(e)||s(e)||l(e)?R:t[e];function c(){return r=0,(e=>o(e)||(e=>t[e]===R)(e)||s(e)||l(e))(n)&&(a++,i=0),o(n)&&n++,n++,i++,t[n]}return{index:()=>n,line:()=>a,column:()=>i,peekOffset:()=>r,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+r),next:c,peek:function(){return o(n+r)&&r++,r++,t[n+r]},reset:function(){n=0,a=1,i=1,r=0},resetPeek:function(e=0){r=e},skipToPeek:function(){const e=n+r;for(;e!==n;)c();r=0}}}const q=void 0,D="'";function j(e,t={}){const n=!1!==t.location,a=O(e),i=()=>a.index(),r=()=>({line:a.line(),column:a.column(),offset:a.index()}),o=r(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},{onError:u}=t;function c(e,t,a){e.endLoc=r(),e.currentType=t;const i={type:t};return n&&(i.loc=function(e,t){return{start:e,end:t}}(e.startLoc,e.endLoc)),null!=a&&(i.value=a),i}const d=e=>c(e,13);function h(e,t){return e.currentChar()===t?(e.next(),t):(A.EXPECTED_TOKEN,r(),"")}function p(e){let t="";for(;e.currentPeek()===M||e.currentPeek()===R;)t+=e.currentPeek(),e.peek();return t}function f(e){const t=p(e);return e.skipToPeek(),t}function m(e){if(e===q)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function g(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,a="")=>{const i=e.currentPeek();return"{"===i?t:"@"!==i&&i?"|"===i?!(a===M||a===R):i===M?(e.peek(),n(!0,M)):i!==R||(e.peek(),n(!0,R)):t},a=n();return t&&e.resetPeek(),a}function v(e,t){const n=e.currentChar();return n===q?q:t(n)?(e.next(),n):null}function b(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function y(e){return v(e,b)}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 k(e){return v(e,w)}function x(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function S(e){return v(e,x)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function T(e){return v(e,C)}function E(e){let t="",n="";for(;t=S(e);)n+=t;return n}function P(e){return e!==D&&e!==R}function L(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return z(e,t,4);case"U":return z(e,t,6);default:return A.UNKNOWN_ESCAPE_SEQUENCE,r(),""}}function z(e,t,n){h(e,t);let a="";for(let t=0;t=1&&(A.NOT_ALLOW_NEST_PLACEHOLDER,r()),e.next(),n=c(t,2,"{"),f(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(A.EMPTY_PLACEHOLDER,r()),e.next(),n=c(t,3,"}"),t.braceNest--,t.braceNest>0&&f(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,r()),n=B(e,t)||d(t),t.braceNest=0,n;default:{let a=!0,i=!0,o=!0;if(g(e))return t.braceNest>0&&(A.UNTERMINATED_CLOSING_BRACE,r()),n=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return A.UNTERMINATED_CLOSING_BRACE,r(),t.braceNest=0,$(e,t);if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=m(e.currentPeek());return e.resetPeek(),a}(e,t))return n=c(t,4,function(e){f(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===q&&(A.UNTERMINATED_CLOSING_BRACE,r()),n}(e)),f(e),n;if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=function(e){if(e===q)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),a}(e,t))return n=c(t,5,function(e){f(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===q&&(A.UNTERMINATED_CLOSING_BRACE,r()),t}(e)),f(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const a=e.currentPeek()===D;return e.resetPeek(),a}(e,t))return n=c(t,6,function(e){f(e),h(e,"'");let t="",n="";for(;t=v(e,P);)n+="\\"===t?L(e):t;const a=e.currentChar();return a===R||a===q?(A.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),a===R&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),f(e),n;if(!a&&!i&&!o)return n=c(t,12,function(e){f(e);let t="",n="";for(;t=v(e,N);)n+=t;return n}(e)),A.INVALID_TOKEN_IN_PLACEHOLDER,r(),n.value,f(e),n;break}}return n}function B(e,t){const{currentType:n}=t;let a=null;const i=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||i!==R&&i!==M||(A.INVALID_LINKED_FORMAT,r()),i){case"@":return e.next(),a=c(t,7,"@"),t.inLinked=!0,a;case".":return f(e),e.next(),c(t,8,".");case":":return f(e),e.next(),c(t,9,":");default:return g(e)?(a=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,a):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(e);const a="."===e.currentPeek();return e.resetPeek(),a}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;p(e);const a=":"===e.currentPeek();return e.resetPeek(),a}(e,t)?(f(e),B(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const a=m(e.currentPeek());return e.resetPeek(),a}(e,t)?(f(e),c(t,11,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const a=()=>{const t=e.currentPeek();return"{"===t?m(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===M||!t)&&(t===R?(e.peek(),a()):_(e,!1))},i=a();return e.resetPeek(),i}(e,t)?(f(e),"{"===i?j(e,t)||a:c(t,10,function(e){const t=n=>{const a=e.currentChar();return"{"!==a&&"@"!==a&&"|"!==a&&"("!==a&&")"!==a&&a?a===M?n:(n+=a,e.next(),t(n)):n};return t("")}(e))):(7===n&&(A.INVALID_LINKED_FORMAT,r()),t.braceNest=0,t.inLinked=!1,$(e,t))}}function $(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||d(t);if(t.inLinked)return B(e,t)||d(t);switch(e.currentChar()){case"{":return j(e,t)||d(t);case"}":return A.UNBALANCED_CLOSING_BRACE,r(),e.next(),c(t,3,"}");case"@":return B(e,t)||d(t);default:if(g(e))return n=c(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return c(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===M||n===R)if(_(e))t+=n,e.next();else{if(g(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:o}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=o,l.offset=i(),l.startLoc=r(),a.currentChar()===q?c(l,13):$(a,l)},currentOffset:i,currentPosition:r,context:()=>l}}const B=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(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 F(e={}){const t=!1!==e.location,{onError:n}=e;function a(e,n,a){const i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:a,end:a}),i}function i(e,n,a,i){t&&(e.end=n,e.loc&&(e.loc.end=a))}function r(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function o(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(5,r,o);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(4,r,o);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(9,r,o);return s.value=t.replace(B,$),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let r=e.nextToken();if(8===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(8,r,o);return 11!==t.type?(A.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,s.value="",i(s,r,o),{nextConsumeToken:t,node:s}):(null==t.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,V(t)),s.value=t.value||"",i(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(9!==r.type&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 10:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=function(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 4:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=s(e,r.value||"");break;case 5:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=o(e,r.value||"");break;case 6:null==r.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(r)),n.key=l(e,r.value||"");break;default:{A.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const o=e.context(),s=a(7,o.offset,o.startLoc);return s.value="",i(s,o.offset,o.startLoc),n.key=s,i(n,o.offset,o.startLoc),{nextConsumeToken:r,node:n}}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=a(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const a=c||e.nextToken();switch(c=null,a.type){case 0:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(r(e,a.value||""));break;case 5:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(o(e,a.value||""));break;case 4:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(s(e,a.value||""));break;case 6:null==a.value&&(A.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,V(a)),n.items.push(l(e,a.value||""));break;case 7:{const t=u(e);n.items.push(t.node),c=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const r=j(n,c({},e)),o=r.context(),s=a(0,o.offset,o.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=function(e){const t=e.context(),{offset:n,startLoc:r}=t,o=d(e);return 13===t.currentType?o:function(e,t,n,r){const o=e.context();let s=0===r.items.length;const l=a(1,t,n);l.cases=[],l.cases.push(r);do{const t=d(e);s||(s=0===t.items.length),l.cases.push(t)}while(13!==o.currentType);return i(l,e.currentOffset(),e.currentPosition()),l}(e,n,r,o)}(r),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),13!==o.currentType&&(A.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,n[o.offset]),i(s,r.currentOffset(),r.currentPosition()),s}}}function V(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 U(e,t){for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(a());const i=t.cases.length;for(let n=0;n{const n=v(t.mode)?t.mode:"normal",a=v(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:a,breakLineCode:i,needIndent:r}=t,o={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};function s(e,t){o.code+=e}function l(e,t=!0){const n=t?i:"";s(r?n+" ".repeat(e):n)}return!1!==t.location&&e.loc&&(o.source=e.loc.source),{context:()=>o,push:s,indent:function(e=!0){const t=++o.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--o.indentLevel;e&&l(t)},newline:function(){l(o.indentLevel)},helper:e=>`_${e}`,needIndent:()=>o.needIndent}}(e,{mode:n,filename:a,sourceMap:i,breakLineCode:r,needIndent:o});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${C(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Y(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function Q(e,t={}){const n=c({},t),a=!!n.jit,i=!!n.minify,r=null==n.optimize||n.optimize,o=F(n).parse(e);return a?(r&&function(e){const t=e.body;2===t.type?W(t):t.cases.forEach((e=>W(e)))}(o),i&&G(o),{ast:o,code:""}):(function(e){const t=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);t.helper("normalize"),e.body&&H(e.body,t);const n=t.context();e.helpers=Array.from(n.helpers)}(o,n),K(o,n))}function Z(e){return t=>function(e,t){const n=ue(t,J);if(null==n)throw ce(0);if(1===re(n)){const t=function(e){return ue(e,X,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ee(e,n)]),[]))}return ee(e,n)}(t,e)}const J=["b","body"],X=["c","cases"];function ee(e,t){const n=function(e){return ue(e,te)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ue(e,ne,[])}(t).reduce(((t,n)=>[...t,ae(e,n)]),[]);return e.normalize(n)}}const te=["s","static"],ne=["i","items"];function ae(e,t){const n=re(t);switch(n){case 3:case 9:case 7:case 8:return function(e,t){const n=ue(e,oe);if(n)return n;throw ce(t)}(t,n);case 4:{const a=t;if(m(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(m(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw ce(n)}case 5:{const a=t;if(m(a,"i")&&o(a.i))return e.interpolate(e.list(a.i));if(m(a,"index")&&o(a.index))return e.interpolate(e.list(a.index));throw ce(n)}case 6:{const n=t,a=function(e){return ue(e,se)}(n),i=function(e){const t=ue(e,le);if(t)return t;throw ce(6)}(n);return e.linked(ae(e,i),a?ae(e,a):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const ie=["t","type"];function re(e){return ue(e,ie)}const oe=["v","value"];const se=["m","modifier"],le=["k","key"];function ue(e,t,n){for(let n=0;ne;let he=h();function pe(e){return y(e)&&0===re(e)&&(m(e,"b")||m(e,"body"))}const fe={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function me(e,t){return null!=t.locale?_e(t.locale):_e(e.locale)}let ge;function _e(e){if(v(e))return e;if(_(e)){if(e.resolvedOnce&&null!=ge)return ge;if("Function"===e.constructor.name){const t=e();if(w(t))throw Error(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ge=t}throw Error(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(fe.NOT_SUPPORT_LOCALE_TYPE)}function ve(e,t,n){return[...new Set([n,...g(t)?t:y(t)?Object.keys(t):v(t)?[t]:[n]])]}function be(e,t,n){const a=v(n)?n:Le,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(a);if(!r){r=[];let e=[n];for(;g(e);)e=ye(r,e,t);const o=g(t)||!S(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&ye(r,e,!1),i.__localeChainCache.set(a,r)}return r}function ye(e,t,n){let a=!0;for(let i=0;i`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Re,Ne,Ie,Oe=null;const qe=e=>{Oe=e},De=()=>Oe;let je=0;function Be(e={}){const t=_(e.onWarn)?e.onWarn:T,n=v(e.version)?e.version:Pe,a=v(e.locale)||_(e.locale)?e.locale:Le,i=_(a)?Le:a,r=g(e.fallbackLocale)||S(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i,o=S(e.messages)?e.messages:$e(i),s=S(e.datetimeFormats)?e.datetimeFormats:$e(i),u=S(e.numberFormats)?e.numberFormats:$e(i),d=c(h(),e.modifiers,{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?ze(e):"vnode"===t&&y(e)&&"__v_isVNode"in e?ze(e.children):e}),p=e.pluralRules||h(),f=_(e.missing)?e.missing:null,m=!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,w=!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,x=!!e.unresolving,C=_(e.postTranslation)?e.postTranslation:null,E=S(e.processor)?e.processor:null,P=!b(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,L=_(e.messageCompiler)?e.messageCompiler:Re,M=_(e.messageResolver)?e.messageResolver:Ne||Ee,z=_(e.localeFallbacker)?e.localeFallbacker:Ie||ve,R=y(e.fallbackContext)?e.fallbackContext:void 0,N=e,I=y(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,O=y(N.__numberFormatters)?N.__numberFormatters:new Map,q=y(N.__meta)?N.__meta:{};je++;const D={version:n,cid:je,locale:a,fallbackLocale:r,messages:o,modifiers:d,pluralRules:p,missing:f,missingWarn:m,fallbackWarn:w,fallbackFormat:k,unresolving:x,postTranslation:C,processor:E,warnHtmlMessage:P,escapeParameter:A,messageCompiler:L,messageResolver:M,localeFallbacker:z,fallbackContext:R,onWarn:t,__meta:q};return D.datetimeFormats=s,D.numberFormats=u,D.__datetimeFormatters=I,D.__numberFormatters=O,D}const $e=e=>({[e]:h()});function Fe(e,t,n,a,i){const{missing:r,onWarn:o}=e;if(null!==r){const a=r(e,n,t,i);return v(a)?a:t}return t}function Ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ue(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r{We.includes(e)?u[e]=n[e]:r[e]=n[e]})),v(a)?r.locale=a:S(a)&&(u=a),S(i)&&(u=i),[r.key||"",l,r,u]}function Ye(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__datetimeFormatters.has(n)&&a.__datetimeFormatters.delete(n)}}function Ke(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,d,h,p]=Ze(...t);b(h.missingWarn)?h.missingWarn:e.missingWarn,b(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn;const f=!!h.part,m=me(e,h),g=o(e,i,m);if(!v(l)||""===l)return new Intl.NumberFormat(m,p).format(d);let _,y={},w=null;for(let t=0;t{Qe.includes(e)?s[e]=n[e]:r[e]=n[e]})),v(a)?r.locale=a:S(a)&&(s=a),S(i)&&(s=i),[r.key||"",l,r,s]}function Je(e,t,n){const a=e;for(const e in n){const n=`${t}__${e}`;a.__numberFormatters.has(n)&&a.__numberFormatters.delete(n)}}const Xe=e=>e,et=e=>"",tt="text",nt=e=>0===e.length?"":C(e),at=e=>null==e?"":g(e)||S(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function it(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function rt(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),a=y(e.pluralRules)&&v(t)&&_(e.pluralRules[t])?e.pluralRules[t]:it,i=y(e.pluralRules)&&v(t)&&_(e.pluralRules[t])?it:void 0,r=e.list||[],s=e.named||h();function l(t,n){return(_(e.messages)?e.messages(t,!!n):!!y(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):et)}o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const u=S(e.processor)&&_(e.processor.normalize)?e.processor.normalize:nt,d=S(e.processor)&&_(e.processor.interpolate)?e.processor.interpolate:at,p={list:e=>r[e],named:e=>s[e],plural:e=>e[a(n,e.length,i)],linked:(t,...n)=>{const[a,i]=n;let r="text",o="";1===n.length?y(a)?(o=a.modifier||o,r=a.type||r):v(a)&&(o=a||o):2===n.length&&(v(a)&&(o=a||o),v(i)&&(r=i||r));const s=l(t,!0)(p),u="vnode"===r&&g(s)&&o?s[0]:s;return o?(c=o,e.modifiers?e.modifiers[c]:Xe)(u,r):u;var c},message:l,type:S(e.processor)&&v(e.processor.type)?e.processor.type:tt,interpolate:d,normalize:u,values:c(h(),r,s)};return p}const ot=()=>"",st=e=>_(e);function lt(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:i,messageCompiler:r,fallbackLocale:s,messages:l}=e,[u,c]=dt(...t),d=b(c.missingWarn)?c.missingWarn:e.missingWarn,f=b(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=b(c.escapeParameter)?c.escapeParameter:e.escapeParameter,w=!!c.resolvedMessage,k=v(c.default)||b(c.default)?b(c.default)?r?u:()=>u:c.default:n?r?u:()=>u:null,x=n||null!=k&&(v(k)||_(k)),S=me(e,c);m&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?p(e):e)):y(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=p(e.named[t]))}))}(c);let[C,T,E]=w?[u,S,l[S]||h()]:ut(e,u,S,s,f,d),P=C,A=u;if(w||v(P)||pe(P)||st(P)||x&&(P=k,A=P),!(w||(v(P)||pe(P)||st(P))&&v(T)))return i?Ae:u;let L=!1;const M=st(P)?P:ct(e,u,T,P,A,(()=>{L=!0}));if(L)return P;const z=function(e,t,n,a){const{modifiers:i,pluralRules:r,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,h={locale:t,modifiers:i,pluralRules:r,messages:(a,i)=>{let r=s(n,a);if(null==r&&(d||i)){const[,,n]=ut(d||e,a,t,l,u,c);r=s(n,a)}if(v(r)||pe(r)){let n=!1;const i=ct(e,a,t,r,a,(()=>{n=!0}));return n?ot:i}return st(r)?r:ot}};return e.processor&&(h.processor=e.processor),a.list&&(h.list=a.list),a.named&&(h.named=a.named),o(a.plural)&&(h.pluralIndex=a.plural),h}(e,T,E,c),R=function(e,t,n){return t(n)}(0,M,rt(z));return a?a(R,u):R}function ut(e,t,n,a,i,r){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,a,n);let d,p=h(),f=null;for(let n=0;na;return e.locale=n,e.key=t,e}const u=s(a,function(e,t,n,a,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>i(t,n,e)}}(0,n,r,0,l,o));return u.locale=n,u.key=t,u.source=a,u}function dt(...e){const[t,n,a]=e,i=h();if(!(v(t)||o(t)||st(t)||pe(t)))throw Error(fe.INVALID_ARGUMENT);const r=o(t)?String(t):(st(t),t);return o(n)?i.plural=n:v(n)?i.default=n:S(n)&&!u(n)?i.named=n:g(n)&&(i.list=n),o(a)?i.plural=a:v(a)?i.default=a:S(a)&&c(i,a),[r,i]}const ht="10.0.6",pt={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},ft=a("__translateVNode"),mt=a("__datetimeParts"),gt=a("__numberParts"),_t=a("__setPluralRules"),vt=a("__injectWithOption"),bt=a("__dispose");function yt(e){if(!y(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let i=e,r=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||h(),P(n,o[t])):P(n,o)}else v(e)&&P(JSON.parse(e),o)})),null==i&&r)for(const e in o)m(o,e)&&yt(o[e]);return o}function kt(e,t,n){let a=y(t.messages)?t.messages:h();"__i18nGlobal"in n&&(a=wt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const i=Object.keys(a);if(i.length&&i.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),y(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(y(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function xt(e){return t.createVNode(t.Text,null,e,0)}const St=()=>[],Ct=()=>!1;let Tt=0;function Et(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}function Pt(e={}){const{__root:a,__injectWithOption:i}=e,r=void 0===a,s=e.flatJson,u=n?t.ref:t.shallowRef;let d=!b(e.inheritLocale)||e.inheritLocale;const h=u(a&&d?a.locale.value:v(e.locale)?e.locale:Le),p=u(a&&d?a.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:h.value),f=u(wt(h.value,e)),w=u(S(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),k=u(S(e.numberFormats)?e.numberFormats:{[h.value]:{}});let x=a?a.missingWarn:!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,C=a?a.fallbackWarn:!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,A=_(e.missing)?e.missing:null,L=_(e.missing)?Et(e.missing):null,M=_(e.postTranslation)?e.postTranslation:null,z=a?a.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter;const N=a?a.modifiers:S(e.modifiers)?e.modifiers:{};let I,O=e.pluralRules||a&&a.pluralRules;I=(()=>{r&&qe(null);const t={version:ht,locale:h.value,fallbackLocale:p.value,messages:f.value,modifiers:N,pluralRules:O,missing:null===L?void 0:L,missingWarn:x,fallbackWarn:C,fallbackFormat:E,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:z,escapeParameter:R,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=w.value,t.numberFormats=k.value,t.__datetimeFormatters=S(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=S(I)?I.__numberFormatters:void 0;const n=Be(t);return r&&qe(n),n})(),Ve(I,h.value,p.value);const q=t.computed({get:()=>h.value,set:e=>{h.value=e,I.locale=h.value}}),D=t.computed({get:()=>p.value,set:e=>{p.value=e,I.fallbackLocale=p.value,Ve(I,h.value,e)}}),j=t.computed((()=>f.value)),B=t.computed((()=>w.value)),$=t.computed((()=>k.value)),F=(e,t,n,i,s,l)=>{let u;h.value,p.value,f.value,w.value,k.value;try{r||(I.fallbackContext=a?De():void 0),u=e(I)}finally{r||(I.fallbackContext=void 0)}if("translate exists"!==n&&o(u)&&u===Ae||"translate exists"===n&&!u){const[e,n]=t();return a&&T?i(a):s(e)}if(l(u))return u;throw Error(pt.UNEXPECTED_RETURN_TYPE)};function V(...e){return F((t=>Reflect.apply(lt,null,[t,...e])),(()=>dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const U={normalize:function(e){return e.map((e=>v(e)||o(e)||b(e)?xt(String(e)):e))},interpolate:e=>e,type:"vnode"};function H(e){return f.value[e]||{}}Tt++,a&&n&&(t.watch(a.locale,(e=>{d&&(h.value=e,I.locale=e,Ve(I,h.value,p.value))})),t.watch(a.fallbackLocale,(e=>{d&&(p.value=e,I.fallbackLocale=e,Ve(I,h.value,p.value))})));const W={id:Tt,locale:q,fallbackLocale:D,get inheritLocale(){return d},set inheritLocale(e){d=e,e&&a&&(h.value=a.locale.value,p.value=a.fallbackLocale.value,Ve(I,h.value,p.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:j,get modifiers(){return N},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return x},set missingWarn(e){x=e,I.missingWarn=x},get fallbackWarn(){return C},set fallbackWarn(e){C=e,I.fallbackWarn=C},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,I.fallbackFormat=E},get warnHtmlMessage(){return z},set warnHtmlMessage(e){z=e,I.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,I.escapeParameter=e},t:V,getLocaleMessage:H,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)m(n,e)&&yt(n[e]);t=n[e]}f.value[e]=t,I.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{};const n={[e]:t};if(s)for(const e in n)m(n,e)&&yt(n[e]);P(t=n[e],f.value[e]),I.messages=f.value},getPostTranslationHandler:function(){return _(M)?M:null},setPostTranslationHandler:function(e){M=e,I.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(L=Et(e)),A=e,I.missing=L},[_t]:function(e){O=e,I.pluralRules=O}};return W.datetimeFormats=B,W.numberFormats=$,W.rt=function(...e){const[t,n,a]=e;if(a&&!y(a))throw Error(pt.INVALID_ARGUMENT);return V(t,n,c({resolvedMessage:!0},a||{}))},W.te=function(e,t){return F((()=>{if(!e)return!1;const n=H(v(t)?t:h.value),a=I.messageResolver(n,e);return pe(a)||st(a)||v(a)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Ct,(e=>b(e)))},W.tm=function(e){const t=function(e){let t=null;const n=be(I,p.value,h.value);for(let a=0;aReflect.apply(He,null,[t,...e])),(()=>Ge(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Me),(e=>v(e)))},W.n=function(...e){return F((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Ze(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Me),(e=>v(e)))},W.getDateTimeFormat=function(e){return w.value[e]||{}},W.setDateTimeFormat=function(e,t){w.value[e]=t,I.datetimeFormats=w.value,Ye(I,e,t)},W.mergeDateTimeFormat=function(e,t){w.value[e]=c(w.value[e]||{},t),I.datetimeFormats=w.value,Ye(I,e,t)},W.getNumberFormat=function(e){return k.value[e]||{}},W.setNumberFormat=function(e,t){k.value[e]=t,I.numberFormats=k.value,Je(I,e,t)},W.mergeNumberFormat=function(e,t){k.value[e]=c(k.value[e]||{},t),I.numberFormats=k.value,Je(I,e,t)},W[vt]=i,W[ft]=function(...e){return F((t=>{let n;const a=t;try{a.processor=U,n=Reflect.apply(lt,null,[a,...e])}finally{a.processor=null}return n}),(()=>dt(...e)),"translate",(t=>t[ft](...e)),(e=>[xt(e)]),(e=>g(e)))},W[mt]=function(...e){return F((t=>Reflect.apply(He,null,[t,...e])),(()=>Ge(...e)),"datetime format",(t=>t[mt](...e)),St,(e=>v(e)||g(e)))},W[gt]=function(...e){return F((t=>Reflect.apply(Ke,null,[t,...e])),(()=>Ze(...e)),"number format",(t=>t[gt](...e)),St,(e=>v(e)||g(e)))},W}function At(e={}){const t=Pt(function(e){const t=v(e.locale)?e.locale:Le,n=v(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,a=_(e.missing)?e.missing:void 0,i=!b(e.silentTranslationWarn)&&!l(e.silentTranslationWarn)||!e.silentTranslationWarn,r=!b(e.silentFallbackWarn)&&!l(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!b(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,u=S(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,h=_(e.postTranslation)?e.postTranslation:void 0,p=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!b(e.sync)||e.sync;let y=e.messages;if(S(e.sharedMessages)){const t=e.sharedMessages;y=Object.keys(t).reduce(((e,n)=>{const a=e[n]||(e[n]={});return c(a,t[n]),e}),y||{})}const{__i18n:w,__root:k,__injectWithOption:x}=e,C=e.datetimeFormats,T=e.numberFormats;return{locale:t,fallbackLocale:n,messages:y,flatJson:e.flatJson,datetimeFormats:C,numberFormats:T,missing:a,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:s,modifiers:u,pluralRules:d,postTranslation:h,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:k,__injectWithOption:x}}(e)),{__extender:n}=e,a={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 b(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=b(e)?!e:e},get silentFallbackWarn(){return b(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=b(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]),tc(...e){const[n,a,i]=e,r={plural:1};let s=null,l=null;if(!v(n))throw Error(pt.INVALID_ARGUMENT);const u=n;return v(a)?r.locale=a:o(a)?r.plural=a:g(a)?s=a:S(a)&&(l=a),v(i)?r.locale=i:g(i)?s=i:S(i)&&(l=i),Reflect.apply(t.t,t,[u,s||l||{},r])},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 a.__extender=n,a}function Lt(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[_t](t.pluralizationRules||e.pluralizationRules);const n=wt(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 Mt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function zt(){return t.Fragment}const Rt=t.defineComponent({name:"i18n-t",props:c({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Mt),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(a).filter((e=>"_"!==e)),s=h();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=v(e.plural)?+e.plural:e.plural);const l=function({slots:e},n){return 1===n.length&&"default"===n[0]?(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]):n.reduce(((t,n)=>{const a=e[n];return a&&(t[n]=a()),t}),h())}(n,o),u=r[ft](e.keypath,l,s),d=c(h(),i),p=v(e.tag)||y(e.tag)?e.tag:zt();return t.h(p,d,u)}}}),Nt=Rt;function It(e,n,a,i){const{slots:r,attrs:o}=n;return()=>{const n={part:!0};let s=h();e.locale&&(n.locale=e.locale),v(e.format)?n.key=e.format:y(e.format)&&(v(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?c(h(),t,{[n]:e.format[n]}):t),h()));const l=i(e.value,n,s);let u=[n.key];g(l)?u=l.map(((e,t)=>{const n=r[e.type],a=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];var i;return g(i=a)&&!v(i[0])&&(a[0].key=`${e.type}-${t}`),a})):v(l)&&(u=[l]);const d=c(h(),o),p=v(e.tag)||y(e.tag)?e.tag:zt();return t.h(p,d,u)}}const Ot=t.defineComponent({name:"i18n-n",props:c({value:{type:Number,required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return It(e,t,Qe,((...e)=>n[gt](...e)))}}),qt=Ot,Dt=t.defineComponent({name:"i18n-d",props:c({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ut({useScope:e.scope,__useComponent:!0});return It(e,t,We,((...e)=>n[mt](...e)))}}),jt=Dt;function Bt(e){const a=t=>{const{instance:n,value:a}=t;if(!n||!n.$)throw Error(pt.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return null!=a?a.__composer:e.global.__composer}}(e,n.$),r=$t(a);return[Reflect.apply(i.t,i,[...Ft(r)]),i]};return{created:(i,r)=>{const[o,s]=a(r);n&&e.global===s&&(i.__i18nWatcher=t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),i.__composer=s,i.textContent=o},unmounted:e=>{n&&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,a=$t(t);e.textContent=Reflect.apply(n.t,n,[...Ft(a)])}},getSSRProps:e=>{const[t]=a(e);return{textContent:t}}}}function $t(e){if(v(e))return{path:e};if(S(e)){if(!("path"in e))throw Error(pt.REQUIRED_VALUE,"path");return e}throw Error(pt.INVALID_VALUE)}function Ft(e){const{path:t,locale:n,args:a,choice:i,plural:r}=e,s={},l=a||{};return v(n)&&(s.locale=n),o(i)&&(s.plural=i),o(r)&&(s.plural=r),[t,l,s]}const Vt=a("global-vue-i18n");function Ut(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(pt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(pt.NOT_INSTALLED);const a=function(e){const n=t.inject(e.isCE?Vt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?pt.NOT_INSTALLED_WITH_PROVIDE:pt.UNEXPECTED_ERROR);return n}(n),i=function(e){return"composition"===e.mode?e.global:e.global.__composer}(a),r=function(e){return e.type}(n),o=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===o)return kt(i,e,r),i;if("parent"===o){let t=function(e,t,n=!1){let a=null;const i=t.root;let r=function(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}(t,n);for(;null!=r;){const t=e;if("composition"===e.mode)a=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(a=e.__composer,n&&a&&!a[vt]&&(a=null))}if(null!=a)break;if(i===r)break;r=r.parent}return a}(a,n,e.__useComponent);return null==t&&(t=i),t}const s=a;let l=s.__getInstance(n);if(null==l){const a=c({},e);"__i18n"in r&&(a.__i18n=r.__i18n),i&&(a.__root=i),l=Pt(a),s.__composerExtend&&(l[bt]=s.__composerExtend(l)),function(e,n,a){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=a;e.__deleteInstance(n);const i=t[bt];i&&(i(),delete t[bt])}),n)}(s,n,l),s.__setInstance(n,l)}return l}const Ht=["locale","fallbackLocale","availableLocales"],Wt=["t","rt","d","n","tm","te"];return Re=function(e,t){if(v(e)){!b(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||de)(e),a=he[n];if(a)return a;const{ast:i,detectError:r}=function(e,t={}){let n=!1;const a=t.onError||L;return t.onError=e=>{n=!0,a(e)},{...Q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),o=Z(i);return r?o:he[n]=o}{const t=e.cacheKey;if(t){return he[t]||(he[t]=Z(e))}return Z(e)}},Ne=function(e,t){if(!y(e))return null;let n=Te.get(t);if(n||(n=function(e){const t=[];let n,a,i,r,o,s,l,u=-1,c=0,d=0;const h=[];function p(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,i="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===a?a=i:a+=i},h[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,c=4,h[0]();else{if(d=0,void 0===a)return!1;if(a=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Se.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(a),!1===a)return!1;h[1]()}};null!==c;)if(u++,n=e[u],"\\"!==n||!p()){if(r=Ce(n),l=xe[c],o=l[r]||l.l||8,8===o)return;if(c=o[0],void 0!==o[1]&&(s=h[o[1]],s&&(i=n,!1===s())))return;if(7===c)return t}}(t),n&&Te.set(t,n)),!n)return null;const a=n.length;let i=e,r=0;for(;rAt(e))):a.run((()=>Pt(e)));if(null==i)throw Error(pt.UNEXPECTED_ERROR);return[a,i]}(e,i),u=a(""),c={get mode(){return i?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=u,e.provide(e.__VUE_I18N_SYMBOL__,c),S(n[0])){const e=n[0];c.__composerExtend=e.__composerExtend,c.__vueI18nExtend=e.__vueI18nExtend}let a=null;!i&&r&&(a=function(e,n){const a=Object.create(null);Ht.forEach((e=>{const i=Object.getOwnPropertyDescriptor(n,e);if(!i)throw Error(pt.UNEXPECTED_ERROR);const r=t.isRef(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,Wt.forEach((t=>{const a=Object.getOwnPropertyDescriptor(n,t);if(!a||!a.value)throw Error(pt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,a)}));return()=>{delete e.config.globalProperties.$i18n,Wt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}(e,c.global)),function(e,t,...n){const a=S(n[0])?n[0]:{};(!b(a.globalInstall)||a.globalInstall)&&([Rt.name,"I18nT"].forEach((t=>e.component(t,Rt))),[Ot.name,"I18nN"].forEach((t=>e.component(t,Ot))),[Dt.name,"I18nD"].forEach((t=>e.component(t,Dt)))),e.directive("t",Bt(t))}(e,c,...n),i&&e.mixin(function(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Error(pt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const t=r.i18n;if(r.__i18n&&(t.__i18n=r.__i18n),t.__root=n,this===this.$root)this.$i18n=Lt(e,t);else{t.__injectWithOption=!0,t.__extender=a.__vueI18nExtend,this.$i18n=At(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Lt(e,r);else{this.$i18n=At({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&kt(n,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(pt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),a.__deleteInstance(e),delete this.$i18n}}}(l,l.__composer,c));const o=e.unmount;e.unmount=()=>{a&&a(),c.dispose(),o()}},get global(){return l},dispose(){s.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 c},e.useI18n=Ut,e.vTDirective=Bt,e}({},Vue),VueRouter=function(e,t){"use strict";const n="undefined"!=typeof document;function a(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function i(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&a(e.default)}const r=Object.assign;function o(e,t){const n={};for(const a in t){const i=t[a];n[a]=l(i)?i.map(e):e(i)}return n}const s=()=>{},l=Array.isArray;function u(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const c=/#/g,d=/&/g,h=/\//g,p=/=/g,f=/\?/g,m=/\+/g,g=/%5B/g,_=/%5D/g,v=/%5E/g,b=/%60/g,y=/%7B/g,w=/%7C/g,k=/%7D/g,x=/%20/g;function S(e){return encodeURI(""+e).replace(w,"|").replace(g,"[").replace(_,"]")}function C(e){return S(e).replace(m,"%2B").replace(x,"+").replace(c,"%23").replace(d,"%26").replace(b,"`").replace(y,"{").replace(k,"}").replace(v,"^")}function T(e){return null==e?"":function(e){return S(e).replace(c,"%23").replace(f,"%3F")}(e).replace(h,"%2F")}function E(e){try{return decodeURIComponent(""+e)}catch(t){u(`Error decoding "${e}". Using original value`)}return""+e}const P=/\/$/,A=e=>e.replace(P,"");function L(e,t,n="/"){let a,i={},r="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(a=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),i=e(r)),s>-1&&(a=a||t.slice(0,s),o=t.slice(s,t.length)),a=function(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return u(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),a=e.split("/"),i=a[a.length-1];".."!==i&&"."!==i||a.push("");let r,o,s=n.length-1;for(r=0;r1&&s--}return n.slice(0,s).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,n),{fullPath:a+(r&&"?")+r+o,path:a,query:i,hash:E(o)}}function M(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function z(e,t,n){const a=t.matched.length-1,i=n.matched.length-1;return a>-1&&a===i&&R(t.matched[a],n.matched[i])&&N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function R(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!I(e[n],t[n]))return!1;return!0}function I(e,t){return l(e)?O(e,t):l(t)?O(t,e):e===t}function O(e,t){return l(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const q={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var D,j;!function(e){e.pop="pop",e.push="push"}(D||(D={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(j||(j={}));function B(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),A(e)}const $=/^[^#]+#/;function F(e,t){return e.replace($,"#")+t}const V=()=>({left:window.scrollX,top:window.scrollY});function U(e){let t;if("el"in e){const n=e.el,a="string"==typeof n&&n.startsWith("#");if(!("string"!=typeof e.el||a&&document.getElementById(e.el.slice(1))))try{const t=document.querySelector(e.el);if(a&&t)return void u(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`)}catch(t){return void u(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`)}const i="string"==typeof n?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return void u(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);t=function(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function H(e,t){return(history.state?history.state.position-t:-1)+e}const W=new Map;let G=()=>location.protocol+"//"+location.host;function Y(e,t){const{pathname:n,search:a,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),M(n,"")}return M(n,e)+a+i}function K(e,t,n,a=!1,i=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:i?V():null}}function Q(e){const t=function(e){const{history:t,location:n}=window,a={value:Y(e,n)},i={value:t.state};function o(a,r,o){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+a:G()+e+a;try{t[o?"replaceState":"pushState"](r,"",l),i.value=r}catch(e){u("Error with push/replace State",e),n[o?"replace":"assign"](l)}}return i.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:i,push:function(e,n){const s=r({},i.value,t.state,{forward:e,scroll:V()});t.state||u("history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\nhistory.replaceState(history.state, '', url)\n\nYou can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state"),o(s.current,s,!0),o(e,r({},K(a.value,e,null),{position:s.position+1},n),!1),a.value=e},replace:function(e,n){o(e,r({},t.state,K(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),a.value=e}}}(e=B(e)),n=function(e,t,n,a){let i=[],o=[],s=null;const l=({state:r})=>{const o=Y(e,location),l=n.value,u=t.value;let c=0;if(r){if(n.value=o,t.value=r,s&&s===l)return void(s=null);c=u?r.position-u.position:0}else a(o);i.forEach((e=>{e(n.value,l,{delta:c,type:D.pop,direction:c?c>0?j.forward:j.back:j.unknown})}))};function u(){const{history:e}=window;e.state&&e.replaceState(r({},e.state,{scroll:V()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}}}(e,t.state,t.location,t.replace);const a=r({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:F.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Z(e){return"string"==typeof e||e&&"object"==typeof e}function J(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("navigation failure");var ee;e.NavigationFailureType=void 0,(ee=e.NavigationFailureType||(e.NavigationFailureType={}))[ee.aborted=4]="aborted",ee[ee.cancelled=8]="cancelled",ee[ee.duplicated=16]="duplicated";const te={1:({location:e,currentLocation:t})=>`No match for\n ${JSON.stringify(e)}${t?"\nwhile being at\n"+JSON.stringify(t):""}`,2:({from:e,to:t})=>`Redirected from "${e.fullPath}" to "${function(e){if("string"==typeof e)return e;if(null!=e.path)return e.path;const t={};for(const n of ie)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}(t)}" via a navigation guard.`,4:({from:e,to:t})=>`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`,8:({from:e,to:t})=>`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`,16:({from:e,to:t})=>`Avoided redundant navigation to current location: "${e.fullPath}".`};function ne(e,t){return r(new Error(te[e](t)),{type:e,[X]:!0},t)}function ae(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}const ie=["params","query","hash"];const re="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},se=/[.+*?^${}()[\]/\\]/g;function le(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ue(e,t){let n=0;const a=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const de={type:0,value:""},he=/[a-zA-Z0-9_]/;function pe(e,t,n){const a=function(e,t){const n=r({},oe,t),a=[];let i=n.start?"^":"";const o=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(i+="/");for(let a=0;a1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l{o(m)}:s}function o(e){if(J(e)){const t=a.get(e);t&&(a.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function l(e){const t=function(e,t){let n=0,a=t.length;for(;n!==a;){const i=n+a>>1;ue(e,t[i])<0?a=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(Se(t)&&0===ue(e,t))return t;return}(e);i&&(a=t.lastIndexOf(i,a-1),a<0&&u(`Finding ancestor route "${i.record.path}" failed for "${e.record.path}"`));return a}(e,n);n.splice(t,0,e),e.record.name&&!ve(e)&&a.set(e.record.name,e)}return t=ye({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,o,s,l={};if("name"in e&&e.name){if(i=a.get(e.name),!i)throw ne(1,{location:e});{const t=Object.keys(e.params||{}).filter((e=>!i.keys.find((t=>t.name===e))));t.length&&u(`Discarded invalid param(s) "${t.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}s=i.record.name,l=r(me(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&me(e.params,i.keys.map((e=>e.name)))),o=i.stringify(l)}else if(null!=e.path)o=e.path,o.startsWith("/")||u(`The Matcher cannot resolve relative paths but received "${o}". Unless you directly called \`matcher.resolve("${o}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),i=n.find((e=>e.re.test(o))),i&&(l=i.parse(o),s=i.record.name);else{if(i=t.name?a.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw ne(1,{location:e,currentLocation:t});s=i.record.name,l=r({},t.params,e.params),o=i.stringify(l)}const c=[];let d=i;for(;d;)c.unshift(d.record),d=d.parent;return{name:s,path:o,params:l,matched:c,meta:be(c)}},removeRoute:o,clearRoutes:function(){n.length=0,a.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return a.get(e)}}}function me(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function ge(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _e(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]="object"==typeof n?n[a]:n;return t}function ve(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function be(e){return e.reduce(((e,t)=>r(e,t.meta)),{})}function ye(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function we(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function ke(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(we.bind(null,n)))return u(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(we.bind(null,n)))return u(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function xe(e,t){for(const n of t.keys)if(!e.keys.find(we.bind(null,n)))return u(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Se({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&C(e))):[a&&C(a)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ee(e){const t={};for(const n in e){const a=e[n];void 0!==a&&(t[n]=l(a)?a.map((e=>null==e?null:""+e)):null==a?a:""+a)}return t}const Pe=Symbol("router view location matched"),Ae=Symbol("router view depth"),Le=Symbol("router"),Me=Symbol("route location"),ze=Symbol("router view location");function Re(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ne(e,n,a){const i=()=>{e[n].delete(a)};t.onUnmounted(i),t.onDeactivated(i),t.onActivated((()=>{e[n].add(a)})),e[n].add(a)}function Ie(e,t,n,a,i,r=e=>e()){const o=a&&(a.enterCallbacks[i]=a.enterCallbacks[i]||[]);return()=>new Promise(((s,l)=>{const c=e=>{!1===e?l(ne(4,{from:n,to:t})):e instanceof Error?l(e):Z(e)?l(ne(2,{from:t,to:e})):(o&&a.enterCallbacks[i]===o&&"function"==typeof e&&o.push(e),s())},d=r((()=>e.call(a&&a.instances[i],t,n,function(e,t,n){let a=0;return function(){1==a++&&u(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,1===a&&e.apply(null,arguments)}}(c,t,n))));let h=Promise.resolve(d);if(e.length<3&&(h=h.then(c)),e.length>2){const t=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:\n${e.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if("object"==typeof d&&"then"in d)h=h.then((e=>c._called?e:(u(t),Promise.reject(new Error("Invalid navigation guard")))));else if(void 0!==d&&!c._called)return u(t),void l(new Error("Invalid navigation guard"))}h.catch((e=>l(e)))}))}function Oe(e,t,n,r,o=e=>e()){const s=[];for(const l of e){l.components||l.children.length||u(`Record with path "${l.path}" is either missing a "component(s)" or "children" property.`);for(const e in l.components){let c=l.components[e];if(!c||"object"!=typeof c&&"function"!=typeof c)throw u(`Component "${e}" in record with path "${l.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){u(`Component "${e}" in record with path "${l.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const t=c;c=()=>t}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,u(`Component "${e}" in record with path "${l.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));if("beforeRouteEnter"===t||l.instances[e])if(a(c)){const a=(c.__vccOpts||c)[t];a&&s.push(Ie(a,n,r,l,e,o))}else{let a=c();"catch"in a||(u(`Component "${e}" in record with path "${l.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),a=Promise.resolve(a)),s.push((()=>a.then((a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${l.path}"`);const s=i(a)?a.default:a;l.mods[e]=a,l.components[e]=s;const u=(s.__vccOpts||s)[t];return u&&Ie(u,n,r,l,e,o)()}))))}}}return s}function qe(e){const a=t.inject(Le),i=t.inject(Me);let r=!1,o=null;const c=t.computed((()=>{const n=t.unref(e.to);return r&&n===o||(Z(n)||(r?u('Invalid value for prop "to" in useLink()\n- to:',n,"\n- previous to:",o,"\n- props:",e):u('Invalid value for prop "to" in useLink()\n- to:',n,"\n- props:",e)),o=n,r=!0),a.resolve(n)})),d=t.computed((()=>{const{matched:e}=c.value,{length:t}=e,n=e[t-1],a=i.matched;if(!n||!a.length)return-1;const r=a.findIndex(R.bind(null,n));if(r>-1)return r;const o=je(e[t-2]);return t>1&&je(n)===o&&a[a.length-1].path!==o?a.findIndex(R.bind(null,e[t-2])):r})),h=t.computed((()=>d.value>-1&&function(e,t){for(const n in t){const a=t[n],i=e[n];if("string"==typeof a){if(a!==i)return!1}else if(!l(i)||i.length!==a.length||a.some(((e,t)=>e!==i[t])))return!1}return!0}(i.params,c.value.params))),p=t.computed((()=>d.value>-1&&d.value===i.matched.length-1&&N(i.params,c.value.params)));if(n){const n=t.getCurrentInstance();if(n){const a={route:c.value,isActive:h.value,isExactActive:p.value,error:null};n.__vrl_devtools=n.__vrl_devtools||[],n.__vrl_devtools.push(a),t.watchEffect((()=>{a.route=c.value,a.isActive=h.value,a.isExactActive=p.value,a.error=Z(t.unref(e.to))?null:'Invalid "to" value'}),{flush:"post"})}}return{route:c,href:t.computed((()=>c.value.href)),isActive:h,isExactActive:p,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?a[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(s):Promise.resolve()}}}const De=t.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qe,setup(e,{slots:n}){const a=t.reactive(qe(e)),{options:i}=t.inject(Le),r=t.computed((()=>({[Be(e.activeClass,i.linkActiveClass,"router-link-active")]:a.isActive,[Be(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:a.isExactActive})));return()=>{const i=n.default&&n.default(a);return e.custom?i:t.h("a",{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:r.value},i)}}});function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>null!=e?e:null!=t?t:n;function $e(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Fe=t.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:a,slots:i}){!function(){const e=t.getCurrentInstance(),n=e.parent&&e.parent.type.name,a=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(n&&("KeepAlive"===n||n.includes("Transition"))&&"object"==typeof a&&"RouterView"===a.name){const e="KeepAlive"===n?"keep-alive":"transition";u(` can no longer be used directly inside or .\nUse slot props instead:\n\n\n <${e}>\n \n \n`)}}();const o=t.inject(ze),s=t.computed((()=>e.route||o.value)),c=t.inject(Ae,0),d=t.computed((()=>{let e=t.unref(c);const{matched:n}=s.value;let a;for(;(a=n[e])&&!a.components;)e++;return e})),h=t.computed((()=>s.value.matched[d.value]));t.provide(Ae,t.computed((()=>d.value+1))),t.provide(Pe,h),t.provide(ze,s);const p=t.ref();return t.watch((()=>[p.value,h.value,e.name]),(([e,t,n],[a,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&R(t,i)&&a||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=s.value,u=e.name,c=h.value,f=c&&c.components[u];if(!f)return $e(i.default,{Component:f,route:o});const m=c.props[u],g=m?!0===m?o.params:"function"==typeof m?m(o):m:null,_=t.h(f,r({},g,a,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(c.instances[u]=null)},ref:p}));if(n&&_.ref){const e={depth:d.value,name:c.name,path:c.path,meta:c.meta};(l(_.ref)?_.ref.map((e=>e.i)):[_.ref.i]).forEach((t=>{t.__vrv_devtools=e}))}return $e(i.default,{Component:_,route:o})||_}}});function Ve(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const Ue="function"==typeof Proxy,He="devtools-plugin:setup";let We,Ge;function Ye(){return void 0!==We||("undefined"!=typeof window&&window.performance?(We=!0,Ge=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(We=!0,Ge=globalThis.perf_hooks.performance):We=!1),We?Ge.now():Date.now();var e}class Ke{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 a=e.settings[t];n[t]=a.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(a),t=JSON.parse(e);Object.assign(i,t)}catch(e){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){}i=e},now:()=>Ye()},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 Qe(e,t){const n=e,a=Ve(),i=Ve().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=Ue&&n.enableEarlyProxy;if(!i||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new Ke(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit(He,e,t)}function Ze(e,t){const n=r({},e,{matched:e.matched.map((e=>function(e,t){const n={};for(const a in e)t.includes(a)||(n[a]=e[a]);return n}(e,["instances","children","aliasOf"])))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Je(e){return{_custom:{display:e}}}let Xe=0;function et(e,n,a){if(n.__hasDevtools)return;n.__hasDevtools=!0;const i=Xe++;Qe({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},(r=>{"function"!=typeof r.now&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.on.inspectComponent(((e,t)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ze(n.currentRoute.value,"Current Route")})})),r.on.visitComponentTree((({treeNode:e,componentInstance:t})=>{if(t.__vrv_devtools){const n=t.__vrv_devtools;e.tags.push({label:(n.name?`${n.name.toString()}: `:"")+n.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:nt})}l(t.__vrl_devtools)&&(t.__devtoolsApi=r,t.__vrl_devtools.forEach((t=>{let n=t.route.path,a=ot,i="",r=0;t.error?(n=t.error,a=lt,r=ut):t.isExactActive?(a=it,i="This is exactly active"):t.isActive&&(a=at,i="This link is active"),e.tags.push({label:n,textColor:r,tooltip:i,backgroundColor:a})})))})),t.watch(n.currentRoute,(()=>{c(),r.notifyComponentUpdate(),r.sendInspectorTree(u),r.sendInspectorState(u)}));const o="router:navigations:"+i;r.addTimelineLayer({id:o,label:`Router${i?" "+i:""} Navigations`,color:4237508}),n.onError(((e,t)=>{r.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:r.now(),data:{error:e},groupId:t.meta.__navigationId}})}));let s=0;n.beforeEach(((e,t)=>{const n={guard:Je("beforeEach"),from:Ze(t,"Current Location during this navigation"),to:Ze(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:s++}),r.addTimelineEvent({layerId:o,event:{time:r.now(),title:"Start of navigation",subtitle:e.fullPath,data:n,groupId:e.meta.__navigationId}})})),n.afterEach(((e,t,n)=>{const a={guard:Je("afterEach")};n?(a.failure={_custom:{type:Error,readOnly:!0,display:n?n.message:"",tooltip:"Navigation Failure",value:n}},a.status=Je("❌")):a.status=Je("✅"),a.from=Ze(t,"Current Location during this navigation"),a.to=Ze(e,"Target location"),r.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:e.fullPath,time:r.now(),data:a,logType:n?"warning":"default",groupId:e.meta.__navigationId}})}));const u="router-inspector:"+i;function c(){if(!d)return;const e=d;let t=a.getRoutes().filter((e=>!e.parent||!e.parent.record.components));t.forEach(ft),e.filter&&(t=t.filter((t=>mt(t,e.filter.toLowerCase())))),t.forEach((e=>pt(e,n.currentRoute.value))),e.rootNodes=t.map(ct)}let d;r.addInspector({id:u,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"}),r.on.getInspectorTree((t=>{d=t,t.app===e&&t.inspectorId===u&&c()})),r.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===u){const e=a.getRoutes().find((e=>e.record.__vd_id===t.nodeId));e&&(t.state={options:tt(e)})}})),r.sendInspectorTree(u),r.sendInspectorState(u)}))}function tt(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return null!=t.name&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map((e=>`${e.name}${function(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}}),null!=t.redirect&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map((e=>e.record.path))}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const nt=15485081,at=2450411,it=8702998,rt=2282478,ot=16486972,st=6710886,lt=16704226,ut=12131356;function ct(e){const t=[],{record:n}=e;null!=n.name&&t.push({label:String(n.name),textColor:0,backgroundColor:rt}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:ot}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:nt}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:it}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:at}),n.redirect&&t.push({label:"string"==typeof n.redirect?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:st});let a=n.__vd_id;return null==a&&(a=String(dt++),n.__vd_id=a),{id:a,label:n.path,tags:t,children:e.children.map(ct)}}let dt=0;const ht=/^\/(.*)\/([a-z]*)$/;function pt(e,t){const n=t.matched.length&&R(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some((t=>R(t,e.record)))),e.children.forEach((e=>pt(e,t)))}function ft(e){e.__vd_match=!1,e.children.forEach(ft)}function mt(e,t){const n=String(e.re).match(ht);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach((e=>mt(e,t))),("/"!==e.record.path||"/"===t)&&(e.__vd_match=e.re.test(t),!0);const a=e.record.path.toLowerCase(),i=E(a);return!(t.startsWith("/")||!i.includes(t)&&!a.includes(t))||(!(!i.startsWith(t)&&!a.startsWith(t))||(!(!e.record.name||!String(e.record.name).includes(t))||e.children.some((e=>mt(e,t)))))}return e.RouterLink=De,e.RouterView=Fe,e.START_LOCATION=q,e.createMemoryHistory=function(e=""){let t=[],n=[""],a=0;function i(e){a++,a!==n.length&&n.splice(a),n.push(e)}const r={location:"",state:{},base:e=B(e),createHref:F.bind(null,e),replace(e){n.splice(a--,1),i(e)},push(e,t){i(e)},listen:e=>(t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}),destroy(){t=[],n=[""],a=0},go(e,i=!0){const r=this.location,o=e<0?j.back:j.forward;a=Math.max(0,Math.min(a+e,n.length-1)),i&&function(e,n,{direction:a,delta:i}){const r={direction:a,delta:i,type:D.pop};for(const a of t)a(e,n,r)}(this.location,r,{direction:o,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n[a]}),r},e.createRouter=function(e){const a=fe(e.routes,e),i=e.parseQuery||Ce,c=e.stringifyQuery||Te,d=e.history;if(!d)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const h=Re(),p=Re(),f=Re(),m=t.shallowRef(q);let g=q;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=o.bind(null,(e=>""+e)),b=o.bind(null,T),w=o.bind(null,E);function x(e,t){if(t=r({},t||m.value),"string"==typeof e){const n=L(i,e,t.path),o=a.resolve({path:n.path},t),s=d.createHref(n.fullPath);return s.startsWith("//")?u(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`):o.matched.length||u(`No match found for location with path "${e}"`),r(n,o,{params:w(o.params),hash:E(n.hash),redirectedFrom:void 0,href:s})}if(!Z(e))return u("router.resolve() was passed an invalid location. This will fail in production.\n- Location:",e),x({});let n;if(null!=e.path)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&u(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),n=r({},e,{path:L(i,e.path,t.path).path});else{const a=r({},e.params);for(const e in a)null==a[e]&&delete a[e];n=r({},e,{params:b(a)}),t.params=b(t.params)}const o=a.resolve(n,t),s=e.hash||"";s&&!s.startsWith("#")&&u(`A \`hash\` should always start with the character "#". Replace "${s}" with "#${s}".`),o.params=_(w(o.params));const l=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(c,r({},e,{hash:(h=s,S(h).replace(y,"{").replace(k,"}").replace(v,"^")),path:o.path}));var h;const p=d.createHref(l);return p.startsWith("//")?u(`Location "${e}" resolved to "${p}". A resolved location cannot start with multiple slashes.`):o.matched.length||u(`No match found for location with path "${null!=e.path?e.path:e}"`),r({fullPath:l,hash:s,query:c===Te?Ee(e.query):e.query||{}},o,{redirectedFrom:void 0,href:p})}function C(e){return"string"==typeof e?L(i,e,m.value.path):r({},e)}function P(e,t){if(g!==e)return ne(8,{from:t,to:e})}function A(e){return N(e)}function M(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;if("string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=C(a):{path:a},a.params={}),null==a.path&&!("name"in a))throw u(`Invalid redirect found:\n${JSON.stringify(a,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return r({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function N(e,t){const n=g=x(e),a=m.value,i=e.state,o=e.force,s=!0===e.replace,l=M(n);if(l)return N(r(C(l),{state:"object"==typeof l?r({},i,l.state):i,force:o,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!o&&z(c,a,n)&&(h=ne(16,{to:d,from:a}),te(a,a,!0,!1)),(h?Promise.resolve(h):j(d,a)).catch((e=>ae(e)?ae(e,2)?e:ee(e):X(e,d,a))).then((e=>{if(e){if(ae(e,2))return z(c,x(e.to),d)&&t&&(t._count=t._count?t._count+1:1)>30?(u(`Detected a possibly infinite redirection in a navigation guard when going from "${a.fullPath}" to "${d.fullPath}". Aborting to avoid a Stack Overflow.\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):N(r({replace:s},C(e.to),{state:"object"==typeof e.to?r({},i,e.to.state):i,force:o}),t||d)}else e=$(d,a,!0,s,i);return B(d,a,e),e}))}function I(e,t){const n=P(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){const t=oe.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function j(e,t){let n;const[a,i,r]=function(e,t){const n=[],a=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;oR(e,r)))?a.push(r):n.push(r));const s=e.matched[o];s&&(t.matched.find((e=>R(e,s)))||i.push(s))}return[n,a,i]}(e,t);n=Oe(a.reverse(),"beforeRouteLeave",e,t);for(const i of a)i.leaveGuards.forEach((a=>{n.push(Ie(a,e,t))}));const o=I.bind(null,e,t);return n.push(o),le(n).then((()=>{n=[];for(const a of h.list())n.push(Ie(a,e,t));return n.push(o),le(n)})).then((()=>{n=Oe(i,"beforeRouteUpdate",e,t);for(const a of i)a.updateGuards.forEach((a=>{n.push(Ie(a,e,t))}));return n.push(o),le(n)})).then((()=>{n=[];for(const a of r)if(a.beforeEnter)if(l(a.beforeEnter))for(const i of a.beforeEnter)n.push(Ie(i,e,t));else n.push(Ie(a.beforeEnter,e,t));return n.push(o),le(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Oe(r,"beforeRouteEnter",e,t,O),n.push(o),le(n)))).then((()=>{n=[];for(const a of p.list())n.push(Ie(a,e,t));return n.push(o),le(n)})).catch((e=>ae(e,8)?e:Promise.reject(e)))}function B(e,t,n){f.list().forEach((a=>O((()=>a(e,t,n)))))}function $(e,t,a,i,o){const s=P(e,t);if(s)return s;const l=t===q,u=n?history.state:{};a&&(i||l?d.replace(e.fullPath,r({scroll:l&&u&&u.scroll},o)):d.push(e.fullPath,o)),m.value=e,te(e,t,a,l),ee()}let F;function G(){F||(F=d.listen(((e,t,a)=>{if(!se.listening)return;const i=x(e),o=M(i);if(o)return void N(r(o,{replace:!0}),i).catch(s);g=i;const l=m.value;var u,c;n&&(u=H(l.fullPath,a.delta),c=V(),W.set(u,c)),j(i,l).catch((e=>ae(e,12)?e:ae(e,2)?(N(e.to,i).then((e=>{ae(e,20)&&!a.delta&&a.type===D.pop&&d.go(-1,!1)})).catch(s),Promise.reject()):(a.delta&&d.go(-a.delta,!1),X(e,i,l)))).then((e=>{(e=e||$(i,l,!1))&&(a.delta&&!ae(e,8)?d.go(-a.delta,!1):a.type===D.pop&&ae(e,20)&&d.go(-1,!1)),B(i,l,e)})).catch(s)})))}let Y,K=Re(),Q=Re();function X(e,t,n){ee(e);const a=Q.list();return a.length?a.forEach((a=>a(e,t,n))):(u("uncaught error during route navigation:"),console.error(e)),Promise.reject(e)}function ee(e){return Y||(Y=!e,G(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function te(a,i,r,o){const{scrollBehavior:s}=e;if(!n||!s)return Promise.resolve();const l=!r&&function(e){const t=W.get(e);return W.delete(e),t}(H(a.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return t.nextTick().then((()=>s(a,i,l))).then((e=>e&&U(e))).catch((e=>X(e,a,i)))}const ie=e=>d.go(e);let re;const oe=new Set,se={currentRoute:m,listening:!0,addRoute:function(e,t){let n,i;return J(e)?(n=a.getRecordMatcher(e),n||u(`Parent route "${String(e)}" not found when adding child route`,t),i=t):i=e,a.addRoute(i,n)},removeRoute:function(e){const t=a.getRecordMatcher(e);t?a.removeRoute(t):u(`Cannot remove non-existent route "${String(e)}"`)},clearRoutes:a.clearRoutes,hasRoute:function(e){return!!a.getRecordMatcher(e)},getRoutes:function(){return a.getRoutes().map((e=>e.record))},resolve:x,options:e,push:A,replace:function(e){return A(r(C(e),{replace:!0}))},go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:h.add,beforeResolve:p.add,afterEach:f.add,onError:Q.add,isReady:function(){return Y&&m.value!==q?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))},install(e){const i=this;e.component("RouterLink",De),e.component("RouterView",Fe),e.config.globalProperties.$router=i,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t.unref(m)}),n&&!re&&m.value===q&&(re=!0,A(d.location).catch((e=>{u("Unexpected error when starting the router:",e)})));const r={};for(const e in q)Object.defineProperty(r,e,{get:()=>m.value[e],enumerable:!0});e.provide(Le,i),e.provide(Me,t.shallowReactive(r)),e.provide(ze,m);const o=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(g=q,F&&F(),F=null,m.value=q,re=!1,Y=!1),o()},n&&et(e,i,a)}};function le(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return se},e.createRouterMatcher=fe,e.createWebHashHistory=function(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),e.endsWith("#/")||e.endsWith("#")||u(`A hash base must end with a "#":\n"${e}" should be "${e.replace(/#.*$/,"#")}".`),Q(e)},e.createWebHistory=Q,e.isNavigationFailure=ae,e.loadRouteLocation=function(e){return e.matched.every((e=>e.redirect))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((e=>e.components&&Promise.all(Object.keys(e.components).reduce(((t,n)=>{const a=e.components[n];return"function"!=typeof a||"displayName"in a||t.push(a().then((t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=i(t)?t.default:t;e.mods[n]=t,e.components[n]=a}))),t}),[]))))).then((()=>e))},e.matchedRouteKey=Pe,e.onBeforeRouteLeave=function(e){if(!t.getCurrentInstance())return void u("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");const n=t.inject(Pe,{}).value;n?Ne(n,"leaveGuards",e):u("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of . Maybe you called it inside of App.vue?")},e.onBeforeRouteUpdate=function(e){if(!t.getCurrentInstance())return void u("getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function");const n=t.inject(Pe,{}).value;n?Ne(n,"updateGuards",e):u("No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of . Maybe you called it inside of App.vue?")},e.parseQuery=Ce,e.routeLocationKey=Me,e.routerKey=Le,e.routerViewLocationKey=ze,e.stringifyQuery=Te,e.useLink=qe,e.useRoute=function(e){return t.inject(Me)},e.useRouter=function(){return t.inject(Le)},e.viewDepthKey=Ae,e}({},Vue); /*! - * vue-i18n v10.0.5 - * (c) 2024 kazuya kawaguchi + * vue-i18n v10.0.6 + * (c) 2025 kazuya kawaguchi * Released under the MIT License. */!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self).VueQrcodeReader={},e.Vue)}(this,(function(e,t){"use strict";var n=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},a=(e,t,a)=>(n(e,t,"read from private field"),a?a.call(e):t.get(e));const i=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],r=[...i,["unknown"]].map((e=>e[0])),o=new Map(i);function s(e){for(const[t,n]of o)if(e===n)return t;return"unknown"}function l(e){try{return e instanceof HTMLImageElement}catch(e){return!1}}function u(e){try{return e instanceof SVGImageElement}catch(e){return!1}}function c(e){try{return e instanceof HTMLVideoElement}catch(e){return!1}}function d(e){try{return e instanceof HTMLCanvasElement}catch(e){return!1}}function h(e){try{return e instanceof ImageBitmap}catch(e){return!1}}function p(e){try{return e instanceof OffscreenCanvas}catch(e){return!1}}function f(e){try{return e instanceof VideoFrame}catch(e){return!1}}function m(e){try{return e instanceof Blob}catch(e){return!1}}async function g(e){if(l(e)&&!await async function(e){try{return await e.decode(),!0}catch(e){return!1}}(e))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(u(e)&&!await async function(e){var t;try{return await(null==(t=e.decode)?void 0:t.call(e)),!0}catch(e){return!1}}(e))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(f(e)&&function(e){return null===e.format}(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(c(e)&&(0===e.readyState||1===e.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(h(e)&&function(e){return 0===e.width&&0===e.height}(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:n}=function(e){if(l(e))return{width:e.naturalWidth,height:e.naturalHeight};if(u(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(c(e))return{width:e.videoWidth,height:e.videoHeight};if(h(e))return{width:e.width,height:e.height};if(f(e))return{width:e.displayWidth,height:e.displayHeight};if(d(e))return{width:e.width,height:e.height};if(p(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}(e);if(0===t||0===n)return null;const a=function(e,t){try{const n=new OffscreenCanvas(e,t);if(n.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch(n){const a=document.createElement("canvas");return a.width=e,a.height=t,a}}(t,n).getContext("2d");a.drawImage(e,0,0);try{return a.getImageData(0,0,t,n)}catch(e){throw new DOMException("Source would taint origin.","SecurityError")}}async function _(e){if(m(e))return await async function(e){let t;try{if(globalThis.createImageBitmap)t=await createImageBitmap(e);else{if(!globalThis.Image)return e;{t=new Image;let n="";try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}}}catch(e){throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await g(t)}(e);if(function(e){try{return e instanceof ImageData}catch(e){return!1}}(e)){if(function(e){return 0===e.data.buffer.byteLength}(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return d(e)||p(e)?function(e){const{width:t,height:n}=e;if(0===t||0===n)return null;const a=e.getContext("2d");try{return a.getImageData(0,0,t,n)}catch(e){throw new DOMException("Source would taint origin.","SecurityError")}}(e):await g(e)}function v(e,t){return e instanceof DOMException?new DOMException(`${t}: ${e.message}`,e.name):e instanceof Error?new e.constructor(`${t}: ${e.message}`):new Error(`${t}: ${e}`)}const b=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function y(e){return e.join("|")}function w(e){const t=k(e);let n=0,a=b.length-1;for(;n<=a;){const e=Math.floor((n+a)/2),i=b[e],r=k(i);if(r===t)return i;r{const n=e.match(/_(.+?)\.wasm$/);return n?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.1.3/dist/${n[1]}/${e}`:t+e}};let R=new WeakMap;function N(e,t){var n;const a=R.get(e);if(null!=a&&a.modulePromise&&void 0===t)return a.modulePromise;const i=null!=(n=null==a?void 0:a.moduleOverrides)?n:z,r=e({...i});return R.set(e,{moduleOverrides:i,modulePromise:r}),r}A.formats;var I,O,q=(I=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,function(e={}){var t,n,a=e;a.ready=new Promise(((e,a)=>{t=e,n=a}));var i=Object.assign({},a),r="./this.program",o="object"==typeof window,s="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var l,u="";(o||s)&&(s?u=self.location.href:typeof document<"u"&&document.currentScript&&(u=document.currentScript.src),I&&(u=I),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s&&(l=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})),a.print||console.log.bind(console);var c,d=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&(r=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(c=a.wasmBinary),"object"!=typeof WebAssembly&&P("no native wasm support detected");var h,p,f,m,g,_,v,b,y,w=!1;function k(){var e=h.buffer;a.HEAP8=p=new Int8Array(e),a.HEAP16=m=new Int16Array(e),a.HEAPU8=f=new Uint8Array(e),a.HEAPU16=g=new Uint16Array(e),a.HEAP32=_=new Int32Array(e),a.HEAPU32=v=new Uint32Array(e),a.HEAPF32=b=new Float32Array(e),a.HEAPF64=y=new Float64Array(e)}var x=[],S=[],C=[],T=0,E=null;function P(e){var t;null===(t=a.onAbort)||void 0===t||t.call(a,e),d(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(e);throw n(i),i}var A,L,M=e=>e.startsWith("data:application/octet-stream;base64,");function z(e){if(e==A&&c)return new Uint8Array(c);if(l)return l(e);throw"both async and sync fetching of the wasm failed"}function R(e,t,n){return function(e){return c||!o&&!s||"function"!=typeof fetch?Promise.resolve().then((()=>z(e))):fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>z(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(n,(e=>{d(`failed to asynchronously prepare wasm: ${e}`),P(e)}))}M(A="zxing_reader.wasm")||(L=A,A=a.locateFile?a.locateFile(L,u):u+L);var N=e=>{for(;e.length>0;)e.shift()(a)};a.noExitRuntime;var O=[],q=0,D=0;function j(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){v[this.ptr+4>>2]=e},this.get_type=function(){return v[this.ptr+4>>2]},this.set_destructor=function(e){v[this.ptr+8>>2]=e},this.get_destructor=function(){return v[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,p[this.ptr+12|0]=e},this.get_caught=function(){return 0!=p[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,p[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=p[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){v[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return v[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Rt(this.get_type()))return v[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var B=e=>{var t=D;if(!t)return Et(0),0;var n=new j(t);n.set_adjusted_ptr(t);var a=n.get_type();if(!a)return Et(0),t;for(var i in e){var r=e[i];if(0===r||r===a)break;var o=n.ptr+16;if(zt(r,a,o))return Et(r),t}return Et(a),t},$={},F=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function V(e){return this.fromWireType(_[e>>2])}var U,H,W,G={},Y={},K={},Q=e=>{throw new U(e)},Z=(e,t,n)=>{function a(t){var a=n(t);a.length!==e.length&&Q("Mismatched type converter count");for(var i=0;i{Y.hasOwnProperty(e)?i[t]=Y[e]:(r.push(e),G.hasOwnProperty(e)||(G[e]=[]),G[e].push((()=>{i[t]=Y[e],++o===r.length&&a(i)})))})),0===r.length&&a(i)},J=e=>{for(var t="",n=e;f[n];)t+=H[f[n++]];return t},X=e=>{throw new W(e)};function ee(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=t.name;if(e||X(`type "${a}" must have a positive integer typeid pointer`),Y.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;X(`Cannot register type '${a}' twice`)}if(Y[e]=t,delete K[e],G.hasOwnProperty(e)){var i=G[e];delete G[e],i.forEach((e=>e()))}}(e,t,n)}var te,ne=8,ae=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),ie=e=>{X(e.$$.ptrType.registeredClass.name+" instance already deleted")},re=!1,oe=e=>{},se=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},le=(e,t,n)=>{if(t===n)return e;if(void 0===n.baseClass)return null;var a=le(e,t,n.baseClass);return null===a?null:n.downcast(a)},ue={},ce=()=>Object.keys(me).length,de=()=>{var e=[];for(var t in me)me.hasOwnProperty(t)&&e.push(me[t]);return e},he=[],pe=()=>{for(;he.length;){var e=he.pop();e.$$.deleteScheduled=!1,e.delete()}},fe=e=>{te=e,he.length&&te&&te(pe)},me={},ge=(e,t)=>(t=((e,t)=>{for(void 0===t&&X("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),me[t]),_e=(e,t)=>((!t.ptrType||!t.ptr)&&Q("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Q("Both smartPtrType and smartPtr must be specified"),t.count={value:1},be(Object.create(e,{$$:{value:t,writable:!0}})));function ve(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=ge(this.registeredClass,t);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var a=n.clone();return this.destructor(e),a}function i(){return this.isSmartPointer?_e(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):_e(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var r,o=this.registeredClass.getActualType(t),s=ue[o];if(!s)return i.call(this);r=this.isConst?s.constPointerType:s.pointerType;var l=le(t,this.registeredClass,r.registeredClass);return null===l?i.call(this):this.isSmartPointer?_e(r.registeredClass.instancePrototype,{ptrType:r,ptr:l,smartPtrType:this,smartPtr:e}):_e(r.registeredClass.instancePrototype,{ptrType:r,ptr:l})}var be=e=>typeof FinalizationRegistry>"u"?(be=e=>e,e):(re=new FinalizationRegistry((e=>{se(e.$$)})),oe=e=>re.unregister(e),(be=e=>{var t=e.$$;if(t.smartPtr){var n={$$:t};re.register(e,n,e)}return e})(e));function ye(){}var we=(e,t)=>Object.defineProperty(t,"name",{value:e}),ke=(e,t,n)=>{if(void 0===e[t].overloadTable){var a=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||X(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[a.argCount]=a}},xe=(e,t,n)=>{a.hasOwnProperty(e)?((void 0===n||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[n])&&X(`Cannot register public name '${e}' twice`),ke(a,e,e),a.hasOwnProperty(n)&&X(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),a[e].overloadTable[n]=t):(a[e]=t,void 0!==n&&(a[e].numArguments=n))};function Se(e,t,n,a,i,r,o,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=a,this.baseClass=i,this.getActualType=r,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Ce=(e,t,n)=>{for(;t!==n;)t.upcast||X(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Te(e,t){if(null===t)return this.isReference&&X(`null is not a valid ${this.name}`),0;t.$$||X(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||X(`Cannot pass deleted object as a pointer of type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ce(t.$$.ptr,n,this.registeredClass)}function Ee(e,t){var n;if(null===t)return this.isReference&&X(`null is not a valid ${this.name}`),this.isSmartPointer?(n=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,n),n):0;(!t||!t.$$)&&X(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||X(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&X(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var a=t.$$.ptrType.registeredClass;if(n=Ce(t.$$.ptr,a,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&X("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:X(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var i=t.clone();n=this.rawShare(n,Ge.toHandle((()=>i.delete()))),null!==e&&e.push(this.rawDestructor,n)}break;default:X("Unsupporting sharing policy")}return n}function Pe(e,t){if(null===t)return this.isReference&&X(`null is not a valid ${this.name}`),0;t.$$||X(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||X(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&X(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ce(t.$$.ptr,n,this.registeredClass)}function Ae(e){return this.fromWireType(v[e>>2])}function Le(e,t,n,a,i,r,o,s,l,u,c){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=a,this.isSmartPointer=i,this.pointeeType=r,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,i||void 0!==t.baseClass?this.toWireType=Ee:a?(this.toWireType=Te,this.destructorFunction=null):(this.toWireType=Pe,this.destructorFunction=null)}var Me,ze,Re=(e,t,n)=>{a.hasOwnProperty(e)||Q("Replacing nonexistant public symbol"),void 0!==a[e].overloadTable&&void 0!==n?a[e].overloadTable[n]=t:(a[e]=t,a[e].argCount=n)},Ne=[],Ie=e=>{var t=Ne[e];return t||(e>=Ne.length&&(Ne.length=e+1),Ne[e]=t=Me.get(e)),t},Oe=(e,t,n)=>e.includes("j")?((e,t,n)=>{var i=a["dynCall_"+e];return n&&n.length?i.apply(null,[t].concat(n)):i.call(null,t)})(e,t,n):Ie(t).apply(null,n),qe=(e,t)=>{var n=(e=J(e)).includes("j")?((e,t)=>{var n=[];return function(){return n.length=0,Object.assign(n,arguments),Oe(e,t,n)}})(e,t):Ie(t);return"function"!=typeof n&&X(`unknown function pointer with signature ${e}: ${t}`),n},De=e=>{var t=Ct(e),n=J(t);return xt(t),n},je=(e,t)=>{var n=[],a={};throw t.forEach((function e(t){if(!a[t]&&!Y[t]){if(K[t])return void K[t].forEach(e);n.push(t),a[t]=!0}})),new ze(`${e}: `+n.map(De).join([", "]))},Be=(e,t)=>{for(var n=[],a=0;a>2]);return n};function $e(e,t,n,a,i,r){var o=t.length;o<2&&X("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==n,l=function(e){for(var t=1;t{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e};function Ve(){this.allocated=[void 0],this.freelist=[]}var Ue=new Ve,He=e=>{e>=Ue.reserved&&0==--Ue.get(e).refcount&&Ue.free(e)},We=()=>{for(var e=0,t=Ue.reserved;t(e||X("Cannot use deleted val. handle = "+e),Ue.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Ue.allocate({refcount:1,value:e})}}},Ye=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.fromWireType(p[0|e])}:function(e){return this.fromWireType(f[0|e])};case 2:return n?function(e){return this.fromWireType(m[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return n?function(e){return this.fromWireType(_[e>>2])}:function(e){return this.fromWireType(v[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ke=(e,t)=>{var n=Y[e];return void 0===n&&X(t+" has unknown type "+De(e)),n},Qe=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Ze=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(y[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Je=(e,t,n)=>{switch(t){case 1:return n?e=>p[0|e]:e=>f[0|e];case 2:return n?e=>m[e>>1]:e=>g[e>>1];case 4:return n?e=>_[e>>2]:e=>v[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Xe=(e,t,n,a)=>{if(!(a>0))return 0;for(var i=n,r=n+a-1,o=0;o=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(n>=r)break;t[n++]=s}else if(s<=2047){if(n+1>=r)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=r)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=r)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-i},et=e=>{for(var t=0,n=0;n=55296&&a<=57343?(t+=4,++n):t+=3}return t},tt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,nt=(e,t)=>e?((e,t,n)=>{for(var a=t+n,i=t;e[i]&&!(i>=a);)++i;if(i-t>16&&e.buffer&&tt)return tt.decode(e.subarray(t,i));for(var r="";t>10,56320|1023&u)}}else r+=String.fromCharCode((31&o)<<6|s)}else r+=String.fromCharCode(o)}return r})(f,e,t):"",at=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,it=(e,t)=>{for(var n=e,a=n>>1,i=a+t/2;!(a>=i)&&g[a];)++a;if((n=a<<1)-e>32&&at)return at.decode(f.subarray(e,n));for(var r="",o=0;!(o>=t/2);++o){var s=m[e+2*o>>1];if(0==s)break;r+=String.fromCharCode(s)}return r},rt=(e,t,n)=>{var a;if(null!==(a=n)&&void 0!==a||(n=2147483647),n<2)return 0;for(var i=t,r=(n-=2)<2*e.length?n/2:e.length,o=0;o>1]=s,t+=2}return m[t>>1]=0,t-i},ot=e=>2*e.length,st=(e,t)=>{for(var n=0,a="";!(n>=t/4);){var i=_[e+4*n>>2];if(0==i)break;if(++n,i>=65536){var r=i-65536;a+=String.fromCharCode(55296|r>>10,56320|1023&r)}else a+=String.fromCharCode(i)}return a},lt=(e,t,n)=>{var a;if(null!==(a=n)&&void 0!==a||(n=2147483647),n<4)return 0;for(var i=t,r=i+n-4,o=0;o=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),_[t>>2]=s,(t+=4)+4>r)break}return _[t>>2]=0,t-i},ut=e=>{for(var t=0,n=0;n=55296&&a<=57343&&++n,t+=4}return t},ct=[],dt={},ht=()=>{if("object"==typeof globalThis)return globalThis;function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof $$$embind_global$$$||("object"==typeof global&&e(global)?$$$embind_global$$$=global:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")},pt=Reflect.construct,ft=e=>{var t=(e-h.buffer.byteLength+65535)/65536;try{return h.grow(t),k(),1}catch(e){}},mt={},gt=()=>{if(!gt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:r||"./this.program"};for(var t in mt)void 0===mt[t]?delete e[t]:e[t]=mt[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);gt.strings=n}return gt.strings},_t=e=>e%4==0&&(e%100!=0||e%400==0),vt=[31,29,31,30,31,30,31,31,30,31,30,31],bt=[31,28,31,30,31,30,31,31,30,31,30,31],yt=(e,t,n,a)=>{var i=v[a+40>>2],r={tm_sec:_[a>>2],tm_min:_[a+4>>2],tm_hour:_[a+8>>2],tm_mday:_[a+12>>2],tm_mon:_[a+16>>2],tm_year:_[a+20>>2],tm_wday:_[a+24>>2],tm_yday:_[a+28>>2],tm_isdst:_[a+32>>2],tm_gmtoff:_[a+36>>2],tm_zone:i?nt(i):""},o=nt(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,n){for(var a="number"==typeof e?e.toString():e||"";a.length0?1:0}var a;return 0===(a=n(e.getFullYear()-t.getFullYear()))&&0===(a=n(e.getMonth()-t.getMonth()))&&(a=n(e.getDate()-t.getDate())),a}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var t=((e,t)=>{for(var n=new Date(e.getTime());t>0;){var a=_t(n.getFullYear()),i=n.getMonth(),r=(a?vt:bt)[i];if(!(t>r-n.getDate()))return n.setDate(n.getDate()+t),n;t-=r-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n})(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(t.getFullYear(),0,4),a=new Date(t.getFullYear()+1,0,4),i=m(n),r=m(a);return f(i,t)<=0?f(r,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var b={"%a":e=>u[e.tm_wday].substring(0,3),"%A":e=>u[e.tm_wday],"%b":e=>c[e.tm_mon].substring(0,3),"%B":e=>c[e.tm_mon],"%C":e=>h((e.tm_year+1900)/100|0,2),"%d":e=>h(e.tm_mday,2),"%e":e=>d(e.tm_mday,2," "),"%g":e=>g(e).toString().substring(2),"%G":e=>g(e),"%H":e=>h(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),h(t,2)},"%j":e=>h(e.tm_mday+((e,t)=>{for(var n=0,a=0;a<=t;n+=e[a++]);return n})(_t(e.tm_year+1900)?vt:bt,e.tm_mon-1),3),"%m":e=>h(e.tm_mon+1,2),"%M":e=>h(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>h(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return h(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var n=(e.tm_wday+371-e.tm_yday)%7;4!=n&&(3!=n||!_t(e.tm_year))&&(t=1)}}else{t=52;var a=(e.tm_wday+7-e.tm_yday-1)%7;(4==a||5==a&&_t(e.tm_year%400-1))&&t++}return h(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return h(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff;return(t>=0?"+":"-")+("0000"+(t=(t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in o=o.replace(/%%/g,"\0\0"),b)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),b[l](r)));var y=function(e){var t=et(e)+1,n=new Array(t);return Xe(e,n,0,n.length),n}(o=o.replace(/\0\0/g,"%"));return y.length>t?0:(((e,t)=>{p.set(e,t)})(y,e),y.length-1)};U=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);H=e})(),W=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(ye.prototype,{isAliasOf(e){if(!(this instanceof ye&&e instanceof ye))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var a=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;a.baseClass;)i=a.upcast(i),a=a.baseClass;return t===a&&n===i},clone(){if(this.$$.ptr||ie(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=be(Object.create(Object.getPrototypeOf(this),{$$:{value:ae(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),oe(this),se(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),he.push(this),1===he.length&&te&&te(pe),this.$$.deleteScheduled=!0,this}}),a.getInheritedInstanceCount=ce,a.getLiveInheritedInstances=de,a.flushPendingDeletes=pe,a.setDelayFunction=fe,Object.assign(Le.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null===(t=this.rawDestructor)||void 0===t||t.call(this,e)},argPackAdvance:ne,readValueFromPointer:Ae,deleteObject(e){null!==e&&e.delete()},fromWireType:ve}),ze=a.UnboundTypeError=((e,t)=>{var n=we(t,(function(e){this.name=t,this.message=e;var n=new Error(e).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},n})(Error,"UnboundTypeError"),Object.assign(Ve.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),Ue.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Ue.reserved=Ue.allocated.length,a.count_emval_handles=We;var wt={s:e=>{var t=new j(e);return t.get_caught()||(t.set_caught(!0),q--),t.set_rethrown(!1),O.push(t),Mt(t.excPtr),t.get_exception_ptr()},u:()=>{Tt(0,0);var e=O.pop();Lt(e.excPtr),D=0},b:()=>B([]),g:e=>B([e]),q:(e,t)=>B([e,t]),J:()=>{var e=O.pop();e||P("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(O.push(e),e.set_rethrown(!0),e.set_caught(!1),q++),D=t},f:(e,t,n)=>{throw new j(e).init(t,n),q++,D=e},V:()=>q,d:e=>{throw D||(D=e),D},da:e=>{var t=$[e];delete $[e];var n=t.rawConstructor,a=t.rawDestructor,i=t.fields,r=i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType)));Z([e],r,(e=>{var r={};return i.forEach(((t,n)=>{var a=t.fieldName,o=e[n],s=t.getter,l=t.getterContext,u=e[n+i.length],c=t.setter,d=t.setterContext;r[a]={read:e=>o.fromWireType(s(l,e)),write:(e,t)=>{var n=[];c(d,e,u.toWireType(n,t)),F(n)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var n in r)t[n]=r[n].read(e);return a(e),t},toWireType:(e,t)=>{for(var i in r)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var o=n();for(i in r)r[i].write(o,t[i]);return null!==e&&e.push(a,o),o},argPackAdvance:ne,readValueFromPointer:V,destructorFunction:a}]}))},Q:(e,t,n,a,i)=>{},_:(e,t,n,a)=>{ee(e,{name:t=J(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:a},argPackAdvance:ne,readValueFromPointer:function(e){return this.fromWireType(f[e])},destructorFunction:null})},ca:(e,t,n,a,i,r,o,s,l,u,c,d,h)=>{c=J(c),r=qe(i,r),s&&(s=qe(o,s)),u&&(u=qe(l,u)),h=qe(d,h);var p=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(c);xe(p,(function(){je(`Cannot construct ${c} due to unbound types`,[a])})),Z([e,t,n],a?[a]:[],(function(t){var n,i;t=t[0],i=a?(n=t.registeredClass).instancePrototype:ye.prototype;var o=we(c,(function(){if(Object.getPrototypeOf(this)!==l)throw new W("Use 'new' to construct "+c);if(void 0===m.constructor_body)throw new W(c+" has no accessible constructor");var e=m.constructor_body[arguments.length];if(void 0===e)throw new W(`Tried to invoke ctor of ${c} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(m.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),l=Object.create(i,{constructor:{value:o}});o.prototype=l;var d,f,m=new Se(c,o,l,h,n,r,s,u);m.baseClass&&(null!==(f=(d=m.baseClass).__derivedClasses)&&void 0!==f||(d.__derivedClasses=[]),m.baseClass.__derivedClasses.push(m));var g=new Le(c,m,!0,!1,!1),_=new Le(c+"*",m,!1,!1,!1),v=new Le(c+" const*",m,!1,!0,!1);return ue[e]={pointerType:_,constPointerType:v},Re(p,o),[g,_,v]}))},ba:(e,t,n,a,i,r)=>{var o=Be(t,n);i=qe(a,i),Z([],[e],(function(e){var n=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new W(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{je(`Cannot construct ${e.name} due to unbound types`,o)},Z([],o,(a=>(a.splice(1,0,null),e.registeredClass.constructor_body[t-1]=$e(n,a,null,i,r),[]))),[]}))},w:(e,t,n,a,i,r,o,s,l)=>{var u=Be(n,a);t=J(t),t=Fe(t),r=qe(i,r),Z([],[e],(function(e){var a=`${(e=e[0]).name}.${t}`;function i(){je(`Cannot call ${a} due to unbound types`,u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,c=l[t];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===n-2?(i.argCount=n-2,i.className=e.name,l[t]=i):(ke(l,t,a),l[t].overloadTable[n-2]=i),Z([],u,(function(i){var s=$e(a,i,e,r,o);return void 0===l[t].overloadTable?(s.argCount=n-2,l[t]=s):l[t].overloadTable[n-2]=s,[]})),[]}))},Y:(e,t)=>{ee(e,{name:t=J(t),fromWireType:e=>{var t=Ge.toValue(e);return He(e),t},toWireType:(e,t)=>Ge.toHandle(t),argPackAdvance:ne,readValueFromPointer:V,destructorFunction:null})},x:(e,t,n,a)=>{function i(){}t=J(t),i.values={},ee(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:ne,readValueFromPointer:Ye(t,n,a),destructorFunction:null}),xe(t,i)},h:(e,t,n)=>{var a=Ke(e,"enum");t=J(t);var i=a.constructor,r=Object.create(a.constructor.prototype,{value:{value:n},constructor:{value:we(`${a.name}_${t}`,(function(){}))}});i.values[n]=r,i[t]=r},L:(e,t,n)=>{ee(e,{name:t=J(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ne,readValueFromPointer:Ze(t,n),destructorFunction:null})},M:(e,t,n,a,i,r,o)=>{var s=Be(t,n);e=J(e),e=Fe(e),i=qe(a,i),xe(e,(function(){je(`Cannot call ${e} due to unbound types`,s)}),t-1),Z([],s,(function(n){var a=[n[0],null].concat(n.slice(1));return Re(e,$e(e,a,null,i,r),t-1),[]}))},t:(e,t,n,a,i)=>{t=J(t);var r=e=>e;if(0===a){var o=32-8*n;r=e=>e<>>o}var s=t.includes("unsigned");ee(e,{name:t,fromWireType:r,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:ne,readValueFromPointer:Je(t,n,0!==a),destructorFunction:null})},o:(e,t,n)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=v[e>>2],n=v[e+4>>2];return new a(p.buffer,n,t)}ee(e,{name:n=J(n),fromWireType:i,argPackAdvance:ne,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},K:(e,t)=>{var n="std::string"===(t=J(t));ee(e,{name:t,fromWireType(e){var t,a=v[e>>2],i=e+4;if(n)for(var r=i,o=0;o<=a;++o){var s=i+o;if(o==a||0==f[s]){var l=nt(r,s-r);void 0===t?t=l:(t+="\0",t+=l),r=s+1}}else{var u=new Array(a);for(o=0;o>2]=a,n&&i)((e,t,n)=>{Xe(e,f,t,n)})(t,o,a+1);else if(i)for(var s=0;s255&&(xt(o),X("String has UTF-16 code units that do not fit in 8 bits")),f[o+s]=l}else for(s=0;s{var a,i,r,o,s;n=J(n),2===t?(a=it,i=rt,o=ot,r=()=>g,s=1):4===t&&(a=st,i=lt,o=ut,r=()=>v,s=2),ee(e,{name:n,fromWireType:e=>{for(var n,i=v[e>>2],o=r(),l=e+4,u=0;u<=i;++u){var c=e+4+u*t;if(u==i||0==o[c>>s]){var d=a(l,c-l);void 0===n?n=d:(n+="\0",n+=d),l=c+t}}return xt(e),n},toWireType:(e,a)=>{"string"!=typeof a&&X(`Cannot pass non-string to C++ string type ${n}`);var r=o(a),l=St(4+r+t);return v[l>>2]=r>>s,i(a,l+4,r+t),null!==e&&e.push(xt,l),l},argPackAdvance:ne,readValueFromPointer:V,destructorFunction(e){xt(e)}})},A:(e,t,n,a,i,r)=>{$[e]={name:J(t),rawConstructor:qe(n,a),rawDestructor:qe(i,r),fields:[]}},ea:(e,t,n,a,i,r,o,s,l,u)=>{$[e].fields.push({fieldName:J(t),getterReturnType:n,getter:qe(a,i),getterContext:r,setterArgumentType:o,setter:qe(s,l),setterContext:u})},$:(e,t)=>{ee(e,{isVoid:!0,name:t=J(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},R:(e,t,n,a)=>(e=ct[e])(null,t=Ge.toValue(t),n,a),ha:He,fa:e=>0===e?Ge.toHandle(ht()):(e=(e=>{var t=dt[e];return void 0===t?J(e):t})(e),Ge.toHandle(ht()[e])),Z:(e,t,n)=>{var a=((e,t)=>{for(var n=new Array(e),a=0;a>2],"parameter "+a);return n})(e,t),i=a.shift();e--;var r=new Array(e),o=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${i.name}>`;return(e=>{var t=ct.length;return ct.push(e),t})(we(o,((t,o,s,l)=>{for(var u=0,c=0;c{var a=[],i=e.toWireType(a,n);return a.length&&(v[t>>2]=Ge.toHandle(a)),i})(i,s,d)})))},N:e=>{e>4&&(Ue.get(e).refcount+=1)},O:e=>{var t=Ge.toValue(e);F(t),He(e)},aa:(e,t)=>{var n=(e=Ke(e,"_emval_take_value")).readValueFromPointer(t);return Ge.toHandle(n)},B:()=>{P("")},X:(e,t,n)=>f.copyWithin(e,t,t+n),W:e=>{var t,n,a=f.length,i=2147483648;if((e>>>=0)>i)return!1;for(var r=1;r<=4;r*=2){var o=a*(1+.2/r);o=Math.min(o,e+100663296);var s=Math.min(i,(t=Math.max(e,o))+((n=65536)-t%n)%n);if(ft(s))return!0}return!1},T:(e,t)=>{var n=0;return gt().forEach(((a,i)=>{var r=t+n;v[e+4*i>>2]=r,((e,t)=>{for(var n=0;n{var n=gt();v[e>>2]=n.length;var a=0;return n.forEach((e=>a+=e.length+1)),v[t>>2]=a,0},E:function(e,t,n,a){var i=Pt();try{return Ie(e)(t,n,a)}catch(e){if(At(i),e!==e+0)throw e;Tt(1,0)}},D:function(e,t,n,a,i){var r=Pt();try{return Ie(e)(t,n,a,i)}catch(e){if(At(r),e!==e+0)throw e;Tt(1,0)}},F:function(e,t,n,a){var i=Pt();try{return Ie(e)(t,n,a)}catch(e){if(At(i),e!==e+0)throw e;Tt(1,0)}},n:function(e){var t=Pt();try{return Ie(e)()}catch(e){if(At(t),e!==e+0)throw e;Tt(1,0)}},a:function(e,t){var n=Pt();try{return Ie(e)(t)}catch(e){if(At(n),e!==e+0)throw e;Tt(1,0)}},e:function(e,t,n){var a=Pt();try{return Ie(e)(t,n)}catch(e){if(At(a),e!==e+0)throw e;Tt(1,0)}},m:function(e,t,n,a){var i=Pt();try{return Ie(e)(t,n,a)}catch(e){if(At(i),e!==e+0)throw e;Tt(1,0)}},k:function(e,t,n,a,i){var r=Pt();try{return Ie(e)(t,n,a,i)}catch(e){if(At(r),e!==e+0)throw e;Tt(1,0)}},H:function(e,t,n,a,i,r){var o=Pt();try{return Ie(e)(t,n,a,i,r)}catch(e){if(At(o),e!==e+0)throw e;Tt(1,0)}},v:function(e,t,n,a,i,r,o){var s=Pt();try{return Ie(e)(t,n,a,i,r,o)}catch(e){if(At(s),e!==e+0)throw e;Tt(1,0)}},G:function(e,t,n,a,i,r,o,s){var l=Pt();try{return Ie(e)(t,n,a,i,r,o,s)}catch(e){if(At(l),e!==e+0)throw e;Tt(1,0)}},z:function(e,t,n,a,i,r,o,s,l,u,c,d){var h=Pt();try{return Ie(e)(t,n,a,i,r,o,s,l,u,c,d)}catch(e){if(At(h),e!==e+0)throw e;Tt(1,0)}},P:function(e,t,n,a,i){var r=Pt();try{return It(e,t,n,a,i)}catch(e){if(At(r),e!==e+0)throw e;Tt(1,0)}},l:function(e){var t=Pt();try{Ie(e)()}catch(e){if(At(t),e!==e+0)throw e;Tt(1,0)}},j:function(e,t){var n=Pt();try{Ie(e)(t)}catch(e){if(At(n),e!==e+0)throw e;Tt(1,0)}},c:function(e,t,n){var a=Pt();try{Ie(e)(t,n)}catch(e){if(At(a),e!==e+0)throw e;Tt(1,0)}},p:function(e,t,n,a){var i=Pt();try{Ie(e)(t,n,a)}catch(e){if(At(i),e!==e+0)throw e;Tt(1,0)}},I:function(e,t,n,a,i){var r=Pt();try{Ie(e)(t,n,a,i)}catch(e){if(At(r),e!==e+0)throw e;Tt(1,0)}},r:function(e,t,n,a,i,r,o,s){var l=Pt();try{Ie(e)(t,n,a,i,r,o,s)}catch(e){if(At(l),e!==e+0)throw e;Tt(1,0)}},i:function(e,t,n,a,i,r,o,s,l,u,c){var d=Pt();try{Ie(e)(t,n,a,i,r,o,s,l,u,c)}catch(e){if(At(d),e!==e+0)throw e;Tt(1,0)}},y:function(e,t,n,a,i,r,o,s,l,u,c,d,h,p,f,m){var g=Pt();try{Ie(e)(t,n,a,i,r,o,s,l,u,c,d,h,p,f,m)}catch(e){if(At(g),e!==e+0)throw e;Tt(1,0)}},ga:e=>e,S:(e,t,n,a,i)=>yt(e,t,n,a)},kt=function(){var e={a:wt};function t(e,t){return kt=e.exports,h=kt.ia,k(),Me=kt.ma,function(e){S.unshift(e)}(kt.ja),function(){var e;if(T--,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,T),0==T&&E){var t=E;E=null,t()}}(),kt}if(function(){var e;T++,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,T)}(),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){d(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return function(e,t,n,a){return e||"function"!=typeof WebAssembly.instantiateStreaming||M(t)||"function"!=typeof fetch?R(t,n,a):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,n).then(a,(function(e){return d(`wasm streaming compile failed: ${e}`),d("falling back to ArrayBuffer instantiation"),R(t,n,a)}))))}(c,A,e,(function(e){t(e.instance)})).catch(n),{}}(),xt=a._free=e=>(xt=a._free=kt.ka)(e),St=a._malloc=e=>(St=a._malloc=kt.la)(e),Ct=e=>(Ct=kt.na)(e),Tt=(e,t)=>(Tt=kt.oa)(e,t),Et=e=>(Et=kt.pa)(e),Pt=()=>(Pt=kt.qa)(),At=e=>(At=kt.ra)(e),Lt=e=>(Lt=kt.sa)(e),Mt=e=>(Mt=kt.ta)(e),zt=(e,t,n)=>(zt=kt.ua)(e,t,n),Rt=e=>(Rt=kt.va)(e);a.dynCall_viijii=(e,t,n,i,r,o,s)=>(a.dynCall_viijii=kt.wa)(e,t,n,i,r,o,s);var Nt,It=a.dynCall_jiiii=(e,t,n,i,r)=>(It=a.dynCall_jiiii=kt.xa)(e,t,n,i,r);function Ot(){function e(){Nt||(Nt=!0,a.calledRun=!0,!w&&(N(S),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)e=a.postRun.shift(),C.unshift(e);var e;N(C)}()))}T>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)e=a.preRun.shift(),x.unshift(e);var e;N(x)}(),T>0)||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),e()}),1)):e())}if(a.dynCall_iiiiij=(e,t,n,i,r,o,s)=>(a.dynCall_iiiiij=kt.ya)(e,t,n,i,r,o,s),a.dynCall_iiiiijj=(e,t,n,i,r,o,s,l,u)=>(a.dynCall_iiiiijj=kt.za)(e,t,n,i,r,o,s,l,u),a.dynCall_iiiiiijj=(e,t,n,i,r,o,s,l,u,c)=>(a.dynCall_iiiiiijj=kt.Aa)(e,t,n,i,r,o,s,l,u,c),E=function e(){Nt||Ot(),Nt||(E=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Ot(),e.ready});async function D(e,t){return async function(e,t,n=A){const a={...A,...n},i=await N(e),{size:r}=t,o=new Uint8Array(await t.arrayBuffer()),s=i._malloc(r);i.HEAPU8.set(o,s);const l=i.readBarcodesFromImage(s,r,L(i,a));i._free(s);const u=[];for(let e=0;e{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,O,void 0);try{const a=null==(t=null==e?void 0:e.formats)?void 0:t.filter((e=>"unknown"!==e));if(0===(null==a?void 0:a.length))throw new TypeError("Hint option provided, but is empty.");null==a||a.forEach((e=>{if(!o.has(e))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`)})),((e,t,a)=>{n(e,t,"write to private field"),t.set(e,a)})(this,O,null!=a?a:[]),function(e){return N(q,e)}().then((e=>{this.dispatchEvent(new CustomEvent("load",{detail:e}))})).catch((e=>{this.dispatchEvent(new CustomEvent("error",{detail:e}))}))}catch(e){throw v(e,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return r.filter((e=>"unknown"!==e))}async detect(e){try{const t=await _(e);if(null===t)return[];let n;try{n=m(t)?await D(t,{tryHarder:!0,formats:a(this,O).map((e=>o.get(e)))}):await j(t,{tryHarder:!0,formats:a(this,O).map((e=>o.get(e)))})}catch(e){throw console.error(e),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return n.map((e=>{const{topLeft:{x:t,y:n},topRight:{x:a,y:i},bottomLeft:{x:r,y:o},bottomRight:{x:l,y:u}}=e.position,c=Math.min(t,a,r,l),d=Math.min(n,i,o,u),h=Math.max(t,a,r,l),p=Math.max(n,i,o,u);return{boundingBox:new DOMRectReadOnly(c,d,h-c,p-d),rawValue:e.text,format:s(e.format),cornerPoints:[{x:t,y:n},{x:a,y:i},{x:l,y:u},{x:r,y:o}]}}))}catch(e){throw v(e,"Failed to execute 'detect' on 'BarcodeDetector'")}}}O=new WeakMap;const $=(e,t,n="error")=>{let a,i;const r=new Promise(((r,o)=>{a=r,i=o,e.addEventListener(t,a),e.addEventListener(n,i)}));return r.finally((()=>{e.removeEventListener(t,a),e.removeEventListener(n,i)})),r},F=e=>new Promise((t=>setTimeout(t,e)));class V extends Error{constructor(){super("can't process cross-origin image"),this.name="DropImageFetchError"}}class U extends Error{constructor(){super("this browser has no Stream API support"),this.name="StreamApiNotSupportedError"}}class H extends Error{constructor(){super("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."),this.name="InsecureContextError"}}class W extends Error{constructor(){super("Loading camera stream timed out after 6 seconds. If you are on iOS in PWA mode, this is a known issue (see https://github.com/gruhn/vue-qrcode-reader/issues/298)"),this.name="StreamLoadTimeoutError"}}let G;async function Y(e){G=await async function(e){if(void 0===window.BarcodeDetector)return console.debug("[vue-qrcode-reader] Native BarcodeDetector not supported. Will use polyfill."),new B({formats:e});const t=await window.BarcodeDetector.getSupportedFormats(),n=e.filter((e=>!t.includes(e)));return n.length>0?(console.debug(`[vue-qrcode-reader] Native BarcodeDetector does not support formats ${JSON.stringify(n)}. Will use polyfill.`),new B({formats:e})):(console.debug("[vue-qrcode-reader] Will use native BarcodeDetector."),new window.BarcodeDetector({formats:e}))}(e)}const K=async(e,t=["qr_code"])=>await new B({formats:t}).detect(e),Q=async(e,t=["qr_code"])=>{const n=new B({formats:t}),a=await(async e=>{if(e.startsWith("http")&&!1===e.includes(location.host))throw new V;const t=document.createElement("img");return t.src=e,await $(t,"load"),t})(e);return await n.detect(a)};var Z={},J={};Object.defineProperty(J,"__esModule",{value:!0}),J.compactObject=function e(t){return ie(t)?Object.keys(t).reduce((function(n,a){var i=ie(t[a]),r=i?e(t[a]):t[a],o=i&&!Object.keys(r).length;return void 0===r||o?n:Object.assign(n,function(e,t,n){return t=function(e){var t=function(e,t){if("object"!==ee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ee(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ee(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a,r))}),{}):t},J.deprecated=function(e,t){ne&&console.warn(e+" is deprecated, please use "+t+" instead.")};var X=J.detectBrowser=function(e){var t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=ae(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=ae(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=ae(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t};function ee(e){return(ee="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})(e)}J.disableLog=function(e){return"boolean"!=typeof e?new Error("Argument type: "+ee(e)+". Please use a boolean."):(te=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},J.disableWarnings=function(e){return"boolean"!=typeof e?new Error("Argument type: "+ee(e)+". Please use a boolean."):(ne=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},J.extractVersion=ae,J.filterStats=function(e,t,n){var a=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;var r=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&r.push(e)})),r.forEach((function(t){e.forEach((function(n){n.type===a&&n.trackId===t.id&&re(e,n,i)}))})),i},J.log=function(){if("object"===(typeof window>"u"?"undefined":ee(window))){if(te)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}},J.walkStats=re,J.wrapPeerConnectionEvent=function(e,t,n){if(e.RTCPeerConnection){var a=e.RTCPeerConnection.prototype,i=a.addEventListener;a.addEventListener=function(e,a){if(e!==t)return i.apply(this,arguments);var r=function(e){var t=n(e);t&&(a.handleEvent?a.handleEvent(t):a(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(a,r),i.apply(this,[e,r])};var r=a.removeEventListener;a.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return r.apply(this,arguments);if(!this._eventMap[t].has(n))return r.apply(this,arguments);var a=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,r.apply(this,[e,a])},Object.defineProperty(a,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}};var te=!0,ne=!0;function ae(e,t,n){var a=e.match(t);return a&&a.length>=n&&parseInt(a[n],10)}function ie(e){return"[object Object]"===Object.prototype.toString.call(e)}function re(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach((function(a){a.endsWith("Id")?re(e,e.get(t[a]),n):a.endsWith("Ids")&&t[a].forEach((function(t){re(e,e.get(t),n)}))})))}Object.defineProperty(Z,"__esModule",{value:!0});var oe=Z.shimGetUserMedia=function(e,t){var n=e&&e.navigator;if(n.mediaDevices){var a=function(e){if("object"!==ue(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var a="object"===ue(e[n])?e[n]:{ideal:e[n]};void 0!==a.exact&&"number"==typeof a.exact&&(a.min=a.max=a.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==a.ideal){t.optional=t.optional||[];var r={};"number"==typeof a.ideal?(r[i("min",n)]=a.ideal,t.optional.push(r),(r={})[i("max",n)]=a.ideal,t.optional.push(r)):(r[i("",n)]=a.ideal,t.optional.push(r))}void 0!==a.exact&&"number"!=typeof a.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=a.exact):["min","max"].forEach((function(e){void 0!==a[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=a[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===ue(e.audio)){var r=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};r((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),r(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=a(e.audio)}if(e&&"object"===ue(e.video)){var o=e.video.facingMode;o=o&&("object"===ue(o)?o:{ideal:o});var s,l=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||l))if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?s=["back","rear"]:("user"===o.exact||"user"===o.ideal)&&(s=["front"]),s)return n.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return s.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!n&&t.length&&s.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=o.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=a(e.video),ce("chrome: "+JSON.stringify(e)),i(e)}));e.video=a(e.video)}return ce("chrome: "+JSON.stringify(e)),i(e)},r=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,a){i(e,(function(e){n.webkitGetUserMedia(e,t,(function(e){a&&a(r(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){var o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return i(e,(function(e){return o(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(r(e))}))}))}}}},se=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==ue(e)&&"function"!=typeof e)return{default:e};var n=le(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}return a.default=e,n&&n.set(e,a),a}(J);function le(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(le=function(e){return e?n:t})(e)}function ue(e){return(ue="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})(e)}var ce=se.log;var de={};Object.defineProperty(de,"__esModule",{value:!0});var he=de.shimGetUserMedia=function(e,t){var n=e&&e.navigator,a=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,a){pe.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var i=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},r=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"===me(e)&&"object"===me(e.audio)&&(e=JSON.parse(JSON.stringify(e)),i(e.audio,"autoGainControl","mozAutoGainControl"),i(e.audio,"noiseSuppression","mozNoiseSuppression")),r(e)},a&&a.prototype.getSettings){var o=a.prototype.getSettings;a.prototype.getSettings=function(){var e=o.apply(this,arguments);return i(e,"mozAutoGainControl","autoGainControl"),i(e,"mozNoiseSuppression","noiseSuppression"),e}}if(a&&a.prototype.applyConstraints){var s=a.prototype.applyConstraints;a.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===me(e)&&(e=JSON.parse(JSON.stringify(e)),i(e,"autoGainControl","mozAutoGainControl"),i(e,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[e])}}}},pe=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==me(e)&&"function"!=typeof e)return{default:e};var n=fe(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}return a.default=e,n&&n.set(e,a),a}(J);function fe(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(fe=function(e){return e?n:t})(e)}function me(e){return(me="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})(e)}var ge={};Object.defineProperty(ge,"__esModule",{value:!0}),ge.shimAudioContext=function(e){"object"!==ye(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)},ge.shimCallbacksAPI=function(e){if("object"===ye(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,a=t.createAnswer,i=t.setLocalDescription,r=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){var a=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[a]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=a.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};var s=function(e,t,n){var a=i.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a};t.setLocalDescription=s,s=function(e,t,n){var a=r.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a},t.setRemoteDescription=s,s=function(e,t,n){var a=o.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a},t.addIceCandidate=s}},ge.shimConstraints=we,ge.shimCreateOfferLegacy=function(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){typeof e.offerToReceiveAudio<"u"&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0===e.offerToReceiveAudio&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof e.offerToReceiveVideo<"u"&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var a=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&a?"sendrecv"===a.direction?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":"recvonly"===a.direction&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):!0===e.offerToReceiveVideo&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}};var _e=ge.shimGetUserMedia=function(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,a=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return a(we(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,a){t.mediaDevices.getUserMedia(e).then(n,a)}.bind(t))};ge.shimLocalStreamsAPI=function(e){if("object"===ye(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(a){return t.call(n,a,e)})),e.getVideoTracks().forEach((function(a){return t.call(n,a,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=this,a=arguments.length,i=new Array(a>1?a-1:0),r=1;r=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}}))}),t.apply(e,arguments)}}},ge.shimTrackEventTransceiver=function(e){"object"===ye(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};var ve=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==ye(e)&&"function"!=typeof e)return{default:e};var n=be(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}return a.default=e,n&&n.set(e,a),a}(J);function be(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(be=function(e){return e?n:t})(e)}function ye(e){return(ye="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})(e)}function we(e){return e&&void 0!==e.video?Object.assign({},e,{video:ve.compactObject(e.video)}):e}function ke(e,t){if(!1===e)throw new Error(null!=t?t:"assertion failure")}function xe(e){throw new Error("this code should be unreachable")}const Se=(e=>{let t,n=!1;return(...a)=>(n||(t=e(a),n=!0),t)})((()=>{const e=X(window);switch(e.browser){case"chrome":oe(window,e);break;case"firefox":he(window,e);break;case"safari":_e(window,e);break;default:throw new U}}));let Ce=Promise.resolve({type:"stop",data:{}});async function Te(e,t,n){var a,i,r;if(console.debug("[vue-qrcode-reader] starting camera with constraints: ",JSON.stringify(t)),!0!==window.isSecureContext)throw new H;if(void 0===(null==(a=null==navigator?void 0:navigator.mediaDevices)?void 0:a.getUserMedia))throw new U;Se(),console.debug("[vue-qrcode-reader] calling getUserMedia");const o=await navigator.mediaDevices.getUserMedia({audio:!1,video:t});void 0!==e.srcObject?e.srcObject=o:void 0!==e.mozSrcObject?e.mozSrcObject=o:window.URL.createObjectURL?e.src=window.URL.createObjectURL(o):window.webkitURL?e.src=window.webkitURL.createObjectURL(o):e.src=o.id,e.play(),console.debug("[vue-qrcode-reader] waiting for video element to load"),await Promise.race([$(e,"loadeddata"),F(6e3).then((()=>{throw new W}))]),console.debug("[vue-qrcode-reader] video element loaded"),await F(500);const[s]=o.getVideoTracks(),l=null!=(r=null==(i=null==s?void 0:s.getCapabilities)?void 0:i.call(s))?r:{};let u=!1;return n&&l.torch&&(await s.applyConstraints({advanced:[{torch:!0}]}),u=!0),console.debug("[vue-qrcode-reader] camera ready"),{type:"start",data:{videoEl:e,stream:o,capabilities:l,constraints:t,isTorchOn:u}}}async function Ee(e,t,n){console.debug("[vue-qrcode-reader] stopping camera"),e.src="",e.srcObject=null,e.load(),await $(e,"error");for(const e of t.getTracks())null!=n||await e.applyConstraints({advanced:[{torch:!1}]}),t.removeTrack(e),e.stop();return{type:"stop",data:{}}}async function Pe(){if(Ce=Ce.then((e=>{if("stop"===e.type||"failed"===e.type)return e;const{data:{videoEl:t,stream:n,isTorchOn:a}}=e;return Ee(t,n,a)})),"start"===(await Ce).type)throw new Error("Something went wrong with the camera task queue (stop task).")}const Ae=t.defineComponent({__name:"QrcodeStream",props:{constraints:{type:Object,default:()=>({facingMode:"environment"})},formats:{type:Array,default:()=>["qr_code"]},paused:{type:Boolean,default:!1},torch:{type:Boolean,default:!1},track:{type:Function}},emits:["detect","camera-on","camera-off","error"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(a.constraints),o=t.ref(a.formats);t.watch((()=>a.constraints),((e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(r.value=e)}),{deep:!0}),t.watch((()=>a.formats),((e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(o.value=e)}),{deep:!0});const s=t.ref(),l=t.ref(),u=t.ref(),c=t.ref(!1),d=t.ref(!1);t.onMounted((()=>{d.value=!0})),t.onUnmounted((()=>{Pe()}));const h=t.computed((()=>({torch:a.torch,constraints:r.value,shouldStream:d.value&&!a.paused})));t.watch(h,(async e=>{const t=u.value;ke(void 0!==t,"cameraSettings watcher should never be triggered when component is not mounted. Thus video element should always be defined.");const n=s.value;ke(void 0!==n,"cameraSettings watcher should never be triggered when component is not mounted. Thus canvas should always be defined.");const a=n.getContext("2d");if(ke(null!==a,"if cavnas is defined, canvas 2d context should also be non-null"),e.shouldStream){Pe(),c.value=!1;try{const n=await async function(e,{constraints:t,torch:n,restart:a=!1}){Ce=Ce.then((i=>{if("start"===i.type){const{data:{videoEl:r,stream:o,constraints:s,isTorchOn:l}}=i;return a||e!==r||t!==s||n!==l?Ee(r,o,l).then((()=>Te(e,t,n))):i}if("stop"===i.type||"failed"===i.type)return Te(e,t,n);xe()})).catch((e=>(console.debug(`[vue-qrcode-reader] starting camera failed with "${e}"`),{type:"failed",error:e})));const i=await Ce;if("stop"===i.type)throw new Error("Something went wrong with the camera task queue (start task).");if("failed"===i.type)throw i.error;if("start"===i.type)return i.data.capabilities;xe()}(t,e);d.value?(c.value=!0,i("camera-on",n)):await Pe()}catch(e){i("error",e)}}else n.width=t.videoWidth,n.height=t.videoHeight,a.drawImage(t,0,0,t.videoWidth,t.videoHeight),Pe(),c.value=!1,i("camera-off")}),{deep:!0}),t.watch(o,(async e=>{d.value&&await Y(e)}));const p=t.computed((()=>h.value.shouldStream&&c.value));t.watch(p,(e=>{if(e){ke(void 0!==s.value,"shouldScan watcher should only be triggered when component is mounted. Thus pause frame canvas is defined"),f(s.value),ke(void 0!==l.value,"shouldScan watcher should only be triggered when component is mounted. Thus tracking canvas is defined"),f(l.value);const e=()=>void 0===a.track?500:40;ke(void 0!==u.value,"shouldScan watcher should only be triggered when component is mounted. Thus video element is defined"),(async(e,{detectHandler:t,locateHandler:n,minDelay:a,formats:i})=>{console.debug("[vue-qrcode-reader] start scanning"),await Y(i);const r=i=>async o=>{if(0===e.readyState)console.debug("[vue-qrcode-reader] stop scanning: video element readyState is 0");else{const{lastScanned:s,contentBefore:l,lastScanHadContent:u}=i;if(o-s!l.includes(e.rawValue)));i&&t(a);const s=a.length>0;s&&n(a),!s&&u&&n(a);const c={lastScanned:o,lastScanHadContent:s,contentBefore:i?a.map((e=>e.rawValue)):l};window.requestAnimationFrame(r(c))}}};r({lastScanned:performance.now(),contentBefore:[],lastScanHadContent:!1})(performance.now())})(u.value,{detectHandler:e=>i("detect",e),formats:o.value,locateHandler:m,minDelay:e()})}}));const f=e=>{const t=e.getContext("2d");ke(null!==t,"canvas 2d context should always be non-null"),t.clearRect(0,0,e.width,e.height)},m=e=>{const t=l.value;ke(void 0!==t,"onLocate handler should only be called when component is mounted. Thus tracking canvas is always defined.");const n=u.value;if(ke(void 0!==n,"onLocate handler should only be called when component is mounted. Thus video element is always defined."),0===e.length||void 0===a.track)f(t);else{const i=n.offsetWidth,r=n.offsetHeight,o=n.videoWidth,s=n.videoHeight,l=Math.max(i/o,r/s),u=o*l,c=s*l,d=u/o,h=c/s,p=(i-u)/2,f=(r-c)/2,m=({x:e,y:t})=>({x:Math.floor(e*d),y:Math.floor(t*h)}),g=({x:e,y:t})=>({x:Math.floor(e+p),y:Math.floor(t+f)}),_=e.map((e=>{const{boundingBox:t,cornerPoints:n}=e,{x:a,y:i}=g(m({x:t.x,y:t.y})),{x:r,y:o}=m({x:t.width,y:t.height});return{...e,cornerPoints:n.map((e=>g(m(e)))),boundingBox:DOMRectReadOnly.fromRect({x:a,y:i,width:r,height:o})}}));t.width=n.offsetWidth,t.height=n.offsetHeight;const v=t.getContext("2d");a.track(_,v)}},g={width:"100%",height:"100%",position:"relative","z-index":"0"},_={width:"100%",height:"100%",position:"absolute",top:"0",left:"0"},v={width:"100%",height:"100%","object-fit":"cover"},b=t.computed((()=>p.value?v:{...v,visibility:"hidden",position:"absolute"}));return(e,n)=>(t.openBlock(),t.createElementBlock("div",{style:g},[t.createElementVNode("video",{ref_key:"videoRef",ref:u,style:t.normalizeStyle(b.value),autoplay:"",muted:"",playsinline:""},null,4),t.withDirectives(t.createElementVNode("canvas",{id:"qrcode-stream-pause-frame",ref_key:"pauseFrameRef",ref:s,style:v},null,512),[[t.vShow,!p.value]]),t.createElementVNode("canvas",{id:"qrcode-stream-tracking-layer",ref_key:"trackingLayerRef",ref:l,style:_},null,512),t.createElementVNode("div",{style:_},[t.renderSlot(e.$slots,"default")])]))}}),Le=t.defineComponent({__name:"QrcodeCapture",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect"],setup(e,{emit:n}){const a=e,i=n,r=e=>{if(e.target instanceof HTMLInputElement&&e.target.files)for(const t of Array.from(e.target.files))K(t,a.formats).then((e=>{i("detect",e)}))};return(e,n)=>(t.openBlock(),t.createElementBlock("input",{onChange:r,type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},null,32))}}),Me=t.defineComponent({__name:"QrcodeDropZone",props:{formats:{type:Array,default:()=>["qr_code"]}},emits:["detect","dragover","error"],setup(e,{emit:n}){const a=e,i=n,r=async e=>{try{const t=await e;i("detect",t)}catch(e){i("error",e)}},o=e=>{i("dragover",e)},s=({dataTransfer:e})=>{if(!e)return;o(!1);const t=[...Array.from(e.files)],n=e.getData("text/uri-list");t.forEach((e=>{r(K(e,a.formats))})),""!==n&&r(Q(n,a.formats))};return(e,n)=>(t.openBlock(),t.createElementBlock("div",{onDrop:t.withModifiers(s,["prevent","stop"]),onDragenter:n[0]||(n[0]=t.withModifiers((e=>o(!0)),["prevent","stop"])),onDragleave:n[1]||(n[1]=t.withModifiers((e=>o(!1)),["prevent","stop"])),onDragover:n[2]||(n[2]=t.withModifiers((()=>{}),["prevent","stop"]))},[t.renderSlot(e.$slots,"default")],32))}});function ze(e){e.component("qrcode-stream",Ae),e.component("qrcode-capture",Le),e.component("qrcode-drop-zone",Me)}const Re={install:ze};e.QrcodeCapture=Le,e.QrcodeDropZone=Me,e.QrcodeStream=Ae,e.VueQrcodeReader=Re,e.install=ze,e.setZXingModuleOverrides=function(e){return function(e,t){R.set(e,{moduleOverrides:t})}(q,e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})})), /*! diff --git a/lnbits/static/vendor/vue-i18n.global.prod.js b/lnbits/static/vendor/vue-i18n.global.prod.js index ff260bfcf..89830b1c6 100644 --- a/lnbits/static/vendor/vue-i18n.global.prod.js +++ b/lnbits/static/vendor/vue-i18n.global.prod.js @@ -1,6 +1,6 @@ /*! - * vue-i18n v10.0.5 - * (c) 2024 kazuya kawaguchi + * vue-i18n v10.0.6 + * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ -var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"==typeof e&&isFinite(e),l=e=>"[object Date]"===y(e),c=e=>"[object RegExp]"===y(e),i=e=>T(e)&&0===Object.keys(e).length,u=Object.assign,f=Object.create,m=(e=null)=>f(e);function _(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const p=Object.prototype.hasOwnProperty;function d(e,t){return p.call(e,t)}const g=Array.isArray,E=e=>"function"==typeof e,b=e=>"string"==typeof e,h=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,L=e=>k(e)&&E(e.then)&&E(e.catch),N=Object.prototype.toString,y=e=>N.call(e),T=e=>"[object Object]"===y(e);function v(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function I(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const C=e=>!k(e)||g(e);function O(e,t){if(C(e)||C(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&&(k(e[r])&&!k(t[r])&&(t[r]=Array.isArray(e[r])?[]:m()),C(t[r])||C(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function A(e,t,n){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function R(e){throw e}const S=" ",F="\r",D="\n",w=String.fromCharCode(8232),x=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===F&&t[e+1]===D,l=e=>t[e]===x,c=e=>t[e]===w,i=e=>s(e)||(e=>t[e]===D)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?D:t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const U=void 0,W="'";function $(e,t={}){const n=!1!==t.location,r=M(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=A(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(P.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===S||e.currentPeek()===D;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===U)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===U)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){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===S||r===D):a===S?(e.peek(),n(!0,S)):a!==D||(e.peek(),n(!0,D)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===U?U:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function N(e){return k(e,L)}function y(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 T(e){return k(e,y)}function v(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,v)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return k(e,C)}function R(e){let t="",n="";for(;t=I(e);)n+=t;return n}function F(e){return e!==W&&e!==D}function w(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return x(e,t,4);case"U":return x(e,t,6);default:return P.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function x(e,t,n){_(e,t);let r="";for(let a=0;a=1&&(P.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(P.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=V(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return P.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,X(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){d(e);let t="",n="";for(;t=T(e);)n+=t;return e.currentChar()===U&&(P.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,5,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${R(e)}`):t+=R(e),e.currentChar()===U&&(P.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===W;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){d(e),_(e,"'");let t="",n="";for(;t=k(e,F);)n+="\\"===t?w(e):t;const r=e.currentChar();return r===D||r===U?(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===D&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,12,function(e){d(e);let t="",n="";for(;t=k(e,$);)n+=t;return n}(e)),P.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function V(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==D&&a!==S||(P.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,8,".");case":":return d(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),V(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,11,function(e){let t="",n="";for(;t=N(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===S||!t)&&(t===D?(e.peek(),r()):h(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===S?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(P.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,X(e,t))}}function X(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return V(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return P.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return V(e,t)||m(t);default:if(b(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===S||n===D)if(h(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}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===U?f(c,13):X(r,c)},currentOffset:a,currentPosition:o,context:i}}const H=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function j(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 V(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(e,n,r,a){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(H,j),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(8===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 11!==t.type?(P.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,X(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 4:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=c(e,o.value||"");break;default:{P.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),l=r(7,s.offset,s.startLoc);return l.value="",a(l,s.offset,s.startLoc),n.key=l,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(c(e,r.value||""));break;case 7:{const t=i(e);n.items.push(t.node),u=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 m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(e);return 13===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=$(n,u({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(P.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function X(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 G(e,t){for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Y(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function B(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;n1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n{const n=b(t.mode)?t.mode:"normal",r=b(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){l.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return s&&e.loc&&(l.source=e.loc.source),{context:()=>l,push:c,indent:function(e=!0){const t=++l.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&i(t)},newline:function(){i(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${v(l.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),J(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function q(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=V(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?B(t):t.cases.forEach((e=>B(e)))}(s),a&&z(s),{ast:s,code:""}):(K(s,n),Q(s,n))}function Z(e){return t=>function(e,t){const n=(r=t,me(r,ee));var r;if(null==n)throw _e(0);if(1===le(n)){const t=function(e){return me(e,te,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ne(e,n)]),[]))}return ne(e,n)}(t,e)}const ee=["b","body"];const te=["c","cases"];function ne(e,t){const n=function(e){return me(e,re)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return me(e,ae,[])}(t).reduce(((t,n)=>[...t,oe(e,n)]),[]);return e.normalize(n)}}const re=["s","static"];const ae=["i","items"];function oe(e,t){const n=le(t);switch(n){case 3:case 9:case 7:case 8:return ie(t,n);case 4:{const r=t;if(d(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(d(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw _e(n)}case 5:{const r=t;if(d(r,"i")&&s(r.i))return e.interpolate(e.list(r.i));if(d(r,"index")&&s(r.index))return e.interpolate(e.list(r.index));throw _e(n)}case 6:{const n=t,r=function(e){return me(e,ue)}(n),a=function(e){const t=me(e,fe);if(t)return t;throw _e(6)}(n);return e.linked(oe(e,a),r?oe(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const se=["t","type"];function le(e){return me(e,se)}const ce=["v","value"];function ie(e,t){const n=me(e,ce);if(n)return n;throw _e(t)}const ue=["m","modifier"];const fe=["k","key"];function me(e,t,n){for(let r=0;re;let de=m();function ge(e){return k(e)&&0===le(e)&&(d(e,"b")||d(e,"body"))}const Ee={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function be(e,t){return null!=t.locale?ke(t.locale):ke(e.locale)}let he;function ke(e){if(b(e))return e;if(E(e)){if(e.resolvedOnce&&null!=he)return he;if("Function"===e.constructor.name){const t=e();if(L(t))throw Error(Ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return he=t}throw Error(Ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(Ee.NOT_SUPPORT_LOCALE_TYPE)}function Le(e,t,n){return[...new Set([n,...g(t)?t:k(t)?Object.keys(t):b(t)?[t]:[n]])]}function Ne(e,t,n){const r=b(n)?n:De,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;g(e);)e=ye(o,e,t);const s=g(t)||!T(t)?t:t.default?t.default:null;e=b(s)?[s]:s,g(e)&&ye(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ye(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Me,Ue,We;let $e=null;const He=e=>{$e=e},je=()=>$e;let Ve=0;function Xe(e={}){const t=E(e.onWarn)?e.onWarn:I,n=b(e.version)?e.version:Se,r=b(e.locale)||E(e.locale)?e.locale:De,a=E(r)?De:r,o=g(e.fallbackLocale)||T(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=T(e.messages)?e.messages:Ge(a),l=T(e.datetimeFormats)?e.datetimeFormats:Ge(a),i=T(e.numberFormats)?e.numberFormats:Ge(a),f=u(m(),e.modifiers,{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?xe(e):"vnode"===t&&k(e)&&"__v_isVNode"in e?xe(e.children):e}),_=e.pluralRules||m(),p=E(e.missing)?e.missing:null,d=!h(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,L=!h(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,N=!!e.fallbackFormat,y=!!e.unresolving,v=E(e.postTranslation)?e.postTranslation:null,C=T(e.processor)?e.processor:null,O=!h(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,P=E(e.messageCompiler)?e.messageCompiler:Me,R=E(e.messageResolver)?e.messageResolver:Ue||Re,S=E(e.localeFallbacker)?e.localeFallbacker:We||Le,F=k(e.fallbackContext)?e.fallbackContext:void 0,D=e,w=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,x=k(D.__numberFormatters)?D.__numberFormatters:new Map,M=k(D.__meta)?D.__meta:{};Ve++;const U={version:n,cid:Ve,locale:r,fallbackLocale:o,messages:s,modifiers:f,pluralRules:_,missing:p,missingWarn:d,fallbackWarn:L,fallbackFormat:N,unresolving:y,postTranslation:v,processor:C,warnHtmlMessage:O,escapeParameter:A,messageCompiler:P,messageResolver:R,localeFallbacker:S,fallbackContext:F,onWarn:t,__meta:M};return U.datetimeFormats=l,U.numberFormats=i,U.__datetimeFormatters=w,U.__numberFormatters=x,U}const Ge=e=>({[e]:m()});function Ye(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return b(r)?r:t}return t}function Ke(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Be(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let o=n+1;o{Je.includes(e)?i[e]=n[e]:o[e]=n[e]})),b(r)?o.locale=r:T(r)&&(i=r),T(a)&&(i=a),[o.key||"",c,o,i]}function qe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ze(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,f,m,_]=tt(...t);h(m.missingWarn)?m.missingWarn:e.missingWarn;h(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=be(e,m),g=s(e,a,d);if(!b(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let E,k={},L=null;for(let i=0;i{et.includes(e)?l[e]=n[e]:o[e]=n[e]})),b(r)?o.locale=r:T(r)&&(l=r),T(a)&&(l=a),[o.key||"",c,o,l]}function nt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const rt=e=>e,at=e=>"",ot="text",st=e=>0===e.length?"":v(e),lt=e=>null==e?"":g(e)||T(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function ct(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function it(e={}){const t=e.locale,n=function(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}(e),r=k(e.pluralRules)&&b(t)&&E(e.pluralRules[t])?e.pluralRules[t]:ct,a=k(e.pluralRules)&&b(t)&&E(e.pluralRules[t])?ct:void 0,o=e.list||[],l=e.named||m();s(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t,n){const r=E(e.messages)?e.messages(t,!!n):!!k(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):at)}const i=T(e.processor)&&E(e.processor.normalize)?e.processor.normalize:st,f=T(e.processor)&&E(e.processor.interpolate)?e.processor.interpolate:lt,_={list:e=>o[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?k(r)?(s=r.modifier||s,o=r.type||o):b(r)&&(s=r||s):2===n.length&&(b(r)&&(s=r||s),b(a)&&(o=a||o));const l=c(t,!0)(_),i="vnode"===o&&g(l)&&s?l[0]:l;return s?(u=s,e.modifiers?e.modifiers[u]:rt)(i,o):i;var u},message:c,type:T(e.processor)&&b(e.processor.type)?e.processor.type:ot,interpolate:f,normalize:i,values:u(m(),o,l)};return _}const ut=()=>"",ft=e=>E(e);function mt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:c}=e,[i,u]=dt(...t),f=h(u.missingWarn)?u.missingWarn:e.missingWarn,p=h(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=h(u.escapeParameter)?u.escapeParameter:e.escapeParameter,L=!!u.resolvedMessage,N=b(u.default)||h(u.default)?h(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,y=n||null!=N&&(b(N)||E(N)),T=be(e,u);d&&function(e){g(e.list)?e.list=e.list.map((e=>b(e)?_(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=_(e.named[t]))}))}(u);let[v,I,C]=L?[i,T,c[T]||m()]:_t(e,i,T,l,p,f),O=v,A=i;if(L||b(O)||ge(O)||ft(O)||y&&(O=N,A=O),!(L||(b(O)||ge(O)||ft(O))&&b(I)))return a?Fe:i;let P=!1;const R=ft(O)?O:pt(e,i,I,O,A,(()=>{P=!0}));if(P)return O;const S=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=l(n,r);if(null==o&&(f||a)){const[,,n]=_t(f||e,r,t,c,i,u);o=l(n,r)}if(b(o)||ge(o)){let n=!1;const a=pt(e,r,t,o,r,(()=>{n=!0}));return n?ut:a}return ft(o)?o:ut},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);s(r.plural)&&(_.pluralIndex=r.plural);return _}(e,I,C,u),F=function(e,t,n){const r=t(n);return r}(0,R,it(S));return r?r(F,i):F}function _t(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,_=m(),p=null;for(let d=0;dr;return e.locale=n,e.key=t,e}const i=l(r,function(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function dt(...e){const[t,n,r]=e,a=m();if(!(b(t)||s(t)||ft(t)||ge(t)))throw Error(Ee.INVALID_ARGUMENT);const o=s(t)?String(t):(ft(t),t);return s(n)?a.plural=n:b(n)?a.default=n:T(n)&&!i(n)?a.named=n:g(n)&&(a.list=n),s(r)?a.plural=r:b(r)?a.default=r:T(r)&&u(a,r),[o,a]}const gt="10.0.5",Et={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},bt=r("__translateVNode"),ht=r("__datetimeParts"),kt=r("__numberParts"),Lt=r("__setPluralRules"),Nt=r("__injectWithOption"),yt=r("__dispose");function Tt(e){if(!k(e))return e;for(const t in e)if(d(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||m(),O(n,s[t])):O(n,s)}else b(e)&&O(JSON.parse(e),s)})),null==a&&o)for(const l in s)d(s,l)&&Tt(s[l]);return s}function It(e){return e.type}function Ct(e,t,n){let r=k(t.messages)?t.messages:m();"__i18nGlobal"in n&&(r=vt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Ot(e){return t.createVNode(t.Text,null,e,0)}const At=()=>[],Pt=()=>!1;let Rt=0;function St(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Ft(e={}){const{__root:r,__injectWithOption:a}=e,o=void 0===r,l=e.flatJson,i=n?t.ref:t.shallowRef;let f=!h(e.inheritLocale)||e.inheritLocale;const m=i(r&&f?r.locale.value:b(e.locale)?e.locale:De),_=i(r&&f?r.fallbackLocale.value:b(e.fallbackLocale)||g(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),p=i(vt(m.value,e)),L=i(T(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),N=i(T(e.numberFormats)?e.numberFormats:{[m.value]:{}});let y=r?r.missingWarn:!h(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=r?r.fallbackWarn:!h(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,I=r?r.fallbackRoot:!h(e.fallbackRoot)||e.fallbackRoot,C=!!e.fallbackFormat,A=E(e.missing)?e.missing:null,P=E(e.missing)?St(e.missing):null,R=E(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:!h(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const D=r?r.modifiers:T(e.modifiers)?e.modifiers:{};let w,x=e.pluralRules||r&&r.pluralRules;w=(()=>{o&&He(null);const t={version:gt,locale:m.value,fallbackLocale:_.value,messages:p.value,modifiers:D,pluralRules:x,missing:null===P?void 0:P,missingWarn:y,fallbackWarn:v,fallbackFormat:C,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:S,escapeParameter:F,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=N.value,t.__datetimeFormatters=T(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=T(w)?w.__numberFormatters:void 0;const n=Xe(t);return o&&He(n),n})(),Ke(w,m.value,_.value);const M=t.computed({get:()=>m.value,set:e=>{m.value=e,w.locale=m.value}}),U=t.computed({get:()=>_.value,set:e=>{_.value=e,w.fallbackLocale=_.value,Ke(w,m.value,e)}}),W=t.computed((()=>p.value)),$=t.computed((()=>L.value)),H=t.computed((()=>N.value));const j=(e,t,n,a,l,c)=>{let i;m.value,_.value,p.value,L.value,N.value;try{0,o||(w.fallbackContext=r?je():void 0),i=e(w)}finally{o||(w.fallbackContext=void 0)}if("translate exists"!==n&&s(i)&&i===Fe||"translate exists"===n&&!i){const[e,n]=t();return r&&I?a(r):l(e)}if(c(i))return i;throw Error(Et.UNEXPECTED_RETURN_TYPE)};function V(...e){return j((t=>Reflect.apply(mt,null,[t,...e])),(()=>dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}const X={normalize:function(e){return e.map((e=>b(e)||s(e)||h(e)?Ot(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return p.value[e]||{}}Rt++,r&&n&&(t.watch(r.locale,(e=>{f&&(m.value=e,w.locale=e,Ke(w,m.value,_.value))})),t.watch(r.fallbackLocale,(e=>{f&&(_.value=e,w.fallbackLocale=e,Ke(w,m.value,_.value))})));const Y={id:Rt,locale:M,fallbackLocale:U,get inheritLocale(){return f},set inheritLocale(e){f=e,e&&r&&(m.value=r.locale.value,_.value=r.fallbackLocale.value,Ke(w,m.value,_.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:W,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return o},get missingWarn(){return y},set missingWarn(e){y=e,w.missingWarn=y},get fallbackWarn(){return v},set fallbackWarn(e){v=e,w.fallbackWarn=v},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return C},set fallbackFormat(e){C=e,w.fallbackFormat=C},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,w.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,w.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){if(l){const n={[e]:t};for(const e in n)d(n,e)&&Tt(n[e]);t=n[e]}p.value[e]=t,w.messages=p.value},mergeLocaleMessage:function(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(l)for(const r in n)d(n,r)&&Tt(n[r]);O(t=n[e],p.value[e]),w.messages=p.value},getPostTranslationHandler:function(){return E(R)?R:null},setPostTranslationHandler:function(e){R=e,w.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=St(e)),A=e,w.missing=P},[Lt]:function(e){x=e,w.pluralRules=x}};return Y.datetimeFormats=$,Y.numberFormats=H,Y.rt=function(...e){const[t,n,r]=e;if(r&&!k(r))throw Error(Et.INVALID_ARGUMENT);return V(t,n,u({resolvedMessage:!0},r||{}))},Y.te=function(e,t){return j((()=>{if(!e)return!1;const n=G(b(t)?t:m.value),r=w.messageResolver(n,e);return ge(r)||ft(r)||b(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Pt,(e=>h(e)))},Y.tm=function(e){const t=function(e){let t=null;const n=Ne(w,_.value,m.value);for(let r=0;rReflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>we),(e=>b(e)))},Y.n=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>we),(e=>b(e)))},Y.getDateTimeFormat=function(e){return L.value[e]||{}},Y.setDateTimeFormat=function(e,t){L.value[e]=t,w.datetimeFormats=L.value,qe(w,e,t)},Y.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),w.datetimeFormats=L.value,qe(w,e,t)},Y.getNumberFormat=function(e){return N.value[e]||{}},Y.setNumberFormat=function(e,t){N.value[e]=t,w.numberFormats=N.value,nt(w,e,t)},Y.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),w.numberFormats=N.value,nt(w,e,t)},Y[Nt]=a,Y[bt]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(mt,null,[r,...e])}finally{r.processor=null}return n}),(()=>dt(...e)),"translate",(t=>t[bt](...e)),(e=>[Ot(e)]),(e=>g(e)))},Y[ht]=function(...e){return j((t=>Reflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>t[ht](...e)),At,(e=>b(e)||g(e)))},Y[kt]=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>t[kt](...e)),At,(e=>b(e)||g(e)))},Y}function Dt(e={}){const t=Ft(function(e){const t=b(e.locale)?e.locale:De,n=b(e.fallbackLocale)||g(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=E(e.missing)?e.missing:void 0,a=!h(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!h(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!h(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=T(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=E(e.postTranslation)?e.postTranslation:void 0,_=!b(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,d=!h(e.sync)||e.sync;let k=e.messages;if(T(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return u(r,t[n]),e}),k||{})}const{__i18n:L,__root:N,__injectWithOption:y}=e,v=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:v,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:L,__root:N,__injectWithOption:y}}(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 h(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=h(e)?!e:e},get silentFallbackWarn(){return h(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=h(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]),tc(...e){const[n,r,a]=e,o={plural:1};let l=null,c=null;if(!b(n))throw Error(Et.INVALID_ARGUMENT);const i=n;return b(r)?o.locale=r:s(r)?o.plural=r:g(r)?l=r:T(r)&&(c=r),b(a)?o.locale=a:g(a)?l=a:T(a)&&(c=a),Reflect.apply(t.t,t,[i,l||c||{},o])},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,r}function wt(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[Lt](t.pluralizationRules||e.pluralizationRules);const n=vt(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 xt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Mt(){return t.Fragment}const Ut=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},xt),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||zt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter((e=>"_"!==e)),l=m();e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=b(e.plural)?+e.plural:e.plural);const c=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),m())}(n,s),i=o[bt](e.keypath,c,l),f=u(m(),a),_=b(e.tag)||k(e.tag)?e.tag:Mt();return t.h(_,f,i)}}}),Wt=Ut;function $t(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l=m();e.locale&&(n.locale=e.locale),b(e.format)?n.key=e.format:k(e.format)&&(b(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u(m(),t,{[n]:e.format[n]}):t),m()));const c=a(e.value,n,l);let i=[n.key];g(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return g(a=r)&&!b(a[0])&&(r[0].key=`${e.type}-${t}`),r})):b(c)&&(i=[c]);const f=u(m(),s),_=b(e.tag)||k(e.tag)?e.tag:Mt();return t.h(_,f,i)}}const Ht=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||zt({useScope:e.scope,__useComponent:!0});return $t(e,t,et,((...e)=>n[kt](...e)))}}),jt=Ht,Vt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||zt({useScope:e.scope,__useComponent:!0});return $t(e,t,Je,((...e)=>n[ht](...e)))}}),Xt=Vt;function Gt(e){const r=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(Et.UNEXPECTED_ERROR);const a=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.$),o=Yt(r);return[Reflect.apply(a.t,a,[...Kt(o)]),a]};return{created:(a,o)=>{const[s,l]=r(o);n&&e.global===l&&(a.__i18nWatcher=t.watch(l.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),a.__composer=l,a.textContent=s},unmounted:e=>{n&&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=Yt(t);e.textContent=Reflect.apply(n.t,n,[...Kt(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Yt(e){if(b(e))return{path:e};if(T(e)){if(!("path"in e))throw Error(Et.REQUIRED_VALUE,"path");return e}throw Error(Et.INVALID_VALUE)}function Kt(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,l={},c=r||{};return b(n)&&(l.locale=n),s(a)&&(l.plural=a),s(o)&&(l.plural=o),[t,c,l]}const Bt=r("global-vue-i18n");function zt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Et.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Et.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?Bt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?Et.NOT_INSTALLED_WITH_PROVIDE:Et.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=It(n),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return Ct(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[Nt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const l=r;let c=l.__getInstance(n);if(null==c){const r=u({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),c=Ft(r),l.__composerExtend&&(c[yt]=l.__composerExtend(c)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[yt];a&&(a(),delete t[yt])}),n)}(l,n,c),l.__setInstance(n,c)}return c}const Jt=["locale","fallbackLocale","availableLocales"],Qt=["t","rt","d","n","tm","te"];return Me=function(e,t){if(b(e)){!h(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||pe)(e),r=de[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||R;return t.onError=e=>{n=!0,r(e)},{...q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=Z(a);return o?s:de[n]=s}{const t=e.cacheKey;if(t){const n=de[t];return n||(de[t]=Z(e))}return Z(e)}},Ue=function(e,t){if(!k(e))return null;let n=Pe.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=Ae(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=Oe(n),c=Ie[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&Pe.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;oDt(e))):a.run((()=>Ft(e)));if(null==o)throw Error(Et.UNEXPECTED_ERROR);return[a,o]}(e,a),i=r(""),u={get mode(){return a?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,u),T(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&o&&(r=function(e,n){const r=Object.create(null);Jt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(Et.UNEXPECTED_ERROR);const o=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,o)})),e.config.globalProperties.$i18n=r,Qt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(Et.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,Qt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,u.global)),function(e,t,...n){const r=T(n[0])?n[0]:{};(!h(r.globalInstall)||r.globalInstall)&&([Ut.name,"I18nT"].forEach((t=>e.component(t,Ut))),[Ht.name,"I18nN"].forEach((t=>e.component(t,Ht))),[Vt.name,"I18nD"].forEach((t=>e.component(t,Vt)))),e.directive("t",Gt(t))}(e,u,...n),a&&e.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(Et.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const t=o.i18n;if(o.__i18n&&(t.__i18n=o.__i18n),t.__root=n,this===this.$root)this.$i18n=wt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=Dt(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=wt(e,o);else{this.$i18n=Dt({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Ct(n,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Et.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,u));const s=e.unmount;e.unmount=()=>{r&&r(),u.dispose(),s()}},get global(){return c},dispose(){l.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return u},e.useI18n=zt,e.vTDirective=Gt,e}({},Vue); +var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"==typeof e&&isFinite(e),l=e=>"[object Date]"===y(e),c=e=>"[object RegExp]"===y(e),i=e=>T(e)&&0===Object.keys(e).length,u=Object.assign,f=Object.create,m=(e=null)=>f(e);function _(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const p=Object.prototype.hasOwnProperty;function d(e,t){return p.call(e,t)}const g=Array.isArray,E=e=>"function"==typeof e,b=e=>"string"==typeof e,h=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,L=e=>k(e)&&E(e.then)&&E(e.catch),N=Object.prototype.toString,y=e=>N.call(e),T=e=>"[object Object]"===y(e);function v(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function I(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const C=e=>!k(e)||g(e);function O(e,t){if(C(e)||C(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&&(k(e[r])&&!k(t[r])&&(t[r]=Array.isArray(e[r])?[]:m()),C(t[r])||C(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function A(e,t,n){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function R(e){throw e}const S=" ",F="\r",D="\n",w=String.fromCharCode(8232),x=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===F&&t[e+1]===D,l=e=>t[e]===x,c=e=>t[e]===w,i=e=>s(e)||(e=>t[e]===D)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?D:t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const U=void 0,W="'";function $(e,t={}){const n=!1!==t.location,r=M(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=A(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(P.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===S||e.currentPeek()===D;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===U)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===U)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){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===S||r===D):a===S?(e.peek(),n(!0,S)):a!==D||(e.peek(),n(!0,D)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===U?U:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function N(e){return k(e,L)}function y(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 T(e){return k(e,y)}function v(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,v)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return k(e,C)}function R(e){let t="",n="";for(;t=I(e);)n+=t;return n}function F(e){return e!==W&&e!==D}function w(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return x(e,t,4);case"U":return x(e,t,6);default:return P.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function x(e,t,n){_(e,t);let r="";for(let a=0;a=1&&(P.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(P.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=V(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(P.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return P.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,X(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){d(e);let t="",n="";for(;t=T(e);)n+=t;return e.currentChar()===U&&(P.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,5,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${R(e)}`):t+=R(e),e.currentChar()===U&&(P.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===W;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){d(e),_(e,"'");let t="",n="";for(;t=k(e,F);)n+="\\"===t?w(e):t;const r=e.currentChar();return r===D||r===U?(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===D&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,12,function(e){d(e);let t="",n="";for(;t=k(e,$);)n+=t;return n}(e)),P.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function V(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==D&&a!==S||(P.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,8,".");case":":return d(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),V(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,11,function(e){let t="",n="";for(;t=N(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===S||!t)&&(t===D?(e.peek(),r()):h(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===S?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(P.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,X(e,t))}}function X(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return V(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return P.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return V(e,t)||m(t);default:if(b(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===S||n===D)if(h(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}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===U?f(c,13):X(r,c)},currentOffset:a,currentPosition:o,context:i}}const H=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function j(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 V(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(e,n,r,a){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(H,j),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(8===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 11!==t.type?(P.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,X(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 4:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(o)),n.key=c(e,o.value||"");break;default:{P.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),l=r(7,s.offset,s.startLoc);return l.value="",a(l,s.offset,s.startLoc),n.key=l,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(P.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,X(r)),n.items.push(c(e,r.value||""));break;case 7:{const t=i(e);n.items.push(t.node),u=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 m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(e);return 13===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=$(n,u({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(P.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function X(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 G(e,t){for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Y(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function B(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;n1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n{const n=b(t.mode)?t.mode:"normal",r=b(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){l.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return s&&e.loc&&(l.source=e.loc.source),{context:()=>l,push:c,indent:function(e=!0){const t=++l.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&i(t)},newline:function(){i(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${v(l.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),J(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function q(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=V(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?B(t):t.cases.forEach((e=>B(e)))}(s),a&&z(s),{ast:s,code:""}):(K(s,n),Q(s,n))}function Z(e){return t=>function(e,t){const n=(r=t,me(r,ee));var r;if(null==n)throw _e(0);if(1===le(n)){const t=function(e){return me(e,te,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ne(e,n)]),[]))}return ne(e,n)}(t,e)}const ee=["b","body"];const te=["c","cases"];function ne(e,t){const n=function(e){return me(e,re)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return me(e,ae,[])}(t).reduce(((t,n)=>[...t,oe(e,n)]),[]);return e.normalize(n)}}const re=["s","static"];const ae=["i","items"];function oe(e,t){const n=le(t);switch(n){case 3:case 9:case 7:case 8:return ie(t,n);case 4:{const r=t;if(d(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(d(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw _e(n)}case 5:{const r=t;if(d(r,"i")&&s(r.i))return e.interpolate(e.list(r.i));if(d(r,"index")&&s(r.index))return e.interpolate(e.list(r.index));throw _e(n)}case 6:{const n=t,r=function(e){return me(e,ue)}(n),a=function(e){const t=me(e,fe);if(t)return t;throw _e(6)}(n);return e.linked(oe(e,a),r?oe(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const se=["t","type"];function le(e){return me(e,se)}const ce=["v","value"];function ie(e,t){const n=me(e,ce);if(n)return n;throw _e(t)}const ue=["m","modifier"];const fe=["k","key"];function me(e,t,n){for(let r=0;re;let de=m();function ge(e){return k(e)&&0===le(e)&&(d(e,"b")||d(e,"body"))}const Ee={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function be(e,t){return null!=t.locale?ke(t.locale):ke(e.locale)}let he;function ke(e){if(b(e))return e;if(E(e)){if(e.resolvedOnce&&null!=he)return he;if("Function"===e.constructor.name){const t=e();if(L(t))throw Error(Ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return he=t}throw Error(Ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(Ee.NOT_SUPPORT_LOCALE_TYPE)}function Le(e,t,n){return[...new Set([n,...g(t)?t:k(t)?Object.keys(t):b(t)?[t]:[n]])]}function Ne(e,t,n){const r=b(n)?n:De,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;g(e);)e=ye(o,e,t);const s=g(t)||!T(t)?t:t.default?t.default:null;e=b(s)?[s]:s,g(e)&&ye(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ye(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Me,Ue,We;let $e=null;const He=e=>{$e=e},je=()=>$e;let Ve=0;function Xe(e={}){const t=E(e.onWarn)?e.onWarn:I,n=b(e.version)?e.version:Se,r=b(e.locale)||E(e.locale)?e.locale:De,a=E(r)?De:r,o=g(e.fallbackLocale)||T(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=T(e.messages)?e.messages:Ge(a),l=T(e.datetimeFormats)?e.datetimeFormats:Ge(a),i=T(e.numberFormats)?e.numberFormats:Ge(a),f=u(m(),e.modifiers,{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&k(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?xe(e):"vnode"===t&&k(e)&&"__v_isVNode"in e?xe(e.children):e}),_=e.pluralRules||m(),p=E(e.missing)?e.missing:null,d=!h(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,L=!h(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,N=!!e.fallbackFormat,y=!!e.unresolving,v=E(e.postTranslation)?e.postTranslation:null,C=T(e.processor)?e.processor:null,O=!h(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,P=E(e.messageCompiler)?e.messageCompiler:Me,R=E(e.messageResolver)?e.messageResolver:Ue||Re,S=E(e.localeFallbacker)?e.localeFallbacker:We||Le,F=k(e.fallbackContext)?e.fallbackContext:void 0,D=e,w=k(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,x=k(D.__numberFormatters)?D.__numberFormatters:new Map,M=k(D.__meta)?D.__meta:{};Ve++;const U={version:n,cid:Ve,locale:r,fallbackLocale:o,messages:s,modifiers:f,pluralRules:_,missing:p,missingWarn:d,fallbackWarn:L,fallbackFormat:N,unresolving:y,postTranslation:v,processor:C,warnHtmlMessage:O,escapeParameter:A,messageCompiler:P,messageResolver:R,localeFallbacker:S,fallbackContext:F,onWarn:t,__meta:M};return U.datetimeFormats=l,U.numberFormats=i,U.__datetimeFormatters=w,U.__numberFormatters=x,U}const Ge=e=>({[e]:m()});function Ye(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return b(r)?r:t}return t}function Ke(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Be(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let o=n+1;o{Je.includes(e)?i[e]=n[e]:o[e]=n[e]})),b(r)?o.locale=r:T(r)&&(i=r),T(a)&&(i=a),[o.key||"",c,o,i]}function qe(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ze(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,f,m,_]=tt(...t);h(m.missingWarn)?m.missingWarn:e.missingWarn;h(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=be(e,m),g=s(e,a,d);if(!b(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let E,k={},L=null;for(let i=0;i{et.includes(e)?l[e]=n[e]:o[e]=n[e]})),b(r)?o.locale=r:T(r)&&(l=r),T(a)&&(l=a),[o.key||"",c,o,l]}function nt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const rt=e=>e,at=e=>"",ot="text",st=e=>0===e.length?"":v(e),lt=e=>null==e?"":g(e)||T(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function ct(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function it(e={}){const t=e.locale,n=function(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}(e),r=k(e.pluralRules)&&b(t)&&E(e.pluralRules[t])?e.pluralRules[t]:ct,a=k(e.pluralRules)&&b(t)&&E(e.pluralRules[t])?ct:void 0,o=e.list||[],l=e.named||m();s(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t,n){const r=E(e.messages)?e.messages(t,!!n):!!k(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):at)}const i=T(e.processor)&&E(e.processor.normalize)?e.processor.normalize:st,f=T(e.processor)&&E(e.processor.interpolate)?e.processor.interpolate:lt,_={list:e=>o[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?k(r)?(s=r.modifier||s,o=r.type||o):b(r)&&(s=r||s):2===n.length&&(b(r)&&(s=r||s),b(a)&&(o=a||o));const l=c(t,!0)(_),i="vnode"===o&&g(l)&&s?l[0]:l;return s?(u=s,e.modifiers?e.modifiers[u]:rt)(i,o):i;var u},message:c,type:T(e.processor)&&b(e.processor.type)?e.processor.type:ot,interpolate:f,normalize:i,values:u(m(),o,l)};return _}const ut=()=>"",ft=e=>E(e);function mt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:c}=e,[i,u]=dt(...t),f=h(u.missingWarn)?u.missingWarn:e.missingWarn,p=h(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=h(u.escapeParameter)?u.escapeParameter:e.escapeParameter,L=!!u.resolvedMessage,N=b(u.default)||h(u.default)?h(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,y=n||null!=N&&(b(N)||E(N)),T=be(e,u);d&&function(e){g(e.list)?e.list=e.list.map((e=>b(e)?_(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=_(e.named[t]))}))}(u);let[v,I,C]=L?[i,T,c[T]||m()]:_t(e,i,T,l,p,f),O=v,A=i;if(L||b(O)||ge(O)||ft(O)||y&&(O=N,A=O),!(L||(b(O)||ge(O)||ft(O))&&b(I)))return a?Fe:i;let P=!1;const R=ft(O)?O:pt(e,i,I,O,A,(()=>{P=!0}));if(P)return O;const S=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=l(n,r);if(null==o&&(f||a)){const[,,n]=_t(f||e,r,t,c,i,u);o=l(n,r)}if(b(o)||ge(o)){let n=!1;const a=pt(e,r,t,o,r,(()=>{n=!0}));return n?ut:a}return ft(o)?o:ut},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);s(r.plural)&&(_.pluralIndex=r.plural);return _}(e,I,C,u),F=function(e,t,n){const r=t(n);return r}(0,R,it(S));return r?r(F,i):F}function _t(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,_=m(),p=null;for(let d=0;dr;return e.locale=n,e.key=t,e}const i=l(r,function(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function dt(...e){const[t,n,r]=e,a=m();if(!(b(t)||s(t)||ft(t)||ge(t)))throw Error(Ee.INVALID_ARGUMENT);const o=s(t)?String(t):(ft(t),t);return s(n)?a.plural=n:b(n)?a.default=n:T(n)&&!i(n)?a.named=n:g(n)&&(a.list=n),s(r)?a.plural=r:b(r)?a.default=r:T(r)&&u(a,r),[o,a]}const gt="10.0.6",Et={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},bt=r("__translateVNode"),ht=r("__datetimeParts"),kt=r("__numberParts"),Lt=r("__setPluralRules"),Nt=r("__injectWithOption"),yt=r("__dispose");function Tt(e){if(!k(e))return e;for(const t in e)if(d(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||m(),O(n,s[t])):O(n,s)}else b(e)&&O(JSON.parse(e),s)})),null==a&&o)for(const l in s)d(s,l)&&Tt(s[l]);return s}function It(e){return e.type}function Ct(e,t,n){let r=k(t.messages)?t.messages:m();"__i18nGlobal"in n&&(r=vt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),k(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(k(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Ot(e){return t.createVNode(t.Text,null,e,0)}const At=()=>[],Pt=()=>!1;let Rt=0;function St(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Ft(e={}){const{__root:r,__injectWithOption:a}=e,o=void 0===r,l=e.flatJson,i=n?t.ref:t.shallowRef;let f=!h(e.inheritLocale)||e.inheritLocale;const m=i(r&&f?r.locale.value:b(e.locale)?e.locale:De),_=i(r&&f?r.fallbackLocale.value:b(e.fallbackLocale)||g(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),p=i(vt(m.value,e)),L=i(T(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),N=i(T(e.numberFormats)?e.numberFormats:{[m.value]:{}});let y=r?r.missingWarn:!h(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=r?r.fallbackWarn:!h(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,I=r?r.fallbackRoot:!h(e.fallbackRoot)||e.fallbackRoot,C=!!e.fallbackFormat,A=E(e.missing)?e.missing:null,P=E(e.missing)?St(e.missing):null,R=E(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:!h(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const D=r?r.modifiers:T(e.modifiers)?e.modifiers:{};let w,x=e.pluralRules||r&&r.pluralRules;w=(()=>{o&&He(null);const t={version:gt,locale:m.value,fallbackLocale:_.value,messages:p.value,modifiers:D,pluralRules:x,missing:null===P?void 0:P,missingWarn:y,fallbackWarn:v,fallbackFormat:C,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:S,escapeParameter:F,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=N.value,t.__datetimeFormatters=T(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=T(w)?w.__numberFormatters:void 0;const n=Xe(t);return o&&He(n),n})(),Ke(w,m.value,_.value);const M=t.computed({get:()=>m.value,set:e=>{m.value=e,w.locale=m.value}}),U=t.computed({get:()=>_.value,set:e=>{_.value=e,w.fallbackLocale=_.value,Ke(w,m.value,e)}}),W=t.computed((()=>p.value)),$=t.computed((()=>L.value)),H=t.computed((()=>N.value));const j=(e,t,n,a,l,c)=>{let i;m.value,_.value,p.value,L.value,N.value;try{0,o||(w.fallbackContext=r?je():void 0),i=e(w)}finally{o||(w.fallbackContext=void 0)}if("translate exists"!==n&&s(i)&&i===Fe||"translate exists"===n&&!i){const[e,n]=t();return r&&I?a(r):l(e)}if(c(i))return i;throw Error(Et.UNEXPECTED_RETURN_TYPE)};function V(...e){return j((t=>Reflect.apply(mt,null,[t,...e])),(()=>dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}const X={normalize:function(e){return e.map((e=>b(e)||s(e)||h(e)?Ot(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return p.value[e]||{}}Rt++,r&&n&&(t.watch(r.locale,(e=>{f&&(m.value=e,w.locale=e,Ke(w,m.value,_.value))})),t.watch(r.fallbackLocale,(e=>{f&&(_.value=e,w.fallbackLocale=e,Ke(w,m.value,_.value))})));const Y={id:Rt,locale:M,fallbackLocale:U,get inheritLocale(){return f},set inheritLocale(e){f=e,e&&r&&(m.value=r.locale.value,_.value=r.fallbackLocale.value,Ke(w,m.value,_.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:W,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return o},get missingWarn(){return y},set missingWarn(e){y=e,w.missingWarn=y},get fallbackWarn(){return v},set fallbackWarn(e){v=e,w.fallbackWarn=v},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return C},set fallbackFormat(e){C=e,w.fallbackFormat=C},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,w.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,w.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){if(l){const n={[e]:t};for(const e in n)d(n,e)&&Tt(n[e]);t=n[e]}p.value[e]=t,w.messages=p.value},mergeLocaleMessage:function(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(l)for(const r in n)d(n,r)&&Tt(n[r]);O(t=n[e],p.value[e]),w.messages=p.value},getPostTranslationHandler:function(){return E(R)?R:null},setPostTranslationHandler:function(e){R=e,w.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=St(e)),A=e,w.missing=P},[Lt]:function(e){x=e,w.pluralRules=x}};return Y.datetimeFormats=$,Y.numberFormats=H,Y.rt=function(...e){const[t,n,r]=e;if(r&&!k(r))throw Error(Et.INVALID_ARGUMENT);return V(t,n,u({resolvedMessage:!0},r||{}))},Y.te=function(e,t){return j((()=>{if(!e)return!1;const n=G(b(t)?t:m.value),r=w.messageResolver(n,e);return ge(r)||ft(r)||b(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Pt,(e=>h(e)))},Y.tm=function(e){const t=function(e){let t=null;const n=Ne(w,_.value,m.value);for(let r=0;rReflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>we),(e=>b(e)))},Y.n=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>we),(e=>b(e)))},Y.getDateTimeFormat=function(e){return L.value[e]||{}},Y.setDateTimeFormat=function(e,t){L.value[e]=t,w.datetimeFormats=L.value,qe(w,e,t)},Y.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),w.datetimeFormats=L.value,qe(w,e,t)},Y.getNumberFormat=function(e){return N.value[e]||{}},Y.setNumberFormat=function(e,t){N.value[e]=t,w.numberFormats=N.value,nt(w,e,t)},Y.mergeNumberFormat=function(e,t){N.value[e]=u(N.value[e]||{},t),w.numberFormats=N.value,nt(w,e,t)},Y[Nt]=a,Y[bt]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(mt,null,[r,...e])}finally{r.processor=null}return n}),(()=>dt(...e)),"translate",(t=>t[bt](...e)),(e=>[Ot(e)]),(e=>g(e)))},Y[ht]=function(...e){return j((t=>Reflect.apply(ze,null,[t,...e])),(()=>Qe(...e)),"datetime format",(t=>t[ht](...e)),At,(e=>b(e)||g(e)))},Y[kt]=function(...e){return j((t=>Reflect.apply(Ze,null,[t,...e])),(()=>tt(...e)),"number format",(t=>t[kt](...e)),At,(e=>b(e)||g(e)))},Y}function Dt(e={}){const t=Ft(function(e){const t=b(e.locale)?e.locale:De,n=b(e.fallbackLocale)||g(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=E(e.missing)?e.missing:void 0,a=!h(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!h(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!h(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=T(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=E(e.postTranslation)?e.postTranslation:void 0,_=!b(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,d=!h(e.sync)||e.sync;let k=e.messages;if(T(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return u(r,t[n]),e}),k||{})}const{__i18n:L,__root:N,__injectWithOption:y}=e,v=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:v,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:L,__root:N,__injectWithOption:y}}(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 h(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=h(e)?!e:e},get silentFallbackWarn(){return h(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=h(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]),tc(...e){const[n,r,a]=e,o={plural:1};let l=null,c=null;if(!b(n))throw Error(Et.INVALID_ARGUMENT);const i=n;return b(r)?o.locale=r:s(r)?o.plural=r:g(r)?l=r:T(r)&&(c=r),b(a)?o.locale=a:g(a)?l=a:T(a)&&(c=a),Reflect.apply(t.t,t,[i,l||c||{},o])},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,r}function wt(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[Lt](t.pluralizationRules||e.pluralizationRules);const n=vt(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 xt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Mt(){return t.Fragment}const Ut=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},xt),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||zt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter((e=>"_"!==e)),l=m();e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=b(e.plural)?+e.plural:e.plural);const c=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),m())}(n,s),i=o[bt](e.keypath,c,l),f=u(m(),a),_=b(e.tag)||k(e.tag)?e.tag:Mt();return t.h(_,f,i)}}}),Wt=Ut;function $t(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l=m();e.locale&&(n.locale=e.locale),b(e.format)?n.key=e.format:k(e.format)&&(b(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u(m(),t,{[n]:e.format[n]}):t),m()));const c=a(e.value,n,l);let i=[n.key];g(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return g(a=r)&&!b(a[0])&&(r[0].key=`${e.type}-${t}`),r})):b(c)&&(i=[c]);const f=u(m(),s),_=b(e.tag)||k(e.tag)?e.tag:Mt();return t.h(_,f,i)}}const Ht=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||zt({useScope:e.scope,__useComponent:!0});return $t(e,t,et,((...e)=>n[kt](...e)))}}),jt=Ht,Vt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||zt({useScope:e.scope,__useComponent:!0});return $t(e,t,Je,((...e)=>n[ht](...e)))}}),Xt=Vt;function Gt(e){const r=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(Et.UNEXPECTED_ERROR);const a=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.$),o=Yt(r);return[Reflect.apply(a.t,a,[...Kt(o)]),a]};return{created:(a,o)=>{const[s,l]=r(o);n&&e.global===l&&(a.__i18nWatcher=t.watch(l.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),a.__composer=l,a.textContent=s},unmounted:e=>{n&&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=Yt(t);e.textContent=Reflect.apply(n.t,n,[...Kt(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Yt(e){if(b(e))return{path:e};if(T(e)){if(!("path"in e))throw Error(Et.REQUIRED_VALUE,"path");return e}throw Error(Et.INVALID_VALUE)}function Kt(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,l={},c=r||{};return b(n)&&(l.locale=n),s(a)&&(l.plural=a),s(o)&&(l.plural=o),[t,c,l]}const Bt=r("global-vue-i18n");function zt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(Et.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Et.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?Bt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?Et.NOT_INSTALLED_WITH_PROVIDE:Et.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=It(n),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return Ct(a,e,o),a;if("parent"===s){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[Nt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const l=r;let c=l.__getInstance(n);if(null==c){const r=u({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),c=Ft(r),l.__composerExtend&&(c[yt]=l.__composerExtend(c)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[yt];a&&(a(),delete t[yt])}),n)}(l,n,c),l.__setInstance(n,c)}return c}const Jt=["locale","fallbackLocale","availableLocales"],Qt=["t","rt","d","n","tm","te"];return Me=function(e,t){if(b(e)){!h(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||pe)(e),r=de[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||R;return t.onError=e=>{n=!0,r(e)},{...q(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=Z(a);return o?s:de[n]=s}{const t=e.cacheKey;if(t){const n=de[t];return n||(de[t]=Z(e))}return Z(e)}},Ue=function(e,t){if(!k(e))return null;let n=Pe.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,c,i=-1,u=0,f=0;const m=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=Ae(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=Oe(n),c=Ie[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&Pe.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;oDt(e))):a.run((()=>Ft(e)));if(null==o)throw Error(Et.UNEXPECTED_ERROR);return[a,o]}(e,a),i=r(""),u={get mode(){return a?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,u),T(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&o&&(r=function(e,n){const r=Object.create(null);Jt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(Et.UNEXPECTED_ERROR);const o=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,o)})),e.config.globalProperties.$i18n=r,Qt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(Et.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,Qt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,u.global)),function(e,t,...n){const r=T(n[0])?n[0]:{};(!h(r.globalInstall)||r.globalInstall)&&([Ut.name,"I18nT"].forEach((t=>e.component(t,Ut))),[Ht.name,"I18nN"].forEach((t=>e.component(t,Ht))),[Vt.name,"I18nD"].forEach((t=>e.component(t,Vt)))),e.directive("t",Gt(t))}(e,u,...n),a&&e.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(Et.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const t=o.i18n;if(o.__i18n&&(t.__i18n=o.__i18n),t.__root=n,this===this.$root)this.$i18n=wt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=Dt(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=wt(e,o);else{this.$i18n=Dt({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Ct(n,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(Et.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,u));const s=e.unmount;e.unmount=()=>{r&&r(),u.dispose(),s()}},get global(){return c},dispose(){l.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return u},e.useI18n=zt,e.vTDirective=Gt,e}({},Vue);