@dialpad/dialtone 9.117.0 → 9.117.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tokens/doc.json +12390 -12390
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/lib/editor/editor.cjs +1 -1
- package/dist/vue2/lib/editor/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor/editor.js +48 -48
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +3 -3
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +183 -166
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/localization/index.cjs +5 -1
- package/dist/vue2/localization/index.cjs.map +1 -1
- package/dist/vue2/localization/index.js +4865 -21
- package/dist/vue2/localization/index.js.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +18 -0
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/lib/editor/editor.cjs +1 -1
- package/dist/vue3/lib/editor/editor.cjs.map +1 -1
- package/dist/vue3/lib/editor/editor.js +2 -0
- package/dist/vue3/lib/editor/editor.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +181 -164
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +18 -0
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/package.json +7 -5
- package/dist/vue2/node_modules/@dialpad/i18n-vue2.cjs +0 -6
- package/dist/vue2/node_modules/@dialpad/i18n-vue2.cjs.map +0 -1
- package/dist/vue2/node_modules/@dialpad/i18n-vue2.js +0 -4906
- package/dist/vue2/node_modules/@dialpad/i18n-vue2.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialpad/dialtone",
|
|
3
|
-
"version": "9.117.
|
|
3
|
+
"version": "9.117.2",
|
|
4
4
|
"description": "Dialpad's Dialtone design system monorepo",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"./*": "./dist/*"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@dialpad/i18n-services": "1.2.0-beta.v6",
|
|
48
47
|
"@tiptap/core": "2.6.6",
|
|
49
48
|
"@tiptap/extension-blockquote": "2.6.6",
|
|
50
49
|
"@tiptap/extension-bold": "2.6.6",
|
|
@@ -68,6 +67,9 @@
|
|
|
68
67
|
"@tiptap/extension-text": "2.6.6",
|
|
69
68
|
"@tiptap/extension-text-align": "2.6.6",
|
|
70
69
|
"@tiptap/extension-underline": "2.6.6",
|
|
70
|
+
"@tiptap/extension-text-style": "2.12.0",
|
|
71
|
+
"@tiptap/extension-color": "2.12.0",
|
|
72
|
+
"@tiptap/extension-font-family": "2.12.0",
|
|
71
73
|
"@tiptap/pm": "2.6.6",
|
|
72
74
|
"@tiptap/suggestion": "2.6.6",
|
|
73
75
|
"date-fns": "4.1.0",
|
|
@@ -78,9 +80,9 @@
|
|
|
78
80
|
"overlayscrollbars": "2.10.0",
|
|
79
81
|
"regex-combined-emojis": "1.6.0",
|
|
80
82
|
"tippy.js": "6.3.7",
|
|
83
|
+
"@dialpad/dialtone-icons": "4.36.0",
|
|
81
84
|
"@dialpad/dialtone-emojis": "1.1.2",
|
|
82
|
-
"@dialpad/dialtone-tokens": "1.43.
|
|
83
|
-
"@dialpad/dialtone-icons": "4.36.0"
|
|
85
|
+
"@dialpad/dialtone-tokens": "1.43.1"
|
|
84
86
|
},
|
|
85
87
|
"devDependencies": {
|
|
86
88
|
"@commitlint/cli": "^18.4.3",
|
|
@@ -117,7 +119,7 @@
|
|
|
117
119
|
"eslint-config-standard": "^17.1.0",
|
|
118
120
|
"eslint-plugin-eslint-plugin": "6.3.1",
|
|
119
121
|
"eslint-plugin-import": "^2.27.5",
|
|
120
|
-
"eslint-plugin-jest": "^
|
|
122
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
121
123
|
"eslint-plugin-json": "4.0.1",
|
|
122
124
|
"eslint-plugin-node": "^11.1.0",
|
|
123
125
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";var sr=Object.defineProperty;var ar=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var se=(e,t,n)=>ar(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("vue");class we{constructor(t){this.value=t}valueOf(){return this.value}}class C extends we{constructor(t="???"){super(t)}toString(t){return`{${this.value}}`}}class $ extends we{constructor(t,n={}){super(t),this.opts=n}toString(t){try{return t.memoizeIntlObject(Intl.NumberFormat,this.opts).format(this.value)}catch(n){return t.reportError(n),this.value.toString(10)}}}class ie extends we{constructor(t,n={}){super(t),this.opts=n}toString(t){try{return t.memoizeIntlObject(Intl.DateTimeFormat,this.opts).format(this.value)}catch(n){return t.reportError(n),new Date(this.value).toISOString()}}}const ut=100,ir="",lr="";function cr(e,t,n){if(n===t||n instanceof $&&t instanceof $&&n.value===t.value)return!0;if(t instanceof $&&typeof n=="string"){let r=e.memoizeIntlObject(Intl.PluralRules,t.opts).select(t.value);if(n===r)return!0}return!1}function ot(e,t,n){return t[n]?J(e,t[n].value):(e.reportError(new RangeError("No default")),new C)}function Fe(e,t){const n=[],r=Object.create(null);for(const u of t)u.type==="narg"?r[u.name]=ce(e,u.value):n.push(ce(e,u));return{positional:n,named:r}}function ce(e,t){switch(t.type){case"str":return t.value;case"num":return new $(t.value,{minimumFractionDigits:t.precision});case"var":return fr(e,t);case"mesg":return dr(e,t);case"term":return _r(e,t);case"func":return hr(e,t);case"select":return Er(e,t);default:return new C}}function fr(e,{name:t}){let n;if(e.params)if(Object.prototype.hasOwnProperty.call(e.params,t))n=e.params[t];else return new C(`$${t}`);else if(e.args&&Object.prototype.hasOwnProperty.call(e.args,t))n=e.args[t];else return e.reportError(new ReferenceError(`Unknown variable: $${t}`)),new C(`$${t}`);if(n instanceof we)return n;switch(typeof n){case"string":return n;case"number":return new $(n);case"object":if(n instanceof Date)return new ie(n.getTime());default:return e.reportError(new TypeError(`Variable type not supported: $${t}, ${typeof n}`)),new C(`$${t}`)}}function dr(e,{name:t,attr:n}){const r=e.bundle._messages.get(t);if(!r)return e.reportError(new ReferenceError(`Unknown message: ${t}`)),new C(t);if(n){const u=r.attributes[n];return u?J(e,u):(e.reportError(new ReferenceError(`Unknown attribute: ${n}`)),new C(`${t}.${n}`))}return r.value?J(e,r.value):(e.reportError(new ReferenceError(`No value: ${t}`)),new C(t))}function _r(e,{name:t,attr:n,args:r}){const u=`-${t}`,o=e.bundle._terms.get(u);if(!o)return e.reportError(new ReferenceError(`Unknown term: ${u}`)),new C(u);if(n){const a=o.attributes[n];if(a){e.params=Fe(e,r).named;const f=J(e,a);return e.params=null,f}return e.reportError(new ReferenceError(`Unknown attribute: ${n}`)),new C(`${u}.${n}`)}e.params=Fe(e,r).named;const s=J(e,o.value);return e.params=null,s}function hr(e,{name:t,args:n}){let r=e.bundle._functions[t];if(!r)return e.reportError(new ReferenceError(`Unknown function: ${t}()`)),new C(`${t}()`);if(typeof r!="function")return e.reportError(new TypeError(`Function ${t}() is not callable`)),new C(`${t}()`);try{let u=Fe(e,n);return r(u.positional,u.named)}catch(u){return e.reportError(u),new C(`${t}()`)}}function Er(e,{selector:t,variants:n,star:r}){let u=ce(e,t);if(u instanceof C)return ot(e,n,r);for(const o of n){const s=ce(e,o.key);if(cr(e,u,s))return J(e,o.value)}return ot(e,n,r)}function bn(e,t){if(e.dirty.has(t))return e.reportError(new RangeError("Cyclic reference")),new C;e.dirty.add(t);const n=[],r=e.bundle._useIsolating&&t.length>1;for(const u of t){if(typeof u=="string"){n.push(e.bundle._transform(u));continue}if(e.placeables++,e.placeables>ut)throw e.dirty.delete(t),new RangeError(`Too many placeables expanded: ${e.placeables}, max allowed is ${ut}`);r&&n.push(ir),n.push(ce(e,u).toString(e)),r&&n.push(lr)}return e.dirty.delete(t),n.join("")}function J(e,t){return typeof t=="string"?e.bundle._transform(t):bn(e,t)}class pr{constructor(t,n,r){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=t,this.errors=n,this.args=r}reportError(t){if(!this.errors||!(t instanceof Error))throw t;this.errors.push(t)}memoizeIntlObject(t,n){let r=this.bundle._intls.get(t);r||(r={},this.bundle._intls.set(t,r));let u=JSON.stringify(n);return r[u]||(r[u]=new t(this.bundle.locales,n)),r[u]}}function Ae(e,t){const n=Object.create(null);for(const[r,u]of Object.entries(e))t.includes(r)&&(n[r]=u.valueOf());return n}const st=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function gr(e,t){let n=e[0];if(n instanceof C)return new C(`NUMBER(${n.valueOf()})`);if(n instanceof $)return new $(n.valueOf(),{...n.opts,...Ae(t,st)});if(n instanceof ie)return new $(n.valueOf(),{...Ae(t,st)});throw new TypeError("Invalid argument to NUMBER")}const at=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function mr(e,t){let n=e[0];if(n instanceof C)return new C(`DATETIME(${n.valueOf()})`);if(n instanceof ie)return new ie(n.valueOf(),{...n.opts,...Ae(t,at)});if(n instanceof $)return new ie(n.valueOf(),{...Ae(t,at)});throw new TypeError("Invalid argument to DATETIME")}const it=new Map;function vr(e){const t=Array.isArray(e)?e.join(" "):e;let n=it.get(t);return n===void 0&&(n=new Map,it.set(t,n)),n}class Oe{constructor(t,{functions:n,useIsolating:r=!0,transform:u=o=>o}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(t)?t:[t],this._functions={NUMBER:gr,DATETIME:mr,...n},this._useIsolating=r,this._transform=u,this._intls=vr(t)}hasMessage(t){return this._messages.has(t)}getMessage(t){return this._messages.get(t)}addResource(t,{allowOverrides:n=!1}={}){const r=[];for(let u=0;u<t.body.length;u++){let o=t.body[u];if(o.id.startsWith("-")){if(n===!1&&this._terms.has(o.id)){r.push(new Error(`Attempt to override an existing term: "${o.id}"`));continue}this._terms.set(o.id,o)}else{if(n===!1&&this._messages.has(o.id)){r.push(new Error(`Attempt to override an existing message: "${o.id}"`));continue}this._messages.set(o.id,o)}}return r}formatPattern(t,n=null,r=null){if(typeof t=="string")return this._transform(t);let u=new pr(this,r,n);try{return bn(u,t).toString(u)}catch(o){if(u.errors&&o instanceof Error)return u.errors.push(o),new C().toString(u);throw o}}}class yr extends Array{static from(t){return t instanceof this?t:new this(t)}}class Ar extends yr{constructor(t){if(super(),Symbol.iterator in Object(t))this.iterator=t[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.iterator](){const t=this;let n=0;return{next(){return t.length<=n&&t.push(t.iterator.next()),t[n++]}}}touchNext(t=1){let n=0;for(;n++<t;){const r=this[this.length-1];if(r&&r.done)break;this.push(this.iterator.next())}return this[this.length-1]}}function br(e,t){return Array.isArray(t)?t.map(n=>lt(e,n)):lt(e,t)}function lt(e,t){for(const n of e)if(n.hasMessage(t))return n;return null}function wr(e,t){const n=new Oe(e,{functions:t._functions,useIsolating:t._useIsolating,transform:t._transform});return n._terms=new Map(t._terms),n._messages=new Map(t._messages),n}function Or(e,t){if(!e)throw new Error(`[fluent-vue] ${t}`)}function Q(e,...t){console.warn(`[fluent-vue] ${e}`,...t)}var wn=class{constructor(e,t){this.options=t,this.format=(n,r)=>{const u=this.getBundle(n),o=this.getMessage(u,n);return this._format(u,o,r)??n},this.formatAttrs=(n,r)=>{const u=this.getBundle(n),o=this.getMessage(u,n);return this._formatAttrs(u,o,r)??{}},this.formatWithAttrs=(n,r)=>{const u=this.getBundle(n),o=this.getMessage(u,n),s=this._format(u,o,r);return{value:s??n,attributes:this._formatAttrs(u,o,r)??{},hasValue:s!==null}},this.$t=this.format,this.$ta=this.formatAttrs,this.bundles=e}getBundle(e){return br(this.bundles.value,e)}getMessage(e,t){const n=e==null?void 0:e.getMessage(t);return n===void 0?(this.options.warnMissing(t),null):n}formatPattern(e,t,n,r){const u=[],o=r;if(o!=null&&this.options.mapVariable!=null)for(const[a,f]of Object.entries(o)){const h=this.options.mapVariable(f);h!=null&&(o[a]=h)}const s=e.formatPattern(n,o,u);for(const a of u)Q(`Error when formatting message with key [${t}]`,a);return s}_format(e,t,n){return e===null||t===null||t.value===null?null:this.formatPattern(e,t.id,t.value,n)}_formatAttrs(e,t,n){if(e===null||t===null)return null;const r={};for(const[u,o]of Object.entries(t.attributes))r[u]=this.formatPattern(e,t.id,o,n);return r}};function*Sr(e,t){for(const n of e)yield*t(n)}function Z(e,t,n=!1){if(t==null)return e;const r=t.$options;if(r._fluent!=null)return r._fluent;const u=On(e,r.fluent);return!n&&!(typeof window>"u")&&(r._fluent=u),u}function On(e,t){if(t==null)return e;const n=R.computed(()=>Ar.from(Sr(e.bundles.value,r=>Object.entries(t).map(([u,o])=>{const s=u.split(/[\s+,]/);if(r.locales.filter(h=>s.includes(h)).length===0)return r;const f=wr(s,r);return f.addResource(o,{allowOverrides:!0}),f}))));return new wn(n,e.options)}var Tr=Symbol("root-context"),Cr=Object.create,Sn=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyNames,Dr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty,Rr=(e,t)=>function(){return e&&(t=(0,e[je(e)[0]])(e=0)),t},xr=(e,t)=>function(){return t||(0,e[je(e)[0]])((t={exports:{}}).exports,t),t.exports},Pr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of je(t))!kr.call(e,u)&&u!==n&&Sn(e,u,{get:()=>t[u],enumerable:!(r=Ir(t,u))||r.enumerable});return e},Nr=(e,t,n)=>(n=e!=null?Cr(Dr(e)):{},Pr(Sn(n,"default",{value:e,enumerable:!0}),e)),Ee=Rr({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),Fr=xr({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Ee(),t.exports=r;function n(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function r(o){if(o=o||{},o.circles)return u(o);const s=new Map;if(s.set(Date,i=>new Date(i)),s.set(Map,(i,E)=>new Map(f(Array.from(i),E))),s.set(Set,(i,E)=>new Set(f(Array.from(i),E))),o.constructorHandlers)for(const i of o.constructorHandlers)s.set(i[0],i[1]);let a=null;return o.proto?A:h;function f(i,E){const c=Object.keys(i),_=new Array(c.length);for(let v=0;v<c.length;v++){const p=c[v],g=i[p];typeof g!="object"||g===null?_[p]=g:g.constructor!==Object&&(a=s.get(g.constructor))?_[p]=a(g,E):ArrayBuffer.isView(g)?_[p]=n(g):_[p]=E(g)}return _}function h(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return f(i,h);if(i.constructor!==Object&&(a=s.get(i.constructor)))return a(i,h);const E={};for(const c in i){if(Object.hasOwnProperty.call(i,c)===!1)continue;const _=i[c];typeof _!="object"||_===null?E[c]=_:_.constructor!==Object&&(a=s.get(_.constructor))?E[c]=a(_,h):ArrayBuffer.isView(_)?E[c]=n(_):E[c]=h(_)}return E}function A(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return f(i,A);if(i.constructor!==Object&&(a=s.get(i.constructor)))return a(i,A);const E={};for(const c in i){const _=i[c];typeof _!="object"||_===null?E[c]=_:_.constructor!==Object&&(a=s.get(_.constructor))?E[c]=a(_,A):ArrayBuffer.isView(_)?E[c]=n(_):E[c]=A(_)}return E}}function u(o){const s=[],a=[],f=new Map;if(f.set(Date,c=>new Date(c)),f.set(Map,(c,_)=>new Map(A(Array.from(c),_))),f.set(Set,(c,_)=>new Set(A(Array.from(c),_))),o.constructorHandlers)for(const c of o.constructorHandlers)f.set(c[0],c[1]);let h=null;return o.proto?E:i;function A(c,_){const v=Object.keys(c),p=new Array(v.length);for(let g=0;g<v.length;g++){const O=v[g],b=c[O];if(typeof b!="object"||b===null)p[O]=b;else if(b.constructor!==Object&&(h=f.get(b.constructor)))p[O]=h(b,_);else if(ArrayBuffer.isView(b))p[O]=n(b);else{const I=s.indexOf(b);I!==-1?p[O]=a[I]:p[O]=_(b)}}return p}function i(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return A(c,i);if(c.constructor!==Object&&(h=f.get(c.constructor)))return h(c,i);const _={};s.push(c),a.push(_);for(const v in c){if(Object.hasOwnProperty.call(c,v)===!1)continue;const p=c[v];if(typeof p!="object"||p===null)_[v]=p;else if(p.constructor!==Object&&(h=f.get(p.constructor)))_[v]=h(p,i);else if(ArrayBuffer.isView(p))_[v]=n(p);else{const g=s.indexOf(p);g!==-1?_[v]=a[g]:_[v]=i(p)}}return s.pop(),a.pop(),_}function E(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return A(c,E);if(c.constructor!==Object&&(h=f.get(c.constructor)))return h(c,E);const _={};s.push(c),a.push(_);for(const v in c){const p=c[v];if(typeof p!="object"||p===null)_[v]=p;else if(p.constructor!==Object&&(h=f.get(p.constructor)))_[v]=h(p,E);else if(ArrayBuffer.isView(p))_[v]=n(p);else{const g=s.indexOf(p);g!==-1?_[v]=a[g]:_[v]=E(p)}}return s.pop(),a.pop(),_}}}});Ee();Ee();Ee();var Lr=typeof navigator<"u",m=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{},ct;typeof navigator<"u"&&((ct=navigator.userAgent)==null||ct.toLowerCase().includes("electron"));Ee();var Vr=Nr(Fr()),Br=/(?:^|[-_/])(\w)/g;function Ur(e,t){return t?t.toUpperCase():""}function Mr(e){return e&&`${e}`.replace(Br,Ur)}function $r(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),u=n.substring(r+1);{const o=u.lastIndexOf(t);return u.substring(0,o)}}var ft=(0,Vr.default)({circles:!0});const Kr={trailing:!0};function ee(e,t=25,n={}){if(n={...Kr,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,u,o=[],s,a;const f=(h,A)=>(s=zr(e,h,A),s.finally(()=>{if(s=null,n.trailing&&a&&!u){const i=f(h,a);return a=null,i}}),s);return function(...h){return s?(n.trailing&&(a=h),s):new Promise(A=>{const i=!u&&n.leading;clearTimeout(u),u=setTimeout(()=>{u=null;const E=n.leading?r:f(this,h);for(const c of o)c(E);o=[]},t),i?(r=f(this,h),A(r)):o.push(A)})}}async function zr(e,t,n){return await e.apply(t,n)}function Le(e,t={},n){for(const r in e){const u=e[r],o=n?`${n}:${r}`:r;typeof u=="object"&&u!==null?Le(u,t,o):typeof u=="function"&&(t[o]=u)}return t}const Hr={run:e=>e()},jr=()=>Hr,Tn=typeof console.createTask<"u"?console.createTask:jr;function Gr(e,t){const n=t.shift(),r=Tn(n);return e.reduce((u,o)=>u.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Wr(e,t){const n=t.shift(),r=Tn(n);return Promise.all(e.map(u=>r.run(()=>u(...t))))}function De(e,t){for(const n of[...e])n(t)}class qr{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const u=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${u} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,u=(...o)=>(typeof r=="function"&&r(),r=void 0,u=void 0,n(...o));return r=this.hook(t,u),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const u of r)this.hook(t,u)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Le(t),r=Object.keys(n).map(u=>this.hook(u,n[u]));return()=>{for(const u of r.splice(0,r.length))u()}}removeHooks(t){const n=Le(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Gr,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Wr,t,...n)}callHookWith(t,n,...r){const u=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&De(this._before,u);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&u&&De(this._after,u)}):(this._after&&u&&De(this._after,u),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Cn(){return new qr}var Yr=Object.create,In=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Ge=Object.getOwnPropertyNames,Xr=Object.getPrototypeOf,Jr=Object.prototype.hasOwnProperty,Qr=(e,t)=>function(){return e&&(t=(0,e[Ge(e)[0]])(e=0)),t},Dn=(e,t)=>function(){return t||(0,e[Ge(e)[0]])((t={exports:{}}).exports,t),t.exports},eu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Ge(t))!Jr.call(e,u)&&u!==n&&In(e,u,{get:()=>t[u],enumerable:!(r=Zr(t,u))||r.enumerable});return e},tu=(e,t,n)=>(n=e!=null?Yr(Xr(e)):{},eu(In(n,"default",{value:e,enumerable:!0}),e)),l=Qr({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),nu=Dn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){l(),function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},u=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},f=[";","?",":","@","&","=","+","$",",","/"].join(""),h=[";","?",":","@","&","=","+","$",","].join(""),A=[".","!","~","*","'","(",")"].join(""),i=function(p,g){var O="-",b="",I="",H=!0,N={},W,j,d,y,S,V,F,k,nt,M,w,pe,B,q,K="";if(typeof p!="string")return"";if(typeof g=="string"&&(O=g),F=a.en,k=s.en,typeof g=="object"){W=g.maintainCase||!1,N=g.custom&&typeof g.custom=="object"?g.custom:N,d=+g.truncate>1&&g.truncate||!1,y=g.uric||!1,S=g.uricNoSlash||!1,V=g.mark||!1,H=!(g.symbols===!1||g.lang===!1),O=g.separator||O,y&&(K+=f),S&&(K+=h),V&&(K+=A),F=g.lang&&a[g.lang]&&H?a[g.lang]:H?a.en:{},k=g.lang&&s[g.lang]?s[g.lang]:g.lang===!1||g.lang===!0?{}:s.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(L){N[L+""]=L+""}),j=!0):j=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(L){N[L+""]=L+""}),Object.keys(N).forEach(function(L){var oe;L.length>1?oe=new RegExp("\\b"+c(L)+"\\b","gi"):oe=new RegExp(c(L),"gi"),p=p.replace(oe,N[L])});for(w in N)K+=w}for(K+=O,K=c(K),p=p.replace(/(^\s+|\s+$)/g,""),B=!1,q=!1,M=0,pe=p.length;M<pe;M++)w=p[M],_(w,N)?B=!1:k[w]?(w=B&&k[w].match(/[A-Za-z0-9]/)?" "+k[w]:k[w],B=!1):w in r?(M+1<pe&&u.indexOf(p[M+1])>=0?(I+=w,w=""):q===!0?(w=o[I]+r[w],I=""):w=B&&r[w].match(/[A-Za-z0-9]/)?" "+r[w]:r[w],B=!1,q=!1):w in o?(I+=w,w="",M===pe-1&&(w=o[I]),q=!0):F[w]&&!(y&&f.indexOf(w)!==-1)&&!(S&&h.indexOf(w)!==-1)?(w=B||b.substr(-1).match(/[A-Za-z0-9]/)?O+F[w]:F[w],w+=p[M+1]!==void 0&&p[M+1].match(/[A-Za-z0-9]/)?O:"",B=!0):(q===!0?(w=o[I]+w,I="",q=!1):B&&(/[A-Za-z0-9]/.test(w)||b.substr(-1).match(/A-Za-z0-9]/))&&(w=" "+w),B=!1),b+=w.replace(new RegExp("[^\\w\\s"+K+"_-]","g"),O);return j&&(b=b.replace(/(\w)(\S*)/g,function(L,oe,rt){var Ie=oe.toUpperCase()+(rt!==null?rt:"");return Object.keys(N).indexOf(Ie.toLowerCase())<0?Ie:Ie.toLowerCase()})),b=b.replace(/\s+/g,O).replace(new RegExp("\\"+O+"+","g"),O).replace(new RegExp("(^\\"+O+"+|\\"+O+"+$)","g"),""),d&&b.length>d&&(nt=b.charAt(d)===O,b=b.slice(0,d),nt||(b=b.slice(0,b.lastIndexOf(O)))),!W&&!j&&(b=b.toLowerCase()),b},E=function(p){return function(O){return i(O,p)}},c=function(p){return p.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(v,p){for(var g in p)if(p[g]===v)return!0};if(typeof t<"u"&&t.exports)t.exports=i,t.exports.createSlug=E;else if(typeof define<"u"&&define.amd)define([],function(){return i});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=i,n.createSlug=E}catch{}}(e)}}),ru=Dn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){l(),t.exports=nu()}});l();l();l();l();l();l();l();l();function uu(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function ou(e){const t=e.__file;if(t)return Mr($r(t,".vue"))}function dt(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function We(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function kn(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,u=We(e);return u?((n=u==null?void 0:u.types)==null?void 0:n.Fragment)===r:!1}function Se(e){var t,n,r;const u=uu((e==null?void 0:e.type)||{});if(u)return u;if((e==null?void 0:e.root)===e)return"Root";for(const s in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[s]===(e==null?void 0:e.type))return dt(e,s);for(const s in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[s]===(e==null?void 0:e.type))return dt(e,s);const o=ou((e==null?void 0:e.type)||{});return o||"Anonymous Component"}function su(e){var t,n,r;const u=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,o=e===(e==null?void 0:e.root)?"root":e.uid;return`${u}:${o}`}function Ve(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function au(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var ge;function iu(e){return ge||(ge=document.createRange()),ge.selectNode(e),ge.getBoundingClientRect()}function lu(e){const t=au();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const u=e.children[n];let o;if(u.component)o=G(u.component);else if(u.el){const s=u.el;s.nodeType===1||s.getBoundingClientRect?o=s.getBoundingClientRect():s.nodeType===3&&s.data.trim()&&(o=iu(s))}o&&cu(t,o)}return t}function cu(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var _t={top:0,left:0,right:0,bottom:0,width:0,height:0};function G(e){const t=e.subTree.el;return typeof window>"u"?_t:kn(e)?lu(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?G(e.subTree.component):_t}l();function qe(e){return kn(e)?fu(e.subTree):e.subTree?[e.subTree.el]:[]}function fu(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...qe(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Rn="__vue-devtools-component-inspector__",xn="__vue-devtools-component-inspector__card__",Pn="__vue-devtools-component-inspector__name__",Nn="__vue-devtools-component-inspector__indicator__",Fn={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},du={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},_u={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function re(){return document.getElementById(Rn)}function hu(){return document.getElementById(xn)}function Eu(){return document.getElementById(Nn)}function pu(){return document.getElementById(Pn)}function Ye(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Ze(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Rn,Object.assign(n.style,{...Fn,...Ye(e.bounds),...e.style});const r=document.createElement("span");r.id=xn,Object.assign(r.style,{...du,top:e.bounds.top<35?0:"-35px"});const u=document.createElement("span");u.id=Pn,u.innerHTML=`<${e.name}> `;const o=document.createElement("i");return o.id=Nn,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,_u),r.appendChild(u),r.appendChild(o),n.appendChild(r),document.body.appendChild(n),n}function Xe(e){const t=re(),n=hu(),r=pu(),u=Eu();t&&(Object.assign(t.style,{...Fn,...Ye(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`<${e.name}> `,u.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function gu(e){const t=G(e);if(!t.width&&!t.height)return;const n=Se(e);re()?Xe({bounds:t,name:n}):Ze({bounds:t,name:n})}function Ln(){const e=re();e&&(e.style.display="none")}var Be=null;function Ue(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Be=n,n.vnode.el)){const u=G(n),o=Se(n);re()?Xe({bounds:u,name:o}):Ze({bounds:u,name:o})}}}function mu(e,t){if(e.preventDefault(),e.stopPropagation(),Be){const n=su(Be);t(n)}}var be=null;function vu(){Ln(),window.removeEventListener("mouseover",Ue),window.removeEventListener("click",be,!0),be=null}function yu(){return window.addEventListener("mouseover",Ue),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),mu(n,r=>{window.removeEventListener("click",t,!0),be=null,window.removeEventListener("mouseover",Ue);const u=re();u&&(u.style.display="none"),e(JSON.stringify({id:r}))})}be=t,window.addEventListener("click",t,!0)})}function Au(e){const t=Ve(x.value,e.id);if(t){const[n]=qe(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=G(t),u=document.createElement("div"),o={...Ye(r),position:"absolute"};Object.assign(u.style,o),document.body.appendChild(u),u.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(u)},2e3)}setTimeout(()=>{const r=G(t);if(r.width||r.height){const u=Se(t),o=re();o?Xe({name:u,bounds:r}):Ze({...e,name:u,bounds:r}),setTimeout(()=>{o&&(o.style.display="none")},1500)}},1200)}}l();var ht,Et;(Et=(ht=m).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(ht.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function bu(e){let t=0;const n=setInterval(()=>{m.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function wu(){const e=m.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Ou(){return new Promise(e=>{function t(){wu(),e(m.__VUE_INSPECTOR__)}m.__VUE_INSPECTOR__?t():bu(()=>{t()})})}l();l();function Su(e){return!!(e&&e.__v_isReadonly)}function Vn(e){return Su(e)?Vn(e.__v_raw):!!(e&&e.__v_isReactive)}function ke(e){return!!(e&&e.__v_isRef===!0)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}var Tu=class{constructor(){this.refEditor=new Cu}set(e,t,n,r){const u=Array.isArray(t)?t:t.split(".");for(;u.length>1;){const a=u.shift();e instanceof Map&&(e=e.get(a)),e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const o=u[0],s=this.refEditor.get(e)[o];r?r(e,o,n):this.refEditor.isRef(s)?this.refEditor.set(s,n):e[o]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),u=n?2:1;for(;e&&r.length>u;){const o=r.shift();e=e[o],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):ae(t)instanceof Map?t.delete(n):ae(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const u=t[e.newKey||n];this.refEditor.isRef(u)?this.refEditor.set(u,r):ae(t)instanceof Map?t.set(e.newKey||n,r):ae(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Cu=class{set(e,t){if(ke(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(u=>e.add(u));return}const n=Object.keys(t);if(e instanceof Map){const u=new Set(e.keys());n.forEach(o=>{e.set(o,Reflect.get(t,o)),u.delete(o)}),u.forEach(o=>e.delete(o));return}const r=new Set(Object.keys(e));n.forEach(u=>{Reflect.set(e,u,Reflect.get(t,u)),r.delete(u)}),r.forEach(u=>Reflect.deleteProperty(e,u))}}get(e){return ke(e)?e.value:e}isRef(e){return ke(e)||Vn(e)}};l();l();l();var Iu="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Du(){if(!Lr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Iu);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}l();l();l();var pt,gt;(gt=(pt=m).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(pt.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var ku=new Proxy(m.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ru(e,t){D.timelineLayersState[t.id]=!1,ku.push({...e,descriptorId:t.id,appRecord:We(t.app)})}var mt,vt;(vt=(mt=m).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(mt.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Je=new Proxy(m.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Bn=ee(()=>{ue.hooks.callHook("sendInspectorToClient",Un())});function xu(e,t){var n,r;Je.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:We(t.app)}),Bn()}function Un(){return Je.filter(e=>e.descriptor.app===x.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function ve(e,t){return Je.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Pu(){const e=Cn();e.hook("addInspector",({inspector:r,plugin:u})=>{xu(r,u.descriptor)});const t=ee(async({inspectorId:r,plugin:u})=>{var o;if(!r||!((o=u==null?void 0:u.descriptor)!=null&&o.app)||D.highPerfModeEnabled)return;const s=ve(r,u.descriptor.app),a={app:u.descriptor.app,inspectorId:r,filter:(s==null?void 0:s.treeFilter)||"",rootNodes:[]};await new Promise(f=>{e.callHookWith(async h=>{await Promise.all(h.map(A=>A(a))),f()},"getInspectorTree")}),e.callHookWith(async f=>{await Promise.all(f.map(h=>h({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=ee(async({inspectorId:r,plugin:u})=>{var o;if(!r||!((o=u==null?void 0:u.descriptor)!=null&&o.app)||D.highPerfModeEnabled)return;const s=ve(r,u.descriptor.app),a={app:u.descriptor.app,inspectorId:r,nodeId:(s==null?void 0:s.selectedNodeId)||"",state:null},f={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(h=>{e.callHookWith(async A=>{await Promise.all(A.map(i=>i(a,f))),h()},"getInspectorState")}),e.callHookWith(async h=>{await Promise.all(h.map(A=>A({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:u,plugin:o})=>{const s=ve(r,o.descriptor.app);s&&(s.selectedNodeId=u)}),e.hook("timelineLayerAdded",({options:r,plugin:u})=>{Ru(r,u.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:u})=>{var o;const s=["performance","component-event","keyboard","mouse"];D.highPerfModeEnabled||!((o=D.timelineLayersState)!=null&&o[u.descriptor.id])&&!s.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(f=>f(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const u=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!u)return null;const o=u.id.toString();return[...u.instanceMap].filter(([a])=>a.split(":")[0]===o).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>G(r)),e.hook("getComponentName",({instance:r})=>Se(r)),e.hook("componentHighlight",({uid:r})=>{const u=x.value.instanceMap.get(r);u&&gu(u)}),e.hook("componentUnhighlight",()=>{Ln()}),e}var yt,At;(At=(yt=m).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(yt.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var bt,wt;(wt=(bt=m).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(bt.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Ot,St;(St=(Ot=m).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Ot.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Tt,Ct;(Ct=(Tt=m).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(Tt.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var It,Dt;(Dt=(It=m).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(It.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var X="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Nu(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Du()}}var kt,Rt;(Rt=(kt=m)[X])!=null||(kt[X]=Nu());var Fu=ee(e=>{ue.hooks.callHook("devtoolsStateUpdated",{state:e})});ee((e,t)=>{ue.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Te=new Proxy(m.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?m.__VUE_DEVTOOLS_KIT_APP_RECORDS__:m.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),x=new Proxy(m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Mn(){Fu({...m[X],appRecords:Te.value,activeAppRecordId:x.id,tabs:m.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:m.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Lu(e){m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Mn()}function Vu(e){m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Mn()}var D=new Proxy(m[X],{get(e,t){return t==="appRecords"?Te:t==="activeAppRecordId"?x.id:t==="tabs"?m.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?m.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:m[X][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,m[X][t]=n,!0}});function Bu(e={}){var t,n,r;const{file:u,host:o,baseUrl:s=window.location.origin,line:a=0,column:f=0}=e;if(u){if(o==="chrome-extension"){const h=u.replace(/\\/g,"\\\\"),A=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${A}__open-in-editor?file=${encodeURI(u)}`).then(i=>{if(!i.ok){const E=`Opening component ${h} failed`;console.log(`%c${E}`,"color:red")}})}else if(D.vitePluginDetected){const h=(r=m.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:s;m.__VUE_INSPECTOR__.openInEditor(h,u,a,f)}}}l();l();l();l();l();var xt,Pt;(Pt=(xt=m).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(xt.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Qe=new Proxy(m.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Me(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function et(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Uu(e){var t,n,r;const u=(n=(t=Qe.find(o=>{var s;return o[0].id===e&&!!((s=o[0])!=null&&s.settings)}))==null?void 0:t[0])!=null?n:null;return(r=u==null?void 0:u.settings)!=null?r:null}function $n(e,t){var n,r,u;const o=et(e);if(o){const s=localStorage.getItem(o);if(s)return JSON.parse(s)}if(e){const s=(r=(n=Qe.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return Me((u=s==null?void 0:s.settings)!=null?u:{})}return Me(t)}function Mu(e,t){const n=et(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Me(t)))}function $u(e,t,n){const r=et(e),u=localStorage.getItem(r),o=JSON.parse(u||"{}"),s={...o,[t]:n};localStorage.setItem(r,JSON.stringify(s)),ue.hooks.callHookWith(a=>{a.forEach(f=>f({pluginId:e,key:t,oldValue:o[t],newValue:n,settings:s}))},"setPluginSettings")}l();l();l();l();l();l();l();l();l();l();l();var Nt,Ft,P=(Ft=(Nt=m).__VUE_DEVTOOLS_HOOK)!=null?Ft:Nt.__VUE_DEVTOOLS_HOOK=Cn(),Ku={vueAppInit(e){P.hook("app:init",e)},vueAppUnmount(e){P.hook("app:unmount",e)},vueAppConnected(e){P.hook("app:connected",e)},componentAdded(e){return P.hook("component:added",e)},componentEmit(e){return P.hook("component:emit",e)},componentUpdated(e){return P.hook("component:updated",e)},componentRemoved(e){return P.hook("component:removed",e)},setupDevtoolsPlugin(e){P.hook("devtools-plugin:setup",e)},perfStart(e){return P.hook("perf:start",e)},perfEnd(e){return P.hook("perf:end",e)}},Kn={on:Ku,setupDevToolsPlugin(e,t){return P.callHook("devtools-plugin:setup",e,t)}},zu=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(D.highPerfModeEnabled)return;const n=Un().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];P.callHook("component:updated",...r)}else P.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Mu(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return D.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){D.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return $n(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Hu=zu;l();l();l();l();var ju="__vue_devtool_undefined__",Gu="__vue_devtool_infinity__",Wu="__vue_devtool_negative_infinity__",qu="__vue_devtool_nan__";l();l();var Yu={[ju]:"undefined",[qu]:"NaN",[Gu]:"Infinity",[Wu]:"-Infinity"};Object.entries(Yu).reduce((e,[t,n])=>(e[n]=t,e),{});l();l();l();l();l();var Lt,Vt;(Vt=(Lt=m).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(Lt.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Zu(e,t){return Kn.setupDevToolsPlugin(e,t)}function Xu(e,t){const[n,r]=e;if(n.app!==t)return;const u=new Hu({plugin:{setupFn:r,descriptor:n},ctx:ue});n.packageName==="vuex"&&u.on.editInspectorState(o=>{u.sendInspectorState(o.inspectorId)}),r(u)}function zn(e,t){m.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||D.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(m.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Qe.forEach(n=>{Xu(n,e)}))}l();l();var fe="__VUE_DEVTOOLS_ROUTER__",te="__VUE_DEVTOOLS_ROUTER_INFO__",Bt,Ut;(Ut=(Bt=m)[te])!=null||(Bt[te]={currentRoute:null,routes:[]});var Mt,$t;($t=(Mt=m)[fe])!=null||(Mt[fe]={});new Proxy(m[te],{get(e,t){return m[te][t]}});new Proxy(m[fe],{get(e,t){if(t==="value")return m[fe]}});function Ju(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function tt(e){return e.map(t=>{let{path:n,name:r,children:u,meta:o}=t;return u!=null&&u.length&&(u=tt(u)),{path:n,name:r,children:u,meta:o}})}function Qu(e){if(e){const{fullPath:t,hash:n,href:r,path:u,name:o,matched:s,params:a,query:f}=e;return{fullPath:t,hash:n,href:r,path:u,name:o,params:a,query:f,matched:tt(s)}}return e}function eo(e,t){function n(){var r;const u=(r=e.app)==null?void 0:r.config.globalProperties.$router,o=Qu(u==null?void 0:u.currentRoute.value),s=tt(Ju(u)),a=console.warn;console.warn=()=>{},m[te]={currentRoute:o?ft(o):{},routes:ft(s)},m[fe]=u,console.warn=a}n(),Kn.on.componentUpdated(ee(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!D.highPerfModeEnabled&&ue.hooks.callHook("routerInfoUpdated",{state:m[te]}))},200))}function to(e){return{async getInspectorTree(t){const n={...t,app:x.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async u=>{await Promise.all(u.map(o=>o(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:x.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(u=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n,r))),u()},"getInspectorState")}),n.state},editInspectorState(t){const n=new Tu,r={...t,app:x.value.app,set:(u,o=t.path,s=t.state.value,a)=>{n.set(u,o,s,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(u=>{u.forEach(o=>o(r))},"editInspectorState")},sendInspectorState(t){const n=ve(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return yu()},cancelInspectComponentInspector(){return vu()},getComponentRenderCode(t){const n=Ve(x.value,t);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent(t){return Au({id:t})},openInEditor:Bu,getVueInspector:Ou,toggleApp(t,n){const r=Te.value.find(u=>u.id===t);r&&(Vu(t),Lu(r),eo(r,x),Bn(),zn(r.app,n))},inspectDOM(t){const n=Ve(x.value,t);if(n){const[r]=qe(n);r&&(m.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){$u(t,n,r)},getPluginSettings(t){return{options:Uu(t),values:$n(t)}}}}l();var Kt,zt;(zt=(Kt=m).__VUE_DEVTOOLS_ENV__)!=null||(Kt.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Ht=Pu(),jt,Gt;(Gt=(jt=m).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(jt.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Ht,get state(){return{...D,activeAppRecordId:x.id,activeAppRecord:x.value,appRecords:Te.value}},api:to(Ht)});var ue=m.__VUE_DEVTOOLS_KIT_CONTEXT__;l();tu(ru());var Wt,qt;(qt=(Wt=m).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Wt.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});l();function no(e){D.highPerfModeEnabled=e??!D.highPerfModeEnabled,!e&&x.value&&zn(x.value.app)}l();l();l();function ro(e){D.devtoolsClientDetected={...D.devtoolsClientDetected,...e};const t=Object.values(D.devtoolsClientDetected).some(Boolean);no(!t)}var Yt,Zt;(Zt=(Yt=m).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(Yt.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ro);l();l();l();l();l();l();l();var uo=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Hn=class{constructor(e){this.generateIdentifier=e,this.kv=new uo}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},oo=class extends Hn{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};l();l();function so(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ao(e,t){const n=so(e);if("find"in n)return n.find(t);const r=n;for(let u=0;u<r.length;u++){const o=r[u];if(t(o))return o}}function ne(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function ye(e,t){return e.indexOf(t)!==-1}function Xt(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var io=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ao(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};l();l();var lo=e=>Object.prototype.toString.call(e).slice(8,-1),jn=e=>typeof e>"u",co=e=>e===null,de=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,$e=e=>de(e)&&Object.keys(e).length===0,z=e=>Array.isArray(e),fo=e=>typeof e=="string",_o=e=>typeof e=="number"&&!isNaN(e),ho=e=>typeof e=="boolean",Eo=e=>e instanceof RegExp,_e=e=>e instanceof Map,he=e=>e instanceof Set,Gn=e=>lo(e)==="Symbol",po=e=>e instanceof Date&&!isNaN(e.valueOf()),go=e=>e instanceof Error,Jt=e=>typeof e=="number"&&isNaN(e),mo=e=>ho(e)||co(e)||jn(e)||_o(e)||fo(e)||Gn(e),vo=e=>typeof e=="bigint",yo=e=>e===1/0||e===-1/0,Ao=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),bo=e=>e instanceof URL;l();var Wn=e=>e.replace(/\./g,"\\."),Re=e=>e.map(String).map(Wn).join("."),le=e=>{const t=[];let n="";for(let u=0;u<e.length;u++){let o=e.charAt(u);if(o==="\\"&&e.charAt(u+1)==="."){n+=".",u++;continue}if(o==="."){t.push(n),n="";continue}n+=o}const r=n;return t.push(r),t};l();function U(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var qn=[U(jn,"undefined",()=>null,()=>{}),U(vo,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),U(po,"Date",e=>e.toISOString(),e=>new Date(e)),U(go,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),U(Eo,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),U(he,"set",e=>[...e.values()],e=>new Set(e)),U(_e,"map",e=>[...e.entries()],e=>new Map(e)),U(e=>Jt(e)||yo(e),"number",e=>Jt(e)?"NaN":e>0?"Infinity":"-Infinity",Number),U(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),U(bo,"URL",e=>e.toString(),e=>new URL(e))];function Ce(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Yn=Ce((e,t)=>Gn(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),wo=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Zn=Ce(Ao,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=wo[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Xn(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Jn=Ce(Xn,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(u=>{r[u]=e[u]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Qn=Ce((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Oo=[Jn,Yn,Qn,Zn],Qt=(e,t)=>{const n=Xt(Oo,u=>u.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Xt(qn,u=>u.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},er={};qn.forEach(e=>{er[e.annotation]=e});var So=(e,t,n)=>{if(z(t))switch(t[0]){case"symbol":return Yn.untransform(e,t,n);case"class":return Jn.untransform(e,t,n);case"custom":return Qn.untransform(e,t,n);case"typed-array":return Zn.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=er[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};l();var Y=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function tr(e){if(ye(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ye(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ye(e,"constructor"))throw new Error("constructor is not allowed as a property")}var To=(e,t)=>{tr(t);for(let n=0;n<t.length;n++){const r=t[n];if(he(e))e=Y(e,+r);else if(_e(e)){const u=+r,o=+t[++n]==0?"key":"value",s=Y(e,u);switch(o){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},Ke=(e,t,n)=>{if(tr(t),t.length===0)return n(e);let r=e;for(let o=0;o<t.length-1;o++){const s=t[o];if(z(r)){const a=+s;r=r[a]}else if(de(r))r=r[s];else if(he(r)){const a=+s;r=Y(r,a)}else if(_e(r)){if(o===t.length-2)break;const f=+s,h=+t[++o]==0?"key":"value",A=Y(r,f);switch(h){case"key":r=A;break;case"value":r=r.get(A);break}}}const u=t[t.length-1];if(z(r)?r[+u]=n(r[+u]):de(r)&&(r[u]=n(r[u])),he(r)){const o=Y(r,+u),s=n(o);o!==s&&(r.delete(o),r.add(s))}if(_e(r)){const o=+t[t.length-2],s=Y(r,o);switch(+u==0?"key":"value"){case"key":{const f=n(s);r.set(f,r.get(s)),f!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};function ze(e,t,n=[]){if(!e)return;if(!z(e)){ne(e,(o,s)=>ze(o,t,[...n,...le(s)]));return}const[r,u]=e;u&&ne(u,(o,s)=>{ze(o,t,[...n,...le(s)])}),t(r,n)}function Co(e,t,n){return ze(t,(r,u)=>{e=Ke(e,u,o=>So(o,r,n))}),e}function Io(e,t){function n(r,u){const o=To(e,le(u));r.map(le).forEach(s=>{e=Ke(e,s,()=>o)})}if(z(t)){const[r,u]=t;r.forEach(o=>{e=Ke(e,le(o),()=>e)}),u&&ne(u,n)}else ne(t,n);return e}var Do=(e,t)=>de(e)||z(e)||_e(e)||he(e)||Xn(e,t);function ko(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Ro(e,t){const n={};let r;return e.forEach(u=>{if(u.length<=1)return;t||(u=u.map(a=>a.map(String)).sort((a,f)=>a.length-f.length));const[o,...s]=u;o.length===0?r=s.map(Re):n[Re(o)]=s.map(Re)}),r?$e(n)?[r]:[r,n]:$e(n)?void 0:n}var nr=(e,t,n,r,u=[],o=[],s=new Map)=>{var a;const f=mo(e);if(!f){ko(e,u,t);const _=s.get(e);if(_)return r?{transformedValue:null}:_}if(!Do(e,n)){const _=Qt(e,n),v=_?{transformedValue:_.value,annotations:[_.type]}:{transformedValue:e};return f||s.set(e,v),v}if(ye(o,e))return{transformedValue:null};const h=Qt(e,n),A=(a=h==null?void 0:h.value)!=null?a:e,i=z(A)?[]:{},E={};ne(A,(_,v)=>{if(v==="__proto__"||v==="constructor"||v==="prototype")throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);const p=nr(_,t,n,r,[...u,v],[...o,e],s);i[v]=p.transformedValue,z(p.annotations)?E[v]=p.annotations:de(p.annotations)&&ne(p.annotations,(g,O)=>{E[Wn(v)+"."+O]=g})});const c=$e(E)?{transformedValue:i,annotations:h?[h.type]:void 0}:{transformedValue:i,annotations:h?[h.type,E]:E};return f||s.set(e,c),c};l();l();function rr(e){return Object.prototype.toString.call(e).slice(8,-1)}function en(e){return rr(e)==="Array"}function xo(e){if(rr(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Po(e,t,n,r,u){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),u&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function He(e,t={}){if(en(e))return e.map(u=>He(u,t));if(!xo(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((u,o)=>{if(en(t.props)&&!t.props.includes(o))return u;const s=e[o],a=He(s,t);return Po(u,o,a,e,t.nonenumerable),u},{})}var T=class{constructor({dedupe:e=!1}={}){this.classRegistry=new oo,this.symbolRegistry=new Hn(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new io,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=nr(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const u=Ro(t,this.dedupe);return u&&(r.meta={...r.meta,referentialEqualities:u}),r}deserialize(e){const{json:t,meta:n}=e;let r=He(t);return n!=null&&n.values&&(r=Co(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=Io(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};T.defaultInstance=new T;T.serialize=T.defaultInstance.serialize.bind(T.defaultInstance);T.deserialize=T.defaultInstance.deserialize.bind(T.defaultInstance);T.stringify=T.defaultInstance.stringify.bind(T.defaultInstance);T.parse=T.defaultInstance.parse.bind(T.defaultInstance);T.registerClass=T.defaultInstance.registerClass.bind(T.defaultInstance);T.registerSymbol=T.defaultInstance.registerSymbol.bind(T.defaultInstance);T.registerCustom=T.defaultInstance.registerCustom.bind(T.defaultInstance);T.allowErrorProps=T.defaultInstance.allowErrorProps.bind(T.defaultInstance);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var tn,nn;(nn=(tn=m).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(tn.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var rn,un;(un=(rn=m).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(rn.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var on,sn;(sn=(on=m).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(on.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var an,ln;(ln=(an=m).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(an.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var cn,fn;(fn=(cn=m).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(cn.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var dn,_n;(_n=(dn=m).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(dn.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);l();l();l();l();l();l();l();var No="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Fo="âḃćḋèḟĝḫíĵǩĺṁńŏṗɋŕśṭůṿẘẋẏẓḀḂḈḊḔḞḠḢḬĴḴĻḾŊÕṔɊŔṠṮŨṼẄẌŸƵ";function Lo(e,t){let n="";t.prefix&&(n+=t.prefix);for(let r=0;r<e.length;r++){const u=e[r],o=t.accents?Fo[No.indexOf(u)]??u:u;n+=o}return t.suffix&&(n+=t.suffix),n}function Vo(e,t,n){let r;const u=new Map,o=t.warnMissing;t.warnMissing=f=>{const h=R.getCurrentInstance();o(f),h&&(u.set(h,u.get(h)??new Set),u.get(h).add(f))};const s=new WeakSet;R.watchEffect(()=>{const f=n.bundles;for(const h of f){if(s.has(h))continue;const A=h._transform;h._transform=i=>(A!=null&&(i=A(i)),r!=null&&(i=r(i)),i),s.add(h)}},{flush:"sync"});const a=R.computed(()=>[...n.bundles].map(f=>{const h=new Oe(f.locales,{functions:f._functions,useIsolating:f._useIsolating});return h._terms=f._terms,h._messages=f._messages,h}));Zu({id:"fluent-vue",label:"fluent-vue",packageName:"fluent-vue",homepage:"https://fluent-vue.demivan.me",logo:"https://fluent-vue.demivan.me/assets/logo.svg",componentStateTypes:["fluent-vue"],app:e,settings:{components:{label:"Components"},showLocalized:{defaultValue:!0,label:"Mark localized",description:"Mark localized components in component tree",type:"boolean"},markMissing:{defaultValue:!0,label:"Mark missing",description:"Mark missing translations in component tree",type:"boolean"},showI18n:{defaultValue:!0,label:"Mark i18n",description:"Mark i18n components in component tree",type:"boolean"},pseudo:{label:"Pseudolocalization"},pseudoEnable:{defaultValue:!1,label:"Enable",description:"Enable pseudolocalization",type:"boolean"},pseudoAccents:{defaultValue:!0,label:"Accents",description:"Enable pseudolocalization accents",type:"boolean"},pseudoPrefix:{label:"Prefix",type:"text",description:"Prefix to wrap translation",defaultValue:"["},pseudoSuffix:{label:"Suffix",type:"text",description:"Suffix to wrap translation",defaultValue:"]"}}},f=>{f.on.visitComponentTree(({treeNode:i,componentInstance:E})=>{var c;const _=f.getSettings();_.showI18n&&i.name===t.componentName&&i.tags.push({label:"fluent-vue",textColor:0,backgroundColor:4307075}),_.showLocalized&&((c=E==null?void 0:E.proxy)==null?void 0:c.$options.fluent)!=null&&i.tags.push({label:"localized",textColor:0,backgroundColor:4307075});const v=u.get(E);_.markMissing&&v!=null&&v.size>0&&i.tags.push({label:"missing translations",textColor:16777215,backgroundColor:11534368})}),f.on.inspectComponent(({componentInstance:i,instanceData:E})=>{var c;const _=u.get(i);if(_)for(const g of _.values())E.state.push({type:"Missing translations",key:g,editable:!1,value:{_custom:{type:"custom",display:'<span style="color:#B00020">Missing</span>'}}});const v=(c=i==null?void 0:i.proxy)==null?void 0:c.$options.fluent;if(!v)return;const p=a.value;for(const[g,O]of Object.entries(v)){const b=p.find(I=>I.locales.includes(g));if(b!=null)for(const I of O.body){const H=b.hasMessage(I.id);E.state.push({type:`Component translations (${g})`,key:I.id,editable:!1,value:{_custom:{type:"custom",display:(I.value?b.formatPattern(I.value,{},[]):"")+(H?' <span style="color:#ffa726">Global</span>':"")}}})}}}),f.on.getInspectorTree(i=>{i.inspectorId==="fluent-vue-inspector"&&(i.rootNodes=[{id:"global",label:"Global translations"},{id:"missing",label:"Missing translations"}])});const h=new Set;f.on.getInspectorState(async i=>{if(i.inspectorId==="fluent-vue-inspector"){if(i.nodeId==="global"){i.state={};for(const E of a.value)i.state[E.locales.join(",")]=[...E._messages.entries()].map(([c,_])=>({key:_.id,value:_.value?E.formatPattern(_.value,{},[]):""}))}if(i.nodeId==="missing"){i.state={};for(const E of a.value){const c=E.locales.join(",");for(const[_,v]of u.entries())for(const p of v)i.state[c]=i.state[c]??[],i.state[c].push({key:p,editable:!0,value:{_custom:{type:"component",value:h.has(_),display:await f.getComponentName(_)}}})}}}}),f.on.editInspectorState(i=>{if(i.inspectorId==="fluent-vue-inspector"&&i.nodeId==="missing"){const E=i.path[0],[c]=u.entries().find(([_,v])=>v.has(E))??[];c!=null&&(i.state.value?(h.add(c),f.highlightElement(c)):(h.delete(c),f.unhighlightElement()))}});function A(i){i.pseudoEnable?r=E=>Lo(E,{prefix:i.pseudoPrefix??void 0,suffix:i.pseudoSuffix??void 0,accents:i.pseudoAccents??!1}):r=void 0,n.bundles=[...n.bundles]}f.on.setPluginSettings(i=>{A(i.settings)}),A(f.getSettings()),f.addInspector({id:"fluent-vue-inspector",label:"fluent-vue"})})}function Bo(e){Or(typeof DOMParser<"u","DOMParser is not available. Please provide a custom parseMarkup function.");const n=new DOMParser().parseFromString(e,"text/html");return Array.from(n.body.childNodes)}function Uo(e){Q(`Could not find translation for key [${e}]`)}function Mo(e){return e.warnMissing===!0||e.warnMissing==null?Uo:e.warnMissing===!1?()=>{}:e.warnMissing}function $o(e){var t,n,r,u,o,s;return{warnMissing:Mo(e),parseMarkup:e.parseMarkup??Bo,mapVariable:e.mapVariable,globalFormatName:((n=(t=e.globals)==null?void 0:t.functions)==null?void 0:n.format)??"$t",globalFormatAttrsName:((u=(r=e.globals)==null?void 0:r.functions)==null?void 0:u.formatAttrs)??"$ta",directiveName:((o=e.globals)==null?void 0:o.directive)??"t",componentName:((s=e.globals)==null?void 0:s.component)??"i18n",componentTag:e.componentTag??"span"}}var Ko=/-(\w)/g;function zo(e){return e.replace(Ko,(t,n)=>n.toUpperCase())}function ur(e){const t=e==null?void 0:e.$parent,n=t==null?void 0:t.$options;return n!=null&&n.fluent==null?ur(t):t}var Ho=/<|&#?\w+;/;function jo(e,t){return R.defineComponent({name:e.componentName,props:{path:{type:String,required:!0},tag:{type:[String,Boolean],default:e.componentTag},args:{type:Object,default:()=>({})},html:{type:Boolean,default:!1},noTag:{type:Boolean,default:!1}},setup(n,{slots:r,attrs:u}){const o=R.getCurrentInstance(),s=ur(o==null?void 0:o.proxy),a=Z(t,s),f=R.computed(()=>{const E=Object.assign({},n.args,...Object.keys(r).map(v=>({[v]:`${v}`}))),c=a.formatWithAttrs(n.path,E),_=Object.fromEntries(Object.entries(c.attributes).map(([v,p])=>[zo(v),p]));return{value:c.value,attributes:_}}),h=E=>E==null?void 0:E.split("").map(c=>c.startsWith("")?r[c.replace("","")](f.value.attributes):c),A=E=>{if(E.nodeType===3)return h(E.nodeValue);if(E.nodeType===1){const c=E;return R.h(c.nodeName.toLowerCase(),{...Object.fromEntries(Array.from(c.attributes).map(_=>[_.name,_.value]))},Array.from(c.childNodes).map(_=>A(_)))}return Q(`Unsupported node type: ${E.nodeType}. If you need support for it, please, create an issue in fluent-vue repository.`),[]},i=R.computed(()=>!n.html||!Ho.test(f.value.value)?h(f.value.value):a.options.parseMarkup(f.value.value).map(A));return()=>n.tag===!1||n.noTag?i.value:R.h(n.tag,{...u},i.value)}})}var xe={global:["title","aria-label","aria-valuetext","aria-moz-hint"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]};function Go(e,t,n=[]){if(n.includes(e))return!0;const r=e.toLowerCase(),u=t.localName;if(xe.global.includes(r))return!0;if(xe[u]==null)return!1;if(xe[u].includes(r))return!0;if(t.namespaceURI==="http://www.w3.org/1999/xhtml"&&u==="input"&&r==="value"){const o=t.type.toLowerCase();if(o==="submit"||o==="button"||o==="reset")return!0}return!1}function hn(e,t,n){const r=n.arg;if(r===void 0){Q("v-t directive is missing arg with translation key");return}const u=t.formatWithAttrs(r,n.value);u.hasValue&&(e.textContent=u.value);const o=Object.keys(n.modifiers);for(const[s,a]of Object.entries(u.attributes))Go(s,e,o)?e.setAttribute(s,a):Q(`Attribute '${s}' on element <${e.tagName.toLowerCase()}> is not localizable. Remove it from the translation. Translation key: ${r}`)}function Wo(e){return{mounted(t,n){R.watchEffect(()=>{const r=Z(e,n.instance);hn(t,r,n)})},updated(t,n){const r=Z(e,n.instance);hn(t,r,n)},getSSRProps(t){const n=Z(e,t.instance);if(t.arg===void 0)return Q("v-t directive is missing arg with translation key"),{};const r=n.formatWithAttrs(t.arg,t.value),u=r.attributes;return r.hasValue&&(u.textContent=r.value),u}}}function qo(e){const t=R.shallowRef(e.bundles),n=$o(e),r=new wn(t,n);return{get bundles(){return t.value},set bundles(u){t.value=u},mergedWith:u=>On(r,u),format:r.format.bind(r),formatAttrs:r.formatAttrs.bind(r),formatWithAttrs:r.formatWithAttrs.bind(r),$t:r.format.bind(r),$ta:r.formatAttrs.bind(r),install(u){{const o=u;process.env.NODE_ENV!=="production"&&Vo(o,n,this),o.provide(Tr,r),o.config.globalProperties[n.globalFormatName]=function(s,a){return Z(r,this).format(s,a)},o.config.globalProperties[n.globalFormatAttrsName]=function(s,a){return Z(r,this).formatAttrs(s,a)},o.directive(n.directiveName,Wo(r))}u.component(n.componentName,jo(n,r))}}}const Yo={useCache:!0},Zo=`No bundles! you must await .ready before installing
|
|
2
|
-
LocaleManager as a plugin. Either instantiate with warmUp = true (default) or
|
|
3
|
-
call and await .change() manually.`.replace(`
|
|
4
|
-
`," ");class Xo{constructor({bundleSource:t,preferredLocale:n,allowedLocales:r,namespaces:u,fallbackLocale:o,warmUp:s=!0}){this.localStorageKey="user-locale",this.allowedLocales=[],this.currentNamespaces=new Set,this._resolveReady=null,this.fluent=null,this._cachedBundles=null,this._cachedHash=null,this.preferredLocale=null,this.bundleSource=t,this.fallbackLocale=o,this.setOptions({allowedLocales:r,preferredLocale:n,namespaces:u}),this.ready=new Promise(a=>{this._resolveReady=a}),s&&this.warmUp()}async warmUp(){if(this._resolveReady===null)throw new Error("you should not have called this!");if(this.currentNamespaces.size===0)throw new Error("provide at least one namespace when using auto-init!");try{await this.getCurrentBundles(),this._resolveReady(null)}catch(t){t instanceof Error?this._resolveReady(t):this._resolveReady(new Error(`${t}`))}finally{this._resolveReady=null}}get fluentFormat(){var t;if((t=this.fluent)!=null&&t.format)return this.fluent.format;throw new Error("fluent not ready")}get fluentFormatAttrs(){var t;if((t=this.fluent)!=null&&t.formatAttrs)return this.fluent.formatAttrs;throw new Error("fluent not ready")}async change(t){const n={...Yo,...t};n.useCache||(this._cachedHash=null,this._cachedBundles=null),this.setOptions({allowedLocales:n.allowedLocales,preferredLocale:n.preferredLocale,namespaces:n.namespaces});const r=await this.getCurrentBundles();this.fluent!==null&&(this.fluent.bundles=r),this._resolveReady&&this._resolveReady(null)}initFluent(){return qo({bundles:this.currentBundles})}determineLocale({preferredLocale:t,allowedLocales:n}){if(t)return t;if(n&&n.length>0)return n[0];const r=this.getStoredLocale();if(r)return r;const u=this.getBrowserLocale();return u||this.fallbackLocale}getStoredLocale(){return localStorage.getItem(this.localStorageKey)}saveLocale(t){localStorage.setItem(this.localStorageKey,t)}getBrowserLocale(){const t=navigator.languages;return t.length>0?t[0]:null}get fluentPlugin(){return this.fluent===null&&(this.fluent=this.initFluent()),this.fluent}get currentBundles(){if(this._cachedBundles===null)throw new Error(Zo);return this._cachedBundles}get activeLocales(){return!this.preferredLocale||this.preferredLocale===this.fallbackLocale?[this.fallbackLocale]:[this.preferredLocale,this.fallbackLocale]}setOptions({preferredLocale:t,allowedLocales:n,namespaces:r}){n&&this.setAllowedLocales(n),this.setPreferredLocale(this.determineLocale({allowedLocales:n,preferredLocale:t})),r&&this.addNamespaces(r)}setPreferredLocale(t){this.preferredLocale=t;const n=this.allowedLocales.indexOf(t);n!==-1&&this.allowedLocales.splice(n,1),this.allowedLocales.unshift(t),this.setCurrentLocaleProp(this.preferredLocale),this.saveLocale(t)}setAllowedLocales(t){this.allowedLocales=[...t],this.allowedLocales.includes(this.fallbackLocale)||this.allowedLocales.push(this.fallbackLocale)}addNamespaces(t){for(const n of t)this.currentNamespaces.add(n)}async getCurrentBundles(){if(this.currentNamespaces.size===0)throw new Error("no namespaces set!");const t=this.activeLocales,n=[...this.currentNamespaces],r=this.hashState(t,n);return this.getCachedBundles(r)??this.loadBundles(t,n)}async loadBundles(t,n){const r=await this.bundleSource.getBundles(t,n);return this._cachedHash=this.hashState(t,n),this._cachedBundles=r,r}getCachedBundles(t){return this._cachedBundles===null||this._cachedHash!==t?null:this._cachedBundles}hashState(t,n){return`${t}|${[...n].sort()}`}}const Pe=/^(-?[a-zA-Z][\w-]*) *= */gm,En=/\.([a-zA-Z][\w-]*) *= */y,Jo=/\*?\[/y,Ne=/(-?[0-9]+(?:\.([0-9]+))?)/y,Qo=/([a-zA-Z][\w-]*)/y,pn=/([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y,es=/^[A-Z][A-Z0-9_-]*$/,me=/([^{}\n\r]+)/y,ts=/([^\\"\n\r]*)/y,gn=/\\([\\"])/y,mn=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y,ns=/^\n+/,vn=/ +$/,rs=/ *\r?\n/g,us=/( *)$/,os=/{\s*/y,yn=/\s*}/y,ss=/\[\s*/y,as=/\s*] */y,is=/\s*\(\s*/y,ls=/\s*->\s*/y,cs=/\s*:\s*/y,fs=/\s*,?\s*/y,ds=/\s+/y;class or{constructor(t){this.body=[],Pe.lastIndex=0;let n=0;for(;;){let d=Pe.exec(t);if(d===null)break;n=Pe.lastIndex;try{this.body.push(f(d[1]))}catch(y){if(y instanceof SyntaxError)continue;throw y}}function r(d){return d.lastIndex=n,d.test(t)}function u(d,y){if(t[n]===d)return n++,!0;if(y)throw new y(`Expected ${d}`);return!1}function o(d,y){if(r(d))return n=d.lastIndex,!0;if(y)throw new y(`Expected ${d.toString()}`);return!1}function s(d){d.lastIndex=n;let y=d.exec(t);if(y===null)throw new SyntaxError(`Expected ${d.toString()}`);return n=d.lastIndex,y}function a(d){return s(d)[1]}function f(d){let y=A(),S=h();if(y===null&&Object.keys(S).length===0)throw new SyntaxError("Expected message value or attributes");return{id:d,value:y,attributes:S}}function h(){let d=Object.create(null);for(;r(En);){let y=a(En),S=A();if(S===null)throw new SyntaxError("Expected attribute value");d[y]=S}return d}function A(){let d;if(r(me)&&(d=a(me)),t[n]==="{"||t[n]==="}")return i(d?[d]:[],1/0);let y=N();return y?d?i([d,y],y.length):(y.value=W(y.value,ns),i([y],y.length)):d?W(d,vn):null}function i(d=[],y){for(;;){if(r(me)){d.push(a(me));continue}if(t[n]==="{"){d.push(E());continue}if(t[n]==="}")throw new SyntaxError("Unbalanced closing brace");let k=N();if(k){d.push(k),y=Math.min(y,k.length);continue}break}let S=d.length-1,V=d[S];typeof V=="string"&&(d[S]=W(V,vn));let F=[];for(let k of d)k instanceof An&&(k=k.value.slice(0,k.value.length-y)),k&&F.push(k);return F}function E(){o(os,SyntaxError);let d=c();if(o(yn))return d;if(o(ls)){let y=p();return o(yn,SyntaxError),{type:"select",selector:d,...y}}throw new SyntaxError("Unclosed placeable")}function c(){if(t[n]==="{")return E();if(r(pn)){let[,d,y,S=null]=s(pn);if(d==="$")return{type:"var",name:y};if(o(is)){let V=_();if(d==="-")return{type:"term",name:y,attr:S,args:V};if(es.test(y))return{type:"func",name:y,args:V};throw new SyntaxError("Function names must be all upper-case")}return d==="-"?{type:"term",name:y,attr:S,args:[]}:{type:"mesg",name:y,attr:S}}return O()}function _(){let d=[];for(;;){switch(t[n]){case")":return n++,d;case void 0:throw new SyntaxError("Unclosed argument list")}d.push(v()),o(fs)}}function v(){let d=c();return d.type!=="mesg"?d:o(cs)?{type:"narg",name:d.name,value:O()}:d}function p(){let d=[],y=0,S;for(;r(Jo);){u("*")&&(S=y);let V=g(),F=A();if(F===null)throw new SyntaxError("Expected variant value");d[y++]={key:V,value:F}}if(y===0)return null;if(S===void 0)throw new SyntaxError("Expected default variant");return{variants:d,star:S}}function g(){o(ss,SyntaxError);let d;return r(Ne)?d=b():d={type:"str",value:a(Qo)},o(as,SyntaxError),d}function O(){if(r(Ne))return b();if(t[n]==='"')return I();throw new SyntaxError("Invalid expression")}function b(){let[,d,y=""]=s(Ne),S=y.length;return{type:"num",value:parseFloat(d),precision:S}}function I(){u('"',SyntaxError);let d="";for(;;){if(d+=a(ts),t[n]==="\\"){d+=H();continue}if(u('"'))return{type:"str",value:d};throw new SyntaxError("Unclosed string literal")}}function H(){if(r(gn))return a(gn);if(r(mn)){let[,d,y]=s(mn),S=parseInt(d||y,16);return S<=55295||57344<=S?String.fromCodePoint(S):"�"}throw new SyntaxError("Unknown escape sequence")}function N(){let d=n;switch(o(ds),t[n]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return j(t.slice(d,n))}return t[n-1]===" "?j(t.slice(d,n)):!1}function W(d,y){return d.replace(y,"")}function j(d){let y=d.replace(rs,`
|
|
5
|
-
`),S=us.exec(d)[1].length;return new An(y,S)}}}class An{constructor(t,n){this.value=t,this.length=n}}const _s=(e,t)=>fetch(`/locales/${e}`,t);class hs{constructor(t){se(this,"fetch");se(this,"resources",new Map);this.fetch=t.fetch??_s}getKey(t,n){return`${n}/${t}`}async getBundles(t,n){const r=[],u=[];for(const o of t){const s=new Oe(o);r.push(s);for(const a of n){const f=this.getKey(o,a),h=this.resources.get(f);h?s.addResource(h):u.push([s,f,this.fetchResource(f)])}}return await this.awaitResources(u),r}async awaitResources(t){for(const[n,r,u]of t){let o=null;try{o=await u}catch(s){console.warn(`exception while fetching resource for "${r}"`),console.error(s)}o===null?console.warn(`couldn't load resource for "${r}"`):n.addResource(o)}}async fetchResource(t){const n=await this.fetch(t);if(n.ok){const r=new or(await n.text());return this.resources.set(t,r),r}else return console.warn(`could not load i18n for ${t}`),null}}class Es{constructor(t){se(this,"bundles",new Map);se(this,"keys",new Set);for(const[n,r,u]of t.resources){const o=this.getKey(n,r);if(this.keys.has(o))throw new Error(`${o} was provided more than once!`);this.keys.add(o),this.getBundle(n).addResource(new or(u))}}static async dynamicResources(t){const n=[];for(const[r,u,o]of t)if(typeof o=="string")n.push([r,u,o]);else{const s=await o;if(typeof s.default!="string")throw new Error(".ftl text needs to be the default export!");n.push([r,u,s.default])}return n}getBundle(t){if(this.bundles.has(t))return this.bundles.get(t);const n=new Oe(t);return this.bundles.set(t,n),n}getKey(t,n){return`${n}/${t}`}async getBundles(t,n){const r=[];for(const u of t){for(const o of n){const s=this.getKey(u,o);if(!this.keys.has(s))throw new Error(`resource ${s} was not provided at init!`)}r.push(this.getBundle(u))}return r}}var ps=Object.defineProperty,gs=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ms=(e,t,n)=>(gs(e,t+"",n),n);const vs=Symbol("GLOBAL_LOCALE_MANAGER");class ys extends Xo{constructor(){super(...arguments),ms(this,"currentLocaleProp",R.observable({value:null}))}setCurrentLocaleProp(t){this.currentLocaleProp=R.observable({value:t})}install(){this.fluent===null&&(this.fluent=this.initFluent()),R.prototype.$localeManager=this}}function As(){const e=R.prototype.$localeManager;if(!e)throw new Error("LocaleManager not found!");return{currentLocale:e.currentLocaleProp.value,setI18N:t=>e.change(t),$t:e.fluentFormat,$ta:e.fluentFormatAttrs}}exports.DEFAULT_INJECTION_KEY=vs;exports.HTTPBundleSource=hs;exports.LocaleManager=ys;exports.RawBundleSource=Es;exports.useI18N=As;
|
|
6
|
-
//# sourceMappingURL=i18n-vue2.cjs.map
|