@nxgt/material-vue 0.42.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +117 -0
- package/README.md +18 -5
- package/dist/{Button-CWmzvv9p.js → Button-CEvi_i4g.js} +4 -4
- package/dist/{HoverCardTrigger-C5AbAyHE.js → HoverCardTrigger-B7m5Zvj1.js} +69 -62
- package/dist/backgrounds/backgrounds.css +8 -0
- package/dist/backgrounds/css/base.css +169 -0
- package/dist/backgrounds/css/gradient.css +53 -0
- package/dist/backgrounds/css/grain.css +19 -0
- package/dist/backgrounds/css/motion.css +30 -0
- package/dist/backgrounds.js +111 -0
- package/dist/{camera-C-9slBUV.js → camera-DP3Qfhhc.js} +4 -4
- package/dist/{chunk-7M6MHVWA-wgE1MsQ9.js → chunk-7M6MHVWA-DzYWbKT9.js} +1 -1
- package/dist/{chunk-GNY47TPC-BByCj-tp.js → chunk-GNY47TPC-D4sl5ZSh.js} +1 -1
- package/dist/{classDiagram-v2-NBCMYWYE-LDc3yyTu.js → classDiagram-v2-NBCMYWYE-BtmPeDVI.js} +1 -1
- package/dist/components/base.css +5 -2
- package/dist/components/components.css +5 -0
- package/dist/components/theme-tokens.css +21 -0
- package/dist/{components-DX4EycMi.js → components-zm5JC2dA.js} +14077 -13577
- package/dist/components.js +8 -8
- package/dist/composables.js +3 -3
- package/dist/{dagre-6A5THRUB-CCigPI-W.js → dagre-6A5THRUB-CmmqjQ01.js} +1 -1
- package/dist/{diagram-22UHCM2B-vav-BOss.js → diagram-22UHCM2B-BYL1soMk.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{erDiagram-OPXOYQCR-BV3UGLoQ.js → erDiagram-OPXOYQCR-DhNOupcl.js} +1 -1
- package/dist/{flowDiagram-KWPJA3E3-B3AfwLQk.js → flowDiagram-KWPJA3E3-_S6NO9vf.js} +2 -2
- package/dist/{form-scope-CN68PTXc.js → form-scope-XQGlh8m3.js} +1 -1
- package/dist/{i18n-provider-DmZSTBnp.js → i18n-provider-tL27-a8y.js} +1 -1
- package/dist/i18n.js +26 -9
- package/dist/{icon-button-DErh1aJS.js → icon-button-BNA3fXM2.js} +4 -4
- package/dist/lib/backgrounds/background/background.vue.d.ts +22 -0
- package/dist/lib/backgrounds/background/index.d.ts +2 -0
- package/dist/lib/backgrounds/background/partials/background-layers.vue.d.ts +9 -0
- package/dist/lib/backgrounds/background/partials/scene-svg.d.ts +10 -0
- package/dist/lib/backgrounds/background/types.d.ts +24 -0
- package/dist/lib/backgrounds/index.d.ts +13 -0
- package/dist/lib/components/ui/actions/button/button-tones.d.ts +3 -3
- package/dist/lib/components/ui/actions/responsive-button/responsive-button.vue.d.ts +3 -3
- package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +4 -0
- package/dist/lib/components/ui/collections/data-table/data-table.vue.d.ts +8 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-body.vue.d.ts +8 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty.vue.d.ts +5 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-toolbar.d.ts +16 -3
- package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +36 -0
- package/dist/lib/components/ui/collections/data-table/types.d.ts +15 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +2 -0
- package/dist/lib/components/ui/feedback/circular-progress/circular-progress.vue.d.ts +1 -1
- package/dist/lib/components/ui/feedback/empty-state/empty-state.vue.d.ts +21 -8
- package/dist/lib/components/ui/feedback/empty-state/index.d.ts +1 -1
- package/dist/lib/components/ui/feedback/error-state/error-state.vue.d.ts +54 -0
- package/dist/lib/components/ui/feedback/error-state/index.d.ts +3 -0
- package/dist/lib/components/ui/feedback/error-state/partials/error-state-details.vue.d.ts +7 -0
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/state-frame/state-frame.vue.d.ts +36 -0
- package/dist/lib/components/ui/feedback/state-frame/state-icon.vue.d.ts +7 -0
- package/dist/lib/components/ui/feedback/state-frame/state-illustration.vue.d.ts +8 -0
- package/dist/lib/components/ui/feedback/state-frame/state-tones.d.ts +11 -0
- package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/use-truncated-title.d.ts +10 -0
- package/dist/lib/components/ui/layout/background/background.vue.d.ts +18 -3
- package/dist/lib/components/ui/layout/doc/partials/doc-empty.vue.d.ts +7 -4
- package/dist/lib/components/ui/media/stx-player/stx-player-viewport.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/command/CommandSeparator.vue.d.ts +3 -1
- package/dist/lib/components/ui/overlays/dialog/in-dialog.d.ts +1 -1
- package/dist/lib/components/ui/overlays/dialog/use-escape-forward.d.ts +13 -0
- package/dist/lib/components/ui/overlays/dialog/use-modal-content.d.ts +2 -0
- package/dist/lib/components/ui/primitives/nonce-provider/nonce-provider.vue.d.ts +4 -1
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-keyboard.d.ts +22 -4
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-box.vue.d.ts +6 -2
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-list.vue.d.ts +7 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-active.d.ts +17 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-keydown.d.ts +21 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-open.d.ts +3 -3
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +2 -1
- package/dist/lib/components/ui/selection/autocomplete/use-drawer-room.d.ts +11 -0
- package/dist/lib/components/ui/selection/autocomplete/use-query-change.d.ts +8 -0
- package/dist/lib/components/ui/widgets/charts/chart-container.vue.d.ts +2 -2
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-empty.vue.d.ts +1 -0
- package/dist/lib/composables/use-background-activity.d.ts +8 -0
- package/dist/lib/i18n/resources/en/en.d.ts +24 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +25 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +24 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +25 -1
- package/dist/lib/i18n/resources/resources.d.ts +48 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/index.d.ts +1 -0
- package/dist/lib/lib/is-production.d.ts +11 -0
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib/nuxt/module.d.ts +2 -11
- package/dist/lib/nuxt/pdf-fonts.d.ts +1 -1
- package/dist/lib/nuxt/plugin-options.d.ts +58 -0
- package/dist/lib/vite/index.d.ts +4 -8
- package/dist/lib.js +52 -51
- package/dist/main.js +17 -17
- package/dist/map.js +4 -4
- package/dist/material-vue.css +1 -1
- package/dist/{merge-BzRhCAF6.js → merge-CUkhQBjf.js} +1 -1
- package/dist/{mermaid.core-B2ydTQ4X.js → mermaid.core-B70hvAGW.js} +11 -11
- package/dist/{mindmap-definition-NLK3R4M7-DCb99I7s.js → mindmap-definition-NLK3R4M7-B59LL3gV.js} +1 -1
- package/dist/{pdf-outline-sidebar-BU4o_hBI.js → pdf-outline-sidebar-ChDcGkbS.js} +2 -2
- package/dist/{pdf-page-anNe78Lc.js → pdf-page-DFvf3lsq.js} +1 -1
- package/dist/{pdf-page-list-CSY76HH6.js → pdf-page-list-K-ncOHkY.js} +2 -2
- package/dist/{pdf-reader-BhZNrW7R.js → pdf-reader-BPq6yCdy.js} +15 -15
- package/dist/{pdf-sidebar-DcIpG7eh.js → pdf-sidebar-divDHLe7.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-CUC0V4if.js → pdf-thumbnail-sidebar-C8XMXCq0.js} +4 -4
- package/dist/{pdf-toolbar-C373S-ul.js → pdf-toolbar-DQdedyLO.js} +4 -4
- package/dist/pdf.js +2 -2
- package/dist/{print-format.utils-C81c0weJ.js → print-format.utils-DutRk52h.js} +2 -2
- package/dist/{requirementDiagram-PLB6GJNP-DnkvMOW6.js → requirementDiagram-PLB6GJNP-BvzdTtRf.js} +1 -1
- package/dist/{sortable-provider-CL2UGGn8.js → sortable-provider-CwnKfRFb.js} +2 -2
- package/dist/{stateDiagram-v2-GCMORJYK-BCh7NZQn.js → stateDiagram-v2-GCMORJYK-VPagBr-W.js} +1 -1
- package/dist/{stored-language-Wtcj2HsU.js → stored-language-DVP9KzRu.js} +50 -2
- package/dist/{stx-player-CMmM3F5Z.js → stx-player-NiBlUGm4.js} +12 -12
- package/dist/styles.css +4 -0
- package/dist/{swimlanesDiagram-TC7HE7FX-D4-k5-iq.js → swimlanesDiagram-TC7HE7FX-BA-757S-.js} +2 -2
- package/dist/{translator-D5Dp-dob.js → translator-Dpfm1mAC.js} +171 -159
- package/dist/use-background-activity-DdTBbNpX.js +17 -0
- package/dist/{use-heading-spy-BIBHtUXN.js → use-heading-spy-jn8f2ioE.js} +13 -13
- package/dist/{use-material-translation-COoBTGpB.js → use-material-translation-CHacJbhU.js} +3 -3
- package/dist/{usecaseDiagram-POWQR4AR-Bi5we59l.js → usecaseDiagram-POWQR4AR-1f4iixDN.js} +1 -1
- package/dist/vite.js +7 -2
- package/docs/README.md +3 -0
- package/docs/components/buttons-and-actions.md +2 -0
- package/docs/components/data-table-filter-and-lists.md +59 -8
- package/docs/components/feedback-and-status.md +79 -8
- package/docs/components/media-and-files.md +2 -0
- package/docs/components/navigation-and-layout.md +13 -5
- package/docs/components/overlays-and-menus.md +20 -3
- package/docs/components/primitives.md +5 -3
- package/docs/components/rich-widgets.md +1 -1
- package/docs/components/selection-and-choice.md +14 -4
- package/docs/getting-started.md +22 -3
- package/docs/guides/app-shell.md +1 -1
- package/docs/guides/backgrounds.md +143 -0
- package/docs/guides/csp.md +48 -6
- package/docs/guides/helpers.md +1 -0
- package/docs/guides/i18n.md +51 -1
- package/docs/guides/migrate-to-vite-plugin.md +259 -0
- package/docs/guides/pdf.md +11 -4
- package/docs/guides/ssr.md +1 -1
- package/docs/guides/theming.md +52 -4
- package/docs/guides/vite-plugin.md +194 -0
- package/docs/previews/backgrounds-matrix.webp +0 -0
- package/docs/previews/feedback-status-emptystate.webp +0 -0
- package/docs/previews/feedback-status-errorstate.webp +0 -0
- package/docs/roadmap.md +60 -32
- package/docs/troubleshooting.md +251 -7
- package/lib/backgrounds/backgrounds.css +8 -0
- package/lib/backgrounds/css/base.css +169 -0
- package/lib/backgrounds/css/gradient.css +53 -0
- package/lib/backgrounds/css/grain.css +19 -0
- package/lib/backgrounds/css/motion.css +30 -0
- package/lib/components/base.css +5 -2
- package/lib/components/components.css +5 -0
- package/lib/components/theme-tokens.css +21 -0
- package/lib/nuxt/component-names.ts +1 -0
- package/lib/nuxt/module.ts +29 -15
- package/lib/nuxt/pdf-fonts.ts +1 -1
- package/lib/nuxt/plugin-options.ts +92 -0
- package/lib/nuxt/runtime/inter.css +6 -0
- package/lib/styles.css +4 -0
- package/lib/vite/index.ts +19 -2
- package/package.json +24 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as e, i as t, r as n, t as r } from "./stored-language-
|
|
1
|
+
import { a as e, i as t, r as n, t as r } from "./stored-language-DVP9KzRu.js";
|
|
2
2
|
import { t as i } from "./get-CTzJAwfc.js";
|
|
3
3
|
//#region ../../node_modules/@formatjs/fast-memoize/index.js
|
|
4
4
|
function a(e, t) {
|
|
5
|
-
let n = t && t.cache ? t.cache :
|
|
5
|
+
let n = t && t.cache ? t.cache : re, r = t && t.serializer ? t.serializer : te;
|
|
6
6
|
return (t && t.strategy ? t.strategy : u)(e, {
|
|
7
7
|
cache: n,
|
|
8
8
|
serializer: r
|
|
@@ -29,12 +29,12 @@ function u(e, t) {
|
|
|
29
29
|
function d(e, t) {
|
|
30
30
|
return l(e, this, c, t.cache.create(), t.serializer);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ee(e, t) {
|
|
33
33
|
return l(e, this, s, t.cache.create(), t.serializer);
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var te = function() {
|
|
36
36
|
return JSON.stringify(arguments);
|
|
37
|
-
},
|
|
37
|
+
}, ne = class {
|
|
38
38
|
constructor() {
|
|
39
39
|
this.cache = Object.create(null);
|
|
40
40
|
}
|
|
@@ -44,15 +44,15 @@ var ee = function() {
|
|
|
44
44
|
set(e, t) {
|
|
45
45
|
this.cache[e] = t;
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
return new
|
|
49
|
-
} },
|
|
47
|
+
}, re = { create: function() {
|
|
48
|
+
return new ne();
|
|
49
|
+
} }, f = {
|
|
50
50
|
variadic: d,
|
|
51
|
-
monadic:
|
|
52
|
-
},
|
|
53
|
-
function
|
|
51
|
+
monadic: ee
|
|
52
|
+
}, ie = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
53
|
+
function ae(e) {
|
|
54
54
|
let t = {};
|
|
55
|
-
return e.replace(
|
|
55
|
+
return e.replace(ie, (e) => {
|
|
56
56
|
let n = e.length;
|
|
57
57
|
switch (e[0]) {
|
|
58
58
|
case "G":
|
|
@@ -147,10 +147,10 @@ function ie(e) {
|
|
|
147
147
|
return "";
|
|
148
148
|
}), t;
|
|
149
149
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
150
|
+
var oe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
151
|
+
function se(e) {
|
|
152
152
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
153
|
-
let t = e.split(
|
|
153
|
+
let t = e.split(oe).filter((e) => e.length > 0), n = [];
|
|
154
154
|
for (let e of t) {
|
|
155
155
|
let t = e.split("/");
|
|
156
156
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -163,17 +163,17 @@ function oe(e) {
|
|
|
163
163
|
}
|
|
164
164
|
return n;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ce(e) {
|
|
167
167
|
return e.replace(/^(.*?)-/, "");
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
function
|
|
169
|
+
var p = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, m = /^(@+)?(\+|#+)?[rs]?$/g, le = /(\*)(0+)|(#+)(0+)|(0+)/g, h = /^(0+)$/;
|
|
170
|
+
function g(e) {
|
|
171
171
|
let t = {};
|
|
172
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
172
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(m, function(e, n, r) {
|
|
173
173
|
return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
|
|
174
174
|
}), t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function _(e) {
|
|
177
177
|
switch (e) {
|
|
178
178
|
case "sign-auto": return { signDisplay: "auto" };
|
|
179
179
|
case "sign-accounting":
|
|
@@ -196,19 +196,19 @@ function v(e) {
|
|
|
196
196
|
case "+_": return { signDisplay: "never" };
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ue(e) {
|
|
200
200
|
let t;
|
|
201
201
|
if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
|
|
202
202
|
let n = e.slice(0, 2);
|
|
203
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
203
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !h.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
204
204
|
t.minimumIntegerDigits = e.length;
|
|
205
205
|
}
|
|
206
206
|
return t;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function v(e) {
|
|
209
|
+
return _(e) || {};
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function y(e) {
|
|
212
212
|
let t = {};
|
|
213
213
|
for (let n of e) {
|
|
214
214
|
switch (n.stem) {
|
|
@@ -232,7 +232,7 @@ function ue(e) {
|
|
|
232
232
|
continue;
|
|
233
233
|
case "measure-unit":
|
|
234
234
|
case "unit":
|
|
235
|
-
t.style = "unit", t.unit =
|
|
235
|
+
t.style = "unit", t.unit = ce(n.options[0]);
|
|
236
236
|
continue;
|
|
237
237
|
case "compact-short":
|
|
238
238
|
case "K":
|
|
@@ -248,7 +248,7 @@ function ue(e) {
|
|
|
248
248
|
notation: "scientific",
|
|
249
249
|
...n.options.reduce((e, t) => ({
|
|
250
250
|
...e,
|
|
251
|
-
...
|
|
251
|
+
...v(t)
|
|
252
252
|
}), {})
|
|
253
253
|
};
|
|
254
254
|
continue;
|
|
@@ -258,7 +258,7 @@ function ue(e) {
|
|
|
258
258
|
notation: "engineering",
|
|
259
259
|
...n.options.reduce((e, t) => ({
|
|
260
260
|
...e,
|
|
261
|
-
...
|
|
261
|
+
...v(t)
|
|
262
262
|
}), {})
|
|
263
263
|
};
|
|
264
264
|
continue;
|
|
@@ -303,7 +303,7 @@ function ue(e) {
|
|
|
303
303
|
continue;
|
|
304
304
|
case "integer-width":
|
|
305
305
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
306
|
-
n.options[0].replace(
|
|
306
|
+
n.options[0].replace(le, function(e, n, r, i, a, o) {
|
|
307
307
|
if (n) t.minimumIntegerDigits = r.length;
|
|
308
308
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
309
309
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -311,13 +311,13 @@ function ue(e) {
|
|
|
311
311
|
});
|
|
312
312
|
continue;
|
|
313
313
|
}
|
|
314
|
-
if (
|
|
314
|
+
if (h.test(n.stem)) {
|
|
315
315
|
t.minimumIntegerDigits = n.stem.length;
|
|
316
316
|
continue;
|
|
317
317
|
}
|
|
318
|
-
if (
|
|
318
|
+
if (p.test(n.stem)) {
|
|
319
319
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
320
|
-
n.stem.replace(
|
|
320
|
+
n.stem.replace(p, function(e, n, r, i, a, o) {
|
|
321
321
|
return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
|
|
322
322
|
});
|
|
323
323
|
let e = n.options[0];
|
|
@@ -326,23 +326,23 @@ function ue(e) {
|
|
|
326
326
|
trailingZeroDisplay: "stripIfInteger"
|
|
327
327
|
} : e && (t = {
|
|
328
328
|
...t,
|
|
329
|
-
...
|
|
329
|
+
...g(e)
|
|
330
330
|
});
|
|
331
331
|
continue;
|
|
332
332
|
}
|
|
333
|
-
if (
|
|
333
|
+
if (m.test(n.stem)) {
|
|
334
334
|
t = {
|
|
335
335
|
...t,
|
|
336
|
-
...
|
|
336
|
+
...g(n.stem)
|
|
337
337
|
};
|
|
338
338
|
continue;
|
|
339
339
|
}
|
|
340
|
-
let e =
|
|
340
|
+
let e = _(n.stem);
|
|
341
341
|
e && (t = {
|
|
342
342
|
...t,
|
|
343
343
|
...e
|
|
344
344
|
});
|
|
345
|
-
let r =
|
|
345
|
+
let r = ue(n.stem);
|
|
346
346
|
r && (t = {
|
|
347
347
|
...t,
|
|
348
348
|
...r
|
|
@@ -352,13 +352,13 @@ function ue(e) {
|
|
|
352
352
|
}
|
|
353
353
|
//#endregion
|
|
354
354
|
//#region ../../node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
355
|
-
var
|
|
355
|
+
var b = /* @__PURE__ */ function(e) {
|
|
356
356
|
return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
|
|
357
357
|
}({});
|
|
358
|
-
function
|
|
358
|
+
function x(e) {
|
|
359
359
|
return e.type === 0;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function de(e) {
|
|
362
362
|
return e.type === 1;
|
|
363
363
|
}
|
|
364
364
|
function S(e) {
|
|
@@ -1551,21 +1551,21 @@ var A = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, j = {
|
|
|
1551
1551
|
"h"
|
|
1552
1552
|
]
|
|
1553
1553
|
};
|
|
1554
|
-
function
|
|
1554
|
+
function pe(e, t) {
|
|
1555
1555
|
let n = "";
|
|
1556
1556
|
for (let r = 0; r < e.length; r++) {
|
|
1557
1557
|
let i = e.charAt(r);
|
|
1558
1558
|
if (i === "j") {
|
|
1559
1559
|
let a = 0;
|
|
1560
1560
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
1561
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
1561
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = M(t);
|
|
1562
1562
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
1563
1563
|
for (; o-- > 0;) n = c + n;
|
|
1564
1564
|
} else i === "J" ? n += "H" : n += i;
|
|
1565
1565
|
}
|
|
1566
1566
|
return n;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function M(e) {
|
|
1569
1569
|
let t = e.hourCycle;
|
|
1570
1570
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
1571
1571
|
case "h24": return "k";
|
|
@@ -1577,30 +1577,30 @@ function N(e) {
|
|
|
1577
1577
|
let n = e.language, r;
|
|
1578
1578
|
return n !== "root" && (r = e.maximize().region), (j[r || ""] || j[n || ""] || j[`${n}-001`] || j["001"])[0];
|
|
1579
1579
|
}
|
|
1580
|
-
var
|
|
1581
|
-
function
|
|
1580
|
+
var N = RegExp(`^${A.source}*`), P = RegExp(`${A.source}*$`);
|
|
1581
|
+
function F(e, t) {
|
|
1582
1582
|
return {
|
|
1583
1583
|
start: e,
|
|
1584
1584
|
end: t
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
var
|
|
1587
|
+
var I = !!Object.fromEntries, L = !!String.prototype.trimStart, R = !!String.prototype.trimEnd, z = I ? Object.fromEntries : function(e) {
|
|
1588
1588
|
let t = {};
|
|
1589
1589
|
for (let [n, r] of e) t[n] = r;
|
|
1590
1590
|
return t;
|
|
1591
|
-
},
|
|
1591
|
+
}, B = L ? function(e) {
|
|
1592
1592
|
return e.trimStart();
|
|
1593
1593
|
} : function(e) {
|
|
1594
|
-
return e.replace(
|
|
1595
|
-
},
|
|
1594
|
+
return e.replace(N, "");
|
|
1595
|
+
}, me = R ? function(e) {
|
|
1596
1596
|
return e.trimEnd();
|
|
1597
1597
|
} : function(e) {
|
|
1598
|
-
return e.replace(
|
|
1599
|
-
},
|
|
1600
|
-
function
|
|
1601
|
-
return
|
|
1598
|
+
return e.replace(P, "");
|
|
1599
|
+
}, V = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
1600
|
+
function he(e, t) {
|
|
1601
|
+
return V.lastIndex = t, V.exec(e)[1] ?? "";
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function ge(e) {
|
|
1604
1604
|
if (e.length === 0) return null;
|
|
1605
1605
|
let t = 1, n = 1;
|
|
1606
1606
|
for (let r = 0; r < e.length;) {
|
|
@@ -1624,7 +1624,7 @@ function he(e) {
|
|
|
1624
1624
|
column: n
|
|
1625
1625
|
};
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1627
|
+
var _e = class {
|
|
1628
1628
|
constructor(e, t = {}) {
|
|
1629
1629
|
this.message = e, this.position = {
|
|
1630
1630
|
offset: 0,
|
|
@@ -1637,14 +1637,14 @@ var ge = class {
|
|
|
1637
1637
|
if (this.message.length > 0) {
|
|
1638
1638
|
let e = this.message.charCodeAt(0);
|
|
1639
1639
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
1640
|
-
let e =
|
|
1640
|
+
let e = ge(this.message);
|
|
1641
1641
|
if (e) {
|
|
1642
1642
|
let t = this.clonePosition();
|
|
1643
1643
|
return this.position = e, {
|
|
1644
1644
|
val: [{
|
|
1645
1645
|
type: 0,
|
|
1646
1646
|
value: this.message,
|
|
1647
|
-
location:
|
|
1647
|
+
location: F(t, this.clonePosition())
|
|
1648
1648
|
}],
|
|
1649
1649
|
err: null
|
|
1650
1650
|
};
|
|
@@ -1666,12 +1666,12 @@ var ge = class {
|
|
|
1666
1666
|
let e = this.clonePosition();
|
|
1667
1667
|
this.bump(), r.push({
|
|
1668
1668
|
type: 7,
|
|
1669
|
-
location:
|
|
1669
|
+
location: F(e, this.clonePosition())
|
|
1670
1670
|
});
|
|
1671
1671
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
1672
1672
|
if (n) break;
|
|
1673
|
-
return this.error(26,
|
|
1674
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
1673
|
+
return this.error(26, F(this.clonePosition(), this.clonePosition()));
|
|
1674
|
+
} else if (i === 60 && !this.ignoreTag && H(this.peek() || 0)) {
|
|
1675
1675
|
let n = this.parseTag(e, t);
|
|
1676
1676
|
if (n.err) return n;
|
|
1677
1677
|
r.push(n.val);
|
|
@@ -1694,7 +1694,7 @@ var ge = class {
|
|
|
1694
1694
|
val: {
|
|
1695
1695
|
type: 0,
|
|
1696
1696
|
value: `<${r}/>`,
|
|
1697
|
-
location:
|
|
1697
|
+
location: F(n, this.clonePosition())
|
|
1698
1698
|
},
|
|
1699
1699
|
err: null
|
|
1700
1700
|
};
|
|
@@ -1703,23 +1703,23 @@ var ge = class {
|
|
|
1703
1703
|
if (i.err) return i;
|
|
1704
1704
|
let a = i.val, o = this.clonePosition();
|
|
1705
1705
|
if (this.bumpIf("</")) {
|
|
1706
|
-
if (this.isEOF() || !
|
|
1706
|
+
if (this.isEOF() || !H(this.char())) return this.error(23, F(o, this.clonePosition()));
|
|
1707
1707
|
let e = this.clonePosition();
|
|
1708
1708
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
1709
1709
|
val: {
|
|
1710
1710
|
type: 8,
|
|
1711
1711
|
value: r,
|
|
1712
1712
|
children: a,
|
|
1713
|
-
location:
|
|
1713
|
+
location: F(n, this.clonePosition())
|
|
1714
1714
|
},
|
|
1715
1715
|
err: null
|
|
1716
|
-
} : this.error(23,
|
|
1717
|
-
} else return this.error(27,
|
|
1718
|
-
} else return this.error(23,
|
|
1716
|
+
} : this.error(23, F(o, this.clonePosition()))) : this.error(26, F(e, this.clonePosition()));
|
|
1717
|
+
} else return this.error(27, F(n, this.clonePosition()));
|
|
1718
|
+
} else return this.error(23, F(n, this.clonePosition()));
|
|
1719
1719
|
}
|
|
1720
1720
|
parseTagName() {
|
|
1721
1721
|
let e = this.offset();
|
|
1722
|
-
for (this.bump(); !this.isEOF() &&
|
|
1722
|
+
for (this.bump(); !this.isEOF() && ye(this.char());) this.bump();
|
|
1723
1723
|
return this.message.slice(e, this.offset());
|
|
1724
1724
|
}
|
|
1725
1725
|
parseLiteral(e, t) {
|
|
@@ -1742,7 +1742,7 @@ var ge = class {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
break;
|
|
1744
1744
|
}
|
|
1745
|
-
let i =
|
|
1745
|
+
let i = F(n, this.clonePosition());
|
|
1746
1746
|
return {
|
|
1747
1747
|
val: {
|
|
1748
1748
|
type: 0,
|
|
@@ -1753,7 +1753,7 @@ var ge = class {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
}
|
|
1755
1755
|
tryParseLeftAngleBracket() {
|
|
1756
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
1756
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !ve(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
1757
1757
|
}
|
|
1758
1758
|
tryParseQuote(e) {
|
|
1759
1759
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -1789,35 +1789,35 @@ var ge = class {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
parseArgument(e, t) {
|
|
1791
1791
|
let n = this.clonePosition();
|
|
1792
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
1793
|
-
if (this.char() === 125) return this.bump(), this.error(2,
|
|
1792
|
+
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, F(n, this.clonePosition()));
|
|
1793
|
+
if (this.char() === 125) return this.bump(), this.error(2, F(n, this.clonePosition()));
|
|
1794
1794
|
let r = this.parseIdentifierIfPossible().value;
|
|
1795
|
-
if (!r) return this.error(3,
|
|
1796
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
1795
|
+
if (!r) return this.error(3, F(n, this.clonePosition()));
|
|
1796
|
+
if (this.bumpSpace(), this.isEOF()) return this.error(1, F(n, this.clonePosition()));
|
|
1797
1797
|
switch (this.char()) {
|
|
1798
1798
|
case 125: return this.bump(), {
|
|
1799
1799
|
val: {
|
|
1800
1800
|
type: 1,
|
|
1801
1801
|
value: r,
|
|
1802
|
-
location:
|
|
1802
|
+
location: F(n, this.clonePosition())
|
|
1803
1803
|
},
|
|
1804
1804
|
err: null
|
|
1805
1805
|
};
|
|
1806
|
-
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1,
|
|
1807
|
-
default: return this.error(3,
|
|
1806
|
+
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, F(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
|
|
1807
|
+
default: return this.error(3, F(n, this.clonePosition()));
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
parseIdentifierIfPossible() {
|
|
1811
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
1811
|
+
let e = this.clonePosition(), t = this.offset(), n = he(this.message, t), r = t + n.length;
|
|
1812
1812
|
return this.bumpTo(r), {
|
|
1813
1813
|
value: n,
|
|
1814
|
-
location:
|
|
1814
|
+
location: F(e, this.clonePosition())
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
1817
|
parseArgumentOptions(e, t, n, r) {
|
|
1818
1818
|
let i = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
1819
1819
|
switch (a) {
|
|
1820
|
-
case "": return this.error(4,
|
|
1820
|
+
case "": return this.error(4, F(i, o));
|
|
1821
1821
|
case "number":
|
|
1822
1822
|
case "date":
|
|
1823
1823
|
case "time": {
|
|
@@ -1827,18 +1827,18 @@ var ge = class {
|
|
|
1827
1827
|
this.bumpSpace();
|
|
1828
1828
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
1829
1829
|
if (n.err) return n;
|
|
1830
|
-
let r =
|
|
1831
|
-
if (r.length === 0) return this.error(6,
|
|
1830
|
+
let r = me(n.val);
|
|
1831
|
+
if (r.length === 0) return this.error(6, F(this.clonePosition(), this.clonePosition()));
|
|
1832
1832
|
e = {
|
|
1833
1833
|
style: r,
|
|
1834
|
-
styleLocation:
|
|
1834
|
+
styleLocation: F(t, this.clonePosition())
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
1837
|
let t = this.tryParseArgumentClose(r);
|
|
1838
1838
|
if (t.err) return t;
|
|
1839
|
-
let i =
|
|
1839
|
+
let i = F(r, this.clonePosition());
|
|
1840
1840
|
if (e && e.style.startsWith("::")) {
|
|
1841
|
-
let t =
|
|
1841
|
+
let t = B(e.style.slice(2));
|
|
1842
1842
|
if (a === "number") {
|
|
1843
1843
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
1844
1844
|
return r.err ? r : {
|
|
@@ -1853,12 +1853,12 @@ var ge = class {
|
|
|
1853
1853
|
} else {
|
|
1854
1854
|
if (t.length === 0) return this.error(10, i);
|
|
1855
1855
|
let r = t;
|
|
1856
|
-
this.locale && (r =
|
|
1856
|
+
this.locale && (r = pe(t, this.locale));
|
|
1857
1857
|
let o = {
|
|
1858
1858
|
type: 1,
|
|
1859
1859
|
pattern: r,
|
|
1860
1860
|
location: e.styleLocation,
|
|
1861
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
1861
|
+
parsedOptions: this.shouldParseSkeletons ? ae(r) : {}
|
|
1862
1862
|
};
|
|
1863
1863
|
return {
|
|
1864
1864
|
val: {
|
|
@@ -1885,11 +1885,11 @@ var ge = class {
|
|
|
1885
1885
|
case "selectordinal":
|
|
1886
1886
|
case "select": {
|
|
1887
1887
|
let i = this.clonePosition();
|
|
1888
|
-
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12,
|
|
1888
|
+
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12, F(i, { ...i }));
|
|
1889
1889
|
this.bumpSpace();
|
|
1890
1890
|
let o = this.parseIdentifierIfPossible(), s = 0;
|
|
1891
1891
|
if (a !== "select" && o.value === "offset") {
|
|
1892
|
-
if (!this.bumpIf(":")) return this.error(13,
|
|
1892
|
+
if (!this.bumpIf(":")) return this.error(13, F(this.clonePosition(), this.clonePosition()));
|
|
1893
1893
|
this.bumpSpace();
|
|
1894
1894
|
let e = this.tryParseDecimalInteger(13, 14);
|
|
1895
1895
|
if (e.err) return e;
|
|
@@ -1899,12 +1899,12 @@ var ge = class {
|
|
|
1899
1899
|
if (c.err) return c;
|
|
1900
1900
|
let l = this.tryParseArgumentClose(r);
|
|
1901
1901
|
if (l.err) return l;
|
|
1902
|
-
let u =
|
|
1902
|
+
let u = F(r, this.clonePosition());
|
|
1903
1903
|
return a === "select" ? {
|
|
1904
1904
|
val: {
|
|
1905
1905
|
type: 5,
|
|
1906
1906
|
value: n,
|
|
1907
|
-
options:
|
|
1907
|
+
options: z(c.val),
|
|
1908
1908
|
location: u
|
|
1909
1909
|
},
|
|
1910
1910
|
err: null
|
|
@@ -1912,7 +1912,7 @@ var ge = class {
|
|
|
1912
1912
|
val: {
|
|
1913
1913
|
type: 6,
|
|
1914
1914
|
value: n,
|
|
1915
|
-
options:
|
|
1915
|
+
options: z(c.val),
|
|
1916
1916
|
offset: s,
|
|
1917
1917
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
1918
1918
|
location: u
|
|
@@ -1920,11 +1920,11 @@ var ge = class {
|
|
|
1920
1920
|
err: null
|
|
1921
1921
|
};
|
|
1922
1922
|
}
|
|
1923
|
-
default: return this.error(5,
|
|
1923
|
+
default: return this.error(5, F(i, o));
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
tryParseArgumentClose(e) {
|
|
1927
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1,
|
|
1927
|
+
return this.isEOF() || this.char() !== 125 ? this.error(1, F(e, this.clonePosition())) : (this.bump(), {
|
|
1928
1928
|
val: !0,
|
|
1929
1929
|
err: null
|
|
1930
1930
|
});
|
|
@@ -1935,7 +1935,7 @@ var ge = class {
|
|
|
1935
1935
|
case 39: {
|
|
1936
1936
|
this.bump();
|
|
1937
1937
|
let e = this.clonePosition();
|
|
1938
|
-
if (!this.bumpUntil("'")) return this.error(11,
|
|
1938
|
+
if (!this.bumpUntil("'")) return this.error(11, F(e, this.clonePosition()));
|
|
1939
1939
|
this.bump();
|
|
1940
1940
|
break;
|
|
1941
1941
|
}
|
|
@@ -1959,7 +1959,7 @@ var ge = class {
|
|
|
1959
1959
|
parseNumberSkeletonFromString(e, t) {
|
|
1960
1960
|
let n = [];
|
|
1961
1961
|
try {
|
|
1962
|
-
n =
|
|
1962
|
+
n = se(e);
|
|
1963
1963
|
} catch {
|
|
1964
1964
|
return this.error(7, t);
|
|
1965
1965
|
}
|
|
@@ -1968,7 +1968,7 @@ var ge = class {
|
|
|
1968
1968
|
type: 0,
|
|
1969
1969
|
tokens: n,
|
|
1970
1970
|
location: t,
|
|
1971
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
1971
|
+
parsedOptions: this.shouldParseSkeletons ? y(n) : {}
|
|
1972
1972
|
},
|
|
1973
1973
|
err: null
|
|
1974
1974
|
};
|
|
@@ -1981,23 +1981,23 @@ var ge = class {
|
|
|
1981
1981
|
if (t !== "select" && this.bumpIf("=")) {
|
|
1982
1982
|
let t = this.tryParseDecimalInteger(16, 19);
|
|
1983
1983
|
if (t.err) return t;
|
|
1984
|
-
c =
|
|
1984
|
+
c = F(e, this.clonePosition()), s = this.message.slice(e.offset, this.offset());
|
|
1985
1985
|
} else break;
|
|
1986
1986
|
}
|
|
1987
1987
|
if (o.has(s)) return this.error(t === "select" ? 21 : 20, c);
|
|
1988
1988
|
s === "other" && (i = !0), this.bumpSpace();
|
|
1989
1989
|
let r = this.clonePosition();
|
|
1990
|
-
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18,
|
|
1990
|
+
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18, F(this.clonePosition(), this.clonePosition()));
|
|
1991
1991
|
let l = this.parseMessage(e + 1, t, n);
|
|
1992
1992
|
if (l.err) return l;
|
|
1993
1993
|
let u = this.tryParseArgumentClose(r);
|
|
1994
1994
|
if (u.err) return u;
|
|
1995
1995
|
a.push([s, {
|
|
1996
1996
|
value: l.val,
|
|
1997
|
-
location:
|
|
1997
|
+
location: F(r, this.clonePosition())
|
|
1998
1998
|
}]), o.add(s), this.bumpSpace(), {value: s, location: c} = this.parseIdentifierIfPossible();
|
|
1999
1999
|
}
|
|
2000
|
-
return a.length === 0 ? this.error(t === "select" ? 15 : 16,
|
|
2000
|
+
return a.length === 0 ? this.error(t === "select" ? 15 : 16, F(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(22, F(this.clonePosition(), this.clonePosition())) : {
|
|
2001
2001
|
val: a,
|
|
2002
2002
|
err: null
|
|
2003
2003
|
};
|
|
@@ -2011,7 +2011,7 @@ var ge = class {
|
|
|
2011
2011
|
if (e >= 48 && e <= 57) i = !0, a = a * 10 + (e - 48), this.bump();
|
|
2012
2012
|
else break;
|
|
2013
2013
|
}
|
|
2014
|
-
let o =
|
|
2014
|
+
let o = F(r, this.clonePosition());
|
|
2015
2015
|
return i ? (a *= n, Number.isSafeInteger(a) ? {
|
|
2016
2016
|
val: a,
|
|
2017
2017
|
err: null
|
|
@@ -2073,7 +2073,7 @@ var ge = class {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
bumpSpace() {
|
|
2076
|
-
for (; !this.isEOF() &&
|
|
2076
|
+
for (; !this.isEOF() && be(this.char());) this.bump();
|
|
2077
2077
|
}
|
|
2078
2078
|
peek() {
|
|
2079
2079
|
if (this.isEOF()) return null;
|
|
@@ -2081,76 +2081,76 @@ var ge = class {
|
|
|
2081
2081
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
2082
2082
|
}
|
|
2083
2083
|
};
|
|
2084
|
-
function
|
|
2084
|
+
function H(e) {
|
|
2085
2085
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2086
2086
|
}
|
|
2087
|
-
function _e(e) {
|
|
2088
|
-
return U(e) || e === 47;
|
|
2089
|
-
}
|
|
2090
2087
|
function ve(e) {
|
|
2091
|
-
return e
|
|
2088
|
+
return H(e) || e === 47;
|
|
2092
2089
|
}
|
|
2093
2090
|
function ye(e) {
|
|
2091
|
+
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2092
|
+
}
|
|
2093
|
+
function be(e) {
|
|
2094
2094
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function U(e) {
|
|
2097
2097
|
e.forEach((e) => {
|
|
2098
|
-
if (delete e.location, T(e) || E(e)) for (let t in e.options) delete e.options[t].location,
|
|
2099
|
-
else S(e) && O(e.style) || (C(e) || w(e)) && k(e.style) ? delete e.style.location : D(e) &&
|
|
2098
|
+
if (delete e.location, T(e) || E(e)) for (let t in e.options) delete e.options[t].location, U(e.options[t].value);
|
|
2099
|
+
else S(e) && O(e.style) || (C(e) || w(e)) && k(e.style) ? delete e.style.location : D(e) && U(e.children);
|
|
2100
2100
|
});
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function xe(e, t = {}) {
|
|
2103
2103
|
t = {
|
|
2104
2104
|
shouldParseSkeletons: !0,
|
|
2105
2105
|
requiresOtherClause: !0,
|
|
2106
2106
|
...t
|
|
2107
2107
|
};
|
|
2108
|
-
let n = new
|
|
2108
|
+
let n = new _e(e, t).parse();
|
|
2109
2109
|
if (n.err) {
|
|
2110
|
-
let e = SyntaxError(
|
|
2110
|
+
let e = SyntaxError(b[n.err.kind]);
|
|
2111
2111
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
2112
2112
|
}
|
|
2113
|
-
return t?.captureLocation ||
|
|
2113
|
+
return t?.captureLocation || U(n.val), n.val;
|
|
2114
2114
|
}
|
|
2115
2115
|
//#endregion
|
|
2116
2116
|
//#region ../../node_modules/intl-messageformat/index.js
|
|
2117
|
-
var
|
|
2117
|
+
var W = class extends Error {
|
|
2118
2118
|
constructor(e, t, n) {
|
|
2119
2119
|
super(e), this.code = t, this.originalMessage = n;
|
|
2120
2120
|
}
|
|
2121
2121
|
toString() {
|
|
2122
2122
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
2123
2123
|
}
|
|
2124
|
-
},
|
|
2124
|
+
}, G = class extends W {
|
|
2125
2125
|
constructor(e, t, n, r) {
|
|
2126
2126
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
2127
2127
|
}
|
|
2128
|
-
},
|
|
2128
|
+
}, Se = class extends W {
|
|
2129
2129
|
constructor(e, t, n) {
|
|
2130
2130
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
2131
2131
|
}
|
|
2132
|
-
},
|
|
2132
|
+
}, Ce = class extends W {
|
|
2133
2133
|
constructor(e, t) {
|
|
2134
2134
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
2135
2135
|
}
|
|
2136
2136
|
};
|
|
2137
|
-
function
|
|
2137
|
+
function we(e) {
|
|
2138
2138
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
2139
2139
|
let n = e[e.length - 1];
|
|
2140
2140
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
2141
2141
|
}, []);
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function Te(e) {
|
|
2144
2144
|
return typeof e == "function";
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2147
|
-
if (e.length === 1 &&
|
|
2146
|
+
function K(e, t, n, r, i, a, o) {
|
|
2147
|
+
if (e.length === 1 && x(e[0])) return [{
|
|
2148
2148
|
type: 0,
|
|
2149
2149
|
value: e[0].value
|
|
2150
2150
|
}];
|
|
2151
2151
|
let s = [];
|
|
2152
2152
|
for (let c of e) {
|
|
2153
|
-
if (
|
|
2153
|
+
if (x(c)) {
|
|
2154
2154
|
s.push({
|
|
2155
2155
|
type: 0,
|
|
2156
2156
|
value: c.value
|
|
@@ -2165,9 +2165,9 @@ function q(e, t, n, r, i, a, o) {
|
|
|
2165
2165
|
continue;
|
|
2166
2166
|
}
|
|
2167
2167
|
let { value: e } = c;
|
|
2168
|
-
if (!(i && e in i)) throw new
|
|
2168
|
+
if (!(i && e in i)) throw new Ce(e, o);
|
|
2169
2169
|
let l = i[e];
|
|
2170
|
-
if (
|
|
2170
|
+
if (de(c)) {
|
|
2171
2171
|
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
2172
2172
|
type: typeof l == "string" ? 0 : 1,
|
|
2173
2173
|
value: l
|
|
@@ -2207,8 +2207,8 @@ function q(e, t, n, r, i, a, o) {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
if (D(c)) {
|
|
2209
2209
|
let { children: e, value: l } = c, u = i[l];
|
|
2210
|
-
if (!
|
|
2211
|
-
let d = u(
|
|
2210
|
+
if (!Te(u)) throw new Se(l, "function", o);
|
|
2211
|
+
let d = u(K(e, t, n, r, i, a).map((e) => e.value));
|
|
2212
2212
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
2213
2213
|
type: typeof e == "string" ? 0 : 1,
|
|
2214
2214
|
value: e
|
|
@@ -2216,26 +2216,26 @@ function q(e, t, n, r, i, a, o) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
if (T(c)) {
|
|
2218
2218
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
2219
|
-
if (!a) throw new
|
|
2220
|
-
s.push(...
|
|
2219
|
+
if (!a) throw new G(c.value, l, Object.keys(c.options), o);
|
|
2220
|
+
s.push(...K(a.value, t, n, r, i));
|
|
2221
2221
|
continue;
|
|
2222
2222
|
}
|
|
2223
2223
|
if (E(c)) {
|
|
2224
2224
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
2225
2225
|
if (!a) {
|
|
2226
|
-
if (!Intl.PluralRules) throw new
|
|
2226
|
+
if (!Intl.PluralRules) throw new W("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
2227
2227
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
2228
2228
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
2229
2229
|
}
|
|
2230
|
-
if (!a) throw new
|
|
2230
|
+
if (!a) throw new G(c.value, l, Object.keys(c.options), o);
|
|
2231
2231
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
2232
|
-
s.push(...
|
|
2232
|
+
s.push(...K(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
2233
2233
|
continue;
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
return
|
|
2236
|
+
return we(s);
|
|
2237
2237
|
}
|
|
2238
|
-
function
|
|
2238
|
+
function Ee(e, t) {
|
|
2239
2239
|
return t ? {
|
|
2240
2240
|
...e,
|
|
2241
2241
|
...t,
|
|
@@ -2245,10 +2245,10 @@ function Te(e, t) {
|
|
|
2245
2245
|
}, n), {})
|
|
2246
2246
|
} : e;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2249
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
2248
|
+
function De(e, t) {
|
|
2249
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = Ee(e[r], t[r]), n), { ...e }) : e;
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function q(e) {
|
|
2252
2252
|
return { create() {
|
|
2253
2253
|
return {
|
|
2254
2254
|
get(t) {
|
|
@@ -2260,27 +2260,27 @@ function J(e) {
|
|
|
2260
2260
|
};
|
|
2261
2261
|
} };
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function Oe(e = {
|
|
2264
2264
|
number: {},
|
|
2265
2265
|
dateTime: {},
|
|
2266
2266
|
pluralRules: {}
|
|
2267
2267
|
}) {
|
|
2268
2268
|
return {
|
|
2269
2269
|
getNumberFormat: a((...e) => new Intl.NumberFormat(...e), {
|
|
2270
|
-
cache:
|
|
2271
|
-
strategy:
|
|
2270
|
+
cache: q(e.number),
|
|
2271
|
+
strategy: f.variadic
|
|
2272
2272
|
}),
|
|
2273
2273
|
getDateTimeFormat: a((...e) => new Intl.DateTimeFormat(...e), {
|
|
2274
|
-
cache:
|
|
2275
|
-
strategy:
|
|
2274
|
+
cache: q(e.dateTime),
|
|
2275
|
+
strategy: f.variadic
|
|
2276
2276
|
}),
|
|
2277
2277
|
getPluralRules: a((...e) => new Intl.PluralRules(...e), {
|
|
2278
|
-
cache:
|
|
2279
|
-
strategy:
|
|
2278
|
+
cache: q(e.pluralRules),
|
|
2279
|
+
strategy: f.variadic
|
|
2280
2280
|
})
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
|
-
var
|
|
2283
|
+
var ke = class e {
|
|
2284
2284
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
2285
2285
|
if (this.formatterCache = {
|
|
2286
2286
|
number: {},
|
|
@@ -2291,7 +2291,7 @@ var Oe = class e {
|
|
|
2291
2291
|
if (t.length === 1) return t[0].value;
|
|
2292
2292
|
let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
|
|
2293
2293
|
return n.length <= 1 ? n[0] || "" : n;
|
|
2294
|
-
}, this.formatToParts = (e) =>
|
|
2294
|
+
}, this.formatToParts = (e) => K(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
2295
2295
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2296
2296
|
let { ...n } = i || {};
|
|
2297
2297
|
this.ast = e.__parse(t, {
|
|
@@ -2300,7 +2300,7 @@ var Oe = class e {
|
|
|
2300
2300
|
});
|
|
2301
2301
|
} else this.ast = t;
|
|
2302
2302
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
2303
|
-
this.formats =
|
|
2303
|
+
this.formats = De(e.formats, r), this.formatters = i && i.formatters || Oe(this.formatterCache);
|
|
2304
2304
|
}
|
|
2305
2305
|
static {
|
|
2306
2306
|
this.memoizedDefaultLocale = null;
|
|
@@ -2316,7 +2316,7 @@ var Oe = class e {
|
|
|
2316
2316
|
};
|
|
2317
2317
|
}
|
|
2318
2318
|
static {
|
|
2319
|
-
this.__parse =
|
|
2319
|
+
this.__parse = xe;
|
|
2320
2320
|
}
|
|
2321
2321
|
static {
|
|
2322
2322
|
this.formats = {
|
|
@@ -2373,38 +2373,50 @@ var Oe = class e {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
|
-
}
|
|
2376
|
+
};
|
|
2377
|
+
//#endregion
|
|
2378
|
+
//#region lib/lib/is-production.ts
|
|
2379
|
+
function J() {
|
|
2380
|
+
try {
|
|
2381
|
+
return process.env.NODE_ENV === "production";
|
|
2382
|
+
} catch {
|
|
2383
|
+
return !1;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
//#endregion
|
|
2387
|
+
//#region lib/i18n/format-message.ts
|
|
2388
|
+
var Ae = 500, Y = /* @__PURE__ */ new Map();
|
|
2377
2389
|
function X(e, t) {
|
|
2378
2390
|
let n = `${t}\u0000${e}`, r = Y.get(n);
|
|
2379
|
-
return r || (r = new
|
|
2391
|
+
return r || (r = new ke(e, t), Y.size >= Ae && Y.clear(), Y.set(n, r)), r;
|
|
2380
2392
|
}
|
|
2381
|
-
function
|
|
2393
|
+
function je(e, t, n) {
|
|
2382
2394
|
try {
|
|
2383
2395
|
return X(e, t).format(n);
|
|
2384
2396
|
} catch (t) {
|
|
2385
2397
|
return console.error(t), e;
|
|
2386
2398
|
}
|
|
2387
2399
|
}
|
|
2388
|
-
var
|
|
2389
|
-
function
|
|
2400
|
+
var Me = () => !J();
|
|
2401
|
+
function Z(e, t, n) {
|
|
2390
2402
|
if (!n && !e.includes("{")) return e;
|
|
2391
2403
|
try {
|
|
2392
2404
|
return X(e, t).format(n);
|
|
2393
2405
|
} catch (t) {
|
|
2394
|
-
return
|
|
2406
|
+
return Me() && console.warn(`[@nxgt/material-vue] Could not format the fallback "${e}":`, t), e;
|
|
2395
2407
|
}
|
|
2396
2408
|
}
|
|
2397
2409
|
//#endregion
|
|
2398
2410
|
//#region lib/i18n/translator.ts
|
|
2399
|
-
function
|
|
2411
|
+
function Q() {
|
|
2400
2412
|
return r(n, "en", t);
|
|
2401
2413
|
}
|
|
2402
|
-
function
|
|
2414
|
+
function $(e = {}, t = Q) {
|
|
2403
2415
|
return (n, r = void 0, a = t) => {
|
|
2404
2416
|
let o = typeof a == "function" ? a() : a;
|
|
2405
|
-
return
|
|
2417
|
+
return je(i(e[o], n) ?? n, o, r);
|
|
2406
2418
|
};
|
|
2407
2419
|
}
|
|
2408
|
-
var
|
|
2420
|
+
var Ne = $(e);
|
|
2409
2421
|
//#endregion
|
|
2410
|
-
export {
|
|
2422
|
+
export { J as a, Z as i, Q as n, Ne as r, $ as t };
|