diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 6343894..c67adf9 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -13,20 +13,10 @@ concurrency: cancel-in-progress: true jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - run: npm ci - publish-npm: environment: name: npm url: "https://www.npmjs.com/package/@thunderbirdops/services-ui" - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,12 +24,19 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: npm ci - - name: Copy files to dist + - name: Install project deps + run: npm ci + + - name: Build project + run: npm run build + + - name: Copy extra files to dist run: | cp README.md ./dist/README.md cp LICENSE ./dist/LICENSE cp package.json ./dist/package.json - - run: npm publish ./dist + + - name: Publish project on npm + run: npm publish ./dist env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/README.md b/README.md index 6974f54..89fc0fe 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ Note this is heavily work-in-progress. ## Usage -You can install the library by adding the following line as a dependancy to your package.json: +You can install the library by adding the following line as a dependency to your package.json: ``` -https://github.com/thunderbird/services-ui.git +npm i @thunderbirdops/services-ui ``` ## Library Development diff --git a/dist/fonts/Inter/Inter-Black.woff2 b/dist/fonts/Inter/Inter-Black.woff2 deleted file mode 100644 index 18b35db..0000000 Binary files a/dist/fonts/Inter/Inter-Black.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-BlackItalic.woff2 b/dist/fonts/Inter/Inter-BlackItalic.woff2 deleted file mode 100644 index 02c9d8e..0000000 Binary files a/dist/fonts/Inter/Inter-BlackItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Bold.woff2 b/dist/fonts/Inter/Inter-Bold.woff2 deleted file mode 100644 index 0f1b157..0000000 Binary files a/dist/fonts/Inter/Inter-Bold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-BoldItalic.woff2 b/dist/fonts/Inter/Inter-BoldItalic.woff2 deleted file mode 100644 index bc50f24..0000000 Binary files a/dist/fonts/Inter/Inter-BoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-ExtraBold.woff2 b/dist/fonts/Inter/Inter-ExtraBold.woff2 deleted file mode 100644 index b113368..0000000 Binary files a/dist/fonts/Inter/Inter-ExtraBold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 b/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 deleted file mode 100644 index a5b76ca..0000000 Binary files a/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-ExtraLight.woff2 b/dist/fonts/Inter/Inter-ExtraLight.woff2 deleted file mode 100644 index 1d77ae8..0000000 Binary files a/dist/fonts/Inter/Inter-ExtraLight.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-ExtraLightItalic.woff2 b/dist/fonts/Inter/Inter-ExtraLightItalic.woff2 deleted file mode 100644 index 8c68492..0000000 Binary files a/dist/fonts/Inter/Inter-ExtraLightItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Italic.woff2 b/dist/fonts/Inter/Inter-Italic.woff2 deleted file mode 100644 index 4c24ce2..0000000 Binary files a/dist/fonts/Inter/Inter-Italic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Light.woff2 b/dist/fonts/Inter/Inter-Light.woff2 deleted file mode 100644 index dbe6143..0000000 Binary files a/dist/fonts/Inter/Inter-Light.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-LightItalic.woff2 b/dist/fonts/Inter/Inter-LightItalic.woff2 deleted file mode 100644 index a40d042..0000000 Binary files a/dist/fonts/Inter/Inter-LightItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Medium.woff2 b/dist/fonts/Inter/Inter-Medium.woff2 deleted file mode 100644 index 0fd2ee7..0000000 Binary files a/dist/fonts/Inter/Inter-Medium.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-MediumItalic.woff2 b/dist/fonts/Inter/Inter-MediumItalic.woff2 deleted file mode 100644 index 9676715..0000000 Binary files a/dist/fonts/Inter/Inter-MediumItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Regular.woff2 b/dist/fonts/Inter/Inter-Regular.woff2 deleted file mode 100644 index b8699af..0000000 Binary files a/dist/fonts/Inter/Inter-Regular.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-SemiBold.woff2 b/dist/fonts/Inter/Inter-SemiBold.woff2 deleted file mode 100644 index 95c48b1..0000000 Binary files a/dist/fonts/Inter/Inter-SemiBold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 b/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 deleted file mode 100644 index ddfe19e..0000000 Binary files a/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-Thin.woff2 b/dist/fonts/Inter/Inter-Thin.woff2 deleted file mode 100644 index 0790960..0000000 Binary files a/dist/fonts/Inter/Inter-Thin.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/Inter-ThinItalic.woff2 b/dist/fonts/Inter/Inter-ThinItalic.woff2 deleted file mode 100644 index a7bf213..0000000 Binary files a/dist/fonts/Inter/Inter-ThinItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Black.woff2 b/dist/fonts/Inter/InterDisplay-Black.woff2 deleted file mode 100644 index 8138123..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Black.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-BlackItalic.woff2 b/dist/fonts/Inter/InterDisplay-BlackItalic.woff2 deleted file mode 100644 index 735ba21..0000000 Binary files a/dist/fonts/Inter/InterDisplay-BlackItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Bold.woff2 b/dist/fonts/Inter/InterDisplay-Bold.woff2 deleted file mode 100644 index 11c6719..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Bold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-BoldItalic.woff2 b/dist/fonts/Inter/InterDisplay-BoldItalic.woff2 deleted file mode 100644 index 5b6a1fb..0000000 Binary files a/dist/fonts/Inter/InterDisplay-BoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-ExtraBold.woff2 b/dist/fonts/Inter/InterDisplay-ExtraBold.woff2 deleted file mode 100644 index 9058e98..0000000 Binary files a/dist/fonts/Inter/InterDisplay-ExtraBold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-ExtraBoldItalic.woff2 b/dist/fonts/Inter/InterDisplay-ExtraBoldItalic.woff2 deleted file mode 100644 index 4cd61c0..0000000 Binary files a/dist/fonts/Inter/InterDisplay-ExtraBoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-ExtraLight.woff2 b/dist/fonts/Inter/InterDisplay-ExtraLight.woff2 deleted file mode 100644 index 8621b29..0000000 Binary files a/dist/fonts/Inter/InterDisplay-ExtraLight.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-ExtraLightItalic.woff2 b/dist/fonts/Inter/InterDisplay-ExtraLightItalic.woff2 deleted file mode 100644 index 689c8d9..0000000 Binary files a/dist/fonts/Inter/InterDisplay-ExtraLightItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Italic.woff2 b/dist/fonts/Inter/InterDisplay-Italic.woff2 deleted file mode 100644 index 11f20bc..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Italic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Light.woff2 b/dist/fonts/Inter/InterDisplay-Light.woff2 deleted file mode 100644 index 446301c..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Light.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-LightItalic.woff2 b/dist/fonts/Inter/InterDisplay-LightItalic.woff2 deleted file mode 100644 index f688196..0000000 Binary files a/dist/fonts/Inter/InterDisplay-LightItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Medium.woff2 b/dist/fonts/Inter/InterDisplay-Medium.woff2 deleted file mode 100644 index 29160b2..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Medium.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-MediumItalic.woff2 b/dist/fonts/Inter/InterDisplay-MediumItalic.woff2 deleted file mode 100644 index ef1bcbe..0000000 Binary files a/dist/fonts/Inter/InterDisplay-MediumItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Regular.woff2 b/dist/fonts/Inter/InterDisplay-Regular.woff2 deleted file mode 100644 index a6c04f6..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Regular.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-SemiBold.woff2 b/dist/fonts/Inter/InterDisplay-SemiBold.woff2 deleted file mode 100644 index 2b4db23..0000000 Binary files a/dist/fonts/Inter/InterDisplay-SemiBold.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-SemiBoldItalic.woff2 b/dist/fonts/Inter/InterDisplay-SemiBoldItalic.woff2 deleted file mode 100644 index 59091db..0000000 Binary files a/dist/fonts/Inter/InterDisplay-SemiBoldItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-Thin.woff2 b/dist/fonts/Inter/InterDisplay-Thin.woff2 deleted file mode 100644 index dc0b948..0000000 Binary files a/dist/fonts/Inter/InterDisplay-Thin.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterDisplay-ThinItalic.woff2 b/dist/fonts/Inter/InterDisplay-ThinItalic.woff2 deleted file mode 100644 index 96439c0..0000000 Binary files a/dist/fonts/Inter/InterDisplay-ThinItalic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterVariable-Italic.woff2 b/dist/fonts/Inter/InterVariable-Italic.woff2 deleted file mode 100644 index f22ec25..0000000 Binary files a/dist/fonts/Inter/InterVariable-Italic.woff2 and /dev/null differ diff --git a/dist/fonts/Inter/InterVariable.woff2 b/dist/fonts/Inter/InterVariable.woff2 deleted file mode 100644 index 22a12b0..0000000 Binary files a/dist/fonts/Inter/InterVariable.woff2 and /dev/null differ diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index c87aee7..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,347 +0,0 @@ -import { ComponentOptionsMixin } from 'vue'; -import { ComponentProvideOptions } from 'vue'; -import { DefineComponent } from 'vue'; -import { ExtractPropTypes } from 'vue'; -import { PropType } from 'vue'; -import { PublicProps } from 'vue'; - -declare type __VLS_NonUndefinedable = T extends undefined ? never : T; - -declare type __VLS_NonUndefinedable_2 = T extends undefined ? never : T; - -declare type __VLS_NonUndefinedable_3 = T extends undefined ? never : T; - -declare type __VLS_PrettifyLocal = { - [K in keyof T]: T[K]; -} & {}; - -declare type __VLS_PrettifyLocal_2 = { - [K in keyof T]: T[K]; -} & {}; - -declare type __VLS_PrettifyLocal_3 = { - [K in keyof T]: T[K]; -} & {}; - -declare type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; - -declare type __VLS_PublicProps_2 = { - modelValue?: string; -} & typeof __VLS_typeProps_2; - -declare type __VLS_PublicProps_3 = { - modelValue?: number[]; -} & typeof __VLS_typeProps_3; - -declare type __VLS_PublicProps_4 = { - modelValue?: CalendarItem[]; -} & typeof __VLS_typeProps_4; - -declare let __VLS_typeProps: Props_2; - -declare let __VLS_typeProps_2: Props_3; - -declare let __VLS_typeProps_3: Props_4; - -declare let __VLS_typeProps_4: Props_5; - -declare type __VLS_TypePropsToOption = { - [K in keyof T]-?: {} extends Pick ? { - type: PropType<__VLS_NonUndefinedable>; - } : { - type: PropType; - required: true; - }; -}; - -declare type __VLS_TypePropsToOption_2 = { - [K in keyof T]-?: {} extends Pick ? { - type: PropType<__VLS_NonUndefinedable_2>; - } : { - type: PropType; - required: true; - }; -}; - -declare type __VLS_TypePropsToOption_3 = { - [K in keyof T]-?: {} extends Pick ? { - type: PropType<__VLS_NonUndefinedable_3>; - } : { - type: PropType; - required: true; - }; -}; - -declare type __VLS_WithDefaults = { - [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; -}; - -declare type __VLS_WithDefaults_2 = { - [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal_2 : P[K]; -}; - -declare type __VLS_WithDefaults_3 = { - [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal_3 : P[K]; -}; - -declare type __VLS_WithTemplateSlots = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_10 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_2 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_3 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_4 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_5 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_6 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_7 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_8 = T & { - new (): { - $slots: S; - }; -}; - -declare type __VLS_WithTemplateSlots_9 = T & { - new (): { - $slots: S; - }; -}; - -export declare const BaseButton: __VLS_WithTemplateSlots, { -type: string; -size: string; -tooltip: string; -forceTooltip: boolean; -}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { -click: (...args: any[]) => void; -}, string, PublicProps, Readonly, { -type: string; -size: string; -tooltip: string; -forceTooltip: boolean; -}>>> & Readonly<{ -onClick?: (...args: any[]) => any; -}>, { -type: string; -tooltip: string; -size: string; -forceTooltip: boolean; -}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { - icon?(_: {}): any; - default?(_: {}): any; -}>; - -export declare const BubbleSelect: __VLS_WithTemplateSlots_7 void; -}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{ -onClick?: (...args: any[]) => any; -}>, { -required: boolean; -}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, { - default?(_: {}): any; -}>; - -declare type CalendarItem = { - key: number; - label: string; - checked: boolean; -}; - -export declare const CopyIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; - -export declare const LinkButton: __VLS_WithTemplateSlots_4 & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial, (_: any) => any>>>; - -export declare const NoticeBar: __VLS_WithTemplateSlots_9, { -type: NoticeBarTypes; -}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly, { -type: NoticeBarTypes; -}>>> & Readonly<{}>, { -type: NoticeBarTypes; -}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { - default?(_: {}): any; -}>; - -declare enum NoticeBarTypes { - Info = "info", - Success = "success", - Warning = "warning", - Error = "error" -} - -export declare const NoticeCriticalIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; - -export declare const NoticeInfoIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; - -export declare const NoticeSuccessIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; - -export declare const NoticeWarningIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; - -export declare const PrimaryButton: __VLS_WithTemplateSlots_2 & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial, (_: any) => any>>>; - -declare interface Props { - type?: string; - size?: string; - tooltip?: string; - forceTooltip?: boolean; -} - -declare interface Props_2 { - name: string; - options: SelectOption[]; - required?: boolean; - disabled?: boolean; -} - -declare interface Props_3 { - name: string; - help?: string; - remoteError?: string; - type?: string; - placeholder?: string; - required?: boolean; - disabled?: boolean; -} - -declare interface Props_4 { - options: SelectOption[]; - required: boolean; -} - -declare interface Props_5 { - title: string; -} - -declare interface Props_6 { - name: string; - active: boolean; - disabled?: boolean; - label?: string; - noLegend?: boolean; -} - -declare interface Props_7 { - type?: NoticeBarTypes; -} - -declare interface Props_8 { - alt?: string; - position?: TooltipPosition; -} - -export declare const SecondaryButton: __VLS_WithTemplateSlots_3 & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial, (_: any) => any>>>; - -export declare const SelectInput: __VLS_WithTemplateSlots_5 void; -}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ -onSubmit?: (...args: any[]) => any; -}>, { -required: boolean; -disabled: boolean; -}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, { - default?(_: {}): any; -}>; - -declare type SelectOption = { - label: string; - fullLabel?: string; - value: any; -}; - -export declare const SwitchToggle: DefineComponent void; -}, string, PublicProps, Readonly & Readonly<{ -onChanged?: (...args: any[]) => any; -}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; - -export declare const SyncCard: __VLS_WithTemplateSlots_8 any; -}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{ -"onUpdate:modelValue"?: (modelValue: CalendarItem[]) => any; -}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, { - icon?(_: {}): any; -}>; - -export declare const TextInput: __VLS_WithTemplateSlots_6 void; -}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { -submit: (...args: any[]) => void; -}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{ -onSubmit?: (...args: any[]) => any; -}>, { -type: string; -required: boolean; -disabled: boolean; -help: string; -remoteError: string; -placeholder: string; -}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, { - default?(_: {}): any; -}>; - -export declare const ToolTip: __VLS_WithTemplateSlots_10, { -alt: string; -position: TooltipPosition; -}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly, { -alt: string; -position: TooltipPosition; -}>>> & Readonly<{}>, { -alt: string; -position: TooltipPosition; -}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { - default?(_: {}): any; -}>; - -declare enum TooltipPosition { - None = "pos-none", - Top = "pos-top", - Bottom = "pos-bottom", - Left = "pos-left", - Right = "pos-right" -} - -export { } diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index f2f45d0..0000000 --- a/dist/index.js +++ /dev/null @@ -1,4089 +0,0 @@ -import { defineComponent as Q, openBlock as F, createElementBlock as H, createElementVNode as P, renderSlot as ue, normalizeClass as Se, createCommentVNode as le, createBlock as Ne, unref as ce, withModifiers as Zn, withCtx as tt, createTextVNode as Ft, toDisplayString as se, createSlots as Zt, renderList as Ge, normalizeProps as qt, guardReactiveProps as Jt, mergeModels as De, useModel as ut, ref as be, withDirectives as Qt, Fragment as nt, vModelSelect as Os, vModelDynamic as ys, h as qn, getCurrentInstance as Ze, effectScope as As, inject as ks, onMounted as Jn, onUnmounted as Ss, computed as de, watch as wt, isRef as Ds, shallowRef as Ps, createVNode as Qn, Text as Rs, vModelCheckbox as Ms } from "vue"; -var zt = /* @__PURE__ */ ((e) => (e.None = "pos-none", e.Top = "pos-top", e.Bottom = "pos-bottom", e.Left = "pos-left", e.Right = "pos-right", e))(zt || {}), Ue = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(Ue || {}); -const Fs = ["aria-label"], ws = { class: "tooltip-container" }, Vs = { class: "tooltip-body" }, Us = /* @__PURE__ */ Q({ - __name: "ToolTip", - props: { - alt: { default: "" }, - position: { default: zt.Bottom } - }, - setup(e) { - return (t, n) => (F(), H("div", { - class: "tooltip", - "aria-label": t.alt - }, [ - P("div", ws, [ - P("div", Vs, [ - ue(t.$slots, "default", {}, void 0, !0) - ]), - (F(), H("svg", { - class: Se(["beak", t.position]), - width: "28", - height: "6", - viewBox: "0 0 28 6", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("g", null, [ - P("path", { - d: "M15.4142 4.58579C14.6332 5.36683 13.3668 5.36683 12.5858 4.58579L8 0L20 0L15.4142 4.58579Z", - fill: "currentColor" - }) - ], -1) - ]), 2)) - ]) - ], 8, Fs)); - } -}), oe = (e, t) => { - const n = e.__vccOpts || e; - for (const [s, r] of t) - n[s] = r; - return n; -}, $s = /* @__PURE__ */ oe(Us, [["__scopeId", "data-v-4e716012"]]), Ws = { - key: 0, - class: "icon" -}, Hs = { class: "text" }, Gs = /* @__PURE__ */ Q({ - __name: "BaseButton", - props: { - type: { default: "secondary" }, - size: { default: "regular" }, - tooltip: { default: "" }, - forceTooltip: { type: Boolean, default: !1 } - }, - emits: ["click"], - setup(e) { - return (t, n) => { - var s; - return F(), H("button", { - class: Se(["tbpro-button", { [t.type]: t.type, small: t.size === "small" }]), - type: "button" - }, [ - (s = t.$slots) != null && s.icon ? (F(), H("span", Ws, [ - ue(t.$slots, "icon", {}, void 0, !0) - ])) : le("", !0), - P("span", Hs, [ - ue(t.$slots, "default", {}, void 0, !0) - ]), - t.tooltip ? (F(), Ne($s, { - key: 1, - class: Se(["tooltip", { "display-tooltip": t.forceTooltip }]), - position: ce(zt).Bottom, - onClick: n[0] || (n[0] = Zn(() => { - }, ["prevent"])) - }, { - default: tt(() => [ - Ft(se(t.tooltip), 1) - ]), - _: 1 - }, 8, ["class", "position"])) : le("", !0) - ], 2); - }; - } -}), en = /* @__PURE__ */ oe(Gs, [["__scopeId", "data-v-38d294b3"]]), xs = /* @__PURE__ */ Q({ - __name: "PrimaryButton", - setup(e) { - return (t, n) => (F(), Ne(en, { type: "primary" }, Zt({ _: 2 }, [ - Ge(t.$slots, (s, r) => ({ - name: r, - fn: tt((a) => [ - ue(t.$slots, r, qt(Jt(a))) - ]) - })) - ]), 1024)); - } -}), ko = /* @__PURE__ */ Q({ - __name: "SecondaryButton", - setup(e) { - return (t, n) => (F(), Ne(en, { type: "secondary" }, Zt({ _: 2 }, [ - Ge(t.$slots, (s, r) => ({ - name: r, - fn: tt((a) => [ - ue(t.$slots, r, qt(Jt(a))) - ]) - })) - ]), 1024)); - } -}), So = /* @__PURE__ */ Q({ - __name: "LinkButton", - setup(e) { - return (t, n) => (F(), Ne(en, { type: "link" }, Zt({ _: 2 }, [ - Ge(t.$slots, (s, r) => ({ - name: r, - fn: tt((a) => [ - ue(t.$slots, r, qt(Jt(a))) - ]) - })) - ]), 1024)); - } -}), Bs = ["for"], Ys = { class: "label" }, Ks = { - key: 0, - class: "required" -}, js = ["id", "name", "required", "disabled"], Xs = ["value"], Zs = /* @__PURE__ */ Q({ - __name: "SelectInput", - props: /* @__PURE__ */ De({ - name: {}, - options: {}, - required: { type: Boolean, default: !1 }, - disabled: { type: Boolean, default: !1 } - }, { - modelValue: {}, - modelModifiers: {} - }), - emits: /* @__PURE__ */ De(["submit"], ["update:modelValue"]), - setup(e) { - const t = ut(e, "modelValue"), n = be(!1), s = be(""), r = (a) => { - n.value = !0, s.value = a.target.validationMessage; - }; - return (a, l) => (F(), H("label", { - class: "wrapper", - for: a.name - }, [ - P("span", Ys, [ - ue(a.$slots, "default", {}, void 0, !0), - a.required && (t.value === null || t.value === "") ? (F(), H("span", Ks, "*")) : le("", !0) - ]), - Qt(P("select", { - class: "tbpro-select w-full rounded-md", - "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o), - id: a.name, - name: a.name, - required: a.required, - disabled: a.disabled, - onInvalid: r - }, [ - (F(!0), H(nt, null, Ge(a.options, (o) => (F(), H("option", { - value: o.value, - key: o.value - }, se(o.label), 9, Xs))), 128)) - ], 40, js), [ - [Os, t.value] - ]), - P("span", { - class: Se([{ visible: n.value }, "help-label"]) - }, se(s.value), 3) - ], 8, Bs)); - } -}), Do = /* @__PURE__ */ oe(Zs, [["__scopeId", "data-v-771d1fc0"]]), qs = ["for"], Js = { class: "label" }, Qs = { - key: 0, - class: "required" -}, zs = ["type", "id", "name", "disabled", "placeholder", "required"], er = { - key: 0, - class: "help-label invalid" -}, tr = { - key: 1, - class: "help-label" -}, nr = { - key: 2, - class: "help-label" -}, sr = /* @__PURE__ */ Q({ - __name: "TextInput", - props: /* @__PURE__ */ De({ - name: {}, - help: { default: null }, - remoteError: { default: null }, - type: { default: "text" }, - placeholder: { default: "" }, - required: { type: Boolean, default: !1 }, - disabled: { type: Boolean, default: !1 } - }, { - modelValue: {}, - modelModifiers: {} - }), - emits: /* @__PURE__ */ De(["submit"], ["update:modelValue"]), - setup(e, { expose: t }) { - const n = ut(e, "modelValue"), s = be(!1), r = be(""), a = be(!1), l = be(null); - t({ focus: () => { - l.value && l.value.focus(); - } }); - const u = (h) => { - s.value = !0, a.value = !0, r.value = h.target.validationMessage; - }, m = () => { - a.value = !0; - }; - return (h, N) => { - var p; - return F(), H("label", { - class: "wrapper", - for: h.name - }, [ - P("span", Js, [ - ue(h.$slots, "default", {}, void 0, !0), - h.required && ((p = n.value) == null ? void 0 : p.length) === 0 ? (F(), H("span", Qs, "*")) : le("", !0) - ]), - Qt(P("input", { - class: Se(["tbpro-input", { dirty: a.value }]), - "onUpdate:modelValue": N[0] || (N[0] = (O) => n.value = O), - type: h.type, - id: h.name, - name: h.name, - disabled: h.disabled, - placeholder: h.placeholder, - required: h.required, - onInvalid: u, - onChange: m, - ref_key: "inputRef", - ref: l - }, null, 42, zs), [ - [ys, n.value] - ]), - s.value ? (F(), H("span", er, se(r.value), 1)) : h.help ? (F(), H("span", tr, se(h.help), 1)) : (F(), H("span", nr)) - ], 8, qs); - }; - } -}), Po = /* @__PURE__ */ oe(sr, [["__scopeId", "data-v-364ddd75"]]), rr = { class: "wrapper" }, ar = { class: "label" }, lr = { - key: 0, - class: "required" -}, or = { class: "bubble-list" }, ir = ["aria-pressed", "title", "onClick"], cr = /* @__PURE__ */ Q({ - __name: "BubbleSelect", - props: /* @__PURE__ */ De({ - options: {}, - required: { type: Boolean, default: !1 } - }, { - modelValue: { default: [] }, - modelModifiers: {} - }), - emits: /* @__PURE__ */ De(["click"], ["update:modelValue"]), - setup(e) { - const t = ut(e, "modelValue"), n = (s) => { - t.value.indexOf(s.value) > -1 ? t.value = t.value.filter((a) => s.value !== a) : t.value = [ - ...t.value, - s.value - ], t.value.sort(); - }; - return (s, r) => { - var a; - return F(), H("div", rr, [ - P("label", null, [ - P("span", ar, [ - ue(s.$slots, "default", {}, void 0, !0), - s.required && ((a = t.value) == null ? void 0 : a.length) === 0 ? (F(), H("span", lr, "*")) : le("", !0) - ]) - ]), - P("ul", or, [ - (F(!0), H(nt, null, Ge(s.options, (l) => (F(), H("li", { - key: l.value - }, [ - P("button", { - class: Se(["tbpro-bubble", { selected: t.value.indexOf(l.value) > -1 }]), - "aria-pressed": t.value.indexOf(l.value) > -1, - title: l.fullLabel ?? l.value, - type: "button", - onClick: () => n(l) - }, se(l.label), 11, ir) - ]))), 128)) - ]) - ]); - }; - } -}), Ro = /* @__PURE__ */ oe(cr, [["__scopeId", "data-v-c3be0617"]]); -/*! - * shared v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */ -const fe = typeof window < "u"; -let re, Pe; -if (process.env.NODE_ENV !== "production") { - const e = fe && window.performance; - e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat - e.clearMeasures && (re = (t) => { - e.mark(t); - }, Pe = (t, n, s) => { - e.measure(t, n, s), e.clearMarks(n), e.clearMarks(s); - }); -} -const ur = /\{([0-9a-zA-Z]+)\}/g; -function ft(e, ...t) { - return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ur, (n, s) => t.hasOwnProperty(s) ? t[s] : ""); -} -const pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fr = (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"), q = (e) => typeof e == "number" && isFinite(e), dr = (e) => es(e) === "[object Date]", We = (e) => es(e) === "[object RegExp]", _t = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign; -let mn; -const ke = () => mn || (mn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}); -function pn(e) { - return e.replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); -} -const mr = Object.prototype.hasOwnProperty; -function it(e, t) { - return mr.call(e, t); -} -const B = Array.isArray, x = (e) => typeof e == "function", L = (e) => typeof e == "string", w = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", pr = (e) => V(e) && x(e.then) && x(e.catch), zn = Object.prototype.toString, es = (e) => zn.call(e), R = (e) => { - if (!V(e)) - return !1; - const t = Object.getPrototypeOf(e); - return t === null || t.constructor === Object; -}, Er = (e) => e == null ? "" : B(e) || R(e) && e.toString === zn ? JSON.stringify(e, null, 2) : String(e); -function tn(e, t = "") { - return e.reduce((n, s, r) => r === 0 ? n + s : n + t + s, ""); -} -const En = 2; -function gr(e, t = 0, n = e.length) { - const s = e.split(/\r?\n/); - let r = 0; - const a = []; - for (let l = 0; l < s.length; l++) - if (r += s[l].length + 1, r >= t) { - for (let o = l - En; o <= l + En || n > r; o++) { - if (o < 0 || o >= s.length) - continue; - const u = o + 1; - a.push(`${u}${" ".repeat(3 - String(u).length)}| ${s[o]}`); - const m = s[o].length; - if (o === l) { - const h = t - (r - m) + 1, N = Math.max(1, n > r ? m - h : n - t); - a.push(" | " + " ".repeat(h) + "^".repeat(N)); - } else if (o > l) { - if (n > r) { - const h = Math.max(Math.min(n - r, m), 1); - a.push(" | " + "^".repeat(h)); - } - r += m + 1; - } - } - break; - } - return a.join(` -`); -} -function Te(e, t) { - typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); -} -const gn = {}; -function ts(e) { - gn[e] || (gn[e] = !0, Te(e)); -} -function nn() { - const e = /* @__PURE__ */ new Map(); - return { - events: e, - on(n, s) { - const r = e.get(n); - r && r.push(s) || e.set(n, [s]); - }, - off(n, s) { - const r = e.get(n); - r && r.splice(r.indexOf(s) >>> 0, 1); - }, - emit(n, s) { - (e.get(n) || []).slice().map((r) => r(s)), (e.get("*") || []).slice().map((r) => r(n, s)); - } - }; -} -const at = (e) => !V(e) || B(e); -function ot(e, t) { - if (at(e) || at(t)) - throw new Error("Invalid value"); - const n = [{ src: e, des: t }]; - for (; n.length; ) { - const { src: s, des: r } = n.pop(); - Object.keys(s).forEach((a) => { - at(s[a]) || at(r[a]) ? r[a] = s[a] : n.push({ src: s[a], des: r[a] }); - }); - } -} -/*! - * message-compiler v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */ -function Cr(e, t, n) { - return { line: e, column: t, offset: n }; -} -function Vt(e, t, n) { - return { start: e, end: t }; -} -const D = { - // tokenizer error codes - 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, - // parser error codes - MUST_HAVE_MESSAGES_IN_PLURAL: 11, - UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, - UNEXPECTED_EMPTY_LINKED_KEY: 13, - UNEXPECTED_LEXICAL_ANALYSIS: 14, - // generator error codes - UNHANDLED_CODEGEN_NODE_TYPE: 15, - // minifier error codes - UNHANDLED_MINIFIER_NODE_TYPE: 16 -}, hr = 17, Nr = { - // tokenizer error messages - [D.EXPECTED_TOKEN]: "Expected token: '{0}'", - [D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", - [D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", - [D.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", - [D.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", - [D.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", - [D.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", - [D.EMPTY_PLACEHOLDER]: "Empty placeholder", - [D.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", - [D.INVALID_LINKED_FORMAT]: "Invalid linked format", - // parser error messages - [D.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", - [D.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", - [D.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", - [D.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", - // generator error messages - [D.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", - // minimizer error messages - [D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" -}; -function xe(e, t, n = {}) { - const { domain: s, messages: r, args: a } = n, l = process.env.NODE_ENV !== "production" ? ft((r || Nr)[e] || "", ...a || []) : e, o = new SyntaxError(String(l)); - return o.code = e, t && (o.location = t), o.domain = s, o; -} -function br(e) { - throw e; -} -const vr = /<\/?[\w\s="/.':;#-\/]+>/, Lr = (e) => vr.test(e), ge = " ", Tr = "\r", ee = ` -`, Ir = "\u2028", Or = "\u2029"; -function yr(e) { - const t = e; - let n = 0, s = 1, r = 1, a = 0; - const l = (g) => t[g] === Tr && t[g + 1] === ee, o = (g) => t[g] === ee, u = (g) => t[g] === Or, m = (g) => t[g] === Ir, h = (g) => l(g) || o(g) || u(g) || m(g), N = () => n, p = () => s, O = () => r, S = () => a, A = (g) => l(g) || u(g) || m(g) ? ee : t[g], y = () => A(n), f = () => A(n + a); - function _() { - return a = 0, h(n) && (s++, r = 0), l(n) && n++, n++, r++, t[n]; - } - function v() { - return l(n + a) && a++, a++, t[n + a]; - } - function E() { - n = 0, s = 1, r = 1, a = 0; - } - function T(g = 0) { - a = g; - } - function I() { - const g = n + a; - for (; g !== n; ) - _(); - a = 0; - } - return { - index: N, - line: p, - column: O, - peekOffset: S, - charAt: A, - currentChar: y, - currentPeek: f, - next: _, - peek: v, - reset: E, - resetPeek: T, - skipToPeek: I - }; -} -const he = void 0, Ar = ".", Cn = "'", kr = "tokenizer"; -function Sr(e, t = {}) { - const n = t.location !== !1, s = yr(e), r = () => s.index(), a = () => Cr(s.line(), s.column(), s.index()), l = a(), o = r(), u = { - currentType: 13, - offset: o, - startLoc: l, - endLoc: l, - lastType: 13, - lastOffset: o, - lastStartLoc: l, - lastEndLoc: l, - braceNest: 0, - inLinked: !1, - text: "" - }, m = () => u, { onError: h } = t; - function N(i, c, C, ...k) { - const Y = m(); - if (c.column += C, c.offset += C, h) { - const K = n ? Vt(Y.startLoc, c) : null, U = xe(i, K, { - domain: kr, - args: k - }); - h(U); - } - } - function p(i, c, C) { - i.endLoc = a(), i.currentType = c; - const k = { type: c }; - return n && (k.loc = Vt(i.startLoc, i.endLoc)), C != null && (k.value = C), k; - } - const O = (i) => p( - i, - 13 - /* TokenTypes.EOF */ - ); - function S(i, c) { - return i.currentChar() === c ? (i.next(), c) : (N(D.EXPECTED_TOKEN, a(), 0, c), ""); - } - function A(i) { - let c = ""; - for (; i.currentPeek() === ge || i.currentPeek() === ee; ) - c += i.currentPeek(), i.peek(); - return c; - } - function y(i) { - const c = A(i); - return i.skipToPeek(), c; - } - function f(i) { - if (i === he) - return !1; - const c = i.charCodeAt(0); - return c >= 97 && c <= 122 || // a-z - c >= 65 && c <= 90 || // A-Z - c === 95; - } - function _(i) { - if (i === he) - return !1; - const c = i.charCodeAt(0); - return c >= 48 && c <= 57; - } - function v(i, c) { - const { currentType: C } = c; - if (C !== 2) - return !1; - A(i); - const k = f(i.currentPeek()); - return i.resetPeek(), k; - } - function E(i, c) { - const { currentType: C } = c; - if (C !== 2) - return !1; - A(i); - const k = i.currentPeek() === "-" ? i.peek() : i.currentPeek(), Y = _(k); - return i.resetPeek(), Y; - } - function T(i, c) { - const { currentType: C } = c; - if (C !== 2) - return !1; - A(i); - const k = i.currentPeek() === Cn; - return i.resetPeek(), k; - } - function I(i, c) { - const { currentType: C } = c; - if (C !== 7) - return !1; - A(i); - const k = i.currentPeek() === "."; - return i.resetPeek(), k; - } - function g(i, c) { - const { currentType: C } = c; - if (C !== 8) - return !1; - A(i); - const k = f(i.currentPeek()); - return i.resetPeek(), k; - } - function M(i, c) { - const { currentType: C } = c; - if (!(C === 7 || C === 11)) - return !1; - A(i); - const k = i.currentPeek() === ":"; - return i.resetPeek(), k; - } - function $(i, c) { - const { currentType: C } = c; - if (C !== 9) - return !1; - const k = () => { - const K = i.currentPeek(); - return K === "{" ? f(i.peek()) : K === "@" || K === "|" || K === ":" || K === "." || K === ge || !K ? !1 : K === ee ? (i.peek(), k()) : ie(i, !1); - }, Y = k(); - return i.resetPeek(), Y; - } - function X(i) { - A(i); - const c = i.currentPeek() === "|"; - return i.resetPeek(), c; - } - function ie(i, c = !0) { - const C = (Y = !1, K = "") => { - const U = i.currentPeek(); - return U === "{" || U === "@" || !U ? Y : U === "|" ? !(K === ge || K === ee) : U === ge ? (i.peek(), C(!0, ge)) : U === ee ? (i.peek(), C(!0, ee)) : !0; - }, k = C(); - return c && i.resetPeek(), k; - } - function Z(i, c) { - const C = i.currentChar(); - return C === he ? he : c(C) ? (i.next(), C) : null; - } - function Fe(i) { - const c = i.charCodeAt(0); - return c >= 97 && c <= 122 || // a-z - c >= 65 && c <= 90 || // A-Z - c >= 48 && c <= 57 || // 0-9 - c === 95 || // _ - c === 36; - } - function Et(i) { - return Z(i, Fe); - } - function gt(i) { - const c = i.charCodeAt(0); - return c >= 97 && c <= 122 || // a-z - c >= 65 && c <= 90 || // A-Z - c >= 48 && c <= 57 || // 0-9 - c === 95 || // _ - c === 36 || // $ - c === 45; - } - function Ct(i) { - return Z(i, gt); - } - function ht(i) { - const c = i.charCodeAt(0); - return c >= 48 && c <= 57; - } - function Nt(i) { - return Z(i, ht); - } - function bt(i) { - const c = i.charCodeAt(0); - return c >= 48 && c <= 57 || // 0-9 - c >= 65 && c <= 70 || // A-F - c >= 97 && c <= 102; - } - function Ee(i) { - return Z(i, bt); - } - function Be(i) { - let c = "", C = ""; - for (; c = Nt(i); ) - C += c; - return C; - } - function vt(i) { - let c = ""; - for (; ; ) { - const C = i.currentChar(); - if (C === "{" || C === "}" || C === "@" || C === "|" || !C) - break; - if (C === ge || C === ee) - if (ie(i)) - c += C, i.next(); - else { - if (X(i)) - break; - c += C, i.next(); - } - else - c += C, i.next(); - } - return c; - } - function Lt(i) { - y(i); - let c = "", C = ""; - for (; c = Ct(i); ) - C += c; - return i.currentChar() === he && N(D.UNTERMINATED_CLOSING_BRACE, a(), 0), C; - } - function Tt(i) { - y(i); - let c = ""; - return i.currentChar() === "-" ? (i.next(), c += `-${Be(i)}`) : c += Be(i), i.currentChar() === he && N(D.UNTERMINATED_CLOSING_BRACE, a(), 0), c; - } - function It(i) { - return i !== Cn && i !== ee; - } - function _n(i) { - y(i), S(i, "'"); - let c = "", C = ""; - for (; c = Z(i, It); ) - c === "\\" ? C += Ot(i) : C += c; - const k = i.currentChar(); - return k === ee || k === he ? (N(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === ee && (i.next(), S(i, "'")), C) : (S(i, "'"), C); - } - function Ot(i) { - const c = i.currentChar(); - switch (c) { - case "\\": - case "'": - return i.next(), `\\${c}`; - case "u": - return st(i, c, 4); - case "U": - return st(i, c, 6); - default: - return N(D.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, c), ""; - } - } - function st(i, c, C) { - S(i, c); - let k = ""; - for (let Y = 0; Y < C; Y++) { - const K = Ee(i); - if (!K) { - N(D.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${k}${i.currentChar()}`); - break; - } - k += K; - } - return `\\${c}${k}`; - } - function yt(i) { - return i !== "{" && i !== "}" && i !== ge && i !== ee; - } - function At(i) { - y(i); - let c = "", C = ""; - for (; c = Z(i, yt); ) - C += c; - return C; - } - function kt(i) { - let c = "", C = ""; - for (; c = Et(i); ) - C += c; - return C; - } - function St(i) { - const c = (C) => { - const k = i.currentChar(); - return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === ge ? C : (C += k, i.next(), c(C)); - }; - return c(""); - } - function Ye(i) { - y(i); - const c = S( - i, - "|" - /* TokenChars.Pipe */ - ); - return y(i), c; - } - function Ke(i, c) { - let C = null; - switch (i.currentChar()) { - case "{": - return c.braceNest >= 1 && N(D.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), i.next(), C = p( - c, - 2, - "{" - /* TokenChars.BraceLeft */ - ), y(i), c.braceNest++, C; - case "}": - return c.braceNest > 0 && c.currentType === 2 && N(D.EMPTY_PLACEHOLDER, a(), 0), i.next(), C = p( - c, - 3, - "}" - /* TokenChars.BraceRight */ - ), c.braceNest--, c.braceNest > 0 && y(i), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), C; - case "@": - return c.braceNest > 0 && N(D.UNTERMINATED_CLOSING_BRACE, a(), 0), C = Oe(i, c) || O(c), c.braceNest = 0, C; - default: { - let Y = !0, K = !0, U = !0; - if (X(i)) - return c.braceNest > 0 && N(D.UNTERMINATED_CLOSING_BRACE, a(), 0), C = p(c, 1, Ye(i)), c.braceNest = 0, c.inLinked = !1, C; - if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6)) - return N(D.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, je(i, c); - if (Y = v(i, c)) - return C = p(c, 4, Lt(i)), y(i), C; - if (K = E(i, c)) - return C = p(c, 5, Tt(i)), y(i), C; - if (U = T(i, c)) - return C = p(c, 6, _n(i)), y(i), C; - if (!Y && !K && !U) - return C = p(c, 12, At(i)), N(D.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, C.value), y(i), C; - break; - } - } - return C; - } - function Oe(i, c) { - const { currentType: C } = c; - let k = null; - const Y = i.currentChar(); - switch ((C === 7 || C === 8 || C === 11 || C === 9) && (Y === ee || Y === ge) && N(D.INVALID_LINKED_FORMAT, a(), 0), Y) { - case "@": - return i.next(), k = p( - c, - 7, - "@" - /* TokenChars.LinkedAlias */ - ), c.inLinked = !0, k; - case ".": - return y(i), i.next(), p( - c, - 8, - "." - /* TokenChars.LinkedDot */ - ); - case ":": - return y(i), i.next(), p( - c, - 9, - ":" - /* TokenChars.LinkedDelimiter */ - ); - default: - return X(i) ? (k = p(c, 1, Ye(i)), c.braceNest = 0, c.inLinked = !1, k) : I(i, c) || M(i, c) ? (y(i), Oe(i, c)) : g(i, c) ? (y(i), p(c, 11, kt(i))) : $(i, c) ? (y(i), Y === "{" ? Ke(i, c) || k : p(c, 10, St(i))) : (C === 7 && N(D.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, je(i, c)); - } - } - function je(i, c) { - let C = { - type: 13 - /* TokenTypes.EOF */ - }; - if (c.braceNest > 0) - return Ke(i, c) || O(c); - if (c.inLinked) - return Oe(i, c) || O(c); - switch (i.currentChar()) { - case "{": - return Ke(i, c) || O(c); - case "}": - return N(D.UNBALANCED_CLOSING_BRACE, a(), 0), i.next(), p( - c, - 3, - "}" - /* TokenChars.BraceRight */ - ); - case "@": - return Oe(i, c) || O(c); - default: { - if (X(i)) - return C = p(c, 1, Ye(i)), c.braceNest = 0, c.inLinked = !1, C; - if (ie(i)) - return p(c, 0, vt(i)); - break; - } - } - return C; - } - function Dt() { - const { currentType: i, offset: c, startLoc: C, endLoc: k } = u; - return u.lastType = i, u.lastOffset = c, u.lastStartLoc = C, u.lastEndLoc = k, u.offset = r(), u.startLoc = a(), s.currentChar() === he ? p( - u, - 13 - /* TokenTypes.EOF */ - ) : je(s, u); - } - return { - nextToken: Dt, - currentOffset: r, - currentPosition: a, - context: m - }; -} -const Dr = "parser", Pr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; -function Rr(e, t, n) { - switch (e) { - case "\\\\": - return "\\"; - case "\\'": - return "'"; - default: { - const s = parseInt(t || n, 16); - return s <= 55295 || s >= 57344 ? String.fromCodePoint(s) : "�"; - } - } -} -function Mr(e = {}) { - const t = e.location !== !1, { onError: n } = e; - function s(f, _, v, E, ...T) { - const I = f.currentPosition(); - if (I.offset += E, I.column += E, n) { - const g = t ? Vt(v, I) : null, M = xe(_, g, { - domain: Dr, - args: T - }); - n(M); - } - } - function r(f, _, v) { - const E = { type: f }; - return t && (E.start = _, E.end = _, E.loc = { start: v, end: v }), E; - } - function a(f, _, v, E) { - t && (f.end = _, f.loc && (f.loc.end = v)); - } - function l(f, _) { - const v = f.context(), E = r(3, v.offset, v.startLoc); - return E.value = _, a(E, f.currentOffset(), f.currentPosition()), E; - } - function o(f, _) { - const v = f.context(), { lastOffset: E, lastStartLoc: T } = v, I = r(5, E, T); - return I.index = parseInt(_, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I; - } - function u(f, _) { - const v = f.context(), { lastOffset: E, lastStartLoc: T } = v, I = r(4, E, T); - return I.key = _, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I; - } - function m(f, _) { - const v = f.context(), { lastOffset: E, lastStartLoc: T } = v, I = r(9, E, T); - return I.value = _.replace(Pr, Rr), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I; - } - function h(f) { - const _ = f.nextToken(), v = f.context(), { lastOffset: E, lastStartLoc: T } = v, I = r(8, E, T); - return _.type !== 11 ? (s(f, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), I.value = "", a(I, E, T), { - nextConsumeToken: _, - node: I - }) : (_.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, _e(_)), I.value = _.value || "", a(I, f.currentOffset(), f.currentPosition()), { - node: I - }); - } - function N(f, _) { - const v = f.context(), E = r(7, v.offset, v.startLoc); - return E.value = _, a(E, f.currentOffset(), f.currentPosition()), E; - } - function p(f) { - const _ = f.context(), v = r(6, _.offset, _.startLoc); - let E = f.nextToken(); - if (E.type === 8) { - const T = h(f); - v.modifier = T.node, E = T.nextConsumeToken || f.nextToken(); - } - switch (E.type !== 9 && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e(E)), E = f.nextToken(), E.type === 2 && (E = f.nextToken()), E.type) { - case 10: - E.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e(E)), v.key = N(f, E.value || ""); - break; - case 4: - E.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e(E)), v.key = u(f, E.value || ""); - break; - case 5: - E.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e(E)), v.key = o(f, E.value || ""); - break; - case 6: - E.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e(E)), v.key = m(f, E.value || ""); - break; - default: { - s(f, D.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0); - const T = f.context(), I = r(7, T.offset, T.startLoc); - return I.value = "", a(I, T.offset, T.startLoc), v.key = I, a(v, T.offset, T.startLoc), { - nextConsumeToken: E, - node: v - }; - } - } - return a(v, f.currentOffset(), f.currentPosition()), { - node: v - }; - } - function O(f) { - const _ = f.context(), v = _.currentType === 1 ? f.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, T = r(2, v, E); - T.items = []; - let I = null; - do { - const $ = I || f.nextToken(); - switch (I = null, $.type) { - case 0: - $.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e($)), T.items.push(l(f, $.value || "")); - break; - case 5: - $.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e($)), T.items.push(o(f, $.value || "")); - break; - case 4: - $.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e($)), T.items.push(u(f, $.value || "")); - break; - case 6: - $.value == null && s(f, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _e($)), T.items.push(m(f, $.value || "")); - break; - case 7: { - const X = p(f); - T.items.push(X.node), I = X.nextConsumeToken || null; - break; - } - } - } while (_.currentType !== 13 && _.currentType !== 1); - const g = _.currentType === 1 ? _.lastOffset : f.currentOffset(), M = _.currentType === 1 ? _.lastEndLoc : f.currentPosition(); - return a(T, g, M), T; - } - function S(f, _, v, E) { - const T = f.context(); - let I = E.items.length === 0; - const g = r(1, _, v); - g.cases = [], g.cases.push(E); - do { - const M = O(f); - I || (I = M.items.length === 0), g.cases.push(M); - } while (T.currentType !== 13); - return I && s(f, D.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), a(g, f.currentOffset(), f.currentPosition()), g; - } - function A(f) { - const _ = f.context(), { offset: v, startLoc: E } = _, T = O(f); - return _.currentType === 13 ? T : S(f, v, E, T); - } - function y(f) { - const _ = Sr(f, J({}, e)), v = _.context(), E = r(0, v.offset, v.startLoc); - return t && E.loc && (E.loc.source = f), E.body = A(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), v.currentType !== 13 && s(_, D.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, f[v.offset] || ""), a(E, _.currentOffset(), _.currentPosition()), E; - } - return { parse: y }; -} -function _e(e) { - if (e.type === 13) - return "EOF"; - const t = (e.value || "").replace(/\r?\n/gu, "\\n"); - return t.length > 10 ? t.slice(0, 9) + "…" : t; -} -function Fr(e, t = {}) { - const n = { - ast: e, - helpers: /* @__PURE__ */ new Set() - }; - return { context: () => n, helper: (a) => (n.helpers.add(a), a) }; -} -function hn(e, t) { - for (let n = 0; n < e.length; n++) - sn(e[n], t); -} -function sn(e, t) { - switch (e.type) { - case 1: - hn(e.cases, t), t.helper( - "plural" - /* HelperNameMap.PLURAL */ - ); - break; - case 2: - hn(e.items, t); - break; - case 6: { - sn(e.key, t), t.helper( - "linked" - /* HelperNameMap.LINKED */ - ), t.helper( - "type" - /* HelperNameMap.TYPE */ - ); - break; - } - case 5: - t.helper( - "interpolate" - /* HelperNameMap.INTERPOLATE */ - ), t.helper( - "list" - /* HelperNameMap.LIST */ - ); - break; - case 4: - t.helper( - "interpolate" - /* HelperNameMap.INTERPOLATE */ - ), t.helper( - "named" - /* HelperNameMap.NAMED */ - ); - break; - } -} -function wr(e, t = {}) { - const n = Fr(e); - n.helper( - "normalize" - /* HelperNameMap.NORMALIZE */ - ), e.body && sn(e.body, n); - const s = n.context(); - e.helpers = Array.from(s.helpers); -} -function Vr(e) { - const t = e.body; - return t.type === 2 ? Nn(t) : t.cases.forEach((n) => Nn(n)), e; -} -function Nn(e) { - if (e.items.length === 1) { - const t = e.items[0]; - (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); - } else { - const t = []; - for (let n = 0; n < e.items.length; n++) { - const s = e.items[n]; - if (!(s.type === 3 || s.type === 9) || s.value == null) - break; - t.push(s.value); - } - if (t.length === e.items.length) { - e.static = tn(t); - for (let n = 0; n < e.items.length; n++) { - const s = e.items[n]; - (s.type === 3 || s.type === 9) && delete s.value; - } - } - } -} -const Ur = "minifier"; -function $e(e) { - switch (e.t = e.type, e.type) { - case 0: { - const t = e; - $e(t.body), t.b = t.body, delete t.body; - break; - } - case 1: { - const t = e, n = t.cases; - for (let s = 0; s < n.length; s++) - $e(n[s]); - t.c = n, delete t.cases; - break; - } - case 2: { - const t = e, n = t.items; - for (let s = 0; s < n.length; s++) - $e(n[s]); - t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); - break; - } - case 3: - case 9: - case 8: - case 7: { - const t = e; - t.value && (t.v = t.value, delete t.value); - break; - } - case 6: { - const t = e; - $e(t.key), t.k = t.key, delete t.key, t.modifier && ($e(t.modifier), t.m = t.modifier, delete t.modifier); - break; - } - case 5: { - const t = e; - t.i = t.index, delete t.index; - break; - } - case 4: { - const t = e; - t.k = t.key, delete t.key; - break; - } - default: - if (process.env.NODE_ENV !== "production") - throw xe(D.UNHANDLED_MINIFIER_NODE_TYPE, null, { - domain: Ur, - args: [e.type] - }); - } - delete e.type; -} -const $r = "parser"; -function Wr(e, t) { - const { sourceMap: n, filename: s, breakLineCode: r, needIndent: a } = t, l = t.location !== !1, o = { - filename: s, - code: "", - column: 1, - line: 1, - offset: 0, - map: void 0, - breakLineCode: r, - needIndent: a, - indentLevel: 0 - }; - l && e.loc && (o.source = e.loc.source); - const u = () => o; - function m(y, f) { - o.code += y; - } - function h(y, f = !0) { - const _ = f ? r : ""; - m(a ? _ + " ".repeat(y) : _); - } - function N(y = !0) { - const f = ++o.indentLevel; - y && h(f); - } - function p(y = !0) { - const f = --o.indentLevel; - y && h(f); - } - function O() { - h(o.indentLevel); - } - return { - context: u, - push: m, - indent: N, - deindent: p, - newline: O, - helper: (y) => `_${y}`, - needIndent: () => o.needIndent - }; -} -function Hr(e, t) { - const { helper: n } = e; - e.push(`${n( - "linked" - /* HelperNameMap.LINKED */ - )}(`), He(e, t.key), t.modifier ? (e.push(", "), He(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); -} -function Gr(e, t) { - const { helper: n, needIndent: s } = e; - e.push(`${n( - "normalize" - /* HelperNameMap.NORMALIZE */ - )}([`), e.indent(s()); - const r = t.items.length; - for (let a = 0; a < r && (He(e, t.items[a]), a !== r - 1); a++) - e.push(", "); - e.deindent(s()), e.push("])"); -} -function xr(e, t) { - const { helper: n, needIndent: s } = e; - if (t.cases.length > 1) { - e.push(`${n( - "plural" - /* HelperNameMap.PLURAL */ - )}([`), e.indent(s()); - const r = t.cases.length; - for (let a = 0; a < r && (He(e, t.cases[a]), a !== r - 1); a++) - e.push(", "); - e.deindent(s()), e.push("])"); - } -} -function Br(e, t) { - t.body ? He(e, t.body) : e.push("null"); -} -function He(e, t) { - const { helper: n } = e; - switch (t.type) { - case 0: - Br(e, t); - break; - case 1: - xr(e, t); - break; - case 2: - Gr(e, t); - break; - case 6: - Hr(e, t); - break; - case 8: - e.push(JSON.stringify(t.value), t); - break; - case 7: - e.push(JSON.stringify(t.value), t); - break; - case 5: - e.push(`${n( - "interpolate" - /* HelperNameMap.INTERPOLATE */ - )}(${n( - "list" - /* HelperNameMap.LIST */ - )}(${t.index}))`, t); - break; - case 4: - e.push(`${n( - "interpolate" - /* HelperNameMap.INTERPOLATE */ - )}(${n( - "named" - /* HelperNameMap.NAMED */ - )}(${JSON.stringify(t.key)}))`, t); - break; - case 9: - e.push(JSON.stringify(t.value), t); - break; - case 3: - e.push(JSON.stringify(t.value), t); - break; - default: - if (process.env.NODE_ENV !== "production") - throw xe(D.UNHANDLED_CODEGEN_NODE_TYPE, null, { - domain: $r, - args: [t.type] - }); - } -} -const Yr = (e, t = {}) => { - const n = L(t.mode) ? t.mode : "normal", s = L(t.filename) ? t.filename : "message.intl", r = !!t.sourceMap, a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` -`, l = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], u = Wr(e, { - mode: n, - filename: s, - sourceMap: r, - breakLineCode: a, - needIndent: l - }); - u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(l), o.length > 0 && (u.push(`const { ${tn(o.map((N) => `${N}: _${N}`), ", ")} } = ctx`), u.newline()), u.push("return "), He(u, e), u.deindent(l), u.push("}"), delete e.helpers; - const { code: m, map: h } = u.context(); - return { - ast: e, - code: m, - map: h ? h.toJSON() : void 0 - // eslint-disable-line @typescript-eslint/no-explicit-any - }; -}; -function Kr(e, t = {}) { - const n = J({}, t), s = !!n.jit, r = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = Mr(n).parse(e); - return s ? (a && Vr(o), r && $e(o), { ast: o, code: "" }) : (wr(o, n), Yr(o, n)); -} -/*! - * core-base v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */ -function jr() { - typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1); -} -function Pt(e) { - return (n) => Xr(n, e); -} -function Xr(e, t) { - const n = t.b || t.body; - if ((n.t || n.type) === 1) { - const s = n, r = s.c || s.cases; - return e.plural(r.reduce((a, l) => [ - ...a, - bn(e, l) - ], [])); - } else - return bn(e, n); -} -function bn(e, t) { - const n = t.s || t.static; - if (n) - return e.type === "text" ? n : e.normalize([n]); - { - const s = (t.i || t.items).reduce((r, a) => [...r, Ut(e, a)], []); - return e.normalize(s); - } -} -function Ut(e, t) { - const n = t.t || t.type; - switch (n) { - case 3: { - const s = t; - return s.v || s.value; - } - case 9: { - const s = t; - return s.v || s.value; - } - case 4: { - const s = t; - return e.interpolate(e.named(s.k || s.key)); - } - case 5: { - const s = t; - return e.interpolate(e.list(s.i != null ? s.i : s.index)); - } - case 6: { - const s = t, r = s.m || s.modifier; - return e.linked(Ut(e, s.k || s.key), r ? Ut(e, r) : void 0, e.type); - } - case 7: { - const s = t; - return s.v || s.value; - } - case 8: { - const s = t; - return s.v || s.value; - } - default: - throw new Error(`unhandled node type on format message part: ${n}`); - } -} -const Zr = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS."; -function qr(e, t) { - t && Lr(e) && Te(ft(Zr, { source: e })); -} -const Jr = (e) => e; -let lt = /* @__PURE__ */ Object.create(null); -const Le = (e) => V(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e); -function Qr(e, t = {}) { - let n = !1; - const s = t.onError || br; - return t.onError = (r) => { - n = !0, s(r); - }, { ...Kr(e, t), detectError: n }; -} -// @__NO_SIDE_EFFECTS__ -function zr(e, t) { - if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) { - const n = w(t.warnHtmlMessage) ? t.warnHtmlMessage : !0; - process.env.NODE_ENV !== "production" && qr(e, n); - const r = (t.onCacheKey || Jr)(e), a = lt[r]; - if (a) - return a; - const { ast: l, detectError: o } = Qr(e, { - ...t, - location: process.env.NODE_ENV !== "production", - jit: !0 - }), u = Pt(l); - return o ? u : lt[r] = u; - } else { - if (process.env.NODE_ENV !== "production" && !Le(e)) - return Te(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e; - const n = e.cacheKey; - if (n) { - const s = lt[n]; - return s || (lt[n] = Pt(e)); - } else - return Pt(e); - } -} -let qe = null; -function ea(e) { - qe = e; -} -function ta(e, t, n) { - qe && qe.emit("i18n:init", { - timestamp: Date.now(), - i18n: e, - version: t, - meta: n - }); -} -const na = /* @__PURE__ */ sa("function:translate"); -function sa(e) { - return (t) => qe && qe.emit(e, t); -} -const z = { - INVALID_ARGUMENT: hr, - // 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 -}, ra = 24; -function Ce(e) { - return xe(e, null, process.env.NODE_ENV !== "production" ? { messages: aa } : void 0); -} -const aa = { - [z.INVALID_ARGUMENT]: "Invalid arguments", - [z.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.", - [z.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string", - [z.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message", - [z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value", - [z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function", - [z.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type" -}; -function rn(e, t) { - return t.locale != null ? vn(t.locale) : vn(e.locale); -} -let Rt; -function vn(e) { - if (L(e)) - return e; - if (x(e)) { - if (e.resolvedOnce && Rt != null) - return Rt; - if (e.constructor.name === "Function") { - const t = e(); - if (pr(t)) - throw Ce(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE); - return Rt = t; - } else - throw Ce(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); - } else - throw Ce(z.NOT_SUPPORT_LOCALE_TYPE); -} -function la(e, t, n) { - return [.../* @__PURE__ */ new Set([ - n, - ...B(t) ? t : V(t) ? Object.keys(t) : L(t) ? [t] : [n] - ])]; -} -function ns(e, t, n) { - const s = L(n) ? n : Je, r = e; - r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map()); - let a = r.__localeChainCache.get(s); - if (!a) { - a = []; - let l = [n]; - for (; B(l); ) - l = Ln(a, l, t); - const o = B(t) || !R(t) ? t : t.default ? t.default : null; - l = L(o) ? [o] : o, B(l) && Ln(a, l, !1), r.__localeChainCache.set(s, a); - } - return a; -} -function Ln(e, t, n) { - let s = !0; - for (let r = 0; r < t.length && w(s); r++) { - const a = t[r]; - L(a) && (s = oa(e, t[r], n)); - } - return s; -} -function oa(e, t, n) { - let s; - const r = t.split("-"); - do { - const a = r.join("-"); - s = ia(e, a, n), r.splice(-1, 1); - } while (r.length && s === !0); - return s; -} -function ia(e, t, n) { - let s = !1; - if (!e.includes(t) && (s = !0, t)) { - s = t[t.length - 1] !== "!"; - const r = t.replace(/!/g, ""); - e.push(r), (B(n) || R(n)) && n[r] && (s = n[r]); - } - return s; -} -const Ie = []; -Ie[ - 0 - /* States.BEFORE_PATH */ -] = { - w: [ - 0 - /* States.BEFORE_PATH */ - ], - i: [ - 3, - 0 - /* Actions.APPEND */ - ], - "[": [ - 4 - /* States.IN_SUB_PATH */ - ], - o: [ - 7 - /* States.AFTER_PATH */ - ] -}; -Ie[ - 1 - /* States.IN_PATH */ -] = { - w: [ - 1 - /* States.IN_PATH */ - ], - ".": [ - 2 - /* States.BEFORE_IDENT */ - ], - "[": [ - 4 - /* States.IN_SUB_PATH */ - ], - o: [ - 7 - /* States.AFTER_PATH */ - ] -}; -Ie[ - 2 - /* States.BEFORE_IDENT */ -] = { - w: [ - 2 - /* States.BEFORE_IDENT */ - ], - i: [ - 3, - 0 - /* Actions.APPEND */ - ], - 0: [ - 3, - 0 - /* Actions.APPEND */ - ] -}; -Ie[ - 3 - /* States.IN_IDENT */ -] = { - i: [ - 3, - 0 - /* Actions.APPEND */ - ], - 0: [ - 3, - 0 - /* Actions.APPEND */ - ], - w: [ - 1, - 1 - /* Actions.PUSH */ - ], - ".": [ - 2, - 1 - /* Actions.PUSH */ - ], - "[": [ - 4, - 1 - /* Actions.PUSH */ - ], - o: [ - 7, - 1 - /* Actions.PUSH */ - ] -}; -Ie[ - 4 - /* States.IN_SUB_PATH */ -] = { - "'": [ - 5, - 0 - /* Actions.APPEND */ - ], - '"': [ - 6, - 0 - /* Actions.APPEND */ - ], - "[": [ - 4, - 2 - /* Actions.INC_SUB_PATH_DEPTH */ - ], - "]": [ - 1, - 3 - /* Actions.PUSH_SUB_PATH */ - ], - o: 8, - l: [ - 4, - 0 - /* Actions.APPEND */ - ] -}; -Ie[ - 5 - /* States.IN_SINGLE_QUOTE */ -] = { - "'": [ - 4, - 0 - /* Actions.APPEND */ - ], - o: 8, - l: [ - 5, - 0 - /* Actions.APPEND */ - ] -}; -Ie[ - 6 - /* States.IN_DOUBLE_QUOTE */ -] = { - '"': [ - 4, - 0 - /* Actions.APPEND */ - ], - o: 8, - l: [ - 6, - 0 - /* Actions.APPEND */ - ] -}; -const ca = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; -function ua(e) { - return ca.test(e); -} -function fa(e) { - const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); - return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; -} -function _a(e) { - if (e == null) - return "o"; - switch (e.charCodeAt(0)) { - case 91: - case 93: - case 46: - case 34: - case 39: - return e; - case 95: - case 36: - case 45: - return "i"; - case 9: - case 10: - case 13: - case 160: - case 65279: - case 8232: - case 8233: - return "w"; - } - return "i"; -} -function da(e) { - const t = e.trim(); - return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ua(t) ? fa(t) : "*" + t; -} -function ma(e) { - const t = []; - let n = -1, s = 0, r = 0, a, l, o, u, m, h, N; - const p = []; - p[ - 0 - /* Actions.APPEND */ - ] = () => { - l === void 0 ? l = o : l += o; - }, p[ - 1 - /* Actions.PUSH */ - ] = () => { - l !== void 0 && (t.push(l), l = void 0); - }, p[ - 2 - /* Actions.INC_SUB_PATH_DEPTH */ - ] = () => { - p[ - 0 - /* Actions.APPEND */ - ](), r++; - }, p[ - 3 - /* Actions.PUSH_SUB_PATH */ - ] = () => { - if (r > 0) - r--, s = 4, p[ - 0 - /* Actions.APPEND */ - ](); - else { - if (r = 0, l === void 0 || (l = da(l), l === !1)) - return !1; - p[ - 1 - /* Actions.PUSH */ - ](); - } - }; - function O() { - const S = e[n + 1]; - if (s === 5 && S === "'" || s === 6 && S === '"') - return n++, o = "\\" + S, p[ - 0 - /* Actions.APPEND */ - ](), !0; - } - for (; s !== null; ) - if (n++, a = e[n], !(a === "\\" && O())) { - if (u = _a(a), N = Ie[s], m = N[u] || N.l || 8, m === 8 || (s = m[0], m[1] !== void 0 && (h = p[m[1]], h && (o = a, h() === !1)))) - return; - if (s === 7) - return t; - } -} -const Tn = /* @__PURE__ */ new Map(); -function pa(e, t) { - return V(e) ? e[t] : null; -} -function Ea(e, t) { - if (!V(e)) - return null; - let n = Tn.get(t); - if (n || (n = ma(t), n && Tn.set(t, n)), !n) - return null; - const s = n.length; - let r = e, a = 0; - for (; a < s; ) { - const l = r[n[a]]; - if (l === void 0 || x(r)) - return null; - r = l, a++; - } - return r; -} -const ne = { - NOT_FOUND_KEY: 1, - FALLBACK_TO_TRANSLATE: 2, - CANNOT_FORMAT_NUMBER: 3, - FALLBACK_TO_NUMBER_FORMAT: 4, - CANNOT_FORMAT_DATE: 5, - FALLBACK_TO_DATE_FORMAT: 6, - EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7 -}, ga = 8, Ca = { - [ne.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.", - [ne.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.", - [ne.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.", - [ne.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.", - [ne.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.", - [ne.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.", - [ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future." -}; -function Re(e, ...t) { - return ft(Ca[e], ...t); -} -const ha = "10.0.1", dt = -1, Je = "en-US", ct = "", In = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; -function Na() { - return { - upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, - lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, - capitalize: (e, t) => t === "text" && L(e) ? In(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? In(e.children) : e - }; -} -let ss; -function ba(e) { - ss = e; -} -let rs; -function va(e) { - rs = e; -} -let as; -function La(e) { - as = e; -} -let ls = null; -const Ta = /* @__NO_SIDE_EFFECTS__ */ (e) => { - ls = e; -}, Ia = /* @__NO_SIDE_EFFECTS__ */ () => ls; -let os = null; -const On = (e) => { - os = e; -}, Oa = () => os; -let yn = 0; -function ya(e = {}) { - const t = x(e.onWarn) ? e.onWarn : Te, n = L(e.version) ? e.version : ha, s = L(e.locale) || x(e.locale) ? e.locale : Je, r = x(s) ? Je : s, a = B(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, l = R(e.messages) ? e.messages : { [r]: {} }, o = R(e.datetimeFormats) ? e.datetimeFormats : { [r]: {} }, u = R(e.numberFormats) ? e.numberFormats : { [r]: {} }, m = J({}, e.modifiers || {}, Na()), h = e.pluralRules || {}, N = x(e.missing) ? e.missing : null, p = w(e.missingWarn) || We(e.missingWarn) ? e.missingWarn : !0, O = w(e.fallbackWarn) || We(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, A = !!e.unresolving, y = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, _ = w(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, E = x(e.messageCompiler) ? e.messageCompiler : ss; - process.env.NODE_ENV !== "production" && x(e.messageCompiler) && ts(Re(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER)); - const T = x(e.messageResolver) ? e.messageResolver : rs || pa, I = x(e.localeFallbacker) ? e.localeFallbacker : as || la, g = V(e.fallbackContext) ? e.fallbackContext : void 0, M = e, $ = V(M.__datetimeFormatters) ? M.__datetimeFormatters : /* @__PURE__ */ new Map(), X = V(M.__numberFormatters) ? M.__numberFormatters : /* @__PURE__ */ new Map(), ie = V(M.__meta) ? M.__meta : {}; - yn++; - const Z = { - version: n, - cid: yn, - locale: s, - fallbackLocale: a, - messages: l, - modifiers: m, - pluralRules: h, - missing: N, - missingWarn: p, - fallbackWarn: O, - fallbackFormat: S, - unresolving: A, - postTranslation: y, - processor: f, - warnHtmlMessage: _, - escapeParameter: v, - messageCompiler: E, - messageResolver: T, - localeFallbacker: I, - fallbackContext: g, - onWarn: t, - __meta: ie - }; - return Z.datetimeFormats = o, Z.numberFormats = u, Z.__datetimeFormatters = $, Z.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Z.__v_emitter = M.__v_emitter != null ? M.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ta(Z, n, ie), Z; -} -function mt(e, t) { - return e instanceof RegExp ? e.test(t) : e; -} -function is(e, t) { - return e instanceof RegExp ? e.test(t) : e; -} -function an(e, t, n, s, r) { - const { missing: a, onWarn: l } = e; - if (process.env.NODE_ENV !== "production") { - const o = e.__v_emitter; - o && o.emit("missing", { - locale: n, - key: t, - type: r, - groupId: `${r}:${t}` - }); - } - if (a !== null) { - const o = a(e, n, t, r); - return L(o) ? o : t; - } else - return process.env.NODE_ENV !== "production" && is(s, t) && l(Re(ne.NOT_FOUND_KEY, { key: t, locale: n })), t; -} -function Xe(e, t, n) { - const s = e; - s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); -} -function cs(e, t) { - return e === t ? !1 : e.split("-")[0] === t.split("-")[0]; -} -function Aa(e, t) { - const n = t.indexOf(e); - if (n === -1) - return !1; - for (let s = n + 1; s < t.length; s++) - if (cs(e, t[s])) - return !0; - return !1; -} -const An = typeof Intl < "u", us = { - dateTimeFormat: An && typeof Intl.DateTimeFormat < "u", - numberFormat: An && typeof Intl.NumberFormat < "u" -}; -function kn(e, ...t) { - const { datetimeFormats: n, unresolving: s, fallbackLocale: r, onWarn: a, localeFallbacker: l } = e, { __datetimeFormatters: o } = e; - if (process.env.NODE_ENV !== "production" && !us.dateTimeFormat) - return a(Re(ne.CANNOT_FORMAT_DATE)), ct; - const [u, m, h, N] = $t(...t), p = w(h.missingWarn) ? h.missingWarn : e.missingWarn, O = w(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, S = !!h.part, A = rn(e, h), y = l( - e, - // eslint-disable-line @typescript-eslint/no-explicit-any - r, - A - ); - if (!L(u) || u === "") - return new Intl.DateTimeFormat(A, N).format(m); - let f = {}, _, v = null, E = A, T = null; - const I = "datetime format"; - for (let $ = 0; $ < y.length; $++) { - if (_ = T = y[$], process.env.NODE_ENV !== "production" && A !== _ && mt(O, u) && a(Re(ne.FALLBACK_TO_DATE_FORMAT, { - key: u, - target: _ - })), process.env.NODE_ENV !== "production" && A !== _) { - const X = e.__v_emitter; - X && X.emit("fallback", { - type: I, - key: u, - from: E, - to: T, - groupId: `${I}:${u}` - }); - } - if (f = n[_] || {}, v = f[u], R(v)) - break; - an(e, u, _, p, I), E = T; - } - if (!R(v) || !L(_)) - return s ? dt : u; - let g = `${_}__${u}`; - _t(N) || (g = `${g}__${JSON.stringify(N)}`); - let M = o.get(g); - return M || (M = new Intl.DateTimeFormat(_, J({}, v, N)), o.set(g, M)), S ? M.formatToParts(m) : M.format(m); -} -const fs = [ - "localeMatcher", - "weekday", - "era", - "year", - "month", - "day", - "hour", - "minute", - "second", - "timeZoneName", - "formatMatcher", - "hour12", - "timeZone", - "dateStyle", - "timeStyle", - "calendar", - "dayPeriod", - "numberingSystem", - "hourCycle", - "fractionalSecondDigits" -]; -function $t(...e) { - const [t, n, s, r] = e, a = {}; - let l = {}, o; - if (L(t)) { - const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/); - if (!u) - throw Ce(z.INVALID_ISO_DATE_ARGUMENT); - const m = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim(); - o = new Date(m); - try { - o.toISOString(); - } catch { - throw Ce(z.INVALID_ISO_DATE_ARGUMENT); - } - } else if (dr(t)) { - if (isNaN(t.getTime())) - throw Ce(z.INVALID_DATE_ARGUMENT); - o = t; - } else if (q(t)) - o = t; - else - throw Ce(z.INVALID_ARGUMENT); - return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => { - fs.includes(u) ? l[u] = n[u] : a[u] = n[u]; - }), L(s) ? a.locale = s : R(s) && (l = s), R(r) && (l = r), [a.key || "", o, a, l]; -} -function Sn(e, t, n) { - const s = e; - for (const r in n) { - const a = `${t}__${r}`; - s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a); - } -} -function Dn(e, ...t) { - const { numberFormats: n, unresolving: s, fallbackLocale: r, onWarn: a, localeFallbacker: l } = e, { __numberFormatters: o } = e; - if (process.env.NODE_ENV !== "production" && !us.numberFormat) - return a(Re(ne.CANNOT_FORMAT_NUMBER)), ct; - const [u, m, h, N] = Wt(...t), p = w(h.missingWarn) ? h.missingWarn : e.missingWarn, O = w(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, S = !!h.part, A = rn(e, h), y = l( - e, - // eslint-disable-line @typescript-eslint/no-explicit-any - r, - A - ); - if (!L(u) || u === "") - return new Intl.NumberFormat(A, N).format(m); - let f = {}, _, v = null, E = A, T = null; - const I = "number format"; - for (let $ = 0; $ < y.length; $++) { - if (_ = T = y[$], process.env.NODE_ENV !== "production" && A !== _ && mt(O, u) && a(Re(ne.FALLBACK_TO_NUMBER_FORMAT, { - key: u, - target: _ - })), process.env.NODE_ENV !== "production" && A !== _) { - const X = e.__v_emitter; - X && X.emit("fallback", { - type: I, - key: u, - from: E, - to: T, - groupId: `${I}:${u}` - }); - } - if (f = n[_] || {}, v = f[u], R(v)) - break; - an(e, u, _, p, I), E = T; - } - if (!R(v) || !L(_)) - return s ? dt : u; - let g = `${_}__${u}`; - _t(N) || (g = `${g}__${JSON.stringify(N)}`); - let M = o.get(g); - return M || (M = new Intl.NumberFormat(_, J({}, v, N)), o.set(g, M)), S ? M.formatToParts(m) : M.format(m); -} -const _s = [ - "localeMatcher", - "style", - "currency", - "currencyDisplay", - "currencySign", - "useGrouping", - "minimumIntegerDigits", - "minimumFractionDigits", - "maximumFractionDigits", - "minimumSignificantDigits", - "maximumSignificantDigits", - "compactDisplay", - "notation", - "signDisplay", - "unit", - "unitDisplay", - "roundingMode", - "roundingPriority", - "roundingIncrement", - "trailingZeroDisplay" -]; -function Wt(...e) { - const [t, n, s, r] = e, a = {}; - let l = {}; - if (!q(t)) - throw Ce(z.INVALID_ARGUMENT); - const o = t; - return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => { - _s.includes(u) ? l[u] = n[u] : a[u] = n[u]; - }), L(s) ? a.locale = s : R(s) && (l = s), R(r) && (l = r), [a.key || "", o, a, l]; -} -function Pn(e, t, n) { - const s = e; - for (const r in n) { - const a = `${t}__${r}`; - s.__numberFormatters.has(a) && s.__numberFormatters.delete(a); - } -} -const ka = (e) => e, Sa = (e) => "", Da = "text", Pa = (e) => e.length === 0 ? "" : tn(e), Ra = Er; -function Rn(e, t) { - return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0; -} -function Ma(e) { - const t = q(e.pluralIndex) ? e.pluralIndex : -1; - return e.named && (q(e.named.count) || q(e.named.n)) ? q(e.named.count) ? e.named.count : q(e.named.n) ? e.named.n : t : t; -} -function Fa(e, t) { - t.count || (t.count = e), t.n || (t.n = e); -} -function wa(e = {}) { - const t = e.locale, n = Ma(e), s = V(e.pluralRules) && L(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : Rn, r = V(e.pluralRules) && L(t) && x(e.pluralRules[t]) ? Rn : void 0, a = (f) => f[s(n, f.length, r)], l = e.list || [], o = (f) => l[f], u = e.named || {}; - q(e.pluralIndex) && Fa(n, u); - const m = (f) => u[f]; - function h(f, _) { - const v = x(e.messages) ? e.messages(f, !!_) : V(e.messages) ? e.messages[f] : !1; - return v || (e.parent ? e.parent.message(f) : Sa); - } - const N = (f) => e.modifiers ? e.modifiers[f] : ka, p = R(e.processor) && x(e.processor.normalize) ? e.processor.normalize : Pa, O = R(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : Ra, S = R(e.processor) && L(e.processor.type) ? e.processor.type : Da, y = { - list: o, - named: m, - plural: a, - linked: (f, ..._) => { - const [v, E] = _; - let T = "text", I = ""; - _.length === 1 ? V(v) ? (I = v.modifier || I, T = v.type || T) : L(v) && (I = v || I) : _.length === 2 && (L(v) && (I = v || I), L(E) && (T = E || T)); - const g = h(f, !0)(y), M = ( - // The message in vnode resolved with linked are returned as an array by processor.nomalize - T === "vnode" && B(g) && I ? g[0] : g - ); - return I ? N(I)(M, T) : M; - }, - message: h, - type: S, - interpolate: O, - normalize: p, - values: J({}, l, u) - }; - return y; -} -const Mn = () => "", ae = (e) => x(e); -function Fn(e, ...t) { - const { fallbackFormat: n, postTranslation: s, unresolving: r, messageCompiler: a, fallbackLocale: l, messages: o } = e, [u, m] = Ht(...t), h = w(m.missingWarn) ? m.missingWarn : e.missingWarn, N = w(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, p = w(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, O = !!m.resolvedMessage, S = L(m.default) || w(m.default) ? w(m.default) ? a ? u : () => u : m.default : n ? a ? u : () => u : null, A = n || S != null && (L(S) || x(S)), y = rn(e, m); - p && Va(m); - let [f, _, v] = O ? [ - u, - y, - o[y] || {} - ] : ds(e, u, y, l, N, h), E = f, T = u; - if (!O && !(L(E) || Le(E) || ae(E)) && A && (E = S, T = E), !O && (!(L(E) || Le(E) || ae(E)) || !L(_))) - return r ? dt : u; - if (process.env.NODE_ENV !== "production" && L(E) && e.messageCompiler == null) - return Te(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u; - let I = !1; - const g = () => { - I = !0; - }, M = ae(E) ? E : ms(e, u, _, E, T, g); - if (I) - return E; - const $ = Ha(e, _, v, m), X = wa($), ie = Ua(e, M, X), Z = s ? s(ie, u) : ie; - if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) { - const Fe = { - timestamp: Date.now(), - key: L(u) ? u : ae(E) ? E.key : "", - locale: _ || (ae(E) ? E.locale : ""), - format: L(E) ? E : ae(E) ? E.source : "", - message: Z - }; - Fe.meta = J({}, e.__meta, /* @__PURE__ */ Ia() || {}), na(Fe); - } - return Z; -} -function Va(e) { - B(e.list) ? e.list = e.list.map((t) => L(t) ? pn(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => { - L(e.named[t]) && (e.named[t] = pn(e.named[t])); - }); -} -function ds(e, t, n, s, r, a) { - const { messages: l, onWarn: o, messageResolver: u, localeFallbacker: m } = e, h = m(e, s, n); - let N = {}, p, O = null, S = n, A = null; - const y = "translate"; - for (let f = 0; f < h.length; f++) { - if (p = A = h[f], process.env.NODE_ENV !== "production" && n !== p && !cs(n, p) && mt(r, t) && o(Re(ne.FALLBACK_TO_TRANSLATE, { - key: t, - target: p - })), process.env.NODE_ENV !== "production" && n !== p) { - const T = e.__v_emitter; - T && T.emit("fallback", { - type: y, - key: t, - from: S, - to: A, - groupId: `${y}:${t}` - }); - } - N = l[p] || {}; - let _ = null, v, E; - if (process.env.NODE_ENV !== "production" && fe && (_ = window.performance.now(), v = "intlify-message-resolve-start", E = "intlify-message-resolve-end", re && re(v)), (O = u(N, t)) === null && (O = N[t]), process.env.NODE_ENV !== "production" && fe) { - const T = window.performance.now(), I = e.__v_emitter; - I && _ && O && I.emit("message-resolve", { - type: "message-resolve", - key: t, - message: O, - time: T - _, - groupId: `${y}:${t}` - }), v && E && re && Pe && (re(E), Pe("intlify message resolve", v, E)); - } - if (L(O) || Le(O) || ae(O)) - break; - if (!Aa(p, h)) { - const T = an( - e, - // eslint-disable-line @typescript-eslint/no-explicit-any - t, - p, - a, - y - ); - T !== t && (O = T); - } - S = A; - } - return [O, p, N]; -} -function ms(e, t, n, s, r, a) { - const { messageCompiler: l, warnHtmlMessage: o } = e; - if (ae(s)) { - const p = s; - return p.locale = p.locale || n, p.key = p.key || t, p; - } - if (l == null) { - const p = () => s; - return p.locale = n, p.key = t, p; - } - let u = null, m, h; - process.env.NODE_ENV !== "production" && fe && (u = window.performance.now(), m = "intlify-message-compilation-start", h = "intlify-message-compilation-end", re && re(m)); - const N = l(s, $a(e, n, r, s, o, a)); - if (process.env.NODE_ENV !== "production" && fe) { - const p = window.performance.now(), O = e.__v_emitter; - O && u && O.emit("message-compilation", { - type: "message-compilation", - message: s, - time: p - u, - groupId: `translate:${t}` - }), m && h && re && Pe && (re(h), Pe("intlify message compilation", m, h)); - } - return N.locale = n, N.key = t, N.source = s, N; -} -function Ua(e, t, n) { - let s = null, r, a; - process.env.NODE_ENV !== "production" && fe && (s = window.performance.now(), r = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", re && re(r)); - const l = t(n); - if (process.env.NODE_ENV !== "production" && fe) { - const o = window.performance.now(), u = e.__v_emitter; - u && s && u.emit("message-evaluation", { - type: "message-evaluation", - value: l, - time: o - s, - groupId: `translate:${t.key}` - }), r && a && re && Pe && (re(a), Pe("intlify message evaluation", r, a)); - } - return l; -} -function Ht(...e) { - const [t, n, s] = e, r = {}; - if (!L(t) && !q(t) && !ae(t) && !Le(t)) - throw Ce(z.INVALID_ARGUMENT); - const a = q(t) ? String(t) : (ae(t), t); - return q(n) ? r.plural = n : L(n) ? r.default = n : R(n) && !_t(n) ? r.named = n : B(n) && (r.list = n), q(s) ? r.plural = s : L(s) ? r.default = s : R(s) && J(r, s), [a, r]; -} -function $a(e, t, n, s, r, a) { - return { - locale: t, - key: n, - warnHtmlMessage: r, - onError: (l) => { - if (a && a(l), process.env.NODE_ENV !== "production") { - const o = Wa(s), u = `Message compilation error: ${l.message}`, m = l.location && o && gr(o, l.location.start.offset, l.location.end.offset), h = e.__v_emitter; - h && o && h.emit("compile-error", { - message: o, - error: l.message, - start: l.location && l.location.start.offset, - end: l.location && l.location.end.offset, - groupId: `translate:${n}` - }), console.error(m ? `${u} -${m}` : u); - } else - throw l; - }, - onCacheKey: (l) => fr(t, n, l) - }; -} -function Wa(e) { - if (L(e)) - return e; - if (e.loc && e.loc.source) - return e.loc.source; -} -function Ha(e, t, n, s) { - const { modifiers: r, pluralRules: a, messageResolver: l, fallbackLocale: o, fallbackWarn: u, missingWarn: m, fallbackContext: h } = e, p = { - locale: t, - modifiers: r, - pluralRules: a, - messages: (O, S) => { - let A = l(n, O); - if (A == null && (h || S)) { - const [, , y] = ds( - h || e, - // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context - O, - t, - o, - u, - m - ); - A = l(y, O); - } - if (L(A) || Le(A)) { - let y = !1; - const _ = ms(e, O, t, A, O, () => { - y = !0; - }); - return y ? Mn : _; - } else return ae(A) ? A : Mn; - } - }; - return e.processor && (p.processor = e.processor), s.list && (p.list = s.list), s.named && (p.named = s.named), q(s.plural) && (p.pluralIndex = s.plural), p; -} -jr(); -function Ga() { - return ps().__VUE_DEVTOOLS_GLOBAL_HOOK__; -} -function ps() { - return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {}; -} -const xa = typeof Proxy == "function", Ba = "devtools-plugin:setup", Ya = "plugin:settings:set"; -let Ve, Gt; -function Ka() { - var e; - return Ve !== void 0 || (typeof window < "u" && window.performance ? (Ve = !0, Gt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ve = !0, Gt = globalThis.perf_hooks.performance) : Ve = !1), Ve; -} -function ja() { - return Ka() ? Gt.now() : Date.now(); -} -class Xa { - constructor(t, n) { - this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n; - const s = {}; - if (t.settings) - for (const l in t.settings) { - const o = t.settings[l]; - s[l] = o.defaultValue; - } - const r = `__vue-devtools-plugin-settings__${t.id}`; - let a = Object.assign({}, s); - try { - const l = localStorage.getItem(r), o = JSON.parse(l); - Object.assign(a, o); - } catch { - } - this.fallbacks = { - getSettings() { - return a; - }, - setSettings(l) { - try { - localStorage.setItem(r, JSON.stringify(l)); - } catch { - } - a = l; - }, - now() { - return ja(); - } - }, n && n.on(Ya, (l, o) => { - l === this.plugin.id && this.fallbacks.setSettings(o); - }), this.proxiedOn = new Proxy({}, { - get: (l, o) => this.target ? this.target.on[o] : (...u) => { - this.onQueue.push({ - method: o, - args: u - }); - } - }), this.proxiedTarget = new Proxy({}, { - get: (l, o) => this.target ? this.target[o] : o === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(o) ? (...u) => (this.targetQueue.push({ - method: o, - args: u, - resolve: () => { - } - }), this.fallbacks[o](...u)) : (...u) => new Promise((m) => { - this.targetQueue.push({ - method: o, - args: u, - resolve: m - }); - }) - }); - } - async setRealTarget(t) { - this.target = t; - for (const n of this.onQueue) - this.target.on[n.method](...n.args); - for (const n of this.targetQueue) - n.resolve(await this.target[n.method](...n.args)); - } -} -function Za(e, t) { - const n = e, s = ps(), r = Ga(), a = xa && n.enableEarlyProxy; - if (r && (s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) - r.emit(Ba, e, t); - else { - const l = a ? new Xa(n, r) : null; - (s.__VUE_DEVTOOLS_PLUGINS__ = s.__VUE_DEVTOOLS_PLUGINS__ || []).push({ - pluginDescriptor: n, - setupFn: t, - proxy: l - }), l && t(l.proxiedTarget); - } -} -/*! - * vue-i18n v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */ -const qa = "10.0.1"; -function Ja() { - typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ke().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ke().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1); -} -const ve = { - FALLBACK_TO_ROOT: ga, - // 8 - NOT_FOUND_PARENT_SCOPE: 9, - IGNORE_OBJ_FLATTEN: 10, - DEPRECATE_TC: 11 -}, Qa = { - [ve.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.", - [ve.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.", - [ve.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value", - [ve.DEPRECATE_TC]: "'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11." -}; -function pt(e, ...t) { - return ft(Qa[e], ...t); -} -const G = { - // composer module errors - UNEXPECTED_RETURN_TYPE: ra, - // 24 - // legacy module errors - INVALID_ARGUMENT: 25, - // i18n module errors - MUST_BE_CALL_SETUP_TOP: 26, - NOT_INSTALLED: 27, - // directive module errors - REQUIRED_VALUE: 28, - INVALID_VALUE: 29, - // vue-devtools errors - CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30, - NOT_INSTALLED_WITH_PROVIDE: 31, - // unexpected error - UNEXPECTED_ERROR: 32, - // not compatible legacy vue-i18n constructor - NOT_COMPATIBLE_LEGACY_VUE_I18N: 33, - // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly - NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34 -}; -function te(e, ...t) { - return xe(e, null, process.env.NODE_ENV !== "production" ? { messages: za, args: t } : void 0); -} -const za = { - [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer", - [G.INVALID_ARGUMENT]: "Invalid argument", - [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function", - [G.NOT_INSTALLED]: "Need to install with `app.use` function", - [G.UNEXPECTED_ERROR]: "Unexpected error", - [G.REQUIRED_VALUE]: "Required in value: {0}", - [G.INVALID_VALUE]: "Invalid value", - [G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin", - [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function", - [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.", - [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly" -}, xt = /* @__PURE__ */ pe("__translateVNode"), Bt = /* @__PURE__ */ pe("__datetimeParts"), Yt = /* @__PURE__ */ pe("__numberParts"), Me = /* @__PURE__ */ pe("__enableEmitter"), Qe = /* @__PURE__ */ pe("__disableEmitter"), Es = pe("__setPluralRules"), gs = /* @__PURE__ */ pe("__injectWithOption"), Kt = /* @__PURE__ */ pe("__dispose"); -function ze(e) { - if (!V(e)) - return e; - for (const t in e) - if (it(e, t)) - if (!t.includes(".")) - V(e[t]) && ze(e[t]); - else { - const n = t.split("."), s = n.length - 1; - let r = e, a = !1; - for (let l = 0; l < s; l++) { - if (n[l] in r || (r[n[l]] = {}), !V(r[n[l]])) { - process.env.NODE_ENV !== "production" && Te(pt(ve.IGNORE_OBJ_FLATTEN, { - key: n[l] - })), a = !0; - break; - } - r = r[n[l]]; - } - a || (r[n[s]] = e[t], delete e[t]), V(r[n[s]]) && ze(r[n[s]]); - } - return e; -} -function ln(e, t) { - const { messages: n, __i18n: s, messageResolver: r, flatJson: a } = t, l = R(n) ? n : B(s) ? {} : { [e]: {} }; - if (B(s) && s.forEach((o) => { - if ("locale" in o && "resource" in o) { - const { locale: u, resource: m } = o; - u ? (l[u] = l[u] || {}, ot(m, l[u])) : ot(m, l); - } else - L(o) && ot(JSON.parse(o), l); - }), r == null && a) - for (const o in l) - it(l, o) && ze(l[o]); - return l; -} -function Cs(e) { - return e.type; -} -function hs(e, t, n) { - let s = V(t.messages) ? t.messages : {}; - "__i18nGlobal" in n && (s = ln(e.locale.value, { - messages: s, - __i18n: n.__i18nGlobal - })); - const r = Object.keys(s); - r.length && r.forEach((a) => { - e.mergeLocaleMessage(a, s[a]); - }); - { - if (V(t.datetimeFormats)) { - const a = Object.keys(t.datetimeFormats); - a.length && a.forEach((l) => { - e.mergeDateTimeFormat(l, t.datetimeFormats[l]); - }); - } - if (V(t.numberFormats)) { - const a = Object.keys(t.numberFormats); - a.length && a.forEach((l) => { - e.mergeNumberFormat(l, t.numberFormats[l]); - }); - } - } -} -function wn(e) { - return Qn(Rs, null, e, 0); -} -const Vn = "__INTLIFY_META__", Un = () => [], el = () => !1; -let $n = 0; -function Wn(e) { - return (t, n, s, r) => e(n, s, Ze() || void 0, r); -} -const tl = /* @__NO_SIDE_EFFECTS__ */ () => { - const e = Ze(); - let t = null; - return e && (t = Cs(e)[Vn]) ? { [Vn]: t } : null; -}; -function on(e = {}) { - const { __root: t, __injectWithOption: n } = e, s = t === void 0, r = e.flatJson, a = fe ? be : Ps; - let l = w(e.inheritLocale) ? e.inheritLocale : !0; - const o = a( - // prettier-ignore - t && l ? t.locale.value : L(e.locale) ? e.locale : Je - ), u = a( - // prettier-ignore - t && l ? t.fallbackLocale.value : L(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o.value - ), m = a(ln(o.value, e)), h = a(R(e.datetimeFormats) ? e.datetimeFormats : { [o.value]: {} }), N = a(R(e.numberFormats) ? e.numberFormats : { [o.value]: {} }); - let p = t ? t.missingWarn : w(e.missingWarn) || We(e.missingWarn) ? e.missingWarn : !0, O = t ? t.fallbackWarn : w(e.fallbackWarn) || We(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : w(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, y = x(e.missing) ? e.missing : null, f = x(e.missing) ? Wn(e.missing) : null, _ = x(e.postTranslation) ? e.postTranslation : null, v = t ? t.warnHtmlMessage : w(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter; - const T = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {}; - let I = e.pluralRules || t && t.pluralRules, g; - g = (() => { - s && On(null); - const d = { - version: qa, - locale: o.value, - fallbackLocale: u.value, - messages: m.value, - modifiers: T, - pluralRules: I, - missing: f === null ? void 0 : f, - missingWarn: p, - fallbackWarn: O, - fallbackFormat: A, - unresolving: !0, - postTranslation: _ === null ? void 0 : _, - warnHtmlMessage: v, - escapeParameter: E, - messageResolver: e.messageResolver, - messageCompiler: e.messageCompiler, - __meta: { framework: "vue" } - }; - d.datetimeFormats = h.value, d.numberFormats = N.value, d.__datetimeFormatters = R(g) ? g.__datetimeFormatters : void 0, d.__numberFormatters = R(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (d.__v_emitter = R(g) ? g.__v_emitter : void 0); - const b = ya(d); - return s && On(b), b; - })(), Xe(g, o.value, u.value); - function $() { - return [ - o.value, - u.value, - m.value, - h.value, - N.value - ]; - } - const X = de({ - get: () => o.value, - set: (d) => { - o.value = d, g.locale = o.value; - } - }), ie = de({ - get: () => u.value, - set: (d) => { - u.value = d, g.fallbackLocale = u.value, Xe(g, o.value, d); - } - }), Z = de(() => m.value), Fe = /* @__PURE__ */ de(() => h.value), Et = /* @__PURE__ */ de(() => N.value); - function gt() { - return x(_) ? _ : null; - } - function Ct(d) { - _ = d, g.postTranslation = d; - } - function ht() { - return y; - } - function Nt(d) { - d !== null && (f = Wn(d)), y = d, g.missing = f; - } - function bt(d, b) { - return d !== "translate" || !b.resolvedMessage; - } - const Ee = (d, b, W, j, ye, rt) => { - $(); - let we; - try { - process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = t ? Oa() : void 0), we = d(g); - } finally { - process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = void 0); - } - if (W !== "translate exists" && // for not `te` (e.g `t`) - q(we) && we === dt || W === "translate exists" && !we) { - const [Ae, Is] = b(); - if (process.env.NODE_ENV !== "production" && t && L(Ae) && bt(W, Is) && (S && (mt(O, Ae) || is(p, Ae)) && Te(pt(ve.FALLBACK_TO_ROOT, { - key: Ae, - type: W - })), process.env.NODE_ENV !== "production")) { - const { __v_emitter: dn } = g; - dn && S && dn.emit("fallback", { - type: W, - key: Ae, - to: "global", - groupId: `${W}:${Ae}` - }); - } - return t && S ? j(t) : ye(Ae); - } else { - if (rt(we)) - return we; - throw te(G.UNEXPECTED_RETURN_TYPE); - } - }; - function Be(...d) { - return Ee((b) => Reflect.apply(Fn, null, [b, ...d]), () => Ht(...d), "translate", (b) => Reflect.apply(b.t, b, [...d]), (b) => b, (b) => L(b)); - } - function vt(...d) { - const [b, W, j] = d; - if (j && !V(j)) - throw te(G.INVALID_ARGUMENT); - return Be(b, W, J({ resolvedMessage: !0 }, j || {})); - } - function Lt(...d) { - return Ee((b) => Reflect.apply(kn, null, [b, ...d]), () => $t(...d), "datetime format", (b) => Reflect.apply(b.d, b, [...d]), () => ct, (b) => L(b)); - } - function Tt(...d) { - return Ee((b) => Reflect.apply(Dn, null, [b, ...d]), () => Wt(...d), "number format", (b) => Reflect.apply(b.n, b, [...d]), () => ct, (b) => L(b)); - } - function It(d) { - return d.map((b) => L(b) || q(b) || w(b) ? wn(String(b)) : b); - } - const Ot = { - normalize: It, - interpolate: (d) => d, - type: "vnode" - }; - function st(...d) { - return Ee((b) => { - let W; - const j = b; - try { - j.processor = Ot, W = Reflect.apply(Fn, null, [j, ...d]); - } finally { - j.processor = null; - } - return W; - }, () => Ht(...d), "translate", (b) => b[xt](...d), (b) => [wn(b)], (b) => B(b)); - } - function yt(...d) { - return Ee((b) => Reflect.apply(Dn, null, [b, ...d]), () => Wt(...d), "number format", (b) => b[Yt](...d), Un, (b) => L(b) || B(b)); - } - function At(...d) { - return Ee((b) => Reflect.apply(kn, null, [b, ...d]), () => $t(...d), "datetime format", (b) => b[Bt](...d), Un, (b) => L(b) || B(b)); - } - function kt(d) { - I = d, g.pluralRules = I; - } - function St(d, b) { - return Ee(() => { - if (!d) - return !1; - const W = L(b) ? b : o.value, j = Oe(W), ye = g.messageResolver(j, d); - return Le(ye) || ae(ye) || L(ye); - }, () => [d], "translate exists", (W) => Reflect.apply(W.te, W, [d, b]), el, (W) => w(W)); - } - function Ye(d) { - let b = null; - const W = ns(g, u.value, o.value); - for (let j = 0; j < W.length; j++) { - const ye = m.value[W[j]] || {}, rt = g.messageResolver(ye, d); - if (rt != null) { - b = rt; - break; - } - } - return b; - } - function Ke(d) { - const b = Ye(d); - return b ?? (t ? t.tm(d) || {} : {}); - } - function Oe(d) { - return m.value[d] || {}; - } - function je(d, b) { - if (r) { - const W = { [d]: b }; - for (const j in W) - it(W, j) && ze(W[j]); - b = W[d]; - } - m.value[d] = b, g.messages = m.value; - } - function Dt(d, b) { - m.value[d] = m.value[d] || {}; - const W = { [d]: b }; - if (r) - for (const j in W) - it(W, j) && ze(W[j]); - b = W[d], ot(b, m.value[d]), g.messages = m.value; - } - function i(d) { - return h.value[d] || {}; - } - function c(d, b) { - h.value[d] = b, g.datetimeFormats = h.value, Sn(g, d, b); - } - function C(d, b) { - h.value[d] = J(h.value[d] || {}, b), g.datetimeFormats = h.value, Sn(g, d, b); - } - function k(d) { - return N.value[d] || {}; - } - function Y(d, b) { - N.value[d] = b, g.numberFormats = N.value, Pn(g, d, b); - } - function K(d, b) { - N.value[d] = J(N.value[d] || {}, b), g.numberFormats = N.value, Pn(g, d, b); - } - $n++, t && fe && (wt(t.locale, (d) => { - l && (o.value = d, g.locale = d, Xe(g, o.value, u.value)); - }), wt(t.fallbackLocale, (d) => { - l && (u.value = d, g.fallbackLocale = d, Xe(g, o.value, u.value)); - })); - const U = { - id: $n, - locale: X, - fallbackLocale: ie, - get inheritLocale() { - return l; - }, - set inheritLocale(d) { - l = d, d && t && (o.value = t.locale.value, u.value = t.fallbackLocale.value, Xe(g, o.value, u.value)); - }, - get availableLocales() { - return Object.keys(m.value).sort(); - }, - messages: Z, - get modifiers() { - return T; - }, - get pluralRules() { - return I || {}; - }, - get isGlobal() { - return s; - }, - get missingWarn() { - return p; - }, - set missingWarn(d) { - p = d, g.missingWarn = p; - }, - get fallbackWarn() { - return O; - }, - set fallbackWarn(d) { - O = d, g.fallbackWarn = O; - }, - get fallbackRoot() { - return S; - }, - set fallbackRoot(d) { - S = d; - }, - get fallbackFormat() { - return A; - }, - set fallbackFormat(d) { - A = d, g.fallbackFormat = A; - }, - get warnHtmlMessage() { - return v; - }, - set warnHtmlMessage(d) { - v = d, g.warnHtmlMessage = d; - }, - get escapeParameter() { - return E; - }, - set escapeParameter(d) { - E = d, g.escapeParameter = d; - }, - t: Be, - getLocaleMessage: Oe, - setLocaleMessage: je, - mergeLocaleMessage: Dt, - getPostTranslationHandler: gt, - setPostTranslationHandler: Ct, - getMissingHandler: ht, - setMissingHandler: Nt, - [Es]: kt - }; - return U.datetimeFormats = Fe, U.numberFormats = Et, U.rt = vt, U.te = St, U.tm = Ke, U.d = Lt, U.n = Tt, U.getDateTimeFormat = i, U.setDateTimeFormat = c, U.mergeDateTimeFormat = C, U.getNumberFormat = k, U.setNumberFormat = Y, U.mergeNumberFormat = K, U[gs] = n, U[xt] = st, U[Bt] = At, U[Yt] = yt, process.env.NODE_ENV !== "production" && (U[Me] = (d) => { - g.__v_emitter = d; - }, U[Qe] = () => { - g.__v_emitter = void 0; - }), U; -} -const Ns = "vue-i18n: composer properties", Mt = { - "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools", - "vue-i18n-resource-inspector": "Vue I18n DevTools", - "vue-i18n-timeline": "Vue I18n" -}, nl = { - "vue-i18n-resource-inspector": "Search for scopes ..." -}, sl = { - "vue-i18n-timeline": 16764185 -}; -let jt; -async function rl(e, t) { - return new Promise((n, s) => { - try { - Za({ - id: "vue-devtools-plugin-vue-i18n", - label: Mt["vue-devtools-plugin-vue-i18n"], - packageName: "vue-i18n", - homepage: "https://vue-i18n.intlify.dev", - logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png", - componentStateTypes: [Ns], - app: e - // eslint-disable-line @typescript-eslint/no-explicit-any - }, (r) => { - jt = r, r.on.visitComponentTree(({ componentInstance: l, treeNode: o }) => { - al(l, o, t); - }), r.on.inspectComponent(({ componentInstance: l, instanceData: o }) => { - l.vnode.el && l.vnode.el.__VUE_I18N__ && o && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && Hn(o, l.vnode.el.__VUE_I18N__) : Hn(o, l.vnode.el.__VUE_I18N__)); - }), r.addInspector({ - id: "vue-i18n-resource-inspector", - label: Mt["vue-i18n-resource-inspector"], - icon: "language", - treeFilterPlaceholder: nl["vue-i18n-resource-inspector"] - }), r.on.getInspectorTree((l) => { - l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && ul(l, t); - }); - const a = /* @__PURE__ */ new Map(); - r.on.getInspectorState(async (l) => { - if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector") - if (r.unhighlightElement(), _l(l, t), l.nodeId === "global") { - if (!a.has(l.app)) { - const [o] = await r.getComponentInstances(l.app); - a.set(l.app, o); - } - r.highlightElement(a.get(l.app)); - } else { - const o = fl(l.nodeId, t); - o && r.highlightElement(o); - } - }), r.on.editInspectorState((l) => { - l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && ml(l, t); - }), r.addTimelineLayer({ - id: "vue-i18n-timeline", - label: Mt["vue-i18n-timeline"], - color: sl["vue-i18n-timeline"] - }), n(!0); - }); - } catch (r) { - console.error(r), s(!1); - } - }); -} -function bs(e) { - return e.type.name || e.type.displayName || e.type.__file || "Anonymous"; -} -function al(e, t, n) { - const s = n.mode === "composition" ? n.global : n.global.__composer; - if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== s) { - const r = { - label: `i18n (${bs(e)} Scope)`, - textColor: 0, - backgroundColor: 16764185 - }; - t.tags.push(r); - } -} -function Hn(e, t) { - const n = Ns; - e.state.push({ - type: n, - key: "locale", - editable: !0, - value: t.locale.value - }), e.state.push({ - type: n, - key: "availableLocales", - editable: !1, - value: t.availableLocales - }), e.state.push({ - type: n, - key: "fallbackLocale", - editable: !0, - value: t.fallbackLocale.value - }), e.state.push({ - type: n, - key: "inheritLocale", - editable: !0, - value: t.inheritLocale - }), e.state.push({ - type: n, - key: "messages", - editable: !1, - value: cn(t.messages.value) - }), e.state.push({ - type: n, - key: "datetimeFormats", - editable: !1, - value: t.datetimeFormats.value - }), e.state.push({ - type: n, - key: "numberFormats", - editable: !1, - value: t.numberFormats.value - }); -} -function cn(e) { - const t = {}; - return Object.keys(e).forEach((n) => { - const s = e[n]; - x(s) && "source" in s ? t[n] = cl(s) : Le(s) && s.loc && s.loc.source ? t[n] = s.loc.source : V(s) ? t[n] = cn(s) : t[n] = s; - }), t; -} -const ll = { - "<": "<", - ">": ">", - '"': """, - "&": "&" -}; -function ol(e) { - return e.replace(/[<>"&]/g, il); -} -function il(e) { - return ll[e] || e; -} -function cl(e) { - return { - _custom: { - type: "function", - display: `ƒ ${e.source ? `("${ol(e.source)}")` : "(?)"}` - } - }; -} -function ul(e, t) { - e.rootNodes.push({ - id: "global", - label: "Global Scope" - }); - const n = t.mode === "composition" ? t.global : t.global.__composer; - for (const [s, r] of t.__instances) { - const a = t.mode === "composition" ? r : r.__composer; - n !== a && e.rootNodes.push({ - id: a.id.toString(), - label: `${bs(s)} Scope` - }); - } -} -function fl(e, t) { - let n = null; - if (e !== "global") { - for (const [s, r] of t.__instances.entries()) - if (r.id.toString() === e) { - n = s; - break; - } - } - return n; -} -function vs(e, t) { - if (e === "global") - return t.mode === "composition" ? t.global : t.global.__composer; - { - const n = Array.from(t.__instances.values()).find((s) => s.id.toString() === e); - return n ? t.mode === "composition" ? n : n.__composer : null; - } -} -function _l(e, t) { - const n = vs(e.nodeId, t); - return n && (e.state = dl(n)), null; -} -function dl(e) { - const t = {}, n = "Locale related info", s = [ - { - type: n, - key: "locale", - editable: !0, - value: e.locale.value - }, - { - type: n, - key: "fallbackLocale", - editable: !0, - value: e.fallbackLocale.value - }, - { - type: n, - key: "availableLocales", - editable: !1, - value: e.availableLocales - }, - { - type: n, - key: "inheritLocale", - editable: !0, - value: e.inheritLocale - } - ]; - t[n] = s; - const r = "Locale messages info", a = [ - { - type: r, - key: "messages", - editable: !1, - value: cn(e.messages.value) - } - ]; - t[r] = a; - { - const l = "Datetime formats info", o = [ - { - type: l, - key: "datetimeFormats", - editable: !1, - value: e.datetimeFormats.value - } - ]; - t[l] = o; - const u = "Datetime formats info", m = [ - { - type: u, - key: "numberFormats", - editable: !1, - value: e.numberFormats.value - } - ]; - t[u] = m; - } - return t; -} -function et(e, t) { - if (jt) { - let n; - t && "groupId" in t && (n = t.groupId, delete t.groupId), jt.addTimelineEvent({ - layerId: "vue-i18n-timeline", - event: { - title: e, - groupId: n, - time: Date.now(), - meta: {}, - data: t || {}, - logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default" - } - }); - } -} -function ml(e, t) { - const n = vs(e.nodeId, t); - if (n) { - const [s] = e.path; - s === "locale" && L(e.state.value) ? n.locale.value = e.state.value : s === "fallbackLocale" && (L(e.state.value) || B(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : s === "inheritLocale" && w(e.state.value) && (n.inheritLocale = e.state.value); - } -} -function pl(e) { - const t = L(e.locale) ? e.locale : Je, n = L(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = x(e.missing) ? e.missing : void 0, r = w(e.silentTranslationWarn) || We(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = w(e.silentFallbackWarn) || We(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = w(e.fallbackRoot) ? e.fallbackRoot : !0, o = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, h = x(e.postTranslation) ? e.postTranslation : void 0, N = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, O = w(e.sync) ? e.sync : !0; - let S = e.messages; - if (R(e.sharedMessages)) { - const T = e.sharedMessages; - S = Object.keys(T).reduce((g, M) => { - const $ = g[M] || (g[M] = {}); - return J($, T[M]), g; - }, S || {}); - } - const { __i18n: A, __root: y, __injectWithOption: f } = e, _ = e.datetimeFormats, v = e.numberFormats, E = e.flatJson; - return { - locale: t, - fallbackLocale: n, - messages: S, - flatJson: E, - datetimeFormats: _, - numberFormats: v, - missing: s, - missingWarn: r, - fallbackWarn: a, - fallbackRoot: l, - fallbackFormat: o, - modifiers: u, - pluralRules: m, - postTranslation: h, - warnHtmlMessage: N, - escapeParameter: p, - messageResolver: e.messageResolver, - inheritLocale: O, - __i18n: A, - __root: y, - __injectWithOption: f - }; -} -function Xt(e = {}) { - const t = on(pl(e)), { __extender: n } = e, s = { - // id - id: t.id, - // locale - get locale() { - return t.locale.value; - }, - set locale(r) { - t.locale.value = r; - }, - // fallbackLocale - get fallbackLocale() { - return t.fallbackLocale.value; - }, - set fallbackLocale(r) { - t.fallbackLocale.value = r; - }, - // messages - get messages() { - return t.messages.value; - }, - // datetimeFormats - get datetimeFormats() { - return t.datetimeFormats.value; - }, - // numberFormats - get numberFormats() { - return t.numberFormats.value; - }, - // availableLocales - get availableLocales() { - return t.availableLocales; - }, - // missing - get missing() { - return t.getMissingHandler(); - }, - set missing(r) { - t.setMissingHandler(r); - }, - // silentTranslationWarn - get silentTranslationWarn() { - return w(t.missingWarn) ? !t.missingWarn : t.missingWarn; - }, - set silentTranslationWarn(r) { - t.missingWarn = w(r) ? !r : r; - }, - // silentFallbackWarn - get silentFallbackWarn() { - return w(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn; - }, - set silentFallbackWarn(r) { - t.fallbackWarn = w(r) ? !r : r; - }, - // modifiers - get modifiers() { - return t.modifiers; - }, - // formatFallbackMessages - get formatFallbackMessages() { - return t.fallbackFormat; - }, - set formatFallbackMessages(r) { - t.fallbackFormat = r; - }, - // postTranslation - get postTranslation() { - return t.getPostTranslationHandler(); - }, - set postTranslation(r) { - t.setPostTranslationHandler(r); - }, - // sync - get sync() { - return t.inheritLocale; - }, - set sync(r) { - t.inheritLocale = r; - }, - // warnInHtmlMessage - get warnHtmlInMessage() { - return t.warnHtmlMessage ? "warn" : "off"; - }, - set warnHtmlInMessage(r) { - t.warnHtmlMessage = r !== "off"; - }, - // escapeParameterHtml - get escapeParameterHtml() { - return t.escapeParameter; - }, - set escapeParameterHtml(r) { - t.escapeParameter = r; - }, - // pluralizationRules - get pluralizationRules() { - return t.pluralRules || {}; - }, - // for internal - __composer: t, - // t - t(...r) { - return Reflect.apply(t.t, t, [...r]); - }, - // rt - rt(...r) { - return Reflect.apply(t.rt, t, [...r]); - }, - // tc - tc(...r) { - const [a, l, o] = r, u = { plural: 1 }; - let m = null, h = null; - if (process.env.NODE_ENV !== "production" && ts(pt(ve.DEPRECATE_TC)), !L(a)) - throw te(G.INVALID_ARGUMENT); - const N = a; - return L(l) ? u.locale = l : q(l) ? u.plural = l : B(l) ? m = l : R(l) && (h = l), L(o) ? u.locale = o : B(o) ? m = o : R(o) && (h = o), Reflect.apply(t.t, t, [ - N, - m || h || {}, - u - ]); - }, - // te - te(r, a) { - return t.te(r, a); - }, - // tm - tm(r) { - return t.tm(r); - }, - // getLocaleMessage - getLocaleMessage(r) { - return t.getLocaleMessage(r); - }, - // setLocaleMessage - setLocaleMessage(r, a) { - t.setLocaleMessage(r, a); - }, - // mergeLocaleMessage - mergeLocaleMessage(r, a) { - t.mergeLocaleMessage(r, a); - }, - // d - d(...r) { - return Reflect.apply(t.d, t, [...r]); - }, - // getDateTimeFormat - getDateTimeFormat(r) { - return t.getDateTimeFormat(r); - }, - // setDateTimeFormat - setDateTimeFormat(r, a) { - t.setDateTimeFormat(r, a); - }, - // mergeDateTimeFormat - mergeDateTimeFormat(r, a) { - t.mergeDateTimeFormat(r, a); - }, - // n - n(...r) { - return Reflect.apply(t.n, t, [...r]); - }, - // getNumberFormat - getNumberFormat(r) { - return t.getNumberFormat(r); - }, - // setNumberFormat - setNumberFormat(r, a) { - t.setNumberFormat(r, a); - }, - // mergeNumberFormat - mergeNumberFormat(r, a) { - t.mergeNumberFormat(r, a); - } - }; - return s.__extender = n, process.env.NODE_ENV !== "production" && (s.__enableEmitter = (r) => { - const a = t; - a[Me] && a[Me](r); - }, s.__disableEmitter = () => { - const r = t; - r[Qe] && r[Qe](); - }), s; -} -function El(e, t, n) { - return { - beforeCreate() { - const s = Ze(); - if (!s) - throw te(G.UNEXPECTED_ERROR); - const r = this.$options; - if (r.i18n) { - const a = r.i18n; - if (r.__i18n && (a.__i18n = r.__i18n), a.__root = t, this === this.$root) - this.$i18n = Gn(e, a); - else { - a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Xt(a); - const l = this.$i18n; - l.__extender && (l.__disposer = l.__extender(this.$i18n)); - } - } else if (r.__i18n) - if (this === this.$root) - this.$i18n = Gn(e, r); - else { - this.$i18n = Xt({ - __i18n: r.__i18n, - __injectWithOption: !0, - __extender: n.__vueI18nExtend, - __root: t - }); - const a = this.$i18n; - a.__extender && (a.__disposer = a.__extender(this.$i18n)); - } - else - this.$i18n = e; - r.__i18nGlobal && hs(t, r, r), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$tc = (...a) => this.$i18n.tc(...a), this.$te = (a, l) => this.$i18n.te(a, l), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(s, this.$i18n); - }, - mounted() { - if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) { - const s = this.$i18n; - this.$el.__VUE_I18N__ = s.__composer; - const r = this.__v_emitter = nn(); - s.__enableEmitter && s.__enableEmitter(r), r.on("*", et); - } - }, - unmounted() { - const s = Ze(); - if (!s) - throw te(G.UNEXPECTED_ERROR); - const r = this.$i18n; - process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", et), delete this.__v_emitter), this.$i18n && (r.__disableEmitter && r.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, r.__disposer && (r.__disposer(), delete r.__disposer, delete r.__extender), n.__deleteInstance(s), delete this.$i18n; - } - }; -} -function Gn(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[Es](t.pluralizationRules || e.pluralizationRules); - const n = ln(e.locale, { - messages: t.messages, - __i18n: t.__i18n - }); - return Object.keys(n).forEach((s) => e.mergeLocaleMessage(s, n[s])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((s) => e.mergeDateTimeFormat(s, t.datetimeFormats[s])), t.numberFormats && Object.keys(t.numberFormats).forEach((s) => e.mergeNumberFormat(s, t.numberFormats[s])), e; -} -const un = { - tag: { - type: [String, Object] - }, - locale: { - type: String - }, - scope: { - type: String, - // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050 - validator: (e) => e === "parent" || e === "global", - default: "parent" - /* ComponentI18nScope */ - }, - i18n: { - type: Object - } -}; -function gl({ slots: e }, t) { - return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, r) => [ - ...s, - // prettier-ignore - ...r.type === nt ? r.children : [r] - ], []) : t.reduce((n, s) => { - const r = e[s]; - return r && (n[s] = r()), n; - }, {}); -} -function Ls() { - return nt; -} -const Cl = /* @__PURE__ */ Q({ - /* eslint-disable */ - name: "i18n-t", - props: J({ - keypath: { - type: String, - required: !0 - }, - plural: { - type: [Number, String], - validator: (e) => q(e) || !isNaN(e) - } - }, un), - /* eslint-enable */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - setup(e, t) { - const { slots: n, attrs: s } = t, r = e.i18n || fn({ - useScope: e.scope, - __useComponent: !0 - }); - return () => { - const a = Object.keys(n).filter((N) => N !== "_"), l = {}; - e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = L(e.plural) ? +e.plural : e.plural); - const o = gl(t, a), u = r[xt](e.keypath, o, l), m = J({}, s), h = L(e.tag) || V(e.tag) ? e.tag : Ls(); - return qn(h, m, u); - }; - } -}), xn = Cl; -function hl(e) { - return B(e) && !L(e[0]); -} -function Ts(e, t, n, s) { - const { slots: r, attrs: a } = t; - return () => { - const l = { part: !0 }; - let o = {}; - e.locale && (l.locale = e.locale), L(e.format) ? l.key = e.format : V(e.format) && (L(e.format.key) && (l.key = e.format.key), o = Object.keys(e.format).reduce((p, O) => n.includes(O) ? J({}, p, { [O]: e.format[O] }) : p, {})); - const u = s(e.value, l, o); - let m = [l.key]; - B(u) ? m = u.map((p, O) => { - const S = r[p.type], A = S ? S({ [p.type]: p.value, index: O, parts: u }) : [p.value]; - return hl(A) && (A[0].key = `${p.type}-${O}`), A; - }) : L(u) && (m = [u]); - const h = J({}, a), N = L(e.tag) || V(e.tag) ? e.tag : Ls(); - return qn(N, h, m); - }; -} -const Nl = /* @__PURE__ */ Q({ - /* eslint-disable */ - name: "i18n-n", - props: J({ - value: { - type: Number, - required: !0 - }, - format: { - type: [String, Object] - } - }, un), - /* eslint-enable */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - setup(e, t) { - const n = e.i18n || fn({ - useScope: e.scope, - __useComponent: !0 - }); - return Ts(e, t, _s, (...s) => ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - n[Yt](...s) - )); - } -}), Bn = Nl, bl = /* @__PURE__ */ Q({ - /* eslint-disable */ - name: "i18n-d", - props: J({ - value: { - type: [Number, Date], - required: !0 - }, - format: { - type: [String, Object] - } - }, un), - /* eslint-enable */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - setup(e, t) { - const n = e.i18n || fn({ - useScope: e.scope, - __useComponent: !0 - }); - return Ts(e, t, fs, (...s) => ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - n[Bt](...s) - )); - } -}), Yn = bl; -function vl(e, t) { - const n = e; - if (e.mode === "composition") - return n.__getInstance(t) || e.global; - { - const s = n.__getInstance(t); - return s != null ? s.__composer : e.global.__composer; - } -} -function Ll(e) { - const t = (l) => { - const { instance: o, value: u } = l; - if (!o || !o.$) - throw te(G.UNEXPECTED_ERROR); - const m = vl(e, o.$), h = Kn(u); - return [ - Reflect.apply(m.t, m, [...jn(h)]), - m - ]; - }; - return { - created: (l, o) => { - const [u, m] = t(o); - fe && e.global === m && (l.__i18nWatcher = wt(m.locale, () => { - o.instance && o.instance.$forceUpdate(); - })), l.__composer = m, l.textContent = u; - }, - unmounted: (l) => { - fe && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer); - }, - beforeUpdate: (l, { value: o }) => { - if (l.__composer) { - const u = l.__composer, m = Kn(o); - l.textContent = Reflect.apply(u.t, u, [ - ...jn(m) - ]); - } - }, - getSSRProps: (l) => { - const [o] = t(l); - return { textContent: o }; - } - }; -} -function Kn(e) { - if (L(e)) - return { path: e }; - if (R(e)) { - if (!("path" in e)) - throw te(G.REQUIRED_VALUE, "path"); - return e; - } else - throw te(G.INVALID_VALUE); -} -function jn(e) { - const { path: t, locale: n, args: s, choice: r, plural: a } = e, l = {}, o = s || {}; - return L(n) && (l.locale = n), q(r) && (l.plural = r), q(a) && (l.plural = a), [t, o, l]; -} -function Tl(e, t, ...n) { - const s = R(n[0]) ? n[0] : {}; - (w(s.globalInstall) ? s.globalInstall : !0) && ([xn.name, "I18nT"].forEach((a) => e.component(a, xn)), [Bn.name, "I18nN"].forEach((a) => e.component(a, Bn)), [Yn.name, "I18nD"].forEach((a) => e.component(a, Yn))), e.directive("t", Ll(t)); -} -const Il = /* @__PURE__ */ pe("global-vue-i18n"); -function Ol(e = {}, t) { - const n = __VUE_I18N_LEGACY_API__ && w(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, s = w(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, l] = yl(e, n), o = /* @__PURE__ */ pe(process.env.NODE_ENV !== "production" ? "vue-i18n" : ""); - function u(p) { - return r.get(p) || null; - } - function m(p, O) { - r.set(p, O); - } - function h(p) { - r.delete(p); - } - const N = { - // mode - get mode() { - return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition"; - }, - // install plugin - async install(p, ...O) { - if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = N), p.__VUE_I18N_SYMBOL__ = o, p.provide(p.__VUE_I18N_SYMBOL__, N), R(O[0])) { - const y = O[0]; - N.__composerExtend = y.__composerExtend, N.__vueI18nExtend = y.__vueI18nExtend; - } - let S = null; - !n && s && (S = Fl(p, N.global)), __VUE_I18N_FULL_INSTALL__ && Tl(p, N, ...O), __VUE_I18N_LEGACY_API__ && n && p.mixin(El(l, l.__composer, N)); - const A = p.unmount; - if (p.unmount = () => { - S && S(), N.dispose(), A(); - }, process.env.NODE_ENV !== "production") { - if (!await rl(p, N)) - throw te(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN); - const f = nn(); - if (n) { - const _ = l; - _.__enableEmitter && _.__enableEmitter(f); - } else { - const _ = l; - _[Me] && _[Me](f); - } - f.on("*", et); - } - }, - // global accessor - get global() { - return l; - }, - dispose() { - a.stop(); - }, - // @internal - __instances: r, - // @internal - __getInstance: u, - // @internal - __setInstance: m, - // @internal - __deleteInstance: h - }; - return N; -} -function fn(e = {}) { - const t = Ze(); - if (t == null) - throw te(G.MUST_BE_CALL_SETUP_TOP); - if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) - throw te(G.NOT_INSTALLED); - const n = Al(t), s = Sl(n), r = Cs(t), a = kl(e, r); - if (a === "global") - return hs(s, e, r), s; - if (a === "parent") { - let u = Dl(n, t, e.__useComponent); - return u == null && (process.env.NODE_ENV !== "production" && Te(pt(ve.NOT_FOUND_PARENT_SCOPE)), u = s), u; - } - const l = n; - let o = l.__getInstance(t); - if (o == null) { - const u = J({}, e); - "__i18n" in r && (u.__i18n = r.__i18n), s && (u.__root = s), o = on(u), l.__composerExtend && (o[Kt] = l.__composerExtend(o)), Rl(l, t, o), l.__setInstance(t, o); - } - return o; -} -function yl(e, t, n) { - const s = As(), r = __VUE_I18N_LEGACY_API__ && t ? s.run(() => Xt(e)) : s.run(() => on(e)); - if (r == null) - throw te(G.UNEXPECTED_ERROR); - return [s, r]; -} -function Al(e) { - const t = ks(e.isCE ? Il : e.appContext.app.__VUE_I18N_SYMBOL__); - if (!t) - throw te(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR); - return t; -} -function kl(e, t) { - return _t(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local"; -} -function Sl(e) { - return e.mode === "composition" ? e.global : e.global.__composer; -} -function Dl(e, t, n = !1) { - let s = null; - const r = t.root; - let a = Pl(t, n); - for (; a != null; ) { - const l = e; - if (e.mode === "composition") - s = l.__getInstance(a); - else if (__VUE_I18N_LEGACY_API__) { - const o = l.__getInstance(a); - o != null && (s = o.__composer, n && s && !s[gs] && (s = null)); - } - if (s != null || r === a) - break; - a = a.parent; - } - return s; -} -function Pl(e, t = !1) { - return e == null ? null : t && e.vnode.ctx || e.parent; -} -function Rl(e, t, n) { - let s = null; - Jn(() => { - if (process.env.NODE_ENV !== "production" && t.vnode.el) { - t.vnode.el.__VUE_I18N__ = n, s = nn(); - const r = n; - r[Me] && r[Me](s), s.on("*", et); - } - }, t), Ss(() => { - const r = n; - process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (s && s.off("*", et), r[Qe] && r[Qe](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t); - const a = r[Kt]; - a && (a(), delete r[Kt]); - }, t); -} -const Ml = [ - "locale", - "fallbackLocale", - "availableLocales" -], Xn = ["t", "rt", "d", "n", "tm", "te"]; -function Fl(e, t) { - const n = /* @__PURE__ */ Object.create(null); - return Ml.forEach((r) => { - const a = Object.getOwnPropertyDescriptor(t, r); - if (!a) - throw te(G.UNEXPECTED_ERROR); - const l = Ds(a.value) ? { - get() { - return a.value.value; - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - set(o) { - a.value.value = o; - } - } : { - get() { - return a.get && a.get(); - } - }; - Object.defineProperty(n, r, l); - }), e.config.globalProperties.$i18n = n, Xn.forEach((r) => { - const a = Object.getOwnPropertyDescriptor(t, r); - if (!a || !a.value) - throw te(G.UNEXPECTED_ERROR); - Object.defineProperty(e.config.globalProperties, `$${r}`, a); - }), () => { - delete e.config.globalProperties.$i18n, Xn.forEach((r) => { - delete e.config.globalProperties[`$${r}`]; - }); - }; -} -Ja(); -ba(zr); -va(Ea); -La(ns); -if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) { - const e = ke(); - e.__INTLIFY__ = !0, ea(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__); -} -process.env.NODE_ENV; -const wl = { - copyLink: "Link kopieren" -}, Vl = { - calendar: "Kalender", - critical: "Kritisch", - info: "Information", - success: "Erfolg", - warning: "Warnung" -}, Ul = { - itemsSelected: "{count} ausgewählt", - selectAll: "Alle auswählen", - selectAllCalendars: "Alle Kalender auswählen" -}, $l = { - off: "Aus", - on: "An" -}, Wl = { - copyIcon: wl, - icons: Vl, - syncCard: Ul, - switchToggle: $l -}, Hl = { - copyLink: "Copy link" -}, Gl = { - calendar: "Calendar", - critical: "Critical", - info: "Information", - success: "Success", - warning: "Warning" -}, xl = { - itemsSelected: "{count} Selected", - selectAll: "Select All", - selectAllCalendars: "Select All Calendars" -}, Bl = { - off: "Off", - on: "On" -}, Yl = { - copyIcon: Hl, - icons: Gl, - syncCard: xl, - switchToggle: Bl -}, Kl = { - de: Wl, - // German - en: Yl - // English -}, jl = (localStorage == null ? void 0 : localStorage.getItem("locale")) ?? navigator.language.split("-")[0], Xl = Ol({ - legacy: !1, - globalInjection: !0, - locale: jl, - fallbackLocale: "en", - messages: Kl -}), Zl = Xl.global, me = Zl.t, ql = { class: "wrapper" }, Jl = { class: "header" }, Ql = { class: "text-wrapper" }, zl = { class: "title" }, eo = { class: "selected" }, to = { class: "rows" }, no = ["onUpdate:modelValue"], so = /* @__PURE__ */ Q({ - __name: "SyncCard", - props: /* @__PURE__ */ De({ - title: {} - }, { - modelValue: {}, - modelModifiers: {} - }), - emits: ["update:modelValue"], - setup(e) { - const t = ut(e, "modelValue"), n = de(() => t.value.filter((r) => r.checked).length), s = () => { - t.value = t.value.map((r) => ({ - ...r, - checked: !0 - })); - }; - return (r, a) => (F(), H("div", ql, [ - P("div", Jl, [ - ue(r.$slots, "icon", {}, void 0, !0), - P("div", Ql, [ - P("div", zl, se(r.title), 1), - P("div", eo, se(ce(me)("syncCard.itemsSelected", { count: n.value })), 1) - ]), - Qn(xs, { - class: "select-all", - size: "small", - onClick: s, - title: ce(me)("syncCard.selectAllCalendars") - }, { - default: tt(() => [ - Ft(se(ce(me)("syncCard.selectAll")), 1) - ]), - _: 1 - }, 8, ["title"]) - ]), - P("ul", to, [ - (F(!0), H(nt, null, Ge(t.value, (l, o) => (F(), H("li", { - class: "row", - key: l.key - }, [ - P("label", null, [ - Qt(P("input", { - class: "tbpro-checkbox", - type: "checkbox", - "onUpdate:modelValue": (u) => t.value[o].checked = u - }, null, 8, no), [ - [Ms, t.value[o].checked] - ]), - Ft(" " + se(l.label), 1) - ]) - ]))), 128)) - ]) - ])); - } -}), Mo = /* @__PURE__ */ oe(so, [["__scopeId", "data-v-f1c062dd"]]), ro = { key: 0 }, ao = { class: "toggle-container" }, lo = { - key: 0, - class: "toggle-label" -}, oo = { class: "toggle" }, io = ["name", "checked", "disabled"], co = { - key: 1, - class: "toggle-label" -}, uo = /* @__PURE__ */ Q({ - __name: "SwitchToggle", - props: { - name: {}, - active: { type: Boolean }, - disabled: { type: Boolean }, - label: {}, - noLegend: { type: Boolean } - }, - emits: ["changed"], - setup(e, { emit: t }) { - const n = t, s = e, r = be(!1); - Jn(() => { - r.value = s.active; - }); - const a = () => { - s.disabled || (r.value = !r.value, n("changed", r.value)); - }; - return (l, o) => (F(), H("div", { - class: "component-container", - onClick: Zn(a, ["prevent"]) - }, [ - l.label ? (F(), H("div", ro, se(l.label), 1)) : le("", !0), - P("div", ao, [ - l.noLegend ? le("", !0) : (F(), H("div", lo, se(ce(me)("switchToggle.off")), 1)), - P("div", oo, [ - P("input", { - class: "toggle-input", - type: "checkbox", - name: l.name, - checked: r.value, - disabled: l.disabled - }, null, 8, io), - o[0] || (o[0] = P("div", { class: "toggle-handle" }, null, -1)) - ]), - l.noLegend ? le("", !0) : (F(), H("div", co, se(ce(me)("switchToggle.on")), 1)) - ]) - ])); - } -}), Fo = /* @__PURE__ */ oe(uo, [["__scopeId", "data-v-f6cff58b"]]), fo = ["aria-label"], _o = /* @__PURE__ */ Q({ - __name: "NoticeInfoIcon", - setup(e) { - return (t, n) => (F(), H("svg", { - class: "tbpro-notice-icon", - "aria-label": ce(me)("icons.info"), - width: "15", - height: "15", - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("g", { id: "icon" }, [ - P("path", { - id: "path293", - opacity: "0.2", - d: "M14.5 7.5C14.5 9.35652 13.7625 11.137 12.4497 12.4498C11.137 13.7625 9.35652 14.5 7.5 14.5C5.64348 14.5 3.86301 13.7625 2.55025 12.4498C1.2375 11.137 0.5 9.35652 0.5 7.5C0.5 5.64348 1.2375 3.86299 2.55025 2.55023C3.86301 1.23748 5.64348 0.5 7.5 0.5C9.35652 0.5 11.137 1.23748 12.4497 2.55023C13.7625 3.86299 14.5 5.64348 14.5 7.5Z", - fill: "currentColor" - }), - P("path", { - id: "path1012", - d: "M7.5 0C3.36381 0 0 3.36379 0 7.5C0 11.6362 3.36381 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00281 7.81836 1.00781C7.92535 1.01281 8.03117 1.02105 8.13672 1.03125C8.2429 1.04155 8.34852 1.05501 8.45312 1.07031C11.2847 1.48435 13.5157 3.71533 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098L12.9688 11.0137L12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36871 13.648 5.07845 13.54 4.79883 13.4121C4.52169 13.2843 4.25468 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30578 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195L2.0293 11.0098C1.69881 10.4967 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.7536 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02351 7.18575 1 7.5 1ZM7.5 4C7.36739 4 7.24021 4.05266 7.14645 4.14642C7.05268 4.24019 7 4.36739 7 4.5C7 4.63261 7.05268 4.75981 7.14645 4.85358C7.24021 4.94734 7.36739 5 7.5 5C7.63261 5 7.75979 4.94734 7.85355 4.85358C7.94732 4.75981 8 4.63261 8 4.5C8 4.36739 7.94732 4.24019 7.85355 4.14642C7.75979 4.05266 7.63261 4 7.5 4ZM7.5 6C7.36739 6 7.24021 6.05266 7.14645 6.14642C7.05268 6.24019 7 6.36739 7 6.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11C7.63261 11 7.75979 10.9473 7.85355 10.8536C7.94732 10.7598 8 10.6326 8 10.5V6.5C8 6.36739 7.94732 6.24019 7.85355 6.14642C7.75979 6.05266 7.63261 6 7.5 6Z", - fill: "currentColor" - }) - ], -1) - ]), 8, fo)); - } -}), mo = /* @__PURE__ */ oe(_o, [["__scopeId", "data-v-326dc06b"]]), po = ["aria-label"], Eo = /* @__PURE__ */ Q({ - __name: "NoticeSuccessIcon", - setup(e) { - return (t, n) => (F(), H("svg", { - class: "tbpro-success-icon", - "aria-label": ce(me)("icons.success"), - width: "15", - height: "15", - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("g", { id: "icon" }, [ - P("path", { - id: "path293", - opacity: "0.2", - d: "M15 7.5C15 9.48912 14.2098 11.3968 12.8033 12.8033C11.3968 14.2098 9.48912 15 7.5 15C5.51088 15 3.60322 14.2098 2.1967 12.8033C0.790176 11.3968 0 9.48912 0 7.5C0 5.51088 0.790176 3.6032 2.1967 2.19668C3.60322 0.790154 5.51088 0 7.5 0C9.48912 0 11.3968 0.790154 12.8033 2.19668C14.2098 3.6032 15 5.51088 15 7.5Z", - fill: "none", - class: "tbpro-icon-background" - }), - P("path", { - id: "path1012", - d: "M7.5 0C3.3638 0 0 3.36379 0 7.5C0 11.6362 3.3638 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00261 7.81836 1.00781C7.92535 1.01293 8.03117 1.02104 8.13672 1.03125C8.2429 1.04152 8.34852 1.05502 8.45312 1.07031C11.2847 1.48435 13.5157 3.7153 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098C12.9701 11.0111 12.9694 11.0124 12.9688 11.0137C12.9675 11.0157 12.9661 11.0176 12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36866 13.6485 5.07845 13.54 4.79883 13.4121C4.52158 13.2853 4.25469 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30579 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195C2.0332 11.0163 2.03125 11.013 2.0293 11.0098C1.69881 10.4957 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.75361 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02352 7.18575 1 7.5 1ZM10.4668 5.00195C10.3345 5.01016 10.2108 5.07057 10.123 5.16992L6.93945 8.81055L4.8125 7.10938C4.76122 7.06831 4.70234 7.03771 4.63924 7.01941C4.57614 7.00111 4.51005 6.99543 4.44475 7.00269C4.37945 7.00994 4.31622 7.03 4.25867 7.06171C4.20112 7.09341 4.15039 7.13618 4.10938 7.1875C4.06831 7.23878 4.03775 7.29768 4.01945 7.36078C4.00115 7.42388 3.99546 7.48994 4.00272 7.55524C4.00997 7.62054 4.03003 7.68379 4.06173 7.74133C4.09344 7.79888 4.13618 7.84961 4.1875 7.89062L6.6875 9.89062C6.78805 9.97139 6.91592 10.0102 7.04439 9.9989C7.17287 9.98762 7.29202 9.92713 7.37695 9.83008L10.877 5.83008C10.9204 5.78064 10.9537 5.7231 10.9749 5.66077C10.9961 5.59843 11.0047 5.53249 11.0004 5.4668C10.996 5.4011 10.9787 5.33695 10.9495 5.27795C10.9203 5.21896 10.8797 5.16632 10.8301 5.12305C10.7805 5.07998 10.7228 5.04715 10.6605 5.02637C10.5982 5.00559 10.5323 4.99728 10.4668 5.00195Z", - fill: "currentColor" - }) - ], -1) - ]), 8, po)); - } -}), go = /* @__PURE__ */ oe(Eo, [["__scopeId", "data-v-818680bc"]]), Co = ["aria-label"], ho = /* @__PURE__ */ Q({ - __name: "NoticeWarningIcon", - setup(e) { - return (t, n) => (F(), H("svg", { - class: "tbpro-warning-icon", - "aria-label": ce(me)("icons.warning"), - width: "15", - height: "15", - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("g", { id: "icon" }, [ - P("path", { - id: "path293", - opacity: "0.2", - d: "M14.5 7.5C14.5 9.35652 13.7625 11.137 12.4497 12.4498C11.137 13.7625 9.35652 14.5 7.5 14.5C5.64348 14.5 3.86301 13.7625 2.55025 12.4498C1.2375 11.137 0.5 9.35652 0.5 7.5C0.5 5.64348 1.2375 3.86299 2.55025 2.55023C3.86301 1.23748 5.64348 0.5 7.5 0.5C9.35652 0.5 11.137 1.23748 12.4497 2.55023C13.7625 3.86299 14.5 5.64348 14.5 7.5Z", - fill: "currentColor" - }), - P("path", { - id: "path1012", - d: "M7.5 0C3.36381 0 0 3.36379 0 7.5C0 11.6362 3.36381 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00281 7.81836 1.00781C7.92535 1.01281 8.03117 1.02105 8.13672 1.03125C8.2429 1.04155 8.34852 1.05501 8.45312 1.07031C11.2847 1.48435 13.5157 3.71533 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098L12.9688 11.0137L12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36871 13.648 5.07845 13.54 4.79883 13.4121C4.52169 13.2843 4.25468 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30578 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195L2.0293 11.0098C1.69881 10.4967 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.7536 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02351 7.18575 1 7.5 1ZM7.5 4C7.36739 4 7.24021 4.05266 7.14645 4.14642C7.05268 4.24019 7 4.36739 7 4.5C7 4.63261 7.05268 4.75981 7.14645 4.85358C7.24021 4.94734 7.36739 5 7.5 5C7.63261 5 7.75979 4.94734 7.85355 4.85358C7.94732 4.75981 8 4.63261 8 4.5C8 4.36739 7.94732 4.24019 7.85355 4.14642C7.75979 4.05266 7.63261 4 7.5 4ZM7.5 6C7.36739 6 7.24021 6.05266 7.14645 6.14642C7.05268 6.24019 7 6.36739 7 6.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11C7.63261 11 7.75979 10.9473 7.85355 10.8536C7.94732 10.7598 8 10.6326 8 10.5V6.5C8 6.36739 7.94732 6.24019 7.85355 6.14642C7.75979 6.05266 7.63261 6 7.5 6Z", - fill: "currentColor" - }) - ], -1) - ]), 8, Co)); - } -}), No = /* @__PURE__ */ oe(ho, [["__scopeId", "data-v-8776ef7d"]]), bo = ["aria-label"], vo = /* @__PURE__ */ Q({ - __name: "NoticeCriticalIcon", - setup(e) { - return (t, n) => (F(), H("svg", { - "aria-label": ce(me)("icons.critical"), - class: "tbpro-critical-icon", - width: "16", - height: "16", - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("path", { - opacity: "0.2", - d: "M8 1C7.34694 1.00095 6.778 1.45312 6.5 2L1.324 11.4609C1 12 1.00152 12.1118 1 12.5C1 13.3284 1.67157 14 2.5 14H13.5C14.3284 14 15 13.3284 15 12.5C15 12.106 15 12 14.668 11.4473L9.5 2C9.218 1.44727 8.65609 1.00005 8 1Z", - fill: "none", - class: "tbpro-icon-background" - }, null, -1), - P("path", { - d: "M8 1C7.34694 1.00095 6.778 1.45312 6.5 2L1.324 11.4609C1 12 1.00152 12.1118 1 12.5C1 13.3284 1.67157 14 2.5 14H13.5C14.3284 14 15 13.3284 15 12.5C15 12.106 15 12 14.668 11.4473L9.5 2C9.218 1.44727 8.65609 1.00005 8 1Z", - stroke: "currentColor", - "stroke-linecap": "round", - "stroke-linejoin": "round" - }, null, -1), - P("path", { - d: "M8 5V9", - stroke: "currentColor", - "stroke-linecap": "round" - }, null, -1), - P("path", { - d: "M8.00001 11C8.00001 11 8.00001 11 8 11C8 11 8 11 8 11C8 11 8 11 8 11C8.00001 11 8.00001 11 8.00001 11Z", - stroke: "currentColor", - "stroke-linecap": "round", - "stroke-linejoin": "round" - }, null, -1) - ]), 8, bo)); - } -}), Lo = /* @__PURE__ */ oe(vo, [["__scopeId", "data-v-18c4b7c4"]]), To = { class: "icon" }, Io = { class: "body" }, Oo = /* @__PURE__ */ Q({ - __name: "NoticeBar", - props: { - type: { default: Ue.Info } - }, - setup(e) { - const t = e, n = de(() => t.type === Ue.Info), s = de(() => t.type === Ue.Success), r = de(() => t.type === Ue.Warning), a = de(() => t.type === Ue.Error); - return (l, o) => (F(), H("div", { - class: Se([{ - error: a.value, - info: n.value, - warning: r.value, - success: s.value - }, "notice notice-bar"]) - }, [ - P("span", To, [ - n.value ? (F(), Ne(mo, { key: 0 })) : le("", !0), - s.value ? (F(), Ne(go, { key: 1 })) : le("", !0), - r.value ? (F(), Ne(No, { key: 2 })) : le("", !0), - a.value ? (F(), Ne(Lo, { key: 3 })) : le("", !0) - ]), - P("span", Io, [ - ue(l.$slots, "default", {}, void 0, !0) - ]) - ], 2)); - } -}), wo = /* @__PURE__ */ oe(Oo, [["__scopeId", "data-v-fc832f73"]]), yo = ["aria-label"], Vo = /* @__PURE__ */ Q({ - __name: "CopyIcon", - setup(e) { - return (t, n) => (F(), H("svg", { - "aria-label": ce(me)("copyIcon.copyLink"), - width: "20", - height: "20", - viewBox: "0 0 20 20", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, n[0] || (n[0] = [ - P("g", { id: "layer1" }, [ - P("path", { - id: "rect560", - opacity: "0.2", - d: "M13.0002 5.00014V12.0001C13.0002 13.6621 11.6622 15.0001 10.0002 15.0001H7.00024V16.0001C7.00024 17.6621 8.33825 19.0001 10.0002 19.0001H16.0002C17.6622 19.0001 19.0002 17.6621 19.0002 16.0001V8.00014C19.0002 6.33814 17.6622 5.00014 16.0002 5.00014H13.0002Z", - fill: "currentColor" - }), - P("path", { - id: "rect292", - d: "M4 0C1.8013 0 0 1.8013 0 4V12C0 14.1987 1.8013 16 4 16H6C6 18.1987 7.80131 20 10 20H16C18.1987 20 20 18.1987 20 16V8C20 5.8013 18.1987 4 16 4H14C14 1.8013 12.1987 0 10 0H4ZM4 2H10C11.1253 2 12 2.8747 12 4V12C12 13.1253 11.1253 14 10 14H4C2.87471 14 2 13.1253 2 12V4C2 2.8747 2.87471 2 4 2ZM5 4C4.446 4 4 4.446 4 5C4 5.554 4.446 6 5 6H9C9.554 6 10 5.554 10 5C10 4.446 9.554 4 9 4H5ZM14 6H16C17.1253 6 18 6.8747 18 8V16C18 17.1253 17.1253 18 16 18H10C8.87471 18 8 17.1253 8 16H10C12.1987 16 14 14.1987 14 12V6ZM5 8C4.446 8 4 8.446 4 9C4 9.554 4.446 10 5 10H9C9.554 10 10 9.554 10 9C10 8.446 9.554 8 9 8H5Z", - fill: "currentColor" - }) - ], -1) - ]), 8, yo)); - } -}); -export { - en as BaseButton, - Ro as BubbleSelect, - Vo as CopyIcon, - So as LinkButton, - wo as NoticeBar, - Lo as NoticeCriticalIcon, - mo as NoticeInfoIcon, - go as NoticeSuccessIcon, - No as NoticeWarningIcon, - xs as PrimaryButton, - ko as SecondaryButton, - Do as SelectInput, - Fo as SwitchToggle, - Mo as SyncCard, - Po as TextInput, - $s as ToolTip -}; diff --git a/dist/index.umd.cjs b/dist/index.umd.cjs deleted file mode 100644 index 276ab24..0000000 --- a/dist/index.umd.cjs +++ /dev/null @@ -1,21 +0,0 @@ -(function(G,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(G=typeof globalThis<"u"?globalThis:G||self,o(G.ServicesUI={},G.Vue))})(this,function(G,o){"use strict";var tt=(e=>(e.None="pos-none",e.Top="pos-top",e.Bottom="pos-bottom",e.Left="pos-left",e.Right="pos-right",e))(tt||{}),Ie=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(Ie||{});const sr=["aria-label"],or={class:"tooltip-container"},lr={class:"tooltip-body"},ir=o.defineComponent({__name:"ToolTip",props:{alt:{default:""},position:{default:tt.Bottom}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"tooltip","aria-label":t.alt},[o.createElementVNode("div",or,[o.createElementVNode("div",lr,[o.renderSlot(t.$slots,"default",{},void 0,!0)]),(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["beak",t.position]),width:"28",height:"6",viewBox:"0 0 28 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("g",null,[o.createElementVNode("path",{d:"M15.4142 4.58579C14.6332 5.36683 13.3668 5.36683 12.5858 4.58579L8 0L20 0L15.4142 4.58579Z",fill:"currentColor"})],-1)]),2))])],8,sr))}}),ne=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Gt=ne(ir,[["__scopeId","data-v-4e716012"]]),cr={key:0,class:"icon"},ur={class:"text"},He=ne(o.defineComponent({__name:"BaseButton",props:{type:{default:"secondary"},size:{default:"regular"},tooltip:{default:""},forceTooltip:{type:Boolean,default:!1}},emits:["click"],setup(e){return(t,n)=>{var r;return o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["tbpro-button",{[t.type]:t.type,small:t.size==="small"}]),type:"button"},[(r=t.$slots)!=null&&r.icon?(o.openBlock(),o.createElementBlock("span",cr,[o.renderSlot(t.$slots,"icon",{},void 0,!0)])):o.createCommentVNode("",!0),o.createElementVNode("span",ur,[o.renderSlot(t.$slots,"default",{},void 0,!0)]),t.tooltip?(o.openBlock(),o.createBlock(Gt,{key:1,class:o.normalizeClass(["tooltip",{"display-tooltip":t.forceTooltip}]),position:o.unref(tt).Bottom,onClick:n[0]||(n[0]=o.withModifiers(()=>{},["prevent"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)]),_:1},8,["class","position"])):o.createCommentVNode("",!0)],2)}}}),[["__scopeId","data-v-38d294b3"]]),xt=o.defineComponent({__name:"PrimaryButton",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(He,{type:"primary"},o.createSlots({_:2},[o.renderList(t.$slots,(r,a)=>({name:a,fn:o.withCtx(s=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(s)))])}))]),1024))}}),fr=o.defineComponent({__name:"SecondaryButton",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(He,{type:"secondary"},o.createSlots({_:2},[o.renderList(t.$slots,(r,a)=>({name:a,fn:o.withCtx(s=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(s)))])}))]),1024))}}),_r=o.defineComponent({__name:"LinkButton",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(He,{type:"link"},o.createSlots({_:2},[o.renderList(t.$slots,(r,a)=>({name:a,fn:o.withCtx(s=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(s)))])}))]),1024))}}),dr=["for"],mr={class:"label"},pr={key:0,class:"required"},Er=["id","name","required","disabled"],gr=["value"],Nr=ne(o.defineComponent({__name:"SelectInput",props:o.mergeModels({name:{},options:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["submit"],["update:modelValue"]),setup(e){const t=o.useModel(e,"modelValue"),n=o.ref(!1),r=o.ref(""),a=s=>{n.value=!0,r.value=s.target.validationMessage};return(s,l)=>(o.openBlock(),o.createElementBlock("label",{class:"wrapper",for:s.name},[o.createElementVNode("span",mr,[o.renderSlot(s.$slots,"default",{},void 0,!0),s.required&&(t.value===null||t.value==="")?(o.openBlock(),o.createElementBlock("span",pr,"*")):o.createCommentVNode("",!0)]),o.withDirectives(o.createElementVNode("select",{class:"tbpro-select w-full rounded-md","onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),id:s.name,name:s.name,required:s.required,disabled:s.disabled,onInvalid:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.options,i=>(o.openBlock(),o.createElementBlock("option",{value:i.value,key:i.value},o.toDisplayString(i.label),9,gr))),128))],40,Er),[[o.vModelSelect,t.value]]),o.createElementVNode("span",{class:o.normalizeClass([{visible:n.value},"help-label"])},o.toDisplayString(r.value),3)],8,dr))}}),[["__scopeId","data-v-771d1fc0"]]),Cr=["for"],hr={class:"label"},br={key:0,class:"required"},Lr=["type","id","name","disabled","placeholder","required"],Tr={key:0,class:"help-label invalid"},Ir={key:1,class:"help-label"},Or={key:2,class:"help-label"},kr=ne(o.defineComponent({__name:"TextInput",props:o.mergeModels({name:{},help:{default:null},remoteError:{default:null},type:{default:"text"},placeholder:{default:""},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["submit"],["update:modelValue"]),setup(e,{expose:t}){const n=o.useModel(e,"modelValue"),r=o.ref(!1),a=o.ref(""),s=o.ref(!1),l=o.ref(null);t({focus:()=>{l.value&&l.value.focus()}});const f=h=>{r.value=!0,s.value=!0,a.value=h.target.validationMessage},p=()=>{s.value=!0};return(h,b)=>{var E;return o.openBlock(),o.createElementBlock("label",{class:"wrapper",for:h.name},[o.createElementVNode("span",hr,[o.renderSlot(h.$slots,"default",{},void 0,!0),h.required&&((E=n.value)==null?void 0:E.length)===0?(o.openBlock(),o.createElementBlock("span",br,"*")):o.createCommentVNode("",!0)]),o.withDirectives(o.createElementVNode("input",{class:o.normalizeClass(["tbpro-input",{dirty:s.value}]),"onUpdate:modelValue":b[0]||(b[0]=y=>n.value=y),type:h.type,id:h.name,name:h.name,disabled:h.disabled,placeholder:h.placeholder,required:h.required,onInvalid:f,onChange:p,ref_key:"inputRef",ref:l},null,42,Lr),[[o.vModelDynamic,n.value]]),r.value?(o.openBlock(),o.createElementBlock("span",Tr,o.toDisplayString(a.value),1)):h.help?(o.openBlock(),o.createElementBlock("span",Ir,o.toDisplayString(h.help),1)):(o.openBlock(),o.createElementBlock("span",Or))],8,Cr)}}}),[["__scopeId","data-v-364ddd75"]]),yr={class:"wrapper"},Sr={class:"label"},Ar={key:0,class:"required"},Dr={class:"bubble-list"},Pr=["aria-pressed","title","onClick"],Rr=ne(o.defineComponent({__name:"BubbleSelect",props:o.mergeModels({options:{},required:{type:Boolean,default:!1}},{modelValue:{default:[]},modelModifiers:{}}),emits:o.mergeModels(["click"],["update:modelValue"]),setup(e){const t=o.useModel(e,"modelValue"),n=r=>{t.value.indexOf(r.value)>-1?t.value=t.value.filter(s=>r.value!==s):t.value=[...t.value,r.value],t.value.sort()};return(r,a)=>{var s;return o.openBlock(),o.createElementBlock("div",yr,[o.createElementVNode("label",null,[o.createElementVNode("span",Sr,[o.renderSlot(r.$slots,"default",{},void 0,!0),r.required&&((s=t.value)==null?void 0:s.length)===0?(o.openBlock(),o.createElementBlock("span",Ar,"*")):o.createCommentVNode("",!0)])]),o.createElementVNode("ul",Dr,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.options,l=>(o.openBlock(),o.createElementBlock("li",{key:l.value},[o.createElementVNode("button",{class:o.normalizeClass(["tbpro-bubble",{selected:t.value.indexOf(l.value)>-1}]),"aria-pressed":t.value.indexOf(l.value)>-1,title:l.fullLabel??l.value,type:"button",onClick:()=>n(l)},o.toDisplayString(l.label),11,Pr)]))),128))])])}}}),[["__scopeId","data-v-c3be0617"]]);/*! - * shared v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const ae=typeof window<"u";let te,ge;if(process.env.NODE_ENV!=="production"){const e=ae&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(te=t=>{e.mark(t)},ge=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Mr=/\{([0-9a-zA-Z]+)\}/g;function Ge(e,...t){return t.length===1&&F(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Mr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const oe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),vr=(e,t,n)=>Vr({l:e,k:t,s:n}),Vr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),j=e=>typeof e=="number"&&isFinite(e),Fr=e=>Xt(e)==="[object Date]",Oe=e=>Xt(e)==="[object RegExp]",xe=e=>M(e)&&Object.keys(e).length===0,X=Object.assign;let Yt;const Ne=()=>Yt||(Yt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Kt(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const wr=Object.prototype.hasOwnProperty;function Ye(e,t){return wr.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",I=e=>typeof e=="string",V=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",Ur=e=>F(e)&&B(e.then)&&B(e.catch),jt=Object.prototype.toString,Xt=e=>jt.call(e),M=e=>{if(!F(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},$r=e=>e==null?"":H(e)||M(e)&&e.toString===jt?JSON.stringify(e,null,2):String(e);function nt(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const qt=2;function Br(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let l=0;l=t){for(let i=l-qt;i<=l+qt||n>a;i++){if(i<0||i>=r.length)continue;const f=i+1;s.push(`${f}${" ".repeat(3-String(f).length)}| ${r[i]}`);const p=r[i].length;if(i===l){const h=t-(a-p)+1,b=Math.max(1,n>a?p-h:n-t);s.push(" | "+" ".repeat(h)+"^".repeat(b))}else if(i>l){if(n>a){const h=Math.max(Math.min(n-a,p),1);s.push(" | "+"^".repeat(h))}a+=p+1}}break}return s.join(` -`)}function _e(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Zt={};function Jt(e){Zt[e]||(Zt[e]=!0,_e(e))}function rt(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const Ke=e=>!F(e)||H(e);function je(e,t){if(Ke(e)||Ke(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(s=>{Ke(r[s])||Ke(a[s])?a[s]=r[s]:n.push({src:r[s],des:a[s]})})}}/*! - * message-compiler v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function Wr(e,t,n){return{line:e,column:t,offset:n}}function at(e,t,n){return{start:e,end:t}}const R={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},Hr=17,Gr={[R.EXPECTED_TOKEN]:"Expected token: '{0}'",[R.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[R.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[R.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[R.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[R.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[R.EMPTY_PLACEHOLDER]:"Empty placeholder",[R.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[R.INVALID_LINKED_FORMAT]:"Invalid linked format",[R.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[R.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[R.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[R.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[R.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[R.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ke(e,t,n={}){const{domain:r,messages:a,args:s}=n,l=process.env.NODE_ENV!=="production"?Ge((a||Gr)[e]||"",...s||[]):e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=r,i}function xr(e){throw e}const Yr=/<\/?[\w\s="/.':;#-\/]+>/,Kr=e=>Yr.test(e),ce=" ",jr="\r",Q=` -`,Xr="\u2028",qr="\u2029";function Zr(e){const t=e;let n=0,r=1,a=1,s=0;const l=N=>t[N]===jr&&t[N+1]===Q,i=N=>t[N]===Q,f=N=>t[N]===qr,p=N=>t[N]===Xr,h=N=>l(N)||i(N)||f(N)||p(N),b=()=>n,E=()=>r,y=()=>a,P=()=>s,A=N=>l(N)||f(N)||p(N)?Q:t[N],S=()=>A(n),_=()=>A(n+s);function d(){return s=0,h(n)&&(r++,a=0),l(n)&&n++,n++,a++,t[n]}function T(){return l(n+s)&&s++,s++,t[n+s]}function g(){n=0,r=1,a=1,s=0}function O(N=0){s=N}function k(){const N=n+s;for(;N!==n;)d();s=0}return{index:b,line:E,column:y,peekOffset:P,charAt:A,currentChar:S,currentPeek:_,next:d,peek:T,reset:g,resetPeek:O,skipToPeek:k}}const de=void 0,Jr=".",Qt="'",Qr="tokenizer";function zr(e,t={}){const n=t.location!==!1,r=Zr(e),a=()=>r.index(),s=()=>Wr(r.line(),r.column(),r.index()),l=s(),i=a(),f={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},p=()=>f,{onError:h}=t;function b(c,u,C,...D){const x=p();if(u.column+=C,u.offset+=C,h){const Y=n?at(x.startLoc,u):null,w=ke(c,Y,{domain:Qr,args:D});h(w)}}function E(c,u,C){c.endLoc=s(),c.currentType=u;const D={type:u};return n&&(D.loc=at(c.startLoc,c.endLoc)),C!=null&&(D.value=C),D}const y=c=>E(c,13);function P(c,u){return c.currentChar()===u?(c.next(),u):(b(R.EXPECTED_TOKEN,s(),0,u),"")}function A(c){let u="";for(;c.currentPeek()===ce||c.currentPeek()===Q;)u+=c.currentPeek(),c.peek();return u}function S(c){const u=A(c);return c.skipToPeek(),u}function _(c){if(c===de)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function d(c){if(c===de)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function T(c,u){const{currentType:C}=u;if(C!==2)return!1;A(c);const D=_(c.currentPeek());return c.resetPeek(),D}function g(c,u){const{currentType:C}=u;if(C!==2)return!1;A(c);const D=c.currentPeek()==="-"?c.peek():c.currentPeek(),x=d(D);return c.resetPeek(),x}function O(c,u){const{currentType:C}=u;if(C!==2)return!1;A(c);const D=c.currentPeek()===Qt;return c.resetPeek(),D}function k(c,u){const{currentType:C}=u;if(C!==7)return!1;A(c);const D=c.currentPeek()===".";return c.resetPeek(),D}function N(c,u){const{currentType:C}=u;if(C!==8)return!1;A(c);const D=_(c.currentPeek());return c.resetPeek(),D}function v(c,u){const{currentType:C}=u;if(!(C===7||C===11))return!1;A(c);const D=c.currentPeek()===":";return c.resetPeek(),D}function U(c,u){const{currentType:C}=u;if(C!==9)return!1;const D=()=>{const Y=c.currentPeek();return Y==="{"?_(c.peek()):Y==="@"||Y==="|"||Y===":"||Y==="."||Y===ce||!Y?!1:Y===Q?(c.peek(),D()):se(c,!1)},x=D();return c.resetPeek(),x}function q(c){A(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function se(c,u=!0){const C=(x=!1,Y="")=>{const w=c.currentPeek();return w==="{"||w==="@"||!w?x:w==="|"?!(Y===ce||Y===Q):w===ce?(c.peek(),C(!0,ce)):w===Q?(c.peek(),C(!0,Q)):!0},D=C();return u&&c.resetPeek(),D}function Z(c,u){const C=c.currentChar();return C===de?de:u(C)?(c.next(),C):null}function De(c){const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function yt(c){return Z(c,De)}function St(c){const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function At(c){return Z(c,St)}function Dt(c){const u=c.charCodeAt(0);return u>=48&&u<=57}function Pt(c){return Z(c,Dt)}function Rt(c){const u=c.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function fe(c){return Z(c,Rt)}function Ue(c){let u="",C="";for(;u=Pt(c);)C+=u;return C}function Mt(c){let u="";for(;;){const C=c.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C===ce||C===Q)if(se(c))u+=C,c.next();else{if(q(c))break;u+=C,c.next()}else u+=C,c.next()}return u}function vt(c){S(c);let u="",C="";for(;u=At(c);)C+=u;return c.currentChar()===de&&b(R.UNTERMINATED_CLOSING_BRACE,s(),0),C}function Vt(c){S(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${Ue(c)}`):u+=Ue(c),c.currentChar()===de&&b(R.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Ft(c){return c!==Qt&&c!==Q}function rr(c){S(c),P(c,"'");let u="",C="";for(;u=Z(c,Ft);)u==="\\"?C+=wt(c):C+=u;const D=c.currentChar();return D===Q||D===de?(b(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),D===Q&&(c.next(),P(c,"'")),C):(P(c,"'"),C)}function wt(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return ze(c,u,4);case"U":return ze(c,u,6);default:return b(R.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function ze(c,u,C){P(c,u);let D="";for(let x=0;x{const D=c.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===ce?C:(C+=D,c.next(),u(C))};return u("")}function $e(c){S(c);const u=P(c,"|");return S(c),u}function Be(c,u){let C=null;switch(c.currentChar()){case"{":return u.braceNest>=1&&b(R.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),c.next(),C=E(u,2,"{"),S(c),u.braceNest++,C;case"}":return u.braceNest>0&&u.currentType===2&&b(R.EMPTY_PLACEHOLDER,s(),0),c.next(),C=E(u,3,"}"),u.braceNest--,u.braceNest>0&&S(c),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),C;case"@":return u.braceNest>0&&b(R.UNTERMINATED_CLOSING_BRACE,s(),0),C=be(c,u)||y(u),u.braceNest=0,C;default:{let x=!0,Y=!0,w=!0;if(q(c))return u.braceNest>0&&b(R.UNTERMINATED_CLOSING_BRACE,s(),0),C=E(u,1,$e(c)),u.braceNest=0,u.inLinked=!1,C;if(u.braceNest>0&&(u.currentType===4||u.currentType===5||u.currentType===6))return b(R.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,We(c,u);if(x=T(c,u))return C=E(u,4,vt(c)),S(c),C;if(Y=g(c,u))return C=E(u,5,Vt(c)),S(c),C;if(w=O(c,u))return C=E(u,6,rr(c)),S(c),C;if(!x&&!Y&&!w)return C=E(u,12,$t(c)),b(R.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),S(c),C;break}}return C}function be(c,u){const{currentType:C}=u;let D=null;const x=c.currentChar();switch((C===7||C===8||C===11||C===9)&&(x===Q||x===ce)&&b(R.INVALID_LINKED_FORMAT,s(),0),x){case"@":return c.next(),D=E(u,7,"@"),u.inLinked=!0,D;case".":return S(c),c.next(),E(u,8,".");case":":return S(c),c.next(),E(u,9,":");default:return q(c)?(D=E(u,1,$e(c)),u.braceNest=0,u.inLinked=!1,D):k(c,u)||v(c,u)?(S(c),be(c,u)):N(c,u)?(S(c),E(u,11,Bt(c))):U(c,u)?(S(c),x==="{"?Be(c,u)||D:E(u,10,Wt(c))):(C===7&&b(R.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,We(c,u))}}function We(c,u){let C={type:13};if(u.braceNest>0)return Be(c,u)||y(u);if(u.inLinked)return be(c,u)||y(u);switch(c.currentChar()){case"{":return Be(c,u)||y(u);case"}":return b(R.UNBALANCED_CLOSING_BRACE,s(),0),c.next(),E(u,3,"}");case"@":return be(c,u)||y(u);default:{if(q(c))return C=E(u,1,$e(c)),u.braceNest=0,u.inLinked=!1,C;if(se(c))return E(u,0,Mt(c));break}}return C}function Ht(){const{currentType:c,offset:u,startLoc:C,endLoc:D}=f;return f.lastType=c,f.lastOffset=u,f.lastStartLoc=C,f.lastEndLoc=D,f.offset=a(),f.startLoc=s(),r.currentChar()===de?E(f,13):We(r,f)}return{nextToken:Ht,currentOffset:a,currentPosition:s,context:p}}const ea="parser",ta=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function na(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ra(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,d,T,g,...O){const k=_.currentPosition();if(k.offset+=g,k.column+=g,n){const N=t?at(T,k):null,v=ke(d,N,{domain:ea,args:O});n(v)}}function a(_,d,T){const g={type:_};return t&&(g.start=d,g.end=d,g.loc={start:T,end:T}),g}function s(_,d,T,g){t&&(_.end=d,_.loc&&(_.loc.end=T))}function l(_,d){const T=_.context(),g=a(3,T.offset,T.startLoc);return g.value=d,s(g,_.currentOffset(),_.currentPosition()),g}function i(_,d){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,k=a(5,g,O);return k.index=parseInt(d,10),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function f(_,d){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,k=a(4,g,O);return k.key=d,_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function p(_,d){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,k=a(9,g,O);return k.value=d.replace(ta,na),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function h(_){const d=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:O}=T,k=a(8,g,O);return d.type!==11?(r(_,R.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),k.value="",s(k,g,O),{nextConsumeToken:d,node:k}):(d.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,le(d)),k.value=d.value||"",s(k,_.currentOffset(),_.currentPosition()),{node:k})}function b(_,d){const T=_.context(),g=a(7,T.offset,T.startLoc);return g.value=d,s(g,_.currentOffset(),_.currentPosition()),g}function E(_){const d=_.context(),T=a(6,d.offset,d.startLoc);let g=_.nextToken();if(g.type===8){const O=h(_);T.modifier=O.node,g=O.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(g)),T.key=b(_,g.value||"");break;case 4:g.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(g)),T.key=f(_,g.value||"");break;case 5:g.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(g)),T.key=i(_,g.value||"");break;case 6:g.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(g)),T.key=p(_,g.value||"");break;default:{r(_,R.UNEXPECTED_EMPTY_LINKED_KEY,d.lastStartLoc,0);const O=_.context(),k=a(7,O.offset,O.startLoc);return k.value="",s(k,O.offset,O.startLoc),T.key=k,s(T,O.offset,O.startLoc),{nextConsumeToken:g,node:T}}}return s(T,_.currentOffset(),_.currentPosition()),{node:T}}function y(_){const d=_.context(),T=d.currentType===1?_.currentOffset():d.offset,g=d.currentType===1?d.endLoc:d.startLoc,O=a(2,T,g);O.items=[];let k=null;do{const U=k||_.nextToken();switch(k=null,U.type){case 0:U.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(U)),O.items.push(l(_,U.value||""));break;case 5:U.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(U)),O.items.push(i(_,U.value||""));break;case 4:U.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(U)),O.items.push(f(_,U.value||""));break;case 6:U.value==null&&r(_,R.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,le(U)),O.items.push(p(_,U.value||""));break;case 7:{const q=E(_);O.items.push(q.node),k=q.nextConsumeToken||null;break}}}while(d.currentType!==13&&d.currentType!==1);const N=d.currentType===1?d.lastOffset:_.currentOffset(),v=d.currentType===1?d.lastEndLoc:_.currentPosition();return s(O,N,v),O}function P(_,d,T,g){const O=_.context();let k=g.items.length===0;const N=a(1,d,T);N.cases=[],N.cases.push(g);do{const v=y(_);k||(k=v.items.length===0),N.cases.push(v)}while(O.currentType!==13);return k&&r(_,R.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),s(N,_.currentOffset(),_.currentPosition()),N}function A(_){const d=_.context(),{offset:T,startLoc:g}=d,O=y(_);return d.currentType===13?O:P(_,T,g,O)}function S(_){const d=zr(_,X({},e)),T=d.context(),g=a(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=A(d),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(d,R.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),s(g,d.currentOffset(),d.currentPosition()),g}return{parse:S}}function le(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function aa(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function zt(e,t){for(let n=0;nen(n)),e}function en(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function p(S,_){i.code+=S}function h(S,_=!0){const d=_?a:"";p(s?d+" ".repeat(S):d)}function b(S=!0){const _=++i.indentLevel;S&&h(_)}function E(S=!0){const _=--i.indentLevel;S&&h(_)}function y(){h(i.indentLevel)}return{context:f,push:p,indent:b,deindent:E,newline:y,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function ua(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Se(e,t.key),t.modifier?(e.push(", "),Se(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function fa(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s{const n=I(t.mode)?t.mode:"normal",r=I(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,l=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],f=ca(e,{mode:n,filename:r,sourceMap:a,breakLineCode:s,needIndent:l});f.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),f.indent(l),i.length>0&&(f.push(`const { ${nt(i.map(b=>`${b}: _${b}`),", ")} } = ctx`),f.newline()),f.push("return "),Se(f,e),f.deindent(l),f.push("}"),delete e.helpers;const{code:p,map:h}=f.context();return{ast:e,code:p,map:h?h.toJSON():void 0}};function pa(e,t={}){const n=X({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,i=ra(n).parse(e);return r?(s&&oa(i),a&&ye(i),{ast:i,code:""}):(sa(i,n),ma(i,n))}/*! - * core-base v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function Ea(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ne().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ne().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ot(e){return n=>ga(n,e)}function ga(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,a=r.c||r.cases;return e.plural(a.reduce((s,l)=>[...s,tn(e,l)],[]))}else return tn(e,n)}function tn(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((a,s)=>[...a,lt(e,s)],[]);return e.normalize(r)}}function lt(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,a=r.m||r.modifier;return e.linked(lt(e,r.k||r.key),a?lt(e,a):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Na="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ca(e,t){t&&Kr(e)&&_e(Ge(Na,{source:e}))}const ha=e=>e;let Xe=Object.create(null);const me=e=>F(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function ba(e,t={}){let n=!1;const r=t.onError||xr;return t.onError=a=>{n=!0,r(a)},{...pa(e,t),detectError:n}}function La(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){const n=V(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ca(e,n);const a=(t.onCacheKey||ha)(e),s=Xe[a];if(s)return s;const{ast:l,detectError:i}=ba(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=ot(l);return i?f:Xe[a]=f}else{if(process.env.NODE_ENV!=="production"&&!me(e))return _e(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Xe[n];return r||(Xe[n]=ot(e))}else return ot(e)}}let Re=null;function Ta(e){Re=e}function Ia(e,t,n){Re&&Re.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Oa=ka("function:translate");function ka(e){return t=>Re&&Re.emit(e,t)}const J={INVALID_ARGUMENT:Hr,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},ya=24;function ue(e){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:Sa}:void 0)}const Sa={[J.INVALID_ARGUMENT]:"Invalid arguments",[J.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[J.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[J.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[J.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function it(e,t){return t.locale!=null?nn(t.locale):nn(e.locale)}let ct;function nn(e){if(I(e))return e;if(B(e)){if(e.resolvedOnce&&ct!=null)return ct;if(e.constructor.name==="Function"){const t=e();if(Ur(t))throw ue(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ct=t}else throw ue(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ue(J.NOT_SUPPORT_LOCALE_TYPE)}function Aa(e,t,n){return[...new Set([n,...H(t)?t:F(t)?Object.keys(t):I(t)?[t]:[n]])]}function rn(e,t,n){const r=I(n)?n:Me,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let l=[n];for(;H(l);)l=an(s,l,t);const i=H(t)||!M(t)?t:t.default?t.default:null;l=I(i)?[i]:i,H(l)&&an(s,l,!1),a.__localeChainCache.set(r,s)}return s}function an(e,t,n){let r=!0;for(let a=0;a{l===void 0?l=i:l+=i},E[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},E[2]=()=>{E[0](),a++},E[3]=()=>{if(a>0)a--,r=4,E[0]();else{if(a=0,l===void 0||(l=Fa(l),l===!1))return!1;E[1]()}};function y(){const P=e[n+1];if(r===5&&P==="'"||r===6&&P==='"')return n++,i="\\"+P,E[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&y())){if(f=Va(s),b=pe[r],p=b[f]||b.l||8,p===8||(r=p[0],p[1]!==void 0&&(h=E[p[1]],h&&(i=s,h()===!1))))return;if(r===7)return t}}const sn=new Map;function Ua(e,t){return F(e)?e[t]:null}function $a(e,t){if(!F(e))return null;let n=sn.get(t);if(n||(n=wa(t),n&&sn.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ga(){return{upper:(e,t)=>t==="text"&&I(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&I(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&I(e)?on(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?on(e.children):e}}let ln;function xa(e){ln=e}let cn;function Ya(e){cn=e}let un;function Ka(e){un=e}let fn=null;const ja=e=>{fn=e},Xa=()=>fn;let _n=null;const dn=e=>{_n=e},qa=()=>_n;let mn=0;function Za(e={}){const t=B(e.onWarn)?e.onWarn:_e,n=I(e.version)?e.version:Ha,r=I(e.locale)||B(e.locale)?e.locale:Me,a=B(r)?Me:r,s=H(e.fallbackLocale)||M(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,l=M(e.messages)?e.messages:{[a]:{}},i=M(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},f=M(e.numberFormats)?e.numberFormats:{[a]:{}},p=X({},e.modifiers||{},Ga()),h=e.pluralRules||{},b=B(e.missing)?e.missing:null,E=V(e.missingWarn)||Oe(e.missingWarn)?e.missingWarn:!0,y=V(e.fallbackWarn)||Oe(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,A=!!e.unresolving,S=B(e.postTranslation)?e.postTranslation:null,_=M(e.processor)?e.processor:null,d=V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=B(e.messageCompiler)?e.messageCompiler:ln;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&Jt(Ce(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=B(e.messageResolver)?e.messageResolver:cn||Ua,k=B(e.localeFallbacker)?e.localeFallbacker:un||Aa,N=F(e.fallbackContext)?e.fallbackContext:void 0,v=e,U=F(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,q=F(v.__numberFormatters)?v.__numberFormatters:new Map,se=F(v.__meta)?v.__meta:{};mn++;const Z={version:n,cid:mn,locale:r,fallbackLocale:s,messages:l,modifiers:p,pluralRules:h,missing:b,missingWarn:E,fallbackWarn:y,fallbackFormat:P,unresolving:A,postTranslation:S,processor:_,warnHtmlMessage:d,escapeParameter:T,messageCompiler:g,messageResolver:O,localeFallbacker:k,fallbackContext:N,onWarn:t,__meta:se};return Z.datetimeFormats=i,Z.numberFormats=f,Z.__datetimeFormatters=U,Z.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=v.__v_emitter!=null?v.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ia(Z,n,se),Z}function Je(e,t){return e instanceof RegExp?e.test(t):e}function pn(e,t){return e instanceof RegExp?e.test(t):e}function ut(e,t,n,r,a){const{missing:s,onWarn:l}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(s!==null){const i=s(e,n,t,a);return I(i)?i:t}else return process.env.NODE_ENV!=="production"&&pn(r,t)&&l(Ce(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function ve(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function En(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ja(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{hn.includes(f)?l[f]=n[f]:s[f]=n[f]}),I(r)?s.locale=r:M(r)&&(l=r),M(a)&&(l=a),[s.key||"",i,s,l]}function bn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Ln(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Nn.numberFormat)return s(Ce(ee.CANNOT_FORMAT_NUMBER)),Ze;const[f,p,h,b]=_t(...t),E=V(h.missingWarn)?h.missingWarn:e.missingWarn,y=V(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,P=!!h.part,A=it(e,h),S=l(e,a,A);if(!I(f)||f==="")return new Intl.NumberFormat(A,b).format(p);let _={},d,T=null,g=A,O=null;const k="number format";for(let U=0;U{Tn.includes(f)?l[f]=n[f]:s[f]=n[f]}),I(r)?s.locale=r:M(r)&&(l=r),M(a)&&(l=a),[s.key||"",i,s,l]}function In(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const Qa=e=>e,za=e=>"",es="text",ts=e=>e.length===0?"":nt(e),ns=$r;function On(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function rs(e){const t=j(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(j(e.named.count)||j(e.named.n))?j(e.named.count)?e.named.count:j(e.named.n)?e.named.n:t:t}function as(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ss(e={}){const t=e.locale,n=rs(e),r=F(e.pluralRules)&&I(t)&&B(e.pluralRules[t])?e.pluralRules[t]:On,a=F(e.pluralRules)&&I(t)&&B(e.pluralRules[t])?On:void 0,s=_=>_[r(n,_.length,a)],l=e.list||[],i=_=>l[_],f=e.named||{};j(e.pluralIndex)&&as(n,f);const p=_=>f[_];function h(_,d){const T=B(e.messages)?e.messages(_,!!d):F(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):za)}const b=_=>e.modifiers?e.modifiers[_]:Qa,E=M(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ts,y=M(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:ns,P=M(e.processor)&&I(e.processor.type)?e.processor.type:es,S={list:i,named:p,plural:s,linked:(_,...d)=>{const[T,g]=d;let O="text",k="";d.length===1?F(T)?(k=T.modifier||k,O=T.type||O):I(T)&&(k=T||k):d.length===2&&(I(T)&&(k=T||k),I(g)&&(O=g||O));const N=h(_,!0)(S),v=O==="vnode"&&H(N)&&k?N[0]:N;return k?b(k)(v,O):v},message:h,type:P,interpolate:y,normalize:E,values:X({},l,f)};return S}const kn=()=>"",re=e=>B(e);function yn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:l,messages:i}=e,[f,p]=dt(...t),h=V(p.missingWarn)?p.missingWarn:e.missingWarn,b=V(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,E=V(p.escapeParameter)?p.escapeParameter:e.escapeParameter,y=!!p.resolvedMessage,P=I(p.default)||V(p.default)?V(p.default)?s?f:()=>f:p.default:n?s?f:()=>f:null,A=n||P!=null&&(I(P)||B(P)),S=it(e,p);E&&os(p);let[_,d,T]=y?[f,S,i[S]||{}]:Sn(e,f,S,l,b,h),g=_,O=f;if(!y&&!(I(g)||me(g)||re(g))&&A&&(g=P,O=g),!y&&(!(I(g)||me(g)||re(g))||!I(d)))return a?qe:f;if(process.env.NODE_ENV!=="production"&&I(g)&&e.messageCompiler==null)return _e(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let k=!1;const N=()=>{k=!0},v=re(g)?g:An(e,f,d,g,O,N);if(k)return g;const U=us(e,d,T,p),q=ss(U),se=ls(e,v,q),Z=r?r(se,f):se;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const De={timestamp:Date.now(),key:I(f)?f:re(g)?g.key:"",locale:d||(re(g)?g.locale:""),format:I(g)?g:re(g)?g.source:"",message:Z};De.meta=X({},e.__meta,Xa()||{}),Oa(De)}return Z}function os(e){H(e.list)?e.list=e.list.map(t=>I(t)?Kt(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=Kt(e.named[t]))})}function Sn(e,t,n,r,a,s){const{messages:l,onWarn:i,messageResolver:f,localeFallbacker:p}=e,h=p(e,r,n);let b={},E,y=null,P=n,A=null;const S="translate";for(let _=0;_r;return E.locale=n,E.key=t,E}let f=null,p,h;process.env.NODE_ENV!=="production"&&ae&&(f=window.performance.now(),p="intlify-message-compilation-start",h="intlify-message-compilation-end",te&&te(p));const b=l(r,is(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&ae){const E=window.performance.now(),y=e.__v_emitter;y&&f&&y.emit("message-compilation",{type:"message-compilation",message:r,time:E-f,groupId:`translate:${t}`}),p&&h&&te&&ge&&(te(h),ge("intlify message compilation",p,h))}return b.locale=n,b.key=t,b.source=r,b}function ls(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&ae&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",te&&te(a));const l=t(n);if(process.env.NODE_ENV!=="production"&&ae){const i=window.performance.now(),f=e.__v_emitter;f&&r&&f.emit("message-evaluation",{type:"message-evaluation",value:l,time:i-r,groupId:`translate:${t.key}`}),a&&s&&te&&ge&&(te(s),ge("intlify message evaluation",a,s))}return l}function dt(...e){const[t,n,r]=e,a={};if(!I(t)&&!j(t)&&!re(t)&&!me(t))throw ue(J.INVALID_ARGUMENT);const s=j(t)?String(t):(re(t),t);return j(n)?a.plural=n:I(n)?a.default=n:M(n)&&!xe(n)?a.named=n:H(n)&&(a.list=n),j(r)?a.plural=r:I(r)?a.default=r:M(r)&&X(a,r),[s,a]}function is(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:l=>{if(s&&s(l),process.env.NODE_ENV!=="production"){const i=cs(r),f=`Message compilation error: ${l.message}`,p=l.location&&i&&Br(i,l.location.start.offset,l.location.end.offset),h=e.__v_emitter;h&&i&&h.emit("compile-error",{message:i,error:l.message,start:l.location&&l.location.start.offset,end:l.location&&l.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${f} -${p}`:f)}else throw l},onCacheKey:l=>vr(t,n,l)}}function cs(e){if(I(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function us(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:l,fallbackLocale:i,fallbackWarn:f,missingWarn:p,fallbackContext:h}=e,E={locale:t,modifiers:a,pluralRules:s,messages:(y,P)=>{let A=l(n,y);if(A==null&&(h||P)){const[,,S]=Sn(h||e,y,t,i,f,p);A=l(S,y)}if(I(A)||me(A)){let S=!1;const d=An(e,y,t,A,y,()=>{S=!0});return S?kn:d}else return re(A)?A:kn}};return e.processor&&(E.processor=e.processor),r.list&&(E.list=r.list),r.named&&(E.named=r.named),j(r.plural)&&(E.pluralIndex=r.plural),E}Ea();function fs(){return Dn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Dn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const _s=typeof Proxy=="function",ds="devtools-plugin:setup",ms="plugin:settings:set";let Ae,mt;function ps(){var e;return Ae!==void 0||(typeof window<"u"&&window.performance?(Ae=!0,mt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ae=!0,mt=globalThis.perf_hooks.performance):Ae=!1),Ae}function Es(){return ps()?mt.now():Date.now()}class gs{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const l in t.settings){const i=t.settings[l];r[l]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const l=localStorage.getItem(a),i=JSON.parse(l);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(l){try{localStorage.setItem(a,JSON.stringify(l))}catch{}s=l},now(){return Es()}},n&&n.on(ms,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...f)=>{this.onQueue.push({method:i,args:f})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...f)=>(this.targetQueue.push({method:i,args:f,resolve:()=>{}}),this.fallbacks[i](...f)):(...f)=>new Promise(p=>{this.targetQueue.push({method:i,args:f,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ns(e,t){const n=e,r=Dn(),a=fs(),s=_s&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(ds,e,t);else{const l=s?new gs(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*! - * vue-i18n v10.0.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const Cs="10.0.1";function hs(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ne().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ne().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ne().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ne().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ee={FALLBACK_TO_ROOT:Ba,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},bs={[Ee.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ee.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ee.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ee.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function Qe(e,...t){return Ge(bs[e],...t)}const W={UNEXPECTED_RETURN_TYPE:ya,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function z(e,...t){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:Ls,args:t}:void 0)}const Ls={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},pt=oe("__translateVNode"),Et=oe("__datetimeParts"),gt=oe("__numberParts"),he=oe("__enableEmitter"),Ve=oe("__disableEmitter"),Pn=oe("__setPluralRules"),Rn=oe("__injectWithOption"),Nt=oe("__dispose");function Fe(e){if(!F(e))return e;for(const t in e)if(Ye(e,t))if(!t.includes("."))F(e[t])&&Fe(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let l=0;l{if("locale"in i&&"resource"in i){const{locale:f,resource:p}=i;f?(l[f]=l[f]||{},je(p,l[f])):je(p,l)}else I(i)&&je(JSON.parse(i),l)}),a==null&&s)for(const i in l)Ye(l,i)&&Fe(l[i]);return l}function Mn(e){return e.type}function vn(e,t,n){let r=F(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ct(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(F(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(F(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Vn(e){return o.createVNode(o.Text,null,e,0)}const Fn="__INTLIFY_META__",wn=()=>[],Ts=()=>!1;let Un=0;function $n(e){return(t,n,r,a)=>e(n,r,o.getCurrentInstance()||void 0,a)}const Is=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=Mn(e)[Fn])?{[Fn]:t}:null};function ht(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,s=ae?o.ref:o.shallowRef;let l=V(e.inheritLocale)?e.inheritLocale:!0;const i=s(t&&l?t.locale.value:I(e.locale)?e.locale:Me),f=s(t&&l?t.fallbackLocale.value:I(e.fallbackLocale)||H(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),p=s(Ct(i.value,e)),h=s(M(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),b=s(M(e.numberFormats)?e.numberFormats:{[i.value]:{}});let E=t?t.missingWarn:V(e.missingWarn)||Oe(e.missingWarn)?e.missingWarn:!0,y=t?t.fallbackWarn:V(e.fallbackWarn)||Oe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:V(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,S=B(e.missing)?e.missing:null,_=B(e.missing)?$n(e.missing):null,d=B(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const O=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let k=e.pluralRules||t&&t.pluralRules,N;N=(()=>{r&&dn(null);const m={version:Cs,locale:i.value,fallbackLocale:f.value,messages:p.value,modifiers:O,pluralRules:k,missing:_===null?void 0:_,missingWarn:E,fallbackWarn:y,fallbackFormat:A,unresolving:!0,postTranslation:d===null?void 0:d,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};m.datetimeFormats=h.value,m.numberFormats=b.value,m.__datetimeFormatters=M(N)?N.__datetimeFormatters:void 0,m.__numberFormatters=M(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(m.__v_emitter=M(N)?N.__v_emitter:void 0);const L=Za(m);return r&&dn(L),L})(),ve(N,i.value,f.value);function U(){return[i.value,f.value,p.value,h.value,b.value]}const q=o.computed({get:()=>i.value,set:m=>{i.value=m,N.locale=i.value}}),se=o.computed({get:()=>f.value,set:m=>{f.value=m,N.fallbackLocale=f.value,ve(N,i.value,m)}}),Z=o.computed(()=>p.value),De=o.computed(()=>h.value),yt=o.computed(()=>b.value);function St(){return B(d)?d:null}function At(m){d=m,N.postTranslation=m}function Dt(){return S}function Pt(m){m!==null&&(_=$n(m)),S=m,N.missing=_}function Rt(m,L){return m!=="translate"||!L.resolvedMessage}const fe=(m,L,$,K,Le,et)=>{U();let Pe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=t?qa():void 0),Pe=m(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=void 0)}if($!=="translate exists"&&j(Pe)&&Pe===qe||$==="translate exists"&&!Pe){const[Te,Do]=L();if(process.env.NODE_ENV!=="production"&&t&&I(Te)&&Rt($,Do)&&(P&&(Je(y,Te)||pn(E,Te))&&_e(Qe(Ee.FALLBACK_TO_ROOT,{key:Te,type:$})),process.env.NODE_ENV!=="production")){const{__v_emitter:ar}=N;ar&&P&&ar.emit("fallback",{type:$,key:Te,to:"global",groupId:`${$}:${Te}`})}return t&&P?K(t):Le(Te)}else{if(et(Pe))return Pe;throw z(W.UNEXPECTED_RETURN_TYPE)}};function Ue(...m){return fe(L=>Reflect.apply(yn,null,[L,...m]),()=>dt(...m),"translate",L=>Reflect.apply(L.t,L,[...m]),L=>L,L=>I(L))}function Mt(...m){const[L,$,K]=m;if(K&&!F(K))throw z(W.INVALID_ARGUMENT);return Ue(L,$,X({resolvedMessage:!0},K||{}))}function vt(...m){return fe(L=>Reflect.apply(Cn,null,[L,...m]),()=>ft(...m),"datetime format",L=>Reflect.apply(L.d,L,[...m]),()=>Ze,L=>I(L))}function Vt(...m){return fe(L=>Reflect.apply(Ln,null,[L,...m]),()=>_t(...m),"number format",L=>Reflect.apply(L.n,L,[...m]),()=>Ze,L=>I(L))}function Ft(m){return m.map(L=>I(L)||j(L)||V(L)?Vn(String(L)):L)}const wt={normalize:Ft,interpolate:m=>m,type:"vnode"};function ze(...m){return fe(L=>{let $;const K=L;try{K.processor=wt,$=Reflect.apply(yn,null,[K,...m])}finally{K.processor=null}return $},()=>dt(...m),"translate",L=>L[pt](...m),L=>[Vn(L)],L=>H(L))}function Ut(...m){return fe(L=>Reflect.apply(Ln,null,[L,...m]),()=>_t(...m),"number format",L=>L[gt](...m),wn,L=>I(L)||H(L))}function $t(...m){return fe(L=>Reflect.apply(Cn,null,[L,...m]),()=>ft(...m),"datetime format",L=>L[Et](...m),wn,L=>I(L)||H(L))}function Bt(m){k=m,N.pluralRules=k}function Wt(m,L){return fe(()=>{if(!m)return!1;const $=I(L)?L:i.value,K=be($),Le=N.messageResolver(K,m);return me(Le)||re(Le)||I(Le)},()=>[m],"translate exists",$=>Reflect.apply($.te,$,[m,L]),Ts,$=>V($))}function $e(m){let L=null;const $=rn(N,f.value,i.value);for(let K=0;K<$.length;K++){const Le=p.value[$[K]]||{},et=N.messageResolver(Le,m);if(et!=null){L=et;break}}return L}function Be(m){const L=$e(m);return L??(t?t.tm(m)||{}:{})}function be(m){return p.value[m]||{}}function We(m,L){if(a){const $={[m]:L};for(const K in $)Ye($,K)&&Fe($[K]);L=$[m]}p.value[m]=L,N.messages=p.value}function Ht(m,L){p.value[m]=p.value[m]||{};const $={[m]:L};if(a)for(const K in $)Ye($,K)&&Fe($[K]);L=$[m],je(L,p.value[m]),N.messages=p.value}function c(m){return h.value[m]||{}}function u(m,L){h.value[m]=L,N.datetimeFormats=h.value,bn(N,m,L)}function C(m,L){h.value[m]=X(h.value[m]||{},L),N.datetimeFormats=h.value,bn(N,m,L)}function D(m){return b.value[m]||{}}function x(m,L){b.value[m]=L,N.numberFormats=b.value,In(N,m,L)}function Y(m,L){b.value[m]=X(b.value[m]||{},L),N.numberFormats=b.value,In(N,m,L)}Un++,t&&ae&&(o.watch(t.locale,m=>{l&&(i.value=m,N.locale=m,ve(N,i.value,f.value))}),o.watch(t.fallbackLocale,m=>{l&&(f.value=m,N.fallbackLocale=m,ve(N,i.value,f.value))}));const w={id:Un,locale:q,fallbackLocale:se,get inheritLocale(){return l},set inheritLocale(m){l=m,m&&t&&(i.value=t.locale.value,f.value=t.fallbackLocale.value,ve(N,i.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Z,get modifiers(){return O},get pluralRules(){return k||{}},get isGlobal(){return r},get missingWarn(){return E},set missingWarn(m){E=m,N.missingWarn=E},get fallbackWarn(){return y},set fallbackWarn(m){y=m,N.fallbackWarn=y},get fallbackRoot(){return P},set fallbackRoot(m){P=m},get fallbackFormat(){return A},set fallbackFormat(m){A=m,N.fallbackFormat=A},get warnHtmlMessage(){return T},set warnHtmlMessage(m){T=m,N.warnHtmlMessage=m},get escapeParameter(){return g},set escapeParameter(m){g=m,N.escapeParameter=m},t:Ue,getLocaleMessage:be,setLocaleMessage:We,mergeLocaleMessage:Ht,getPostTranslationHandler:St,setPostTranslationHandler:At,getMissingHandler:Dt,setMissingHandler:Pt,[Pn]:Bt};return w.datetimeFormats=De,w.numberFormats=yt,w.rt=Mt,w.te=Wt,w.tm=Be,w.d=vt,w.n=Vt,w.getDateTimeFormat=c,w.setDateTimeFormat=u,w.mergeDateTimeFormat=C,w.getNumberFormat=D,w.setNumberFormat=x,w.mergeNumberFormat=Y,w[Rn]=n,w[pt]=ze,w[Et]=$t,w[gt]=Ut,process.env.NODE_ENV!=="production"&&(w[he]=m=>{N.__v_emitter=m},w[Ve]=()=>{N.__v_emitter=void 0}),w}const Bn="vue-i18n: composer properties",bt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Os={"vue-i18n-resource-inspector":"Search for scopes ..."},ks={"vue-i18n-timeline":16764185};let Lt;async function ys(e,t){return new Promise((n,r)=>{try{Ns({id:"vue-devtools-plugin-vue-i18n",label:bt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Bn],app:e},a=>{Lt=a,a.on.visitComponentTree(({componentInstance:l,treeNode:i})=>{Ss(l,i,t)}),a.on.inspectComponent(({componentInstance:l,instanceData:i})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&i&&(t.mode==="legacy"?l.vnode.el.__VUE_I18N__!==t.global.__composer&&Hn(i,l.vnode.el.__VUE_I18N__):Hn(i,l.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:bt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Os["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&Ms(l,t)});const s=new Map;a.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Vs(l,t),l.nodeId==="global"){if(!s.has(l.app)){const[i]=await a.getComponentInstances(l.app);s.set(l.app,i)}a.highlightElement(s.get(l.app))}else{const i=vs(l.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ws(l,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:bt["vue-i18n-timeline"],color:ks["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function Wn(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ss(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${Wn(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Hn(e,t){const n=Bn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Tt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Tt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];B(r)&&"source"in r?t[n]=Rs(r):me(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:F(r)?t[n]=Tt(r):t[n]=r}),t}const As={"<":"<",">":">",'"':""","&":"&"};function Ds(e){return e.replace(/[<>"&]/g,Ps)}function Ps(e){return As[e]||e}function Rs(e){return{_custom:{type:"function",display:`ƒ ${e.source?`("${Ds(e.source)}")`:"(?)"}`}}}function Ms(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Wn(r)} Scope`})}}function vs(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Gn(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Vs(e,t){const n=Gn(e.nodeId,t);return n&&(e.state=Fs(n)),null}function Fs(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:Tt(e.messages.value)}];t[a]=s;{const l="Datetime formats info",i=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[l]=i;const f="Datetime formats info",p=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=p}return t}function we(e,t){if(Lt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Lt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ws(e,t){const n=Gn(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&I(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(I(e.state.value)||H(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&V(e.state.value)&&(n.inheritLocale=e.state.value)}}function Us(e){const t=I(e.locale)?e.locale:Me,n=I(e.fallbackLocale)||H(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=B(e.missing)?e.missing:void 0,a=V(e.silentTranslationWarn)||Oe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=V(e.silentFallbackWarn)||Oe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=V(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,f=M(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,h=B(e.postTranslation)?e.postTranslation:void 0,b=I(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,E=!!e.escapeParameterHtml,y=V(e.sync)?e.sync:!0;let P=e.messages;if(M(e.sharedMessages)){const O=e.sharedMessages;P=Object.keys(O).reduce((N,v)=>{const U=N[v]||(N[v]={});return X(U,O[v]),N},P||{})}const{__i18n:A,__root:S,__injectWithOption:_}=e,d=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:P,flatJson:g,datetimeFormats:d,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:l,fallbackFormat:i,modifiers:f,pluralRules:p,postTranslation:h,warnHtmlMessage:b,escapeParameter:E,messageResolver:e.messageResolver,inheritLocale:y,__i18n:A,__root:S,__injectWithOption:_}}function It(e={}){const t=ht(Us(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},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(a){t.setMissingHandler(a)},get silentTranslationWarn(){return V(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=V(a)?!a:a},get silentFallbackWarn(){return V(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=V(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},tc(...a){const[s,l,i]=a,f={plural:1};let p=null,h=null;if(process.env.NODE_ENV!=="production"&&Jt(Qe(Ee.DEPRECATE_TC)),!I(s))throw z(W.INVALID_ARGUMENT);const b=s;return I(l)?f.locale=l:j(l)?f.plural=l:H(l)?p=l:M(l)&&(h=l),I(i)?f.locale=i:H(i)?p=i:M(i)&&(h=i),Reflect.apply(t.t,t,[b,p||h||{},f])},te(a,s){return t.te(a,s)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,s){t.setLocaleMessage(a,s)},mergeLocaleMessage(a,s){t.mergeLocaleMessage(a,s)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,s){t.setDateTimeFormat(a,s)},mergeDateTimeFormat(a,s){t.mergeDateTimeFormat(a,s)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,s){t.setNumberFormat(a,s)},mergeNumberFormat(a,s){t.mergeNumberFormat(a,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const s=t;s[he]&&s[he](a)},r.__disableEmitter=()=>{const a=t;a[Ve]&&a[Ve]()}),r}function $s(e,t,n){return{beforeCreate(){const r=o.getCurrentInstance();if(!r)throw z(W.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=xn(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=It(s);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=xn(e,a);else{this.$i18n=It({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&vn(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,l)=>this.$i18n.te(s,l),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=rt();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",we)}},unmounted(){const r=o.getCurrentInstance();if(!r)throw z(W.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",we),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function xn(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[Pn](t.pluralizationRules||e.pluralizationRules);const n=Ct(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Ot={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bs({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===o.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function Yn(){return o.Fragment}const Kn=o.defineComponent({name:"i18n-t",props:X({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>j(e)||!isNaN(e)}},Ot),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||kt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(b=>b!=="_"),l={};e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=I(e.plural)?+e.plural:e.plural);const i=Bs(t,s),f=a[pt](e.keypath,i,l),p=X({},r),h=I(e.tag)||F(e.tag)?e.tag:Yn();return o.h(h,p,f)}}});function Ws(e){return H(e)&&!I(e[0])}function jn(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const l={part:!0};let i={};e.locale&&(l.locale=e.locale),I(e.format)?l.key=e.format:F(e.format)&&(I(e.format.key)&&(l.key=e.format.key),i=Object.keys(e.format).reduce((E,y)=>n.includes(y)?X({},E,{[y]:e.format[y]}):E,{}));const f=r(e.value,l,i);let p=[l.key];H(f)?p=f.map((E,y)=>{const P=a[E.type],A=P?P({[E.type]:E.value,index:y,parts:f}):[E.value];return Ws(A)&&(A[0].key=`${E.type}-${y}`),A}):I(f)&&(p=[f]);const h=X({},s),b=I(e.tag)||F(e.tag)?e.tag:Yn();return o.h(b,h,p)}}const Xn=o.defineComponent({name:"i18n-n",props:X({value:{type:Number,required:!0},format:{type:[String,Object]}},Ot),setup(e,t){const n=e.i18n||kt({useScope:e.scope,__useComponent:!0});return jn(e,t,Tn,(...r)=>n[gt](...r))}}),qn=o.defineComponent({name:"i18n-d",props:X({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ot),setup(e,t){const n=e.i18n||kt({useScope:e.scope,__useComponent:!0});return jn(e,t,hn,(...r)=>n[Et](...r))}});function Hs(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Gs(e){const t=l=>{const{instance:i,value:f}=l;if(!i||!i.$)throw z(W.UNEXPECTED_ERROR);const p=Hs(e,i.$),h=Zn(f);return[Reflect.apply(p.t,p,[...Jn(h)]),p]};return{created:(l,i)=>{const[f,p]=t(i);ae&&e.global===p&&(l.__i18nWatcher=o.watch(p.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=p,l.textContent=f},unmounted:l=>{ae&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const f=l.__composer,p=Zn(i);l.textContent=Reflect.apply(f.t,f,[...Jn(p)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function Zn(e){if(I(e))return{path:e};if(M(e)){if(!("path"in e))throw z(W.REQUIRED_VALUE,"path");return e}else throw z(W.INVALID_VALUE)}function Jn(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,l={},i=r||{};return I(n)&&(l.locale=n),j(a)&&(l.plural=a),j(s)&&(l.plural=s),[t,i,l]}function xs(e,t,...n){const r=M(n[0])?n[0]:{};(V(r.globalInstall)?r.globalInstall:!0)&&([Kn.name,"I18nT"].forEach(s=>e.component(s,Kn)),[Xn.name,"I18nN"].forEach(s=>e.component(s,Xn)),[qn.name,"I18nD"].forEach(s=>e.component(s,qn))),e.directive("t",Gs(t))}const Ys=oe("global-vue-i18n");function Ks(e={},t){const n=__VUE_I18N_LEGACY_API__&&V(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=V(e.globalInjection)?e.globalInjection:!0,a=new Map,[s,l]=js(e,n),i=oe(process.env.NODE_ENV!=="production"?"vue-i18n":"");function f(E){return a.get(E)||null}function p(E,y){a.set(E,y)}function h(E){a.delete(E)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(E,...y){if(process.env.NODE_ENV!=="production"&&(E.__VUE_I18N__=b),E.__VUE_I18N_SYMBOL__=i,E.provide(E.__VUE_I18N_SYMBOL__,b),M(y[0])){const S=y[0];b.__composerExtend=S.__composerExtend,b.__vueI18nExtend=S.__vueI18nExtend}let P=null;!n&&r&&(P=to(E,b.global)),__VUE_I18N_FULL_INSTALL__&&xs(E,b,...y),__VUE_I18N_LEGACY_API__&&n&&E.mixin($s(l,l.__composer,b));const A=E.unmount;if(E.unmount=()=>{P&&P(),b.dispose(),A()},process.env.NODE_ENV!=="production"){if(!await ys(E,b))throw z(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=rt();if(n){const d=l;d.__enableEmitter&&d.__enableEmitter(_)}else{const d=l;d[he]&&d[he](_)}_.on("*",we)}},get global(){return l},dispose(){s.stop()},__instances:a,__getInstance:f,__setInstance:p,__deleteInstance:h};return b}function kt(e={}){const t=o.getCurrentInstance();if(t==null)throw z(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw z(W.NOT_INSTALLED);const n=Xs(t),r=Zs(n),a=Mn(t),s=qs(e,a);if(s==="global")return vn(r,e,a),r;if(s==="parent"){let f=Js(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&_e(Qe(Ee.NOT_FOUND_PARENT_SCOPE)),f=r),f}const l=n;let i=l.__getInstance(t);if(i==null){const f=X({},e);"__i18n"in a&&(f.__i18n=a.__i18n),r&&(f.__root=r),i=ht(f),l.__composerExtend&&(i[Nt]=l.__composerExtend(i)),zs(l,t,i),l.__setInstance(t,i)}return i}function js(e,t,n){const r=o.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>It(e)):r.run(()=>ht(e));if(a==null)throw z(W.UNEXPECTED_ERROR);return[r,a]}function Xs(e){const t=o.inject(e.isCE?Ys:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw z(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}function qs(e,t){return xe(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Zs(e){return e.mode==="composition"?e.global:e.global.__composer}function Js(e,t,n=!1){let r=null;const a=t.root;let s=Qs(t,n);for(;s!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(s);i!=null&&(r=i.__composer,n&&r&&!r[Rn]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function Qs(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function zs(e,t,n){let r=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=rt();const a=n;a[he]&&a[he](r),r.on("*",we)}},t),o.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",we),a[Ve]&&a[Ve](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=a[Nt];s&&(s(),delete a[Nt])},t)}const eo=["locale","fallbackLocale","availableLocales"],Qn=["t","rt","d","n","tm","te"];function to(e,t){const n=Object.create(null);return eo.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw z(W.UNEXPECTED_ERROR);const l=o.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,l)}),e.config.globalProperties.$i18n=n,Qn.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw z(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,Qn.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(hs(),xa(La),Ya($a),Ka(rn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ne();e.__INTLIFY__=!0,Ta(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const no={de:{copyIcon:{copyLink:"Link kopieren"},icons:{calendar:"Kalender",critical:"Kritisch",info:"Information",success:"Erfolg",warning:"Warnung"},syncCard:{itemsSelected:"{count} ausgewählt",selectAll:"Alle auswählen",selectAllCalendars:"Alle Kalender auswählen"},switchToggle:{off:"Aus",on:"An"}},en:{copyIcon:{copyLink:"Copy link"},icons:{calendar:"Calendar",critical:"Critical",info:"Information",success:"Success",warning:"Warning"},syncCard:{itemsSelected:"{count} Selected",selectAll:"Select All",selectAllCalendars:"Select All Calendars"},switchToggle:{off:"Off",on:"On"}}},ro=(localStorage==null?void 0:localStorage.getItem("locale"))??navigator.language.split("-")[0],ie=Ks({legacy:!1,globalInjection:!0,locale:ro,fallbackLocale:"en",messages:no}).global.t,ao={class:"wrapper"},so={class:"header"},oo={class:"text-wrapper"},lo={class:"title"},io={class:"selected"},co={class:"rows"},uo=["onUpdate:modelValue"],fo=ne(o.defineComponent({__name:"SyncCard",props:o.mergeModels({title:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),n=o.computed(()=>t.value.filter(a=>a.checked).length),r=()=>{t.value=t.value.map(a=>({...a,checked:!0}))};return(a,s)=>(o.openBlock(),o.createElementBlock("div",ao,[o.createElementVNode("div",so,[o.renderSlot(a.$slots,"icon",{},void 0,!0),o.createElementVNode("div",oo,[o.createElementVNode("div",lo,o.toDisplayString(a.title),1),o.createElementVNode("div",io,o.toDisplayString(o.unref(ie)("syncCard.itemsSelected",{count:n.value})),1)]),o.createVNode(xt,{class:"select-all",size:"small",onClick:r,title:o.unref(ie)("syncCard.selectAllCalendars")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(ie)("syncCard.selectAll")),1)]),_:1},8,["title"])]),o.createElementVNode("ul",co,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.value,(l,i)=>(o.openBlock(),o.createElementBlock("li",{class:"row",key:l.key},[o.createElementVNode("label",null,[o.withDirectives(o.createElementVNode("input",{class:"tbpro-checkbox",type:"checkbox","onUpdate:modelValue":f=>t.value[i].checked=f},null,8,uo),[[o.vModelCheckbox,t.value[i].checked]]),o.createTextVNode(" "+o.toDisplayString(l.label),1)])]))),128))])]))}}),[["__scopeId","data-v-f1c062dd"]]),_o={key:0},mo={class:"toggle-container"},po={key:0,class:"toggle-label"},Eo={class:"toggle"},go=["name","checked","disabled"],No={key:1,class:"toggle-label"},Co=ne(o.defineComponent({__name:"SwitchToggle",props:{name:{},active:{type:Boolean},disabled:{type:Boolean},label:{},noLegend:{type:Boolean}},emits:["changed"],setup(e,{emit:t}){const n=t,r=e,a=o.ref(!1);o.onMounted(()=>{a.value=r.active});const s=()=>{r.disabled||(a.value=!a.value,n("changed",a.value))};return(l,i)=>(o.openBlock(),o.createElementBlock("div",{class:"component-container",onClick:o.withModifiers(s,["prevent"])},[l.label?(o.openBlock(),o.createElementBlock("div",_o,o.toDisplayString(l.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",mo,[l.noLegend?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",po,o.toDisplayString(o.unref(ie)("switchToggle.off")),1)),o.createElementVNode("div",Eo,[o.createElementVNode("input",{class:"toggle-input",type:"checkbox",name:l.name,checked:a.value,disabled:l.disabled},null,8,go),i[0]||(i[0]=o.createElementVNode("div",{class:"toggle-handle"},null,-1))]),l.noLegend?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",No,o.toDisplayString(o.unref(ie)("switchToggle.on")),1))])]))}}),[["__scopeId","data-v-f6cff58b"]]),ho=["aria-label"],zn=ne(o.defineComponent({__name:"NoticeInfoIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{class:"tbpro-notice-icon","aria-label":o.unref(ie)("icons.info"),width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("g",{id:"icon"},[o.createElementVNode("path",{id:"path293",opacity:"0.2",d:"M14.5 7.5C14.5 9.35652 13.7625 11.137 12.4497 12.4498C11.137 13.7625 9.35652 14.5 7.5 14.5C5.64348 14.5 3.86301 13.7625 2.55025 12.4498C1.2375 11.137 0.5 9.35652 0.5 7.5C0.5 5.64348 1.2375 3.86299 2.55025 2.55023C3.86301 1.23748 5.64348 0.5 7.5 0.5C9.35652 0.5 11.137 1.23748 12.4497 2.55023C13.7625 3.86299 14.5 5.64348 14.5 7.5Z",fill:"currentColor"}),o.createElementVNode("path",{id:"path1012",d:"M7.5 0C3.36381 0 0 3.36379 0 7.5C0 11.6362 3.36381 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00281 7.81836 1.00781C7.92535 1.01281 8.03117 1.02105 8.13672 1.03125C8.2429 1.04155 8.34852 1.05501 8.45312 1.07031C11.2847 1.48435 13.5157 3.71533 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098L12.9688 11.0137L12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36871 13.648 5.07845 13.54 4.79883 13.4121C4.52169 13.2843 4.25468 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30578 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195L2.0293 11.0098C1.69881 10.4967 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.7536 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02351 7.18575 1 7.5 1ZM7.5 4C7.36739 4 7.24021 4.05266 7.14645 4.14642C7.05268 4.24019 7 4.36739 7 4.5C7 4.63261 7.05268 4.75981 7.14645 4.85358C7.24021 4.94734 7.36739 5 7.5 5C7.63261 5 7.75979 4.94734 7.85355 4.85358C7.94732 4.75981 8 4.63261 8 4.5C8 4.36739 7.94732 4.24019 7.85355 4.14642C7.75979 4.05266 7.63261 4 7.5 4ZM7.5 6C7.36739 6 7.24021 6.05266 7.14645 6.14642C7.05268 6.24019 7 6.36739 7 6.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11C7.63261 11 7.75979 10.9473 7.85355 10.8536C7.94732 10.7598 8 10.6326 8 10.5V6.5C8 6.36739 7.94732 6.24019 7.85355 6.14642C7.75979 6.05266 7.63261 6 7.5 6Z",fill:"currentColor"})],-1)]),8,ho))}}),[["__scopeId","data-v-326dc06b"]]),bo=["aria-label"],er=ne(o.defineComponent({__name:"NoticeSuccessIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{class:"tbpro-success-icon","aria-label":o.unref(ie)("icons.success"),width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("g",{id:"icon"},[o.createElementVNode("path",{id:"path293",opacity:"0.2",d:"M15 7.5C15 9.48912 14.2098 11.3968 12.8033 12.8033C11.3968 14.2098 9.48912 15 7.5 15C5.51088 15 3.60322 14.2098 2.1967 12.8033C0.790176 11.3968 0 9.48912 0 7.5C0 5.51088 0.790176 3.6032 2.1967 2.19668C3.60322 0.790154 5.51088 0 7.5 0C9.48912 0 11.3968 0.790154 12.8033 2.19668C14.2098 3.6032 15 5.51088 15 7.5Z",fill:"none",class:"tbpro-icon-background"}),o.createElementVNode("path",{id:"path1012",d:"M7.5 0C3.3638 0 0 3.36379 0 7.5C0 11.6362 3.3638 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00261 7.81836 1.00781C7.92535 1.01293 8.03117 1.02104 8.13672 1.03125C8.2429 1.04152 8.34852 1.05502 8.45312 1.07031C11.2847 1.48435 13.5157 3.7153 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098C12.9701 11.0111 12.9694 11.0124 12.9688 11.0137C12.9675 11.0157 12.9661 11.0176 12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36866 13.6485 5.07845 13.54 4.79883 13.4121C4.52158 13.2853 4.25469 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30579 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195C2.0332 11.0163 2.03125 11.013 2.0293 11.0098C1.69881 10.4957 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.75361 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02352 7.18575 1 7.5 1ZM10.4668 5.00195C10.3345 5.01016 10.2108 5.07057 10.123 5.16992L6.93945 8.81055L4.8125 7.10938C4.76122 7.06831 4.70234 7.03771 4.63924 7.01941C4.57614 7.00111 4.51005 6.99543 4.44475 7.00269C4.37945 7.00994 4.31622 7.03 4.25867 7.06171C4.20112 7.09341 4.15039 7.13618 4.10938 7.1875C4.06831 7.23878 4.03775 7.29768 4.01945 7.36078C4.00115 7.42388 3.99546 7.48994 4.00272 7.55524C4.00997 7.62054 4.03003 7.68379 4.06173 7.74133C4.09344 7.79888 4.13618 7.84961 4.1875 7.89062L6.6875 9.89062C6.78805 9.97139 6.91592 10.0102 7.04439 9.9989C7.17287 9.98762 7.29202 9.92713 7.37695 9.83008L10.877 5.83008C10.9204 5.78064 10.9537 5.7231 10.9749 5.66077C10.9961 5.59843 11.0047 5.53249 11.0004 5.4668C10.996 5.4011 10.9787 5.33695 10.9495 5.27795C10.9203 5.21896 10.8797 5.16632 10.8301 5.12305C10.7805 5.07998 10.7228 5.04715 10.6605 5.02637C10.5982 5.00559 10.5323 4.99728 10.4668 5.00195Z",fill:"currentColor"})],-1)]),8,bo))}}),[["__scopeId","data-v-818680bc"]]),Lo=["aria-label"],tr=ne(o.defineComponent({__name:"NoticeWarningIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{class:"tbpro-warning-icon","aria-label":o.unref(ie)("icons.warning"),width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("g",{id:"icon"},[o.createElementVNode("path",{id:"path293",opacity:"0.2",d:"M14.5 7.5C14.5 9.35652 13.7625 11.137 12.4497 12.4498C11.137 13.7625 9.35652 14.5 7.5 14.5C5.64348 14.5 3.86301 13.7625 2.55025 12.4498C1.2375 11.137 0.5 9.35652 0.5 7.5C0.5 5.64348 1.2375 3.86299 2.55025 2.55023C3.86301 1.23748 5.64348 0.5 7.5 0.5C9.35652 0.5 11.137 1.23748 12.4497 2.55023C13.7625 3.86299 14.5 5.64348 14.5 7.5Z",fill:"currentColor"}),o.createElementVNode("path",{id:"path1012",d:"M7.5 0C3.36381 0 0 3.36379 0 7.5C0 11.6362 3.36381 15 7.5 15C11.6362 15 15 11.6362 15 7.5C15 3.36379 11.6362 0 7.5 0ZM7.5 1C7.60617 1 7.71232 1.00281 7.81836 1.00781C7.92535 1.01281 8.03117 1.02105 8.13672 1.03125C8.2429 1.04155 8.34852 1.05501 8.45312 1.07031C11.2847 1.48435 13.5157 3.71533 13.9297 6.54688C13.945 6.65148 13.9585 6.7571 13.9688 6.86328C13.979 6.96883 13.9871 7.07465 13.9922 7.18164C13.9974 7.28768 14 7.39383 14 7.5C14 7.81456 13.9766 8.12339 13.9336 8.42578C13.8895 8.73576 13.8225 9.03794 13.7363 9.33203C13.5605 9.93216 13.3012 10.4957 12.9707 11.0098L12.9688 11.0137L12.9648 11.0195C12.798 11.278 12.6129 11.5243 12.4121 11.7559C12.2809 11.9071 12.1444 12.0529 12 12.1914V12.168C11.6942 12.4699 11.3592 12.7408 11 12.9766V12.9785C10.7453 13.1413 10.4784 13.2853 10.2012 13.4121C9.92155 13.54 9.63134 13.6485 9.33203 13.7363C9.03821 13.8225 8.73544 13.8894 8.42578 13.9336C8.12342 13.9767 7.81454 14 7.5 14C7.18546 14 6.87658 13.9767 6.57422 13.9336C6.26456 13.8894 5.96179 13.8225 5.66797 13.7363C5.36871 13.648 5.07845 13.54 4.79883 13.4121C4.52169 13.2843 4.25468 13.1413 4 12.9785V12.9766C3.64076 12.7408 3.30578 12.4699 3 12.168V12.1914C2.85556 12.0529 2.71907 11.9071 2.58789 11.7559C2.38709 11.5243 2.202 11.278 2.03516 11.0195L2.0293 11.0098C1.69881 10.4967 1.43949 9.93216 1.26367 9.33203C1.17751 9.03794 1.11052 8.73576 1.06641 8.42578C1.02337 8.12339 1 7.81456 1 7.5C1 7.18575 1.02352 6.87643 1.06641 6.57422C1.20042 5.62989 1.53798 4.75361 2.03125 3.98633C2.53528 3.20232 3.20232 2.53528 3.98633 2.03125C4.7536 1.53797 5.62989 1.20042 6.57422 1.06641C6.87643 1.02351 7.18575 1 7.5 1ZM7.5 4C7.36739 4 7.24021 4.05266 7.14645 4.14642C7.05268 4.24019 7 4.36739 7 4.5C7 4.63261 7.05268 4.75981 7.14645 4.85358C7.24021 4.94734 7.36739 5 7.5 5C7.63261 5 7.75979 4.94734 7.85355 4.85358C7.94732 4.75981 8 4.63261 8 4.5C8 4.36739 7.94732 4.24019 7.85355 4.14642C7.75979 4.05266 7.63261 4 7.5 4ZM7.5 6C7.36739 6 7.24021 6.05266 7.14645 6.14642C7.05268 6.24019 7 6.36739 7 6.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11C7.63261 11 7.75979 10.9473 7.85355 10.8536C7.94732 10.7598 8 10.6326 8 10.5V6.5C8 6.36739 7.94732 6.24019 7.85355 6.14642C7.75979 6.05266 7.63261 6 7.5 6Z",fill:"currentColor"})],-1)]),8,Lo))}}),[["__scopeId","data-v-8776ef7d"]]),To=["aria-label"],nr=ne(o.defineComponent({__name:"NoticeCriticalIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{"aria-label":o.unref(ie)("icons.critical"),class:"tbpro-critical-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("path",{opacity:"0.2",d:"M8 1C7.34694 1.00095 6.778 1.45312 6.5 2L1.324 11.4609C1 12 1.00152 12.1118 1 12.5C1 13.3284 1.67157 14 2.5 14H13.5C14.3284 14 15 13.3284 15 12.5C15 12.106 15 12 14.668 11.4473L9.5 2C9.218 1.44727 8.65609 1.00005 8 1Z",fill:"none",class:"tbpro-icon-background"},null,-1),o.createElementVNode("path",{d:"M8 1C7.34694 1.00095 6.778 1.45312 6.5 2L1.324 11.4609C1 12 1.00152 12.1118 1 12.5C1 13.3284 1.67157 14 2.5 14H13.5C14.3284 14 15 13.3284 15 12.5C15 12.106 15 12 14.668 11.4473L9.5 2C9.218 1.44727 8.65609 1.00005 8 1Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),o.createElementVNode("path",{d:"M8 5V9",stroke:"currentColor","stroke-linecap":"round"},null,-1),o.createElementVNode("path",{d:"M8.00001 11C8.00001 11 8.00001 11 8 11C8 11 8 11 8 11C8 11 8 11 8 11C8.00001 11 8.00001 11 8.00001 11Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),8,To))}}),[["__scopeId","data-v-18c4b7c4"]]),Io={class:"icon"},Oo={class:"body"},ko=o.defineComponent({__name:"NoticeBar",props:{type:{default:Ie.Info}},setup(e){const t=e,n=o.computed(()=>t.type===Ie.Info),r=o.computed(()=>t.type===Ie.Success),a=o.computed(()=>t.type===Ie.Warning),s=o.computed(()=>t.type===Ie.Error);return(l,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([{error:s.value,info:n.value,warning:a.value,success:r.value},"notice notice-bar"])},[o.createElementVNode("span",Io,[n.value?(o.openBlock(),o.createBlock(zn,{key:0})):o.createCommentVNode("",!0),r.value?(o.openBlock(),o.createBlock(er,{key:1})):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createBlock(tr,{key:2})):o.createCommentVNode("",!0),s.value?(o.openBlock(),o.createBlock(nr,{key:3})):o.createCommentVNode("",!0)]),o.createElementVNode("span",Oo,[o.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),yo=ne(ko,[["__scopeId","data-v-fc832f73"]]),So=["aria-label"],Ao=o.defineComponent({__name:"CopyIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{"aria-label":o.unref(ie)("copyIcon.copyLink"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[0]||(n[0]=[o.createElementVNode("g",{id:"layer1"},[o.createElementVNode("path",{id:"rect560",opacity:"0.2",d:"M13.0002 5.00014V12.0001C13.0002 13.6621 11.6622 15.0001 10.0002 15.0001H7.00024V16.0001C7.00024 17.6621 8.33825 19.0001 10.0002 19.0001H16.0002C17.6622 19.0001 19.0002 17.6621 19.0002 16.0001V8.00014C19.0002 6.33814 17.6622 5.00014 16.0002 5.00014H13.0002Z",fill:"currentColor"}),o.createElementVNode("path",{id:"rect292",d:"M4 0C1.8013 0 0 1.8013 0 4V12C0 14.1987 1.8013 16 4 16H6C6 18.1987 7.80131 20 10 20H16C18.1987 20 20 18.1987 20 16V8C20 5.8013 18.1987 4 16 4H14C14 1.8013 12.1987 0 10 0H4ZM4 2H10C11.1253 2 12 2.8747 12 4V12C12 13.1253 11.1253 14 10 14H4C2.87471 14 2 13.1253 2 12V4C2 2.8747 2.87471 2 4 2ZM5 4C4.446 4 4 4.446 4 5C4 5.554 4.446 6 5 6H9C9.554 6 10 5.554 10 5C10 4.446 9.554 4 9 4H5ZM14 6H16C17.1253 6 18 6.8747 18 8V16C18 17.1253 17.1253 18 16 18H10C8.87471 18 8 17.1253 8 16H10C12.1987 16 14 14.1987 14 12V6ZM5 8C4.446 8 4 8.446 4 9C4 9.554 4.446 10 5 10H9C9.554 10 10 9.554 10 9C10 8.446 9.554 8 9 8H5Z",fill:"currentColor"})],-1)]),8,So))}});G.BaseButton=He,G.BubbleSelect=Rr,G.CopyIcon=Ao,G.LinkButton=_r,G.NoticeBar=yo,G.NoticeCriticalIcon=nr,G.NoticeInfoIcon=zn,G.NoticeSuccessIcon=er,G.NoticeWarningIcon=tr,G.PrimaryButton=xt,G.SecondaryButton=fr,G.SelectInput=Nr,G.SwitchToggle=Co,G.SyncCard=fo,G.TextInput=kr,G.ToolTip=Gt,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})}); diff --git a/dist/style.css b/dist/style.css deleted file mode 100644 index d295cc8..0000000 --- a/dist/style.css +++ /dev/null @@ -1 +0,0 @@ -html{--colour-neutral-900: #26272A;--colour-neutral-base: #FEFFFF;--colour-neutral-lower: #F7F7F7;--colour-neutral-raised: var(--colour-neutral-base);--colour-neutral-subtle: var(--colour-neutral-lower);--colour-neutral-border: #E4E4E7;--colour-neutral-border-intense: #91939F;--colour-primary-soft: #F0F8FF;--colour-primary-default: #1373D9;--colour-primary-hover: #175FB6;--colour-primary-pressed: #19518F;--colour-secondary-soft: #FAF5FF;--colour-secondary-default: #6B21A8;--colour-secondary-hover: #571C87;--colour-secondary-pressed: #3A0764;--colour-success-soft: #F4F9F4;--colour-success-default: #1D783B;--colour-success-hover: #1C5F32;--colour-success-pressed: #194E2C;--colour-warning-soft: #FEFAE8;--colour-warning-default: #FACC15;--colour-warning-hover: #EABD08;--colour-warning-pressed: #CAA204;--colour-danger-soft: #FEF2F2;--colour-danger-default: #991B1B;--colour-danger-hover: #7F1D1D;--colour-danger-pressed: #7F1D1D;--colour-ti-base: #1A202C;--colour-ti-secondary: #4C4D58;--colour-ti-muted: #737584;--colour-ti-highlight: #1373D9;--colour-ti-warning: #713F12;--colour-ti-critical: #DC2626;--colour-ti-success: #1D783B;--colour-accent-teal: #25A6A0;--colour-accent-blue: #58C9FF;--colour-accent-purple: #AE55F7;--colour-accent-orange: #EA7308;--colour-accent-pink: #E247C4;--colour-accent-gray: #6E6F9B;--colour-apmt-soft: #F3F9FC;--colour-apmt-primary: #008080;--colour-apmt-primary-hover: #066769;--colour-apmt-primary-pressed: #0A5757;--colour-apmt-secondary: #81D4B5;--colour-apmt-accent-1: #A3ECE3;--colour-apmt-accent-2: #03AFD7;--colour-send-soft: #FEF7EC;--colour-send-primary: #F09D38;--colour-send-primary-hover: #F09D38;--colour-send-primary-pressed: #F09D38;--colour-send-primary-secondary: #AA6000;--colour-send-primary-accent-1: #1F8DDB;--colour-send-primary-accent-2: #1F8DDB}html.dark{--colour-neutral-base: #1A202C;--colour-neutral-lower: #18181B;--colour-neutral-raised: #262D3B;--colour-neutral-subtle: var(--colour-neutral-raised);--colour-neutral-border: #303A4A;--colour-neutral-border-intense: #3D4D67;--colour-primary-soft: #262C40;--colour-primary-default: #58C9FF;--colour-primary-hover: #32AEFF;--colour-primary-pressed: #1B90F5;--colour-secondary-soft: #3A0764;--colour-secondary-default: #F5E8FF;--colour-secondary-hover: #ECD5FF;--colour-secondary-pressed: #DDB4FE;--colour-success-soft: #082B16;--colour-success-default: #DEFAE7;--colour-success-hover: #C0F2CF;--colour-success-pressed: #8EE7AA;--colour-warning-soft: #423606;--colour-warning-default: #FEF2C3;--colour-warning-hover: #FEE78A;--colour-warning-pressed: #FDD847;--colour-danger-soft: #7F1D1D;--colour-danger-default: #FEE2E2;--colour-danger-hover: #FECACA;--colour-danger-pressed: #FCA5A5;--colour-ti-base: #EEEEF0;--colour-ti-secondary: #D9D9DE;--colour-ti-muted: #7F94AC;--colour-ti-highlight: #58C9FF;--colour-ti-warning: #FEE78A;--colour-ti-critical: #EF4444;--colour-ti-success: #55D37E;--colour-accent-teal: #A3ECE3;--colour-accent-blue: #58C9FF;--colour-accent-purple: #8022CE;--colour-accent-orange: #FEC18A;--colour-accent-pink: #FBD3F6;--colour-accent-gray: #C3CADE;--colour-apmt-soft: #152F3C;--colour-apmt-primary: #A3ECE3;--colour-apmt-primary-hover: #6DDBD1;--colour-apmt-primary-pressed: #3EC3BA;--colour-apmt-secondary: #25A6A0;--colour-apmt-accent-1: #A3ECE3;--colour-apmt-accent-2: #58C9FF;--colour-send-soft: #411107;--colour-send-primary: #F09D38;--colour-send-primary-hover: #F09D38;--colour-send-primary-pressed: #F09D38;--colour-send-primary-secondary: #AA6000;--colour-send-primary-accent-1: #1F8DDB;--colour-send-primary-accent-2: #1F8DDB}html[data-tbpro-service=apmt]{--colour-service-soft: var(--colour-apmt-soft);--colour-service-primary: var(--colour-apmt-primary);--colour-service-primary-hover: var(--colour-apmt-primary-hover);--colour-service-primary-pressed: var(--colour-apmt-primary-pressed);--colour-service-secondary: var(--colour-apmt-secondary);--colour-service-accent-1: var(--colour-apmt-accent-1);--colour-service-accent-2: var(--colour-apmt-accent-2)}html[data-tbpro-service=send]{--colour-service-soft: var(--colour-send-soft);--colour-service-primary: var(--colour-send-primary);--colour-service-primary-hover: var(--colour-send-primary-hover);--colour-service-primary-pressed: var(--colour-send-primary-pressed);--colour-service-secondary: var(--colour-send-primary-secondary);--colour-service-accent-1: var(--colour-send-primary-accent-1);--colour-service-accent-2: var(--colour-send-primary-accent-2)}@font-face{font-family:InterVariable;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/Inter/InterVariable.woff2) format("woff2")}@font-face{font-family:InterVariable;font-style:italic;font-weight:100 900;font-display:swap;src:url(/fonts/Inter/InterVariable-Italic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(/fonts/Inter/Inter-Thin.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:100;font-display:swap;src:url(/fonts/Inter/Inter-ThinItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(/fonts/Inter/Inter-ExtraLight.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:200;font-display:swap;src:url(/fonts/Inter/Inter-ExtraLightItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/Inter/Inter-Light.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:300;font-display:swap;src:url(/fonts/Inter/Inter-LightItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/Inter/Inter-Regular.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/Inter/Inter-Italic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/Inter/Inter-Medium.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/Inter/Inter-MediumItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/Inter/Inter-SemiBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:600;font-display:swap;src:url(/fonts/Inter/Inter-SemiBoldItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/Inter/Inter-Bold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/Inter/Inter-BoldItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/Inter/Inter-ExtraBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:800;font-display:swap;src:url(/fonts/Inter/Inter-ExtraBoldItalic.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(/fonts/Inter/Inter-Black.woff2) format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:900;font-display:swap;src:url(/fonts/Inter/Inter-BlackItalic.woff2) format("woff2")}html{--border-radius: .1875rem;--txt-default: .8125rem;--txt-input: var(--txt-default);--line-height-input: 1.25rem;--txt-colour: var(--colour-ti-base);--transition: all .25s ease-out;--transition-transform: .15s transform ease-in-out}.__sb_preview_background.dark{background-color:#374151}.services-ui-base{font-family:Inter,"sans-serif";font-size:.8125rem}.dark .services-ui-base{color:var(--txt-colour)}.is-light-mode{display:block}.is-dark-mode,.dark .is-light-mode{display:none}.dark .is-dark-mode{display:block}.modal-active{overflow:hidden}.tooltip[data-v-4e716012]{position:absolute;text-wrap:wrap;border-radius:.25rem;background-color:var(--colour-neutral-subtle);font-family:Inter,sans-serif;color:var(--colour-ti-base);z-index:100;box-shadow:0 4px 8px #00000024,0 0 2px #0000001f}.tooltip-body[data-v-4e716012]{display:flex;justify-content:center;align-items:center;padding:.25rem .5rem}.tooltip-container[data-v-4e716012]{position:relative;display:flex;justify-content:center;align-items:center}.beak[data-v-4e716012]{position:absolute;color:var(--colour-neutral-subtle)}.pos-none[data-v-4e716012]{display:none}.pos-top[data-v-4e716012]{top:-6px;transform:scaleY(-1)}.pos-bottom[data-v-4e716012]{top:100%}.pos-left[data-v-4e716012]{left:-17px;transform:rotate(90deg)}.pos-right[data-v-4e716012]{right:-17px;transform:rotate(-90deg)}.tooltip[data-v-38d294b3]{transform:translateY(-100%);pointer-events:none;opacity:0;transition:opacity .25s ease-out}button:hover>.tooltip[data-v-38d294b3],.display-tooltip[data-v-38d294b3]{opacity:1}.primary[data-v-38d294b3]{background-color:var(--colour-service-primary);border-color:var(--colour-service-primary-hover);color:var(--colour-neutral-base)}.primary[data-v-38d294b3]:hover:enabled{background-color:var(--colour-service-primary-hover);border-color:var(--colour-success-pressed)}.primary[data-v-38d294b3]:active:enabled{background-color:var(--colour-service-primary-pressed);border-color:var(--colour-service-primary-pressed);box-shadow:none}.secondary[data-v-38d294b3]{background-color:var(--colour-neutral-subtle);color:var(--colour-ti-base)}.secondary[data-v-38d294b3]:hover:enabled{box-shadow:0 .25rem .125rem -.1875rem #0000001a}.secondary[data-v-38d294b3]:active:enabled{background-color:var(--colour-neutral-border);border-color:var(--colour-neutral-border)}.link[data-v-38d294b3]{background-color:transparent;color:var(--colour-service-primary);text-decoration:underline;box-shadow:none!important;border:none!important}.link .text[data-v-38d294b3]{padding:0;-webkit-user-select:all;-moz-user-select:all;user-select:all;font-weight:400;line-height:1}.link[data-v-38d294b3]:hover{box-shadow:none!important}.tbpro-button[data-v-38d294b3]{gap:.625rem;--colour-btn-border: var(--colour-neutral-border);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius);border:.0625rem solid color-mix(in srgb,var(--colour-btn-border) 65%,transparent)!important;box-shadow:0 .375rem .188rem -.25rem #152f3c4d;font-family:Inter,"sans-serif";font-size:var(--txt-input);line-height:.983rem;font-weight:700;min-width:8rem;transition:all .25s ease-out;cursor:pointer}.tbpro-button[data-v-38d294b3]:hover{box-shadow:0 .25rem .125rem -.1875rem #0000001a}.tbpro-button[data-v-38d294b3]:active{box-shadow:none;outline:none!important}.tbpro-button[data-v-38d294b3]:focus{outline:.125rem solid var(--colour-service-primary);outline-offset:.0625rem;box-shadow:none}.tbpro-button[data-v-38d294b3]:disabled{background-color:var(--colour-neutral-border);border-color:var(--colour-neutral-border);color:var(--colour-ti-muted);box-shadow:none;cursor:not-allowed}.icon[data-v-38d294b3]{display:flex;align-items:center;height:100%;padding-left:.75rem;padding-right:.75rem;margin-right:-.75rem}.text[data-v-38d294b3]{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:.75rem 1.5rem}.small .text[data-v-38d294b3]{text-transform:uppercase;font-size:.5625rem;padding:.5625rem;font-weight:700}button.small[data-v-38d294b3]{min-width:initial;height:1.25rem}.wrapper[data-v-771d1fc0]{display:flex;flex-direction:column;color:var(--colour-ti-base);font-family:Inter,"sans-serif";font-size:var(--txt-input);line-height:var(--line-height-input);font-weight:400;max-width:320px}.label[data-v-771d1fc0]{width:100%;font-weight:600}.help-label[data-v-771d1fc0]{visibility:hidden;display:flex;color:var(--colour-ti-critical);width:100%;min-height:.9375rem;font-size:.625rem;line-height:.9375rem}.visible[data-v-771d1fc0]{visibility:visible}.required[data-v-771d1fc0]{color:var(--colour-ti-critical)}.tbpro-select[data-v-771d1fc0]{--colour-select-border: var(--colour-neutral-border);background-color:var(--colour-neutral-base);border:.0625rem solid color-mix(in srgb,var(--colour-select-border) 65%,transparent)!important;border-radius:var(--border-radius);font-weight:400;padding:.75rem;color:var(--txt-colour)}.tbpro-select[data-v-771d1fc0]:hover,.tbpro-select[data-v-771d1fc0]:focus{--colour-select-border: var(--colour-neutral-border-intense)}.tbpro-select[data-v-771d1fc0]:active{background-color:var(--colour-neutral-subtle);--colour-select-border: var(--colour-neutral-border-intense)}.dark .tbpro-select[data-v-771d1fc0]{background-color:var(--colour-neutral-lower)}.wrapper[data-v-364ddd75]{display:flex;flex-direction:column;color:var(--colour-ti-base);font-family:Inter,"sans-serif";font-size:var(--txt-input);line-height:var(--line-height-input);font-weight:400}.label[data-v-364ddd75]{width:100%;font-weight:600;padding:.1875rem}.help-label[data-v-364ddd75]{display:flex;color:var(--colour-ti-base);width:100%;min-height:.9375rem;font-size:.625rem;line-height:.9375rem;padding:.1875rem}.help-label.invalid[data-v-364ddd75]{color:var(--colour-danger-default)}.required[data-v-364ddd75]{color:var(--colour-ti-critical)}.tbpro-input[data-v-364ddd75]{--colour-btn-border: var(--colour-neutral-border);width:100%;padding:.75rem;color:var(--txt-colour);background-color:var(--colour-neutral-base);border-radius:var(--border-radius);border:.0625rem solid color-mix(in srgb,var(--colour-btn-border) 65%,transparent)!important}.tbpro-input[data-v-364ddd75]:hover:enabled{--colour-btn-border: var(--colour-neutral-border-intense)}.tbpro-input[data-v-364ddd75]:active:enabled{--colour-btn-border: var(--colour-neutral-border-intense)}.tbpro-input[data-v-364ddd75]:focus:enabled{--colour-btn-border: var(--colour-service-primary);outline:.125rem solid var(--colour-btn-border);border:.0625rem solid var(--colour-btn-border)!important;border-radius:.125rem}.tbpro-input.dirty[data-v-364ddd75]:invalid{--colour-btn-border: var(--colour-ti-critical)}.tbpro-input[data-v-364ddd75]:disabled{filter:grayscale(50%);cursor:not-allowed}.tbpro-input[data-v-364ddd75]::-moz-placeholder{color:var(--colour-ti-muted)}.tbpro-input[data-v-364ddd75]::placeholder{color:var(--colour-ti-muted)}.dark .tbpro-input[data-v-364ddd75]{background-color:var(--colour-neutral-lower)}.wrapper[data-v-c3be0617]{display:flex;flex-direction:column;color:var(--colour-ti-base);font-family:Inter,"sans-serif";font-size:var(--txt-input);line-height:var(--line-height-input);font-weight:400}.bubble-list[data-v-c3be0617]{padding:0;display:flex;gap:.25rem;list-style:none}.label[data-v-c3be0617]{width:100%;font-weight:600}.tbpro-bubble[data-v-c3be0617]{transition:all .25s ease-out;display:flex;justify-content:center;align-items:center;width:2rem;height:2rem;border:.0625rem solid var(--colour-neutral-border);border-radius:100%;background-color:var(--colour-neutral-subtle);font-weight:700;line-height:150%;color:var(--colour-ti-muted);cursor:pointer}.selected[data-v-c3be0617]{background-color:var(--colour-service-primary);border-color:var(--colour-service-primary-pressed);color:var(--colour-neutral-base)}.required[data-v-c3be0617]{color:var(--colour-ti-critical)}.title[data-v-f1c062dd]{font-size:.8125rem;line-height:1.21875rem}.wrapper[data-v-f1c062dd]{--colour-highlight: var(--colour-service-primary);border-radius:.5625rem;border:.0625rem solid var(--colour-neutral-border);background:var(--colour-neutral-base);font-family:Inter,"sans-serif";font-size:var(--txt-input);color:var(--colour-ti-base)}.dark .wrapper[data-v-f1c062dd]{--colour-highlight: var(--colour-service-secondary)}.header[data-v-f1c062dd]{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;min-height:3.375rem;gap:.5rem;padding:.75rem .625rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-bottom:.0625rem solid var(--colour-neutral-border);background-color:var(--colour-neutral-lower);font-weight:700}.selected[data-v-f1c062dd]{font-size:.5625rem;line-height:var(--txt-default);color:var(--colour-highlight)}.rows[data-v-f1c062dd]{height:12rem;overflow-y:scroll;border-radius:.5rem;list-style:none;padding:0}.row[data-v-f1c062dd]{width:100%;background-color:var(--colour-neutral-base);padding:.375rem .75rem;font-size:var(--txt-input)}.row[data-v-f1c062dd]:nth-child(2n){background-color:var(--colour-neutral-lower)}label[data-v-f1c062dd]{display:flex;gap:.625rem;justify-content:flex-start;align-items:center}.tbpro-checkbox[data-v-f1c062dd]{width:1rem;height:1rem;border-radius:var(--border-radius);border:1px solid var(--colour-neutral-border-intense);accent-color:var(--colour-highlight)}.tbpro-checkbox[data-v-f1c062dd]:focus{outline-color:var(--colour-highlight)}.tbpro-checkbox[data-v-f1c062dd]:checked,.tbpro-checkbox[data-v-f1c062dd]:checked:hover,.tbpro-checkbox[data-v-f1c062dd]:checked:focus{background-color:var(--colour-highlight);border-color:var(--colour-highlight);color:var(--colour-neutral-raised)}.select-all[data-v-f1c062dd]{margin-left:auto;margin-right:auto;top:2.0625rem}@media (min-width: 48rem){.header[data-v-f1c062dd]{flex-direction:row;justify-content:flex-start;align-items:flex-start;text-align:left}.select-all[data-v-f1c062dd]{position:relative;margin-right:.25rem}}.component-container[data-v-f6cff58b]{--colour-base: #E4E4E7;--colour-active: #008080;--colour-inactive: #FEFFFF;--colour-highlight: #FEFFFF;--colour-border-intense: #777580}html.dark .component-container[data-v-f6cff58b]{--colour-base: #737584;--colour-active: #A3ECE3;--colour-inactive: #FEFFFF;--colour-highlight: #1A202C;--colour-border-intense: #777580}.component-container[data-v-f6cff58b]{position:relative;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.component-container[data-v-f6cff58b]:has(.toggle-input:disabled){cursor:not-allowed}.toggle-container[data-v-f6cff58b]{display:flex;align-items:center;gap:.375rem}.toggle-label[data-v-f6cff58b]{font-size:.75rem;line-height:1rem}.toggle[data-v-f6cff58b]{background:var(--colour-base);width:2rem;height:1rem;flex-shrink:0;border-radius:9999px}.toggle[data-v-f6cff58b]:has(.toggle-input:checked){background:var(--colour-active)}.toggle[data-v-f6cff58b]:has(.toggle-input:disabled){opacity:70%}.toggle .toggle-input[data-v-f6cff58b]{display:none}:is(.toggle .toggle-input):checked~.toggle-handle[data-v-f6cff58b]{background-color:var(--colour-highlight);transform:translate(1rem);border-color:var(--colour-active)}.toggle .toggle-handle[data-v-f6cff58b]{background-color:var(--colour-inactive);width:1rem;height:1rem;box-sizing:border-box;border-radius:9999px;transition:var(--transition-transform);border:1px solid var(--colour-border-intense)}.tbpro-notice-icon[data-v-326dc06b]{color:var(--colour-service-primary)}.dark .tbpro-notice-icon[data-v-326dc06b]{color:var(--colour-service-accent-1)}.tbpro-success-icon[data-v-818680bc]{color:var(--colour-success-default)}.tbpro-success-icon .tbpro-icon-background[data-v-818680bc]{color:var(--colour-success-pressed)}.tbpro-warning-icon[data-v-8776ef7d]{color:var(--colour-warning-pressed)}.tbpro-critical-icon[data-v-18c4b7c4]{color:var(--colour-danger-default)}.tbpro-critical-icon .tbpro-icon-background[data-v-18c4b7c4]{color:var(--colour-danger-pressed)}.icon[data-v-fc832f73]{position:absolute;left:.5625rem;top:.475rem;margin-top:auto;margin-bottom:auto}.body[data-v-fc832f73]{margin:auto;font-size:.8125rem;font-weight:700;line-height:1}.notice[data-v-fc832f73]{position:relative;display:flex;justify-content:center;align-items:center;border-radius:.1875rem;gap:.625rem;border:.0625rem solid;padding:.5625rem .5625rem .5625rem 1.75rem}.info[data-v-fc832f73]{background-color:var(--colour-service-soft);border-color:var(--colour-service-primary);color:var(--colour-service-primary-pressed)}.success[data-v-fc832f73]{background-color:var(--colour-success-soft);border-color:var(--colour-success-default);color:var(--colour-ti-success)}.warning[data-v-fc832f73]{background-color:var(--colour-warning-soft);border-color:var(--colour-warning-default);color:var(--colour-ti-warning)}.error[data-v-fc832f73]{background-color:var(--colour-danger-soft);border-color:var(--colour-danger-default);color:var(--colour-danger-pressed)}.dark .info[data-v-fc832f73]{color:var(--colour-service-accent-1);border-color:var(--colour-service-accent-1)}@media (min-width: 48rem){.notice[data-v-fc832f73]{min-width:31.25rem}} diff --git a/package.json b/package.json index 0d8eea5..382e6db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@thunderbirdops/services-ui", - "version": "0.4.1", + "version": "0.4.2", "author": "Thunderbird", "type": "module", "license": "MPL-2.0",