@stll/folio-vue 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FindReplaceDialog-DEWjhuOw.js → FindReplaceDialog-BzbnMjiN.js} +1 -1
- package/dist/{FindReplaceDialog-CfcTl2Ra.cjs → FindReplaceDialog-CCb4Yi5f.cjs} +1 -1
- package/dist/{HorizontalRuler-Cuk0l4Us.cjs → HorizontalRuler-CoPJ4Lmf.cjs} +1 -1
- package/dist/{HorizontalRuler-TM9dg--R.js → HorizontalRuler-Ya0NQqx3.js} +1 -1
- package/dist/{HyperlinkDialog-BEse_y7R.js → HyperlinkDialog-BguOrehQ.js} +1 -1
- package/dist/{HyperlinkDialog-Cs1y6aol.cjs → HyperlinkDialog-CDSxSFvj.cjs} +1 -1
- package/dist/{ImagePropertiesDialog-mrJ8S3sl.js → ImagePropertiesDialog-1ILEgbl3.js} +1 -1
- package/dist/{ImagePropertiesDialog-CTbX2GrE.cjs → ImagePropertiesDialog-D_LmgAfL.cjs} +1 -1
- package/dist/{ImageSelectionOverlay-Dr0lg9WZ.cjs → ImageSelectionOverlay-B4Wv2QHk.cjs} +1 -1
- package/dist/{ImageSelectionOverlay-DULrvfOJ.js → ImageSelectionOverlay-BNwMBeYP.js} +1 -1
- package/dist/{InsertSymbolDialog-BjB-Q9EO.js → InsertSymbolDialog-B7-kknus.js} +1 -1
- package/dist/{InsertSymbolDialog-BsjgPYM-.cjs → InsertSymbolDialog-jfgojslX.cjs} +1 -1
- package/dist/{PageSetupDialog-DNNSezj3.js → PageSetupDialog-BC7bN_yo.js} +1 -1
- package/dist/{PageSetupDialog-CZ5fE9rz.cjs → PageSetupDialog-DAtIl9D_.cjs} +1 -1
- package/dist/{SetNumberingValueDialog-CwLHfO7f.js → SetNumberingValueDialog-DUJzE0l3.js} +1 -1
- package/dist/{SetNumberingValueDialog-ClCYr37D.cjs → SetNumberingValueDialog-XHMLKpRf.cjs} +1 -1
- package/dist/{SplitCellDialog-Bfuo5WCO.cjs → SplitCellDialog-EJ_09cM4.cjs} +1 -1
- package/dist/{SplitCellDialog-HIg4ZEqt.js → SplitCellDialog-dc5KoFhn.js} +1 -1
- package/dist/{StylePicker-F3cLPvRE.js → StylePicker-BBvLDSJP.js} +1 -1
- package/dist/{StylePicker-BnGGlXOX.cjs → StylePicker-DJidbDMg.cjs} +1 -1
- package/dist/{TablePropertiesDialog-ClJSuB0F.cjs → TablePropertiesDialog-BqDEDExN.cjs} +1 -1
- package/dist/{TablePropertiesDialog-CRX9Xgdr.js → TablePropertiesDialog-CxwsN5hC.js} +1 -1
- package/dist/{VerticalRuler-D973NTMv.js → VerticalRuler-BavScWGg.js} +1 -1
- package/dist/{VerticalRuler-DVi2P_TO.cjs → VerticalRuler-BcdGrbbo.cjs} +1 -1
- package/dist/{WatermarkDialog-BYyBTlDK.cjs → WatermarkDialog-CWUNUrfl.cjs} +1 -1
- package/dist/{WatermarkDialog-BoAdQ-qK.js → WatermarkDialog-H9jTrFRd.js} +1 -1
- package/dist/components/DocxEditor/types.d.ts +8 -0
- package/dist/composables/useDocxEditor.d.ts +3 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +8 -8
- package/dist/{folio-ui-ctJdVP-s.js → folio-ui-D5Gq10SE.js} +267 -271
- package/dist/{folio-ui-u7h3WXUO.cjs → folio-ui-DyqCUkAf.cjs} +1 -1
- package/dist/folio-vue.css +1 -1
- package/dist/i18n/index.d.ts +1 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +320 -321
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +12 -12
- package/dist/{useZoom-BmnLgNs0.js → useZoom-DknlzjRk.js} +381 -380
- package/dist/useZoom-DpnXZInU.cjs +1 -0
- package/package.json +2 -2
- package/dist/useZoom-Dbw8AiOs.cjs +0 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, onServerPrefetch as _, openBlock as v, provide as y, ref as b, renderList as x, renderSlot as S, shallowRef as C, toDisplayString as w, toValue as T, unref as E, vModelText as ee, watch as D, withCtx as O, withDirectives as te, withKeys as ne, withModifiers as k } from "vue";
|
|
2
2
|
import { getLoadedFolioMessages as A, loadFolioMessages as j } from "@stll/folio-core/i18n/loadMessages";
|
|
3
3
|
import { messages as M } from "@stll/folio-core/i18n/messages/en";
|
|
4
|
-
import { generateThemeTintShadeMatrix as re, resolveColor as
|
|
5
|
-
import { sliceText as
|
|
4
|
+
import { generateThemeTintShadeMatrix as re, resolveColor as ie, resolveColorToHex as ae, resolveHighlightColor as N } from "@stll/folio-core/utils/colorResolver";
|
|
5
|
+
import { sliceText as P } from "@stll/folio-core/utils/sliceText";
|
|
6
6
|
// \0rolldown/runtime.js
|
|
7
|
-
var
|
|
7
|
+
var F = Object.defineProperty, I = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), oe = (e, t) => {
|
|
8
8
|
let n = {};
|
|
9
|
-
for (var r in e)
|
|
9
|
+
for (var r in e) F(n, r, {
|
|
10
10
|
get: e[r],
|
|
11
11
|
enumerable: !0
|
|
12
12
|
});
|
|
13
|
-
return t ||
|
|
13
|
+
return t || F(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
14
|
};
|
|
15
15
|
// ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-665cb7fbcabcfafa/node_modules/@formatjs/fast-memoize/index.js
|
|
16
|
-
function
|
|
17
|
-
let n = t && t.cache ? t.cache :
|
|
18
|
-
return (t && t.strategy ? t.strategy :
|
|
16
|
+
function L(e, t) {
|
|
17
|
+
let n = t && t.cache ? t.cache : de, r = t && t.serializer ? t.serializer : H;
|
|
18
|
+
return (t && t.strategy ? t.strategy : se)(e, {
|
|
19
19
|
cache: n,
|
|
20
20
|
serializer: r
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function R(e) {
|
|
24
24
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
let i =
|
|
26
|
+
function z(e, t, n, r) {
|
|
27
|
+
let i = R(r) ? r : n(r), a = t.get(i);
|
|
28
28
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function B(e, t, n) {
|
|
31
31
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
32
32
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function V(e, t, n, r, i) {
|
|
35
35
|
return n.bind(t, e, r, i);
|
|
36
36
|
}
|
|
37
|
-
function oe(e, t) {
|
|
38
|
-
let n = e.length === 1 ? B : V;
|
|
39
|
-
return H(e, this, n, t.cache.create(), t.serializer);
|
|
40
|
-
}
|
|
41
37
|
function se(e, t) {
|
|
42
|
-
|
|
38
|
+
let n = e.length === 1 ? z : B;
|
|
39
|
+
return V(e, this, n, t.cache.create(), t.serializer);
|
|
43
40
|
}
|
|
44
41
|
function ce(e, t) {
|
|
45
|
-
return
|
|
42
|
+
return V(e, this, B, t.cache.create(), t.serializer);
|
|
43
|
+
}
|
|
44
|
+
function le(e, t) {
|
|
45
|
+
return V(e, this, z, t.cache.create(), t.serializer);
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var H = function() {
|
|
48
48
|
return JSON.stringify(arguments);
|
|
49
|
-
},
|
|
49
|
+
}, ue = class {
|
|
50
50
|
constructor() {
|
|
51
51
|
this.cache = Object.create(null);
|
|
52
52
|
}
|
|
@@ -56,20 +56,20 @@ var U = function() {
|
|
|
56
56
|
set(e, t) {
|
|
57
57
|
this.cache[e] = t;
|
|
58
58
|
}
|
|
59
|
-
},
|
|
60
|
-
return new
|
|
61
|
-
} },
|
|
62
|
-
variadic:
|
|
63
|
-
monadic:
|
|
64
|
-
},
|
|
59
|
+
}, de = { create: function() {
|
|
60
|
+
return new ue();
|
|
61
|
+
} }, U = {
|
|
62
|
+
variadic: ce,
|
|
63
|
+
monadic: le
|
|
64
|
+
}, W = class extends Error {
|
|
65
65
|
constructor(e, t) {
|
|
66
66
|
let n = e;
|
|
67
67
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, G = function(e) {
|
|
70
70
|
return e.MISSING_MESSAGE = "MISSING_MESSAGE", e.MISSING_FORMAT = "MISSING_FORMAT", e.ENVIRONMENT_FALLBACK = "ENVIRONMENT_FALLBACK", e.INSUFFICIENT_PATH = "INSUFFICIENT_PATH", e.INVALID_MESSAGE = "INVALID_MESSAGE", e.INVALID_KEY = "INVALID_KEY", e.FORMATTING_ERROR = "FORMATTING_ERROR", e;
|
|
71
|
-
}(
|
|
72
|
-
function
|
|
71
|
+
}(G || {});
|
|
72
|
+
function fe() {
|
|
73
73
|
return {
|
|
74
74
|
dateTime: {},
|
|
75
75
|
number: {},
|
|
@@ -80,33 +80,33 @@ function de() {
|
|
|
80
80
|
displayNames: {}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function K(e, t) {
|
|
84
|
+
return L(e, {
|
|
85
85
|
cache: (n = t, { create: () => ({
|
|
86
86
|
get: (e) => n[e],
|
|
87
87
|
set(e, t) {
|
|
88
88
|
n[e] = t;
|
|
89
89
|
}
|
|
90
90
|
}) }),
|
|
91
|
-
strategy:
|
|
91
|
+
strategy: U.variadic
|
|
92
92
|
});
|
|
93
93
|
var n;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function q(e, t) {
|
|
96
|
+
return K(((...t) => new e(...t)), t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function pe(e) {
|
|
99
99
|
return {
|
|
100
|
-
getDateTimeFormat:
|
|
101
|
-
getNumberFormat:
|
|
102
|
-
getPluralRules:
|
|
103
|
-
getRelativeTimeFormat:
|
|
104
|
-
getListFormat:
|
|
105
|
-
getDisplayNames:
|
|
100
|
+
getDateTimeFormat: q(Intl.DateTimeFormat, e.dateTime),
|
|
101
|
+
getNumberFormat: q(Intl.NumberFormat, e.number),
|
|
102
|
+
getPluralRules: q(Intl.PluralRules, e.pluralRules),
|
|
103
|
+
getRelativeTimeFormat: q(Intl.RelativeTimeFormat, e.relativeTime),
|
|
104
|
+
getListFormat: q(Intl.ListFormat, e.list),
|
|
105
|
+
getDisplayNames: q(Intl.DisplayNames, e.displayNames)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
// ../../../../../.bun/install/cache/links/react@19.3.1-3b0a5b588981c557/node_modules/react/cjs/react.production.js
|
|
109
|
-
var
|
|
109
|
+
var me = /* @__PURE__ */ I(((e) => {
|
|
110
110
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
|
|
111
111
|
function h(e) {
|
|
112
112
|
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -238,7 +238,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
238
238
|
if (e._status === 1) return e._result.default;
|
|
239
239
|
throw e._result;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var ie = typeof reportError == "function" ? reportError : function(e) {
|
|
242
242
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
243
243
|
var t = new window.ErrorEvent("error", {
|
|
244
244
|
bubbles: !0,
|
|
@@ -253,26 +253,26 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
253
253
|
}
|
|
254
254
|
console.error(e);
|
|
255
255
|
};
|
|
256
|
-
function
|
|
256
|
+
function ae(e) {
|
|
257
257
|
var t = T.T, n = {};
|
|
258
258
|
n.types = t === null ? null : t.types, T.T = n;
|
|
259
259
|
try {
|
|
260
260
|
var r = e(), i = T.S;
|
|
261
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w,
|
|
261
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ie);
|
|
262
262
|
} catch (e) {
|
|
263
|
-
|
|
263
|
+
ie(e);
|
|
264
264
|
} finally {
|
|
265
265
|
t !== null && n.types !== null && (t.types = n.types), T.T = t;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function N(e) {
|
|
269
269
|
var t = T.T;
|
|
270
270
|
if (t !== null) {
|
|
271
271
|
var n = t.types;
|
|
272
272
|
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
|
|
273
|
-
} else
|
|
273
|
+
} else ae(N.bind(null, e));
|
|
274
274
|
}
|
|
275
|
-
var
|
|
275
|
+
var P = {
|
|
276
276
|
map: M,
|
|
277
277
|
forEach: function(e, t, n) {
|
|
278
278
|
M(e, function() {
|
|
@@ -295,12 +295,12 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
295
295
|
return e;
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
|
-
e.Activity = f, e.Children =
|
|
298
|
+
e.Activity = f, e.Children = P, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
|
|
299
299
|
__proto__: null,
|
|
300
300
|
c: function(e) {
|
|
301
301
|
return T.H.useMemoCache(e);
|
|
302
302
|
}
|
|
303
|
-
}, e.addTransitionType =
|
|
303
|
+
}, e.addTransitionType = N, e.cache = function(e) {
|
|
304
304
|
return function() {
|
|
305
305
|
return e.apply(null, arguments);
|
|
306
306
|
};
|
|
@@ -362,7 +362,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
362
362
|
type: e,
|
|
363
363
|
compare: t === void 0 ? null : t
|
|
364
364
|
};
|
|
365
|
-
}, e.startTransition =
|
|
365
|
+
}, e.startTransition = ae, e.unstable_useCacheRefresh = function() {
|
|
366
366
|
return T.H.useCacheRefresh();
|
|
367
367
|
}, e.use = function(e) {
|
|
368
368
|
return T.H.use(e);
|
|
@@ -401,7 +401,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
401
401
|
}, e.useTransition = function() {
|
|
402
402
|
return T.H.useTransition();
|
|
403
403
|
}, e.version = "19.3.1";
|
|
404
|
-
})),
|
|
404
|
+
})), he = /* @__PURE__ */ I(((e, t) => {
|
|
405
405
|
process.env.NODE_ENV !== "production" && (function() {
|
|
406
406
|
function n(e, t) {
|
|
407
407
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -409,19 +409,19 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
409
409
|
} });
|
|
410
410
|
}
|
|
411
411
|
function r(e) {
|
|
412
|
-
return typeof e != "object" || !e ? null : (e =
|
|
412
|
+
return typeof e != "object" || !e ? null : (e = le && e[le] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
413
413
|
}
|
|
414
414
|
function i(e, t) {
|
|
415
415
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
416
416
|
var n = e + "." + t;
|
|
417
|
-
|
|
417
|
+
H[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), H[n] = !0);
|
|
418
418
|
}
|
|
419
419
|
function a(e, t, n) {
|
|
420
|
-
this.props = e, this.context = t, this.refs =
|
|
420
|
+
this.props = e, this.context = t, this.refs = U, this.updater = n || ue;
|
|
421
421
|
}
|
|
422
422
|
function o() {}
|
|
423
423
|
function s(e, t, n) {
|
|
424
|
-
this.props = e, this.context = t, this.refs =
|
|
424
|
+
this.props = e, this.context = t, this.refs = U, this.updater = n || ue;
|
|
425
425
|
}
|
|
426
426
|
function c() {}
|
|
427
427
|
function l(e) {
|
|
@@ -442,26 +442,26 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
442
442
|
}
|
|
443
443
|
function d(e) {
|
|
444
444
|
if (e == null) return null;
|
|
445
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
445
|
+
if (typeof e == "function") return e.$$typeof === fe ? null : e.displayName || e.name || null;
|
|
446
446
|
if (typeof e == "string") return e;
|
|
447
447
|
switch (e) {
|
|
448
|
-
case
|
|
449
|
-
case
|
|
450
|
-
case
|
|
451
|
-
case
|
|
452
|
-
case
|
|
453
|
-
case
|
|
454
|
-
case
|
|
448
|
+
case N: return "Fragment";
|
|
449
|
+
case F: return "Profiler";
|
|
450
|
+
case P: return "StrictMode";
|
|
451
|
+
case R: return "Suspense";
|
|
452
|
+
case z: return "SuspenseList";
|
|
453
|
+
case se: return "Activity";
|
|
454
|
+
case ce: return "ViewTransition";
|
|
455
455
|
}
|
|
456
456
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
457
|
-
case
|
|
458
|
-
case
|
|
459
|
-
case
|
|
460
|
-
case
|
|
457
|
+
case ae: return "Portal";
|
|
458
|
+
case oe: return e.displayName || "Context";
|
|
459
|
+
case I: return (e._context.displayName || "Context") + ".Consumer";
|
|
460
|
+
case L:
|
|
461
461
|
var t = e.render;
|
|
462
462
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
463
|
-
case
|
|
464
|
-
case
|
|
463
|
+
case B: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
464
|
+
case V:
|
|
465
465
|
t = e._payload, e = e._init;
|
|
466
466
|
try {
|
|
467
467
|
return d(e(t));
|
|
@@ -470,8 +470,8 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
470
470
|
return null;
|
|
471
471
|
}
|
|
472
472
|
function f(e) {
|
|
473
|
-
if (e ===
|
|
474
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
473
|
+
if (e === N) return "<>";
|
|
474
|
+
if (typeof e == "object" && e && e.$$typeof === V) return "<...>";
|
|
475
475
|
try {
|
|
476
476
|
var t = d(e);
|
|
477
477
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -480,14 +480,14 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
function p() {
|
|
483
|
-
var e =
|
|
483
|
+
var e = K.A;
|
|
484
484
|
return e === null ? null : e.getOwner();
|
|
485
485
|
}
|
|
486
486
|
function m() {
|
|
487
487
|
return Error("react-stack-top-frame");
|
|
488
488
|
}
|
|
489
489
|
function h(e) {
|
|
490
|
-
if (
|
|
490
|
+
if (q.call(e, "key")) {
|
|
491
491
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
492
492
|
if (t && t.isReactWarning) return !1;
|
|
493
493
|
}
|
|
@@ -495,7 +495,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
495
495
|
}
|
|
496
496
|
function g(e, t) {
|
|
497
497
|
function n() {
|
|
498
|
-
|
|
498
|
+
me || (me = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
499
499
|
}
|
|
500
500
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
501
501
|
get: n,
|
|
@@ -504,12 +504,12 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
504
504
|
}
|
|
505
505
|
function _() {
|
|
506
506
|
var e = d(this.type);
|
|
507
|
-
return
|
|
507
|
+
return ge[e] || (ge[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
508
508
|
}
|
|
509
509
|
function v(e, t, n, r, i, a) {
|
|
510
510
|
var o = n.ref;
|
|
511
511
|
return e = {
|
|
512
|
-
$$typeof:
|
|
512
|
+
$$typeof: ie,
|
|
513
513
|
type: e,
|
|
514
514
|
key: t,
|
|
515
515
|
props: n,
|
|
@@ -546,10 +546,10 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
546
546
|
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
547
547
|
}
|
|
548
548
|
function b(e) {
|
|
549
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
549
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === V && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
550
550
|
}
|
|
551
551
|
function x(e) {
|
|
552
|
-
return typeof e == "object" && !!e && e.$$typeof ===
|
|
552
|
+
return typeof e == "object" && !!e && e.$$typeof === ie;
|
|
553
553
|
}
|
|
554
554
|
function S(e) {
|
|
555
555
|
var t = {
|
|
@@ -590,22 +590,22 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
590
590
|
s = !0;
|
|
591
591
|
break;
|
|
592
592
|
case "object": switch (e.$$typeof) {
|
|
593
|
-
case N:
|
|
594
593
|
case ie:
|
|
594
|
+
case ae:
|
|
595
595
|
s = !0;
|
|
596
596
|
break;
|
|
597
|
-
case
|
|
597
|
+
case V: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
if (s) {
|
|
601
601
|
s = e, a = a(s);
|
|
602
602
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
603
|
-
return
|
|
603
|
+
return G(a) ? (n = "", c != null && (n = c.replace(be, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
604
604
|
return e;
|
|
605
|
-
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(
|
|
605
|
+
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(be, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
606
606
|
}
|
|
607
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
608
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
607
|
+
if (s = 0, c = i === "" ? "." : i + ":", G(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
608
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (ye || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ye = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
|
|
609
609
|
else if (o === "object") {
|
|
610
610
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
611
611
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -653,52 +653,52 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
653
653
|
throw e._result;
|
|
654
654
|
}
|
|
655
655
|
function D() {
|
|
656
|
-
var e =
|
|
656
|
+
var e = K.H;
|
|
657
657
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
658
658
|
}
|
|
659
659
|
function O() {
|
|
660
|
-
|
|
660
|
+
K.asyncTransitions--;
|
|
661
661
|
}
|
|
662
662
|
function te(e) {
|
|
663
|
-
var t =
|
|
664
|
-
n.types = t === null ? null : t.types, n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
663
|
+
var t = K.T, n = {};
|
|
664
|
+
n.types = t === null ? null : t.types, n._updatedFibers = /* @__PURE__ */ new Set(), K.T = n;
|
|
665
665
|
try {
|
|
666
|
-
var r = e(), i =
|
|
667
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
666
|
+
var r = e(), i = K.S;
|
|
667
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (K.asyncTransitions++, r.then(O, O), r.then(c, xe));
|
|
668
668
|
} catch (e) {
|
|
669
|
-
|
|
669
|
+
xe(e);
|
|
670
670
|
} finally {
|
|
671
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types),
|
|
671
|
+
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), K.T = t;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
function ne(e) {
|
|
675
|
-
var t =
|
|
675
|
+
var t = K.T;
|
|
676
676
|
if (t !== null) {
|
|
677
677
|
var n = t.types;
|
|
678
678
|
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
|
|
679
|
-
} else
|
|
679
|
+
} else K.asyncTransitions === 0 && console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."), te(ne.bind(null, e));
|
|
680
680
|
}
|
|
681
681
|
function k(e) {
|
|
682
|
-
if (
|
|
682
|
+
if (J === null) try {
|
|
683
683
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
684
|
-
|
|
684
|
+
J = (t && t[n]).call(t, "timers").setImmediate;
|
|
685
685
|
} catch {
|
|
686
|
-
|
|
687
|
-
!1 ===
|
|
686
|
+
J = function(e) {
|
|
687
|
+
!1 === Se && (Se = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
688
688
|
var t = new MessageChannel();
|
|
689
689
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return J(e);
|
|
693
693
|
}
|
|
694
694
|
function A(e) {
|
|
695
695
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
696
696
|
}
|
|
697
697
|
function j(e, t) {
|
|
698
|
-
t !==
|
|
698
|
+
t !== Ce - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ce = t;
|
|
699
699
|
}
|
|
700
700
|
function M(e, t, n) {
|
|
701
|
-
var r =
|
|
701
|
+
var r = K.actQueue;
|
|
702
702
|
if (r !== null) {
|
|
703
703
|
if (r.length !== 0) try {
|
|
704
704
|
re(r), k(function() {
|
|
@@ -706,24 +706,24 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
706
706
|
});
|
|
707
707
|
return;
|
|
708
708
|
} catch (e) {
|
|
709
|
-
|
|
709
|
+
K.thrownErrors.push(e);
|
|
710
710
|
}
|
|
711
|
-
else
|
|
711
|
+
else K.actQueue = null;
|
|
712
712
|
}
|
|
713
|
-
0 <
|
|
713
|
+
0 < K.thrownErrors.length ? (r = A(K.thrownErrors), K.thrownErrors.length = 0, n(r)) : t(e);
|
|
714
714
|
}
|
|
715
715
|
function re(e) {
|
|
716
|
-
if (!
|
|
717
|
-
|
|
716
|
+
if (!we) {
|
|
717
|
+
we = !0;
|
|
718
718
|
var t = 0;
|
|
719
719
|
try {
|
|
720
720
|
for (; t < e.length; t++) {
|
|
721
721
|
var n = e[t];
|
|
722
722
|
do {
|
|
723
|
-
|
|
723
|
+
K.didUsePromise = !1;
|
|
724
724
|
var r = n(!1);
|
|
725
725
|
if (r !== null) {
|
|
726
|
-
if (
|
|
726
|
+
if (K.didUsePromise) {
|
|
727
727
|
e[t] = n, e.splice(0, t);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
@@ -733,14 +733,14 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
733
733
|
}
|
|
734
734
|
e.length = 0;
|
|
735
735
|
} catch (n) {
|
|
736
|
-
e.splice(0, t + 1),
|
|
736
|
+
e.splice(0, t + 1), K.thrownErrors.push(n);
|
|
737
737
|
} finally {
|
|
738
|
-
|
|
738
|
+
we = !1;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
743
|
-
var
|
|
743
|
+
var ie = Symbol.for("react.transitional.element"), ae = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), ce = Symbol.for("react.view_transition"), le = Symbol.iterator, H = {}, ue = {
|
|
744
744
|
isMounted: function() {
|
|
745
745
|
return !1;
|
|
746
746
|
},
|
|
@@ -753,20 +753,20 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
753
753
|
enqueueSetState: function(e) {
|
|
754
754
|
i(e, "setState");
|
|
755
755
|
}
|
|
756
|
-
},
|
|
757
|
-
Object.freeze(
|
|
756
|
+
}, de = Object.assign, U = {};
|
|
757
|
+
Object.freeze(U), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
758
758
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
759
759
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
760
760
|
}, a.prototype.forceUpdate = function(e) {
|
|
761
761
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
762
762
|
};
|
|
763
|
-
var
|
|
763
|
+
var W = {
|
|
764
764
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
765
765
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
766
766
|
};
|
|
767
|
-
for (
|
|
768
|
-
o.prototype = a.prototype,
|
|
769
|
-
var
|
|
767
|
+
for (X in W) W.hasOwnProperty(X) && n(X, W[X]);
|
|
768
|
+
o.prototype = a.prototype, W = s.prototype = new o(), W.constructor = s, de(W, a.prototype), W.isPureReactComponent = !0;
|
|
769
|
+
var G = Array.isArray, fe = Symbol.for("react.client.reference"), K = {
|
|
770
770
|
H: null,
|
|
771
771
|
A: null,
|
|
772
772
|
T: null,
|
|
@@ -779,13 +779,13 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
779
779
|
thrownErrors: [],
|
|
780
780
|
getCurrentStack: null,
|
|
781
781
|
recentlyCreatedOwnerStacks: 0
|
|
782
|
-
},
|
|
782
|
+
}, q = Object.prototype.hasOwnProperty, pe = console.createTask ? console.createTask : function() {
|
|
783
783
|
return null;
|
|
784
784
|
};
|
|
785
|
-
|
|
785
|
+
W = { react_stack_bottom_frame: function(e) {
|
|
786
786
|
return e();
|
|
787
787
|
} };
|
|
788
|
-
var
|
|
788
|
+
var me, he, ge = {}, _e = W.react_stack_bottom_frame.bind(W, m)(), ve = pe(f(m)), ye = !1, be = /\/+/g, xe = typeof reportError == "function" ? reportError : function(e) {
|
|
789
789
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
790
790
|
var t = new window.ErrorEvent("error", {
|
|
791
791
|
bubbles: !0,
|
|
@@ -799,18 +799,18 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
799
799
|
return;
|
|
800
800
|
}
|
|
801
801
|
console.error(e);
|
|
802
|
-
},
|
|
802
|
+
}, Se = !1, J = null, Ce = 0, Y = !1, we = !1, Te = typeof queueMicrotask == "function" ? function(e) {
|
|
803
803
|
queueMicrotask(function() {
|
|
804
804
|
return queueMicrotask(e);
|
|
805
805
|
});
|
|
806
806
|
} : k;
|
|
807
|
-
|
|
807
|
+
W = Object.freeze({
|
|
808
808
|
__proto__: null,
|
|
809
809
|
c: function(e) {
|
|
810
810
|
return D().useMemoCache(e);
|
|
811
811
|
}
|
|
812
812
|
});
|
|
813
|
-
var
|
|
813
|
+
var X = {
|
|
814
814
|
map: E,
|
|
815
815
|
forEach: function(e, t, n) {
|
|
816
816
|
E(e, function() {
|
|
@@ -833,20 +833,20 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
833
833
|
return e;
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
e.Activity =
|
|
837
|
-
var t =
|
|
838
|
-
|
|
839
|
-
var r =
|
|
836
|
+
e.Activity = se, e.Children = X, e.Component = a, e.Fragment = N, e.Profiler = F, e.PureComponent = s, e.StrictMode = P, e.Suspense = R, e.ViewTransition = ce, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = K, e.__COMPILER_RUNTIME = W, e.act = function(e) {
|
|
837
|
+
var t = K.actQueue, n = Ce;
|
|
838
|
+
Ce++;
|
|
839
|
+
var r = K.actQueue = t === null ? [] : t, i = !1;
|
|
840
840
|
try {
|
|
841
841
|
var a = e();
|
|
842
842
|
} catch (e) {
|
|
843
|
-
|
|
843
|
+
K.thrownErrors.push(e);
|
|
844
844
|
}
|
|
845
|
-
if (0 <
|
|
845
|
+
if (0 < K.thrownErrors.length) throw j(t, n), e = A(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
846
846
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
847
847
|
var o = a;
|
|
848
|
-
return
|
|
849
|
-
i ||
|
|
848
|
+
return Te(function() {
|
|
849
|
+
i || Y || (Y = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
850
850
|
}), { then: function(e, a) {
|
|
851
851
|
i = !0, o.then(function(i) {
|
|
852
852
|
if (j(t, n), n === 0) {
|
|
@@ -855,24 +855,24 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
855
855
|
return M(i, e, a);
|
|
856
856
|
});
|
|
857
857
|
} catch (e) {
|
|
858
|
-
|
|
858
|
+
K.thrownErrors.push(e);
|
|
859
859
|
}
|
|
860
|
-
if (0 <
|
|
861
|
-
var o = A(
|
|
862
|
-
|
|
860
|
+
if (0 < K.thrownErrors.length) {
|
|
861
|
+
var o = A(K.thrownErrors);
|
|
862
|
+
K.thrownErrors.length = 0, a(o);
|
|
863
863
|
}
|
|
864
864
|
} else e(i);
|
|
865
865
|
}, function(e) {
|
|
866
|
-
j(t, n), 0 <
|
|
866
|
+
j(t, n), 0 < K.thrownErrors.length && (e = A(K.thrownErrors), K.thrownErrors.length = 0), a(e);
|
|
867
867
|
});
|
|
868
868
|
} };
|
|
869
869
|
}
|
|
870
870
|
var s = a;
|
|
871
|
-
if (j(t, n), n === 0 && (re(r), r.length !== 0 &&
|
|
872
|
-
i ||
|
|
873
|
-
}),
|
|
871
|
+
if (j(t, n), n === 0 && (re(r), r.length !== 0 && Te(function() {
|
|
872
|
+
i || Y || (Y = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
873
|
+
}), K.actQueue = null), 0 < K.thrownErrors.length) throw e = A(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
874
874
|
return { then: function(e, t) {
|
|
875
|
-
i = !0, n === 0 ? (
|
|
875
|
+
i = !0, n === 0 ? (K.actQueue = r, k(function() {
|
|
876
876
|
return M(s, e, t);
|
|
877
877
|
})) : e(s);
|
|
878
878
|
} };
|
|
@@ -883,21 +883,21 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
883
883
|
}, e.cacheSignal = function() {
|
|
884
884
|
return null;
|
|
885
885
|
}, e.captureOwnerStack = function() {
|
|
886
|
-
var e =
|
|
886
|
+
var e = K.getCurrentStack;
|
|
887
887
|
return e === null ? null : e();
|
|
888
888
|
}, e.cloneElement = function(e, t, n) {
|
|
889
889
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
890
|
-
var r =
|
|
890
|
+
var r = de({}, e.props), i = e.key, a = e._owner;
|
|
891
891
|
if (t != null) {
|
|
892
892
|
var o;
|
|
893
893
|
a: {
|
|
894
|
-
if (
|
|
894
|
+
if (q.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
895
895
|
o = !1;
|
|
896
896
|
break a;
|
|
897
897
|
}
|
|
898
898
|
o = t.ref !== void 0;
|
|
899
899
|
}
|
|
900
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
900
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !q.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
901
901
|
}
|
|
902
902
|
var s = arguments.length - 2;
|
|
903
903
|
if (s === 1) r.children = n;
|
|
@@ -910,14 +910,14 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
910
910
|
return r;
|
|
911
911
|
}, e.createContext = function(e) {
|
|
912
912
|
return e = {
|
|
913
|
-
$$typeof:
|
|
913
|
+
$$typeof: oe,
|
|
914
914
|
_currentValue: e,
|
|
915
915
|
_currentValue2: e,
|
|
916
916
|
_threadCount: 0,
|
|
917
917
|
Provider: null,
|
|
918
918
|
Consumer: null
|
|
919
919
|
}, e.Provider = e, e.Consumer = {
|
|
920
|
-
$$typeof:
|
|
920
|
+
$$typeof: I,
|
|
921
921
|
_context: e
|
|
922
922
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
923
923
|
}, e.createElement = function(e, t, n) {
|
|
@@ -925,7 +925,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
925
925
|
var i;
|
|
926
926
|
r = {};
|
|
927
927
|
var a = null;
|
|
928
|
-
if (t != null) for (i in
|
|
928
|
+
if (t != null) for (i in he || !("__self" in t) || "key" in t || (he = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), a = "" + t.key), t) q.call(t, i) && i !== "key" && i !== "__self" && i !== "__source" && (r[i] = t[i]);
|
|
929
929
|
var o = arguments.length - 2;
|
|
930
930
|
if (o === 1) r.children = n;
|
|
931
931
|
else if (1 < o) {
|
|
@@ -933,14 +933,14 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
933
933
|
Object.freeze && Object.freeze(s), r.children = s;
|
|
934
934
|
}
|
|
935
935
|
if (e && e.defaultProps) for (i in o = e.defaultProps, o) r[i] === void 0 && (r[i] = o[i]);
|
|
936
|
-
return a && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), (i = 1e4 >
|
|
936
|
+
return a && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), (i = 1e4 > K.recentlyCreatedOwnerStacks++) ? (s = Error.stackTraceLimit, Error.stackTraceLimit = 10, o = Error("react-stack-top-frame"), Error.stackTraceLimit = s) : o = _e, v(e, a, r, p(), o, i ? pe(f(e)) : ve);
|
|
937
937
|
}, e.createRef = function() {
|
|
938
938
|
var e = { current: null };
|
|
939
939
|
return Object.seal(e), e;
|
|
940
940
|
}, e.forwardRef = function(e) {
|
|
941
|
-
e != null && e.$$typeof ===
|
|
941
|
+
e != null && e.$$typeof === B ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
942
942
|
var t = {
|
|
943
|
-
$$typeof:
|
|
943
|
+
$$typeof: L,
|
|
944
944
|
render: e
|
|
945
945
|
}, n;
|
|
946
946
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -959,7 +959,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
959
959
|
_result: e
|
|
960
960
|
};
|
|
961
961
|
var t = {
|
|
962
|
-
$$typeof:
|
|
962
|
+
$$typeof: V,
|
|
963
963
|
_payload: e,
|
|
964
964
|
_init: ee
|
|
965
965
|
}, n = {
|
|
@@ -974,7 +974,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
974
974
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
975
975
|
}, e.memo = function(e, t) {
|
|
976
976
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
977
|
-
$$typeof:
|
|
977
|
+
$$typeof: B,
|
|
978
978
|
type: e,
|
|
979
979
|
compare: t === void 0 ? null : t
|
|
980
980
|
};
|
|
@@ -999,7 +999,7 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
999
999
|
return D().useCallback(e, t);
|
|
1000
1000
|
}, e.useContext = function(e) {
|
|
1001
1001
|
var t = D();
|
|
1002
|
-
return e.$$typeof ===
|
|
1002
|
+
return e.$$typeof === I && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1003
1003
|
}, e.useDebugValue = function(e, t) {
|
|
1004
1004
|
return D().useDebugValue(e, t);
|
|
1005
1005
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1032,12 +1032,12 @@ var pe = /* @__PURE__ */ L(((e) => {
|
|
|
1032
1032
|
return D().useTransition();
|
|
1033
1033
|
}, e.version = "19.3.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1034
1034
|
})();
|
|
1035
|
-
})),
|
|
1036
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
1037
|
-
})))(),
|
|
1038
|
-
function
|
|
1035
|
+
})), ge = (/* @__PURE__ */ I(((e, t) => {
|
|
1036
|
+
t.exports = process.env.NODE_ENV === "production" ? me() : he();
|
|
1037
|
+
})))(), _e = /(?:[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;
|
|
1038
|
+
function ve(e) {
|
|
1039
1039
|
let t = {};
|
|
1040
|
-
return e.replace(
|
|
1040
|
+
return e.replace(_e, (e) => {
|
|
1041
1041
|
let n = e.length;
|
|
1042
1042
|
switch (e[0]) {
|
|
1043
1043
|
case "G":
|
|
@@ -1132,10 +1132,10 @@ function _e(e) {
|
|
|
1132
1132
|
return "";
|
|
1133
1133
|
}), t;
|
|
1134
1134
|
}
|
|
1135
|
-
var
|
|
1136
|
-
function
|
|
1135
|
+
var ye = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1136
|
+
function be(e) {
|
|
1137
1137
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1138
|
-
let t = e.split(
|
|
1138
|
+
let t = e.split(ye).filter((e) => e.length > 0), n = [];
|
|
1139
1139
|
for (let e of t) {
|
|
1140
1140
|
let t = e.split("/");
|
|
1141
1141
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1148,17 +1148,17 @@ function ye(e) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
return n;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function xe(e) {
|
|
1152
1152
|
return e.replace(/^(.*?)-/, "");
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1155
|
-
function
|
|
1154
|
+
var Se = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, J = /^(@+)?(\+|#+)?[rs]?$/g, Ce = /(\*)(0+)|(#+)(0+)|(0+)/g, Y = /^(0+)$/;
|
|
1155
|
+
function we(e) {
|
|
1156
1156
|
let t = {};
|
|
1157
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1157
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(J, function(e, n, r) {
|
|
1158
1158
|
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), "";
|
|
1159
1159
|
}), t;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Te(e) {
|
|
1162
1162
|
switch (e) {
|
|
1163
1163
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1164
1164
|
case "sign-accounting":
|
|
@@ -1181,17 +1181,17 @@ function we(e) {
|
|
|
1181
1181
|
case "+_": return { signDisplay: "never" };
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function X(e) {
|
|
1185
1185
|
let t;
|
|
1186
1186
|
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) {
|
|
1187
1187
|
let n = e.slice(0, 2);
|
|
1188
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1188
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Y.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1189
1189
|
t.minimumIntegerDigits = e.length;
|
|
1190
1190
|
}
|
|
1191
1191
|
return t;
|
|
1192
1192
|
}
|
|
1193
1193
|
function Ee(e) {
|
|
1194
|
-
return
|
|
1194
|
+
return Te(e) || {};
|
|
1195
1195
|
}
|
|
1196
1196
|
function De(e) {
|
|
1197
1197
|
let t = {};
|
|
@@ -1217,7 +1217,7 @@ function De(e) {
|
|
|
1217
1217
|
continue;
|
|
1218
1218
|
case "measure-unit":
|
|
1219
1219
|
case "unit":
|
|
1220
|
-
t.style = "unit", t.unit =
|
|
1220
|
+
t.style = "unit", t.unit = xe(n.options[0]);
|
|
1221
1221
|
continue;
|
|
1222
1222
|
case "compact-short":
|
|
1223
1223
|
case "K":
|
|
@@ -1288,7 +1288,7 @@ function De(e) {
|
|
|
1288
1288
|
continue;
|
|
1289
1289
|
case "integer-width":
|
|
1290
1290
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1291
|
-
n.options[0].replace(
|
|
1291
|
+
n.options[0].replace(Ce, function(e, n, r, i, a, o) {
|
|
1292
1292
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1293
1293
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1294
1294
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1296,13 +1296,13 @@ function De(e) {
|
|
|
1296
1296
|
});
|
|
1297
1297
|
continue;
|
|
1298
1298
|
}
|
|
1299
|
-
if (
|
|
1299
|
+
if (Y.test(n.stem)) {
|
|
1300
1300
|
t.minimumIntegerDigits = n.stem.length;
|
|
1301
1301
|
continue;
|
|
1302
1302
|
}
|
|
1303
|
-
if (
|
|
1303
|
+
if (Se.test(n.stem)) {
|
|
1304
1304
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1305
|
-
n.stem.replace(
|
|
1305
|
+
n.stem.replace(Se, function(e, n, r, i, a, o) {
|
|
1306
1306
|
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), "";
|
|
1307
1307
|
});
|
|
1308
1308
|
let e = n.options[0];
|
|
@@ -1311,23 +1311,23 @@ function De(e) {
|
|
|
1311
1311
|
trailingZeroDisplay: "stripIfInteger"
|
|
1312
1312
|
} : e && (t = {
|
|
1313
1313
|
...t,
|
|
1314
|
-
...
|
|
1314
|
+
...we(e)
|
|
1315
1315
|
});
|
|
1316
1316
|
continue;
|
|
1317
1317
|
}
|
|
1318
|
-
if (
|
|
1318
|
+
if (J.test(n.stem)) {
|
|
1319
1319
|
t = {
|
|
1320
1320
|
...t,
|
|
1321
|
-
...
|
|
1321
|
+
...we(n.stem)
|
|
1322
1322
|
};
|
|
1323
1323
|
continue;
|
|
1324
1324
|
}
|
|
1325
|
-
let e =
|
|
1325
|
+
let e = Te(n.stem);
|
|
1326
1326
|
e && (t = {
|
|
1327
1327
|
...t,
|
|
1328
1328
|
...e
|
|
1329
1329
|
});
|
|
1330
|
-
let r =
|
|
1330
|
+
let r = X(n.stem);
|
|
1331
1331
|
r && (t = {
|
|
1332
1332
|
...t,
|
|
1333
1333
|
...r
|
|
@@ -2843,7 +2843,7 @@ var tt = class {
|
|
|
2843
2843
|
type: 1,
|
|
2844
2844
|
pattern: r,
|
|
2845
2845
|
location: e.styleLocation,
|
|
2846
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2846
|
+
parsedOptions: this.shouldParseSkeletons ? ve(r) : {}
|
|
2847
2847
|
};
|
|
2848
2848
|
return {
|
|
2849
2849
|
val: {
|
|
@@ -2944,7 +2944,7 @@ var tt = class {
|
|
|
2944
2944
|
parseNumberSkeletonFromString(e, t) {
|
|
2945
2945
|
let n = [];
|
|
2946
2946
|
try {
|
|
2947
|
-
n =
|
|
2947
|
+
n = be(e);
|
|
2948
2948
|
} catch {
|
|
2949
2949
|
return this.error(7, t);
|
|
2950
2950
|
}
|
|
@@ -3240,17 +3240,17 @@ function vt(e = {
|
|
|
3240
3240
|
pluralRules: {}
|
|
3241
3241
|
}) {
|
|
3242
3242
|
return {
|
|
3243
|
-
getNumberFormat:
|
|
3243
|
+
getNumberFormat: L((...e) => new Intl.NumberFormat(...e), {
|
|
3244
3244
|
cache: _t(e.number),
|
|
3245
|
-
strategy:
|
|
3245
|
+
strategy: U.variadic
|
|
3246
3246
|
}),
|
|
3247
|
-
getDateTimeFormat:
|
|
3247
|
+
getDateTimeFormat: L((...e) => new Intl.DateTimeFormat(...e), {
|
|
3248
3248
|
cache: _t(e.dateTime),
|
|
3249
|
-
strategy:
|
|
3249
|
+
strategy: U.variadic
|
|
3250
3250
|
}),
|
|
3251
|
-
getPluralRules:
|
|
3251
|
+
getPluralRules: L((...e) => new Intl.PluralRules(...e), {
|
|
3252
3252
|
cache: _t(e.pluralRules),
|
|
3253
|
-
strategy:
|
|
3253
|
+
strategy: U.variadic
|
|
3254
3254
|
})
|
|
3255
3255
|
};
|
|
3256
3256
|
}
|
|
@@ -3350,8 +3350,8 @@ var yt = class e {
|
|
|
3350
3350
|
};
|
|
3351
3351
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3352
3352
|
function bt(...[e, t, n, r]) {
|
|
3353
|
-
if (Array.isArray(t)) throw new G
|
|
3354
|
-
if (typeof t == "object") throw new G
|
|
3353
|
+
if (Array.isArray(t)) throw new W(G.INVALID_MESSAGE, void 0);
|
|
3354
|
+
if (typeof t == "object") throw new W(G.INSUFFICIENT_PATH, void 0);
|
|
3355
3355
|
if (typeof t == "string") {
|
|
3356
3356
|
let e = function(e, t) {
|
|
3357
3357
|
return t || /'[{}<#|']/.test(e) ? void 0 : e;
|
|
@@ -3360,7 +3360,7 @@ function bt(...[e, t, n, r]) {
|
|
|
3360
3360
|
}
|
|
3361
3361
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3362
3362
|
o.getMessageFormat ||= function(e, t) {
|
|
3363
|
-
return
|
|
3363
|
+
return K(((...e) => new yt(e[0], e[1], e[2], {
|
|
3364
3364
|
formatters: t,
|
|
3365
3365
|
...e[3]
|
|
3366
3366
|
})), e.message);
|
|
@@ -3399,10 +3399,10 @@ function bt(...[e, t, n, r]) {
|
|
|
3399
3399
|
})
|
|
3400
3400
|
} });
|
|
3401
3401
|
} catch {
|
|
3402
|
-
throw new G
|
|
3402
|
+
throw new W(G.INVALID_MESSAGE, void 0);
|
|
3403
3403
|
}
|
|
3404
3404
|
let d = u.format(n);
|
|
3405
|
-
return (0,
|
|
3405
|
+
return (0, ge.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3406
3406
|
}
|
|
3407
3407
|
bt.raw = !0;
|
|
3408
3408
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
@@ -3433,13 +3433,13 @@ function Tt(e) {
|
|
|
3433
3433
|
if (!r) throw Error(n);
|
|
3434
3434
|
return r;
|
|
3435
3435
|
} catch (e) {
|
|
3436
|
-
return new G
|
|
3436
|
+
return new W(G.MISSING_MESSAGE, e.message);
|
|
3437
3437
|
}
|
|
3438
3438
|
}(e.locale, e.messages, e.namespace);
|
|
3439
3439
|
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = St, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3440
|
-
let l = a instanceof
|
|
3440
|
+
let l = a instanceof W;
|
|
3441
3441
|
function u(e, t, n, i) {
|
|
3442
|
-
let a = new
|
|
3442
|
+
let a = new W(t, n);
|
|
3443
3443
|
return s(a), i ?? r({
|
|
3444
3444
|
error: a,
|
|
3445
3445
|
key: e,
|
|
@@ -3460,7 +3460,7 @@ function Tt(e) {
|
|
|
3460
3460
|
try {
|
|
3461
3461
|
g = wt(i, e, d, o);
|
|
3462
3462
|
} catch (e) {
|
|
3463
|
-
if (!h) return u(d,
|
|
3463
|
+
if (!h) return u(d, G.MISSING_MESSAGE, e.message, h);
|
|
3464
3464
|
g = h;
|
|
3465
3465
|
}
|
|
3466
3466
|
}
|
|
@@ -3471,7 +3471,7 @@ function Tt(e) {
|
|
|
3471
3471
|
let r = 0, i = e[n], a;
|
|
3472
3472
|
a = typeof i == "function" ? (e) => {
|
|
3473
3473
|
let t = i(e);
|
|
3474
|
-
return (0,
|
|
3474
|
+
return (0, ge.isValidElement)(t) ? (0, ge.cloneElement)(t, { key: n + r++ }) : t;
|
|
3475
3475
|
} : i, t[n] = a;
|
|
3476
3476
|
})), t;
|
|
3477
3477
|
}(f), {
|
|
@@ -3484,12 +3484,12 @@ function Tt(e) {
|
|
|
3484
3484
|
});
|
|
3485
3485
|
} catch (e) {
|
|
3486
3486
|
let t, n;
|
|
3487
|
-
return e instanceof
|
|
3487
|
+
return e instanceof W ? (t = e.code, n = e.originalMessage) : (t = G.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
3490
|
function f(e, t, n, r) {
|
|
3491
3491
|
let i = d(e, t, n, r);
|
|
3492
|
-
return typeof i == "string" ? i : u(e,
|
|
3492
|
+
return typeof i == "string" ? i : u(e, G.INVALID_MESSAGE, void 0);
|
|
3493
3493
|
}
|
|
3494
3494
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3495
3495
|
if (l) return s(a), r({
|
|
@@ -3501,7 +3501,7 @@ function Tt(e) {
|
|
|
3501
3501
|
try {
|
|
3502
3502
|
return wt(i, t, e, o);
|
|
3503
3503
|
} catch (t) {
|
|
3504
|
-
return u(e,
|
|
3504
|
+
return u(e, G.MISSING_MESSAGE, t.message);
|
|
3505
3505
|
}
|
|
3506
3506
|
}, f.has = (e) => {
|
|
3507
3507
|
if (l) return !1;
|
|
@@ -3520,7 +3520,7 @@ function Et(e, t) {
|
|
|
3520
3520
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3521
3521
|
}
|
|
3522
3522
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/core.js
|
|
3523
|
-
function Dt({ _cache: e =
|
|
3523
|
+
function Dt({ _cache: e = fe(), _formatters: t = pe(e), getMessageFallback: n = St, messages: r, namespace: i, onError: a = Ct, ...o }) {
|
|
3524
3524
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3525
3525
|
return e = e[r], t = Et(t, r), Tt({
|
|
3526
3526
|
...n,
|
|
@@ -3556,21 +3556,17 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3556
3556
|
n.value = kt(e, s), r.value = { type: "ready" }, i = void 0;
|
|
3557
3557
|
return;
|
|
3558
3558
|
}
|
|
3559
|
-
|
|
3560
|
-
c
|
|
3561
|
-
let l = !0;
|
|
3559
|
+
r.value = { type: "loading" };
|
|
3560
|
+
let c = !0;
|
|
3562
3561
|
return o(() => {
|
|
3563
|
-
|
|
3562
|
+
c = !1;
|
|
3564
3563
|
}), i = j(e).then((t) => {
|
|
3565
|
-
|
|
3564
|
+
c && (n.value = kt(e, t), r.value = { type: "ready" });
|
|
3566
3565
|
}, (e) => {
|
|
3567
|
-
if (!
|
|
3568
|
-
let
|
|
3569
|
-
if (
|
|
3570
|
-
|
|
3571
|
-
error: n
|
|
3572
|
-
}), !t) throw n;
|
|
3573
|
-
t(n);
|
|
3566
|
+
if (!c) return;
|
|
3567
|
+
let i = e instanceof Error ? e : Error(String(e));
|
|
3568
|
+
if (n.value = kt("en", M), r.value = { type: "ready" }, !t) throw i;
|
|
3569
|
+
t(i);
|
|
3574
3570
|
}), i;
|
|
3575
3571
|
}, {
|
|
3576
3572
|
immediate: !0,
|
|
@@ -3892,7 +3888,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3892
3888
|
}
|
|
3893
3889
|
];
|
|
3894
3890
|
function _(e) {
|
|
3895
|
-
return e ? typeof e == "string" ? l.mode === "highlight" ?
|
|
3891
|
+
return e ? typeof e == "string" ? l.mode === "highlight" ? N(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : ie(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
|
|
3896
3892
|
}
|
|
3897
3893
|
function y(e) {
|
|
3898
3894
|
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
@@ -3904,7 +3900,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3904
3900
|
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3905
3901
|
}
|
|
3906
3902
|
function C(e, t) {
|
|
3907
|
-
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() :
|
|
3903
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ae(e, l.theme)) === t.toUpperCase() : !1;
|
|
3908
3904
|
}
|
|
3909
3905
|
function T(e) {
|
|
3910
3906
|
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
@@ -3915,10 +3911,10 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3915
3911
|
function A(e) {
|
|
3916
3912
|
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3917
3913
|
}
|
|
3918
|
-
let j = b(!1), M = b(""),
|
|
3914
|
+
let j = b(!1), M = b(""), P = b(null), F = b(null), I = b(l.defaultColor ?? T(l.mode)), oe = n(() => re(l.theme?.colorScheme ?? null)), L = n(() => oe.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3919
3915
|
...e,
|
|
3920
3916
|
key: `${t}-${n}`
|
|
3921
|
-
})))),
|
|
3917
|
+
})))), R = n(() => _(l.value)), z = n(() => _(I.value)), B = n(() => O(l.mode)), V = n(() => l.icon ?? A(l.mode));
|
|
3922
3918
|
D(() => [
|
|
3923
3919
|
l.value,
|
|
3924
3920
|
l.mode,
|
|
@@ -3927,57 +3923,57 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3927
3923
|
let e = _(l.value).replace(/^#/, "");
|
|
3928
3924
|
/^[0-9A-Fa-f]{6}$/.test(e) && (M.value = e.toUpperCase());
|
|
3929
3925
|
}, { immediate: !0 });
|
|
3930
|
-
let
|
|
3931
|
-
function
|
|
3932
|
-
let e =
|
|
3926
|
+
let se = b({});
|
|
3927
|
+
function ce() {
|
|
3928
|
+
let e = P.value;
|
|
3933
3929
|
if (!e) return;
|
|
3934
3930
|
let t = e.getBoundingClientRect();
|
|
3935
|
-
|
|
3931
|
+
se.value = {
|
|
3936
3932
|
top: `${t.bottom + 4}px`,
|
|
3937
3933
|
left: `${t.left}px`
|
|
3938
3934
|
};
|
|
3939
3935
|
}
|
|
3940
|
-
function
|
|
3941
|
-
l.disabled || (j.value ||
|
|
3936
|
+
function le() {
|
|
3937
|
+
l.disabled || (j.value || ce(), j.value = !j.value);
|
|
3942
3938
|
}
|
|
3943
|
-
function
|
|
3944
|
-
t && (
|
|
3939
|
+
function H(e, t = !0) {
|
|
3940
|
+
t && (I.value = e), u("change", e), j.value = !1;
|
|
3945
3941
|
}
|
|
3946
|
-
function
|
|
3947
|
-
l.disabled || u("change",
|
|
3942
|
+
function ue() {
|
|
3943
|
+
l.disabled || u("change", I.value);
|
|
3948
3944
|
}
|
|
3949
|
-
function
|
|
3945
|
+
function de(e) {
|
|
3950
3946
|
if (l.mode === "highlight") {
|
|
3951
|
-
|
|
3947
|
+
H(e.hex);
|
|
3952
3948
|
return;
|
|
3953
3949
|
}
|
|
3954
3950
|
let t = {
|
|
3955
3951
|
themeColor: e.themeSlot,
|
|
3956
3952
|
rgb: e.hex
|
|
3957
3953
|
};
|
|
3958
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3954
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), H(t);
|
|
3959
3955
|
}
|
|
3960
|
-
function
|
|
3961
|
-
|
|
3956
|
+
function U(e) {
|
|
3957
|
+
H(l.mode === "highlight" ? e : { rgb: e });
|
|
3962
3958
|
}
|
|
3963
|
-
function
|
|
3964
|
-
|
|
3959
|
+
function W() {
|
|
3960
|
+
H(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3965
3961
|
}
|
|
3966
|
-
function
|
|
3962
|
+
function G() {
|
|
3967
3963
|
let e = M.value.replace(/^#/, "").toUpperCase();
|
|
3968
|
-
y(e) && (
|
|
3964
|
+
y(e) && (H(l.mode === "highlight" ? e : { rgb: e }), M.value = "");
|
|
3969
3965
|
}
|
|
3970
|
-
function
|
|
3966
|
+
function fe(e) {
|
|
3971
3967
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3972
3968
|
}
|
|
3973
|
-
function
|
|
3969
|
+
function K(e) {
|
|
3974
3970
|
if (!j.value) return;
|
|
3975
3971
|
let t = e.target;
|
|
3976
|
-
t instanceof Node && (
|
|
3972
|
+
t instanceof Node && (P.value?.contains(t) || F.value?.contains(t) || (j.value = !1));
|
|
3977
3973
|
}
|
|
3978
|
-
return g(() => document.addEventListener("mousedown",
|
|
3974
|
+
return g(() => document.addEventListener("mousedown", K)), h(() => document.removeEventListener("mousedown", K)), (n, r) => (v(), a("div", {
|
|
3979
3975
|
ref_key: "containerRef",
|
|
3980
|
-
ref:
|
|
3976
|
+
ref: P,
|
|
3981
3977
|
class: p(["docx-color-picker", t.className]),
|
|
3982
3978
|
style: m(t.style)
|
|
3983
3979
|
}, [t.splitButton ? (v(), a("div", {
|
|
@@ -3987,26 +3983,26 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
3987
3983
|
type: "button",
|
|
3988
3984
|
class: "docx-color-picker__apply",
|
|
3989
3985
|
disabled: t.disabled,
|
|
3990
|
-
title: t.title ??
|
|
3991
|
-
"aria-label": t.title ??
|
|
3986
|
+
title: t.title ?? B.value,
|
|
3987
|
+
"aria-label": t.title ?? B.value,
|
|
3992
3988
|
onMousedown: r[0] ||= k(() => {}, ["prevent"]),
|
|
3993
|
-
onClick:
|
|
3989
|
+
onClick: ue
|
|
3994
3990
|
}, [c($, {
|
|
3995
|
-
name:
|
|
3991
|
+
name: V.value,
|
|
3996
3992
|
size: 18
|
|
3997
3993
|
}, null, 8, ["name"]), o("span", {
|
|
3998
|
-
class: p(["docx-color-picker__bar", { "is-light":
|
|
3999
|
-
style: m({ background:
|
|
3994
|
+
class: p(["docx-color-picker__bar", { "is-light": z.value === "transparent" || S(z.value) }]),
|
|
3995
|
+
style: m({ background: z.value === "transparent" ? "#fff" : z.value })
|
|
4000
3996
|
}, null, 6)], 40, Yt), o("button", {
|
|
4001
3997
|
type: "button",
|
|
4002
3998
|
class: p(["docx-color-picker__arrow", { "is-open": j.value }]),
|
|
4003
3999
|
disabled: t.disabled,
|
|
4004
|
-
title: t.title ??
|
|
4005
|
-
"aria-label": t.title ??
|
|
4000
|
+
title: t.title ?? B.value,
|
|
4001
|
+
"aria-label": t.title ?? B.value,
|
|
4006
4002
|
"aria-haspopup": "true",
|
|
4007
4003
|
"aria-expanded": j.value,
|
|
4008
4004
|
onMousedown: r[1] ||= k(() => {}, ["prevent"]),
|
|
4009
|
-
onClick:
|
|
4005
|
+
onClick: le
|
|
4010
4006
|
}, [c($, {
|
|
4011
4007
|
name: "arrow_drop_down",
|
|
4012
4008
|
size: 18
|
|
@@ -4015,40 +4011,40 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4015
4011
|
type: "button",
|
|
4016
4012
|
class: p(["docx-color-picker__button", { "is-open": j.value }]),
|
|
4017
4013
|
disabled: t.disabled,
|
|
4018
|
-
title: t.title ??
|
|
4019
|
-
"aria-label": t.title ??
|
|
4014
|
+
title: t.title ?? B.value,
|
|
4015
|
+
"aria-label": t.title ?? B.value,
|
|
4020
4016
|
"aria-haspopup": "true",
|
|
4021
4017
|
"aria-expanded": j.value,
|
|
4022
4018
|
onMousedown: r[2] ||= k(() => {}, ["prevent"]),
|
|
4023
|
-
onClick:
|
|
4019
|
+
onClick: le
|
|
4024
4020
|
}, [o("span", Qt, [c($, {
|
|
4025
|
-
name:
|
|
4021
|
+
name: V.value,
|
|
4026
4022
|
size: 18
|
|
4027
4023
|
}, null, 8, ["name"]), o("span", {
|
|
4028
|
-
class: p(["docx-color-picker__bar", { "is-light":
|
|
4029
|
-
style: m({ background:
|
|
4024
|
+
class: p(["docx-color-picker__bar", { "is-light": R.value === "transparent" || S(R.value) }]),
|
|
4025
|
+
style: m({ background: R.value === "transparent" ? "#fff" : R.value })
|
|
4030
4026
|
}, null, 6)]), c($, {
|
|
4031
4027
|
name: "arrow_drop_down",
|
|
4032
4028
|
size: 14
|
|
4033
4029
|
})], 42, Zt)), j.value && !t.disabled ? (v(), a("div", {
|
|
4034
4030
|
key: 2,
|
|
4035
4031
|
ref_key: "panelRef",
|
|
4036
|
-
ref:
|
|
4032
|
+
ref: F,
|
|
4037
4033
|
class: "docx-color-picker__panel",
|
|
4038
|
-
style: m(
|
|
4034
|
+
style: m(se.value),
|
|
4039
4035
|
role: "dialog",
|
|
4040
|
-
"aria-label": E(d)("colorPicker.ariaLabel", { type:
|
|
4041
|
-
onMousedown:
|
|
4036
|
+
"aria-label": E(d)("colorPicker.ariaLabel", { type: B.value }),
|
|
4037
|
+
onMousedown: fe
|
|
4042
4038
|
}, [
|
|
4043
4039
|
o("button", {
|
|
4044
4040
|
type: "button",
|
|
4045
4041
|
class: "docx-color-picker__auto",
|
|
4046
4042
|
onMousedown: r[3] ||= k(() => {}, ["prevent"]),
|
|
4047
|
-
onClick:
|
|
4043
|
+
onClick: W
|
|
4048
4044
|
}, [t.mode === "highlight" ? (v(), a("span", en, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (v(), a("span", tn)), s(" " + w(t.autoLabel ?? (t.mode === "highlight" ? E(d)("colorPicker.noColor") : E(d)("colorPicker.automatic"))), 1)], 32),
|
|
4049
4045
|
r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4050
4046
|
o("div", nn, w(E(d)("colorPicker.themeColors")), 1),
|
|
4051
|
-
o("div", rn, [(v(!0), a(e, null, x(
|
|
4047
|
+
o("div", rn, [(v(!0), a(e, null, x(L.value, (e) => (v(), a("button", {
|
|
4052
4048
|
key: e.key,
|
|
4053
4049
|
type: "button",
|
|
4054
4050
|
class: p(["docx-color-picker__cell", { "is-selected": C(t.value, e.hex) }]),
|
|
@@ -4057,7 +4053,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4057
4053
|
"aria-label": e.label,
|
|
4058
4054
|
"aria-selected": C(t.value, e.hex),
|
|
4059
4055
|
onMousedown: r[4] ||= k(() => {}, ["prevent"]),
|
|
4060
|
-
onClick: (t) =>
|
|
4056
|
+
onClick: (t) => de(e)
|
|
4061
4057
|
}, null, 46, an))), 128))]),
|
|
4062
4058
|
r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4063
4059
|
o("div", on, w(E(d)("colorPicker.standardColors")), 1),
|
|
@@ -4070,7 +4066,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4070
4066
|
"aria-label": E(d)(e.nameKey),
|
|
4071
4067
|
"aria-selected": C(t.value, e.hex),
|
|
4072
4068
|
onMousedown: r[5] ||= k(() => {}, ["prevent"]),
|
|
4073
|
-
onClick: (t) =>
|
|
4069
|
+
onClick: (t) => U(e.hex)
|
|
4074
4070
|
}, null, 46, cn)), 64))]),
|
|
4075
4071
|
r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4076
4072
|
o("div", ln, w(E(d)("colorPicker.customColor")), 1),
|
|
@@ -4084,7 +4080,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4084
4080
|
maxlength: "6",
|
|
4085
4081
|
"aria-label": "Custom hex color",
|
|
4086
4082
|
onInput: r[7] ||= (e) => M.value = M.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4087
|
-
onKeydown: ne(k(
|
|
4083
|
+
onKeydown: ne(k(G, ["prevent"]), ["enter"]),
|
|
4088
4084
|
onMousedown: r[8] ||= k(() => {}, ["stop"])
|
|
4089
4085
|
}, null, 40, dn), [[ee, M.value]]),
|
|
4090
4086
|
o("button", {
|
|
@@ -4092,7 +4088,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4092
4088
|
class: "docx-color-picker__apply-btn",
|
|
4093
4089
|
disabled: !y(M.value),
|
|
4094
4090
|
onMousedown: r[9] ||= k(() => {}, ["prevent"]),
|
|
4095
|
-
onClick:
|
|
4091
|
+
onClick: G
|
|
4096
4092
|
}, w(E(d)("common.apply")), 41, fn)
|
|
4097
4093
|
])
|
|
4098
4094
|
], 44, $t)) : i("", !0)], 6));
|
|
@@ -4110,7 +4106,7 @@ var Ot = "en", kt = (e, t) => Dt({
|
|
|
4110
4106
|
setup(e, { emit: t }) {
|
|
4111
4107
|
let r = e, i = t;
|
|
4112
4108
|
function o(e) {
|
|
4113
|
-
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ?
|
|
4109
|
+
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? P({
|
|
4114
4110
|
text: e,
|
|
4115
4111
|
units: "codeUnits",
|
|
4116
4112
|
end: 10
|
|
@@ -4522,4 +4518,4 @@ var Kn = l({
|
|
|
4522
4518
|
return Wn(e.components), () => t.default?.();
|
|
4523
4519
|
}
|
|
4524
4520
|
});
|
|
4525
|
-
export {
|
|
4521
|
+
export { oe as C, Rt as S, Ht as _, Gn as a, Mt as b, An as c, _n as d, hn as f, Q as g, Gt as h, Un as i, xn as l, $ as m, Kn as n, Bn as o, pn as p, Wn as r, In as s, Vn as t, yn as u, Ot as v, Lt as x, zt as y };
|