@tech_carthagos/page-builder 1.0.73 → 1.0.74
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/index.cjs.js +16 -16
- package/dist/index.es.js +829 -810
- package/dist-types/user/Video.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, Fragment as lr, jsxs as P } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import I, { createContext as Vn, useContext as gr, forwardRef as Ds, createElement as Ra, useMemo as Be, useRef as tt, useCallback as _a, useEffect as
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import I, { createContext as Vn, useContext as gr, forwardRef as Ds, createElement as Ra, useMemo as Be, useRef as tt, useCallback as _a, useEffect as _e, useState as me, isValidElement as Oo, cloneElement as rm, Fragment as nm, Children as om, useLayoutEffect as im, Suspense as am } from "react";
|
|
4
4
|
import * as _d from "react-dom";
|
|
5
5
|
import Pd from "react-dom";
|
|
6
6
|
import { useQuery as sm } from "@tanstack/react-query";
|
|
@@ -13,7 +13,7 @@ function kd(t) {
|
|
|
13
13
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
14
14
|
return n;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function ht() {
|
|
17
17
|
for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (e = kd(t)) && (n && (n += " "), n += e);
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
@@ -190,10 +190,10 @@ const Ls = "-", um = (t) => {
|
|
|
190
190
|
}
|
|
191
191
|
b = !1;
|
|
192
192
|
}
|
|
193
|
-
const m = mm(c).join(":"), y = p ? m + Dd : m,
|
|
194
|
-
if (i.includes(
|
|
193
|
+
const m = mm(c).join(":"), y = p ? m + Dd : m, v = y + g;
|
|
194
|
+
if (i.includes(v))
|
|
195
195
|
continue;
|
|
196
|
-
i.push(
|
|
196
|
+
i.push(v);
|
|
197
197
|
const w = o(g, b);
|
|
198
198
|
for (let S = 0; S < w.length; ++S) {
|
|
199
199
|
const N = w[S];
|
|
@@ -237,7 +237,7 @@ function xm(t, ...e) {
|
|
|
237
237
|
const ce = (t) => {
|
|
238
238
|
const e = (r) => r[t] || [];
|
|
239
239
|
return e.isThemeGetter = !0, e;
|
|
240
|
-
}, Md = /^\[(?:([a-z-]+):)?(.+)\]$/i, wm = /^\d+\/\d+$/, Sm = /* @__PURE__ */ new Set(["px", "full", "screen"]), Em = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Cm = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tm = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Nm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Am = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
240
|
+
}, Md = /^\[(?:([a-z-]+):)?(.+)\]$/i, wm = /^\d+\/\d+$/, Sm = /* @__PURE__ */ new Set(["px", "full", "screen"]), Em = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Cm = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tm = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Nm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Am = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Et = (t) => Ir(t) || Sm.has(t) || wm.test(t), Ht = (t) => Kr(t, "length", Lm), Ir = (t) => !!t && !Number.isNaN(Number(t)), ia = (t) => Kr(t, "number", Ir), pn = (t) => !!t && Number.isInteger(Number(t)), Om = (t) => t.endsWith("%") && Ir(t.slice(0, -1)), X = (t) => Md.test(t), qt = (t) => Em.test(t), Rm = /* @__PURE__ */ new Set(["length", "size", "percentage"]), _m = (t) => Kr(t, Rm, jd), Pm = (t) => Kr(t, "position", jd), km = /* @__PURE__ */ new Set(["image", "url"]), Im = (t) => Kr(t, km, jm), Dm = (t) => Kr(t, "", Mm), hn = () => !0, Kr = (t, e, r) => {
|
|
241
241
|
const n = Md.exec(t);
|
|
242
242
|
return n ? n[1] ? typeof e == "string" ? n[1] === e : e.has(n[1]) : r(n[2]) : !1;
|
|
243
243
|
}, Lm = (t) => (
|
|
@@ -246,13 +246,13 @@ const ce = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
Cm.test(t) && !Tm.test(t)
|
|
248
248
|
), jd = () => !1, Mm = (t) => Nm.test(t), jm = (t) => Am.test(t), $m = () => {
|
|
249
|
-
const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), b = ce("gradientColorStopPositions"), g = ce("inset"), m = ce("margin"), y = ce("opacity"),
|
|
249
|
+
const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), b = ce("gradientColorStopPositions"), g = ce("inset"), m = ce("margin"), y = ce("opacity"), v = ce("padding"), w = ce("saturate"), S = ce("scale"), N = ce("sepia"), O = ce("skew"), k = ce("space"), j = ce("translate"), F = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", X, e], C = () => [X, e], D = () => ["", Et, Ht], L = () => ["auto", Ir, X], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], _ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", X], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ne = () => [Ir, X];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
253
253
|
theme: {
|
|
254
254
|
colors: [hn],
|
|
255
|
-
spacing: [
|
|
255
|
+
spacing: [Et, Ht],
|
|
256
256
|
blur: ["none", "", qt, X],
|
|
257
257
|
brightness: ne(),
|
|
258
258
|
borderColor: [t],
|
|
@@ -714,63 +714,63 @@ const ce = (t) => {
|
|
|
714
714
|
* @see https://tailwindcss.com/docs/padding
|
|
715
715
|
*/
|
|
716
716
|
p: [{
|
|
717
|
-
p: [
|
|
717
|
+
p: [v]
|
|
718
718
|
}],
|
|
719
719
|
/**
|
|
720
720
|
* Padding X
|
|
721
721
|
* @see https://tailwindcss.com/docs/padding
|
|
722
722
|
*/
|
|
723
723
|
px: [{
|
|
724
|
-
px: [
|
|
724
|
+
px: [v]
|
|
725
725
|
}],
|
|
726
726
|
/**
|
|
727
727
|
* Padding Y
|
|
728
728
|
* @see https://tailwindcss.com/docs/padding
|
|
729
729
|
*/
|
|
730
730
|
py: [{
|
|
731
|
-
py: [
|
|
731
|
+
py: [v]
|
|
732
732
|
}],
|
|
733
733
|
/**
|
|
734
734
|
* Padding Start
|
|
735
735
|
* @see https://tailwindcss.com/docs/padding
|
|
736
736
|
*/
|
|
737
737
|
ps: [{
|
|
738
|
-
ps: [
|
|
738
|
+
ps: [v]
|
|
739
739
|
}],
|
|
740
740
|
/**
|
|
741
741
|
* Padding End
|
|
742
742
|
* @see https://tailwindcss.com/docs/padding
|
|
743
743
|
*/
|
|
744
744
|
pe: [{
|
|
745
|
-
pe: [
|
|
745
|
+
pe: [v]
|
|
746
746
|
}],
|
|
747
747
|
/**
|
|
748
748
|
* Padding Top
|
|
749
749
|
* @see https://tailwindcss.com/docs/padding
|
|
750
750
|
*/
|
|
751
751
|
pt: [{
|
|
752
|
-
pt: [
|
|
752
|
+
pt: [v]
|
|
753
753
|
}],
|
|
754
754
|
/**
|
|
755
755
|
* Padding Right
|
|
756
756
|
* @see https://tailwindcss.com/docs/padding
|
|
757
757
|
*/
|
|
758
758
|
pr: [{
|
|
759
|
-
pr: [
|
|
759
|
+
pr: [v]
|
|
760
760
|
}],
|
|
761
761
|
/**
|
|
762
762
|
* Padding Bottom
|
|
763
763
|
* @see https://tailwindcss.com/docs/padding
|
|
764
764
|
*/
|
|
765
765
|
pb: [{
|
|
766
|
-
pb: [
|
|
766
|
+
pb: [v]
|
|
767
767
|
}],
|
|
768
768
|
/**
|
|
769
769
|
* Padding Left
|
|
770
770
|
* @see https://tailwindcss.com/docs/padding
|
|
771
771
|
*/
|
|
772
772
|
pl: [{
|
|
773
|
-
pl: [
|
|
773
|
+
pl: [v]
|
|
774
774
|
}],
|
|
775
775
|
/**
|
|
776
776
|
* Margin
|
|
@@ -992,7 +992,7 @@ const ce = (t) => {
|
|
|
992
992
|
* @see https://tailwindcss.com/docs/line-height
|
|
993
993
|
*/
|
|
994
994
|
leading: [{
|
|
995
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
995
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Et, X]
|
|
996
996
|
}],
|
|
997
997
|
/**
|
|
998
998
|
* List Style Image
|
|
@@ -1068,14 +1068,14 @@ const ce = (t) => {
|
|
|
1068
1068
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1069
1069
|
*/
|
|
1070
1070
|
"text-decoration-thickness": [{
|
|
1071
|
-
decoration: ["auto", "from-font",
|
|
1071
|
+
decoration: ["auto", "from-font", Et, Ht]
|
|
1072
1072
|
}],
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Text Underline Offset
|
|
1075
1075
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1076
1076
|
*/
|
|
1077
1077
|
"underline-offset": [{
|
|
1078
|
-
"underline-offset": ["auto",
|
|
1078
|
+
"underline-offset": ["auto", Et, X]
|
|
1079
1079
|
}],
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Text Decoration Color
|
|
@@ -1557,14 +1557,14 @@ const ce = (t) => {
|
|
|
1557
1557
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1558
1558
|
*/
|
|
1559
1559
|
"outline-offset": [{
|
|
1560
|
-
"outline-offset": [
|
|
1560
|
+
"outline-offset": [Et, X]
|
|
1561
1561
|
}],
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Outline Width
|
|
1564
1564
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1565
1565
|
*/
|
|
1566
1566
|
"outline-w": [{
|
|
1567
|
-
outline: [
|
|
1567
|
+
outline: [Et, Ht]
|
|
1568
1568
|
}],
|
|
1569
1569
|
/**
|
|
1570
1570
|
* Outline Color
|
|
@@ -1604,7 +1604,7 @@ const ce = (t) => {
|
|
|
1604
1604
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1605
1605
|
*/
|
|
1606
1606
|
"ring-offset-w": [{
|
|
1607
|
-
"ring-offset": [
|
|
1607
|
+
"ring-offset": [Et, Ht]
|
|
1608
1608
|
}],
|
|
1609
1609
|
/**
|
|
1610
1610
|
* Ring Offset Color
|
|
@@ -1926,14 +1926,14 @@ const ce = (t) => {
|
|
|
1926
1926
|
* @see https://tailwindcss.com/docs/skew
|
|
1927
1927
|
*/
|
|
1928
1928
|
"skew-x": [{
|
|
1929
|
-
"skew-x": [
|
|
1929
|
+
"skew-x": [O]
|
|
1930
1930
|
}],
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Skew Y
|
|
1933
1933
|
* @see https://tailwindcss.com/docs/skew
|
|
1934
1934
|
*/
|
|
1935
1935
|
"skew-y": [{
|
|
1936
|
-
"skew-y": [
|
|
1936
|
+
"skew-y": [O]
|
|
1937
1937
|
}],
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Transform Origin
|
|
@@ -2199,7 +2199,7 @@ const ce = (t) => {
|
|
|
2199
2199
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2200
2200
|
*/
|
|
2201
2201
|
"stroke-w": [{
|
|
2202
|
-
stroke: [
|
|
2202
|
+
stroke: [Et, Ht, ia]
|
|
2203
2203
|
}],
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Stroke
|
|
@@ -2276,27 +2276,27 @@ const ce = (t) => {
|
|
|
2276
2276
|
};
|
|
2277
2277
|
}, $d = /* @__PURE__ */ xm($m);
|
|
2278
2278
|
function Oe(...t) {
|
|
2279
|
-
return $d(
|
|
2279
|
+
return $d(ht(t));
|
|
2280
2280
|
}
|
|
2281
|
-
const En =
|
|
2281
|
+
const En = x.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Oe("rounded-lg border bg-card text-card-foreground shadow-sm", t), ...e }));
|
|
2282
2282
|
En.displayName = "Card";
|
|
2283
|
-
const Bm =
|
|
2283
|
+
const Bm = x.forwardRef(
|
|
2284
2284
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Oe("flex flex-col space-y-1.5 p-6", t), ...e })
|
|
2285
2285
|
);
|
|
2286
2286
|
Bm.displayName = "CardHeader";
|
|
2287
|
-
const Fm =
|
|
2287
|
+
const Fm = x.forwardRef(
|
|
2288
2288
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("h3", { ref: r, className: Oe("text-2xl font-semibold leading-none tracking-tight", t), ...e })
|
|
2289
2289
|
);
|
|
2290
2290
|
Fm.displayName = "CardTitle";
|
|
2291
|
-
const Hm =
|
|
2291
|
+
const Hm = x.forwardRef(
|
|
2292
2292
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("p", { ref: r, className: Oe("text-sm text-muted-foreground", t), ...e })
|
|
2293
2293
|
);
|
|
2294
2294
|
Hm.displayName = "CardDescription";
|
|
2295
|
-
const Cn =
|
|
2295
|
+
const Cn = x.forwardRef(
|
|
2296
2296
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Oe("p-6 pt-0", t), ...e })
|
|
2297
2297
|
);
|
|
2298
2298
|
Cn.displayName = "CardContent";
|
|
2299
|
-
const qm =
|
|
2299
|
+
const qm = x.forwardRef(
|
|
2300
2300
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Oe("flex items-center p-6 pt-0", t), ...e })
|
|
2301
2301
|
);
|
|
2302
2302
|
qm.displayName = "CardFooter";
|
|
@@ -2868,9 +2868,9 @@ function bi(...t) {
|
|
|
2868
2868
|
};
|
|
2869
2869
|
}
|
|
2870
2870
|
function Ae(...t) {
|
|
2871
|
-
return
|
|
2871
|
+
return x.useCallback(bi(...t), t);
|
|
2872
2872
|
}
|
|
2873
|
-
var pb = Symbol.for("react.lazy"), Bo =
|
|
2873
|
+
var pb = Symbol.for("react.lazy"), Bo = x[" use ".trim().toString()];
|
|
2874
2874
|
function hb(t) {
|
|
2875
2875
|
return typeof t == "object" && t !== null && "then" in t;
|
|
2876
2876
|
}
|
|
@@ -2879,13 +2879,13 @@ function Yd(t) {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
// @__NO_SIDE_EFFECTS__
|
|
2881
2881
|
function mb(t) {
|
|
2882
|
-
const e = /* @__PURE__ */ gb(t), r =
|
|
2882
|
+
const e = /* @__PURE__ */ gb(t), r = x.forwardRef((n, o) => {
|
|
2883
2883
|
let { children: i, ...a } = n;
|
|
2884
2884
|
Yd(i) && typeof Bo == "function" && (i = Bo(i._payload));
|
|
2885
|
-
const s =
|
|
2885
|
+
const s = x.Children.toArray(i), u = s.find(vb);
|
|
2886
2886
|
if (u) {
|
|
2887
|
-
const l = u.props.children, c = s.map((p) => p === u ?
|
|
2888
|
-
return /* @__PURE__ */ h(e, { ...a, ref: o, children:
|
|
2887
|
+
const l = u.props.children, c = s.map((p) => p === u ? x.Children.count(l) > 1 ? x.Children.only(null) : x.isValidElement(l) ? l.props.children : null : p);
|
|
2888
|
+
return /* @__PURE__ */ h(e, { ...a, ref: o, children: x.isValidElement(l) ? x.cloneElement(l, void 0, c) : null });
|
|
2889
2889
|
}
|
|
2890
2890
|
return /* @__PURE__ */ h(e, { ...a, ref: o, children: i });
|
|
2891
2891
|
});
|
|
@@ -2894,19 +2894,19 @@ function mb(t) {
|
|
|
2894
2894
|
var bb = /* @__PURE__ */ mb("Slot");
|
|
2895
2895
|
// @__NO_SIDE_EFFECTS__
|
|
2896
2896
|
function gb(t) {
|
|
2897
|
-
const e =
|
|
2897
|
+
const e = x.forwardRef((r, n) => {
|
|
2898
2898
|
let { children: o, ...i } = r;
|
|
2899
|
-
if (Yd(o) && typeof Bo == "function" && (o = Bo(o._payload)),
|
|
2899
|
+
if (Yd(o) && typeof Bo == "function" && (o = Bo(o._payload)), x.isValidElement(o)) {
|
|
2900
2900
|
const a = wb(o), s = xb(i, o.props);
|
|
2901
|
-
return o.type !==
|
|
2901
|
+
return o.type !== x.Fragment && (s.ref = n ? bi(n, a) : a), x.cloneElement(o, s);
|
|
2902
2902
|
}
|
|
2903
|
-
return
|
|
2903
|
+
return x.Children.count(o) > 1 ? x.Children.only(null) : null;
|
|
2904
2904
|
});
|
|
2905
2905
|
return e.displayName = `${t}.SlotClone`, e;
|
|
2906
2906
|
}
|
|
2907
2907
|
var yb = Symbol("radix.slottable");
|
|
2908
2908
|
function vb(t) {
|
|
2909
|
-
return
|
|
2909
|
+
return x.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === yb;
|
|
2910
2910
|
}
|
|
2911
2911
|
function xb(t, e) {
|
|
2912
2912
|
const r = { ...e };
|
|
@@ -2924,7 +2924,7 @@ function wb(t) {
|
|
|
2924
2924
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
2925
2925
|
return r ? t.ref : (e = (o = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : o.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
2926
2926
|
}
|
|
2927
|
-
const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl =
|
|
2927
|
+
const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = ht, Xd = (t, e) => (r) => {
|
|
2928
2928
|
var n;
|
|
2929
2929
|
if ((e == null ? void 0 : e.variants) == null) return xl(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
2930
2930
|
const { variants: o, defaultVariants: i } = e, a = Object.keys(o).map((l) => {
|
|
@@ -2978,7 +2978,7 @@ const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = mt, X
|
|
|
2978
2978
|
size: "default"
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
),
|
|
2981
|
+
), Rt = x.forwardRef(
|
|
2982
2982
|
({ className: t, variant: e, size: r, asChild: n = !1, ...o }, i) => /* @__PURE__ */ h(
|
|
2983
2983
|
n ? bb : "button",
|
|
2984
2984
|
{
|
|
@@ -2988,9 +2988,9 @@ const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = mt, X
|
|
|
2988
2988
|
}
|
|
2989
2989
|
)
|
|
2990
2990
|
);
|
|
2991
|
-
|
|
2991
|
+
Rt.displayName = "Button";
|
|
2992
2992
|
function Eb(...t) {
|
|
2993
|
-
return $d(
|
|
2993
|
+
return $d(ht(t));
|
|
2994
2994
|
}
|
|
2995
2995
|
function ge(t) {
|
|
2996
2996
|
for (var e = arguments.length, r = Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) r[n - 1] = arguments[n];
|
|
@@ -3005,7 +3005,7 @@ function ge(t) {
|
|
|
3005
3005
|
function cr(t) {
|
|
3006
3006
|
return !!t && !!t[oe];
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function mt(t) {
|
|
3009
3009
|
var e;
|
|
3010
3010
|
return !!t && (function(r) {
|
|
3011
3011
|
if (!r || typeof r != "object") return !1;
|
|
@@ -3059,7 +3059,7 @@ function Gs(t) {
|
|
|
3059
3059
|
return Object.create(Object.getPrototypeOf(t), e);
|
|
3060
3060
|
}
|
|
3061
3061
|
function Ys(t, e) {
|
|
3062
|
-
return e === void 0 && (e = !1), Xs(t) || cr(t) || !
|
|
3062
|
+
return e === void 0 && (e = !1), Xs(t) || cr(t) || !mt(t) || (Gt(t) > 1 && (t.set = t.add = t.clear = t.delete = Tb), Object.freeze(t), e && dr(t, function(r, n) {
|
|
3063
3063
|
return Ys(n, !0);
|
|
3064
3064
|
}, !0)), t;
|
|
3065
3065
|
}
|
|
@@ -3069,7 +3069,7 @@ function Tb() {
|
|
|
3069
3069
|
function Xs(t) {
|
|
3070
3070
|
return t == null || typeof t != "object" || Object.isFrozen(t);
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function ct(t) {
|
|
3073
3073
|
var e = Da[t];
|
|
3074
3074
|
return e || ge(18, t), e;
|
|
3075
3075
|
}
|
|
@@ -3080,7 +3080,7 @@ function Fo() {
|
|
|
3080
3080
|
return process.env.NODE_ENV === "production" || jr || ge(0), jr;
|
|
3081
3081
|
}
|
|
3082
3082
|
function aa(t, e) {
|
|
3083
|
-
e && (
|
|
3083
|
+
e && (ct("Patches"), t.u = [], t.s = [], t.v = e);
|
|
3084
3084
|
}
|
|
3085
3085
|
function Ho(t) {
|
|
3086
3086
|
Ia(t), t.p.forEach(Nb), t.p = null;
|
|
@@ -3098,7 +3098,7 @@ function Nb(t) {
|
|
|
3098
3098
|
function sa(t, e) {
|
|
3099
3099
|
e._ = e.p.length;
|
|
3100
3100
|
var r = e.p[0], n = t !== void 0 && t !== r;
|
|
3101
|
-
return e.h.O ||
|
|
3101
|
+
return e.h.O || ct("ES5").S(e, t, n), n ? (r[oe].P && (Ho(e), ge(4)), mt(t) && (t = qo(e, t), e.l || zo(e, t)), e.u && ct("Patches").M(r[oe].t, t, e.u, e.s)) : t = qo(e, r, []), Ho(e), e.u && e.v(e.u, e.s), t !== Js ? t : void 0;
|
|
3102
3102
|
}
|
|
3103
3103
|
function qo(t, e, r) {
|
|
3104
3104
|
if (Xs(e)) return e;
|
|
@@ -3113,7 +3113,7 @@ function qo(t, e, r) {
|
|
|
3113
3113
|
var o = n.i === 4 || n.i === 5 ? n.o = Gs(n.k) : n.o, i = o, a = !1;
|
|
3114
3114
|
n.i === 3 && (i = new Set(o), o.clear(), a = !0), dr(i, function(s, u) {
|
|
3115
3115
|
return Sl(t, n, o, s, u, r, a);
|
|
3116
|
-
}), zo(t, o, !1), r && t.u &&
|
|
3116
|
+
}), zo(t, o, !1), r && t.u && ct("Patches").N(n, r, t.u, t.s);
|
|
3117
3117
|
}
|
|
3118
3118
|
return n.o;
|
|
3119
3119
|
}
|
|
@@ -3123,7 +3123,7 @@ function Sl(t, e, r, n, o, i, a) {
|
|
|
3123
3123
|
if (Kd(r, n, s), !cr(s)) return;
|
|
3124
3124
|
t.m = !1;
|
|
3125
3125
|
} else a && r.add(o);
|
|
3126
|
-
if (
|
|
3126
|
+
if (mt(o) && !Xs(o)) {
|
|
3127
3127
|
if (!t.h.D && t._ < 1) return;
|
|
3128
3128
|
qo(t, o), e && e.A.l || zo(t, o);
|
|
3129
3129
|
}
|
|
@@ -3142,27 +3142,27 @@ function El(t, e) {
|
|
|
3142
3142
|
r = Object.getPrototypeOf(r);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
function
|
|
3146
|
-
t.P || (t.P = !0, t.l &&
|
|
3145
|
+
function At(t) {
|
|
3146
|
+
t.P || (t.P = !0, t.l && At(t.l));
|
|
3147
3147
|
}
|
|
3148
3148
|
function la(t) {
|
|
3149
3149
|
t.o || (t.o = Gs(t.t));
|
|
3150
3150
|
}
|
|
3151
3151
|
function Rn(t, e, r) {
|
|
3152
|
-
var n = gi(e) ?
|
|
3152
|
+
var n = gi(e) ? ct("MapSet").F(e, r) : yi(e) ? ct("MapSet").T(e, r) : t.O ? function(o, i) {
|
|
3153
3153
|
var a = Array.isArray(o), s = { i: a ? 1 : 0, A: i ? i.A : Fo(), P: !1, I: !1, R: {}, l: i, t: o, k: null, o: null, j: null, C: !1 }, u = s, l = La;
|
|
3154
3154
|
a && (u = [s], l = wn);
|
|
3155
3155
|
var c = Proxy.revocable(u, l), p = c.revoke, f = c.proxy;
|
|
3156
3156
|
return s.k = f, s.j = p, f;
|
|
3157
|
-
}(e, r) :
|
|
3157
|
+
}(e, r) : ct("ES5").J(e, r);
|
|
3158
3158
|
return (r ? r.A : Fo()).p.push(n), n;
|
|
3159
3159
|
}
|
|
3160
3160
|
function Ab(t) {
|
|
3161
3161
|
return cr(t) || ge(22, t), function e(r) {
|
|
3162
|
-
if (!
|
|
3162
|
+
if (!mt(r)) return r;
|
|
3163
3163
|
var n, o = r[oe], i = Gt(r);
|
|
3164
3164
|
if (o) {
|
|
3165
|
-
if (!o.P && (o.i < 4 || !
|
|
3165
|
+
if (!o.P && (o.i < 4 || !ct("ES5").K(o))) return o.t;
|
|
3166
3166
|
o.I = !0, n = Cl(r, i), o.I = !1;
|
|
3167
3167
|
} else n = Cl(r, i);
|
|
3168
3168
|
return dr(n, function(a, s) {
|
|
@@ -3181,7 +3181,7 @@ function Cl(t, e) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
function Ob() {
|
|
3183
3183
|
function t(n) {
|
|
3184
|
-
if (!
|
|
3184
|
+
if (!mt(n)) return n;
|
|
3185
3185
|
if (Array.isArray(n)) return n.map(t);
|
|
3186
3186
|
if (gi(n)) return new Map(Array.from(n.entries()).map(function(a) {
|
|
3187
3187
|
return [a[0], t(a[1])];
|
|
@@ -3248,8 +3248,8 @@ function Ob() {
|
|
|
3248
3248
|
dr(s.R, function(d, b) {
|
|
3249
3249
|
var g = Ro(p, d), m = Ro(f, d), y = b ? On(p, d) ? "replace" : r : "remove";
|
|
3250
3250
|
if (g !== m || y !== "replace") {
|
|
3251
|
-
var
|
|
3252
|
-
l.push(y === "remove" ? { op: y, path:
|
|
3251
|
+
var v = u.concat(d);
|
|
3252
|
+
l.push(y === "remove" ? { op: y, path: v } : { op: y, path: v, value: m }), c.push(y === r ? { op: "remove", path: v } : y === "remove" ? { op: r, path: v, value: e(g) } : { op: "replace", path: v, value: e(g) });
|
|
3253
3253
|
}
|
|
3254
3254
|
});
|
|
3255
3255
|
}(n, o, i, a);
|
|
@@ -3267,9 +3267,9 @@ function Ob() {
|
|
|
3267
3267
|
var y = u.concat([m]);
|
|
3268
3268
|
l.push({ op: "replace", path: y, value: e(d[m]) }), c.push({ op: "replace", path: y, value: e(p[m]) });
|
|
3269
3269
|
}
|
|
3270
|
-
for (var
|
|
3271
|
-
var w = u.concat([
|
|
3272
|
-
l.push({ op: r, path: w, value: e(d[
|
|
3270
|
+
for (var v = p.length; v < d.length; v++) {
|
|
3271
|
+
var w = u.concat([v]);
|
|
3272
|
+
l.push({ op: r, path: w, value: e(d[v]) });
|
|
3273
3273
|
}
|
|
3274
3274
|
p.length < d.length && c.push({ op: "replace", path: u.concat(["length"]), value: p.length });
|
|
3275
3275
|
}(n, o, i, a);
|
|
@@ -3307,7 +3307,7 @@ function Rb() {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
function r(s) {
|
|
3309
3309
|
s.o || (s.o = /* @__PURE__ */ new Set(), s.t.forEach(function(u) {
|
|
3310
|
-
if (
|
|
3310
|
+
if (mt(u)) {
|
|
3311
3311
|
var l = Rn(s.A.h, u, s);
|
|
3312
3312
|
s.p.set(u, l), s.o.add(l);
|
|
3313
3313
|
} else s.o.add(u);
|
|
@@ -3334,14 +3334,14 @@ function Rb() {
|
|
|
3334
3334
|
return Ne(this[oe]).has(l);
|
|
3335
3335
|
}, u.set = function(l, c) {
|
|
3336
3336
|
var p = this[oe];
|
|
3337
|
-
return n(p), Ne(p).has(l) && Ne(p).get(l) === c || (e(p),
|
|
3337
|
+
return n(p), Ne(p).has(l) && Ne(p).get(l) === c || (e(p), At(p), p.R.set(l, !0), p.o.set(l, c), p.R.set(l, !0)), this;
|
|
3338
3338
|
}, u.delete = function(l) {
|
|
3339
3339
|
if (!this.has(l)) return !1;
|
|
3340
3340
|
var c = this[oe];
|
|
3341
|
-
return n(c), e(c),
|
|
3341
|
+
return n(c), e(c), At(c), c.t.has(l) ? c.R.set(l, !1) : c.R.delete(l), c.o.delete(l), !0;
|
|
3342
3342
|
}, u.clear = function() {
|
|
3343
3343
|
var l = this[oe];
|
|
3344
|
-
n(l), Ne(l).size && (e(l),
|
|
3344
|
+
n(l), Ne(l).size && (e(l), At(l), l.R = /* @__PURE__ */ new Map(), dr(l.t, function(c) {
|
|
3345
3345
|
l.R.set(c, !1);
|
|
3346
3346
|
}), l.o.clear());
|
|
3347
3347
|
}, u.forEach = function(l, c) {
|
|
@@ -3353,7 +3353,7 @@ function Rb() {
|
|
|
3353
3353
|
var c = this[oe];
|
|
3354
3354
|
n(c);
|
|
3355
3355
|
var p = Ne(c).get(l);
|
|
3356
|
-
if (c.I || !
|
|
3356
|
+
if (c.I || !mt(p) || p !== c.t.get(l)) return p;
|
|
3357
3357
|
var f = Rn(c.A.h, p, c);
|
|
3358
3358
|
return e(c), c.o.set(l, f), f;
|
|
3359
3359
|
}, u.keys = function() {
|
|
@@ -3392,14 +3392,14 @@ function Rb() {
|
|
|
3392
3392
|
return n(c), c.o ? !!c.o.has(l) || !(!c.p.has(l) || !c.o.has(c.p.get(l))) : c.t.has(l);
|
|
3393
3393
|
}, u.add = function(l) {
|
|
3394
3394
|
var c = this[oe];
|
|
3395
|
-
return n(c), this.has(l) || (r(c),
|
|
3395
|
+
return n(c), this.has(l) || (r(c), At(c), c.o.add(l)), this;
|
|
3396
3396
|
}, u.delete = function(l) {
|
|
3397
3397
|
if (!this.has(l)) return !1;
|
|
3398
3398
|
var c = this[oe];
|
|
3399
|
-
return n(c), r(c),
|
|
3399
|
+
return n(c), r(c), At(c), c.o.delete(l) || !!c.p.has(l) && c.o.delete(c.p.get(l));
|
|
3400
3400
|
}, u.clear = function() {
|
|
3401
3401
|
var l = this[oe];
|
|
3402
|
-
n(l), Ne(l).size && (r(l),
|
|
3402
|
+
n(l), Ne(l).size && (r(l), At(l), l.o.clear());
|
|
3403
3403
|
}, u.values = function() {
|
|
3404
3404
|
var l = this[oe];
|
|
3405
3405
|
return n(l), r(l), l.o.values();
|
|
@@ -3449,7 +3449,7 @@ var Tl, jr, Ks = typeof Symbol < "u" && typeof Symbol("x") == "symbol", _b = typ
|
|
|
3449
3449
|
return u ? "value" in u ? u.value : (s = u.get) === null || s === void 0 ? void 0 : s.call(o.k) : void 0;
|
|
3450
3450
|
}(t, r, e);
|
|
3451
3451
|
var n = r[e];
|
|
3452
|
-
return t.I || !
|
|
3452
|
+
return t.I || !mt(n) ? n : n === ua(t.t, e) ? (la(t), t.o[e] = Rn(t.A.h, n, t)) : n;
|
|
3453
3453
|
}, has: function(t, e) {
|
|
3454
3454
|
return e in Ne(t);
|
|
3455
3455
|
}, ownKeys: function(t) {
|
|
@@ -3461,11 +3461,11 @@ var Tl, jr, Ks = typeof Symbol < "u" && typeof Symbol("x") == "symbol", _b = typ
|
|
|
3461
3461
|
var o = ua(Ne(t), e), i = o == null ? void 0 : o[oe];
|
|
3462
3462
|
if (i && i.t === r) return t.o[e] = r, t.R[e] = !1, !0;
|
|
3463
3463
|
if (Cb(r, o) && (r !== void 0 || On(t.t, e))) return !0;
|
|
3464
|
-
la(t),
|
|
3464
|
+
la(t), At(t);
|
|
3465
3465
|
}
|
|
3466
3466
|
return t.o[e] === r && (r !== void 0 || e in t.o) || Number.isNaN(r) && Number.isNaN(t.o[e]) || (t.o[e] = r, t.R[e] = !0), !0;
|
|
3467
3467
|
}, deleteProperty: function(t, e) {
|
|
3468
|
-
return ua(t.t, e) !== void 0 || e in t.t ? (t.R[e] = !1, la(t),
|
|
3468
|
+
return ua(t.t, e) !== void 0 || e in t.t ? (t.R[e] = !1, la(t), At(t)) : delete t.R[e], t.o && delete t.o[e], !0;
|
|
3469
3469
|
}, getOwnPropertyDescriptor: function(t, e) {
|
|
3470
3470
|
var r = Ne(t), n = Reflect.getOwnPropertyDescriptor(r, e);
|
|
3471
3471
|
return n && { writable: !0, configurable: t.i !== 1 || e !== "length", enumerable: n.enumerable, value: r[e] };
|
|
@@ -3496,15 +3496,15 @@ var Lb = function() {
|
|
|
3496
3496
|
return function(g) {
|
|
3497
3497
|
var m = this;
|
|
3498
3498
|
g === void 0 && (g = s);
|
|
3499
|
-
for (var y = arguments.length,
|
|
3499
|
+
for (var y = arguments.length, v = Array(y > 1 ? y - 1 : 0), w = 1; w < y; w++) v[w - 1] = arguments[w];
|
|
3500
3500
|
return u.produce(g, function(S) {
|
|
3501
3501
|
var N;
|
|
3502
|
-
return (N = i).call.apply(N, [m, S].concat(
|
|
3502
|
+
return (N = i).call.apply(N, [m, S].concat(v));
|
|
3503
3503
|
});
|
|
3504
3504
|
};
|
|
3505
3505
|
}
|
|
3506
3506
|
var l;
|
|
3507
|
-
if (typeof i != "function" && ge(6), a !== void 0 && typeof a != "function" && ge(7),
|
|
3507
|
+
if (typeof i != "function" && ge(6), a !== void 0 && typeof a != "function" && ge(7), mt(o)) {
|
|
3508
3508
|
var c = wl(n), p = Rn(n, o, void 0), f = !0;
|
|
3509
3509
|
try {
|
|
3510
3510
|
l = i(p), f = !1;
|
|
@@ -3520,7 +3520,7 @@ var Lb = function() {
|
|
|
3520
3520
|
if (!o || typeof o != "object") {
|
|
3521
3521
|
if ((l = i(o)) === void 0 && (l = o), l === Js && (l = void 0), n.D && Ys(l, !0), a) {
|
|
3522
3522
|
var d = [], b = [];
|
|
3523
|
-
|
|
3523
|
+
ct("Patches").M(o, l, d, b), a(d, b);
|
|
3524
3524
|
}
|
|
3525
3525
|
return l;
|
|
3526
3526
|
}
|
|
@@ -3542,7 +3542,7 @@ var Lb = function() {
|
|
|
3542
3542
|
}
|
|
3543
3543
|
var e = t.prototype;
|
|
3544
3544
|
return e.createDraft = function(r) {
|
|
3545
|
-
|
|
3545
|
+
mt(r) || ge(8), cr(r) && (r = Ab(r));
|
|
3546
3546
|
var n = wl(this), o = Rn(this, r, void 0);
|
|
3547
3547
|
return o[oe].C = !0, Ia(n), o;
|
|
3548
3548
|
}, e.finishDraft = function(r, n) {
|
|
@@ -3564,7 +3564,7 @@ var Lb = function() {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
3566
|
o > -1 && (n = n.slice(o + 1));
|
|
3567
|
-
var a =
|
|
3567
|
+
var a = ct("Patches").$;
|
|
3568
3568
|
return cr(r) ? a(r, n) : this.produce(r, function(s) {
|
|
3569
3569
|
return a(s, n);
|
|
3570
3570
|
});
|
|
@@ -3664,7 +3664,7 @@ var hg = pg;
|
|
|
3664
3664
|
function mg(t) {
|
|
3665
3665
|
return this.__data__.has(t);
|
|
3666
3666
|
}
|
|
3667
|
-
var bg = mg, gg = typeof V == "object" && V && V.Object === Object && V, Qd = gg, yg = Qd, vg = typeof self == "object" && self && self.Object === Object && self, xg = yg || vg || Function("return this")(),
|
|
3667
|
+
var bg = mg, gg = typeof V == "object" && V && V.Object === Object && V, Qd = gg, yg = Qd, vg = typeof self == "object" && self && self.Object === Object && self, xg = yg || vg || Function("return this")(), gt = xg, wg = gt, Sg = wg.Symbol, Si = Sg, Rl = Si, ef = Object.prototype, Eg = ef.hasOwnProperty, Cg = ef.toString, mn = Rl ? Rl.toStringTag : void 0;
|
|
3668
3668
|
function Tg(t) {
|
|
3669
3669
|
var e = Eg.call(t, mn), r = t[mn];
|
|
3670
3670
|
try {
|
|
@@ -3697,7 +3697,7 @@ function zg(t) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
var Qs = zg;
|
|
3699
3699
|
const Ug = /* @__PURE__ */ vi(Qs);
|
|
3700
|
-
var Vg =
|
|
3700
|
+
var Vg = gt, Wg = Vg["__core-js_shared__"], Gg = Wg, ca = Gg, kl = function() {
|
|
3701
3701
|
var t = /[^.]+$/.exec(ca && ca.keys && ca.keys.IE_PROTO || "");
|
|
3702
3702
|
return t ? "Symbol(src)_1." + t : "";
|
|
3703
3703
|
}();
|
|
@@ -3736,7 +3736,7 @@ function b1(t, e) {
|
|
|
3736
3736
|
var r = m1(t, e);
|
|
3737
3737
|
return h1(r) ? r : void 0;
|
|
3738
3738
|
}
|
|
3739
|
-
var yr = b1, g1 = yr, y1 =
|
|
3739
|
+
var yr = b1, g1 = yr, y1 = gt, v1 = g1(y1, "Map"), eu = v1, x1 = yr, w1 = x1(Object, "create"), Ci = w1, Il = Ci;
|
|
3740
3740
|
function S1() {
|
|
3741
3741
|
this.__data__ = Il ? Il(null) : {}, this.size = 0;
|
|
3742
3742
|
}
|
|
@@ -3894,9 +3894,9 @@ function Xy(t, e, r, n, o, i) {
|
|
|
3894
3894
|
break;
|
|
3895
3895
|
}
|
|
3896
3896
|
if (d) {
|
|
3897
|
-
if (!Vy(e, function(y,
|
|
3898
|
-
if (!Wy(d,
|
|
3899
|
-
return d.push(
|
|
3897
|
+
if (!Vy(e, function(y, v) {
|
|
3898
|
+
if (!Wy(d, v) && (b === y || o(b, y, r, n, i)))
|
|
3899
|
+
return d.push(v);
|
|
3900
3900
|
})) {
|
|
3901
3901
|
f = !1;
|
|
3902
3902
|
break;
|
|
@@ -3908,7 +3908,7 @@ function Xy(t, e, r, n, o, i) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
return i.delete(t), i.delete(e), f;
|
|
3910
3910
|
}
|
|
3911
|
-
var of = Xy, Ky =
|
|
3911
|
+
var of = Xy, Ky = gt, Jy = Ky.Uint8Array, Zy = Jy;
|
|
3912
3912
|
function Qy(t) {
|
|
3913
3913
|
var e = -1, r = Array(t.size);
|
|
3914
3914
|
return t.forEach(function(n, o) {
|
|
@@ -4010,7 +4010,7 @@ function Zv() {
|
|
|
4010
4010
|
var Qv = Zv;
|
|
4011
4011
|
Vo.exports;
|
|
4012
4012
|
(function(t, e) {
|
|
4013
|
-
var r =
|
|
4013
|
+
var r = gt, n = Qv, o = e && !e.nodeType && e, i = o && !0 && t && !t.nodeType && t, a = i && i.exports === o, s = a ? r.Buffer : void 0, u = s ? s.isBuffer : void 0, l = u || n;
|
|
4014
4014
|
t.exports = l;
|
|
4015
4015
|
})(Vo, Vo.exports);
|
|
4016
4016
|
var sf = Vo.exports, e2 = 9007199254740991, t2 = /^(?:0|[1-9]\d*)$/;
|
|
@@ -4106,10 +4106,10 @@ function Ax(t, e, r, n, o, i) {
|
|
|
4106
4106
|
i.set(t, e), i.set(e, t);
|
|
4107
4107
|
for (var m = a; ++p < u; ) {
|
|
4108
4108
|
f = s[p];
|
|
4109
|
-
var y = t[f],
|
|
4109
|
+
var y = t[f], v = e[f];
|
|
4110
4110
|
if (n)
|
|
4111
|
-
var w = a ? n(
|
|
4112
|
-
if (!(w === void 0 ? y ===
|
|
4111
|
+
var w = a ? n(v, y, f, e, t, i) : n(y, v, f, t, e, i);
|
|
4112
|
+
if (!(w === void 0 ? y === v || o(y, v, r, n, i) : w)) {
|
|
4113
4113
|
g = !1;
|
|
4114
4114
|
break;
|
|
4115
4115
|
}
|
|
@@ -4121,7 +4121,7 @@ function Ax(t, e, r, n, o, i) {
|
|
|
4121
4121
|
}
|
|
4122
4122
|
return i.delete(t), i.delete(e), g;
|
|
4123
4123
|
}
|
|
4124
|
-
var Ox = Ax, Rx = yr, _x =
|
|
4124
|
+
var Ox = Ax, Rx = yr, _x = gt, Px = Rx(_x, "DataView"), kx = Px, Ix = yr, Dx = gt, Lx = Ix(Dx, "Promise"), Mx = Lx, jx = yr, $x = gt, Bx = jx($x, "Set"), Fx = Bx, Hx = yr, qx = gt, zx = Hx(qx, "WeakMap"), Ux = zx, Ma = kx, ja = eu, $a = Mx, Ba = Fx, Fa = Ux, cf = Ei, tn = rf, zl = "[object Map]", Vx = "[object Object]", Ul = "[object Promise]", Vl = "[object Set]", Wl = "[object WeakMap]", Gl = "[object DataView]", Wx = tn(Ma), Gx = tn(ja), Yx = tn($a), Xx = tn(Ba), Kx = tn(Fa), ir = cf;
|
|
4125
4125
|
(Ma && ir(new Ma(new ArrayBuffer(1))) != Gl || ja && ir(new ja()) != zl || $a && ir($a.resolve()) != Ul || Ba && ir(new Ba()) != Vl || Fa && ir(new Fa()) != Wl) && (ir = function(t) {
|
|
4126
4126
|
var e = cf(t), r = e == Vx ? t.constructor : void 0, n = r ? tn(r) : "";
|
|
4127
4127
|
if (n)
|
|
@@ -4301,7 +4301,7 @@ function hf(t, e) {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
}(t, e) || nu(t, e) || gf();
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function ke(t) {
|
|
4305
4305
|
return function(e) {
|
|
4306
4306
|
if (Array.isArray(e)) return za(e);
|
|
4307
4307
|
}(t) || bf(t) || nu(t) || function() {
|
|
@@ -4355,14 +4355,14 @@ var ye = { UNDO: "HISTORY_UNDO", REDO: "HISTORY_REDO", THROTTLE: "HISTORY_THROTT
|
|
|
4355
4355
|
if (e.length !== 0 || r.length !== 0) {
|
|
4356
4356
|
if (this.timeline.length && this.pointer >= 0) {
|
|
4357
4357
|
var o = this.timeline[this.pointer], i = o.patches, a = o.inversePatches, s = o.timestamp;
|
|
4358
|
-
if ((/* @__PURE__ */ new Date()).getTime() - s < n) return void (this.timeline[this.pointer] = { timestamp: s, patches: [].concat(
|
|
4358
|
+
if ((/* @__PURE__ */ new Date()).getTime() - s < n) return void (this.timeline[this.pointer] = { timestamp: s, patches: [].concat(ke(i), ke(e)), inversePatches: [].concat(ke(r), ke(a)) });
|
|
4359
4359
|
}
|
|
4360
4360
|
this.add(e, r);
|
|
4361
4361
|
}
|
|
4362
4362
|
} }, { key: "merge", value: function(e, r) {
|
|
4363
4363
|
if (e.length !== 0 || r.length !== 0) if (this.timeline.length && this.pointer >= 0) {
|
|
4364
4364
|
var n = this.timeline[this.pointer], o = n.inversePatches;
|
|
4365
|
-
this.timeline[this.pointer] = { timestamp: n.timestamp, patches: [].concat(
|
|
4365
|
+
this.timeline[this.pointer] = { timestamp: n.timestamp, patches: [].concat(ke(n.patches), ke(e)), inversePatches: [].concat(ke(r), ke(o)) };
|
|
4366
4366
|
} else this.add(e, r);
|
|
4367
4367
|
} }, { key: "clear", value: function() {
|
|
4368
4368
|
this.timeline = [], this.pointer = -1;
|
|
@@ -4388,9 +4388,9 @@ function Iw(t, e, r, n) {
|
|
|
4388
4388
|
var u = tt(n);
|
|
4389
4389
|
u.current = n;
|
|
4390
4390
|
var l = tt(e), c = Be(function() {
|
|
4391
|
-
var m = s.current, y = a.current,
|
|
4391
|
+
var m = s.current, y = a.current, v = u.current;
|
|
4392
4392
|
return function(w, S) {
|
|
4393
|
-
var N,
|
|
4393
|
+
var N, O = r && oc(r, function() {
|
|
4394
4394
|
return w;
|
|
4395
4395
|
}, i), k = hf(Al(w, function(E) {
|
|
4396
4396
|
var C, D;
|
|
@@ -4405,16 +4405,16 @@ function Iw(t, e, r, n) {
|
|
|
4405
4405
|
case ye.MERGE:
|
|
4406
4406
|
case ye.THROTTLE:
|
|
4407
4407
|
var L, T = mf(D = S.payload) || bf(D) || nu(D) || gf(), A = T[0], _ = T.slice(1);
|
|
4408
|
-
(L = o(E,
|
|
4408
|
+
(L = o(E, O))[A].apply(L, ke(_));
|
|
4409
4409
|
break;
|
|
4410
4410
|
default:
|
|
4411
|
-
(C = o(E,
|
|
4411
|
+
(C = o(E, O))[S.type].apply(C, ke(S.payload));
|
|
4412
4412
|
}
|
|
4413
4413
|
}), 3), j = k[0], F = k[1], $ = k[2];
|
|
4414
|
-
return N = j,
|
|
4414
|
+
return N = j, v && v(j, w, { type: S.type, params: S.payload, patches: F }, O, function(E) {
|
|
4415
4415
|
var C = Al(j, E);
|
|
4416
|
-
N = C[0], F = [].concat(
|
|
4417
|
-
}), [ye.UNDO, ye.REDO].includes(S.type) && m && (N = Mb(N, m)), [].concat(
|
|
4416
|
+
N = C[0], F = [].concat(ke(F), ke(C[1])), $ = [].concat(ke(C[2]), ke($));
|
|
4417
|
+
}), [ye.UNDO, ye.REDO].includes(S.type) && m && (N = Mb(N, m)), [].concat(ke(y), [ye.UNDO, ye.REDO, ye.IGNORE, ye.CLEAR]).includes(S.type) || (S.type === ye.THROTTLE ? i.throttleAdd(F, $, S.config && S.config.rate) : S.type === ye.MERGE ? i.merge(F, $) : i.add(F, $)), N;
|
|
4418
4418
|
};
|
|
4419
4419
|
}, [i, o, r]), p = _a(function() {
|
|
4420
4420
|
return l.current;
|
|
@@ -4424,7 +4424,7 @@ function Iw(t, e, r, n) {
|
|
|
4424
4424
|
var y = c(l.current, m);
|
|
4425
4425
|
l.current = y, f.notify();
|
|
4426
4426
|
}, [c, f]);
|
|
4427
|
-
|
|
4427
|
+
_e(function() {
|
|
4428
4428
|
f.notify();
|
|
4429
4429
|
}, [f]);
|
|
4430
4430
|
var b = Be(function() {
|
|
@@ -4433,49 +4433,49 @@ function Iw(t, e, r, n) {
|
|
|
4433
4433
|
}, i) : [];
|
|
4434
4434
|
}, [i, r]), g = Be(function() {
|
|
4435
4435
|
var m = Object.keys(o(null, null)), y = a.current;
|
|
4436
|
-
return Ve(Ve({}, m.reduce(function(
|
|
4437
|
-
return
|
|
4438
|
-
for (var S = arguments.length, N = new Array(S),
|
|
4436
|
+
return Ve(Ve({}, m.reduce(function(v, w) {
|
|
4437
|
+
return v[w] = function() {
|
|
4438
|
+
for (var S = arguments.length, N = new Array(S), O = 0; O < S; O++) N[O] = arguments[O];
|
|
4439
4439
|
return d({ type: w, payload: N });
|
|
4440
|
-
},
|
|
4440
|
+
}, v;
|
|
4441
4441
|
}, {})), {}, { history: { undo: function() {
|
|
4442
4442
|
return d({ type: ye.UNDO });
|
|
4443
4443
|
}, redo: function() {
|
|
4444
4444
|
return d({ type: ye.REDO });
|
|
4445
4445
|
}, clear: function() {
|
|
4446
4446
|
return d({ type: ye.CLEAR });
|
|
4447
|
-
}, throttle: function(
|
|
4447
|
+
}, throttle: function(v) {
|
|
4448
4448
|
return Ve({}, m.filter(function(w) {
|
|
4449
4449
|
return !y.includes(w);
|
|
4450
4450
|
}).reduce(function(w, S) {
|
|
4451
4451
|
return w[S] = function() {
|
|
4452
|
-
for (var N = arguments.length,
|
|
4453
|
-
return d({ type: ye.THROTTLE, payload: [S].concat(
|
|
4452
|
+
for (var N = arguments.length, O = new Array(N), k = 0; k < N; k++) O[k] = arguments[k];
|
|
4453
|
+
return d({ type: ye.THROTTLE, payload: [S].concat(O), config: { rate: v } });
|
|
4454
4454
|
}, w;
|
|
4455
4455
|
}, {}));
|
|
4456
4456
|
}, ignore: function() {
|
|
4457
|
-
return Ve({}, m.filter(function(
|
|
4458
|
-
return !y.includes(
|
|
4459
|
-
}).reduce(function(
|
|
4460
|
-
return
|
|
4461
|
-
for (var S = arguments.length, N = new Array(S),
|
|
4457
|
+
return Ve({}, m.filter(function(v) {
|
|
4458
|
+
return !y.includes(v);
|
|
4459
|
+
}).reduce(function(v, w) {
|
|
4460
|
+
return v[w] = function() {
|
|
4461
|
+
for (var S = arguments.length, N = new Array(S), O = 0; O < S; O++) N[O] = arguments[O];
|
|
4462
4462
|
return d({ type: ye.IGNORE, payload: [w].concat(N) });
|
|
4463
|
-
},
|
|
4463
|
+
}, v;
|
|
4464
4464
|
}, {}));
|
|
4465
4465
|
}, merge: function() {
|
|
4466
|
-
return Ve({}, m.filter(function(
|
|
4467
|
-
return !y.includes(
|
|
4468
|
-
}).reduce(function(
|
|
4469
|
-
return
|
|
4470
|
-
for (var S = arguments.length, N = new Array(S),
|
|
4466
|
+
return Ve({}, m.filter(function(v) {
|
|
4467
|
+
return !y.includes(v);
|
|
4468
|
+
}).reduce(function(v, w) {
|
|
4469
|
+
return v[w] = function() {
|
|
4470
|
+
for (var S = arguments.length, N = new Array(S), O = 0; O < S; O++) N[O] = arguments[O];
|
|
4471
4471
|
return d({ type: ye.MERGE, payload: [w].concat(N) });
|
|
4472
|
-
},
|
|
4472
|
+
}, v;
|
|
4473
4473
|
}, {}));
|
|
4474
4474
|
} } });
|
|
4475
4475
|
}, [d, o]);
|
|
4476
4476
|
return Be(function() {
|
|
4477
|
-
return { getState: p, subscribe: function(m, y,
|
|
4478
|
-
return f.subscribe(m, y,
|
|
4477
|
+
return { getState: p, subscribe: function(m, y, v) {
|
|
4478
|
+
return f.subscribe(m, y, v);
|
|
4479
4479
|
}, actions: g, query: b, history: i };
|
|
4480
4480
|
}, [g, b, f, p, i]);
|
|
4481
4481
|
}
|
|
@@ -4561,7 +4561,7 @@ function Mw(t, e) {
|
|
|
4561
4561
|
const l = _a((f) => ({ ...f, actions: o, query: i }), [o, i]);
|
|
4562
4562
|
a.current && e && (s.current = e(n(), i), a.current = !1);
|
|
4563
4563
|
const [c, p] = me(l(s.current));
|
|
4564
|
-
return
|
|
4564
|
+
return _e(() => {
|
|
4565
4565
|
let f;
|
|
4566
4566
|
return u.current && (f = r((d) => u.current(d, i), (d) => {
|
|
4567
4567
|
p(l(d));
|
|
@@ -4790,7 +4790,7 @@ var Yt = function(t, e) {
|
|
|
4790
4790
|
var Yo = { exports: {} };
|
|
4791
4791
|
Yo.exports;
|
|
4792
4792
|
(function(t, e) {
|
|
4793
|
-
var r =
|
|
4793
|
+
var r = gt, n = e && !e.nodeType && e, o = n && !0 && t && !t.nodeType && t, i = o && o.exports === n, a = i ? r.Buffer : void 0, s = a ? a.allocUnsafe : void 0;
|
|
4794
4794
|
function u(l, c) {
|
|
4795
4795
|
if (c)
|
|
4796
4796
|
return l.slice();
|
|
@@ -4977,7 +4977,7 @@ function vr(t) {
|
|
|
4977
4977
|
var n = Mw(r, t), o = Be(function() {
|
|
4978
4978
|
return e && e.createConnectorsUsage();
|
|
4979
4979
|
}, [e]);
|
|
4980
|
-
|
|
4980
|
+
_e(function() {
|
|
4981
4981
|
return o.register(), function() {
|
|
4982
4982
|
o.cleanup();
|
|
4983
4983
|
};
|
|
@@ -5048,7 +5048,7 @@ function Vt({ id: t, children: e, ...r }) {
|
|
|
5048
5048
|
}
|
|
5049
5049
|
const _f = () => Yt("<Canvas />", { suggest: "<Element canvas={true} />" });
|
|
5050
5050
|
function Ya({ ...t }) {
|
|
5051
|
-
return
|
|
5051
|
+
return _e(() => _f(), []), I.createElement(Vt, { ...t, canvas: !0 });
|
|
5052
5052
|
}
|
|
5053
5053
|
const Zw = () => {
|
|
5054
5054
|
const { timestamp: t } = vr((e) => ({ timestamp: e.nodes[_t] && e.nodes[_t]._hydrationTimestamp }));
|
|
@@ -5076,7 +5076,7 @@ const ma = (t) => {
|
|
|
5076
5076
|
const { addLinkedNodeFromTree: e, setDOM: r, setNodeEvent: n, replaceNodes: o, reset: i, ...a } = t;
|
|
5077
5077
|
return a;
|
|
5078
5078
|
};
|
|
5079
|
-
function
|
|
5079
|
+
function yt(t) {
|
|
5080
5080
|
const { connectors: e, actions: r, query: n, store: o, ...i } = vr(t), a = ma(r);
|
|
5081
5081
|
return { connectors: e, actions: Be(() => ({ ...a, history: { ...a.history, ignore: (...s) => ma(a.history.ignore(...s)), throttle: (...s) => ma(a.history.throttle(...s)) } }), [a]), query: n, store: o, ...i };
|
|
5082
5082
|
}
|
|
@@ -5085,7 +5085,7 @@ var Pf = function(t) {
|
|
|
5085
5085
|
var n = Tf(r, 2), o = n[0], i = n[1];
|
|
5086
5086
|
return fe(fe({}, e), {}, Ee({}, o, i));
|
|
5087
5087
|
}, {});
|
|
5088
|
-
},
|
|
5088
|
+
}, Ot = function(t, e, r) {
|
|
5089
5089
|
var n = Array.isArray(e) ? e : [e], o = fe({ existOnly: !1, idOnly: !1 }, r || {}), i = n.filter(function(a) {
|
|
5090
5090
|
return !!a;
|
|
5091
5091
|
}).map(function(a) {
|
|
@@ -5175,7 +5175,7 @@ function Ka(t, e) {
|
|
|
5175
5175
|
return o && o(a), !1;
|
|
5176
5176
|
}
|
|
5177
5177
|
}, isDroppable: function(o, i) {
|
|
5178
|
-
var a =
|
|
5178
|
+
var a = Ot(t.nodes, o), s = r;
|
|
5179
5179
|
try {
|
|
5180
5180
|
le(this.isCanvas(), Sw), le(s.rules.canMoveIn(a.map(function(l) {
|
|
5181
5181
|
return l.node;
|
|
@@ -5296,7 +5296,7 @@ function If(t) {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
return d;
|
|
5298
5298
|
}, []) : [], i.x, i.y), p = l.length && t.nodes[l[c.index]], f = { placement: { ...c, currentNode: p }, error: null };
|
|
5299
|
-
return
|
|
5299
|
+
return Ot(t.nodes, n).forEach(({ node: d, exists: b }) => {
|
|
5300
5300
|
b && r().node(d.id).isDraggable((g) => f.error = g);
|
|
5301
5301
|
}), r().node(u.id).isDroppable(n, (d) => f.error = d), f;
|
|
5302
5302
|
}, getOptions: () => e, getNodes: () => t.nodes, node: (n) => Ka(t, n), getSerializedNodes() {
|
|
@@ -5386,7 +5386,7 @@ var pc = function(t) {
|
|
|
5386
5386
|
var r = e.target, n = this.store.query.node(_t).get();
|
|
5387
5387
|
r instanceof Element && n && n.dom && r.contains(n.dom) && (this.currentTargetChildDimensions = null);
|
|
5388
5388
|
} }, { key: "getDraggedNodes", value: function() {
|
|
5389
|
-
return
|
|
5389
|
+
return Ot(this.store.query.getNodes(), this.dragTarget.type === "new" ? this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId] : this.dragTarget.nodes);
|
|
5390
5390
|
} }, { key: "validateDraggedNodes", value: function() {
|
|
5391
5391
|
var e = this;
|
|
5392
5392
|
this.dragTarget.type !== "new" && this.draggedNodes.forEach(function(r) {
|
|
@@ -5556,7 +5556,7 @@ function a3(t, e, r) {
|
|
|
5556
5556
|
Ee(Df, "forceSingleDragShadow", zw() && qw());
|
|
5557
5557
|
const s3 = () => {
|
|
5558
5558
|
const { indicator: t, indicatorOptions: e, enabled: r } = vr((o) => ({ indicator: o.indicator, indicatorOptions: o.options.indicator, enabled: o.options.enabled })), n = Rf();
|
|
5559
|
-
return
|
|
5559
|
+
return _e(() => {
|
|
5560
5560
|
n && (r ? n.enable() : n.disable());
|
|
5561
5561
|
}, [r, n]), t ? I.createElement(Hw, { className: e.className, style: { ...a3(t.placement, _n(t.placement.parent.dom), t.placement.currentNode && _n(t.placement.currentNode.dom), e.thickness), backgroundColor: t.error ? e.error : e.success, transition: e.transition || "0.2s ease-in", ...e.style ?? {} }, parentDom: t.placement.parent.dom }) : null;
|
|
5562
5562
|
}, u3 = ({ children: t }) => {
|
|
@@ -5620,7 +5620,7 @@ const s3 = () => {
|
|
|
5620
5620
|
}, addNodeTree: function(s, u, l) {
|
|
5621
5621
|
o(s, u, { type: "child", index: l });
|
|
5622
5622
|
}, delete: function(s) {
|
|
5623
|
-
|
|
5623
|
+
Ot(r.nodes, s, { existOnly: !0, idOnly: !0 }).forEach(function(u) {
|
|
5624
5624
|
var l = u.node;
|
|
5625
5625
|
le(!n.node(l.id).isTopLevelNode(), Nw), a(l.id);
|
|
5626
5626
|
});
|
|
@@ -5633,16 +5633,16 @@ const s3 = () => {
|
|
|
5633
5633
|
});
|
|
5634
5634
|
this.replaceNodes(Pf(l));
|
|
5635
5635
|
}, move: function(s, u, l) {
|
|
5636
|
-
var c =
|
|
5636
|
+
var c = Ot(r.nodes, s, { existOnly: !0 }), p = r.nodes[u], f = /* @__PURE__ */ new Set();
|
|
5637
5637
|
c.forEach(function(d, b) {
|
|
5638
5638
|
var g = d.node, m = g.id, y = g.data.parent;
|
|
5639
5639
|
n.node(u).isDroppable([m], function(S) {
|
|
5640
5640
|
throw new Error(S);
|
|
5641
5641
|
}), r.options.onBeforeMoveEnd(g, p, r.nodes[y]);
|
|
5642
|
-
var
|
|
5643
|
-
f.add(
|
|
5644
|
-
var w =
|
|
5645
|
-
|
|
5642
|
+
var v = r.nodes[y].data.nodes;
|
|
5643
|
+
f.add(v);
|
|
5644
|
+
var w = v.indexOf(m);
|
|
5645
|
+
v[w] = "$$", p.data.nodes.splice(l + b, 0, m), r.nodes[m].data.parent = u;
|
|
5646
5646
|
}), f.forEach(function(d) {
|
|
5647
5647
|
var b = d.length;
|
|
5648
5648
|
Pn(d).reverse().forEach(function(g, m) {
|
|
@@ -5661,7 +5661,7 @@ const s3 = () => {
|
|
|
5661
5661
|
if (r.events[s].forEach(function(p) {
|
|
5662
5662
|
r.nodes[p] && (r.nodes[p].events[s] = !1);
|
|
5663
5663
|
}), r.events[s] = /* @__PURE__ */ new Set(), u) {
|
|
5664
|
-
var l =
|
|
5664
|
+
var l = Ot(r.nodes, u, { idOnly: !0, existOnly: !0 }), c = new Set(l.map(function(p) {
|
|
5665
5665
|
return p.node.id;
|
|
5666
5666
|
}));
|
|
5667
5667
|
c.forEach(function(p) {
|
|
@@ -5669,7 +5669,7 @@ const s3 = () => {
|
|
|
5669
5669
|
}), r.events[s] = c;
|
|
5670
5670
|
}
|
|
5671
5671
|
}, setCustom: function(s, u) {
|
|
5672
|
-
|
|
5672
|
+
Ot(r.nodes, s, { idOnly: !0, existOnly: !0 }).forEach(function(l) {
|
|
5673
5673
|
return u(r.nodes[l.node.id].data.custom);
|
|
5674
5674
|
});
|
|
5675
5675
|
}, setDOM: function(s, u) {
|
|
@@ -5679,12 +5679,12 @@ const s3 = () => {
|
|
|
5679
5679
|
}, setHidden: function(s, u) {
|
|
5680
5680
|
r.nodes[s].data.hidden = u;
|
|
5681
5681
|
}, setProp: function(s, u) {
|
|
5682
|
-
|
|
5682
|
+
Ot(r.nodes, s, { idOnly: !0, existOnly: !0 }).forEach(function(l) {
|
|
5683
5683
|
return u(r.nodes[l.node.id].data.props);
|
|
5684
5684
|
});
|
|
5685
5685
|
}, selectNode: function(s) {
|
|
5686
5686
|
if (s) {
|
|
5687
|
-
var u =
|
|
5687
|
+
var u = Ot(r.nodes, s, { idOnly: !0, existOnly: !0 });
|
|
5688
5688
|
this.setNodeEvent("selected", u.map(function(l) {
|
|
5689
5689
|
return l.node.id;
|
|
5690
5690
|
}));
|
|
@@ -5708,7 +5708,7 @@ const s3 = () => {
|
|
|
5708
5708
|
});
|
|
5709
5709
|
} }, c3 = (t, e) => Iw(l3, { ...mc, options: { ...mc.options, ...t } }, If, e), Qa = ({ children: t, ...e }) => {
|
|
5710
5710
|
e.resolver !== void 0 && le(typeof e.resolver == "object" && !Array.isArray(e.resolver) && e.resolver !== null, Aw);
|
|
5711
|
-
const r =
|
|
5711
|
+
const r = x.useRef(e), n = c3(r.current, (o, i, a, s, u) => {
|
|
5712
5712
|
if (!a) return;
|
|
5713
5713
|
const { patches: l, ...c } = a;
|
|
5714
5714
|
for (let p = 0; p < l.length; p++) {
|
|
@@ -5721,16 +5721,16 @@ const s3 = () => {
|
|
|
5721
5721
|
}
|
|
5722
5722
|
}
|
|
5723
5723
|
});
|
|
5724
|
-
return
|
|
5724
|
+
return x.useEffect(() => {
|
|
5725
5725
|
n && e.enabled !== void 0 && n.query.getOptions().enabled !== e.enabled && n.actions.setOptions((o) => {
|
|
5726
5726
|
o.enabled = e.enabled;
|
|
5727
5727
|
});
|
|
5728
|
-
}, [n, e.enabled]),
|
|
5728
|
+
}, [n, e.enabled]), x.useEffect(() => {
|
|
5729
5729
|
n.subscribe((o) => ({ json: n.query.serialize() }), () => {
|
|
5730
5730
|
n.query.getOptions().onNodesChange(n.query);
|
|
5731
5731
|
});
|
|
5732
|
-
}, [n]), n ?
|
|
5733
|
-
}, Lf = Vn("desktop"), es = ({ value: t, children: e }) => /* @__PURE__ */ h(Lf.Provider, { value: t, children: e }),
|
|
5732
|
+
}, [n]), n ? x.createElement(su.Provider, { value: n }, x.createElement(u3, null, t)) : null;
|
|
5733
|
+
}, Lf = Vn("desktop"), es = ({ value: t, children: e }) => /* @__PURE__ */ h(Lf.Provider, { value: t, children: e }), Pe = () => gr(Lf), et = ["mobile", "tablet", "small", "desktop"], zt = (t, e, r) => {
|
|
5734
5734
|
if (typeof t != "object" || t === null)
|
|
5735
5735
|
return t ?? r;
|
|
5736
5736
|
if ("top" in t || "right" in t)
|
|
@@ -5757,17 +5757,17 @@ function pe(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
5757
5757
|
function xr(t, e = []) {
|
|
5758
5758
|
let r = [];
|
|
5759
5759
|
function n(i, a) {
|
|
5760
|
-
const s =
|
|
5760
|
+
const s = x.createContext(a), u = r.length;
|
|
5761
5761
|
r = [...r, a];
|
|
5762
5762
|
const l = (p) => {
|
|
5763
5763
|
var y;
|
|
5764
|
-
const { scope: f, children: d, ...b } = p, g = ((y = f == null ? void 0 : f[t]) == null ? void 0 : y[u]) || s, m =
|
|
5764
|
+
const { scope: f, children: d, ...b } = p, g = ((y = f == null ? void 0 : f[t]) == null ? void 0 : y[u]) || s, m = x.useMemo(() => b, Object.values(b));
|
|
5765
5765
|
return /* @__PURE__ */ h(g.Provider, { value: m, children: d });
|
|
5766
5766
|
};
|
|
5767
5767
|
l.displayName = i + "Provider";
|
|
5768
5768
|
function c(p, f) {
|
|
5769
5769
|
var g;
|
|
5770
|
-
const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[u]) || s, b =
|
|
5770
|
+
const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[u]) || s, b = x.useContext(d);
|
|
5771
5771
|
if (b) return b;
|
|
5772
5772
|
if (a !== void 0) return a;
|
|
5773
5773
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
@@ -5775,10 +5775,10 @@ function xr(t, e = []) {
|
|
|
5775
5775
|
return [l, c];
|
|
5776
5776
|
}
|
|
5777
5777
|
const o = () => {
|
|
5778
|
-
const i = r.map((a) =>
|
|
5778
|
+
const i = r.map((a) => x.createContext(a));
|
|
5779
5779
|
return function(s) {
|
|
5780
5780
|
const u = (s == null ? void 0 : s[t]) || i;
|
|
5781
|
-
return
|
|
5781
|
+
return x.useMemo(
|
|
5782
5782
|
() => ({ [`__scope${t}`]: { ...s, [t]: u } }),
|
|
5783
5783
|
[s, u]
|
|
5784
5784
|
);
|
|
@@ -5799,18 +5799,18 @@ function d3(...t) {
|
|
|
5799
5799
|
const p = u(i)[`__scope${l}`];
|
|
5800
5800
|
return { ...s, ...p };
|
|
5801
5801
|
}, {});
|
|
5802
|
-
return
|
|
5802
|
+
return x.useMemo(() => ({ [`__scope${e.scopeName}`]: a }), [a]);
|
|
5803
5803
|
};
|
|
5804
5804
|
};
|
|
5805
5805
|
return r.scopeName = e.scopeName, r;
|
|
5806
5806
|
}
|
|
5807
5807
|
// @__NO_SIDE_EFFECTS__
|
|
5808
5808
|
function f3(t) {
|
|
5809
|
-
const e = /* @__PURE__ */ p3(t), r =
|
|
5810
|
-
const { children: i, ...a } = n, s =
|
|
5809
|
+
const e = /* @__PURE__ */ p3(t), r = x.forwardRef((n, o) => {
|
|
5810
|
+
const { children: i, ...a } = n, s = x.Children.toArray(i), u = s.find(m3);
|
|
5811
5811
|
if (u) {
|
|
5812
|
-
const l = u.props.children, c = s.map((p) => p === u ?
|
|
5813
|
-
return /* @__PURE__ */ h(e, { ...a, ref: o, children:
|
|
5812
|
+
const l = u.props.children, c = s.map((p) => p === u ? x.Children.count(l) > 1 ? x.Children.only(null) : x.isValidElement(l) ? l.props.children : null : p);
|
|
5813
|
+
return /* @__PURE__ */ h(e, { ...a, ref: o, children: x.isValidElement(l) ? x.cloneElement(l, void 0, c) : null });
|
|
5814
5814
|
}
|
|
5815
5815
|
return /* @__PURE__ */ h(e, { ...a, ref: o, children: i });
|
|
5816
5816
|
});
|
|
@@ -5818,19 +5818,19 @@ function f3(t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
// @__NO_SIDE_EFFECTS__
|
|
5820
5820
|
function p3(t) {
|
|
5821
|
-
const e =
|
|
5821
|
+
const e = x.forwardRef((r, n) => {
|
|
5822
5822
|
const { children: o, ...i } = r;
|
|
5823
|
-
if (
|
|
5823
|
+
if (x.isValidElement(o)) {
|
|
5824
5824
|
const a = g3(o), s = b3(i, o.props);
|
|
5825
|
-
return o.type !==
|
|
5825
|
+
return o.type !== x.Fragment && (s.ref = n ? bi(n, a) : a), x.cloneElement(o, s);
|
|
5826
5826
|
}
|
|
5827
|
-
return
|
|
5827
|
+
return x.Children.count(o) > 1 ? x.Children.only(null) : null;
|
|
5828
5828
|
});
|
|
5829
5829
|
return e.displayName = `${t}.SlotClone`, e;
|
|
5830
5830
|
}
|
|
5831
5831
|
var h3 = Symbol("radix.slottable");
|
|
5832
5832
|
function m3(t) {
|
|
5833
|
-
return
|
|
5833
|
+
return x.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === h3;
|
|
5834
5834
|
}
|
|
5835
5835
|
function b3(t, e) {
|
|
5836
5836
|
const r = { ...e };
|
|
@@ -5867,7 +5867,7 @@ var y3 = [
|
|
|
5867
5867
|
"svg",
|
|
5868
5868
|
"ul"
|
|
5869
5869
|
], we = y3.reduce((t, e) => {
|
|
5870
|
-
const r = /* @__PURE__ */ f3(`Primitive.${e}`), n =
|
|
5870
|
+
const r = /* @__PURE__ */ f3(`Primitive.${e}`), n = x.forwardRef((o, i) => {
|
|
5871
5871
|
const { asChild: a, ...s } = o, u = a ? r : e;
|
|
5872
5872
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(u, { ...s, ref: i });
|
|
5873
5873
|
});
|
|
@@ -5877,28 +5877,28 @@ function v3(t, e) {
|
|
|
5877
5877
|
t && _d.flushSync(() => t.dispatchEvent(e));
|
|
5878
5878
|
}
|
|
5879
5879
|
function We(t) {
|
|
5880
|
-
const e =
|
|
5881
|
-
return
|
|
5880
|
+
const e = x.useRef(t);
|
|
5881
|
+
return x.useEffect(() => {
|
|
5882
5882
|
e.current = t;
|
|
5883
|
-
}),
|
|
5883
|
+
}), x.useMemo(() => (...r) => {
|
|
5884
5884
|
var n;
|
|
5885
5885
|
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
5886
5886
|
}, []);
|
|
5887
5887
|
}
|
|
5888
5888
|
function x3(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5889
5889
|
const r = We(t);
|
|
5890
|
-
|
|
5890
|
+
x.useEffect(() => {
|
|
5891
5891
|
const n = (o) => {
|
|
5892
5892
|
o.key === "Escape" && r(o);
|
|
5893
5893
|
};
|
|
5894
5894
|
return e.addEventListener("keydown", n, { capture: !0 }), () => e.removeEventListener("keydown", n, { capture: !0 });
|
|
5895
5895
|
}, [r, e]);
|
|
5896
5896
|
}
|
|
5897
|
-
var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLayer.pointerDownOutside", E3 = "dismissableLayer.focusOutside", bc, Mf =
|
|
5897
|
+
var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLayer.pointerDownOutside", E3 = "dismissableLayer.focusOutside", bc, Mf = x.createContext({
|
|
5898
5898
|
layers: /* @__PURE__ */ new Set(),
|
|
5899
5899
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5900
5900
|
branches: /* @__PURE__ */ new Set()
|
|
5901
|
-
}), jf =
|
|
5901
|
+
}), jf = x.forwardRef(
|
|
5902
5902
|
(t, e) => {
|
|
5903
5903
|
const {
|
|
5904
5904
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -5908,23 +5908,23 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
|
|
|
5908
5908
|
onInteractOutside: a,
|
|
5909
5909
|
onDismiss: s,
|
|
5910
5910
|
...u
|
|
5911
|
-
} = t, l =
|
|
5911
|
+
} = t, l = x.useContext(Mf), [c, p] = x.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = x.useState({}), b = Ae(e, (k) => p(k)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(m), v = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, S = v >= y, N = N3((k) => {
|
|
5912
5912
|
const j = k.target, F = [...l.branches].some(($) => $.contains(j));
|
|
5913
5913
|
!S || F || (o == null || o(k), a == null || a(k), k.defaultPrevented || s == null || s());
|
|
5914
|
-
}, f),
|
|
5914
|
+
}, f), O = A3((k) => {
|
|
5915
5915
|
const j = k.target;
|
|
5916
5916
|
[...l.branches].some(($) => $.contains(j)) || (i == null || i(k), a == null || a(k), k.defaultPrevented || s == null || s());
|
|
5917
5917
|
}, f);
|
|
5918
5918
|
return x3((k) => {
|
|
5919
|
-
|
|
5920
|
-
}, f),
|
|
5919
|
+
v === l.layers.size - 1 && (n == null || n(k), !k.defaultPrevented && s && (k.preventDefault(), s()));
|
|
5920
|
+
}, f), x.useEffect(() => {
|
|
5921
5921
|
if (c)
|
|
5922
5922
|
return r && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (bc = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(c)), l.layers.add(c), gc(), () => {
|
|
5923
5923
|
r && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = bc);
|
|
5924
5924
|
};
|
|
5925
|
-
}, [c, f, r, l]),
|
|
5925
|
+
}, [c, f, r, l]), x.useEffect(() => () => {
|
|
5926
5926
|
c && (l.layers.delete(c), l.layersWithOutsidePointerEventsDisabled.delete(c), gc());
|
|
5927
|
-
}, [c, l]),
|
|
5927
|
+
}, [c, l]), x.useEffect(() => {
|
|
5928
5928
|
const k = () => d({});
|
|
5929
5929
|
return document.addEventListener(ts, k), () => document.removeEventListener(ts, k);
|
|
5930
5930
|
}, []), /* @__PURE__ */ h(
|
|
@@ -5936,8 +5936,8 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
|
|
|
5936
5936
|
pointerEvents: w ? S ? "auto" : "none" : void 0,
|
|
5937
5937
|
...t.style
|
|
5938
5938
|
},
|
|
5939
|
-
onFocusCapture: pe(t.onFocusCapture,
|
|
5940
|
-
onBlurCapture: pe(t.onBlurCapture,
|
|
5939
|
+
onFocusCapture: pe(t.onFocusCapture, O.onFocusCapture),
|
|
5940
|
+
onBlurCapture: pe(t.onBlurCapture, O.onBlurCapture),
|
|
5941
5941
|
onPointerDownCapture: pe(
|
|
5942
5942
|
t.onPointerDownCapture,
|
|
5943
5943
|
N.onPointerDownCapture
|
|
@@ -5947,9 +5947,9 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
|
|
|
5947
5947
|
}
|
|
5948
5948
|
);
|
|
5949
5949
|
jf.displayName = w3;
|
|
5950
|
-
var C3 = "DismissableLayerBranch", T3 =
|
|
5951
|
-
const r =
|
|
5952
|
-
return
|
|
5950
|
+
var C3 = "DismissableLayerBranch", T3 = x.forwardRef((t, e) => {
|
|
5951
|
+
const r = x.useContext(Mf), n = x.useRef(null), o = Ae(e, n);
|
|
5952
|
+
return x.useEffect(() => {
|
|
5953
5953
|
const i = n.current;
|
|
5954
5954
|
if (i)
|
|
5955
5955
|
return r.branches.add(i), () => {
|
|
@@ -5959,9 +5959,9 @@ var C3 = "DismissableLayerBranch", T3 = v.forwardRef((t, e) => {
|
|
|
5959
5959
|
});
|
|
5960
5960
|
T3.displayName = C3;
|
|
5961
5961
|
function N3(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5962
|
-
const r = We(t), n =
|
|
5962
|
+
const r = We(t), n = x.useRef(!1), o = x.useRef(() => {
|
|
5963
5963
|
});
|
|
5964
|
-
return
|
|
5964
|
+
return x.useEffect(() => {
|
|
5965
5965
|
const i = (s) => {
|
|
5966
5966
|
if (s.target && !n.current) {
|
|
5967
5967
|
let u = function() {
|
|
@@ -5989,8 +5989,8 @@ function N3(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5989
5989
|
};
|
|
5990
5990
|
}
|
|
5991
5991
|
function A3(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5992
|
-
const r = We(t), n =
|
|
5993
|
-
return
|
|
5992
|
+
const r = We(t), n = x.useRef(!1);
|
|
5993
|
+
return x.useEffect(() => {
|
|
5994
5994
|
const o = (i) => {
|
|
5995
5995
|
i.target && !n.current && $f(E3, r, { originalEvent: i }, {
|
|
5996
5996
|
discrete: !1
|
|
@@ -6010,16 +6010,16 @@ function $f(t, e, r, { discrete: n }) {
|
|
|
6010
6010
|
const o = r.originalEvent.target, i = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: r });
|
|
6011
6011
|
e && o.addEventListener(t, e, { once: !0 }), n ? v3(o, i) : o.dispatchEvent(i);
|
|
6012
6012
|
}
|
|
6013
|
-
var Xt = globalThis != null && globalThis.document ?
|
|
6014
|
-
}, O3 =
|
|
6013
|
+
var Xt = globalThis != null && globalThis.document ? x.useLayoutEffect : () => {
|
|
6014
|
+
}, O3 = x[" useId ".trim().toString()] || (() => {
|
|
6015
6015
|
}), R3 = 0;
|
|
6016
6016
|
function Bf(t) {
|
|
6017
|
-
const [e, r] =
|
|
6017
|
+
const [e, r] = x.useState(O3());
|
|
6018
6018
|
return Xt(() => {
|
|
6019
6019
|
r((n) => n ?? String(R3++));
|
|
6020
6020
|
}, [t]), e ? `radix-${e}` : "";
|
|
6021
6021
|
}
|
|
6022
|
-
const _3 = ["top", "right", "bottom", "left"], Kt = Math.min, Fe = Math.max, Jo = Math.round, ho = Math.floor,
|
|
6022
|
+
const _3 = ["top", "right", "bottom", "left"], Kt = Math.min, Fe = Math.max, Jo = Math.round, ho = Math.floor, dt = (t) => ({
|
|
6023
6023
|
x: t,
|
|
6024
6024
|
y: t
|
|
6025
6025
|
}), P3 = {
|
|
@@ -6050,11 +6050,11 @@ function du(t) {
|
|
|
6050
6050
|
return t === "y" ? "height" : "width";
|
|
6051
6051
|
}
|
|
6052
6052
|
const I3 = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
6053
|
-
function
|
|
6053
|
+
function lt(t) {
|
|
6054
6054
|
return I3.has(It(t)) ? "y" : "x";
|
|
6055
6055
|
}
|
|
6056
6056
|
function fu(t) {
|
|
6057
|
-
return cu(
|
|
6057
|
+
return cu(lt(t));
|
|
6058
6058
|
}
|
|
6059
6059
|
function D3(t, e, r) {
|
|
6060
6060
|
r === void 0 && (r = !1);
|
|
@@ -6130,7 +6130,7 @@ function xc(t, e, r) {
|
|
|
6130
6130
|
reference: n,
|
|
6131
6131
|
floating: o
|
|
6132
6132
|
} = t;
|
|
6133
|
-
const i =
|
|
6133
|
+
const i = lt(e), a = fu(e), s = du(a), u = It(e), l = i === "y", c = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, f = n[s] / 2 - o[s] / 2;
|
|
6134
6134
|
let d;
|
|
6135
6135
|
switch (u) {
|
|
6136
6136
|
case "top":
|
|
@@ -6193,7 +6193,7 @@ const H3 = async (t, e, r) => {
|
|
|
6193
6193
|
name: m,
|
|
6194
6194
|
fn: y
|
|
6195
6195
|
} = s[g], {
|
|
6196
|
-
x,
|
|
6196
|
+
x: v,
|
|
6197
6197
|
y: w,
|
|
6198
6198
|
data: S,
|
|
6199
6199
|
reset: N
|
|
@@ -6211,7 +6211,7 @@ const H3 = async (t, e, r) => {
|
|
|
6211
6211
|
floating: e
|
|
6212
6212
|
}
|
|
6213
6213
|
});
|
|
6214
|
-
c =
|
|
6214
|
+
c = v ?? c, p = w ?? p, d = {
|
|
6215
6215
|
...d,
|
|
6216
6216
|
[m]: {
|
|
6217
6217
|
...d[m],
|
|
@@ -6255,7 +6255,7 @@ async function kn(t, e) {
|
|
|
6255
6255
|
boundary: l,
|
|
6256
6256
|
rootBoundary: c,
|
|
6257
6257
|
strategy: u
|
|
6258
|
-
})),
|
|
6258
|
+
})), v = p === "floating" ? {
|
|
6259
6259
|
x: n,
|
|
6260
6260
|
y: o,
|
|
6261
6261
|
width: a.floating.width,
|
|
@@ -6268,10 +6268,10 @@ async function kn(t, e) {
|
|
|
6268
6268
|
y: 1
|
|
6269
6269
|
}, N = Qo(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6270
6270
|
elements: s,
|
|
6271
|
-
rect:
|
|
6271
|
+
rect: v,
|
|
6272
6272
|
offsetParent: w,
|
|
6273
6273
|
strategy: u
|
|
6274
|
-
}) :
|
|
6274
|
+
}) : v);
|
|
6275
6275
|
return {
|
|
6276
6276
|
top: (y.top - N.top + b.top) / S.y,
|
|
6277
6277
|
bottom: (N.bottom - y.bottom + b.bottom) / S.y,
|
|
@@ -6300,10 +6300,10 @@ const q3 = (t) => ({
|
|
|
6300
6300
|
const p = Ff(c), f = {
|
|
6301
6301
|
x: r,
|
|
6302
6302
|
y: n
|
|
6303
|
-
}, d = fu(o), b = du(d), g = await a.getDimensions(l), m = d === "y", y = m ? "top" : "left",
|
|
6304
|
-
let k =
|
|
6305
|
-
(!k || !await (a.isElement == null ? void 0 : a.isElement(
|
|
6306
|
-
const j = S / 2 - N / 2, F = k / 2 - g[b] / 2 - 1, $ = Kt(p[y], F), E = Kt(p[
|
|
6303
|
+
}, d = fu(o), b = du(d), g = await a.getDimensions(l), m = d === "y", y = m ? "top" : "left", v = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", S = i.reference[b] + i.reference[d] - f[d] - i.floating[b], N = f[d] - i.reference[d], O = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
6304
|
+
let k = O ? O[w] : 0;
|
|
6305
|
+
(!k || !await (a.isElement == null ? void 0 : a.isElement(O))) && (k = s.floating[w] || i.floating[b]);
|
|
6306
|
+
const j = S / 2 - N / 2, F = k / 2 - g[b] / 2 - 1, $ = Kt(p[y], F), E = Kt(p[v], F), C = $, D = k - g[b] - E, L = k / 2 - g[b] / 2 + j, T = rs(C, L, D), A = !u.arrow && on(o) != null && L !== T && i.reference[b] / 2 - (L < C ? $ : E) - g[b] / 2 < 0, _ = A ? L < C ? L - C : L - D : 0;
|
|
6307
6307
|
return {
|
|
6308
6308
|
[d]: f[d] + _,
|
|
6309
6309
|
data: {
|
|
@@ -6340,8 +6340,8 @@ const q3 = (t) => ({
|
|
|
6340
6340
|
} = kt(t, e);
|
|
6341
6341
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
6342
6342
|
return {};
|
|
6343
|
-
const y = It(o),
|
|
6344
|
-
!f &&
|
|
6343
|
+
const y = It(o), v = lt(s), w = It(s) === s, S = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), N = f || (w || !g ? [Zo(s)] : L3(s)), O = b !== "none";
|
|
6344
|
+
!f && O && N.push(...B3(s, g, b, S));
|
|
6345
6345
|
const k = [s, ...N], j = await kn(e, m), F = [];
|
|
6346
6346
|
let $ = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
6347
6347
|
if (c && F.push(j[y]), p) {
|
|
@@ -6354,9 +6354,9 @@ const q3 = (t) => ({
|
|
|
6354
6354
|
}], !F.every((L) => L <= 0)) {
|
|
6355
6355
|
var E, C;
|
|
6356
6356
|
const L = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, T = k[L];
|
|
6357
|
-
if (T && (!(p === "alignment" ?
|
|
6357
|
+
if (T && (!(p === "alignment" ? v !== lt(T) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6358
6358
|
// overflows the main axis.
|
|
6359
|
-
$.every((M) =>
|
|
6359
|
+
$.every((M) => lt(M.placement) === v ? M.overflows[0] > 0 : !0)))
|
|
6360
6360
|
return {
|
|
6361
6361
|
data: {
|
|
6362
6362
|
index: L,
|
|
@@ -6372,9 +6372,9 @@ const q3 = (t) => ({
|
|
|
6372
6372
|
case "bestFit": {
|
|
6373
6373
|
var D;
|
|
6374
6374
|
const _ = (D = $.filter((M) => {
|
|
6375
|
-
if (
|
|
6376
|
-
const B =
|
|
6377
|
-
return B ===
|
|
6375
|
+
if (O) {
|
|
6376
|
+
const B = lt(M.placement);
|
|
6377
|
+
return B === v || // Create a bias to the `y` side axis due to horizontal
|
|
6378
6378
|
// reading directions favoring greater width.
|
|
6379
6379
|
B === "y";
|
|
6380
6380
|
}
|
|
@@ -6456,7 +6456,7 @@ async function V3(t, e) {
|
|
|
6456
6456
|
placement: r,
|
|
6457
6457
|
platform: n,
|
|
6458
6458
|
elements: o
|
|
6459
|
-
} = t, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), a = It(r), s = on(r), u =
|
|
6459
|
+
} = t, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), a = It(r), s = on(r), u = lt(r) === "y", l = Hf.has(a) ? -1 : 1, c = i && u ? -1 : 1, p = kt(e, t);
|
|
6460
6460
|
let {
|
|
6461
6461
|
mainAxis: f,
|
|
6462
6462
|
crossAxis: d,
|
|
@@ -6516,11 +6516,11 @@ const W3 = function(t) {
|
|
|
6516
6516
|
fn: (m) => {
|
|
6517
6517
|
let {
|
|
6518
6518
|
x: y,
|
|
6519
|
-
y:
|
|
6519
|
+
y: v
|
|
6520
6520
|
} = m;
|
|
6521
6521
|
return {
|
|
6522
6522
|
x: y,
|
|
6523
|
-
y:
|
|
6523
|
+
y: v
|
|
6524
6524
|
};
|
|
6525
6525
|
}
|
|
6526
6526
|
},
|
|
@@ -6528,15 +6528,15 @@ const W3 = function(t) {
|
|
|
6528
6528
|
} = kt(t, e), l = {
|
|
6529
6529
|
x: r,
|
|
6530
6530
|
y: n
|
|
6531
|
-
}, c = await kn(e, u), p =
|
|
6531
|
+
}, c = await kn(e, u), p = lt(It(o)), f = cu(p);
|
|
6532
6532
|
let d = l[f], b = l[p];
|
|
6533
6533
|
if (i) {
|
|
6534
|
-
const m = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right",
|
|
6535
|
-
d = rs(
|
|
6534
|
+
const m = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", v = d + c[m], w = d - c[y];
|
|
6535
|
+
d = rs(v, d, w);
|
|
6536
6536
|
}
|
|
6537
6537
|
if (a) {
|
|
6538
|
-
const m = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right",
|
|
6539
|
-
b = rs(
|
|
6538
|
+
const m = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", v = b + c[m], w = b - c[y];
|
|
6539
|
+
b = rs(v, b, w);
|
|
6540
6540
|
}
|
|
6541
6541
|
const g = s.fn({
|
|
6542
6542
|
...e,
|
|
@@ -6573,7 +6573,7 @@ const W3 = function(t) {
|
|
|
6573
6573
|
} = kt(t, e), c = {
|
|
6574
6574
|
x: r,
|
|
6575
6575
|
y: n
|
|
6576
|
-
}, p =
|
|
6576
|
+
}, p = lt(o), f = cu(p);
|
|
6577
6577
|
let d = c[f], b = c[p];
|
|
6578
6578
|
const g = kt(s, e), m = typeof g == "number" ? {
|
|
6579
6579
|
mainAxis: g,
|
|
@@ -6588,9 +6588,9 @@ const W3 = function(t) {
|
|
|
6588
6588
|
d < S ? d = S : d > N && (d = N);
|
|
6589
6589
|
}
|
|
6590
6590
|
if (l) {
|
|
6591
|
-
var y,
|
|
6592
|
-
const w = f === "y" ? "width" : "height", S = Hf.has(It(o)), N = i.reference[p] - i.floating[w] + (S && ((y = a.offset) == null ? void 0 : y[p]) || 0) + (S ? 0 : m.crossAxis),
|
|
6593
|
-
b < N ? b = N : b >
|
|
6591
|
+
var y, v;
|
|
6592
|
+
const w = f === "y" ? "width" : "height", S = Hf.has(It(o)), N = i.reference[p] - i.floating[w] + (S && ((y = a.offset) == null ? void 0 : y[p]) || 0) + (S ? 0 : m.crossAxis), O = i.reference[p] + i.reference[w] + (S ? 0 : ((v = a.offset) == null ? void 0 : v[p]) || 0) - (S ? m.crossAxis : 0);
|
|
6593
|
+
b < N ? b = N : b > O && (b = O);
|
|
6594
6594
|
}
|
|
6595
6595
|
return {
|
|
6596
6596
|
[f]: d,
|
|
@@ -6613,15 +6613,15 @@ const W3 = function(t) {
|
|
|
6613
6613
|
apply: u = () => {
|
|
6614
6614
|
},
|
|
6615
6615
|
...l
|
|
6616
|
-
} = kt(t, e), c = await kn(e, l), p = It(o), f = on(o), d =
|
|
6616
|
+
} = kt(t, e), c = await kn(e, l), p = It(o), f = on(o), d = lt(o) === "y", {
|
|
6617
6617
|
width: b,
|
|
6618
6618
|
height: g
|
|
6619
6619
|
} = i.floating;
|
|
6620
6620
|
let m, y;
|
|
6621
6621
|
p === "top" || p === "bottom" ? (m = p, y = f === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = p, m = f === "end" ? "top" : "bottom");
|
|
6622
|
-
const
|
|
6622
|
+
const v = g - c.top - c.bottom, w = b - c.left - c.right, S = Kt(g - c[m], v), N = Kt(b - c[y], w), O = !e.middlewareData.shift;
|
|
6623
6623
|
let k = S, j = N;
|
|
6624
|
-
if ((r = e.middlewareData.shift) != null && r.enabled.x && (j = w), (n = e.middlewareData.shift) != null && n.enabled.y && (k =
|
|
6624
|
+
if ((r = e.middlewareData.shift) != null && r.enabled.x && (j = w), (n = e.middlewareData.shift) != null && n.enabled.y && (k = v), O && !f) {
|
|
6625
6625
|
const $ = Fe(c.left, 0), E = Fe(c.right, 0), C = Fe(c.top, 0), D = Fe(c.bottom, 0);
|
|
6626
6626
|
d ? j = b - 2 * ($ !== 0 || E !== 0 ? $ + E : Fe(c.left, c.right)) : k = g - 2 * (C !== 0 || D !== 0 ? C + D : Fe(c.top, c.bottom));
|
|
6627
6627
|
}
|
|
@@ -6649,7 +6649,7 @@ function He(t) {
|
|
|
6649
6649
|
var e;
|
|
6650
6650
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
6651
6651
|
}
|
|
6652
|
-
function
|
|
6652
|
+
function vt(t) {
|
|
6653
6653
|
var e;
|
|
6654
6654
|
return (e = (qf(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
6655
6655
|
}
|
|
@@ -6659,7 +6659,7 @@ function qf(t) {
|
|
|
6659
6659
|
function rt(t) {
|
|
6660
6660
|
return _i() ? t instanceof Element || t instanceof He(t).Element : !1;
|
|
6661
6661
|
}
|
|
6662
|
-
function
|
|
6662
|
+
function bt(t) {
|
|
6663
6663
|
return _i() ? t instanceof HTMLElement || t instanceof He(t).HTMLElement : !1;
|
|
6664
6664
|
}
|
|
6665
6665
|
function Ec(t) {
|
|
@@ -6696,7 +6696,7 @@ function pu(t) {
|
|
|
6696
6696
|
}
|
|
6697
6697
|
function n6(t) {
|
|
6698
6698
|
let e = Jt(t);
|
|
6699
|
-
for (;
|
|
6699
|
+
for (; bt(e) && !Br(e); ) {
|
|
6700
6700
|
if (pu(e))
|
|
6701
6701
|
return e;
|
|
6702
6702
|
if (Pi(e))
|
|
@@ -6732,13 +6732,13 @@ function Jt(t) {
|
|
|
6732
6732
|
t.assignedSlot || // DOM Element detected.
|
|
6733
6733
|
t.parentNode || // ShadowRoot detected.
|
|
6734
6734
|
Ec(t) && t.host || // Fallback.
|
|
6735
|
-
|
|
6735
|
+
vt(t)
|
|
6736
6736
|
);
|
|
6737
6737
|
return Ec(e) ? e.host : e;
|
|
6738
6738
|
}
|
|
6739
6739
|
function zf(t) {
|
|
6740
6740
|
const e = Jt(t);
|
|
6741
|
-
return Br(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
6741
|
+
return Br(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : bt(e) && Wn(e) ? e : zf(e);
|
|
6742
6742
|
}
|
|
6743
6743
|
function In(t, e, r) {
|
|
6744
6744
|
var n;
|
|
@@ -6756,7 +6756,7 @@ function os(t) {
|
|
|
6756
6756
|
function Uf(t) {
|
|
6757
6757
|
const e = nt(t);
|
|
6758
6758
|
let r = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
6759
|
-
const o =
|
|
6759
|
+
const o = bt(t), i = o ? t.offsetWidth : r, a = o ? t.offsetHeight : n, s = Jo(r) !== i || Jo(n) !== a;
|
|
6760
6760
|
return s && (r = i, n = a), {
|
|
6761
6761
|
width: r,
|
|
6762
6762
|
height: n,
|
|
@@ -6768,8 +6768,8 @@ function mu(t) {
|
|
|
6768
6768
|
}
|
|
6769
6769
|
function Lr(t) {
|
|
6770
6770
|
const e = mu(t);
|
|
6771
|
-
if (!
|
|
6772
|
-
return
|
|
6771
|
+
if (!bt(e))
|
|
6772
|
+
return dt(1);
|
|
6773
6773
|
const r = e.getBoundingClientRect(), {
|
|
6774
6774
|
width: n,
|
|
6775
6775
|
height: o,
|
|
@@ -6781,7 +6781,7 @@ function Lr(t) {
|
|
|
6781
6781
|
y: s
|
|
6782
6782
|
};
|
|
6783
6783
|
}
|
|
6784
|
-
const i6 = /* @__PURE__ */
|
|
6784
|
+
const i6 = /* @__PURE__ */ dt(0);
|
|
6785
6785
|
function Vf(t) {
|
|
6786
6786
|
const e = He(t);
|
|
6787
6787
|
return !hu() || !e.visualViewport ? i6 : {
|
|
@@ -6795,15 +6795,15 @@ function a6(t, e, r) {
|
|
|
6795
6795
|
function fr(t, e, r, n) {
|
|
6796
6796
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
6797
6797
|
const o = t.getBoundingClientRect(), i = mu(t);
|
|
6798
|
-
let a =
|
|
6798
|
+
let a = dt(1);
|
|
6799
6799
|
e && (n ? rt(n) && (a = Lr(n)) : a = Lr(t));
|
|
6800
|
-
const s = a6(i, r, n) ? Vf(i) :
|
|
6800
|
+
const s = a6(i, r, n) ? Vf(i) : dt(0);
|
|
6801
6801
|
let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, c = o.width / a.x, p = o.height / a.y;
|
|
6802
6802
|
if (i) {
|
|
6803
6803
|
const f = He(i), d = n && rt(n) ? He(n) : n;
|
|
6804
6804
|
let b = f, g = os(b);
|
|
6805
6805
|
for (; g && n && d !== b; ) {
|
|
6806
|
-
const m = Lr(g), y = g.getBoundingClientRect(),
|
|
6806
|
+
const m = Lr(g), y = g.getBoundingClientRect(), v = nt(g), w = y.left + (g.clientLeft + parseFloat(v.paddingLeft)) * m.x, S = y.top + (g.clientTop + parseFloat(v.paddingTop)) * m.y;
|
|
6807
6807
|
u *= m.x, l *= m.y, c *= m.x, p *= m.y, u += w, l += S, b = He(g), g = os(b);
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
@@ -6816,7 +6816,7 @@ function fr(t, e, r, n) {
|
|
|
6816
6816
|
}
|
|
6817
6817
|
function Ii(t, e) {
|
|
6818
6818
|
const r = ki(t).scrollLeft;
|
|
6819
|
-
return e ? e.left + r : fr(
|
|
6819
|
+
return e ? e.left + r : fr(vt(t)).left + r;
|
|
6820
6820
|
}
|
|
6821
6821
|
function Wf(t, e) {
|
|
6822
6822
|
const r = t.getBoundingClientRect(), n = r.left + e.scrollLeft - Ii(t, r), o = r.top + e.scrollTop;
|
|
@@ -6832,19 +6832,19 @@ function s6(t) {
|
|
|
6832
6832
|
offsetParent: n,
|
|
6833
6833
|
strategy: o
|
|
6834
6834
|
} = t;
|
|
6835
|
-
const i = o === "fixed", a =
|
|
6835
|
+
const i = o === "fixed", a = vt(n), s = e ? Pi(e.floating) : !1;
|
|
6836
6836
|
if (n === a || s && i)
|
|
6837
6837
|
return r;
|
|
6838
6838
|
let u = {
|
|
6839
6839
|
scrollLeft: 0,
|
|
6840
6840
|
scrollTop: 0
|
|
6841
|
-
}, l =
|
|
6842
|
-
const c =
|
|
6843
|
-
if ((p || !p && !i) && ((an(n) !== "body" || Wn(a)) && (u = ki(n)),
|
|
6841
|
+
}, l = dt(1);
|
|
6842
|
+
const c = dt(0), p = bt(n);
|
|
6843
|
+
if ((p || !p && !i) && ((an(n) !== "body" || Wn(a)) && (u = ki(n)), bt(n))) {
|
|
6844
6844
|
const d = fr(n);
|
|
6845
6845
|
l = Lr(n), c.x = d.x + n.clientLeft, c.y = d.y + n.clientTop;
|
|
6846
6846
|
}
|
|
6847
|
-
const f = a && !p && !i ? Wf(a, u) :
|
|
6847
|
+
const f = a && !p && !i ? Wf(a, u) : dt(0);
|
|
6848
6848
|
return {
|
|
6849
6849
|
width: r.width * l.x,
|
|
6850
6850
|
height: r.height * l.y,
|
|
@@ -6856,7 +6856,7 @@ function u6(t) {
|
|
|
6856
6856
|
return Array.from(t.getClientRects());
|
|
6857
6857
|
}
|
|
6858
6858
|
function l6(t) {
|
|
6859
|
-
const e =
|
|
6859
|
+
const e = vt(t), r = ki(t), n = t.ownerDocument.body, o = Fe(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Fe(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
6860
6860
|
let a = -r.scrollLeft + Ii(t);
|
|
6861
6861
|
const s = -r.scrollTop;
|
|
6862
6862
|
return nt(n).direction === "rtl" && (a += Fe(e.clientWidth, n.clientWidth) - o), {
|
|
@@ -6868,7 +6868,7 @@ function l6(t) {
|
|
|
6868
6868
|
}
|
|
6869
6869
|
const Cc = 25;
|
|
6870
6870
|
function c6(t, e) {
|
|
6871
|
-
const r = He(t), n =
|
|
6871
|
+
const r = He(t), n = vt(t), o = r.visualViewport;
|
|
6872
6872
|
let i = n.clientWidth, a = n.clientHeight, s = 0, u = 0;
|
|
6873
6873
|
if (o) {
|
|
6874
6874
|
i = o.width, a = o.height;
|
|
@@ -6889,7 +6889,7 @@ function c6(t, e) {
|
|
|
6889
6889
|
}
|
|
6890
6890
|
const d6 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6891
6891
|
function f6(t, e) {
|
|
6892
|
-
const r = fr(t, !0, e === "fixed"), n = r.top + t.clientTop, o = r.left + t.clientLeft, i =
|
|
6892
|
+
const r = fr(t, !0, e === "fixed"), n = r.top + t.clientTop, o = r.left + t.clientLeft, i = bt(t) ? Lr(t) : dt(1), a = t.clientWidth * i.x, s = t.clientHeight * i.y, u = o * i.x, l = n * i.y;
|
|
6893
6893
|
return {
|
|
6894
6894
|
width: a,
|
|
6895
6895
|
height: s,
|
|
@@ -6902,7 +6902,7 @@ function Tc(t, e, r) {
|
|
|
6902
6902
|
if (e === "viewport")
|
|
6903
6903
|
n = c6(t, r);
|
|
6904
6904
|
else if (e === "document")
|
|
6905
|
-
n = l6(
|
|
6905
|
+
n = l6(vt(t));
|
|
6906
6906
|
else if (rt(e))
|
|
6907
6907
|
n = f6(e, r);
|
|
6908
6908
|
else {
|
|
@@ -6962,12 +6962,12 @@ function m6(t) {
|
|
|
6962
6962
|
};
|
|
6963
6963
|
}
|
|
6964
6964
|
function b6(t, e, r) {
|
|
6965
|
-
const n =
|
|
6965
|
+
const n = bt(e), o = vt(e), i = r === "fixed", a = fr(t, !0, i, e);
|
|
6966
6966
|
let s = {
|
|
6967
6967
|
scrollLeft: 0,
|
|
6968
6968
|
scrollTop: 0
|
|
6969
6969
|
};
|
|
6970
|
-
const u =
|
|
6970
|
+
const u = dt(0);
|
|
6971
6971
|
function l() {
|
|
6972
6972
|
u.x = Ii(o);
|
|
6973
6973
|
}
|
|
@@ -6977,7 +6977,7 @@ function b6(t, e, r) {
|
|
|
6977
6977
|
u.x = d.x + e.clientLeft, u.y = d.y + e.clientTop;
|
|
6978
6978
|
} else o && l();
|
|
6979
6979
|
i && !n && o && l();
|
|
6980
|
-
const c = o && !n && !i ? Wf(o, s) :
|
|
6980
|
+
const c = o && !n && !i ? Wf(o, s) : dt(0), p = a.left + s.scrollLeft - u.x - c.x, f = a.top + s.scrollTop - u.y - c.y;
|
|
6981
6981
|
return {
|
|
6982
6982
|
x: p,
|
|
6983
6983
|
y: f,
|
|
@@ -6989,18 +6989,18 @@ function ba(t) {
|
|
|
6989
6989
|
return nt(t).position === "static";
|
|
6990
6990
|
}
|
|
6991
6991
|
function Nc(t, e) {
|
|
6992
|
-
if (!
|
|
6992
|
+
if (!bt(t) || nt(t).position === "fixed")
|
|
6993
6993
|
return null;
|
|
6994
6994
|
if (e)
|
|
6995
6995
|
return e(t);
|
|
6996
6996
|
let r = t.offsetParent;
|
|
6997
|
-
return
|
|
6997
|
+
return vt(t) === r && (r = r.ownerDocument.body), r;
|
|
6998
6998
|
}
|
|
6999
6999
|
function Yf(t, e) {
|
|
7000
7000
|
const r = He(t);
|
|
7001
7001
|
if (Pi(t))
|
|
7002
7002
|
return r;
|
|
7003
|
-
if (!
|
|
7003
|
+
if (!bt(t)) {
|
|
7004
7004
|
let o = Jt(t);
|
|
7005
7005
|
for (; o && !Br(o); ) {
|
|
7006
7006
|
if (rt(o) && !ba(o))
|
|
@@ -7031,7 +7031,7 @@ function y6(t) {
|
|
|
7031
7031
|
}
|
|
7032
7032
|
const v6 = {
|
|
7033
7033
|
convertOffsetParentRelativeRectToViewportRelativeRect: s6,
|
|
7034
|
-
getDocumentElement:
|
|
7034
|
+
getDocumentElement: vt,
|
|
7035
7035
|
getClippingRect: h6,
|
|
7036
7036
|
getOffsetParent: Yf,
|
|
7037
7037
|
getElementRects: g6,
|
|
@@ -7046,7 +7046,7 @@ function Xf(t, e) {
|
|
|
7046
7046
|
}
|
|
7047
7047
|
function x6(t, e) {
|
|
7048
7048
|
let r = null, n;
|
|
7049
|
-
const o =
|
|
7049
|
+
const o = vt(t);
|
|
7050
7050
|
function i() {
|
|
7051
7051
|
var s;
|
|
7052
7052
|
clearTimeout(n), (s = r) == null || s.disconnect(), r = null;
|
|
@@ -7066,8 +7066,8 @@ function x6(t, e) {
|
|
|
7066
7066
|
threshold: Fe(0, Kt(1, u)) || 1
|
|
7067
7067
|
};
|
|
7068
7068
|
let S = !0;
|
|
7069
|
-
function N(
|
|
7070
|
-
const k =
|
|
7069
|
+
function N(O) {
|
|
7070
|
+
const k = O[0].intersectionRatio;
|
|
7071
7071
|
if (k !== u) {
|
|
7072
7072
|
if (!S)
|
|
7073
7073
|
return a();
|
|
@@ -7107,8 +7107,8 @@ function w6(t, e, r, n) {
|
|
|
7107
7107
|
const p = l && s ? x6(l, r) : null;
|
|
7108
7108
|
let f = -1, d = null;
|
|
7109
7109
|
a && (d = new ResizeObserver((y) => {
|
|
7110
|
-
let [
|
|
7111
|
-
|
|
7110
|
+
let [v] = y;
|
|
7111
|
+
v && v.target === l && d && (d.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
7112
7112
|
var w;
|
|
7113
7113
|
(w = d) == null || w.observe(e);
|
|
7114
7114
|
})), r();
|
|
@@ -7121,8 +7121,8 @@ function w6(t, e, r, n) {
|
|
|
7121
7121
|
}
|
|
7122
7122
|
return r(), () => {
|
|
7123
7123
|
var y;
|
|
7124
|
-
c.forEach((
|
|
7125
|
-
o &&
|
|
7124
|
+
c.forEach((v) => {
|
|
7125
|
+
o && v.removeEventListener("scroll", r), i && v.removeEventListener("resize", r);
|
|
7126
7126
|
}), p == null || p(), (y = d) == null || y.disconnect(), d = null, u && cancelAnimationFrame(b);
|
|
7127
7127
|
};
|
|
7128
7128
|
}
|
|
@@ -7179,7 +7179,7 @@ function Oc(t, e) {
|
|
|
7179
7179
|
return Math.round(e * r) / r;
|
|
7180
7180
|
}
|
|
7181
7181
|
function ga(t) {
|
|
7182
|
-
const e =
|
|
7182
|
+
const e = x.useRef(t);
|
|
7183
7183
|
return _o(() => {
|
|
7184
7184
|
e.current = t;
|
|
7185
7185
|
}), e;
|
|
@@ -7198,28 +7198,28 @@ function P6(t) {
|
|
|
7198
7198
|
transform: s = !0,
|
|
7199
7199
|
whileElementsMounted: u,
|
|
7200
7200
|
open: l
|
|
7201
|
-
} = t, [c, p] =
|
|
7201
|
+
} = t, [c, p] = x.useState({
|
|
7202
7202
|
x: 0,
|
|
7203
7203
|
y: 0,
|
|
7204
7204
|
strategy: r,
|
|
7205
7205
|
placement: e,
|
|
7206
7206
|
middlewareData: {},
|
|
7207
7207
|
isPositioned: !1
|
|
7208
|
-
}), [f, d] =
|
|
7208
|
+
}), [f, d] = x.useState(n);
|
|
7209
7209
|
ei(f, n) || d(n);
|
|
7210
|
-
const [b, g] =
|
|
7211
|
-
M !==
|
|
7212
|
-
}, []), w =
|
|
7210
|
+
const [b, g] = x.useState(null), [m, y] = x.useState(null), v = x.useCallback((M) => {
|
|
7211
|
+
M !== O.current && (O.current = M, g(M));
|
|
7212
|
+
}, []), w = x.useCallback((M) => {
|
|
7213
7213
|
M !== k.current && (k.current = M, y(M));
|
|
7214
|
-
}, []), S = i || b, N = a || m,
|
|
7215
|
-
if (!
|
|
7214
|
+
}, []), S = i || b, N = a || m, O = x.useRef(null), k = x.useRef(null), j = x.useRef(c), F = u != null, $ = ga(u), E = ga(o), C = ga(l), D = x.useCallback(() => {
|
|
7215
|
+
if (!O.current || !k.current)
|
|
7216
7216
|
return;
|
|
7217
7217
|
const M = {
|
|
7218
7218
|
placement: e,
|
|
7219
7219
|
strategy: r,
|
|
7220
7220
|
middleware: f
|
|
7221
7221
|
};
|
|
7222
|
-
E.current && (M.platform = E.current), O6(
|
|
7222
|
+
E.current && (M.platform = E.current), O6(O.current, k.current, M).then((B) => {
|
|
7223
7223
|
const U = {
|
|
7224
7224
|
...B,
|
|
7225
7225
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -7239,25 +7239,25 @@ function P6(t) {
|
|
|
7239
7239
|
isPositioned: !1
|
|
7240
7240
|
})));
|
|
7241
7241
|
}, [l]);
|
|
7242
|
-
const L =
|
|
7242
|
+
const L = x.useRef(!1);
|
|
7243
7243
|
_o(() => (L.current = !0, () => {
|
|
7244
7244
|
L.current = !1;
|
|
7245
7245
|
}), []), _o(() => {
|
|
7246
|
-
if (S && (
|
|
7246
|
+
if (S && (O.current = S), N && (k.current = N), S && N) {
|
|
7247
7247
|
if ($.current)
|
|
7248
7248
|
return $.current(S, N, D);
|
|
7249
7249
|
D();
|
|
7250
7250
|
}
|
|
7251
7251
|
}, [S, N, D, $, F]);
|
|
7252
|
-
const T =
|
|
7253
|
-
reference:
|
|
7252
|
+
const T = x.useMemo(() => ({
|
|
7253
|
+
reference: O,
|
|
7254
7254
|
floating: k,
|
|
7255
|
-
setReference:
|
|
7255
|
+
setReference: v,
|
|
7256
7256
|
setFloating: w
|
|
7257
|
-
}), [
|
|
7257
|
+
}), [v, w]), A = x.useMemo(() => ({
|
|
7258
7258
|
reference: S,
|
|
7259
7259
|
floating: N
|
|
7260
|
-
}), [S, N]), _ =
|
|
7260
|
+
}), [S, N]), _ = x.useMemo(() => {
|
|
7261
7261
|
const M = {
|
|
7262
7262
|
position: r,
|
|
7263
7263
|
left: 0,
|
|
@@ -7278,7 +7278,7 @@ function P6(t) {
|
|
|
7278
7278
|
top: U
|
|
7279
7279
|
};
|
|
7280
7280
|
}, [r, s, A.floating, c.x, c.y]);
|
|
7281
|
-
return
|
|
7281
|
+
return x.useMemo(() => ({
|
|
7282
7282
|
...c,
|
|
7283
7283
|
update: D,
|
|
7284
7284
|
refs: T,
|
|
@@ -7329,7 +7329,7 @@ const k6 = (t) => {
|
|
|
7329
7329
|
...k6(t),
|
|
7330
7330
|
options: [t, e]
|
|
7331
7331
|
});
|
|
7332
|
-
var F6 = "Arrow", Jf =
|
|
7332
|
+
var F6 = "Arrow", Jf = x.forwardRef((t, e) => {
|
|
7333
7333
|
const { children: r, width: n = 10, height: o = 5, ...i } = t;
|
|
7334
7334
|
return /* @__PURE__ */ h(
|
|
7335
7335
|
we.svg,
|
|
@@ -7347,7 +7347,7 @@ var F6 = "Arrow", Jf = v.forwardRef((t, e) => {
|
|
|
7347
7347
|
Jf.displayName = F6;
|
|
7348
7348
|
var H6 = Jf;
|
|
7349
7349
|
function Zf(t) {
|
|
7350
|
-
const [e, r] =
|
|
7350
|
+
const [e, r] = x.useState(void 0);
|
|
7351
7351
|
return Xt(() => {
|
|
7352
7352
|
if (t) {
|
|
7353
7353
|
r({ width: t.offsetWidth, height: t.offsetHeight });
|
|
@@ -7369,23 +7369,23 @@ function Zf(t) {
|
|
|
7369
7369
|
}, [t]), e;
|
|
7370
7370
|
}
|
|
7371
7371
|
var bu = "Popper", [Qf, e0] = xr(bu), [q6, t0] = Qf(bu), r0 = (t) => {
|
|
7372
|
-
const { __scopePopper: e, children: r } = t, [n, o] =
|
|
7372
|
+
const { __scopePopper: e, children: r } = t, [n, o] = x.useState(null);
|
|
7373
7373
|
return /* @__PURE__ */ h(q6, { scope: e, anchor: n, onAnchorChange: o, children: r });
|
|
7374
7374
|
};
|
|
7375
7375
|
r0.displayName = bu;
|
|
7376
|
-
var n0 = "PopperAnchor", o0 =
|
|
7376
|
+
var n0 = "PopperAnchor", o0 = x.forwardRef(
|
|
7377
7377
|
(t, e) => {
|
|
7378
|
-
const { __scopePopper: r, virtualRef: n, ...o } = t, i = t0(n0, r), a =
|
|
7379
|
-
return
|
|
7378
|
+
const { __scopePopper: r, virtualRef: n, ...o } = t, i = t0(n0, r), a = x.useRef(null), s = Ae(e, a), u = x.useRef(null);
|
|
7379
|
+
return x.useEffect(() => {
|
|
7380
7380
|
const l = u.current;
|
|
7381
7381
|
u.current = (n == null ? void 0 : n.current) || a.current, l !== u.current && i.onAnchorChange(u.current);
|
|
7382
7382
|
}), n ? null : /* @__PURE__ */ h(we.div, { ...o, ref: s });
|
|
7383
7383
|
}
|
|
7384
7384
|
);
|
|
7385
7385
|
o0.displayName = n0;
|
|
7386
|
-
var gu = "PopperContent", [z6, U6] = Qf(gu), i0 =
|
|
7386
|
+
var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = x.forwardRef(
|
|
7387
7387
|
(t, e) => {
|
|
7388
|
-
var z, Ie, Te, Se, at,
|
|
7388
|
+
var z, Ie, Te, Se, at, St;
|
|
7389
7389
|
const {
|
|
7390
7390
|
__scopePopper: r,
|
|
7391
7391
|
side: n = "bottom",
|
|
@@ -7401,7 +7401,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7401
7401
|
updatePositionStrategy: d = "optimized",
|
|
7402
7402
|
onPlaced: b,
|
|
7403
7403
|
...g
|
|
7404
|
-
} = t, m = t0(gu, r), [y,
|
|
7404
|
+
} = t, m = t0(gu, r), [y, v] = x.useState(null), w = Ae(e, (st) => v(st)), [S, N] = x.useState(null), O = Zf(S), k = (O == null ? void 0 : O.width) ?? 0, j = (O == null ? void 0 : O.height) ?? 0, F = n + (i !== "center" ? "-" + i : ""), $ = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, E = Array.isArray(l) ? l : [l], C = E.length > 0, D = {
|
|
7405
7405
|
padding: $,
|
|
7406
7406
|
boundary: E.filter(W6),
|
|
7407
7407
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7440,7 +7440,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7440
7440
|
Xt(() => {
|
|
7441
7441
|
_ && (ne == null || ne());
|
|
7442
7442
|
}, [_, ne]);
|
|
7443
|
-
const Q = (z = M.arrow) == null ? void 0 : z.x, q = (Ie = M.arrow) == null ? void 0 : Ie.y, H = ((Te = M.arrow) == null ? void 0 : Te.centerOffset) !== 0, [be, Z] =
|
|
7443
|
+
const Q = (z = M.arrow) == null ? void 0 : z.x, q = (Ie = M.arrow) == null ? void 0 : Ie.y, H = ((Te = M.arrow) == null ? void 0 : Te.centerOffset) !== 0, [be, Z] = x.useState();
|
|
7444
7444
|
return Xt(() => {
|
|
7445
7445
|
y && Z(window.getComputedStyle(y).zIndex);
|
|
7446
7446
|
}, [y]), /* @__PURE__ */ h(
|
|
@@ -7461,7 +7461,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7461
7461
|
// hide the content if using the hide middleware and should be hidden
|
|
7462
7462
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
7463
7463
|
// as if the PopperContent isn't there at all
|
|
7464
|
-
...((
|
|
7464
|
+
...((St = M.hide) == null ? void 0 : St.referenceHidden) && {
|
|
7465
7465
|
visibility: "hidden",
|
|
7466
7466
|
pointerEvents: "none"
|
|
7467
7467
|
}
|
|
@@ -7503,7 +7503,7 @@ var a0 = "PopperArrow", V6 = {
|
|
|
7503
7503
|
right: "left",
|
|
7504
7504
|
bottom: "top",
|
|
7505
7505
|
left: "right"
|
|
7506
|
-
}, s0 =
|
|
7506
|
+
}, s0 = x.forwardRef(function(e, r) {
|
|
7507
7507
|
const { __scopePopper: n, ...o } = e, i = U6(a0, n), a = V6[i.placedSide];
|
|
7508
7508
|
return (
|
|
7509
7509
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -7556,8 +7556,8 @@ var G6 = (t) => ({
|
|
|
7556
7556
|
name: "transformOrigin",
|
|
7557
7557
|
options: t,
|
|
7558
7558
|
fn(e) {
|
|
7559
|
-
var m, y,
|
|
7560
|
-
const { placement: r, rects: n, middlewareData: o } = e, a = ((m = o.arrow) == null ? void 0 : m.centerOffset) !== 0, s = a ? 0 : t.arrowWidth, u = a ? 0 : t.arrowHeight, [l, c] = u0(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, d = (((
|
|
7559
|
+
var m, y, v;
|
|
7560
|
+
const { placement: r, rects: n, middlewareData: o } = e, a = ((m = o.arrow) == null ? void 0 : m.centerOffset) !== 0, s = a ? 0 : t.arrowWidth, u = a ? 0 : t.arrowHeight, [l, c] = u0(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, d = (((v = o.arrow) == null ? void 0 : v.y) ?? 0) + u / 2;
|
|
7561
7561
|
let b = "", g = "";
|
|
7562
7562
|
return l === "bottom" ? (b = a ? p : `${f}px`, g = `${-u}px`) : l === "top" ? (b = a ? p : `${f}px`, g = `${n.floating.height + u}px`) : l === "right" ? (b = `${-u}px`, g = a ? p : `${d}px`) : l === "left" && (b = `${n.floating.width + u}px`, g = a ? p : `${d}px`), { data: { x: b, y: g } };
|
|
7563
7563
|
}
|
|
@@ -7568,15 +7568,15 @@ function u0(t) {
|
|
|
7568
7568
|
}
|
|
7569
7569
|
var Y6 = r0, X6 = o0, K6 = i0, J6 = s0;
|
|
7570
7570
|
function Z6(t, e) {
|
|
7571
|
-
return
|
|
7571
|
+
return x.useReducer((r, n) => e[r][n] ?? r, t);
|
|
7572
7572
|
}
|
|
7573
7573
|
var wr = (t) => {
|
|
7574
|
-
const { present: e, children: r } = t, n = Q6(e), o = typeof r == "function" ? r({ present: n.isPresent }) :
|
|
7575
|
-
return typeof r == "function" || n.isPresent ?
|
|
7574
|
+
const { present: e, children: r } = t, n = Q6(e), o = typeof r == "function" ? r({ present: n.isPresent }) : x.Children.only(r), i = Ae(n.ref, e4(o));
|
|
7575
|
+
return typeof r == "function" || n.isPresent ? x.cloneElement(o, { ref: i }) : null;
|
|
7576
7576
|
};
|
|
7577
7577
|
wr.displayName = "Presence";
|
|
7578
7578
|
function Q6(t) {
|
|
7579
|
-
const [e, r] =
|
|
7579
|
+
const [e, r] = x.useState(), n = x.useRef(null), o = x.useRef(t), i = x.useRef("none"), a = t ? "mounted" : "unmounted", [s, u] = Z6(a, {
|
|
7580
7580
|
mounted: {
|
|
7581
7581
|
UNMOUNT: "unmounted",
|
|
7582
7582
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -7589,7 +7589,7 @@ function Q6(t) {
|
|
|
7589
7589
|
MOUNT: "mounted"
|
|
7590
7590
|
}
|
|
7591
7591
|
});
|
|
7592
|
-
return
|
|
7592
|
+
return x.useEffect(() => {
|
|
7593
7593
|
const l = mo(n.current);
|
|
7594
7594
|
i.current = s === "mounted" ? l : "none";
|
|
7595
7595
|
}, [s]), Xt(() => {
|
|
@@ -7619,7 +7619,7 @@ function Q6(t) {
|
|
|
7619
7619
|
u("ANIMATION_END");
|
|
7620
7620
|
}, [e, u]), {
|
|
7621
7621
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
7622
|
-
ref:
|
|
7622
|
+
ref: x.useCallback((l) => {
|
|
7623
7623
|
n.current = l ? getComputedStyle(l) : null, r(l);
|
|
7624
7624
|
}, [])
|
|
7625
7625
|
};
|
|
@@ -7638,7 +7638,7 @@ function r4(t) {
|
|
|
7638
7638
|
const e = ({ children: r }) => /* @__PURE__ */ h(lr, { children: r });
|
|
7639
7639
|
return e.displayName = `${t}.Slottable`, e.__radixId = t4, e;
|
|
7640
7640
|
}
|
|
7641
|
-
var n4 =
|
|
7641
|
+
var n4 = x[" useInsertionEffect ".trim().toString()] || Xt;
|
|
7642
7642
|
function sn({
|
|
7643
7643
|
prop: t,
|
|
7644
7644
|
defaultProp: e,
|
|
@@ -7651,15 +7651,15 @@ function sn({
|
|
|
7651
7651
|
onChange: r
|
|
7652
7652
|
}), s = t !== void 0, u = s ? t : o;
|
|
7653
7653
|
{
|
|
7654
|
-
const c =
|
|
7655
|
-
|
|
7654
|
+
const c = x.useRef(t !== void 0);
|
|
7655
|
+
x.useEffect(() => {
|
|
7656
7656
|
const p = c.current;
|
|
7657
7657
|
p !== s && console.warn(
|
|
7658
7658
|
`${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
7659
7659
|
), c.current = s;
|
|
7660
7660
|
}, [s, n]);
|
|
7661
7661
|
}
|
|
7662
|
-
const l =
|
|
7662
|
+
const l = x.useCallback(
|
|
7663
7663
|
(c) => {
|
|
7664
7664
|
var p;
|
|
7665
7665
|
if (s) {
|
|
@@ -7676,10 +7676,10 @@ function o4({
|
|
|
7676
7676
|
defaultProp: t,
|
|
7677
7677
|
onChange: e
|
|
7678
7678
|
}) {
|
|
7679
|
-
const [r, n] =
|
|
7679
|
+
const [r, n] = x.useState(t), o = x.useRef(r), i = x.useRef(e);
|
|
7680
7680
|
return n4(() => {
|
|
7681
7681
|
i.current = e;
|
|
7682
|
-
}, [e]),
|
|
7682
|
+
}, [e]), x.useEffect(() => {
|
|
7683
7683
|
var a;
|
|
7684
7684
|
o.current !== r && ((a = i.current) == null || a.call(i, r), o.current = r);
|
|
7685
7685
|
}, [r, o]), [r, n, i];
|
|
@@ -7699,7 +7699,7 @@ var a4 = Object.freeze({
|
|
|
7699
7699
|
clip: "rect(0, 0, 0, 0)",
|
|
7700
7700
|
whiteSpace: "nowrap",
|
|
7701
7701
|
wordWrap: "normal"
|
|
7702
|
-
}), s4 = "VisuallyHidden", l0 =
|
|
7702
|
+
}), s4 = "VisuallyHidden", l0 = x.forwardRef(
|
|
7703
7703
|
(t, e) => /* @__PURE__ */ h(
|
|
7704
7704
|
we.span,
|
|
7705
7705
|
{
|
|
@@ -7719,8 +7719,8 @@ var u4 = l0, [Di] = xr("Tooltip", [
|
|
|
7719
7719
|
skipDelayDuration: n = 300,
|
|
7720
7720
|
disableHoverableContent: o = !1,
|
|
7721
7721
|
children: i
|
|
7722
|
-
} = t, a =
|
|
7723
|
-
return
|
|
7722
|
+
} = t, a = x.useRef(!0), s = x.useRef(!1), u = x.useRef(0);
|
|
7723
|
+
return x.useEffect(() => {
|
|
7724
7724
|
const l = u.current;
|
|
7725
7725
|
return () => window.clearTimeout(l);
|
|
7726
7726
|
}, []), /* @__PURE__ */ h(
|
|
@@ -7729,17 +7729,17 @@ var u4 = l0, [Di] = xr("Tooltip", [
|
|
|
7729
7729
|
scope: e,
|
|
7730
7730
|
isOpenDelayedRef: a,
|
|
7731
7731
|
delayDuration: r,
|
|
7732
|
-
onOpen:
|
|
7732
|
+
onOpen: x.useCallback(() => {
|
|
7733
7733
|
window.clearTimeout(u.current), a.current = !1;
|
|
7734
7734
|
}, []),
|
|
7735
|
-
onClose:
|
|
7735
|
+
onClose: x.useCallback(() => {
|
|
7736
7736
|
window.clearTimeout(u.current), u.current = window.setTimeout(
|
|
7737
7737
|
() => a.current = !0,
|
|
7738
7738
|
n
|
|
7739
7739
|
);
|
|
7740
7740
|
}, [n]),
|
|
7741
7741
|
isPointerInTransitRef: s,
|
|
7742
|
-
onPointerInTransitChange:
|
|
7742
|
+
onPointerInTransitChange: x.useCallback((l) => {
|
|
7743
7743
|
s.current = l;
|
|
7744
7744
|
}, []),
|
|
7745
7745
|
disableHoverableContent: o,
|
|
@@ -7757,23 +7757,23 @@ var Dn = "Tooltip", [d4, Mi] = Di(Dn), f0 = (t) => {
|
|
|
7757
7757
|
onOpenChange: i,
|
|
7758
7758
|
disableHoverableContent: a,
|
|
7759
7759
|
delayDuration: s
|
|
7760
|
-
} = t, u = yu(Dn, t.__scopeTooltip), l = Li(e), [c, p] =
|
|
7760
|
+
} = t, u = yu(Dn, t.__scopeTooltip), l = Li(e), [c, p] = x.useState(null), f = Bf(), d = x.useRef(0), b = a ?? u.disableHoverableContent, g = s ?? u.delayDuration, m = x.useRef(!1), [y, v] = sn({
|
|
7761
7761
|
prop: n,
|
|
7762
7762
|
defaultProp: o ?? !1,
|
|
7763
7763
|
onChange: (k) => {
|
|
7764
7764
|
k ? (u.onOpen(), document.dispatchEvent(new CustomEvent(is))) : u.onClose(), i == null || i(k);
|
|
7765
7765
|
},
|
|
7766
7766
|
caller: Dn
|
|
7767
|
-
}), w =
|
|
7768
|
-
window.clearTimeout(d.current), d.current = 0, m.current = !1,
|
|
7769
|
-
}, [
|
|
7770
|
-
window.clearTimeout(d.current), d.current = 0,
|
|
7771
|
-
}, [
|
|
7767
|
+
}), w = x.useMemo(() => y ? m.current ? "delayed-open" : "instant-open" : "closed", [y]), S = x.useCallback(() => {
|
|
7768
|
+
window.clearTimeout(d.current), d.current = 0, m.current = !1, v(!0);
|
|
7769
|
+
}, [v]), N = x.useCallback(() => {
|
|
7770
|
+
window.clearTimeout(d.current), d.current = 0, v(!1);
|
|
7771
|
+
}, [v]), O = x.useCallback(() => {
|
|
7772
7772
|
window.clearTimeout(d.current), d.current = window.setTimeout(() => {
|
|
7773
|
-
m.current = !0,
|
|
7773
|
+
m.current = !0, v(!0), d.current = 0;
|
|
7774
7774
|
}, g);
|
|
7775
|
-
}, [g,
|
|
7776
|
-
return
|
|
7775
|
+
}, [g, v]);
|
|
7776
|
+
return x.useEffect(() => () => {
|
|
7777
7777
|
d.current && (window.clearTimeout(d.current), d.current = 0);
|
|
7778
7778
|
}, []), /* @__PURE__ */ h(Y6, { ...l, children: /* @__PURE__ */ h(
|
|
7779
7779
|
d4,
|
|
@@ -7784,10 +7784,10 @@ var Dn = "Tooltip", [d4, Mi] = Di(Dn), f0 = (t) => {
|
|
|
7784
7784
|
stateAttribute: w,
|
|
7785
7785
|
trigger: c,
|
|
7786
7786
|
onTriggerChange: p,
|
|
7787
|
-
onTriggerEnter:
|
|
7788
|
-
u.isOpenDelayedRef.current ?
|
|
7789
|
-
}, [u.isOpenDelayedRef,
|
|
7790
|
-
onTriggerLeave:
|
|
7787
|
+
onTriggerEnter: x.useCallback(() => {
|
|
7788
|
+
u.isOpenDelayedRef.current ? O() : S();
|
|
7789
|
+
}, [u.isOpenDelayedRef, O, S]),
|
|
7790
|
+
onTriggerLeave: x.useCallback(() => {
|
|
7791
7791
|
b ? N() : (window.clearTimeout(d.current), d.current = 0);
|
|
7792
7792
|
}, [N, b]),
|
|
7793
7793
|
onOpen: S,
|
|
@@ -7798,10 +7798,10 @@ var Dn = "Tooltip", [d4, Mi] = Di(Dn), f0 = (t) => {
|
|
|
7798
7798
|
) });
|
|
7799
7799
|
};
|
|
7800
7800
|
f0.displayName = Dn;
|
|
7801
|
-
var as = "TooltipTrigger", p0 =
|
|
7801
|
+
var as = "TooltipTrigger", p0 = x.forwardRef(
|
|
7802
7802
|
(t, e) => {
|
|
7803
|
-
const { __scopeTooltip: r, ...n } = t, o = Mi(as, r), i = yu(as, r), a = Li(r), s =
|
|
7804
|
-
return
|
|
7803
|
+
const { __scopeTooltip: r, ...n } = t, o = Mi(as, r), i = yu(as, r), a = Li(r), s = x.useRef(null), u = Ae(e, s, o.onTriggerChange), l = x.useRef(!1), c = x.useRef(!1), p = x.useCallback(() => l.current = !1, []);
|
|
7804
|
+
return x.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ h(X6, { asChild: !0, ...a, children: /* @__PURE__ */ h(
|
|
7805
7805
|
we.button,
|
|
7806
7806
|
{
|
|
7807
7807
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7829,38 +7829,38 @@ var as = "TooltipTrigger", p0 = v.forwardRef(
|
|
|
7829
7829
|
p0.displayName = as;
|
|
7830
7830
|
var f4 = "TooltipPortal", [$N, p4] = Di(f4, {
|
|
7831
7831
|
forceMount: void 0
|
|
7832
|
-
}), Fr = "TooltipContent", h0 =
|
|
7832
|
+
}), Fr = "TooltipContent", h0 = x.forwardRef(
|
|
7833
7833
|
(t, e) => {
|
|
7834
7834
|
const r = p4(Fr, t.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...i } = t, a = Mi(Fr, t.__scopeTooltip);
|
|
7835
7835
|
return /* @__PURE__ */ h(wr, { present: n || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ h(m0, { side: o, ...i, ref: e }) : /* @__PURE__ */ h(h4, { side: o, ...i, ref: e }) });
|
|
7836
7836
|
}
|
|
7837
|
-
), h4 =
|
|
7838
|
-
const r = Mi(Fr, t.__scopeTooltip), n = yu(Fr, t.__scopeTooltip), o =
|
|
7837
|
+
), h4 = x.forwardRef((t, e) => {
|
|
7838
|
+
const r = Mi(Fr, t.__scopeTooltip), n = yu(Fr, t.__scopeTooltip), o = x.useRef(null), i = Ae(e, o), [a, s] = x.useState(null), { trigger: u, onClose: l } = r, c = o.current, { onPointerInTransitChange: p } = n, f = x.useCallback(() => {
|
|
7839
7839
|
s(null), p(!1);
|
|
7840
|
-
}, [p]), d =
|
|
7840
|
+
}, [p]), d = x.useCallback(
|
|
7841
7841
|
(b, g) => {
|
|
7842
|
-
const m = b.currentTarget, y = { x: b.clientX, y: b.clientY },
|
|
7842
|
+
const m = b.currentTarget, y = { x: b.clientX, y: b.clientY }, v = v4(y, m.getBoundingClientRect()), w = x4(y, v), S = w4(g.getBoundingClientRect()), N = E4([...w, ...S]);
|
|
7843
7843
|
s(N), p(!0);
|
|
7844
7844
|
},
|
|
7845
7845
|
[p]
|
|
7846
7846
|
);
|
|
7847
|
-
return
|
|
7847
|
+
return x.useEffect(() => () => f(), [f]), x.useEffect(() => {
|
|
7848
7848
|
if (u && c) {
|
|
7849
7849
|
const b = (m) => d(m, c), g = (m) => d(m, u);
|
|
7850
7850
|
return u.addEventListener("pointerleave", b), c.addEventListener("pointerleave", g), () => {
|
|
7851
7851
|
u.removeEventListener("pointerleave", b), c.removeEventListener("pointerleave", g);
|
|
7852
7852
|
};
|
|
7853
7853
|
}
|
|
7854
|
-
}, [u, c, d, f]),
|
|
7854
|
+
}, [u, c, d, f]), x.useEffect(() => {
|
|
7855
7855
|
if (a) {
|
|
7856
7856
|
const b = (g) => {
|
|
7857
|
-
const m = g.target, y = { x: g.clientX, y: g.clientY },
|
|
7858
|
-
|
|
7857
|
+
const m = g.target, y = { x: g.clientX, y: g.clientY }, v = (u == null ? void 0 : u.contains(m)) || (c == null ? void 0 : c.contains(m)), w = !S4(y, a);
|
|
7858
|
+
v ? f() : w && (f(), l());
|
|
7859
7859
|
};
|
|
7860
7860
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
7861
7861
|
}
|
|
7862
7862
|
}, [u, c, a, l, f]), /* @__PURE__ */ h(m0, { ...t, ref: i });
|
|
7863
|
-
}), [m4, b4] = Di(Dn, { isInside: !1 }), g4 = /* @__PURE__ */ r4("TooltipContent"), m0 =
|
|
7863
|
+
}), [m4, b4] = Di(Dn, { isInside: !1 }), g4 = /* @__PURE__ */ r4("TooltipContent"), m0 = x.forwardRef(
|
|
7864
7864
|
(t, e) => {
|
|
7865
7865
|
const {
|
|
7866
7866
|
__scopeTooltip: r,
|
|
@@ -7870,7 +7870,7 @@ var f4 = "TooltipPortal", [$N, p4] = Di(f4, {
|
|
|
7870
7870
|
onPointerDownOutside: a,
|
|
7871
7871
|
...s
|
|
7872
7872
|
} = t, u = Mi(Fr, r), l = Li(r), { onClose: c } = u;
|
|
7873
|
-
return
|
|
7873
|
+
return x.useEffect(() => (document.addEventListener(is, c), () => document.removeEventListener(is, c)), [c]), x.useEffect(() => {
|
|
7874
7874
|
if (u.trigger) {
|
|
7875
7875
|
const p = (f) => {
|
|
7876
7876
|
const d = f.target;
|
|
@@ -7913,7 +7913,7 @@ var f4 = "TooltipPortal", [$N, p4] = Di(f4, {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
);
|
|
7915
7915
|
h0.displayName = Fr;
|
|
7916
|
-
var b0 = "TooltipArrow", y4 =
|
|
7916
|
+
var b0 = "TooltipArrow", y4 = x.forwardRef(
|
|
7917
7917
|
(t, e) => {
|
|
7918
7918
|
const { __scopeTooltip: r, ...n } = t, o = Li(r);
|
|
7919
7919
|
return b4(
|
|
@@ -8016,7 +8016,7 @@ function C4(t) {
|
|
|
8016
8016
|
return r.pop(), e.length === 1 && r.length === 1 && e[0].x === r[0].x && e[0].y === r[0].y ? e : e.concat(r);
|
|
8017
8017
|
}
|
|
8018
8018
|
var T4 = d0, N4 = f0, A4 = p0, g0 = h0;
|
|
8019
|
-
const Ln = T4, Hr = N4, qr = A4, pr =
|
|
8019
|
+
const Ln = T4, Hr = N4, qr = A4, pr = x.forwardRef(({ className: t, sideOffset: e = 4, ...r }, n) => /* @__PURE__ */ h(
|
|
8020
8020
|
g0,
|
|
8021
8021
|
{
|
|
8022
8022
|
ref: n,
|
|
@@ -8069,7 +8069,7 @@ const Mr = {
|
|
|
8069
8069
|
onChange: (s) => r(parseInt(s.target.value)),
|
|
8070
8070
|
min: n,
|
|
8071
8071
|
max: o,
|
|
8072
|
-
className:
|
|
8072
|
+
className: ht(
|
|
8073
8073
|
"w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",
|
|
8074
8074
|
a
|
|
8075
8075
|
)
|
|
@@ -8086,7 +8086,7 @@ const Mr = {
|
|
|
8086
8086
|
unit: i = "px",
|
|
8087
8087
|
defaultValue: a = 16
|
|
8088
8088
|
}) => {
|
|
8089
|
-
const s =
|
|
8089
|
+
const s = Pe(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (g, m) => {
|
|
8090
8090
|
const y = { ...c, [g]: m };
|
|
8091
8091
|
r(y);
|
|
8092
8092
|
}, d = (g) => {
|
|
@@ -8112,7 +8112,7 @@ const Mr = {
|
|
|
8112
8112
|
] }) })
|
|
8113
8113
|
] }),
|
|
8114
8114
|
u ? /* @__PURE__ */ h("div", { className: "space-y-1.5 pl-2 border-l-2 border-primary/20", children: et.map((g) => {
|
|
8115
|
-
const m = Mr[g].icon, y = c[g],
|
|
8115
|
+
const m = Mr[g].icon, y = c[g], v = y === void 0 ? et.find(
|
|
8116
8116
|
(w) => et.indexOf(w) > et.indexOf(g) && c[w] !== void 0
|
|
8117
8117
|
) || "desktop" : null;
|
|
8118
8118
|
return /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
|
|
@@ -8131,7 +8131,7 @@ const Mr = {
|
|
|
8131
8131
|
{
|
|
8132
8132
|
type: "number",
|
|
8133
8133
|
value: y ?? "",
|
|
8134
|
-
placeholder:
|
|
8134
|
+
placeholder: v ? `${c[v] ?? a}` : "",
|
|
8135
8135
|
onChange: (w) => {
|
|
8136
8136
|
const S = w.target.value === "" ? void 0 : parseInt(w.target.value) || 0;
|
|
8137
8137
|
f(g, S);
|
|
@@ -8160,7 +8160,7 @@ const Mr = {
|
|
|
8160
8160
|
] });
|
|
8161
8161
|
}, Ge = ({ label: t, values: e, onChange: r }) => {
|
|
8162
8162
|
var s;
|
|
8163
|
-
const n =
|
|
8163
|
+
const n = Pe(), [o, i] = me(!0), a = (u, l) => {
|
|
8164
8164
|
r(o ? {
|
|
8165
8165
|
[n]: {
|
|
8166
8166
|
top: l,
|
|
@@ -8220,7 +8220,7 @@ const Mr = {
|
|
|
8220
8220
|
}) => /* @__PURE__ */ P(
|
|
8221
8221
|
"div",
|
|
8222
8222
|
{
|
|
8223
|
-
className:
|
|
8223
|
+
className: ht(
|
|
8224
8224
|
"flex items-center justify-between",
|
|
8225
8225
|
o,
|
|
8226
8226
|
i
|
|
@@ -8232,7 +8232,7 @@ const Mr = {
|
|
|
8232
8232
|
{
|
|
8233
8233
|
value: e,
|
|
8234
8234
|
onChange: (a) => n(a.target.value),
|
|
8235
|
-
className:
|
|
8235
|
+
className: ht(
|
|
8236
8236
|
"px-2 py-1 text-xs rounded border border-input bg-background ",
|
|
8237
8237
|
i
|
|
8238
8238
|
),
|
|
@@ -8241,7 +8241,7 @@ const Mr = {
|
|
|
8241
8241
|
)
|
|
8242
8242
|
]
|
|
8243
8243
|
}
|
|
8244
|
-
),
|
|
8244
|
+
), ft = ({ label: t, value: e, onChange: r }) => /* @__PURE__ */ P("div", { className: "flex items-center justify-between", children: [
|
|
8245
8245
|
/* @__PURE__ */ h("label", { className: "text-xs text-muted-foreground", children: t }),
|
|
8246
8246
|
/* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
|
|
8247
8247
|
/* @__PURE__ */ h(
|
|
@@ -8330,7 +8330,7 @@ const Mr = {
|
|
|
8330
8330
|
unit: i = "",
|
|
8331
8331
|
defaultValue: a = 50
|
|
8332
8332
|
}) => {
|
|
8333
|
-
const s =
|
|
8333
|
+
const s = Pe(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (b, g) => {
|
|
8334
8334
|
const m = { ...c, [b]: g };
|
|
8335
8335
|
r(m);
|
|
8336
8336
|
}, d = et.some(
|
|
@@ -8418,24 +8418,24 @@ const Mr = {
|
|
|
8418
8418
|
boxShadow: b = "none",
|
|
8419
8419
|
opacity: g = 100
|
|
8420
8420
|
}) => {
|
|
8421
|
-
const m =
|
|
8422
|
-
let y,
|
|
8421
|
+
const m = Pe();
|
|
8422
|
+
let y, v, w;
|
|
8423
8423
|
try {
|
|
8424
8424
|
const { connectors: L, events: T } = ue((A) => ({
|
|
8425
8425
|
events: A.events
|
|
8426
8426
|
}));
|
|
8427
|
-
y = L.connect,
|
|
8427
|
+
y = L.connect, v = L.drag, w = T.selected;
|
|
8428
8428
|
} catch {
|
|
8429
8429
|
}
|
|
8430
8430
|
const S = {
|
|
8431
8431
|
sm: { px: 12, py: 6, fs: 14 },
|
|
8432
8432
|
md: { px: 16, py: 10, fs: 16 },
|
|
8433
8433
|
lg: { px: 24, py: 14, fs: 18 }
|
|
8434
|
-
}, N = S[r] || S.md,
|
|
8434
|
+
}, N = S[r] || S.md, O = p === "auto" ? N.px : p, k = f === "auto" ? N.py : f, j = l === "auto" ? N.fs : l, F = typeof d[m] == "object" ? `${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px` : `${d[m]}px`, $ = e === "outline" ? "transparent" : n, E = e === "outline" ? n : o, C = e === "outline" ? 2 : a, D = e === "outline" ? n : i;
|
|
8435
8435
|
return /* @__PURE__ */ h(
|
|
8436
8436
|
"button",
|
|
8437
8437
|
{
|
|
8438
|
-
ref: (L) => L && y &&
|
|
8438
|
+
ref: (L) => L && y && v && (y == null ? void 0 : y(v == null ? void 0 : v(L))),
|
|
8439
8439
|
className: `cursor-move transition-all hover:opacity-90 ${w ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
8440
8440
|
style: {
|
|
8441
8441
|
backgroundColor: $,
|
|
@@ -8446,7 +8446,7 @@ const Mr = {
|
|
|
8446
8446
|
borderRadius: `${s}px`,
|
|
8447
8447
|
fontWeight: u,
|
|
8448
8448
|
fontSize: `${j}px`,
|
|
8449
|
-
padding: `${k}px ${
|
|
8449
|
+
padding: `${k}px ${O}px`,
|
|
8450
8450
|
margin: F,
|
|
8451
8451
|
width: c === "full" ? "100%" : "auto",
|
|
8452
8452
|
boxShadow: b === "none" ? "none" : b,
|
|
@@ -8512,7 +8512,7 @@ const Mr = {
|
|
|
8512
8512
|
] }),
|
|
8513
8513
|
/* @__PURE__ */ P(Y, { title: "Colors", defaultOpen: !0, children: [
|
|
8514
8514
|
/* @__PURE__ */ h(
|
|
8515
|
-
|
|
8515
|
+
ft,
|
|
8516
8516
|
{
|
|
8517
8517
|
label: "Background",
|
|
8518
8518
|
value: e.backgroundColor || "#FF6B35",
|
|
@@ -8520,7 +8520,7 @@ const Mr = {
|
|
|
8520
8520
|
}
|
|
8521
8521
|
),
|
|
8522
8522
|
/* @__PURE__ */ h(
|
|
8523
|
-
|
|
8523
|
+
ft,
|
|
8524
8524
|
{
|
|
8525
8525
|
label: "Text",
|
|
8526
8526
|
value: e.textColor || "#ffffff",
|
|
@@ -8610,7 +8610,7 @@ const Mr = {
|
|
|
8610
8610
|
}
|
|
8611
8611
|
),
|
|
8612
8612
|
/* @__PURE__ */ h(
|
|
8613
|
-
|
|
8613
|
+
ft,
|
|
8614
8614
|
{
|
|
8615
8615
|
label: "Color",
|
|
8616
8616
|
value: e.borderColor || "#FF6B35",
|
|
@@ -8668,7 +8668,7 @@ vu.craft = {
|
|
|
8668
8668
|
};
|
|
8669
8669
|
const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile || t) || "", Rr = ({ label: t, value: e, onChange: r, max: n = 1e4 }) => {
|
|
8670
8670
|
var p, f, d;
|
|
8671
|
-
const o =
|
|
8671
|
+
const o = Pe(), i = ((p = e == null ? void 0 : e[o]) == null ? void 0 : p.type) || "custom", a = (f = e == null ? void 0 : e[o]) == null ? void 0 : f.value, s = ((d = e == null ? void 0 : e[o]) == null ? void 0 : d.unit) || "%";
|
|
8672
8672
|
return /* @__PURE__ */ P("div", { className: "space-y-2", children: [
|
|
8673
8673
|
/* @__PURE__ */ h("label", { className: "text-xs font-medium", children: t }),
|
|
8674
8674
|
/* @__PURE__ */ h(
|
|
@@ -8721,7 +8721,7 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
|
|
|
8721
8721
|
] })
|
|
8722
8722
|
] });
|
|
8723
8723
|
}, R4 = (t) => t ? typeof t == "string" ? t : typeof t == "number" ? `${t}px` : t.type === "none" ? "none" : t.type === "auto" ? "auto" : t.type === "custom" ? `${t.value}${t.unit || "px"}` : "auto" : "auto", xu = (t) => {
|
|
8724
|
-
const e =
|
|
8724
|
+
const e = Pe(), r = (a) => {
|
|
8725
8725
|
var u, l;
|
|
8726
8726
|
const s = ((u = t == null ? void 0 : t[a]) == null ? void 0 : u[e]) || ((l = t == null ? void 0 : t[a]) == null ? void 0 : l.desktop);
|
|
8727
8727
|
return R4(s);
|
|
@@ -8940,7 +8940,7 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
|
|
|
8940
8940
|
] }),
|
|
8941
8941
|
/* @__PURE__ */ P(Y, { title: "Background", defaultOpen: !1, children: [
|
|
8942
8942
|
/* @__PURE__ */ h(
|
|
8943
|
-
|
|
8943
|
+
ft,
|
|
8944
8944
|
{
|
|
8945
8945
|
label: "Color",
|
|
8946
8946
|
value: r.backgroundColor || "transparent",
|
|
@@ -9007,7 +9007,7 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
|
|
|
9007
9007
|
}
|
|
9008
9008
|
),
|
|
9009
9009
|
/* @__PURE__ */ h(
|
|
9010
|
-
|
|
9010
|
+
ft,
|
|
9011
9011
|
{
|
|
9012
9012
|
label: "Color",
|
|
9013
9013
|
value: r.borderColor || "transparent",
|
|
@@ -9305,7 +9305,7 @@ var us = {};
|
|
|
9305
9305
|
(function(E) {
|
|
9306
9306
|
E[E.Legacy = 0] = "Legacy", E[E.Strict = 1] = "Strict", E[E.Attribute = 2] = "Attribute";
|
|
9307
9307
|
})(y = t.DecodingMode || (t.DecodingMode = {}));
|
|
9308
|
-
var
|
|
9308
|
+
var v = (
|
|
9309
9309
|
/** @class */
|
|
9310
9310
|
function() {
|
|
9311
9311
|
function E(C, D, L) {
|
|
@@ -9398,9 +9398,9 @@ var us = {};
|
|
|
9398
9398
|
}, E;
|
|
9399
9399
|
}()
|
|
9400
9400
|
);
|
|
9401
|
-
t.EntityDecoder =
|
|
9401
|
+
t.EntityDecoder = v;
|
|
9402
9402
|
function w(E) {
|
|
9403
|
-
var C = "", D = new
|
|
9403
|
+
var C = "", D = new v(E, function(L) {
|
|
9404
9404
|
return C += (0, s.fromCodePoint)(L);
|
|
9405
9405
|
});
|
|
9406
9406
|
return function(T, A) {
|
|
@@ -9441,7 +9441,7 @@ var us = {};
|
|
|
9441
9441
|
return -1;
|
|
9442
9442
|
}
|
|
9443
9443
|
t.determineBranch = S;
|
|
9444
|
-
var N = w(i.default),
|
|
9444
|
+
var N = w(i.default), O = w(a.default);
|
|
9445
9445
|
function k(E, C) {
|
|
9446
9446
|
return C === void 0 && (C = y.Legacy), N(E, C);
|
|
9447
9447
|
}
|
|
@@ -9455,7 +9455,7 @@ var us = {};
|
|
|
9455
9455
|
}
|
|
9456
9456
|
t.decodeHTMLStrict = F;
|
|
9457
9457
|
function $(E) {
|
|
9458
|
-
return
|
|
9458
|
+
return O(E, y.Strict);
|
|
9459
9459
|
}
|
|
9460
9460
|
t.decodeXML = $;
|
|
9461
9461
|
})($n);
|
|
@@ -9500,8 +9500,8 @@ var us = {};
|
|
|
9500
9500
|
/** @class */
|
|
9501
9501
|
function() {
|
|
9502
9502
|
function f(d, b) {
|
|
9503
|
-
var g = d.xmlMode, m = g === void 0 ? !1 : g, y = d.decodeEntities,
|
|
9504
|
-
this.cbs = b, this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = m, this.decodeEntities =
|
|
9503
|
+
var g = d.xmlMode, m = g === void 0 ? !1 : g, y = d.decodeEntities, v = y === void 0 ? !0 : y;
|
|
9504
|
+
this.cbs = b, this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = m, this.decodeEntities = v, this.entityTrie = m ? e.xmlDecodeTree : e.htmlDecodeTree;
|
|
9505
9505
|
}
|
|
9506
9506
|
return f.prototype.reset = function() {
|
|
9507
9507
|
this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
|
@@ -10789,7 +10789,7 @@ var kr = V && V.__assign || function() {
|
|
|
10789
10789
|
};
|
|
10790
10790
|
Object.defineProperty(Yn, "__esModule", { value: !0 });
|
|
10791
10791
|
Yn.render = void 0;
|
|
10792
|
-
var
|
|
10792
|
+
var Ct = J4(un), oi = k0, L0 = zr, Z4 = /* @__PURE__ */ new Set([
|
|
10793
10793
|
"style",
|
|
10794
10794
|
"script",
|
|
10795
10795
|
"xmp",
|
|
@@ -10843,20 +10843,20 @@ Yn.render = Hi;
|
|
|
10843
10843
|
Yn.default = Hi;
|
|
10844
10844
|
function tS(t, e) {
|
|
10845
10845
|
switch (t.type) {
|
|
10846
|
-
case
|
|
10846
|
+
case Ct.Root:
|
|
10847
10847
|
return Hi(t.children, e);
|
|
10848
|
-
case
|
|
10849
|
-
case
|
|
10848
|
+
case Ct.Doctype:
|
|
10849
|
+
case Ct.Directive:
|
|
10850
10850
|
return iS(t);
|
|
10851
|
-
case
|
|
10851
|
+
case Ct.Comment:
|
|
10852
10852
|
return uS(t);
|
|
10853
|
-
case
|
|
10853
|
+
case Ct.CDATA:
|
|
10854
10854
|
return sS(t);
|
|
10855
|
-
case
|
|
10856
|
-
case
|
|
10857
|
-
case
|
|
10855
|
+
case Ct.Script:
|
|
10856
|
+
case Ct.Style:
|
|
10857
|
+
case Ct.Tag:
|
|
10858
10858
|
return oS(t, e);
|
|
10859
|
-
case
|
|
10859
|
+
case Ct.Text:
|
|
10860
10860
|
return aS(t, e);
|
|
10861
10861
|
}
|
|
10862
10862
|
}
|
|
@@ -10905,35 +10905,35 @@ er.getInnerHTML = fS;
|
|
|
10905
10905
|
er.getText = ko;
|
|
10906
10906
|
er.textContent = ls;
|
|
10907
10907
|
er.innerText = cs;
|
|
10908
|
-
var
|
|
10908
|
+
var pt = Dt, cS = lS(Yn), dS = un;
|
|
10909
10909
|
function M0(t, e) {
|
|
10910
10910
|
return (0, cS.default)(t, e);
|
|
10911
10911
|
}
|
|
10912
10912
|
function fS(t, e) {
|
|
10913
|
-
return (0,
|
|
10913
|
+
return (0, pt.hasChildren)(t) ? t.children.map(function(r) {
|
|
10914
10914
|
return M0(r, e);
|
|
10915
10915
|
}).join("") : "";
|
|
10916
10916
|
}
|
|
10917
10917
|
function ko(t) {
|
|
10918
|
-
return Array.isArray(t) ? t.map(ko).join("") : (0,
|
|
10919
|
-
` : ko(t.children) : (0,
|
|
10918
|
+
return Array.isArray(t) ? t.map(ko).join("") : (0, pt.isTag)(t) ? t.name === "br" ? `
|
|
10919
|
+
` : ko(t.children) : (0, pt.isCDATA)(t) ? ko(t.children) : (0, pt.isText)(t) ? t.data : "";
|
|
10920
10920
|
}
|
|
10921
10921
|
function ls(t) {
|
|
10922
|
-
return Array.isArray(t) ? t.map(ls).join("") : (0,
|
|
10922
|
+
return Array.isArray(t) ? t.map(ls).join("") : (0, pt.hasChildren)(t) && !(0, pt.isComment)(t) ? ls(t.children) : (0, pt.isText)(t) ? t.data : "";
|
|
10923
10923
|
}
|
|
10924
10924
|
function cs(t) {
|
|
10925
|
-
return Array.isArray(t) ? t.map(cs).join("") : (0,
|
|
10926
|
-
}
|
|
10927
|
-
var
|
|
10928
|
-
Object.defineProperty(
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10925
|
+
return Array.isArray(t) ? t.map(cs).join("") : (0, pt.hasChildren)(t) && (t.type === dS.ElementType.Tag || (0, pt.isCDATA)(t)) ? cs(t.children) : (0, pt.isText)(t) ? t.data : "";
|
|
10926
|
+
}
|
|
10927
|
+
var xt = {};
|
|
10928
|
+
Object.defineProperty(xt, "__esModule", { value: !0 });
|
|
10929
|
+
xt.getChildren = j0;
|
|
10930
|
+
xt.getParent = $0;
|
|
10931
|
+
xt.getSiblings = pS;
|
|
10932
|
+
xt.getAttributeValue = hS;
|
|
10933
|
+
xt.hasAttrib = mS;
|
|
10934
|
+
xt.getName = bS;
|
|
10935
|
+
xt.nextElementSibling = gS;
|
|
10936
|
+
xt.prevElementSibling = yS;
|
|
10937
10937
|
var Au = Dt;
|
|
10938
10938
|
function j0(t) {
|
|
10939
10939
|
return (0, Au.hasChildren)(t) ? t.children : [];
|
|
@@ -11305,7 +11305,7 @@ function qS(t) {
|
|
|
11305
11305
|
}), r = V && V.__exportStar || function(o, i) {
|
|
11306
11306
|
for (var a in o) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && e(i, o, a);
|
|
11307
11307
|
};
|
|
11308
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.hasChildren = t.isDocument = t.isComment = t.isText = t.isCDATA = t.isTag = void 0, r(er, t), r(
|
|
11308
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.hasChildren = t.isDocument = t.isComment = t.isText = t.isCDATA = t.isTag = void 0, r(er, t), r(xt, t), r(tr, t), r(Mt, t), r(jt, t), r(Sr, t), r(Ru, t);
|
|
11309
11309
|
var n = Dt;
|
|
11310
11310
|
Object.defineProperty(t, "isTag", { enumerable: !0, get: function() {
|
|
11311
11311
|
return n.isTag;
|
|
@@ -11322,23 +11322,23 @@ function qS(t) {
|
|
|
11322
11322
|
} });
|
|
11323
11323
|
})(Po);
|
|
11324
11324
|
(function(t) {
|
|
11325
|
-
var e = V && V.__createBinding || (Object.create ? function(y,
|
|
11325
|
+
var e = V && V.__createBinding || (Object.create ? function(y, v, w, S) {
|
|
11326
11326
|
S === void 0 && (S = w);
|
|
11327
|
-
var N = Object.getOwnPropertyDescriptor(
|
|
11328
|
-
(!N || ("get" in N ? !
|
|
11329
|
-
return
|
|
11327
|
+
var N = Object.getOwnPropertyDescriptor(v, w);
|
|
11328
|
+
(!N || ("get" in N ? !v.__esModule : N.writable || N.configurable)) && (N = { enumerable: !0, get: function() {
|
|
11329
|
+
return v[w];
|
|
11330
11330
|
} }), Object.defineProperty(y, S, N);
|
|
11331
|
-
} : function(y,
|
|
11332
|
-
S === void 0 && (S = w), y[S] =
|
|
11333
|
-
}), r = V && V.__setModuleDefault || (Object.create ? function(y,
|
|
11334
|
-
Object.defineProperty(y, "default", { enumerable: !0, value:
|
|
11335
|
-
} : function(y,
|
|
11336
|
-
y.default =
|
|
11331
|
+
} : function(y, v, w, S) {
|
|
11332
|
+
S === void 0 && (S = w), y[S] = v[w];
|
|
11333
|
+
}), r = V && V.__setModuleDefault || (Object.create ? function(y, v) {
|
|
11334
|
+
Object.defineProperty(y, "default", { enumerable: !0, value: v });
|
|
11335
|
+
} : function(y, v) {
|
|
11336
|
+
y.default = v;
|
|
11337
11337
|
}), n = V && V.__importStar || function(y) {
|
|
11338
11338
|
if (y && y.__esModule) return y;
|
|
11339
|
-
var
|
|
11340
|
-
if (y != null) for (var w in y) w !== "default" && Object.prototype.hasOwnProperty.call(y, w) && e(
|
|
11341
|
-
return r(
|
|
11339
|
+
var v = {};
|
|
11340
|
+
if (y != null) for (var w in y) w !== "default" && Object.prototype.hasOwnProperty.call(y, w) && e(v, y, w);
|
|
11341
|
+
return r(v, y), v;
|
|
11342
11342
|
}, o = V && V.__importDefault || function(y) {
|
|
11343
11343
|
return y && y.__esModule ? y : { default: y };
|
|
11344
11344
|
};
|
|
@@ -11353,18 +11353,18 @@ function qS(t) {
|
|
|
11353
11353
|
} }), Object.defineProperty(t, "DefaultHandler", { enumerable: !0, get: function() {
|
|
11354
11354
|
return u.DomHandler;
|
|
11355
11355
|
} });
|
|
11356
|
-
function l(y,
|
|
11357
|
-
var w = new s.DomHandler(void 0,
|
|
11358
|
-
return new i.Parser(w,
|
|
11356
|
+
function l(y, v) {
|
|
11357
|
+
var w = new s.DomHandler(void 0, v);
|
|
11358
|
+
return new i.Parser(w, v).end(y), w.root;
|
|
11359
11359
|
}
|
|
11360
11360
|
t.parseDocument = l;
|
|
11361
|
-
function c(y,
|
|
11362
|
-
return l(y,
|
|
11361
|
+
function c(y, v) {
|
|
11362
|
+
return l(y, v).children;
|
|
11363
11363
|
}
|
|
11364
11364
|
t.parseDOM = c;
|
|
11365
|
-
function p(y,
|
|
11366
|
-
var S = new s.DomHandler(y,
|
|
11367
|
-
return new i.Parser(S,
|
|
11365
|
+
function p(y, v, w) {
|
|
11366
|
+
var S = new s.DomHandler(y, v, w);
|
|
11367
|
+
return new i.Parser(S, v);
|
|
11368
11368
|
}
|
|
11369
11369
|
t.createDomStream = p;
|
|
11370
11370
|
var f = wu;
|
|
@@ -11376,8 +11376,8 @@ function qS(t) {
|
|
|
11376
11376
|
return b.getFeed;
|
|
11377
11377
|
} });
|
|
11378
11378
|
var g = { xmlMode: !0 };
|
|
11379
|
-
function m(y,
|
|
11380
|
-
return
|
|
11379
|
+
function m(y, v) {
|
|
11380
|
+
return v === void 0 && (v = g), (0, d.getFeed)(c(y, v));
|
|
11381
11381
|
}
|
|
11382
11382
|
t.parseFeed = m, t.DomUtils = n(Po);
|
|
11383
11383
|
})(v0);
|
|
@@ -11485,16 +11485,16 @@ var nE = Ur, oE = nE, W0 = { exports: {} };
|
|
|
11485
11485
|
S === "\r";
|
|
11486
11486
|
}
|
|
11487
11487
|
function n(S) {
|
|
11488
|
-
var N,
|
|
11489
|
-
if (
|
|
11490
|
-
return N =
|
|
11488
|
+
var N, O = S.exec(e.substring(m));
|
|
11489
|
+
if (O)
|
|
11490
|
+
return N = O[0], m += N.length, N;
|
|
11491
11491
|
}
|
|
11492
11492
|
for (var o = e.length, i = /^[ \t\n\r\u000c]+/, a = /^[, \t\n\r\u000c]+/, s = /^[^ \t\n\r\u000c]+/, u = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, b, g, m = 0, y = []; ; ) {
|
|
11493
11493
|
if (n(a), m >= o)
|
|
11494
11494
|
return y;
|
|
11495
|
-
p = n(s), f = [], p.slice(-1) === "," ? (p = p.replace(u, ""), w()) :
|
|
11495
|
+
p = n(s), f = [], p.slice(-1) === "," ? (p = p.replace(u, ""), w()) : v();
|
|
11496
11496
|
}
|
|
11497
|
-
function
|
|
11497
|
+
function v() {
|
|
11498
11498
|
for (n(i), d = "", b = "in descriptor"; ; ) {
|
|
11499
11499
|
if (g = e.charAt(m), b === "in descriptor")
|
|
11500
11500
|
if (r(g))
|
|
@@ -11527,10 +11527,10 @@ var nE = Ur, oE = nE, W0 = { exports: {} };
|
|
|
11527
11527
|
}
|
|
11528
11528
|
}
|
|
11529
11529
|
function w() {
|
|
11530
|
-
var S = !1, N,
|
|
11530
|
+
var S = !1, N, O, k, j, F = {}, $, E, C, D, L;
|
|
11531
11531
|
for (j = 0; j < f.length; j++)
|
|
11532
|
-
$ = f[j], E = $[$.length - 1], C = $.substring(0, $.length - 1), D = parseInt(C, 10), L = parseFloat(C), l.test(C) && E === "w" ? ((N ||
|
|
11533
|
-
S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + $ + "'.") : (F.url = p, N && (F.w = N),
|
|
11532
|
+
$ = f[j], E = $[$.length - 1], C = $.substring(0, $.length - 1), D = parseInt(C, 10), L = parseFloat(C), l.test(C) && E === "w" ? ((N || O) && (S = !0), D === 0 ? S = !0 : N = D) : c.test(C) && E === "x" ? ((N || O || k) && (S = !0), L < 0 ? S = !0 : O = L) : l.test(C) && E === "h" ? ((k || O) && (S = !0), D === 0 ? S = !0 : k = D) : S = !0;
|
|
11533
|
+
S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + $ + "'.") : (F.url = p, N && (F.w = N), O && (F.d = O), k && (F.h = k), y.push(F));
|
|
11534
11534
|
}
|
|
11535
11535
|
};
|
|
11536
11536
|
});
|
|
@@ -11569,8 +11569,8 @@ let Bc = aE, Fc = ot, ds = class Y0 extends Error {
|
|
|
11569
11569
|
let g = 20, m = Math.max(0, this.column - g), y = Math.max(
|
|
11570
11570
|
this.column + g,
|
|
11571
11571
|
this.endColumn + g
|
|
11572
|
-
),
|
|
11573
|
-
return o(">") + n(d) + i(
|
|
11572
|
+
), v = c.slice(m, y), w = n(d.replace(/\d/g, " ")) + c.slice(0, Math.min(this.column - 1, g - 1)).replace(/[^\t]/g, " ");
|
|
11573
|
+
return o(">") + n(d) + i(v) + `
|
|
11574
11574
|
` + w + o("^");
|
|
11575
11575
|
}
|
|
11576
11576
|
let b = n(d.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
@@ -11799,7 +11799,7 @@ function hs(t, e) {
|
|
|
11799
11799
|
}
|
|
11800
11800
|
return r;
|
|
11801
11801
|
}
|
|
11802
|
-
function
|
|
11802
|
+
function Tt(t, e) {
|
|
11803
11803
|
if (e && typeof e.offset < "u")
|
|
11804
11804
|
return e.offset;
|
|
11805
11805
|
let r = 1, n = 1, o = 0;
|
|
@@ -11911,15 +11911,15 @@ let ms = class {
|
|
|
11911
11911
|
r = this.positionInside(e.index);
|
|
11912
11912
|
else if (e.word) {
|
|
11913
11913
|
let n = "document" in this.source.input ? this.source.input.document : this.source.input.css, i = n.slice(
|
|
11914
|
-
|
|
11915
|
-
|
|
11914
|
+
Tt(n, this.source.start),
|
|
11915
|
+
Tt(n, this.source.end)
|
|
11916
11916
|
).indexOf(e.word);
|
|
11917
11917
|
i !== -1 && (r = this.positionInside(i));
|
|
11918
11918
|
}
|
|
11919
11919
|
return r;
|
|
11920
11920
|
}
|
|
11921
11921
|
positionInside(e) {
|
|
11922
|
-
let r = this.source.start.column, n = this.source.start.line, o = "document" in this.source.input ? this.source.input.document : this.source.input.css, i =
|
|
11922
|
+
let r = this.source.start.column, n = this.source.start.line, o = "document" in this.source.input ? this.source.input.document : this.source.input.css, i = Tt(o, this.source.start), a = i + e;
|
|
11923
11923
|
for (let s = i; s < a; s++)
|
|
11924
11924
|
o[s] === `
|
|
11925
11925
|
` ? (r = 1, n += 1) : r += 1;
|
|
@@ -11934,7 +11934,7 @@ let ms = class {
|
|
|
11934
11934
|
let r = "document" in this.source.input ? this.source.input.document : this.source.input.css, n = {
|
|
11935
11935
|
column: this.source.start.column,
|
|
11936
11936
|
line: this.source.start.line,
|
|
11937
|
-
offset:
|
|
11937
|
+
offset: Tt(r, this.source.start)
|
|
11938
11938
|
}, o = this.source.end ? {
|
|
11939
11939
|
column: this.source.end.column + 1,
|
|
11940
11940
|
line: this.source.end.line,
|
|
@@ -11945,7 +11945,7 @@ let ms = class {
|
|
|
11945
11945
|
// Since line/column in this.source.end is inclusive,
|
|
11946
11946
|
// the `sourceOffset(... , this.source.end)` returns an inclusive offset.
|
|
11947
11947
|
// So, we add 1 to convert it to exclusive.
|
|
11948
|
-
|
|
11948
|
+
Tt(r, this.source.end) + 1
|
|
11949
11949
|
)
|
|
11950
11950
|
} : {
|
|
11951
11951
|
column: n.column + 1,
|
|
@@ -11954,19 +11954,19 @@ let ms = class {
|
|
|
11954
11954
|
};
|
|
11955
11955
|
if (e.word) {
|
|
11956
11956
|
let a = r.slice(
|
|
11957
|
-
|
|
11958
|
-
|
|
11957
|
+
Tt(r, this.source.start),
|
|
11958
|
+
Tt(r, this.source.end)
|
|
11959
11959
|
).indexOf(e.word);
|
|
11960
11960
|
a !== -1 && (n = this.positionInside(a), o = this.positionInside(a + e.word.length));
|
|
11961
11961
|
} else
|
|
11962
11962
|
e.start ? n = {
|
|
11963
11963
|
column: e.start.column,
|
|
11964
11964
|
line: e.start.line,
|
|
11965
|
-
offset:
|
|
11965
|
+
offset: Tt(r, e.start)
|
|
11966
11966
|
} : e.index && (n = this.positionInside(e.index)), e.end ? o = {
|
|
11967
11967
|
column: e.end.column,
|
|
11968
11968
|
line: e.end.line,
|
|
11969
|
-
offset:
|
|
11969
|
+
offset: Tt(r, e.end)
|
|
11970
11970
|
} : typeof e.endIndex == "number" ? o = this.positionInside(e.endIndex) : e.index && (o = this.positionInside(e.index + 1));
|
|
11971
11971
|
return (o.line < n.line || o.line === n.line && o.column <= n.column) && (o = {
|
|
11972
11972
|
column: n.column + 1,
|
|
@@ -12780,7 +12780,7 @@ let { dirname: Io, relative: hp, resolve: mp, sep: bp } = ot, { SourceMapConsume
|
|
|
12780
12780
|
var yp = zE;
|
|
12781
12781
|
const Sa = 39, Xc = 34, vo = 92, Kc = 47, xo = 10, gn = 32, wo = 12, So = 9, Eo = 13, UE = 91, VE = 93, WE = 40, GE = 41, YE = 123, XE = 125, KE = 59, JE = 42, ZE = 58, QE = 64, Co = /[\t\n\f\r "#'()/;[\\\]{}]/g, To = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, e5 = /.[\r\n"'(/\\]/, Jc = /[\da-f]/i;
|
|
12782
12782
|
var t5 = function(e, r = {}) {
|
|
12783
|
-
let n = e.css.valueOf(), o = r.ignoreErrors, i, a, s, u, l, c, p, f, d, b, g = n.length, m = 0, y = [],
|
|
12783
|
+
let n = e.css.valueOf(), o = r.ignoreErrors, i, a, s, u, l, c, p, f, d, b, g = n.length, m = 0, y = [], v = [];
|
|
12784
12784
|
function w() {
|
|
12785
12785
|
return m;
|
|
12786
12786
|
}
|
|
@@ -12788,10 +12788,10 @@ var t5 = function(e, r = {}) {
|
|
|
12788
12788
|
throw e.error("Unclosed " + j, m);
|
|
12789
12789
|
}
|
|
12790
12790
|
function N() {
|
|
12791
|
-
return
|
|
12791
|
+
return v.length === 0 && m >= g;
|
|
12792
12792
|
}
|
|
12793
|
-
function
|
|
12794
|
-
if (
|
|
12793
|
+
function O(j) {
|
|
12794
|
+
if (v.length) return v.pop();
|
|
12795
12795
|
if (m >= g) return;
|
|
12796
12796
|
let F = j ? j.ignoreUnclosed : !1;
|
|
12797
12797
|
switch (i = n.charCodeAt(m), i) {
|
|
@@ -12875,12 +12875,12 @@ var t5 = function(e, r = {}) {
|
|
|
12875
12875
|
return m++, c;
|
|
12876
12876
|
}
|
|
12877
12877
|
function k(j) {
|
|
12878
|
-
|
|
12878
|
+
v.push(j);
|
|
12879
12879
|
}
|
|
12880
12880
|
return {
|
|
12881
12881
|
back: k,
|
|
12882
12882
|
endOfFile: N,
|
|
12883
|
-
nextToken:
|
|
12883
|
+
nextToken: O,
|
|
12884
12884
|
position: w
|
|
12885
12885
|
};
|
|
12886
12886
|
};
|
|
@@ -13765,7 +13765,7 @@ function Pr(t, e) {
|
|
|
13765
13765
|
e(t[r], r);
|
|
13766
13766
|
});
|
|
13767
13767
|
}
|
|
13768
|
-
function
|
|
13768
|
+
function Nt(t, e) {
|
|
13769
13769
|
return {}.hasOwnProperty.call(t, e);
|
|
13770
13770
|
}
|
|
13771
13771
|
function id(t, e) {
|
|
@@ -13776,7 +13776,7 @@ function id(t, e) {
|
|
|
13776
13776
|
}
|
|
13777
13777
|
function e8(t) {
|
|
13778
13778
|
for (const e in t)
|
|
13779
|
-
if (
|
|
13779
|
+
if (Nt(t, e))
|
|
13780
13780
|
return !1;
|
|
13781
13781
|
return !0;
|
|
13782
13782
|
}
|
|
@@ -13835,7 +13835,7 @@ and ensure you are accounting for this risk.
|
|
|
13835
13835
|
}));
|
|
13836
13836
|
const c = {}, p = {}, f = {};
|
|
13837
13837
|
Pr(e.allowedClasses, function(T, A) {
|
|
13838
|
-
if (u && (
|
|
13838
|
+
if (u && (Nt(u, A) || (u[A] = []), u[A].push("class")), c[A] = T, Array.isArray(T)) {
|
|
13839
13839
|
const _ = [];
|
|
13840
13840
|
c[A] = [], f[A] = [], T.forEach(function(M) {
|
|
13841
13841
|
typeof M == "string" && M.indexOf("*") >= 0 ? _.push(nd(M).replace(/\\\*/g, ".*")) : M instanceof RegExp ? f[A].push(M) : c[A].push(M);
|
|
@@ -13848,9 +13848,9 @@ and ensure you are accounting for this risk.
|
|
|
13848
13848
|
let _;
|
|
13849
13849
|
typeof T == "function" ? _ = T : typeof T == "string" && (_ = Un.simpleTransform(T)), A === "*" ? b = _ : d[A] = _;
|
|
13850
13850
|
});
|
|
13851
|
-
let g, m, y,
|
|
13851
|
+
let g, m, y, v, w, S, N = !1;
|
|
13852
13852
|
k();
|
|
13853
|
-
const
|
|
13853
|
+
const O = new Y5.Parser({
|
|
13854
13854
|
onopentag: function(T, A) {
|
|
13855
13855
|
if (e.onOpenTag && e.onOpenTag(T, A), e.enforceHtmlBoundary && T === "html" && k(), w) {
|
|
13856
13856
|
S++;
|
|
@@ -13861,7 +13861,7 @@ and ensure you are accounting for this risk.
|
|
|
13861
13861
|
let M = !1;
|
|
13862
13862
|
const B = !!_.text;
|
|
13863
13863
|
let U;
|
|
13864
|
-
if (
|
|
13864
|
+
if (Nt(d, T) && (U = d[T](T, A), _.attribs = A = U.attribs, U.text !== void 0 && (_.innerText = U.text), T !== U.tagName && (_.name = T = U.tagName, v[g] = U.tagName)), b && (U = b(T, A), _.attribs = A = U.attribs, T !== U.tagName && (_.name = T = U.tagName, v[g] = U.tagName)), (!a(T) || e.disallowedTagsMode === "recursiveEscape" && !e8(y) || e.nestingLimit != null && g >= e.nestingLimit) && (M = !0, y[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && s.indexOf(T) !== -1 && (w = !0, S = 1)), g++, M) {
|
|
13865
13865
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
13866
13866
|
if (_.innerText && !B) {
|
|
13867
13867
|
const q = j(_.innerText);
|
|
@@ -13873,7 +13873,7 @@ and ensure you are accounting for this risk.
|
|
|
13873
13873
|
}
|
|
13874
13874
|
n += "<" + T, T === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (_.innerText = ""), M && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? Pr(A, function(q, H) {
|
|
13875
13875
|
n += " " + H + '="' + j(q || "", !0) + '"';
|
|
13876
|
-
}) : (!u ||
|
|
13876
|
+
}) : (!u || Nt(u, T) || u["*"]) && Pr(A, function(q, H) {
|
|
13877
13877
|
if (!n8.test(H)) {
|
|
13878
13878
|
delete _.attribs[H];
|
|
13879
13879
|
return;
|
|
@@ -13883,7 +13883,7 @@ and ensure you are accounting for this risk.
|
|
|
13883
13883
|
return;
|
|
13884
13884
|
}
|
|
13885
13885
|
let be = !1;
|
|
13886
|
-
if (!u ||
|
|
13886
|
+
if (!u || Nt(u, T) && u[T].indexOf(H) !== -1 || u["*"] && u["*"].indexOf(H) !== -1 || Nt(l, T) && l[T].test(H) || l["*"] && l["*"].test(H))
|
|
13887
13887
|
be = !0;
|
|
13888
13888
|
else if (u && u[T]) {
|
|
13889
13889
|
for (const Z of u[T])
|
|
@@ -13928,7 +13928,7 @@ and ensure you are accounting for this risk.
|
|
|
13928
13928
|
try {
|
|
13929
13929
|
const z = $(q);
|
|
13930
13930
|
if (z.isRelativeUrl)
|
|
13931
|
-
Z =
|
|
13931
|
+
Z = Nt(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
13932
13932
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
13933
13933
|
const Ie = (e.allowedIframeHostnames || []).find(function(Se) {
|
|
13934
13934
|
return Se === z.url.hostname;
|
|
@@ -13965,13 +13965,13 @@ and ensure you are accounting for this risk.
|
|
|
13965
13965
|
return;
|
|
13966
13966
|
}
|
|
13967
13967
|
if (H === "class") {
|
|
13968
|
-
const Z = c[T], z = c["*"], Ie = p[T], Te = f[T], Se = f["*"], at = p["*"],
|
|
13968
|
+
const Z = c[T], z = c["*"], Ie = p[T], Te = f[T], Se = f["*"], at = p["*"], St = [
|
|
13969
13969
|
Ie,
|
|
13970
13970
|
at
|
|
13971
13971
|
].concat(Te, Se).filter(function(st) {
|
|
13972
13972
|
return st;
|
|
13973
13973
|
});
|
|
13974
|
-
if (Z && z ? q = L(q, od(Z, z),
|
|
13974
|
+
if (Z && z ? q = L(q, od(Z, z), St) : q = L(q, Z || z, St), !q.length) {
|
|
13975
13975
|
delete _.attribs[H];
|
|
13976
13976
|
return;
|
|
13977
13977
|
}
|
|
@@ -14036,7 +14036,7 @@ and ensure you are accounting for this risk.
|
|
|
14036
14036
|
}
|
|
14037
14037
|
o = n, n = "";
|
|
14038
14038
|
}
|
|
14039
|
-
if (
|
|
14039
|
+
if (v[g] && (T = v[g], delete v[g]), e.exclusiveFilter) {
|
|
14040
14040
|
const B = e.exclusiveFilter(_);
|
|
14041
14041
|
if (B === "excludeTag") {
|
|
14042
14042
|
M && (n = o, o = ""), n = n.substring(0, _.tagPosition) + n.substring(_.tagPosition + _.openingTagLength);
|
|
@@ -14055,9 +14055,9 @@ and ensure you are accounting for this risk.
|
|
|
14055
14055
|
n += "</" + T + ">", M && (n = o + j(n), o = ""), N = !1;
|
|
14056
14056
|
}
|
|
14057
14057
|
}, e.parser);
|
|
14058
|
-
return
|
|
14058
|
+
return O.write(t), O.end(), n;
|
|
14059
14059
|
function k() {
|
|
14060
|
-
n = "", g = 0, m = [], y = {},
|
|
14060
|
+
n = "", g = 0, m = [], y = {}, v = {}, w = !1, S = 0;
|
|
14061
14061
|
}
|
|
14062
14062
|
function j(T, A) {
|
|
14063
14063
|
return typeof T != "string" && (T = T + ""), e.parser.decodeEntities && (T = T.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (T = T.replace(/"/g, """))), T = T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (T = T.replace(/"/g, """)), T;
|
|
@@ -14076,7 +14076,7 @@ and ensure you are accounting for this risk.
|
|
|
14076
14076
|
if (!_)
|
|
14077
14077
|
return A.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
|
|
14078
14078
|
const M = _[1].toLowerCase();
|
|
14079
|
-
return
|
|
14079
|
+
return Nt(e.allowedSchemesByTag, T) ? e.allowedSchemesByTag[T].indexOf(M) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(M) === -1;
|
|
14080
14080
|
}
|
|
14081
14081
|
function $(T) {
|
|
14082
14082
|
if (T = T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), T.startsWith("relative:"))
|
|
@@ -14109,7 +14109,7 @@ and ensure you are accounting for this risk.
|
|
|
14109
14109
|
}
|
|
14110
14110
|
function D(T) {
|
|
14111
14111
|
return function(A, _) {
|
|
14112
|
-
return
|
|
14112
|
+
return Nt(T, _.prop) && T[_.prop].some(function(B) {
|
|
14113
14113
|
return B.test(_.value);
|
|
14114
14114
|
}) && A.push(_), A;
|
|
14115
14115
|
};
|
|
@@ -14454,7 +14454,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14454
14454
|
}
|
|
14455
14455
|
}, s8 = ({ label: t, value: e, onChange: r }) => {
|
|
14456
14456
|
const n = tt(null), [o, i] = me(!1), [a, s] = me(""), u = tt(null);
|
|
14457
|
-
|
|
14457
|
+
_e(() => {
|
|
14458
14458
|
n.current && n.current.innerHTML !== e && (n.current.innerHTML = e || "");
|
|
14459
14459
|
}, []);
|
|
14460
14460
|
const l = (m) => {
|
|
@@ -14497,7 +14497,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14497
14497
|
return /* @__PURE__ */ P("div", { className: "space-y-1.5", children: [
|
|
14498
14498
|
/* @__PURE__ */ h("label", { className: "text-xs text-muted-foreground", children: t }),
|
|
14499
14499
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0", children: /* @__PURE__ */ P(Ln, { children: [
|
|
14500
|
-
i8.map(({ command: m, icon: y, label:
|
|
14500
|
+
i8.map(({ command: m, icon: y, label: v }) => /* @__PURE__ */ P(Hr, { children: [
|
|
14501
14501
|
/* @__PURE__ */ h(qr, { asChild: !0, children: /* @__PURE__ */ h(
|
|
14502
14502
|
"button",
|
|
14503
14503
|
{
|
|
@@ -14509,7 +14509,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14509
14509
|
children: /* @__PURE__ */ h(y, { className: "h-3.5 w-3.5" })
|
|
14510
14510
|
}
|
|
14511
14511
|
) }),
|
|
14512
|
-
/* @__PURE__ */ h(pr, { side: "top", children: /* @__PURE__ */ h("p", { children:
|
|
14512
|
+
/* @__PURE__ */ h(pr, { side: "top", children: /* @__PURE__ */ h("p", { children: v }) })
|
|
14513
14513
|
] }, m)),
|
|
14514
14514
|
/* @__PURE__ */ h("div", { className: "w-px h-4 bg-border mx-1" }),
|
|
14515
14515
|
/* @__PURE__ */ P(Hr, { children: [
|
|
@@ -14616,7 +14616,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14616
14616
|
textTransform: p = "none",
|
|
14617
14617
|
opacity: f = 100
|
|
14618
14618
|
}) => {
|
|
14619
|
-
const d =
|
|
14619
|
+
const d = Pe(), b = mi();
|
|
14620
14620
|
let g, m, y;
|
|
14621
14621
|
try {
|
|
14622
14622
|
const { connectors: j, events: F } = ue(($) => ({
|
|
@@ -14625,7 +14625,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14625
14625
|
g = j.connect, m = j.drag, y = F.selected;
|
|
14626
14626
|
} catch {
|
|
14627
14627
|
}
|
|
14628
|
-
const
|
|
14628
|
+
const v = ss(t, b), w = typeof te(l, d) == "object" ? `${te(l, d).top}px ${te(l, d).right}px ${te(l, d).bottom}px ${te(l, d).left}px` : `${te(l, d)}px`, S = zt(r, d, 16), N = zt(i, d, 150) / 100, O = zt(a, d, 0), k = /<[^>]+>/.test(v);
|
|
14629
14629
|
return /* @__PURE__ */ h(
|
|
14630
14630
|
"div",
|
|
14631
14631
|
{
|
|
@@ -14636,7 +14636,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14636
14636
|
fontWeight: n,
|
|
14637
14637
|
fontFamily: o,
|
|
14638
14638
|
lineHeight: N,
|
|
14639
|
-
letterSpacing: `${
|
|
14639
|
+
letterSpacing: `${O}px`,
|
|
14640
14640
|
textAlign: s,
|
|
14641
14641
|
color: u,
|
|
14642
14642
|
margin: w,
|
|
@@ -14649,13 +14649,13 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14649
14649
|
{
|
|
14650
14650
|
dangerouslySetInnerHTML: {
|
|
14651
14651
|
__html: _p(
|
|
14652
|
-
ss(e ||
|
|
14652
|
+
ss(e || v, b),
|
|
14653
14653
|
u8
|
|
14654
14654
|
)
|
|
14655
14655
|
},
|
|
14656
14656
|
className: "[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"
|
|
14657
14657
|
}
|
|
14658
|
-
) :
|
|
14658
|
+
) : v
|
|
14659
14659
|
}
|
|
14660
14660
|
);
|
|
14661
14661
|
}, l8 = () => {
|
|
@@ -14785,7 +14785,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14785
14785
|
] }),
|
|
14786
14786
|
/* @__PURE__ */ P(Y, { title: "Color", defaultOpen: !1, children: [
|
|
14787
14787
|
/* @__PURE__ */ h(
|
|
14788
|
-
|
|
14788
|
+
ft,
|
|
14789
14789
|
{
|
|
14790
14790
|
label: "Text Color",
|
|
14791
14791
|
value: e.color || "#000000",
|
|
@@ -14856,7 +14856,7 @@ const An = {
|
|
|
14856
14856
|
opacity: p = { desktop: 100 }
|
|
14857
14857
|
}) => {
|
|
14858
14858
|
var j, F, $;
|
|
14859
|
-
const f =
|
|
14859
|
+
const f = Pe(), d = mi();
|
|
14860
14860
|
let b, g, m;
|
|
14861
14861
|
try {
|
|
14862
14862
|
const { connectors: E, events: C } = ue((D) => ({
|
|
@@ -14865,7 +14865,7 @@ const An = {
|
|
|
14865
14865
|
b = E.connect, g = E.drag, m = C.selected;
|
|
14866
14866
|
} catch {
|
|
14867
14867
|
}
|
|
14868
|
-
const y = ss(t, d),
|
|
14868
|
+
const y = ss(t, d), v = `h${e}`;
|
|
14869
14869
|
let w;
|
|
14870
14870
|
a === "auto" ? w = ((j = An[e]) == null ? void 0 : j[f]) || ((F = An[e]) == null ? void 0 : F.desktop) || 36 : w = zt(
|
|
14871
14871
|
a,
|
|
@@ -14876,9 +14876,9 @@ const An = {
|
|
|
14876
14876
|
u,
|
|
14877
14877
|
f,
|
|
14878
14878
|
-0.5
|
|
14879
|
-
),
|
|
14879
|
+
), O = zt(p, f, 100), k = typeof te(l, f) == "object" ? `${te(l, f).top}px ${te(l, f).right}px ${te(l, f).bottom}px ${te(l, f).left}px` : `${te(l, f)}px`;
|
|
14880
14880
|
return /* @__PURE__ */ h(
|
|
14881
|
-
|
|
14881
|
+
v,
|
|
14882
14882
|
{
|
|
14883
14883
|
ref: (E) => E && b && g && b(g(E)),
|
|
14884
14884
|
className: `cursor-move ${m ? "outline outline-blue-500" : ""}`,
|
|
@@ -14892,14 +14892,14 @@ const An = {
|
|
|
14892
14892
|
letterSpacing: `${N}px`,
|
|
14893
14893
|
margin: k,
|
|
14894
14894
|
textTransform: c,
|
|
14895
|
-
opacity:
|
|
14895
|
+
opacity: O / 100
|
|
14896
14896
|
},
|
|
14897
14897
|
children: y
|
|
14898
14898
|
}
|
|
14899
14899
|
);
|
|
14900
14900
|
}, c8 = () => {
|
|
14901
14901
|
var i;
|
|
14902
|
-
const t =
|
|
14902
|
+
const t = Pe(), {
|
|
14903
14903
|
actions: { setProp: e },
|
|
14904
14904
|
props: r
|
|
14905
14905
|
} = ue((a) => ({
|
|
@@ -15045,7 +15045,7 @@ const An = {
|
|
|
15045
15045
|
] }),
|
|
15046
15046
|
/* @__PURE__ */ P(Y, { title: "Color", defaultOpen: !1, children: [
|
|
15047
15047
|
/* @__PURE__ */ h(
|
|
15048
|
-
|
|
15048
|
+
ft,
|
|
15049
15049
|
{
|
|
15050
15050
|
label: "Text Color",
|
|
15051
15051
|
value: r.color || "#000000",
|
|
@@ -15108,7 +15108,7 @@ const zu = ({
|
|
|
15108
15108
|
opacity: u = 100,
|
|
15109
15109
|
boxShadow: l = "none"
|
|
15110
15110
|
}) => {
|
|
15111
|
-
const c =
|
|
15111
|
+
const c = Pe();
|
|
15112
15112
|
let p, f, d;
|
|
15113
15113
|
try {
|
|
15114
15114
|
const { connectors: g, events: m } = ue((y) => ({
|
|
@@ -15298,7 +15298,7 @@ const Uu = ({
|
|
|
15298
15298
|
margin: o = { top: 16, right: 0, bottom: 16, left: 0 },
|
|
15299
15299
|
opacity: i = 100
|
|
15300
15300
|
}) => {
|
|
15301
|
-
const a =
|
|
15301
|
+
const a = Pe();
|
|
15302
15302
|
let s, u, l;
|
|
15303
15303
|
try {
|
|
15304
15304
|
const { connectors: p, events: f } = ue((d) => ({
|
|
@@ -15348,7 +15348,7 @@ const Uu = ({
|
|
|
15348
15348
|
}
|
|
15349
15349
|
),
|
|
15350
15350
|
/* @__PURE__ */ h(
|
|
15351
|
-
|
|
15351
|
+
ft,
|
|
15352
15352
|
{
|
|
15353
15353
|
label: "Color",
|
|
15354
15354
|
value: e.color || "#e5e5e5",
|
|
@@ -15531,8 +15531,8 @@ async function g8(t, e) {
|
|
|
15531
15531
|
)).data;
|
|
15532
15532
|
}
|
|
15533
15533
|
function y8(t) {
|
|
15534
|
-
const e =
|
|
15535
|
-
return
|
|
15534
|
+
const e = x.useRef({ value: t, previous: t });
|
|
15535
|
+
return x.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
15536
15536
|
}
|
|
15537
15537
|
var Gi = "Checkbox", [v8] = xr(Gi), [x8, Wu] = v8(Gi);
|
|
15538
15538
|
function w8(t) {
|
|
@@ -15554,7 +15554,7 @@ function w8(t) {
|
|
|
15554
15554
|
defaultProp: o ?? !1,
|
|
15555
15555
|
onChange: u,
|
|
15556
15556
|
caller: Gi
|
|
15557
|
-
}), [b, g] =
|
|
15557
|
+
}), [b, g] = x.useState(null), [m, y] = x.useState(null), v = x.useRef(!1), w = b ? !!a || !!b.closest("form") : (
|
|
15558
15558
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
15559
15559
|
!0
|
|
15560
15560
|
), S = {
|
|
@@ -15566,7 +15566,7 @@ function w8(t) {
|
|
|
15566
15566
|
name: s,
|
|
15567
15567
|
form: a,
|
|
15568
15568
|
value: c,
|
|
15569
|
-
hasConsumerStoppedPropagationRef:
|
|
15569
|
+
hasConsumerStoppedPropagationRef: v,
|
|
15570
15570
|
required: l,
|
|
15571
15571
|
defaultChecked: Wt(o) ? !1 : o,
|
|
15572
15572
|
isFormControl: w,
|
|
@@ -15582,7 +15582,7 @@ function w8(t) {
|
|
|
15582
15582
|
}
|
|
15583
15583
|
);
|
|
15584
15584
|
}
|
|
15585
|
-
var Pp = "CheckboxTrigger", kp =
|
|
15585
|
+
var Pp = "CheckboxTrigger", kp = x.forwardRef(
|
|
15586
15586
|
({ __scopeCheckbox: t, onKeyDown: e, onClick: r, ...n }, o) => {
|
|
15587
15587
|
const {
|
|
15588
15588
|
control: i,
|
|
@@ -15595,12 +15595,12 @@ var Pp = "CheckboxTrigger", kp = v.forwardRef(
|
|
|
15595
15595
|
hasConsumerStoppedPropagationRef: f,
|
|
15596
15596
|
isFormControl: d,
|
|
15597
15597
|
bubbleInput: b
|
|
15598
|
-
} = Wu(Pp, t), g = Ae(o, c), m =
|
|
15599
|
-
return
|
|
15598
|
+
} = Wu(Pp, t), g = Ae(o, c), m = x.useRef(u);
|
|
15599
|
+
return x.useEffect(() => {
|
|
15600
15600
|
const y = i == null ? void 0 : i.form;
|
|
15601
15601
|
if (y) {
|
|
15602
|
-
const
|
|
15603
|
-
return y.addEventListener("reset",
|
|
15602
|
+
const v = () => p(m.current);
|
|
15603
|
+
return y.addEventListener("reset", v), () => y.removeEventListener("reset", v);
|
|
15604
15604
|
}
|
|
15605
15605
|
}, [i, p]), /* @__PURE__ */ h(
|
|
15606
15606
|
we.button,
|
|
@@ -15619,14 +15619,14 @@ var Pp = "CheckboxTrigger", kp = v.forwardRef(
|
|
|
15619
15619
|
y.key === "Enter" && y.preventDefault();
|
|
15620
15620
|
}),
|
|
15621
15621
|
onClick: pe(r, (y) => {
|
|
15622
|
-
p((
|
|
15622
|
+
p((v) => Wt(v) ? !0 : !v), b && d && (f.current = y.isPropagationStopped(), f.current || y.stopPropagation());
|
|
15623
15623
|
})
|
|
15624
15624
|
}
|
|
15625
15625
|
);
|
|
15626
15626
|
}
|
|
15627
15627
|
);
|
|
15628
15628
|
kp.displayName = Pp;
|
|
15629
|
-
var Gu =
|
|
15629
|
+
var Gu = x.forwardRef(
|
|
15630
15630
|
(t, e) => {
|
|
15631
15631
|
const {
|
|
15632
15632
|
__scopeCheckbox: r,
|
|
@@ -15673,7 +15673,7 @@ var Gu = v.forwardRef(
|
|
|
15673
15673
|
}
|
|
15674
15674
|
);
|
|
15675
15675
|
Gu.displayName = Gi;
|
|
15676
|
-
var Ip = "CheckboxIndicator", Dp =
|
|
15676
|
+
var Ip = "CheckboxIndicator", Dp = x.forwardRef(
|
|
15677
15677
|
(t, e) => {
|
|
15678
15678
|
const { __scopeCheckbox: r, forceMount: n, ...o } = t, i = Wu(Ip, r);
|
|
15679
15679
|
return /* @__PURE__ */ h(
|
|
@@ -15695,7 +15695,7 @@ var Ip = "CheckboxIndicator", Dp = v.forwardRef(
|
|
|
15695
15695
|
}
|
|
15696
15696
|
);
|
|
15697
15697
|
Dp.displayName = Ip;
|
|
15698
|
-
var Lp = "CheckboxBubbleInput", Mp =
|
|
15698
|
+
var Lp = "CheckboxBubbleInput", Mp = x.forwardRef(
|
|
15699
15699
|
({ __scopeCheckbox: t, ...e }, r) => {
|
|
15700
15700
|
const {
|
|
15701
15701
|
control: n,
|
|
@@ -15710,19 +15710,19 @@ var Lp = "CheckboxBubbleInput", Mp = v.forwardRef(
|
|
|
15710
15710
|
bubbleInput: f,
|
|
15711
15711
|
setBubbleInput: d
|
|
15712
15712
|
} = Wu(Lp, t), b = Ae(r, d), g = y8(i), m = Zf(n);
|
|
15713
|
-
|
|
15714
|
-
const
|
|
15715
|
-
if (!
|
|
15713
|
+
x.useEffect(() => {
|
|
15714
|
+
const v = f;
|
|
15715
|
+
if (!v) return;
|
|
15716
15716
|
const w = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
15717
15717
|
w,
|
|
15718
15718
|
"checked"
|
|
15719
|
-
).set,
|
|
15719
|
+
).set, O = !o.current;
|
|
15720
15720
|
if (g !== i && N) {
|
|
15721
|
-
const k = new Event("click", { bubbles:
|
|
15722
|
-
|
|
15721
|
+
const k = new Event("click", { bubbles: O });
|
|
15722
|
+
v.indeterminate = Wt(i), N.call(v, Wt(i) ? !1 : i), v.dispatchEvent(k);
|
|
15723
15723
|
}
|
|
15724
15724
|
}, [f, g, i, o]);
|
|
15725
|
-
const y =
|
|
15725
|
+
const y = x.useRef(Wt(i) ? !1 : i);
|
|
15726
15726
|
return /* @__PURE__ */ h(
|
|
15727
15727
|
we.input,
|
|
15728
15728
|
{
|
|
@@ -15763,7 +15763,7 @@ function Wt(t) {
|
|
|
15763
15763
|
function jp(t) {
|
|
15764
15764
|
return Wt(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
15765
15765
|
}
|
|
15766
|
-
const E8 =
|
|
15766
|
+
const E8 = x.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
15767
15767
|
Gu,
|
|
15768
15768
|
{
|
|
15769
15769
|
ref: r,
|
|
@@ -15784,7 +15784,7 @@ const E8 = v.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
15784
15784
|
E8.displayName = Gu.displayName;
|
|
15785
15785
|
const C8 = ({ onDownload: t, disabled: e = !1 }) => {
|
|
15786
15786
|
const [r, n] = me(!0), [o, i] = me(!1), [a, s] = me(!1);
|
|
15787
|
-
return
|
|
15787
|
+
return _e(() => {
|
|
15788
15788
|
try {
|
|
15789
15789
|
s(window.self !== window.top);
|
|
15790
15790
|
} catch {
|
|
@@ -15792,13 +15792,13 @@ const C8 = ({ onDownload: t, disabled: e = !1 }) => {
|
|
|
15792
15792
|
}
|
|
15793
15793
|
}, []), /* @__PURE__ */ P("div", { className: "py-4 max-w-[600px] w-full flex flex-col justify-center items-center", children: [
|
|
15794
15794
|
/* @__PURE__ */ h("div", { className: "flex w-full md:w-1/2 justify-center items-center", children: /* @__PURE__ */ h(
|
|
15795
|
-
|
|
15795
|
+
"button",
|
|
15796
15796
|
{
|
|
15797
15797
|
disabled: !r || o || e,
|
|
15798
15798
|
onClick: () => {
|
|
15799
15799
|
r && t && !o && (t(), i(!0), a && window.parent.postMessage({ type: "OPEN_POPUP", payload: "1" }, "*"));
|
|
15800
15800
|
},
|
|
15801
|
-
className: "w-full bg-black text-white",
|
|
15801
|
+
className: "w-full bg-black text-white px-4 py-2 mb-2 rounded-md flex items-center justify-center disabled:cursor-not-allowed disabled:opacity-50",
|
|
15802
15802
|
children: o ? /* @__PURE__ */ P(lr, { children: [
|
|
15803
15803
|
/* @__PURE__ */ h(Bs, { className: "h-4 w-4 mr-2" }),
|
|
15804
15804
|
"Thank you!"
|
|
@@ -16043,7 +16043,7 @@ const uC = (t) => {
|
|
|
16043
16043
|
!1
|
|
16044
16044
|
), (o) => {
|
|
16045
16045
|
n.push(o), sr.postMessage(r, "*");
|
|
16046
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", je(sr.postMessage)), dC = typeof queueMicrotask < "u" ? queueMicrotask.bind(sr) : typeof process < "u" && process.nextTick || Vp, fC = (t) => t != null && je(t[Yi]),
|
|
16046
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", je(sr.postMessage)), dC = typeof queueMicrotask < "u" ? queueMicrotask.bind(sr) : typeof process < "u" && process.nextTick || Vp, fC = (t) => t != null && je(t[Yi]), R = {
|
|
16047
16047
|
isArray: ln,
|
|
16048
16048
|
isArrayBuffer: Fp,
|
|
16049
16049
|
isBuffer: eo,
|
|
@@ -16143,7 +16143,7 @@ let W = class Wp extends Error {
|
|
|
16143
16143
|
columnNumber: this.columnNumber,
|
|
16144
16144
|
stack: this.stack,
|
|
16145
16145
|
// Axios
|
|
16146
|
-
config:
|
|
16146
|
+
config: R.toJSONObject(this.config),
|
|
16147
16147
|
code: this.code,
|
|
16148
16148
|
status: this.status
|
|
16149
16149
|
};
|
|
@@ -16163,10 +16163,10 @@ W.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
|
16163
16163
|
W.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
16164
16164
|
const pC = null;
|
|
16165
16165
|
function As(t) {
|
|
16166
|
-
return
|
|
16166
|
+
return R.isPlainObject(t) || R.isArray(t);
|
|
16167
16167
|
}
|
|
16168
16168
|
function Gp(t) {
|
|
16169
|
-
return
|
|
16169
|
+
return R.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
16170
16170
|
}
|
|
16171
16171
|
function Ea(t, e, r) {
|
|
16172
16172
|
return t ? t.concat(e).map(function(o, i) {
|
|
@@ -16174,15 +16174,15 @@ function Ea(t, e, r) {
|
|
|
16174
16174
|
}).join(r ? "." : "") : e;
|
|
16175
16175
|
}
|
|
16176
16176
|
function hC(t) {
|
|
16177
|
-
return
|
|
16177
|
+
return R.isArray(t) && !t.some(As);
|
|
16178
16178
|
}
|
|
16179
|
-
const mC =
|
|
16179
|
+
const mC = R.toFlatObject(R, {}, null, function(e) {
|
|
16180
16180
|
return /^is[A-Z]/.test(e);
|
|
16181
16181
|
});
|
|
16182
16182
|
function Ji(t, e, r) {
|
|
16183
|
-
if (!
|
|
16183
|
+
if (!R.isObject(t))
|
|
16184
16184
|
throw new TypeError("target must be an object");
|
|
16185
|
-
e = e || new FormData(), r =
|
|
16185
|
+
e = e || new FormData(), r = R.toFlatObject(
|
|
16186
16186
|
r,
|
|
16187
16187
|
{
|
|
16188
16188
|
metaTokens: !0,
|
|
@@ -16191,32 +16191,32 @@ function Ji(t, e, r) {
|
|
|
16191
16191
|
},
|
|
16192
16192
|
!1,
|
|
16193
16193
|
function(g, m) {
|
|
16194
|
-
return !
|
|
16194
|
+
return !R.isUndefined(m[g]);
|
|
16195
16195
|
}
|
|
16196
16196
|
);
|
|
16197
|
-
const n = r.metaTokens, o = r.visitor || c, i = r.dots, a = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) &&
|
|
16198
|
-
if (!
|
|
16197
|
+
const n = r.metaTokens, o = r.visitor || c, i = r.dots, a = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && R.isSpecCompliantForm(e);
|
|
16198
|
+
if (!R.isFunction(o))
|
|
16199
16199
|
throw new TypeError("visitor must be a function");
|
|
16200
16200
|
function l(b) {
|
|
16201
16201
|
if (b === null) return "";
|
|
16202
|
-
if (
|
|
16202
|
+
if (R.isDate(b))
|
|
16203
16203
|
return b.toISOString();
|
|
16204
|
-
if (
|
|
16204
|
+
if (R.isBoolean(b))
|
|
16205
16205
|
return b.toString();
|
|
16206
|
-
if (!u &&
|
|
16206
|
+
if (!u && R.isBlob(b))
|
|
16207
16207
|
throw new W("Blob is not supported. Use a Buffer instead.");
|
|
16208
|
-
return
|
|
16208
|
+
return R.isArrayBuffer(b) || R.isTypedArray(b) ? u && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
|
|
16209
16209
|
}
|
|
16210
16210
|
function c(b, g, m) {
|
|
16211
16211
|
let y = b;
|
|
16212
|
-
if (
|
|
16212
|
+
if (R.isReactNative(e) && R.isReactNativeBlob(b))
|
|
16213
16213
|
return e.append(Ea(m, g, i), l(b)), !1;
|
|
16214
16214
|
if (b && !m && typeof b == "object") {
|
|
16215
|
-
if (
|
|
16215
|
+
if (R.endsWith(g, "{}"))
|
|
16216
16216
|
g = n ? g : g.slice(0, -2), b = JSON.stringify(b);
|
|
16217
|
-
else if (
|
|
16217
|
+
else if (R.isArray(b) && hC(b) || (R.isFileList(b) || R.endsWith(g, "[]")) && (y = R.toArray(b)))
|
|
16218
16218
|
return g = Gp(g), y.forEach(function(w, S) {
|
|
16219
|
-
!(
|
|
16219
|
+
!(R.isUndefined(w) || w === null) && e.append(
|
|
16220
16220
|
// eslint-disable-next-line no-nested-ternary
|
|
16221
16221
|
a === !0 ? Ea([g], S, i) : a === null ? g : g + "[]",
|
|
16222
16222
|
l(w)
|
|
@@ -16231,15 +16231,15 @@ function Ji(t, e, r) {
|
|
|
16231
16231
|
isVisitable: As
|
|
16232
16232
|
});
|
|
16233
16233
|
function d(b, g) {
|
|
16234
|
-
if (!
|
|
16234
|
+
if (!R.isUndefined(b)) {
|
|
16235
16235
|
if (p.indexOf(b) !== -1)
|
|
16236
16236
|
throw Error("Circular reference detected in " + g.join("."));
|
|
16237
|
-
p.push(b),
|
|
16238
|
-
(!(
|
|
16237
|
+
p.push(b), R.forEach(b, function(y, v) {
|
|
16238
|
+
(!(R.isUndefined(y) || y === null) && o.call(e, y, R.isString(v) ? v.trim() : v, g, f)) === !0 && d(y, g ? g.concat(v) : [v]);
|
|
16239
16239
|
}), p.pop();
|
|
16240
16240
|
}
|
|
16241
16241
|
}
|
|
16242
|
-
if (!
|
|
16242
|
+
if (!R.isObject(t))
|
|
16243
16243
|
throw new TypeError("data must be an object");
|
|
16244
16244
|
return d(t), e;
|
|
16245
16245
|
}
|
|
@@ -16278,11 +16278,11 @@ function bC(t) {
|
|
|
16278
16278
|
function Xp(t, e, r) {
|
|
16279
16279
|
if (!e)
|
|
16280
16280
|
return t;
|
|
16281
|
-
const n = r && r.encode || bC, o =
|
|
16281
|
+
const n = r && r.encode || bC, o = R.isFunction(r) ? {
|
|
16282
16282
|
serialize: r
|
|
16283
16283
|
} : r, i = o && o.serialize;
|
|
16284
16284
|
let a;
|
|
16285
|
-
if (i ? a = i(e, o) : a =
|
|
16285
|
+
if (i ? a = i(e, o) : a = R.isURLSearchParams(e) ? e.toString() : new Xu(e, o).toString(n), a) {
|
|
16286
16286
|
const s = t.indexOf("#");
|
|
16287
16287
|
s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
16288
16288
|
}
|
|
@@ -16338,7 +16338,7 @@ class cd {
|
|
|
16338
16338
|
* @returns {void}
|
|
16339
16339
|
*/
|
|
16340
16340
|
forEach(e) {
|
|
16341
|
-
|
|
16341
|
+
R.forEach(this.handlers, function(n) {
|
|
16342
16342
|
n !== null && e(n);
|
|
16343
16343
|
});
|
|
16344
16344
|
}
|
|
@@ -16371,13 +16371,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", EC
|
|
|
16371
16371
|
function TC(t, e) {
|
|
16372
16372
|
return Ji(t, new Re.classes.URLSearchParams(), {
|
|
16373
16373
|
visitor: function(r, n, o, i) {
|
|
16374
|
-
return Re.isNode &&
|
|
16374
|
+
return Re.isNode && R.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
16375
16375
|
},
|
|
16376
16376
|
...e
|
|
16377
16377
|
});
|
|
16378
16378
|
}
|
|
16379
16379
|
function NC(t) {
|
|
16380
|
-
return
|
|
16380
|
+
return R.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
16381
16381
|
}
|
|
16382
16382
|
function AC(t) {
|
|
16383
16383
|
const e = {}, r = Object.keys(t);
|
|
@@ -16393,20 +16393,20 @@ function Kp(t) {
|
|
|
16393
16393
|
let a = r[i++];
|
|
16394
16394
|
if (a === "__proto__") return !0;
|
|
16395
16395
|
const s = Number.isFinite(+a), u = i >= r.length;
|
|
16396
|
-
return a = !a &&
|
|
16396
|
+
return a = !a && R.isArray(o) ? o.length : a, u ? (R.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !R.isObject(o[a])) && (o[a] = []), e(r, n, o[a], i) && R.isArray(o[a]) && (o[a] = AC(o[a])), !s);
|
|
16397
16397
|
}
|
|
16398
|
-
if (
|
|
16398
|
+
if (R.isFormData(t) && R.isFunction(t.entries)) {
|
|
16399
16399
|
const r = {};
|
|
16400
|
-
return
|
|
16400
|
+
return R.forEachEntry(t, (n, o) => {
|
|
16401
16401
|
e(NC(n), o, r, 0);
|
|
16402
16402
|
}), r;
|
|
16403
16403
|
}
|
|
16404
16404
|
return null;
|
|
16405
16405
|
}
|
|
16406
16406
|
function OC(t, e, r) {
|
|
16407
|
-
if (
|
|
16407
|
+
if (R.isString(t))
|
|
16408
16408
|
try {
|
|
16409
|
-
return (e || JSON.parse)(t),
|
|
16409
|
+
return (e || JSON.parse)(t), R.trim(t);
|
|
16410
16410
|
} catch (n) {
|
|
16411
16411
|
if (n.name !== "SyntaxError")
|
|
16412
16412
|
throw n;
|
|
@@ -16418,20 +16418,20 @@ const no = {
|
|
|
16418
16418
|
adapter: ["xhr", "http", "fetch"],
|
|
16419
16419
|
transformRequest: [
|
|
16420
16420
|
function(e, r) {
|
|
16421
|
-
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i =
|
|
16422
|
-
if (i &&
|
|
16421
|
+
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = R.isObject(e);
|
|
16422
|
+
if (i && R.isHTMLForm(e) && (e = new FormData(e)), R.isFormData(e))
|
|
16423
16423
|
return o ? JSON.stringify(Kp(e)) : e;
|
|
16424
|
-
if (
|
|
16424
|
+
if (R.isArrayBuffer(e) || R.isBuffer(e) || R.isStream(e) || R.isFile(e) || R.isBlob(e) || R.isReadableStream(e))
|
|
16425
16425
|
return e;
|
|
16426
|
-
if (
|
|
16426
|
+
if (R.isArrayBufferView(e))
|
|
16427
16427
|
return e.buffer;
|
|
16428
|
-
if (
|
|
16428
|
+
if (R.isURLSearchParams(e))
|
|
16429
16429
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
16430
16430
|
let s;
|
|
16431
16431
|
if (i) {
|
|
16432
16432
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
16433
16433
|
return TC(e, this.formSerializer).toString();
|
|
16434
|
-
if ((s =
|
|
16434
|
+
if ((s = R.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
16435
16435
|
const u = this.env && this.env.FormData;
|
|
16436
16436
|
return Ji(
|
|
16437
16437
|
s ? { "files[]": e } : e,
|
|
@@ -16446,9 +16446,9 @@ const no = {
|
|
|
16446
16446
|
transformResponse: [
|
|
16447
16447
|
function(e) {
|
|
16448
16448
|
const r = this.transitional || no.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
16449
|
-
if (
|
|
16449
|
+
if (R.isResponse(e) || R.isReadableStream(e))
|
|
16450
16450
|
return e;
|
|
16451
|
-
if (e &&
|
|
16451
|
+
if (e && R.isString(e) && (n && !this.responseType || o)) {
|
|
16452
16452
|
const a = !(r && r.silentJSONParsing) && o;
|
|
16453
16453
|
try {
|
|
16454
16454
|
return JSON.parse(e, this.parseReviver);
|
|
@@ -16483,10 +16483,10 @@ const no = {
|
|
|
16483
16483
|
}
|
|
16484
16484
|
}
|
|
16485
16485
|
};
|
|
16486
|
-
|
|
16486
|
+
R.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
16487
16487
|
no.headers[t] = {};
|
|
16488
16488
|
});
|
|
16489
|
-
const RC =
|
|
16489
|
+
const RC = R.toObjectSet([
|
|
16490
16490
|
"age",
|
|
16491
16491
|
"authorization",
|
|
16492
16492
|
"content-length",
|
|
@@ -16516,7 +16516,7 @@ function vn(t) {
|
|
|
16516
16516
|
return t && String(t).trim().toLowerCase();
|
|
16517
16517
|
}
|
|
16518
16518
|
function Mo(t) {
|
|
16519
|
-
return t === !1 || t == null ? t :
|
|
16519
|
+
return t === !1 || t == null ? t : R.isArray(t) ? t.map(Mo) : String(t);
|
|
16520
16520
|
}
|
|
16521
16521
|
function PC(t) {
|
|
16522
16522
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -16527,12 +16527,12 @@ function PC(t) {
|
|
|
16527
16527
|
}
|
|
16528
16528
|
const kC = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
16529
16529
|
function Ca(t, e, r, n, o) {
|
|
16530
|
-
if (
|
|
16530
|
+
if (R.isFunction(n))
|
|
16531
16531
|
return n.call(this, e, r);
|
|
16532
|
-
if (o && (e = r), !!
|
|
16533
|
-
if (
|
|
16532
|
+
if (o && (e = r), !!R.isString(e)) {
|
|
16533
|
+
if (R.isString(n))
|
|
16534
16534
|
return e.indexOf(n) !== -1;
|
|
16535
|
-
if (
|
|
16535
|
+
if (R.isRegExp(n))
|
|
16536
16536
|
return n.test(e);
|
|
16537
16537
|
}
|
|
16538
16538
|
}
|
|
@@ -16540,7 +16540,7 @@ function IC(t) {
|
|
|
16540
16540
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
|
|
16541
16541
|
}
|
|
16542
16542
|
function DC(t, e) {
|
|
16543
|
-
const r =
|
|
16543
|
+
const r = R.toCamelCase(" " + e);
|
|
16544
16544
|
["get", "set", "has"].forEach((n) => {
|
|
16545
16545
|
Object.defineProperty(t, n + r, {
|
|
16546
16546
|
value: function(o, i, a) {
|
|
@@ -16560,20 +16560,20 @@ let $e = class {
|
|
|
16560
16560
|
const c = vn(u);
|
|
16561
16561
|
if (!c)
|
|
16562
16562
|
throw new Error("header name must be a non-empty string");
|
|
16563
|
-
const p =
|
|
16563
|
+
const p = R.findKey(o, c);
|
|
16564
16564
|
(!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = Mo(s));
|
|
16565
16565
|
}
|
|
16566
|
-
const a = (s, u) =>
|
|
16567
|
-
if (
|
|
16566
|
+
const a = (s, u) => R.forEach(s, (l, c) => i(l, c, u));
|
|
16567
|
+
if (R.isPlainObject(e) || e instanceof this.constructor)
|
|
16568
16568
|
a(e, r);
|
|
16569
|
-
else if (
|
|
16569
|
+
else if (R.isString(e) && (e = e.trim()) && !kC(e))
|
|
16570
16570
|
a(_C(e), r);
|
|
16571
|
-
else if (
|
|
16571
|
+
else if (R.isObject(e) && R.isIterable(e)) {
|
|
16572
16572
|
let s = {}, u, l;
|
|
16573
16573
|
for (const c of e) {
|
|
16574
|
-
if (!
|
|
16574
|
+
if (!R.isArray(c))
|
|
16575
16575
|
throw TypeError("Object iterator must return a key-value pair");
|
|
16576
|
-
s[l = c[0]] = (u = s[l]) ?
|
|
16576
|
+
s[l = c[0]] = (u = s[l]) ? R.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
|
|
16577
16577
|
}
|
|
16578
16578
|
a(s, r);
|
|
16579
16579
|
} else
|
|
@@ -16582,16 +16582,16 @@ let $e = class {
|
|
|
16582
16582
|
}
|
|
16583
16583
|
get(e, r) {
|
|
16584
16584
|
if (e = vn(e), e) {
|
|
16585
|
-
const n =
|
|
16585
|
+
const n = R.findKey(this, e);
|
|
16586
16586
|
if (n) {
|
|
16587
16587
|
const o = this[n];
|
|
16588
16588
|
if (!r)
|
|
16589
16589
|
return o;
|
|
16590
16590
|
if (r === !0)
|
|
16591
16591
|
return PC(o);
|
|
16592
|
-
if (
|
|
16592
|
+
if (R.isFunction(r))
|
|
16593
16593
|
return r.call(this, o, n);
|
|
16594
|
-
if (
|
|
16594
|
+
if (R.isRegExp(r))
|
|
16595
16595
|
return r.exec(o);
|
|
16596
16596
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
16597
16597
|
}
|
|
@@ -16599,7 +16599,7 @@ let $e = class {
|
|
|
16599
16599
|
}
|
|
16600
16600
|
has(e, r) {
|
|
16601
16601
|
if (e = vn(e), e) {
|
|
16602
|
-
const n =
|
|
16602
|
+
const n = R.findKey(this, e);
|
|
16603
16603
|
return !!(n && this[n] !== void 0 && (!r || Ca(this, this[n], n, r)));
|
|
16604
16604
|
}
|
|
16605
16605
|
return !1;
|
|
@@ -16609,11 +16609,11 @@ let $e = class {
|
|
|
16609
16609
|
let o = !1;
|
|
16610
16610
|
function i(a) {
|
|
16611
16611
|
if (a = vn(a), a) {
|
|
16612
|
-
const s =
|
|
16612
|
+
const s = R.findKey(n, a);
|
|
16613
16613
|
s && (!r || Ca(n, n[s], s, r)) && (delete n[s], o = !0);
|
|
16614
16614
|
}
|
|
16615
16615
|
}
|
|
16616
|
-
return
|
|
16616
|
+
return R.isArray(e) ? e.forEach(i) : i(e), o;
|
|
16617
16617
|
}
|
|
16618
16618
|
clear(e) {
|
|
16619
16619
|
const r = Object.keys(this);
|
|
@@ -16626,8 +16626,8 @@ let $e = class {
|
|
|
16626
16626
|
}
|
|
16627
16627
|
normalize(e) {
|
|
16628
16628
|
const r = this, n = {};
|
|
16629
|
-
return
|
|
16630
|
-
const a =
|
|
16629
|
+
return R.forEach(this, (o, i) => {
|
|
16630
|
+
const a = R.findKey(n, i);
|
|
16631
16631
|
if (a) {
|
|
16632
16632
|
r[a] = Mo(o), delete r[i];
|
|
16633
16633
|
return;
|
|
@@ -16641,8 +16641,8 @@ let $e = class {
|
|
|
16641
16641
|
}
|
|
16642
16642
|
toJSON(e) {
|
|
16643
16643
|
const r = /* @__PURE__ */ Object.create(null);
|
|
16644
|
-
return
|
|
16645
|
-
n != null && n !== !1 && (r[o] = e &&
|
|
16644
|
+
return R.forEach(this, (n, o) => {
|
|
16645
|
+
n != null && n !== !1 && (r[o] = e && R.isArray(n) ? n.join(", ") : n);
|
|
16646
16646
|
}), r;
|
|
16647
16647
|
}
|
|
16648
16648
|
[Symbol.iterator]() {
|
|
@@ -16673,7 +16673,7 @@ let $e = class {
|
|
|
16673
16673
|
const s = vn(a);
|
|
16674
16674
|
n[s] || (DC(o, a), n[s] = !0);
|
|
16675
16675
|
}
|
|
16676
|
-
return
|
|
16676
|
+
return R.isArray(e) ? e.forEach(i) : i(e), this;
|
|
16677
16677
|
}
|
|
16678
16678
|
};
|
|
16679
16679
|
$e.accessor([
|
|
@@ -16684,7 +16684,7 @@ $e.accessor([
|
|
|
16684
16684
|
"User-Agent",
|
|
16685
16685
|
"Authorization"
|
|
16686
16686
|
]);
|
|
16687
|
-
|
|
16687
|
+
R.reduceDescriptors($e.prototype, ({ value: t }, e) => {
|
|
16688
16688
|
let r = e[0].toUpperCase() + e.slice(1);
|
|
16689
16689
|
return {
|
|
16690
16690
|
get: () => t,
|
|
@@ -16693,11 +16693,11 @@ O.reduceDescriptors($e.prototype, ({ value: t }, e) => {
|
|
|
16693
16693
|
}
|
|
16694
16694
|
};
|
|
16695
16695
|
});
|
|
16696
|
-
|
|
16696
|
+
R.freezeMethods($e);
|
|
16697
16697
|
function Ta(t, e) {
|
|
16698
16698
|
const r = this || no, n = e || r, o = $e.from(n.headers);
|
|
16699
16699
|
let i = n.data;
|
|
16700
|
-
return
|
|
16700
|
+
return R.forEach(t, function(s) {
|
|
16701
16701
|
i = s.call(r, i, o.normalize(), e ? e.status : void 0);
|
|
16702
16702
|
}), o.normalize(), i;
|
|
16703
16703
|
}
|
|
@@ -16791,7 +16791,7 @@ const di = (t, e, r = 3) => {
|
|
|
16791
16791
|
}),
|
|
16792
16792
|
e[1]
|
|
16793
16793
|
];
|
|
16794
|
-
}, pd = (t) => (...e) =>
|
|
16794
|
+
}, pd = (t) => (...e) => R.asap(() => t(...e)), $C = Re.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, Re.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
16795
16795
|
new URL(Re.origin),
|
|
16796
16796
|
Re.navigator && /(msie|trident)/i.test(Re.navigator.userAgent)
|
|
16797
16797
|
) : () => !0, BC = Re.hasStandardBrowserEnv ? (
|
|
@@ -16800,7 +16800,7 @@ const di = (t, e, r = 3) => {
|
|
|
16800
16800
|
write(t, e, r, n, o, i, a) {
|
|
16801
16801
|
if (typeof document > "u") return;
|
|
16802
16802
|
const s = [`${t}=${encodeURIComponent(e)}`];
|
|
16803
|
-
|
|
16803
|
+
R.isNumber(r) && s.push(`expires=${new Date(r).toUTCString()}`), R.isString(n) && s.push(`path=${n}`), R.isString(o) && s.push(`domain=${o}`), i === !0 && s.push("secure"), R.isString(a) && s.push(`SameSite=${a}`), document.cookie = s.join("; ");
|
|
16804
16804
|
},
|
|
16805
16805
|
read(t) {
|
|
16806
16806
|
if (typeof document > "u") return null;
|
|
@@ -16838,21 +16838,21 @@ function br(t, e) {
|
|
|
16838
16838
|
e = e || {};
|
|
16839
16839
|
const r = {};
|
|
16840
16840
|
function n(l, c, p, f) {
|
|
16841
|
-
return
|
|
16841
|
+
return R.isPlainObject(l) && R.isPlainObject(c) ? R.merge.call({ caseless: f }, l, c) : R.isPlainObject(c) ? R.merge({}, c) : R.isArray(c) ? c.slice() : c;
|
|
16842
16842
|
}
|
|
16843
16843
|
function o(l, c, p, f) {
|
|
16844
|
-
if (
|
|
16845
|
-
if (!
|
|
16844
|
+
if (R.isUndefined(c)) {
|
|
16845
|
+
if (!R.isUndefined(l))
|
|
16846
16846
|
return n(void 0, l, p, f);
|
|
16847
16847
|
} else return n(l, c, p, f);
|
|
16848
16848
|
}
|
|
16849
16849
|
function i(l, c) {
|
|
16850
|
-
if (!
|
|
16850
|
+
if (!R.isUndefined(c))
|
|
16851
16851
|
return n(void 0, c);
|
|
16852
16852
|
}
|
|
16853
16853
|
function a(l, c) {
|
|
16854
|
-
if (
|
|
16855
|
-
if (!
|
|
16854
|
+
if (R.isUndefined(c)) {
|
|
16855
|
+
if (!R.isUndefined(l))
|
|
16856
16856
|
return n(void 0, l);
|
|
16857
16857
|
} else return n(void 0, c);
|
|
16858
16858
|
}
|
|
@@ -16893,10 +16893,10 @@ function br(t, e) {
|
|
|
16893
16893
|
validateStatus: s,
|
|
16894
16894
|
headers: (l, c, p) => o(hd(l), hd(c), p, !0)
|
|
16895
16895
|
};
|
|
16896
|
-
return
|
|
16896
|
+
return R.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
16897
16897
|
if (c === "__proto__" || c === "constructor" || c === "prototype") return;
|
|
16898
|
-
const p =
|
|
16899
|
-
|
|
16898
|
+
const p = R.hasOwnProp(u, c) ? u[c] : o, f = p(t[c], e[c], c);
|
|
16899
|
+
R.isUndefined(f) && p !== s || (r[c] = f);
|
|
16900
16900
|
}), r;
|
|
16901
16901
|
}
|
|
16902
16902
|
const eh = (t) => {
|
|
@@ -16911,17 +16911,17 @@ const eh = (t) => {
|
|
|
16911
16911
|
"Basic " + btoa(
|
|
16912
16912
|
(s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")
|
|
16913
16913
|
)
|
|
16914
|
-
),
|
|
16914
|
+
), R.isFormData(r)) {
|
|
16915
16915
|
if (Re.hasStandardBrowserEnv || Re.hasStandardBrowserWebWorkerEnv)
|
|
16916
16916
|
a.setContentType(void 0);
|
|
16917
|
-
else if (
|
|
16917
|
+
else if (R.isFunction(r.getHeaders)) {
|
|
16918
16918
|
const u = r.getHeaders(), l = ["content-type", "content-length"];
|
|
16919
16919
|
Object.entries(u).forEach(([c, p]) => {
|
|
16920
16920
|
l.includes(c.toLowerCase()) && a.set(c, p);
|
|
16921
16921
|
});
|
|
16922
16922
|
}
|
|
16923
16923
|
}
|
|
16924
|
-
if (Re.hasStandardBrowserEnv && (n &&
|
|
16924
|
+
if (Re.hasStandardBrowserEnv && (n && R.isFunction(n) && (n = n(e)), n || n !== !1 && $C(e.url))) {
|
|
16925
16925
|
const u = o && i && BC.read(i);
|
|
16926
16926
|
u && a.set(o, u);
|
|
16927
16927
|
}
|
|
@@ -16965,8 +16965,8 @@ const eh = (t) => {
|
|
|
16965
16965
|
}, m.onabort = function() {
|
|
16966
16966
|
m && (n(new W("Request aborted", W.ECONNABORTED, t, m)), m = null);
|
|
16967
16967
|
}, m.onerror = function(S) {
|
|
16968
|
-
const N = S && S.message ? S.message : "Network Error",
|
|
16969
|
-
|
|
16968
|
+
const N = S && S.message ? S.message : "Network Error", O = new W(N, W.ERR_NETWORK, t, m);
|
|
16969
|
+
O.event = S || null, n(O), m = null;
|
|
16970
16970
|
}, m.ontimeout = function() {
|
|
16971
16971
|
let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
16972
16972
|
const N = o.transitional || Ku;
|
|
@@ -16978,16 +16978,16 @@ const eh = (t) => {
|
|
|
16978
16978
|
m
|
|
16979
16979
|
)
|
|
16980
16980
|
), m = null;
|
|
16981
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in m &&
|
|
16981
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in m && R.forEach(a.toJSON(), function(S, N) {
|
|
16982
16982
|
m.setRequestHeader(N, S);
|
|
16983
|
-
}),
|
|
16983
|
+
}), R.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([f, b] = di(l, !0), m.addEventListener("progress", f)), u && m.upload && ([p, d] = di(u), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", d)), (o.cancelToken || o.signal) && (c = (w) => {
|
|
16984
16984
|
m && (n(!w || w.type ? new oo(null, t, m) : w), m.abort(), m = null);
|
|
16985
16985
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
16986
|
-
const
|
|
16987
|
-
if (
|
|
16986
|
+
const v = LC(o.url);
|
|
16987
|
+
if (v && Re.protocols.indexOf(v) === -1) {
|
|
16988
16988
|
n(
|
|
16989
16989
|
new W(
|
|
16990
|
-
"Unsupported protocol " +
|
|
16990
|
+
"Unsupported protocol " + v + ":",
|
|
16991
16991
|
W.ERR_BAD_REQUEST,
|
|
16992
16992
|
t
|
|
16993
16993
|
)
|
|
@@ -17019,7 +17019,7 @@ const eh = (t) => {
|
|
|
17019
17019
|
};
|
|
17020
17020
|
t.forEach((l) => l.addEventListener("abort", i));
|
|
17021
17021
|
const { signal: u } = n;
|
|
17022
|
-
return u.unsubscribe = () =>
|
|
17022
|
+
return u.unsubscribe = () => R.asap(s), u;
|
|
17023
17023
|
}
|
|
17024
17024
|
}, VC = function* (t, e) {
|
|
17025
17025
|
let r = t.byteLength;
|
|
@@ -17081,17 +17081,17 @@ const eh = (t) => {
|
|
|
17081
17081
|
highWaterMark: 2
|
|
17082
17082
|
}
|
|
17083
17083
|
);
|
|
17084
|
-
}, bd = 64 * 1024, { isFunction: No } =
|
|
17084
|
+
}, bd = 64 * 1024, { isFunction: No } = R, YC = (({ Request: t, Response: e }) => ({
|
|
17085
17085
|
Request: t,
|
|
17086
17086
|
Response: e
|
|
17087
|
-
}))(
|
|
17087
|
+
}))(R.global), { ReadableStream: gd, TextEncoder: yd } = R.global, vd = (t, ...e) => {
|
|
17088
17088
|
try {
|
|
17089
17089
|
return !!t(...e);
|
|
17090
17090
|
} catch {
|
|
17091
17091
|
return !1;
|
|
17092
17092
|
}
|
|
17093
17093
|
}, XC = (t) => {
|
|
17094
|
-
t =
|
|
17094
|
+
t = R.merge.call(
|
|
17095
17095
|
{
|
|
17096
17096
|
skipUndefined: !0
|
|
17097
17097
|
},
|
|
@@ -17111,7 +17111,7 @@ const eh = (t) => {
|
|
|
17111
17111
|
}
|
|
17112
17112
|
}).headers.has("Content-Type");
|
|
17113
17113
|
return b && !g;
|
|
17114
|
-
}), c = a && s && vd(() =>
|
|
17114
|
+
}), c = a && s && vd(() => R.isReadableStream(new n("").body)), p = {
|
|
17115
17115
|
stream: c && ((b) => b.body)
|
|
17116
17116
|
};
|
|
17117
17117
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((b) => {
|
|
@@ -17129,19 +17129,19 @@ const eh = (t) => {
|
|
|
17129
17129
|
const f = async (b) => {
|
|
17130
17130
|
if (b == null)
|
|
17131
17131
|
return 0;
|
|
17132
|
-
if (
|
|
17132
|
+
if (R.isBlob(b))
|
|
17133
17133
|
return b.size;
|
|
17134
|
-
if (
|
|
17134
|
+
if (R.isSpecCompliantForm(b))
|
|
17135
17135
|
return (await new r(Re.origin, {
|
|
17136
17136
|
method: "POST",
|
|
17137
17137
|
body: b
|
|
17138
17138
|
}).arrayBuffer()).byteLength;
|
|
17139
|
-
if (
|
|
17139
|
+
if (R.isArrayBufferView(b) || R.isArrayBuffer(b))
|
|
17140
17140
|
return b.byteLength;
|
|
17141
|
-
if (
|
|
17141
|
+
if (R.isURLSearchParams(b) && (b = b + ""), R.isString(b))
|
|
17142
17142
|
return (await u(b)).byteLength;
|
|
17143
17143
|
}, d = async (b, g) => {
|
|
17144
|
-
const m =
|
|
17144
|
+
const m = R.toFiniteNumber(b.getContentLength());
|
|
17145
17145
|
return m ?? f(g);
|
|
17146
17146
|
};
|
|
17147
17147
|
return async (b) => {
|
|
@@ -17149,11 +17149,11 @@ const eh = (t) => {
|
|
|
17149
17149
|
url: g,
|
|
17150
17150
|
method: m,
|
|
17151
17151
|
data: y,
|
|
17152
|
-
signal:
|
|
17152
|
+
signal: v,
|
|
17153
17153
|
cancelToken: w,
|
|
17154
17154
|
timeout: S,
|
|
17155
17155
|
onDownloadProgress: N,
|
|
17156
|
-
onUploadProgress:
|
|
17156
|
+
onUploadProgress: O,
|
|
17157
17157
|
responseType: k,
|
|
17158
17158
|
headers: j,
|
|
17159
17159
|
withCredentials: F = "same-origin",
|
|
@@ -17161,7 +17161,7 @@ const eh = (t) => {
|
|
|
17161
17161
|
} = eh(b), E = e || fetch;
|
|
17162
17162
|
k = k ? (k + "").toLowerCase() : "text";
|
|
17163
17163
|
let C = UC(
|
|
17164
|
-
[
|
|
17164
|
+
[v, w && w.toAbortSignal()],
|
|
17165
17165
|
S
|
|
17166
17166
|
), D = null;
|
|
17167
17167
|
const L = C && C.unsubscribe && (() => {
|
|
@@ -17169,21 +17169,21 @@ const eh = (t) => {
|
|
|
17169
17169
|
});
|
|
17170
17170
|
let T;
|
|
17171
17171
|
try {
|
|
17172
|
-
if (
|
|
17172
|
+
if (O && l && m !== "get" && m !== "head" && (T = await d(j, y)) !== 0) {
|
|
17173
17173
|
let ne = new r(g, {
|
|
17174
17174
|
method: "POST",
|
|
17175
17175
|
body: y,
|
|
17176
17176
|
duplex: "half"
|
|
17177
17177
|
}), Q;
|
|
17178
|
-
if (
|
|
17178
|
+
if (R.isFormData(y) && (Q = ne.headers.get("content-type")) && j.setContentType(Q), ne.body) {
|
|
17179
17179
|
const [q, H] = fd(
|
|
17180
17180
|
T,
|
|
17181
|
-
di(pd(
|
|
17181
|
+
di(pd(O))
|
|
17182
17182
|
);
|
|
17183
17183
|
y = md(ne.body, bd, q, H);
|
|
17184
17184
|
}
|
|
17185
17185
|
}
|
|
17186
|
-
|
|
17186
|
+
R.isString(F) || (F = F ? "include" : "omit");
|
|
17187
17187
|
const A = i && "credentials" in r.prototype, _ = {
|
|
17188
17188
|
...$,
|
|
17189
17189
|
signal: C,
|
|
@@ -17201,7 +17201,7 @@ const eh = (t) => {
|
|
|
17201
17201
|
["status", "statusText", "headers"].forEach((be) => {
|
|
17202
17202
|
ne[be] = M[be];
|
|
17203
17203
|
});
|
|
17204
|
-
const Q =
|
|
17204
|
+
const Q = R.toFiniteNumber(M.headers.get("content-length")), [q, H] = N && fd(
|
|
17205
17205
|
Q,
|
|
17206
17206
|
di(pd(N), !0)
|
|
17207
17207
|
) || [];
|
|
@@ -17213,7 +17213,7 @@ const eh = (t) => {
|
|
|
17213
17213
|
);
|
|
17214
17214
|
}
|
|
17215
17215
|
k = k || "text";
|
|
17216
|
-
let U = await p[
|
|
17216
|
+
let U = await p[R.findKey(p, k) || "text"](
|
|
17217
17217
|
M,
|
|
17218
17218
|
b
|
|
17219
17219
|
);
|
|
@@ -17258,7 +17258,7 @@ const Zu = {
|
|
|
17258
17258
|
get: th
|
|
17259
17259
|
}
|
|
17260
17260
|
};
|
|
17261
|
-
|
|
17261
|
+
R.forEach(Zu, (t, e) => {
|
|
17262
17262
|
if (t) {
|
|
17263
17263
|
try {
|
|
17264
17264
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -17267,9 +17267,9 @@ O.forEach(Zu, (t, e) => {
|
|
|
17267
17267
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
17268
17268
|
}
|
|
17269
17269
|
});
|
|
17270
|
-
const xd = (t) => `- ${t}`, JC = (t) =>
|
|
17270
|
+
const xd = (t) => `- ${t}`, JC = (t) => R.isFunction(t) || t === null || t === !1;
|
|
17271
17271
|
function ZC(t, e) {
|
|
17272
|
-
t =
|
|
17272
|
+
t = R.isArray(t) ? t : [t];
|
|
17273
17273
|
const { length: r } = t;
|
|
17274
17274
|
let n, o;
|
|
17275
17275
|
const i = {};
|
|
@@ -17278,7 +17278,7 @@ function ZC(t, e) {
|
|
|
17278
17278
|
let s;
|
|
17279
17279
|
if (o = n, !JC(n) && (o = Zu[(s = String(n)).toLowerCase()], o === void 0))
|
|
17280
17280
|
throw new W(`Unknown adapter '${s}'`);
|
|
17281
|
-
if (o && (
|
|
17281
|
+
if (o && (R.isFunction(o) || (o = o.get(e))))
|
|
17282
17282
|
break;
|
|
17283
17283
|
i[s || "#" + a] = o;
|
|
17284
17284
|
}
|
|
@@ -17422,7 +17422,7 @@ let ur = class {
|
|
|
17422
17422
|
legacyInterceptorReqResOrdering: Ue.transitional(Ue.boolean)
|
|
17423
17423
|
},
|
|
17424
17424
|
!1
|
|
17425
|
-
), o != null && (
|
|
17425
|
+
), o != null && (R.isFunction(o) ? r.paramsSerializer = {
|
|
17426
17426
|
serialize: o
|
|
17427
17427
|
} : jo.assertOptions(
|
|
17428
17428
|
o,
|
|
@@ -17439,8 +17439,8 @@ let ur = class {
|
|
|
17439
17439
|
},
|
|
17440
17440
|
!0
|
|
17441
17441
|
), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
17442
|
-
let a = i &&
|
|
17443
|
-
i &&
|
|
17442
|
+
let a = i && R.merge(i.common, i[r.method]);
|
|
17443
|
+
i && R.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (b) => {
|
|
17444
17444
|
delete i[b];
|
|
17445
17445
|
}), r.headers = $e.concat(a, i);
|
|
17446
17446
|
const s = [];
|
|
@@ -17489,7 +17489,7 @@ let ur = class {
|
|
|
17489
17489
|
return Xp(r, e.params, e.paramsSerializer);
|
|
17490
17490
|
}
|
|
17491
17491
|
};
|
|
17492
|
-
|
|
17492
|
+
R.forEach(["delete", "get", "head", "options"], function(e) {
|
|
17493
17493
|
ur.prototype[e] = function(r, n) {
|
|
17494
17494
|
return this.request(
|
|
17495
17495
|
br(n || {}, {
|
|
@@ -17500,7 +17500,7 @@ O.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
17500
17500
|
);
|
|
17501
17501
|
};
|
|
17502
17502
|
});
|
|
17503
|
-
|
|
17503
|
+
R.forEach(["post", "put", "patch"], function(e) {
|
|
17504
17504
|
function r(n) {
|
|
17505
17505
|
return function(i, a, s) {
|
|
17506
17506
|
return this.request(
|
|
@@ -17596,7 +17596,7 @@ function tT(t) {
|
|
|
17596
17596
|
};
|
|
17597
17597
|
}
|
|
17598
17598
|
function rT(t) {
|
|
17599
|
-
return
|
|
17599
|
+
return R.isObject(t) && t.isAxiosError === !0;
|
|
17600
17600
|
}
|
|
17601
17601
|
const Rs = {
|
|
17602
17602
|
Continue: 100,
|
|
@@ -17674,7 +17674,7 @@ Object.entries(Rs).forEach(([t, e]) => {
|
|
|
17674
17674
|
});
|
|
17675
17675
|
function ih(t) {
|
|
17676
17676
|
const e = new ur(t), r = $p(ur.prototype.request, e);
|
|
17677
|
-
return
|
|
17677
|
+
return R.extend(r, ur.prototype, e, { allOwnKeys: !0 }), R.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
17678
17678
|
return ih(br(t, o));
|
|
17679
17679
|
}, r;
|
|
17680
17680
|
}
|
|
@@ -17694,7 +17694,7 @@ xe.spread = tT;
|
|
|
17694
17694
|
xe.isAxiosError = rT;
|
|
17695
17695
|
xe.mergeConfig = br;
|
|
17696
17696
|
xe.AxiosHeaders = $e;
|
|
17697
|
-
xe.formToJSON = (t) => Kp(
|
|
17697
|
+
xe.formToJSON = (t) => Kp(R.isHTMLForm(t) ? new FormData(t) : t);
|
|
17698
17698
|
xe.getAdapter = rh.getAdapter;
|
|
17699
17699
|
xe.HttpStatusCode = Rs;
|
|
17700
17700
|
xe.default = xe;
|
|
@@ -17750,7 +17750,7 @@ const cn = (t) => {
|
|
|
17750
17750
|
events: u.events
|
|
17751
17751
|
}));
|
|
17752
17752
|
e = i.connect, r = i.drag, n = a.selected;
|
|
17753
|
-
const { editorEnabled: s } =
|
|
17753
|
+
const { editorEnabled: s } = yt((u) => ({
|
|
17754
17754
|
editorEnabled: u.options.enabled
|
|
17755
17755
|
}));
|
|
17756
17756
|
o = s;
|
|
@@ -17762,7 +17762,7 @@ const cn = (t) => {
|
|
|
17762
17762
|
...t.id ? { id: t.id } : {},
|
|
17763
17763
|
ref: (i) => i && e && r && e(r(i)),
|
|
17764
17764
|
style: xu(t),
|
|
17765
|
-
className:
|
|
17765
|
+
className: ht(
|
|
17766
17766
|
`min-h-2.5 ${n ? "outline outline-blue-500" : ""}`,
|
|
17767
17767
|
"w-full flex justify-center",
|
|
17768
17768
|
t.className
|
|
@@ -17806,16 +17806,35 @@ const sT = (t, e) => {
|
|
|
17806
17806
|
queryKey: ["video", t, e],
|
|
17807
17807
|
queryFn: () => g8(t, e),
|
|
17808
17808
|
enabled: !!t
|
|
17809
|
-
})
|
|
17809
|
+
});
|
|
17810
|
+
_e(() => {
|
|
17811
|
+
if (!i.current) return;
|
|
17812
|
+
const g = document.getElementById("dynamicPage_wrapper");
|
|
17813
|
+
if (!g) return;
|
|
17814
|
+
let m = 0;
|
|
17815
|
+
const y = () => {
|
|
17816
|
+
var k;
|
|
17817
|
+
const O = Math.ceil(g.getBoundingClientRect().height);
|
|
17818
|
+
O !== m && (m = O, (k = window.parent) == null || k.postMessage({ type: "mrr_iframe_height", height: O }, "*"));
|
|
17819
|
+
}, v = i.current, w = new ResizeObserver(y);
|
|
17820
|
+
w.observe(v);
|
|
17821
|
+
const S = () => y();
|
|
17822
|
+
v.addEventListener("loadedmetadata", S);
|
|
17823
|
+
const N = () => y();
|
|
17824
|
+
return v.addEventListener("play", N), y(), () => {
|
|
17825
|
+
w.disconnect(), v.removeEventListener("loadedmetadata", S), v.removeEventListener("play", N);
|
|
17826
|
+
};
|
|
17827
|
+
}, [i]);
|
|
17828
|
+
const { postVideoAnalytics: l } = iT();
|
|
17810
17829
|
let c = 0, p = Date.now(), f = 9999999;
|
|
17811
|
-
if (
|
|
17830
|
+
if (_e(() => {
|
|
17812
17831
|
const g = ($) => {
|
|
17813
17832
|
$.target.nodeName === "VIDEO" && $.preventDefault();
|
|
17814
17833
|
};
|
|
17815
17834
|
document.addEventListener("contextmenu", g);
|
|
17816
17835
|
const m = i.current;
|
|
17817
17836
|
if (!m || !a) return;
|
|
17818
|
-
const y = m.dataset.videoId,
|
|
17837
|
+
const y = m.dataset.videoId, v = m.dataset.title;
|
|
17819
17838
|
if (!y) return;
|
|
17820
17839
|
let w = /* @__PURE__ */ new Set();
|
|
17821
17840
|
m.addEventListener("timeupdate", () => {
|
|
@@ -17852,18 +17871,18 @@ const sT = (t, e) => {
|
|
|
17852
17871
|
var $;
|
|
17853
17872
|
($ = window.gtag) == null || $.call(window, "event", "video_start", {
|
|
17854
17873
|
video_id: y,
|
|
17855
|
-
video_title:
|
|
17874
|
+
video_title: v,
|
|
17856
17875
|
video_duration: m.duration
|
|
17857
17876
|
}), l({ bibId: e, locationId: t, eventId: r, type: "start" }), localStorage.getItem(xn(y)) || (localStorage.setItem(xn(y), "true"), l({ bibId: e, eventId: r, locationId: t, type: "unique" }));
|
|
17858
17877
|
}, N = () => {
|
|
17859
17878
|
var $;
|
|
17860
17879
|
($ = window.gtag) == null || $.call(window, "event", "video_pause", {
|
|
17861
17880
|
video_id: y,
|
|
17862
|
-
video_title:
|
|
17881
|
+
video_title: v,
|
|
17863
17882
|
video_duration: m.duration,
|
|
17864
17883
|
video_currentTime: m.currentTime
|
|
17865
17884
|
});
|
|
17866
|
-
},
|
|
17885
|
+
}, O = () => {
|
|
17867
17886
|
m.currentTime >= f && (m.pause(), m.currentTime = f - 1, setOpen(!0));
|
|
17868
17887
|
}, k = () => {
|
|
17869
17888
|
m.currentTime > f && (m.pause(), m.currentTime = f - 1, setOpen(!0));
|
|
@@ -17871,15 +17890,15 @@ const sT = (t, e) => {
|
|
|
17871
17890
|
var $;
|
|
17872
17891
|
m.currentTime = 0, setOpen(!0), ($ = window.gtag) == null || $.call(window, "event", "video_complete", {
|
|
17873
17892
|
video_id: y,
|
|
17874
|
-
video_title:
|
|
17893
|
+
video_title: v,
|
|
17875
17894
|
video_duration: m.duration,
|
|
17876
17895
|
video_currentTime: m.currentTime
|
|
17877
17896
|
});
|
|
17878
17897
|
}, F = ($) => {
|
|
17879
17898
|
["ArrowRight", "ArrowLeft"].includes($.code) && $.preventDefault();
|
|
17880
17899
|
};
|
|
17881
|
-
return m.addEventListener("play", S), m.addEventListener("pause", N), m.addEventListener("timeupdate",
|
|
17882
|
-
m.removeEventListener("play", S), m.removeEventListener("pause", N), m.removeEventListener("timeupdate",
|
|
17900
|
+
return m.addEventListener("play", S), m.addEventListener("pause", N), m.addEventListener("timeupdate", O), m.addEventListener("seeking", k), m.addEventListener("ended", j), document.addEventListener("keydown", F), () => {
|
|
17901
|
+
m.removeEventListener("play", S), m.removeEventListener("pause", N), m.removeEventListener("timeupdate", O), m.removeEventListener("seeking", k), m.removeEventListener("ended", j), document.removeEventListener("keydown", F), document.removeEventListener("contextmenu", g);
|
|
17883
17902
|
};
|
|
17884
17903
|
}, [i.current, a]), s)
|
|
17885
17904
|
return /* @__PURE__ */ h("div", { className: "flex items-center justify-center h-48 bg-muted rounded-lg", children: /* @__PURE__ */ h("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent" }) });
|
|
@@ -17950,18 +17969,18 @@ const sT = (t, e) => {
|
|
|
17950
17969
|
borderRadius: n = 8,
|
|
17951
17970
|
boxShadow: o = "none"
|
|
17952
17971
|
}) => {
|
|
17953
|
-
const i =
|
|
17972
|
+
const i = Pe(), a = mi();
|
|
17954
17973
|
let s, u, l;
|
|
17955
17974
|
try {
|
|
17956
|
-
const { connectors: m, events: y } = ue((
|
|
17957
|
-
events:
|
|
17975
|
+
const { connectors: m, events: y } = ue((v) => ({
|
|
17976
|
+
events: v.events
|
|
17958
17977
|
}));
|
|
17959
17978
|
s = m.connect, u = m.drag, l = y.selected;
|
|
17960
17979
|
} catch {
|
|
17961
17980
|
}
|
|
17962
17981
|
let c = !1;
|
|
17963
17982
|
try {
|
|
17964
|
-
let { options: m } =
|
|
17983
|
+
let { options: m } = yt((y) => ({
|
|
17965
17984
|
options: y.options
|
|
17966
17985
|
}));
|
|
17967
17986
|
c = m.enabled;
|
|
@@ -17990,11 +18009,11 @@ const sT = (t, e) => {
|
|
|
17990
18009
|
style: d,
|
|
17991
18010
|
className: `transition-all ${l ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
17992
18011
|
children: g ? /* @__PURE__ */ h("div", { className: "space-y-6", children: b.map((m) => {
|
|
17993
|
-
var y,
|
|
18012
|
+
var y, v;
|
|
17994
18013
|
return /* @__PURE__ */ h(
|
|
17995
18014
|
uT,
|
|
17996
18015
|
{
|
|
17997
|
-
eventId: ((y = a == null ? void 0 : a.event) == null ? void 0 : y.id) || ((
|
|
18016
|
+
eventId: ((y = a == null ? void 0 : a.event) == null ? void 0 : y.id) || ((v = a == null ? void 0 : a.event) == null ? void 0 : v._id),
|
|
17998
18017
|
locationId: m.locationId,
|
|
17999
18018
|
bibId: a == null ? void 0 : a.bibId,
|
|
18000
18019
|
editorEnabled: c,
|
|
@@ -18065,7 +18084,7 @@ const sT = (t, e) => {
|
|
|
18065
18084
|
}
|
|
18066
18085
|
),
|
|
18067
18086
|
/* @__PURE__ */ h(
|
|
18068
|
-
|
|
18087
|
+
ft,
|
|
18069
18088
|
{
|
|
18070
18089
|
label: "Background",
|
|
18071
18090
|
value: n,
|
|
@@ -18113,7 +18132,7 @@ const ah = ({
|
|
|
18113
18132
|
alignItems: o = "stretch",
|
|
18114
18133
|
children: i
|
|
18115
18134
|
}) => {
|
|
18116
|
-
const a =
|
|
18135
|
+
const a = Pe();
|
|
18117
18136
|
let s, u, l;
|
|
18118
18137
|
try {
|
|
18119
18138
|
const { connectors: f, events: d } = ue((b) => ({
|
|
@@ -18232,11 +18251,11 @@ const el = ({
|
|
|
18232
18251
|
margin: l = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
18233
18252
|
opacity: c = 100
|
|
18234
18253
|
}) => {
|
|
18235
|
-
const p =
|
|
18254
|
+
const p = Pe();
|
|
18236
18255
|
let f, d, b;
|
|
18237
18256
|
try {
|
|
18238
|
-
const { connectors: m, events: y } = ue((
|
|
18239
|
-
events:
|
|
18257
|
+
const { connectors: m, events: y } = ue((v) => ({
|
|
18258
|
+
events: v.events
|
|
18240
18259
|
}));
|
|
18241
18260
|
f = m.connect, d = m.drag, b = y.selected;
|
|
18242
18261
|
} catch {
|
|
@@ -18356,7 +18375,7 @@ const el = ({
|
|
|
18356
18375
|
] }),
|
|
18357
18376
|
/* @__PURE__ */ P(Y, { title: "Color", defaultOpen: !1, children: [
|
|
18358
18377
|
/* @__PURE__ */ h(
|
|
18359
|
-
|
|
18378
|
+
ft,
|
|
18360
18379
|
{
|
|
18361
18380
|
label: "Link Color",
|
|
18362
18381
|
value: e.color || "#0066cc",
|
|
@@ -18416,7 +18435,7 @@ const sh = ({
|
|
|
18416
18435
|
opacity: u = 100,
|
|
18417
18436
|
boxShadow: l = "none"
|
|
18418
18437
|
}) => {
|
|
18419
|
-
const c =
|
|
18438
|
+
const c = Pe();
|
|
18420
18439
|
let p, f, d;
|
|
18421
18440
|
try {
|
|
18422
18441
|
const { connectors: g, events: m } = ue((y) => ({
|
|
@@ -18621,7 +18640,7 @@ const uh = ({ children: t, className: e }) => {
|
|
|
18621
18640
|
ref: (s) => {
|
|
18622
18641
|
s && r && n && r(n(s));
|
|
18623
18642
|
},
|
|
18624
|
-
className:
|
|
18643
|
+
className: ht(
|
|
18625
18644
|
`min-h-2.5 ${o ? "border border-blue-500" : ""}`,
|
|
18626
18645
|
"w-full flex justify-center",
|
|
18627
18646
|
e
|
|
@@ -18658,7 +18677,7 @@ const tl = (t) => {
|
|
|
18658
18677
|
"div",
|
|
18659
18678
|
{
|
|
18660
18679
|
style: xu(t),
|
|
18661
|
-
className:
|
|
18680
|
+
className: ht(
|
|
18662
18681
|
t.className,
|
|
18663
18682
|
`${n ? "outline outline-blue-500" : ""}`
|
|
18664
18683
|
),
|
|
@@ -18693,16 +18712,16 @@ const lh = ({
|
|
|
18693
18712
|
boxShadow: g = "none",
|
|
18694
18713
|
children: m
|
|
18695
18714
|
}) => {
|
|
18696
|
-
|
|
18697
|
-
let y,
|
|
18715
|
+
Pe();
|
|
18716
|
+
let y, v, w;
|
|
18698
18717
|
try {
|
|
18699
18718
|
const { connectors: k, events: j } = ue((F) => ({
|
|
18700
18719
|
events: F.events
|
|
18701
18720
|
}));
|
|
18702
|
-
y = k.connect,
|
|
18721
|
+
y = k.connect, v = k.drag, w = j.selected;
|
|
18703
18722
|
} catch {
|
|
18704
18723
|
}
|
|
18705
|
-
const S = typeof te(e) == "object" ? `${te(e).top}px ${te(e).right}px ${te(e).bottom}px ${te(e).left}px` : `${te(e)}px`, N = typeof te(r) == "object" ? `${te(r).top}px ${te(r).right}px ${te(r).bottom}px ${te(r).left}px` : `${te(r)}px`,
|
|
18724
|
+
const S = typeof te(e) == "object" ? `${te(e).top}px ${te(e).right}px ${te(e).bottom}px ${te(e).left}px` : `${te(e)}px`, N = typeof te(r) == "object" ? `${te(r).top}px ${te(r).right}px ${te(r).bottom}px ${te(r).left}px` : `${te(r)}px`, O = [
|
|
18706
18725
|
{
|
|
18707
18726
|
url: "https://myracereel.com/privacy-data-privacy",
|
|
18708
18727
|
name: "Privacy & Data Policy"
|
|
@@ -18736,10 +18755,10 @@ const lh = ({
|
|
|
18736
18755
|
boxShadow: g === "none" ? "none" : g
|
|
18737
18756
|
},
|
|
18738
18757
|
className: "bg-black",
|
|
18739
|
-
ref: (k) => k && y &&
|
|
18758
|
+
ref: (k) => k && y && v && y(v(k)),
|
|
18740
18759
|
children: /* @__PURE__ */ h("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ P("div", { className: "w-full flex flex-col py-10 gap-y-3.5 ", children: [
|
|
18741
18760
|
/* @__PURE__ */ h("div", { className: "flex w-full gap-x-1 justify-center items-center", children: /* @__PURE__ */ h("div", { className: "text-white text-sm", children: "Powered by MyRaceReel" }) }),
|
|
18742
|
-
/* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children:
|
|
18761
|
+
/* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: O.map((k) => /* @__PURE__ */ h(
|
|
18743
18762
|
"a",
|
|
18744
18763
|
{
|
|
18745
18764
|
className: "text-white",
|
|
@@ -18776,7 +18795,7 @@ lh.craft = {
|
|
|
18776
18795
|
related: { settings: $i }
|
|
18777
18796
|
};
|
|
18778
18797
|
const pT = () => {
|
|
18779
|
-
const { connectors: t } =
|
|
18798
|
+
const { connectors: t } = yt(), e = [
|
|
18780
18799
|
{
|
|
18781
18800
|
name: "Wrapper",
|
|
18782
18801
|
icon: ob,
|
|
@@ -18838,7 +18857,7 @@ const pT = () => {
|
|
|
18838
18857
|
], i = (a, s) => /* @__PURE__ */ P("div", { className: "space-y-2", children: [
|
|
18839
18858
|
/* @__PURE__ */ h("span", { className: "text-xs text-muted-foreground/70", children: a }),
|
|
18840
18859
|
/* @__PURE__ */ h("div", { className: "grid grid-cols-2 gap-1.5", children: s.map((u) => /* @__PURE__ */ P(
|
|
18841
|
-
|
|
18860
|
+
Rt,
|
|
18842
18861
|
{
|
|
18843
18862
|
variant: "outline",
|
|
18844
18863
|
size: "sm",
|
|
@@ -18860,18 +18879,18 @@ const pT = () => {
|
|
|
18860
18879
|
i("Utility", o)
|
|
18861
18880
|
] });
|
|
18862
18881
|
};
|
|
18863
|
-
var hT =
|
|
18882
|
+
var hT = x.createContext(void 0);
|
|
18864
18883
|
function rl(t) {
|
|
18865
|
-
const e =
|
|
18884
|
+
const e = x.useContext(hT);
|
|
18866
18885
|
return t || e || "ltr";
|
|
18867
18886
|
}
|
|
18868
18887
|
function mT(t, [e, r]) {
|
|
18869
18888
|
return Math.min(r, Math.max(e, t));
|
|
18870
18889
|
}
|
|
18871
18890
|
function bT(t, e) {
|
|
18872
|
-
return
|
|
18891
|
+
return x.useReducer((r, n) => e[r][n] ?? r, t);
|
|
18873
18892
|
}
|
|
18874
|
-
var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh =
|
|
18893
|
+
var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = x.forwardRef(
|
|
18875
18894
|
(t, e) => {
|
|
18876
18895
|
const {
|
|
18877
18896
|
__scopeScrollArea: r,
|
|
@@ -18879,7 +18898,7 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
|
|
|
18879
18898
|
dir: o,
|
|
18880
18899
|
scrollHideDelay: i = 600,
|
|
18881
18900
|
...a
|
|
18882
|
-
} = t, [s, u] =
|
|
18901
|
+
} = t, [s, u] = x.useState(null), [l, c] = x.useState(null), [p, f] = x.useState(null), [d, b] = x.useState(null), [g, m] = x.useState(null), [y, v] = x.useState(0), [w, S] = x.useState(0), [N, O] = x.useState(!1), [k, j] = x.useState(!1), F = Ae(e, (E) => u(E)), $ = rl(o);
|
|
18883
18902
|
return /* @__PURE__ */ h(
|
|
18884
18903
|
gT,
|
|
18885
18904
|
{
|
|
@@ -18895,12 +18914,12 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
|
|
|
18895
18914
|
scrollbarX: d,
|
|
18896
18915
|
onScrollbarXChange: b,
|
|
18897
18916
|
scrollbarXEnabled: N,
|
|
18898
|
-
onScrollbarXEnabledChange:
|
|
18917
|
+
onScrollbarXEnabledChange: O,
|
|
18899
18918
|
scrollbarY: g,
|
|
18900
18919
|
onScrollbarYChange: m,
|
|
18901
18920
|
scrollbarYEnabled: k,
|
|
18902
18921
|
onScrollbarYEnabledChange: j,
|
|
18903
|
-
onCornerWidthChange:
|
|
18922
|
+
onCornerWidthChange: v,
|
|
18904
18923
|
onCornerHeightChange: S,
|
|
18905
18924
|
children: /* @__PURE__ */ h(
|
|
18906
18925
|
we.div,
|
|
@@ -18922,9 +18941,9 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
|
|
|
18922
18941
|
}
|
|
18923
18942
|
);
|
|
18924
18943
|
dh.displayName = nl;
|
|
18925
|
-
var fh = "ScrollAreaViewport", ph =
|
|
18944
|
+
var fh = "ScrollAreaViewport", ph = x.forwardRef(
|
|
18926
18945
|
(t, e) => {
|
|
18927
|
-
const { __scopeScrollArea: r, children: n, nonce: o, ...i } = t, a = Ye(fh, r), s =
|
|
18946
|
+
const { __scopeScrollArea: r, children: n, nonce: o, ...i } = t, a = Ye(fh, r), s = x.useRef(null), u = Ae(e, s, a.onViewportChange);
|
|
18928
18947
|
return /* @__PURE__ */ P(lr, { children: [
|
|
18929
18948
|
/* @__PURE__ */ h(
|
|
18930
18949
|
"style",
|
|
@@ -18964,18 +18983,18 @@ var fh = "ScrollAreaViewport", ph = v.forwardRef(
|
|
|
18964
18983
|
}
|
|
18965
18984
|
);
|
|
18966
18985
|
ph.displayName = fh;
|
|
18967
|
-
var
|
|
18986
|
+
var wt = "ScrollAreaScrollbar", ol = x.forwardRef(
|
|
18968
18987
|
(t, e) => {
|
|
18969
|
-
const { forceMount: r, ...n } = t, o = Ye(
|
|
18970
|
-
return
|
|
18988
|
+
const { forceMount: r, ...n } = t, o = Ye(wt, t.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = o, s = t.orientation === "horizontal";
|
|
18989
|
+
return x.useEffect(() => (s ? i(!0) : a(!0), () => {
|
|
18971
18990
|
s ? i(!1) : a(!1);
|
|
18972
18991
|
}), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ h(yT, { ...n, ref: e, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ h(vT, { ...n, ref: e, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ h(hh, { ...n, ref: e, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ h(il, { ...n, ref: e }) : null;
|
|
18973
18992
|
}
|
|
18974
18993
|
);
|
|
18975
|
-
ol.displayName =
|
|
18976
|
-
var yT =
|
|
18977
|
-
const { forceMount: r, ...n } = t, o = Ye(
|
|
18978
|
-
return
|
|
18994
|
+
ol.displayName = wt;
|
|
18995
|
+
var yT = x.forwardRef((t, e) => {
|
|
18996
|
+
const { forceMount: r, ...n } = t, o = Ye(wt, t.__scopeScrollArea), [i, a] = x.useState(!1);
|
|
18997
|
+
return x.useEffect(() => {
|
|
18979
18998
|
const s = o.scrollArea;
|
|
18980
18999
|
let u = 0;
|
|
18981
19000
|
if (s) {
|
|
@@ -18996,8 +19015,8 @@ var yT = v.forwardRef((t, e) => {
|
|
|
18996
19015
|
ref: e
|
|
18997
19016
|
}
|
|
18998
19017
|
) });
|
|
18999
|
-
}), vT =
|
|
19000
|
-
const { forceMount: r, ...n } = t, o = Ye(
|
|
19018
|
+
}), vT = x.forwardRef((t, e) => {
|
|
19019
|
+
const { forceMount: r, ...n } = t, o = Ye(wt, t.__scopeScrollArea), i = t.orientation === "horizontal", a = ea(() => u("SCROLL_END"), 100), [s, u] = bT("hidden", {
|
|
19001
19020
|
hidden: {
|
|
19002
19021
|
SCROLL: "scrolling"
|
|
19003
19022
|
},
|
|
@@ -19015,12 +19034,12 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19015
19034
|
POINTER_ENTER: "interacting"
|
|
19016
19035
|
}
|
|
19017
19036
|
});
|
|
19018
|
-
return
|
|
19037
|
+
return x.useEffect(() => {
|
|
19019
19038
|
if (s === "idle") {
|
|
19020
19039
|
const l = window.setTimeout(() => u("HIDE"), o.scrollHideDelay);
|
|
19021
19040
|
return () => window.clearTimeout(l);
|
|
19022
19041
|
}
|
|
19023
|
-
}, [s, o.scrollHideDelay, u]),
|
|
19042
|
+
}, [s, o.scrollHideDelay, u]), x.useEffect(() => {
|
|
19024
19043
|
const l = o.viewport, c = i ? "scrollLeft" : "scrollTop";
|
|
19025
19044
|
if (l) {
|
|
19026
19045
|
let p = l[c];
|
|
@@ -19040,8 +19059,8 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19040
19059
|
onPointerLeave: pe(t.onPointerLeave, () => u("POINTER_LEAVE"))
|
|
19041
19060
|
}
|
|
19042
19061
|
) });
|
|
19043
|
-
}), hh =
|
|
19044
|
-
const r = Ye(
|
|
19062
|
+
}), hh = x.forwardRef((t, e) => {
|
|
19063
|
+
const r = Ye(wt, t.__scopeScrollArea), { forceMount: n, ...o } = t, [i, a] = x.useState(!1), s = t.orientation === "horizontal", u = ea(() => {
|
|
19045
19064
|
if (r.viewport) {
|
|
19046
19065
|
const l = r.viewport.offsetWidth < r.viewport.scrollWidth, c = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
19047
19066
|
a(s ? l : c);
|
|
@@ -19055,8 +19074,8 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19055
19074
|
ref: e
|
|
19056
19075
|
}
|
|
19057
19076
|
) });
|
|
19058
|
-
}), il =
|
|
19059
|
-
const { orientation: r = "vertical", ...n } = t, o = Ye(
|
|
19077
|
+
}), il = x.forwardRef((t, e) => {
|
|
19078
|
+
const { orientation: r = "vertical", ...n } = t, o = Ye(wt, t.__scopeScrollArea), i = x.useRef(null), a = x.useRef(0), [s, u] = x.useState({
|
|
19060
19079
|
content: 0,
|
|
19061
19080
|
viewport: 0,
|
|
19062
19081
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -19109,9 +19128,9 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19109
19128
|
}
|
|
19110
19129
|
}
|
|
19111
19130
|
) : null;
|
|
19112
|
-
}), xT =
|
|
19113
|
-
const { sizes: r, onSizesChange: n, ...o } = t, i = Ye(
|
|
19114
|
-
return
|
|
19131
|
+
}), xT = x.forwardRef((t, e) => {
|
|
19132
|
+
const { sizes: r, onSizesChange: n, ...o } = t, i = Ye(wt, t.__scopeScrollArea), [a, s] = x.useState(), u = x.useRef(null), l = Ae(e, u, i.onScrollbarXChange);
|
|
19133
|
+
return x.useEffect(() => {
|
|
19115
19134
|
u.current && s(getComputedStyle(u.current));
|
|
19116
19135
|
}, [u]), /* @__PURE__ */ h(
|
|
19117
19136
|
bh,
|
|
@@ -19148,9 +19167,9 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19148
19167
|
}
|
|
19149
19168
|
}
|
|
19150
19169
|
);
|
|
19151
|
-
}), wT =
|
|
19152
|
-
const { sizes: r, onSizesChange: n, ...o } = t, i = Ye(
|
|
19153
|
-
return
|
|
19170
|
+
}), wT = x.forwardRef((t, e) => {
|
|
19171
|
+
const { sizes: r, onSizesChange: n, ...o } = t, i = Ye(wt, t.__scopeScrollArea), [a, s] = x.useState(), u = x.useRef(null), l = Ae(e, u, i.onScrollbarYChange);
|
|
19172
|
+
return x.useEffect(() => {
|
|
19154
19173
|
u.current && s(getComputedStyle(u.current));
|
|
19155
19174
|
}, [u]), /* @__PURE__ */ h(
|
|
19156
19175
|
bh,
|
|
@@ -19188,7 +19207,7 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19188
19207
|
}
|
|
19189
19208
|
}
|
|
19190
19209
|
);
|
|
19191
|
-
}), [ST, mh] = ch(
|
|
19210
|
+
}), [ST, mh] = ch(wt), bh = x.forwardRef((t, e) => {
|
|
19192
19211
|
const {
|
|
19193
19212
|
__scopeScrollArea: r,
|
|
19194
19213
|
sizes: n,
|
|
@@ -19201,20 +19220,20 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19201
19220
|
onWheelScroll: c,
|
|
19202
19221
|
onResize: p,
|
|
19203
19222
|
...f
|
|
19204
|
-
} = t, d = Ye(
|
|
19223
|
+
} = t, d = Ye(wt, r), [b, g] = x.useState(null), m = Ae(e, (F) => g(F)), y = x.useRef(null), v = x.useRef(""), w = d.viewport, S = n.content - n.viewport, N = We(c), O = We(u), k = ea(p, 10);
|
|
19205
19224
|
function j(F) {
|
|
19206
19225
|
if (y.current) {
|
|
19207
19226
|
const $ = F.clientX - y.current.left, E = F.clientY - y.current.top;
|
|
19208
19227
|
l({ x: $, y: E });
|
|
19209
19228
|
}
|
|
19210
19229
|
}
|
|
19211
|
-
return
|
|
19230
|
+
return x.useEffect(() => {
|
|
19212
19231
|
const F = ($) => {
|
|
19213
19232
|
const E = $.target;
|
|
19214
19233
|
(b == null ? void 0 : b.contains(E)) && N($, S);
|
|
19215
19234
|
};
|
|
19216
19235
|
return document.addEventListener("wheel", F, { passive: !1 }), () => document.removeEventListener("wheel", F, { passive: !1 });
|
|
19217
|
-
}, [w, b, S, N]),
|
|
19236
|
+
}, [w, b, S, N]), x.useEffect(O, [n, O]), Xr(b, k), Xr(d.content, k), /* @__PURE__ */ h(
|
|
19218
19237
|
ST,
|
|
19219
19238
|
{
|
|
19220
19239
|
scope: r,
|
|
@@ -19222,7 +19241,7 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19222
19241
|
hasThumb: o,
|
|
19223
19242
|
onThumbChange: We(i),
|
|
19224
19243
|
onThumbPointerUp: We(a),
|
|
19225
|
-
onThumbPositionChange:
|
|
19244
|
+
onThumbPositionChange: O,
|
|
19226
19245
|
onThumbPointerDown: We(s),
|
|
19227
19246
|
children: /* @__PURE__ */ h(
|
|
19228
19247
|
we.div,
|
|
@@ -19231,31 +19250,31 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19231
19250
|
ref: m,
|
|
19232
19251
|
style: { position: "absolute", ...f.style },
|
|
19233
19252
|
onPointerDown: pe(t.onPointerDown, (F) => {
|
|
19234
|
-
F.button === 0 && (F.target.setPointerCapture(F.pointerId), y.current = b.getBoundingClientRect(),
|
|
19253
|
+
F.button === 0 && (F.target.setPointerCapture(F.pointerId), y.current = b.getBoundingClientRect(), v.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", d.viewport && (d.viewport.style.scrollBehavior = "auto"), j(F));
|
|
19235
19254
|
}),
|
|
19236
19255
|
onPointerMove: pe(t.onPointerMove, j),
|
|
19237
19256
|
onPointerUp: pe(t.onPointerUp, (F) => {
|
|
19238
19257
|
const $ = F.target;
|
|
19239
|
-
$.hasPointerCapture(F.pointerId) && $.releasePointerCapture(F.pointerId), document.body.style.webkitUserSelect =
|
|
19258
|
+
$.hasPointerCapture(F.pointerId) && $.releasePointerCapture(F.pointerId), document.body.style.webkitUserSelect = v.current, d.viewport && (d.viewport.style.scrollBehavior = ""), y.current = null;
|
|
19240
19259
|
})
|
|
19241
19260
|
}
|
|
19242
19261
|
)
|
|
19243
19262
|
}
|
|
19244
19263
|
);
|
|
19245
|
-
}), fi = "ScrollAreaThumb", gh =
|
|
19264
|
+
}), fi = "ScrollAreaThumb", gh = x.forwardRef(
|
|
19246
19265
|
(t, e) => {
|
|
19247
19266
|
const { forceMount: r, ...n } = t, o = mh(fi, t.__scopeScrollArea);
|
|
19248
19267
|
return /* @__PURE__ */ h(wr, { present: r || o.hasThumb, children: /* @__PURE__ */ h(ET, { ref: e, ...n }) });
|
|
19249
19268
|
}
|
|
19250
|
-
), ET =
|
|
19269
|
+
), ET = x.forwardRef(
|
|
19251
19270
|
(t, e) => {
|
|
19252
19271
|
const { __scopeScrollArea: r, style: n, ...o } = t, i = Ye(fi, r), a = mh(fi, r), { onThumbPositionChange: s } = a, u = Ae(
|
|
19253
19272
|
e,
|
|
19254
19273
|
(p) => a.onThumbChange(p)
|
|
19255
|
-
), l =
|
|
19274
|
+
), l = x.useRef(void 0), c = ea(() => {
|
|
19256
19275
|
l.current && (l.current(), l.current = void 0);
|
|
19257
19276
|
}, 100);
|
|
19258
|
-
return
|
|
19277
|
+
return x.useEffect(() => {
|
|
19259
19278
|
const p = i.viewport;
|
|
19260
19279
|
if (p) {
|
|
19261
19280
|
const f = () => {
|
|
@@ -19287,15 +19306,15 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19287
19306
|
}
|
|
19288
19307
|
);
|
|
19289
19308
|
gh.displayName = fi;
|
|
19290
|
-
var al = "ScrollAreaCorner", yh =
|
|
19309
|
+
var al = "ScrollAreaCorner", yh = x.forwardRef(
|
|
19291
19310
|
(t, e) => {
|
|
19292
19311
|
const r = Ye(al, t.__scopeScrollArea), n = !!(r.scrollbarX && r.scrollbarY);
|
|
19293
19312
|
return r.type !== "scroll" && n ? /* @__PURE__ */ h(CT, { ...t, ref: e }) : null;
|
|
19294
19313
|
}
|
|
19295
19314
|
);
|
|
19296
19315
|
yh.displayName = al;
|
|
19297
|
-
var CT =
|
|
19298
|
-
const { __scopeScrollArea: r, ...n } = t, o = Ye(al, r), [i, a] =
|
|
19316
|
+
var CT = x.forwardRef((t, e) => {
|
|
19317
|
+
const { __scopeScrollArea: r, ...n } = t, o = Ye(al, r), [i, a] = x.useState(0), [s, u] = x.useState(0), l = !!(i && s);
|
|
19299
19318
|
return Xr(o.scrollbarX, () => {
|
|
19300
19319
|
var p;
|
|
19301
19320
|
const c = ((p = o.scrollbarX) == null ? void 0 : p.offsetHeight) || 0;
|
|
@@ -19359,8 +19378,8 @@ var NT = (t, e = () => {
|
|
|
19359
19378
|
}(), () => window.cancelAnimationFrame(n);
|
|
19360
19379
|
};
|
|
19361
19380
|
function ea(t, e) {
|
|
19362
|
-
const r = We(t), n =
|
|
19363
|
-
return
|
|
19381
|
+
const r = We(t), n = x.useRef(0);
|
|
19382
|
+
return x.useEffect(() => () => window.clearTimeout(n.current), []), x.useCallback(() => {
|
|
19364
19383
|
window.clearTimeout(n.current), n.current = window.setTimeout(r, e);
|
|
19365
19384
|
}, [r, e]);
|
|
19366
19385
|
}
|
|
@@ -19379,13 +19398,13 @@ function Xr(t, e) {
|
|
|
19379
19398
|
}, [t, r]);
|
|
19380
19399
|
}
|
|
19381
19400
|
var Sh = dh, AT = ph, OT = yh;
|
|
19382
|
-
const sl =
|
|
19401
|
+
const sl = x.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ P(Sh, { ref: n, className: Oe("relative overflow-hidden", t), ...r, children: [
|
|
19383
19402
|
/* @__PURE__ */ h(AT, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
19384
19403
|
/* @__PURE__ */ h(Eh, {}),
|
|
19385
19404
|
/* @__PURE__ */ h(OT, {})
|
|
19386
19405
|
] }));
|
|
19387
19406
|
sl.displayName = Sh.displayName;
|
|
19388
|
-
const Eh =
|
|
19407
|
+
const Eh = x.forwardRef(({ className: t, orientation: e = "vertical", ...r }, n) => /* @__PURE__ */ h(
|
|
19389
19408
|
ol,
|
|
19390
19409
|
{
|
|
19391
19410
|
ref: n,
|
|
@@ -19402,7 +19421,7 @@ const Eh = v.forwardRef(({ className: t, orientation: e = "vertical", ...r }, n)
|
|
|
19402
19421
|
));
|
|
19403
19422
|
Eh.displayName = ol.displayName;
|
|
19404
19423
|
const RT = () => {
|
|
19405
|
-
const { selected: t, actions: e } =
|
|
19424
|
+
const { selected: t, actions: e } = yt((r) => {
|
|
19406
19425
|
var i, a, s, u, l, c, p;
|
|
19407
19426
|
const n = r.events.selected ? Array.from(r.events.selected)[0] : null;
|
|
19408
19427
|
let o;
|
|
@@ -19457,7 +19476,7 @@ const RT = () => {
|
|
|
19457
19476
|
return ka;
|
|
19458
19477
|
}
|
|
19459
19478
|
}, Ch = ({ nodeId: t, depth: e = 0, onDragStart: r, onDragOver: n, onDrop: o, draggedId: i }) => {
|
|
19460
|
-
const { node: a, actions: s, selectedNodeId: u, childNodes: l, parentId: c } =
|
|
19479
|
+
const { node: a, actions: s, selectedNodeId: u, childNodes: l, parentId: c } = yt((C, D) => {
|
|
19461
19480
|
var M, B;
|
|
19462
19481
|
const L = C.nodes[t], T = ((M = L == null ? void 0 : L.data) == null ? void 0 : M.nodes) || [], A = C.events.selected ? Array.from(C.events.selected)[0] : null, _ = (B = L == null ? void 0 : L.data) == null ? void 0 : B.parent;
|
|
19463
19482
|
return {
|
|
@@ -19468,12 +19487,12 @@ const RT = () => {
|
|
|
19468
19487
|
};
|
|
19469
19488
|
}), [p, f] = me(!0), [d, b] = me(!1);
|
|
19470
19489
|
if (!a) return null;
|
|
19471
|
-
const g = a.data.displayName || a.data.name || "Unknown", m = l.length > 0, y = u === t,
|
|
19472
|
-
C.stopPropagation(),
|
|
19490
|
+
const g = a.data.displayName || a.data.name || "Unknown", m = l.length > 0, y = u === t, v = t === "ROOT", w = _T(g), S = i === t, N = a.data.isCanvas, O = (C) => {
|
|
19491
|
+
C.stopPropagation(), v || s.selectNode(t);
|
|
19473
19492
|
}, k = (C) => {
|
|
19474
19493
|
C.stopPropagation(), f(!p);
|
|
19475
19494
|
}, j = (C) => {
|
|
19476
|
-
if (
|
|
19495
|
+
if (v) {
|
|
19477
19496
|
C.preventDefault();
|
|
19478
19497
|
return;
|
|
19479
19498
|
}
|
|
@@ -19491,17 +19510,17 @@ const RT = () => {
|
|
|
19491
19510
|
{
|
|
19492
19511
|
className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${y ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${S ? "opacity-50" : ""} ${d ? "bg-primary/20 ring-1 ring-primary" : ""}`,
|
|
19493
19512
|
style: { paddingLeft: `${e * 12 + 4}px` },
|
|
19494
|
-
onClick:
|
|
19495
|
-
draggable: !
|
|
19513
|
+
onClick: O,
|
|
19514
|
+
draggable: !v,
|
|
19496
19515
|
onDragStart: j,
|
|
19497
19516
|
onDragOver: F,
|
|
19498
19517
|
onDragLeave: $,
|
|
19499
19518
|
onDrop: E,
|
|
19500
19519
|
children: [
|
|
19501
|
-
!
|
|
19520
|
+
!v && /* @__PURE__ */ h(Zm, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
|
|
19502
19521
|
m ? /* @__PURE__ */ h("button", { onClick: k, className: "p-0.5 hover:bg-secondary rounded", children: p ? /* @__PURE__ */ h(Fs, { className: "h-3 w-3" }) : /* @__PURE__ */ h(Hs, { className: "h-3 w-3" }) }) : /* @__PURE__ */ h("span", { className: "w-4" }),
|
|
19503
19522
|
/* @__PURE__ */ h(w, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
|
|
19504
|
-
/* @__PURE__ */ h("span", { className: `truncate ${
|
|
19523
|
+
/* @__PURE__ */ h("span", { className: `truncate ${v ? "font-medium" : ""}`, children: v ? "Root" : g })
|
|
19505
19524
|
]
|
|
19506
19525
|
}
|
|
19507
19526
|
),
|
|
@@ -19519,7 +19538,7 @@ const RT = () => {
|
|
|
19519
19538
|
)) })
|
|
19520
19539
|
] });
|
|
19521
19540
|
}, PT = () => {
|
|
19522
|
-
const [t, e] = me(null), [r, n] = me(null), { nodeIds: o, actions: i } =
|
|
19541
|
+
const [t, e] = me(null), [r, n] = me(null), { nodeIds: o, actions: i } = yt((l) => ({
|
|
19523
19542
|
nodeIds: Object.keys(l.nodes)
|
|
19524
19543
|
})), a = (l, c) => {
|
|
19525
19544
|
e(l), n(c);
|
|
@@ -19550,11 +19569,11 @@ const RT = () => {
|
|
|
19550
19569
|
};
|
|
19551
19570
|
// @__NO_SIDE_EFFECTS__
|
|
19552
19571
|
function Td(t) {
|
|
19553
|
-
const e = /* @__PURE__ */ kT(t), r =
|
|
19554
|
-
const { children: i, ...a } = n, s =
|
|
19572
|
+
const e = /* @__PURE__ */ kT(t), r = x.forwardRef((n, o) => {
|
|
19573
|
+
const { children: i, ...a } = n, s = x.Children.toArray(i), u = s.find(DT);
|
|
19555
19574
|
if (u) {
|
|
19556
|
-
const l = u.props.children, c = s.map((p) => p === u ?
|
|
19557
|
-
return /* @__PURE__ */ h(e, { ...a, ref: o, children:
|
|
19575
|
+
const l = u.props.children, c = s.map((p) => p === u ? x.Children.count(l) > 1 ? x.Children.only(null) : x.isValidElement(l) ? l.props.children : null : p);
|
|
19576
|
+
return /* @__PURE__ */ h(e, { ...a, ref: o, children: x.isValidElement(l) ? x.cloneElement(l, void 0, c) : null });
|
|
19558
19577
|
}
|
|
19559
19578
|
return /* @__PURE__ */ h(e, { ...a, ref: o, children: i });
|
|
19560
19579
|
});
|
|
@@ -19562,19 +19581,19 @@ function Td(t) {
|
|
|
19562
19581
|
}
|
|
19563
19582
|
// @__NO_SIDE_EFFECTS__
|
|
19564
19583
|
function kT(t) {
|
|
19565
|
-
const e =
|
|
19584
|
+
const e = x.forwardRef((r, n) => {
|
|
19566
19585
|
const { children: o, ...i } = r;
|
|
19567
|
-
if (
|
|
19586
|
+
if (x.isValidElement(o)) {
|
|
19568
19587
|
const a = MT(o), s = LT(i, o.props);
|
|
19569
|
-
return o.type !==
|
|
19588
|
+
return o.type !== x.Fragment && (s.ref = n ? bi(n, a) : a), x.cloneElement(o, s);
|
|
19570
19589
|
}
|
|
19571
|
-
return
|
|
19590
|
+
return x.Children.count(o) > 1 ? x.Children.only(null) : null;
|
|
19572
19591
|
});
|
|
19573
19592
|
return e.displayName = `${t}.SlotClone`, e;
|
|
19574
19593
|
}
|
|
19575
19594
|
var IT = Symbol("radix.slottable");
|
|
19576
19595
|
function DT(t) {
|
|
19577
|
-
return
|
|
19596
|
+
return x.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === IT;
|
|
19578
19597
|
}
|
|
19579
19598
|
function LT(t, e) {
|
|
19580
19599
|
const r = { ...e };
|
|
@@ -19597,32 +19616,32 @@ function jT(t) {
|
|
|
19597
19616
|
e,
|
|
19598
19617
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
19599
19618
|
), a = (g) => {
|
|
19600
|
-
const { scope: m, children: y } = g,
|
|
19601
|
-
return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef:
|
|
19619
|
+
const { scope: m, children: y } = g, v = I.useRef(null), w = I.useRef(/* @__PURE__ */ new Map()).current;
|
|
19620
|
+
return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef: v, children: y });
|
|
19602
19621
|
};
|
|
19603
19622
|
a.displayName = e;
|
|
19604
19623
|
const s = t + "CollectionSlot", u = /* @__PURE__ */ Td(s), l = I.forwardRef(
|
|
19605
19624
|
(g, m) => {
|
|
19606
|
-
const { scope: y, children:
|
|
19607
|
-
return /* @__PURE__ */ h(u, { ref: S, children:
|
|
19625
|
+
const { scope: y, children: v } = g, w = i(s, y), S = Ae(m, w.collectionRef);
|
|
19626
|
+
return /* @__PURE__ */ h(u, { ref: S, children: v });
|
|
19608
19627
|
}
|
|
19609
19628
|
);
|
|
19610
19629
|
l.displayName = s;
|
|
19611
19630
|
const c = t + "CollectionItemSlot", p = "data-radix-collection-item", f = /* @__PURE__ */ Td(c), d = I.forwardRef(
|
|
19612
19631
|
(g, m) => {
|
|
19613
|
-
const { scope: y, children:
|
|
19614
|
-
return I.useEffect(() => (
|
|
19632
|
+
const { scope: y, children: v, ...w } = g, S = I.useRef(null), N = Ae(m, S), O = i(c, y);
|
|
19633
|
+
return I.useEffect(() => (O.itemMap.set(S, { ref: S, ...w }), () => void O.itemMap.delete(S))), /* @__PURE__ */ h(f, { [p]: "", ref: N, children: v });
|
|
19615
19634
|
}
|
|
19616
19635
|
);
|
|
19617
19636
|
d.displayName = c;
|
|
19618
19637
|
function b(g) {
|
|
19619
19638
|
const m = i(t + "CollectionConsumer", g);
|
|
19620
19639
|
return I.useCallback(() => {
|
|
19621
|
-
const
|
|
19622
|
-
if (!
|
|
19623
|
-
const w = Array.from(
|
|
19640
|
+
const v = m.collectionRef.current;
|
|
19641
|
+
if (!v) return [];
|
|
19642
|
+
const w = Array.from(v.querySelectorAll(`[${p}]`));
|
|
19624
19643
|
return Array.from(m.itemMap.values()).sort(
|
|
19625
|
-
(
|
|
19644
|
+
(O, k) => w.indexOf(O.ref.current) - w.indexOf(k.ref.current)
|
|
19626
19645
|
);
|
|
19627
19646
|
}, [m.collectionRef, m.itemMap]);
|
|
19628
19647
|
}
|
|
@@ -19635,11 +19654,11 @@ function jT(t) {
|
|
|
19635
19654
|
var Aa = "rovingFocusGroup.onEntryFocus", $T = { bubbles: !1, cancelable: !0 }, io = "RovingFocusGroup", [_s, Th, BT] = jT(io), [FT, Nh] = xr(
|
|
19636
19655
|
io,
|
|
19637
19656
|
[BT]
|
|
19638
|
-
), [HT, qT] = FT(io), Ah =
|
|
19657
|
+
), [HT, qT] = FT(io), Ah = x.forwardRef(
|
|
19639
19658
|
(t, e) => /* @__PURE__ */ h(_s.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(_s.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(zT, { ...t, ref: e }) }) })
|
|
19640
19659
|
);
|
|
19641
19660
|
Ah.displayName = io;
|
|
19642
|
-
var zT =
|
|
19661
|
+
var zT = x.forwardRef((t, e) => {
|
|
19643
19662
|
const {
|
|
19644
19663
|
__scopeRovingFocusGroup: r,
|
|
19645
19664
|
orientation: n,
|
|
@@ -19651,13 +19670,13 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19651
19670
|
onEntryFocus: l,
|
|
19652
19671
|
preventScrollOnEntryFocus: c = !1,
|
|
19653
19672
|
...p
|
|
19654
|
-
} = t, f =
|
|
19673
|
+
} = t, f = x.useRef(null), d = Ae(e, f), b = rl(i), [g, m] = sn({
|
|
19655
19674
|
prop: a,
|
|
19656
19675
|
defaultProp: s ?? null,
|
|
19657
19676
|
onChange: u,
|
|
19658
19677
|
caller: io
|
|
19659
|
-
}), [y,
|
|
19660
|
-
return
|
|
19678
|
+
}), [y, v] = x.useState(!1), w = We(l), S = Th(r), N = x.useRef(!1), [O, k] = x.useState(0);
|
|
19679
|
+
return x.useEffect(() => {
|
|
19661
19680
|
const j = f.current;
|
|
19662
19681
|
if (j)
|
|
19663
19682
|
return j.addEventListener(Aa, w), () => j.removeEventListener(Aa, w);
|
|
@@ -19669,23 +19688,23 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19669
19688
|
dir: b,
|
|
19670
19689
|
loop: o,
|
|
19671
19690
|
currentTabStopId: g,
|
|
19672
|
-
onItemFocus:
|
|
19691
|
+
onItemFocus: x.useCallback(
|
|
19673
19692
|
(j) => m(j),
|
|
19674
19693
|
[m]
|
|
19675
19694
|
),
|
|
19676
|
-
onItemShiftTab:
|
|
19677
|
-
onFocusableItemAdd:
|
|
19695
|
+
onItemShiftTab: x.useCallback(() => v(!0), []),
|
|
19696
|
+
onFocusableItemAdd: x.useCallback(
|
|
19678
19697
|
() => k((j) => j + 1),
|
|
19679
19698
|
[]
|
|
19680
19699
|
),
|
|
19681
|
-
onFocusableItemRemove:
|
|
19700
|
+
onFocusableItemRemove: x.useCallback(
|
|
19682
19701
|
() => k((j) => j - 1),
|
|
19683
19702
|
[]
|
|
19684
19703
|
),
|
|
19685
19704
|
children: /* @__PURE__ */ h(
|
|
19686
19705
|
we.div,
|
|
19687
19706
|
{
|
|
19688
|
-
tabIndex: y ||
|
|
19707
|
+
tabIndex: y || O === 0 ? -1 : 0,
|
|
19689
19708
|
"data-orientation": n,
|
|
19690
19709
|
...p,
|
|
19691
19710
|
ref: d,
|
|
@@ -19706,12 +19725,12 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19706
19725
|
}
|
|
19707
19726
|
N.current = !1;
|
|
19708
19727
|
}),
|
|
19709
|
-
onBlur: pe(t.onBlur, () =>
|
|
19728
|
+
onBlur: pe(t.onBlur, () => v(!1))
|
|
19710
19729
|
}
|
|
19711
19730
|
)
|
|
19712
19731
|
}
|
|
19713
19732
|
);
|
|
19714
|
-
}), Oh = "RovingFocusGroupItem", Rh =
|
|
19733
|
+
}), Oh = "RovingFocusGroupItem", Rh = x.forwardRef(
|
|
19715
19734
|
(t, e) => {
|
|
19716
19735
|
const {
|
|
19717
19736
|
__scopeRovingFocusGroup: r,
|
|
@@ -19721,7 +19740,7 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19721
19740
|
children: a,
|
|
19722
19741
|
...s
|
|
19723
19742
|
} = t, u = Bf(), l = i || u, c = qT(Oh, r), p = c.currentTabStopId === l, f = Th(r), { onFocusableItemAdd: d, onFocusableItemRemove: b, currentTabStopId: g } = c;
|
|
19724
|
-
return
|
|
19743
|
+
return x.useEffect(() => {
|
|
19725
19744
|
if (n)
|
|
19726
19745
|
return d(), () => b();
|
|
19727
19746
|
}, [n, d, b]), /* @__PURE__ */ h(
|
|
@@ -19796,7 +19815,7 @@ function _h(t, e = !1) {
|
|
|
19796
19815
|
function GT(t, e) {
|
|
19797
19816
|
return t.map((r, n) => t[(e + n) % t.length]);
|
|
19798
19817
|
}
|
|
19799
|
-
var YT = Ah, XT = Rh, Ph = "Toggle", ul =
|
|
19818
|
+
var YT = Ah, XT = Rh, Ph = "Toggle", ul = x.forwardRef((t, e) => {
|
|
19800
19819
|
const { pressed: r, defaultPressed: n, onPressedChange: o, ...i } = t, [a, s] = sn({
|
|
19801
19820
|
prop: r,
|
|
19802
19821
|
onChange: o,
|
|
@@ -19961,15 +19980,15 @@ const Hh = Xd(
|
|
|
19961
19980
|
size: "default"
|
|
19962
19981
|
}
|
|
19963
19982
|
}
|
|
19964
|
-
), eN =
|
|
19983
|
+
), eN = x.forwardRef(({ className: t, variant: e, size: r, ...n }, o) => /* @__PURE__ */ h(kh, { ref: o, className: Oe(Hh({ variant: e, size: r, className: t })), ...n }));
|
|
19965
19984
|
eN.displayName = kh.displayName;
|
|
19966
|
-
const qh =
|
|
19985
|
+
const qh = x.createContext({
|
|
19967
19986
|
size: "default",
|
|
19968
19987
|
variant: "default"
|
|
19969
|
-
}), zh =
|
|
19988
|
+
}), zh = x.forwardRef(({ className: t, variant: e, size: r, children: n, ...o }, i) => /* @__PURE__ */ h(Bh, { ref: i, className: Oe("flex items-center justify-center gap-1", t), ...o, children: /* @__PURE__ */ h(qh.Provider, { value: { variant: e, size: r }, children: n }) }));
|
|
19970
19989
|
zh.displayName = Bh.displayName;
|
|
19971
|
-
const Uh =
|
|
19972
|
-
const a =
|
|
19990
|
+
const Uh = x.forwardRef(({ className: t, children: e, variant: r, size: n, ...o }, i) => {
|
|
19991
|
+
const a = x.useContext(qh);
|
|
19973
19992
|
return /* @__PURE__ */ h(
|
|
19974
19993
|
Fh,
|
|
19975
19994
|
{
|
|
@@ -20078,10 +20097,10 @@ function TN(t) {
|
|
|
20078
20097
|
}
|
|
20079
20098
|
var NN = (t) => {
|
|
20080
20099
|
var e, r, n, o, i, a, s, u, l, c, p;
|
|
20081
|
-
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: y, heights:
|
|
20100
|
+
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: y, heights: v, index: w, toasts: S, expanded: N, removeToast: O, defaultRichColors: k, closeButton: j, style: F, cancelButtonStyle: $, actionButtonStyle: E, className: C = "", descriptionClassName: D = "", duration: L, position: T, gap: A, loadingIcon: _, expandByDefault: M, classNames: B, icons: U, closeButtonAriaLabel: ne = "Close toast", pauseWhenPageIsHidden: Q } = t, [q, H] = I.useState(null), [be, Z] = I.useState(null), [z, Ie] = I.useState(!1), [Te, Se] = I.useState(!1), [at, St] = I.useState(!1), [st, ao] = I.useState(!1), [ta, so] = I.useState(!1), [ra, dn] = I.useState(0), [Cr, cl] = I.useState(0), fn = I.useRef(d.duration || L || Ad), dl = I.useRef(null), nr = I.useRef(null), Gh = w === 0, Yh = w + 1 <= y, ze = d.type, Tr = d.dismissible !== !1, Xh = d.className || "", Kh = d.descriptionClassName || "", uo = I.useMemo(() => v.findIndex((G) => G.toastId === d.id) || 0, [v, d.id]), Jh = I.useMemo(() => {
|
|
20082
20101
|
var G;
|
|
20083
20102
|
return (G = d.closeButton) != null ? G : j;
|
|
20084
|
-
}, [d.closeButton, j]), fl = I.useMemo(() => d.duration || L || Ad, [d.duration, L]), na = I.useRef(0), Nr = I.useRef(0), pl = I.useRef(0), Ar = I.useRef(null), [Zh, Qh] = T.split("-"), hl = I.useMemo(() =>
|
|
20103
|
+
}, [d.closeButton, j]), fl = I.useMemo(() => d.duration || L || Ad, [d.duration, L]), na = I.useRef(0), Nr = I.useRef(0), pl = I.useRef(0), Ar = I.useRef(null), [Zh, Qh] = T.split("-"), hl = I.useMemo(() => v.reduce((G, ae, he) => he >= uo ? G : G + ae.height, 0), [v, uo]), ml = lN(), em = d.invert || f, oa = ze === "loading";
|
|
20085
20104
|
Nr.current = I.useMemo(() => uo * A + hl, [uo, hl]), I.useEffect(() => {
|
|
20086
20105
|
fn.current = fl;
|
|
20087
20106
|
}, [fl]), I.useEffect(() => {
|
|
@@ -20101,9 +20120,9 @@ var NN = (t) => {
|
|
|
20101
20120
|
}, [z, d.title, d.description, m, d.id]);
|
|
20102
20121
|
let $t = I.useCallback(() => {
|
|
20103
20122
|
Se(!0), dn(Nr.current), m((G) => G.filter((ae) => ae.toastId !== d.id)), setTimeout(() => {
|
|
20104
|
-
|
|
20123
|
+
O(d);
|
|
20105
20124
|
}, CN);
|
|
20106
|
-
}, [d,
|
|
20125
|
+
}, [d, O, m, Nr]);
|
|
20107
20126
|
I.useEffect(() => {
|
|
20108
20127
|
if (d.promise && ze === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
|
|
20109
20128
|
let G;
|
|
@@ -20125,9 +20144,9 @@ var NN = (t) => {
|
|
|
20125
20144
|
return U != null && U.loading ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (G = d == null ? void 0 : d.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ze === "loading" }, U.loading) : _ ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (ae = d == null ? void 0 : d.classNames) == null ? void 0 : ae.loader, "sonner-loader"), "data-visible": ze === "loading" }, _) : I.createElement(nN, { className: Ze(B == null ? void 0 : B.loader, (he = d == null ? void 0 : d.classNames) == null ? void 0 : he.loader), visible: ze === "loading" });
|
|
20126
20145
|
}
|
|
20127
20146
|
return I.createElement("li", { tabIndex: 0, ref: nr, className: Ze(C, Xh, B == null ? void 0 : B.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[ze], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[ze]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : k, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": z, "data-promise": !!d.promise, "data-swiped": ta, "data-removed": Te, "data-visible": Yh, "data-y-position": Zh, "data-x-position": Qh, "data-index": w, "data-front": Gh, "data-swiping": at, "data-dismissible": Tr, "data-type": ze, "data-invert": em, "data-swipe-out": st, "data-swipe-direction": be, "data-expanded": !!(N || M && z), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${Te ? ra : Nr.current}px`, "--initial-height": M ? "auto" : `${Cr}px`, ...F, ...d.style }, onDragEnd: () => {
|
|
20128
|
-
|
|
20147
|
+
St(!1), H(null), Ar.current = null;
|
|
20129
20148
|
}, onPointerDown: (G) => {
|
|
20130
|
-
oa || !Tr || (dl.current = /* @__PURE__ */ new Date(), dn(Nr.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (
|
|
20149
|
+
oa || !Tr || (dl.current = /* @__PURE__ */ new Date(), dn(Nr.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (St(!0), Ar.current = { x: G.clientX, y: G.clientY }));
|
|
20131
20150
|
}, onPointerUp: () => {
|
|
20132
20151
|
var G, ae, he, Xe;
|
|
20133
20152
|
if (st || !Tr) return;
|
|
@@ -20137,7 +20156,7 @@ var NN = (t) => {
|
|
|
20137
20156
|
dn(Nr.current), (Xe = d.onDismiss) == null || Xe.call(d, d), Z(q === "x" ? Ke > 0 ? "right" : "left" : Bt > 0 ? "down" : "up"), $t(), ao(!0), so(!1);
|
|
20138
20157
|
return;
|
|
20139
20158
|
}
|
|
20140
|
-
|
|
20159
|
+
St(!1), H(null);
|
|
20141
20160
|
}, onPointerMove: (G) => {
|
|
20142
20161
|
var ae, he, Xe, Ke;
|
|
20143
20162
|
if (!Ar.current || !Tr || ((ae = window.getSelection()) == null ? void 0 : ae.toString().length) > 0) return;
|
|
@@ -20177,7 +20196,7 @@ function AN(t, e) {
|
|
|
20177
20196
|
}), r;
|
|
20178
20197
|
}
|
|
20179
20198
|
Ds(function(t, e) {
|
|
20180
|
-
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = yN, toastOptions: g, dir: m = Od(), gap: y = SN, loadingIcon:
|
|
20199
|
+
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = yN, toastOptions: g, dir: m = Od(), gap: y = SN, loadingIcon: v, icons: w, containerAriaLabel: S = "Notifications", pauseWhenPageIsHidden: N } = t, [O, k] = I.useState([]), j = I.useMemo(() => Array.from(new Set([n].concat(O.filter((Q) => Q.position).map((Q) => Q.position)))), [O, n]), [F, $] = I.useState([]), [E, C] = I.useState(!1), [D, L] = I.useState(!1), [T, A] = I.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _ = I.useRef(null), M = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = I.useRef(null), U = I.useRef(!1), ne = I.useCallback((Q) => {
|
|
20181
20200
|
k((q) => {
|
|
20182
20201
|
var H;
|
|
20183
20202
|
return (H = q.find((be) => be.id === Q.id)) != null && H.delete || De.dismiss(Q.id), q.filter(({ id: be }) => be !== Q.id);
|
|
@@ -20217,8 +20236,8 @@ Ds(function(t, e) {
|
|
|
20217
20236
|
});
|
|
20218
20237
|
}
|
|
20219
20238
|
}, [c]), I.useEffect(() => {
|
|
20220
|
-
|
|
20221
|
-
}, [
|
|
20239
|
+
O.length <= 1 && C(!1);
|
|
20240
|
+
}, [O]), I.useEffect(() => {
|
|
20222
20241
|
let Q = (q) => {
|
|
20223
20242
|
var H, be;
|
|
20224
20243
|
o.every((Z) => q[Z] || q.code === Z) && (C(!0), (H = _.current) == null || H.focus()), q.code === "Escape" && (document.activeElement === _.current || (be = _.current) != null && be.contains(document.activeElement)) && C(!1);
|
|
@@ -20231,7 +20250,7 @@ Ds(function(t, e) {
|
|
|
20231
20250
|
}, [_.current]), I.createElement("section", { ref: e, "aria-label": `${S} ${M}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, j.map((Q, q) => {
|
|
20232
20251
|
var H;
|
|
20233
20252
|
let [be, Z] = Q.split("-");
|
|
20234
|
-
return
|
|
20253
|
+
return O.length ? I.createElement("ol", { key: Q, dir: m === "auto" ? Od() : m, tabIndex: -1, ref: _, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": be, "data-lifted": E && O.length > 1 && !i, "data-x-position": Z, style: { "--front-toast-height": `${((H = F[0]) == null ? void 0 : H.height) || 0}px`, "--width": `${wN}px`, "--gap": `${y}px`, ...d, ...AN(u, l) }, onBlur: (z) => {
|
|
20235
20254
|
U.current && !z.currentTarget.contains(z.relatedTarget) && (U.current = !1, B.current && (B.current.focus({ preventScroll: !0 }), B.current = null));
|
|
20236
20255
|
}, onFocus: (z) => {
|
|
20237
20256
|
z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || U.current || (U.current = !0, B.current = z.relatedTarget);
|
|
@@ -20239,9 +20258,9 @@ Ds(function(t, e) {
|
|
|
20239
20258
|
D || C(!1);
|
|
20240
20259
|
}, onDragEnd: () => C(!1), onPointerDown: (z) => {
|
|
20241
20260
|
z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || L(!0);
|
|
20242
|
-
}, onPointerUp: () => L(!1) },
|
|
20261
|
+
}, onPointerUp: () => L(!1) }, O.filter((z) => !z.position && q === 0 || z.position === Q).map((z, Ie) => {
|
|
20243
20262
|
var Te, Se;
|
|
20244
|
-
return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts:
|
|
20263
|
+
return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts: O.filter((at) => at.position == z.position), heights: F.filter((at) => at.position == z.position), setHeights: $, expandByDefault: i, gap: y, loadingIcon: v, expanded: E, pauseWhenPageIsHidden: N, swipeDirections: t.swipeDirections });
|
|
20245
20264
|
})) : null;
|
|
20246
20265
|
}));
|
|
20247
20266
|
});
|
|
@@ -20259,7 +20278,7 @@ const ks = {
|
|
|
20259
20278
|
setEditPopup: i,
|
|
20260
20279
|
editPopup: a
|
|
20261
20280
|
}) => {
|
|
20262
|
-
const { actions: s, query: u, canUndo: l, canRedo: c } =
|
|
20281
|
+
const { actions: s, query: u, canUndo: l, canRedo: c } = yt((f, d) => ({
|
|
20263
20282
|
canUndo: d.history.canUndo(),
|
|
20264
20283
|
canRedo: d.history.canRedo()
|
|
20265
20284
|
})), p = () => {
|
|
@@ -20291,7 +20310,7 @@ const ks = {
|
|
|
20291
20310
|
/* @__PURE__ */ h("div", { className: "h-6 w-px bg-border" }),
|
|
20292
20311
|
/* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
|
|
20293
20312
|
/* @__PURE__ */ P(
|
|
20294
|
-
|
|
20313
|
+
Rt,
|
|
20295
20314
|
{
|
|
20296
20315
|
variant: "outline",
|
|
20297
20316
|
size: "sm",
|
|
@@ -20304,7 +20323,7 @@ const ks = {
|
|
|
20304
20323
|
}
|
|
20305
20324
|
),
|
|
20306
20325
|
/* @__PURE__ */ h(
|
|
20307
|
-
|
|
20326
|
+
Rt,
|
|
20308
20327
|
{
|
|
20309
20328
|
variant: "outline",
|
|
20310
20329
|
size: "sm",
|
|
@@ -20314,7 +20333,7 @@ const ks = {
|
|
|
20314
20333
|
}
|
|
20315
20334
|
),
|
|
20316
20335
|
/* @__PURE__ */ h(
|
|
20317
|
-
|
|
20336
|
+
Rt,
|
|
20318
20337
|
{
|
|
20319
20338
|
variant: "outline",
|
|
20320
20339
|
size: "sm",
|
|
@@ -20323,11 +20342,11 @@ const ks = {
|
|
|
20323
20342
|
children: /* @__PURE__ */ h(rb, { className: "h-4 w-4" })
|
|
20324
20343
|
}
|
|
20325
20344
|
),
|
|
20326
|
-
/* @__PURE__ */ P(
|
|
20345
|
+
/* @__PURE__ */ P(Rt, { size: "sm", onClick: () => e(!0), children: [
|
|
20327
20346
|
"Preview Page ",
|
|
20328
20347
|
/* @__PURE__ */ h(Jm, { className: "ml-2 h-4 w-4" })
|
|
20329
20348
|
] }),
|
|
20330
|
-
/* @__PURE__ */ P(
|
|
20349
|
+
/* @__PURE__ */ P(Rt, { size: "sm", onClick: p, children: [
|
|
20331
20350
|
/* @__PURE__ */ h(nb, { className: "h-4 w-4 mr-2" }),
|
|
20332
20351
|
"Save"
|
|
20333
20352
|
] })
|
|
@@ -20351,7 +20370,7 @@ const ks = {
|
|
|
20351
20370
|
ref: (i) => {
|
|
20352
20371
|
i && r && n && (r == null || r(n(i)));
|
|
20353
20372
|
},
|
|
20354
|
-
className:
|
|
20373
|
+
className: ht("relative min-h-[100vh]", e || ""),
|
|
20355
20374
|
children: t
|
|
20356
20375
|
}
|
|
20357
20376
|
);
|
|
@@ -20365,8 +20384,8 @@ Vh.craft = {
|
|
|
20365
20384
|
}
|
|
20366
20385
|
};
|
|
20367
20386
|
const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
20368
|
-
const { actions: r } =
|
|
20369
|
-
return
|
|
20387
|
+
const { actions: r } = yt();
|
|
20388
|
+
return _e(() => {
|
|
20370
20389
|
t ? r.deserialize(t) : e ? r.deserialize(e) : r.deserialize({
|
|
20371
20390
|
ROOT: {
|
|
20372
20391
|
type: { resolvedName: "Body" },
|
|
@@ -20377,8 +20396,8 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20377
20396
|
});
|
|
20378
20397
|
}, []), /* @__PURE__ */ h(lu, {});
|
|
20379
20398
|
}, RN = ({ htmlJson: t, enabled: e, popupEditorState: r }) => {
|
|
20380
|
-
const { actions: n } =
|
|
20381
|
-
return
|
|
20399
|
+
const { actions: n } = yt();
|
|
20400
|
+
return _e(() => {
|
|
20382
20401
|
if (t)
|
|
20383
20402
|
n.deserialize(t);
|
|
20384
20403
|
else if (r)
|
|
@@ -20471,23 +20490,23 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20471
20490
|
const [m, y] = me(
|
|
20472
20491
|
((S = ks[p]) == null ? void 0 : S.width) || "100%"
|
|
20473
20492
|
);
|
|
20474
|
-
|
|
20475
|
-
var
|
|
20476
|
-
const N = ((
|
|
20493
|
+
_e(() => {
|
|
20494
|
+
var O;
|
|
20495
|
+
const N = ((O = ks[p]) == null ? void 0 : O.width) || "100%";
|
|
20477
20496
|
y(N);
|
|
20478
|
-
}, [p]),
|
|
20497
|
+
}, [p]), _e(() => {
|
|
20479
20498
|
if (!l && window.self === window.top) {
|
|
20480
20499
|
const N = () => {
|
|
20481
|
-
const
|
|
20482
|
-
|
|
20500
|
+
const O = window.innerWidth;
|
|
20501
|
+
O < 640 ? f("mobile") : O < 1024 ? f("tablet") : O < 1280 ? f("small") : f("desktop");
|
|
20483
20502
|
};
|
|
20484
20503
|
return window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
|
|
20485
20504
|
}
|
|
20486
|
-
}, [l]),
|
|
20505
|
+
}, [l]), _e(() => {
|
|
20487
20506
|
if (window.parent && window.self !== window.top) {
|
|
20488
|
-
const N = (
|
|
20489
|
-
if (
|
|
20490
|
-
const k =
|
|
20507
|
+
const N = (O) => {
|
|
20508
|
+
if (O.data.type === "PARENT_WIDTH") {
|
|
20509
|
+
const k = O.data.width;
|
|
20491
20510
|
k < 640 ? f("mobile") : k < 1024 ? f("tablet") : k < 1280 ? f("small") : f("desktop");
|
|
20492
20511
|
}
|
|
20493
20512
|
};
|
|
@@ -20496,21 +20515,21 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20496
20515
|
};
|
|
20497
20516
|
}
|
|
20498
20517
|
}, []);
|
|
20499
|
-
const
|
|
20518
|
+
const v = (N) => {
|
|
20500
20519
|
if (u)
|
|
20501
20520
|
try {
|
|
20502
|
-
const
|
|
20503
|
-
u(
|
|
20504
|
-
} catch (
|
|
20505
|
-
console.log(
|
|
20521
|
+
const O = N.serialize();
|
|
20522
|
+
u(O);
|
|
20523
|
+
} catch (O) {
|
|
20524
|
+
console.log(O);
|
|
20506
20525
|
}
|
|
20507
20526
|
}, w = (N) => {
|
|
20508
20527
|
if (n)
|
|
20509
20528
|
try {
|
|
20510
|
-
const
|
|
20511
|
-
n(
|
|
20512
|
-
} catch (
|
|
20513
|
-
console.log(
|
|
20529
|
+
const O = N.serialize();
|
|
20530
|
+
n(O);
|
|
20531
|
+
} catch (O) {
|
|
20532
|
+
console.log(O);
|
|
20514
20533
|
}
|
|
20515
20534
|
};
|
|
20516
20535
|
return l ? /* @__PURE__ */ h(
|
|
@@ -20519,7 +20538,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20519
20538
|
resolver: Is,
|
|
20520
20539
|
enabled: l,
|
|
20521
20540
|
onNodesChange: (N) => {
|
|
20522
|
-
g.current ? w(N) :
|
|
20541
|
+
g.current ? w(N) : v(N);
|
|
20523
20542
|
},
|
|
20524
20543
|
children: /* @__PURE__ */ h(es, { value: p, children: /* @__PURE__ */ h($o, { value: c, children: /* @__PURE__ */ P("div", { className: "flex flex-col h-full", children: [
|
|
20525
20544
|
/* @__PURE__ */ P("div", { className: "flex items-center justify-between pb-4 border-b border-border", children: [
|
|
@@ -20577,8 +20596,8 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20577
20596
|
small: { width: 1024, label: "Small", icon: zs },
|
|
20578
20597
|
desktop: { width: 1440, label: "Desktop", icon: Ws }
|
|
20579
20598
|
}, PN = ({ editorState: t, deviceSize: e }) => /* @__PURE__ */ h(Qa, { resolver: Is, enabled: !1, children: /* @__PURE__ */ h(es, { value: e, children: /* @__PURE__ */ h(kN, { editorState: t }) }) }), kN = ({ editorState: t }) => {
|
|
20580
|
-
const { actions: e } =
|
|
20581
|
-
return
|
|
20599
|
+
const { actions: e } = yt();
|
|
20600
|
+
return _e(() => {
|
|
20582
20601
|
if (t && (e != null && e.deserialize))
|
|
20583
20602
|
try {
|
|
20584
20603
|
e.deserialize(t);
|
|
@@ -20595,7 +20614,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20595
20614
|
}) => {
|
|
20596
20615
|
var u, l;
|
|
20597
20616
|
const [i, a] = me("desktop");
|
|
20598
|
-
if (
|
|
20617
|
+
if (_e(() => {
|
|
20599
20618
|
const c = (p) => {
|
|
20600
20619
|
p.key === "Escape" && e();
|
|
20601
20620
|
};
|
|
@@ -20614,7 +20633,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20614
20633
|
] })
|
|
20615
20634
|
] }),
|
|
20616
20635
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1 bg-muted rounded-lg p-1", children: Object.entries(Oa).map(([c, { label: p, icon: f }]) => /* @__PURE__ */ P(
|
|
20617
|
-
|
|
20636
|
+
Rt,
|
|
20618
20637
|
{
|
|
20619
20638
|
variant: "ghost",
|
|
20620
20639
|
size: "sm",
|
|
@@ -20630,7 +20649,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
|
|
|
20630
20649
|
},
|
|
20631
20650
|
c
|
|
20632
20651
|
)) }),
|
|
20633
|
-
/* @__PURE__ */ h(
|
|
20652
|
+
/* @__PURE__ */ h(Rt, { variant: "ghost", size: "icon", onClick: e, children: /* @__PURE__ */ h(fb, { className: "h-5 w-5" }) })
|
|
20634
20653
|
] }),
|
|
20635
20654
|
/* @__PURE__ */ h("div", { className: "flex-1 overflow-auto bg-muted/50 p-6", children: /* @__PURE__ */ h("div", { className: "flex justify-center min-h-full", children: /* @__PURE__ */ h(
|
|
20636
20655
|
"div",
|
|
@@ -20720,6 +20739,6 @@ export {
|
|
|
20720
20739
|
ss as processTemplate,
|
|
20721
20740
|
Is as resolver,
|
|
20722
20741
|
TA as useApiConfig,
|
|
20723
|
-
|
|
20742
|
+
Pe as useDeviceSize,
|
|
20724
20743
|
mi as useEventData
|
|
20725
20744
|
};
|