@cloudflare/kumo 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/ai/component-registry.json +146 -70
- package/ai/component-registry.md +178 -46
- package/ai/schemas.ts +11 -8
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +54 -44
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/banner-BKDBfLHA.js +75 -0
- package/dist/banner-BKDBfLHA.js.map +1 -0
- package/dist/catalog.js +1 -1
- package/dist/{checkbox-Dt8iSNOg.js → checkbox-CfFoTNFI.js} +60 -60
- package/dist/checkbox-CfFoTNFI.js.map +1 -0
- package/dist/{clipboard-text-CeoyR28P.js → clipboard-text-1d0rHIhb.js} +24 -24
- package/dist/{clipboard-text-CeoyR28P.js.map → clipboard-text-1d0rHIhb.js.map} +1 -1
- package/dist/{combobox-BIC-YZ2L.js → combobox-vnvi22pn.js} +83 -61
- package/dist/combobox-vnvi22pn.js.map +1 -0
- package/dist/{command-palette-D3MNR7w9.js → command-palette-B80cqB7K.js} +2 -2
- package/dist/{command-palette-D3MNR7w9.js.map → command-palette-B80cqB7K.js.map} +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +1472 -1412
- package/dist/components/flow.js.map +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/{dialog-toS9krNF.js → dialog-C4BIM-74.js} +6 -6
- package/dist/{dialog-toS9krNF.js.map → dialog-C4BIM-74.js.map} +1 -1
- package/dist/dropdown-CfS4QcSR.js +295 -0
- package/dist/dropdown-CfS4QcSR.js.map +1 -0
- package/dist/{field-DCq04TgZ.js → field-B8xISAuX.js} +5 -5
- package/dist/{field-DCq04TgZ.js.map → field-B8xISAuX.js.map} +1 -1
- package/dist/index.js +29 -29
- package/dist/{input-CCR8NGG7.js → input-DCzpefuq.js} +3 -3
- package/dist/{input-CCR8NGG7.js.map → input-DCzpefuq.js.map} +1 -1
- package/dist/{input-area-DU2Yvp_t.js → input-area-DCaAN9nG.js} +3 -3
- package/dist/{input-area-DU2Yvp_t.js.map → input-area-DCaAN9nG.js.map} +1 -1
- package/dist/{input-group-C365-qBq.js → input-group-BbaVpJnA.js} +2 -2
- package/dist/{input-group-C365-qBq.js.map → input-group-BbaVpJnA.js.map} +1 -1
- package/dist/{label-zjtV7oXa.js → label-Cd6nCDWj.js} +2 -2
- package/dist/{label-zjtV7oXa.js.map → label-Cd6nCDWj.js.map} +1 -1
- package/dist/{link-C8pUZ4Q-.js → link-DJq9RWpK.js} +11 -11
- package/dist/{link-C8pUZ4Q-.js.map → link-DJq9RWpK.js.map} +1 -1
- package/dist/{menubar-D7WvAf6x.js → menubar-Chchzst0.js} +2 -2
- package/dist/{menubar-D7WvAf6x.js.map → menubar-Chchzst0.js.map} +1 -1
- package/dist/{meter-jQGKS1z4.js → meter-Wk7_EhaO.js} +4 -4
- package/dist/{meter-jQGKS1z4.js.map → meter-Wk7_EhaO.js.map} +1 -1
- package/dist/pagination-DFHoZwPJ.js +208 -0
- package/dist/pagination-DFHoZwPJ.js.map +1 -0
- package/dist/{popover-syU1104E.js → popover-D20xpmdk.js} +22 -20
- package/dist/{popover-syU1104E.js.map → popover-D20xpmdk.js.map} +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +6 -0
- package/dist/primitives/csp-provider.js.map +1 -0
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +6 -0
- package/dist/primitives/drawer.js.map +1 -0
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +2 -2
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +2 -2
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +2 -2
- package/dist/primitives/progress.js +2 -2
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +2 -2
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +31 -29
- package/dist/{radio-CWMtSx65.js → radio-ibVa4Y8a.js} +18 -18
- package/dist/{radio-CWMtSx65.js.map → radio-ibVa4Y8a.js.map} +1 -1
- package/dist/{schemas-DbIwo0ET.js → schemas-CdpAeJKO.js} +278 -275
- package/dist/{schemas-DbIwo0ET.js.map → schemas-CdpAeJKO.js.map} +1 -1
- package/dist/{select-G6JqBVkg.js → select-DtcT1zGm.js} +21 -21
- package/dist/{select-G6JqBVkg.js.map → select-DtcT1zGm.js.map} +1 -1
- package/dist/{sensitive-input-DNFpycoy.js → sensitive-input-DHDRZRC7.js} +4 -4
- package/dist/{sensitive-input-DNFpycoy.js.map → sensitive-input-DHDRZRC7.js.map} +1 -1
- package/dist/src/components/banner/banner.d.ts +28 -11
- package/dist/src/components/banner/banner.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +4 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +26 -16
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/components/flow/connectors.d.ts +3 -1
- package/dist/src/components/flow/connectors.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts +1 -0
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/flow/node.d.ts +5 -1
- package/dist/src/components/flow/node.d.ts.map +1 -1
- package/dist/src/components/flow/parallel.d.ts +10 -2
- package/dist/src/components/flow/parallel.d.ts.map +1 -1
- package/dist/src/components/pagination/pagination.d.ts +134 -13
- package/dist/src/components/pagination/pagination.d.ts.map +1 -1
- package/dist/src/components/popover/popover.d.ts +7 -1
- package/dist/src/components/popover/popover.d.ts.map +1 -1
- package/dist/src/components/toast/toast.d.ts +4 -4
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/primitives/csp-provider.d.ts +13 -0
- package/dist/src/primitives/csp-provider.d.ts.map +1 -0
- package/dist/src/primitives/drawer.d.ts +13 -0
- package/dist/src/primitives/drawer.d.ts.map +1 -0
- package/dist/src/primitives/index.d.ts +2 -0
- package/dist/src/primitives/index.d.ts.map +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/{switch-CmsZ4z-g.js → switch-DrbaX2iC.js} +15 -15
- package/dist/{switch-CmsZ4z-g.js.map → switch-DrbaX2iC.js.map} +1 -1
- package/dist/{table-Dc0AGcLV.js → table-CH9KC36S.js} +2 -2
- package/dist/{table-Dc0AGcLV.js.map → table-CH9KC36S.js.map} +1 -1
- package/dist/{tabs-BpD1iUiz.js → tabs-B-Fxc6Zo.js} +2 -2
- package/dist/{tabs-BpD1iUiz.js.map → tabs-B-Fxc6Zo.js.map} +1 -1
- package/dist/{toast-BrR0pjLE.js → toast-DUYp3EtH.js} +6 -6
- package/dist/{toast-BrR0pjLE.js.map → toast-DUYp3EtH.js.map} +1 -1
- package/dist/{tooltip-daVJYtXY.js → tooltip-D-KwZQDV.js} +2 -2
- package/dist/{tooltip-daVJYtXY.js.map → tooltip-D-KwZQDV.js.map} +1 -1
- package/dist/vendor-base-ui-Bsg5ebHI.js +22806 -0
- package/dist/vendor-base-ui-Bsg5ebHI.js.map +1 -0
- package/dist/{vendor-utils-DD8jNJwD.js → vendor-utils-DKXfkDYu.js} +100 -101
- package/dist/vendor-utils-DKXfkDYu.js.map +1 -0
- package/package.json +10 -2
- package/dist/banner-4fkH6Sbt.js +0 -51
- package/dist/banner-4fkH6Sbt.js.map +0 -1
- package/dist/checkbox-Dt8iSNOg.js.map +0 -1
- package/dist/combobox-BIC-YZ2L.js.map +0 -1
- package/dist/dropdown-BquiYKKC.js +0 -263
- package/dist/dropdown-BquiYKKC.js.map +0 -1
- package/dist/pagination-BN80iKY6.js +0 -100
- package/dist/pagination-BN80iKY6.js.map +0 -1
- package/dist/vendor-base-ui-9w7J6BvW.js +0 -20448
- package/dist/vendor-base-ui-9w7J6BvW.js.map +0 -1
- package/dist/vendor-utils-DD8jNJwD.js.map +0 -1
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import x from "react";
|
|
3
|
-
var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
4
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
3
|
+
var oe = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], A = /* @__PURE__ */ oe.join(","), Q = typeof Element > "u", w = Q ? function() {
|
|
4
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, L = !Q && Element.prototype.getRootNode ? function(n) {
|
|
5
5
|
var e;
|
|
6
6
|
return n == null || (e = n.getRootNode) === null || e === void 0 ? void 0 : e.call(n);
|
|
7
7
|
} : function(n) {
|
|
8
8
|
return n?.ownerDocument;
|
|
9
|
-
},
|
|
9
|
+
}, N = function(e, t) {
|
|
10
10
|
var r;
|
|
11
11
|
t === void 0 && (t = !0);
|
|
12
|
-
var i = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), o = i === "" || i === "true", u = o || t && e &&
|
|
12
|
+
var i = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), o = i === "" || i === "true", u = o || t && e && // closest does not exist on shadow roots, so we fall back to a manual
|
|
13
|
+
// lookup upward, in case it is not defined.
|
|
14
|
+
(typeof e.closest == "function" ? e.closest("[inert]") : N(e.parentNode));
|
|
13
15
|
return u;
|
|
14
|
-
},
|
|
16
|
+
}, se = function(e) {
|
|
15
17
|
var t, r = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
|
|
16
18
|
return r === "" || r === "true";
|
|
17
19
|
}, ee = function(e, t, r) {
|
|
18
|
-
if (
|
|
20
|
+
if (N(e))
|
|
19
21
|
return [];
|
|
20
|
-
var i = Array.prototype.slice.apply(e.querySelectorAll(
|
|
21
|
-
return t && w.call(e,
|
|
22
|
+
var i = Array.prototype.slice.apply(e.querySelectorAll(A));
|
|
23
|
+
return t && w.call(e, A) && i.unshift(e), i = i.filter(r), i;
|
|
22
24
|
}, D = function(e, t, r) {
|
|
23
25
|
for (var i = [], o = Array.from(e); o.length; ) {
|
|
24
26
|
var u = o.shift();
|
|
25
|
-
if (!
|
|
27
|
+
if (!N(u, !1))
|
|
26
28
|
if (u.tagName === "SLOT") {
|
|
27
|
-
var
|
|
29
|
+
var s = u.assignedElements(), v = s.length ? s : u.children, a = D(v, !0, r);
|
|
28
30
|
r.flatten ? i.push.apply(i, a) : i.push({
|
|
29
31
|
scopeParent: u,
|
|
30
32
|
candidates: a
|
|
31
33
|
});
|
|
32
34
|
} else {
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
+
var l = w.call(u, A);
|
|
36
|
+
l && r.filter(u) && (t || !e.includes(u)) && i.push(u);
|
|
35
37
|
var f = u.shadowRoot || // check for an undisclosed shadow
|
|
36
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(u), h = !
|
|
38
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(u), h = !N(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
|
|
37
39
|
if (f && h) {
|
|
38
40
|
var c = D(f === !0 ? u.children : f.children, !0, r);
|
|
39
41
|
r.flatten ? i.push.apply(i, c) : i.push({
|
|
@@ -50,8 +52,8 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
50
52
|
}, re = function(e) {
|
|
51
53
|
if (!e)
|
|
52
54
|
throw new Error("No node provided");
|
|
53
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
54
|
-
},
|
|
55
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || se(e)) && !te(e) ? 0 : e.tabIndex;
|
|
56
|
+
}, le = function(e, t) {
|
|
55
57
|
var r = re(e);
|
|
56
58
|
return r < 0 && t && !te(e) ? 0 : r;
|
|
57
59
|
}, ce = function(e, t) {
|
|
@@ -72,8 +74,8 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
72
74
|
}, pe = function(e) {
|
|
73
75
|
if (!e.name)
|
|
74
76
|
return !0;
|
|
75
|
-
var t = e.form ||
|
|
76
|
-
return t.querySelectorAll('input[type="radio"][name="' +
|
|
77
|
+
var t = e.form || L(e), r = function(s) {
|
|
78
|
+
return t.querySelectorAll('input[type="radio"][name="' + s + '"]');
|
|
77
79
|
}, i;
|
|
78
80
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
79
81
|
i = r(window.CSS.escape(e.name));
|
|
@@ -90,12 +92,12 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
90
92
|
}, ye = function(e) {
|
|
91
93
|
return he(e) && !pe(e);
|
|
92
94
|
}, Se = function(e) {
|
|
93
|
-
var t, r = e &&
|
|
95
|
+
var t, r = e && L(e), i = (t = r) === null || t === void 0 ? void 0 : t.host, o = !1;
|
|
94
96
|
if (r && r !== e) {
|
|
95
|
-
var u,
|
|
96
|
-
for (o = !!((u = i) !== null && u !== void 0 && (
|
|
97
|
-
var a,
|
|
98
|
-
r =
|
|
97
|
+
var u, s, v;
|
|
98
|
+
for (o = !!((u = i) !== null && u !== void 0 && (s = u.ownerDocument) !== null && s !== void 0 && s.contains(i) || e != null && (v = e.ownerDocument) !== null && v !== void 0 && v.contains(e)); !o && i; ) {
|
|
99
|
+
var a, l, f;
|
|
100
|
+
r = L(i), i = (a = r) === null || a === void 0 ? void 0 : a.host, o = !!((l = i) !== null && l !== void 0 && (f = l.ownerDocument) !== null && f !== void 0 && f.contains(i));
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
return o;
|
|
@@ -122,18 +124,18 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
122
124
|
}
|
|
123
125
|
if (getComputedStyle(e).visibility === "hidden")
|
|
124
126
|
return !0;
|
|
125
|
-
var u = w.call(e, "details>summary:first-of-type"),
|
|
126
|
-
if (w.call(
|
|
127
|
+
var u = w.call(e, "details>summary:first-of-type"), s = u ? e.parentElement : e;
|
|
128
|
+
if (w.call(s, "details:not([open]) *"))
|
|
127
129
|
return !0;
|
|
128
130
|
if (!r || r === "full" || // full-native can run this branch when it falls through in case
|
|
129
131
|
// Element#checkVisibility is unsupported
|
|
130
132
|
r === "full-native" || r === "legacy-full") {
|
|
131
133
|
if (typeof i == "function") {
|
|
132
134
|
for (var v = e; e; ) {
|
|
133
|
-
var a = e.parentElement,
|
|
135
|
+
var a = e.parentElement, l = L(e);
|
|
134
136
|
if (a && !a.shadowRoot && i(a) === !0)
|
|
135
137
|
return q(e);
|
|
136
|
-
e.assignedSlot ? e = e.assignedSlot : !a &&
|
|
138
|
+
e.assignedSlot ? e = e.assignedSlot : !a && l !== e.ownerDocument ? e = l.host : e = a;
|
|
137
139
|
}
|
|
138
140
|
e = v;
|
|
139
141
|
}
|
|
@@ -159,10 +161,7 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
159
161
|
}
|
|
160
162
|
return !1;
|
|
161
163
|
}, F = function(e, t) {
|
|
162
|
-
return !(t.disabled ||
|
|
163
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
164
|
-
// note related to `candidateSelectors`)
|
|
165
|
-
C(t) || fe(t) || me(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
164
|
+
return !(t.disabled || fe(t) || me(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
166
165
|
de(t) || be(t));
|
|
167
166
|
}, G = function(e, t) {
|
|
168
167
|
return !(ye(t) || re(t) < 0 || !F(e, t));
|
|
@@ -172,8 +171,8 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
172
171
|
}, ie = function(e) {
|
|
173
172
|
var t = [], r = [];
|
|
174
173
|
return e.forEach(function(i, o) {
|
|
175
|
-
var u = !!i.scopeParent,
|
|
176
|
-
v === 0 ? u ? t.push.apply(t, a) : t.push(
|
|
174
|
+
var u = !!i.scopeParent, s = u ? i.scopeParent : i, v = le(s, u), a = u ? ie(i.candidates) : s;
|
|
175
|
+
v === 0 ? u ? t.push.apply(t, a) : t.push(s) : r.push({
|
|
177
176
|
documentOrder: o,
|
|
178
177
|
tabIndex: v,
|
|
179
178
|
item: i,
|
|
@@ -203,7 +202,7 @@ var oe = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
203
202
|
}, He = function(e, t) {
|
|
204
203
|
if (t = t || {}, !e)
|
|
205
204
|
throw new Error("No node provided");
|
|
206
|
-
return w.call(e,
|
|
205
|
+
return w.call(e, A) === !1 ? !1 : G(t, e);
|
|
207
206
|
}, Ee = (n, e, t) => {
|
|
208
207
|
if (e.length === 1 && e[0] === t) {
|
|
209
208
|
let r = !1;
|
|
@@ -229,13 +228,13 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
229
228
|
}
|
|
230
229
|
}
|
|
231
230
|
}, Oe = (n, e, t) => {
|
|
232
|
-
const { memoize: r, memoizeOptions: i } = e, { inputSelectorResults: o, inputSelectorResultsCopy: u } = n,
|
|
233
|
-
if (!(
|
|
231
|
+
const { memoize: r, memoizeOptions: i } = e, { inputSelectorResults: o, inputSelectorResultsCopy: u } = n, s = r(() => ({}), ...i);
|
|
232
|
+
if (!(s.apply(null, o) === s.apply(null, u))) {
|
|
234
233
|
let a;
|
|
235
234
|
try {
|
|
236
235
|
throw new Error();
|
|
237
|
-
} catch (
|
|
238
|
-
({ stack: a } =
|
|
236
|
+
} catch (l) {
|
|
237
|
+
({ stack: a } = l);
|
|
239
238
|
}
|
|
240
239
|
console.warn(
|
|
241
240
|
`An input selector returned a different result when passed same arguments.
|
|
@@ -319,16 +318,16 @@ function Ae(n) {
|
|
|
319
318
|
}
|
|
320
319
|
function Le(n, e) {
|
|
321
320
|
let t = [];
|
|
322
|
-
function r(
|
|
323
|
-
const v = t.findIndex((a) => e(
|
|
321
|
+
function r(s) {
|
|
322
|
+
const v = t.findIndex((a) => e(s, a.key));
|
|
324
323
|
if (v > -1) {
|
|
325
324
|
const a = t[v];
|
|
326
325
|
return v > 0 && (t.splice(v, 1), t.unshift(a)), a.value;
|
|
327
326
|
}
|
|
328
327
|
return k;
|
|
329
328
|
}
|
|
330
|
-
function i(
|
|
331
|
-
r(
|
|
329
|
+
function i(s, v) {
|
|
330
|
+
r(s) === k && (t.unshift({ key: s, value: v }), t.length > n && t.pop());
|
|
332
331
|
}
|
|
333
332
|
function o() {
|
|
334
333
|
return t;
|
|
@@ -356,25 +355,25 @@ function Pe(n, e) {
|
|
|
356
355
|
maxSize: i = 1,
|
|
357
356
|
resultEqualityCheck: o
|
|
358
357
|
} = t, u = De(r);
|
|
359
|
-
let
|
|
358
|
+
let s = 0;
|
|
360
359
|
const v = i <= 1 ? Ae(u) : Le(i, u);
|
|
361
360
|
function a() {
|
|
362
|
-
let
|
|
363
|
-
if (
|
|
364
|
-
if (
|
|
361
|
+
let l = v.get(arguments);
|
|
362
|
+
if (l === k) {
|
|
363
|
+
if (l = n.apply(null, arguments), s++, o) {
|
|
365
364
|
const h = v.getEntries().find(
|
|
366
|
-
(c) => o(c.value,
|
|
365
|
+
(c) => o(c.value, l)
|
|
367
366
|
);
|
|
368
|
-
h && (
|
|
367
|
+
h && (l = h.value, s !== 0 && s--);
|
|
369
368
|
}
|
|
370
|
-
v.put(arguments,
|
|
369
|
+
v.put(arguments, l);
|
|
371
370
|
}
|
|
372
|
-
return
|
|
371
|
+
return l;
|
|
373
372
|
}
|
|
374
373
|
return a.clearCache = () => {
|
|
375
374
|
v.clear(), a.resetResultsCount();
|
|
376
|
-
}, a.resultsCount = () =>
|
|
377
|
-
|
|
375
|
+
}, a.resultsCount = () => s, a.resetResultsCount = () => {
|
|
376
|
+
s = 0;
|
|
378
377
|
}, a;
|
|
379
378
|
}
|
|
380
379
|
var ke = class {
|
|
@@ -385,7 +384,7 @@ var ke = class {
|
|
|
385
384
|
return this.value;
|
|
386
385
|
}
|
|
387
386
|
}, xe = typeof WeakRef < "u" ? WeakRef : ke, Me = 0, $ = 1;
|
|
388
|
-
function
|
|
387
|
+
function C() {
|
|
389
388
|
return {
|
|
390
389
|
s: Me,
|
|
391
390
|
v: void 0,
|
|
@@ -394,38 +393,38 @@ function T() {
|
|
|
394
393
|
};
|
|
395
394
|
}
|
|
396
395
|
function ue(n, e = {}) {
|
|
397
|
-
let t =
|
|
396
|
+
let t = C();
|
|
398
397
|
const { resultEqualityCheck: r } = e;
|
|
399
398
|
let i, o = 0;
|
|
400
399
|
function u() {
|
|
401
|
-
let
|
|
400
|
+
let s = t;
|
|
402
401
|
const { length: v } = arguments;
|
|
403
402
|
for (let f = 0, h = v; f < h; f++) {
|
|
404
403
|
const c = arguments[f];
|
|
405
404
|
if (typeof c == "function" || typeof c == "object" && c !== null) {
|
|
406
|
-
let d =
|
|
407
|
-
d === null && (
|
|
405
|
+
let d = s.o;
|
|
406
|
+
d === null && (s.o = d = /* @__PURE__ */ new WeakMap());
|
|
408
407
|
const p = d.get(c);
|
|
409
|
-
p === void 0 ? (
|
|
408
|
+
p === void 0 ? (s = C(), d.set(c, s)) : s = p;
|
|
410
409
|
} else {
|
|
411
|
-
let d =
|
|
412
|
-
d === null && (
|
|
410
|
+
let d = s.p;
|
|
411
|
+
d === null && (s.p = d = /* @__PURE__ */ new Map());
|
|
413
412
|
const p = d.get(c);
|
|
414
|
-
p === void 0 ? (
|
|
413
|
+
p === void 0 ? (s = C(), d.set(c, s)) : s = p;
|
|
415
414
|
}
|
|
416
415
|
}
|
|
417
|
-
const a =
|
|
418
|
-
let
|
|
419
|
-
if (
|
|
420
|
-
|
|
421
|
-
else if (
|
|
416
|
+
const a = s;
|
|
417
|
+
let l;
|
|
418
|
+
if (s.s === $)
|
|
419
|
+
l = s.v;
|
|
420
|
+
else if (l = n.apply(null, arguments), o++, r) {
|
|
422
421
|
const f = i?.deref?.() ?? i;
|
|
423
|
-
f != null && r(f,
|
|
422
|
+
f != null && r(f, l) && (l = f, o !== 0 && o--), i = typeof l == "object" && l !== null || typeof l == "function" ? new xe(l) : l;
|
|
424
423
|
}
|
|
425
|
-
return a.s = $, a.v =
|
|
424
|
+
return a.s = $, a.v = l, l;
|
|
426
425
|
}
|
|
427
426
|
return u.clearCache = () => {
|
|
428
|
-
t =
|
|
427
|
+
t = C(), u.resetResultsCount();
|
|
429
428
|
}, u.resultsCount = () => o, u.resetResultsCount = () => {
|
|
430
429
|
o = 0;
|
|
431
430
|
}, u;
|
|
@@ -435,12 +434,12 @@ function Ve(n, ...e) {
|
|
|
435
434
|
memoize: n,
|
|
436
435
|
memoizeOptions: e
|
|
437
436
|
} : n, r = (...i) => {
|
|
438
|
-
let o = 0, u = 0,
|
|
437
|
+
let o = 0, u = 0, s, v = {}, a = i.pop();
|
|
439
438
|
typeof a == "object" && (v = a, a = i.pop()), Re(
|
|
440
439
|
a,
|
|
441
440
|
`createSelector expects an output function after the inputs, but received: [${typeof a}]`
|
|
442
441
|
);
|
|
443
|
-
const
|
|
442
|
+
const l = {
|
|
444
443
|
...t,
|
|
445
444
|
...v
|
|
446
445
|
}, {
|
|
@@ -449,7 +448,7 @@ function Ve(n, ...e) {
|
|
|
449
448
|
argsMemoize: c = ue,
|
|
450
449
|
argsMemoizeOptions: d = [],
|
|
451
450
|
devModeChecks: p = {}
|
|
452
|
-
} =
|
|
451
|
+
} = l, y = U(h), b = U(d), g = Te(i), O = f(function() {
|
|
453
452
|
return o++, a.apply(
|
|
454
453
|
null,
|
|
455
454
|
arguments
|
|
@@ -462,12 +461,12 @@ function Ve(n, ...e) {
|
|
|
462
461
|
g,
|
|
463
462
|
arguments
|
|
464
463
|
);
|
|
465
|
-
if (
|
|
464
|
+
if (s = O.apply(null, m), process.env.NODE_ENV !== "production") {
|
|
466
465
|
const { identityFunctionCheck: _, inputStabilityCheck: B } = Ie(E, p);
|
|
467
466
|
if (_.shouldRun && _.run(
|
|
468
467
|
a,
|
|
469
468
|
m,
|
|
470
|
-
|
|
469
|
+
s
|
|
471
470
|
), B.shouldRun) {
|
|
472
471
|
const ae = K(
|
|
473
472
|
g,
|
|
@@ -481,7 +480,7 @@ function Ve(n, ...e) {
|
|
|
481
480
|
}
|
|
482
481
|
E && (E = !1);
|
|
483
482
|
}
|
|
484
|
-
return
|
|
483
|
+
return s;
|
|
485
484
|
}, ...b);
|
|
486
485
|
return Object.assign(R, {
|
|
487
486
|
resultFunc: a,
|
|
@@ -491,7 +490,7 @@ function Ve(n, ...e) {
|
|
|
491
490
|
resetDependencyRecomputations: () => {
|
|
492
491
|
u = 0;
|
|
493
492
|
},
|
|
494
|
-
lastResult: () =>
|
|
493
|
+
lastResult: () => s,
|
|
495
494
|
recomputations: () => o,
|
|
496
495
|
resetRecomputations: () => {
|
|
497
496
|
o = 0;
|
|
@@ -515,11 +514,11 @@ var je = /* @__PURE__ */ Ve(ue), ze = Object.assign(
|
|
|
515
514
|
);
|
|
516
515
|
return e(
|
|
517
516
|
r,
|
|
518
|
-
(...o) => o.reduce((u,
|
|
517
|
+
(...o) => o.reduce((u, s, v) => (u[t[v]] = s, u), {})
|
|
519
518
|
);
|
|
520
519
|
},
|
|
521
520
|
{ withTypes: () => ze }
|
|
522
|
-
),
|
|
521
|
+
), T = { exports: {} }, M = {};
|
|
523
522
|
var H;
|
|
524
523
|
function Fe() {
|
|
525
524
|
if (H) return M;
|
|
@@ -529,7 +528,7 @@ function Fe() {
|
|
|
529
528
|
return f === h && (f !== 0 || 1 / f === 1 / h) || f !== f && h !== h;
|
|
530
529
|
}
|
|
531
530
|
var t = typeof Object.is == "function" ? Object.is : e, r = n.useState, i = n.useEffect, o = n.useLayoutEffect, u = n.useDebugValue;
|
|
532
|
-
function
|
|
531
|
+
function s(f, h) {
|
|
533
532
|
var c = h(), d = r({ inst: { value: c, getSnapshot: h } }), p = d[0].inst, y = d[1];
|
|
534
533
|
return o(
|
|
535
534
|
function() {
|
|
@@ -558,8 +557,8 @@ function Fe() {
|
|
|
558
557
|
function a(f, h) {
|
|
559
558
|
return h();
|
|
560
559
|
}
|
|
561
|
-
var
|
|
562
|
-
return M.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore :
|
|
560
|
+
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : s;
|
|
561
|
+
return M.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : l, M;
|
|
563
562
|
}
|
|
564
563
|
var V = {};
|
|
565
564
|
var P;
|
|
@@ -569,7 +568,7 @@ function Ge() {
|
|
|
569
568
|
return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
|
|
570
569
|
}
|
|
571
570
|
function e(c, d) {
|
|
572
|
-
|
|
571
|
+
l || i.startTransition === void 0 || (l = !0, console.error(
|
|
573
572
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
574
573
|
));
|
|
575
574
|
var p = d();
|
|
@@ -588,7 +587,7 @@ function Ge() {
|
|
|
588
587
|
b.value = p, b.getSnapshot = d, t(b) && g({ inst: b });
|
|
589
588
|
},
|
|
590
589
|
[c, p, d]
|
|
591
|
-
),
|
|
590
|
+
), s(
|
|
592
591
|
function() {
|
|
593
592
|
return t(b) && g({ inst: b }), c(function() {
|
|
594
593
|
t(b) && g({ inst: b });
|
|
@@ -611,31 +610,31 @@ function Ge() {
|
|
|
611
610
|
return d();
|
|
612
611
|
}
|
|
613
612
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
614
|
-
var i = x, o = typeof Object.is == "function" ? Object.is : n, u = i.useState,
|
|
613
|
+
var i = x, o = typeof Object.is == "function" ? Object.is : n, u = i.useState, s = i.useEffect, v = i.useLayoutEffect, a = i.useDebugValue, l = !1, f = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
|
|
615
614
|
V.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
616
615
|
})()), V;
|
|
617
616
|
}
|
|
618
617
|
var Y;
|
|
619
618
|
function W() {
|
|
620
|
-
return Y || (Y = 1, process.env.NODE_ENV === "production" ?
|
|
619
|
+
return Y || (Y = 1, process.env.NODE_ENV === "production" ? T.exports = Fe() : T.exports = Ge()), T.exports;
|
|
621
620
|
}
|
|
622
|
-
var Ye = W(),
|
|
621
|
+
var Ye = W(), I = { exports: {} }, j = {};
|
|
623
622
|
var Z;
|
|
624
623
|
function We() {
|
|
625
624
|
if (Z) return j;
|
|
626
625
|
Z = 1;
|
|
627
626
|
var n = x, e = W();
|
|
628
|
-
function t(a,
|
|
629
|
-
return a ===
|
|
627
|
+
function t(a, l) {
|
|
628
|
+
return a === l && (a !== 0 || 1 / a === 1 / l) || a !== a && l !== l;
|
|
630
629
|
}
|
|
631
|
-
var r = typeof Object.is == "function" ? Object.is : t, i = e.useSyncExternalStore, o = n.useRef, u = n.useEffect,
|
|
632
|
-
return j.useSyncExternalStoreWithSelector = function(a,
|
|
630
|
+
var r = typeof Object.is == "function" ? Object.is : t, i = e.useSyncExternalStore, o = n.useRef, u = n.useEffect, s = n.useMemo, v = n.useDebugValue;
|
|
631
|
+
return j.useSyncExternalStoreWithSelector = function(a, l, f, h, c) {
|
|
633
632
|
var d = o(null);
|
|
634
633
|
if (d.current === null) {
|
|
635
634
|
var p = { hasValue: !1, value: null };
|
|
636
635
|
d.current = p;
|
|
637
636
|
} else p = d.current;
|
|
638
|
-
d =
|
|
637
|
+
d = s(
|
|
639
638
|
function() {
|
|
640
639
|
function b(S) {
|
|
641
640
|
if (!g) {
|
|
@@ -653,14 +652,14 @@ function We() {
|
|
|
653
652
|
var g = !1, O, E, R = f === void 0 ? null : f;
|
|
654
653
|
return [
|
|
655
654
|
function() {
|
|
656
|
-
return b(
|
|
655
|
+
return b(l());
|
|
657
656
|
},
|
|
658
657
|
R === null ? void 0 : function() {
|
|
659
658
|
return b(R());
|
|
660
659
|
}
|
|
661
660
|
];
|
|
662
661
|
},
|
|
663
|
-
[
|
|
662
|
+
[l, f, h, c]
|
|
664
663
|
);
|
|
665
664
|
var y = i(a, d[0], d[1]);
|
|
666
665
|
return u(
|
|
@@ -675,18 +674,18 @@ var z = {};
|
|
|
675
674
|
var X;
|
|
676
675
|
function Be() {
|
|
677
676
|
return X || (X = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
678
|
-
function n(a,
|
|
679
|
-
return a ===
|
|
677
|
+
function n(a, l) {
|
|
678
|
+
return a === l && (a !== 0 || 1 / a === 1 / l) || a !== a && l !== l;
|
|
680
679
|
}
|
|
681
680
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
682
|
-
var e = x, t = W(), r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, u = e.useEffect,
|
|
683
|
-
z.useSyncExternalStoreWithSelector = function(a,
|
|
681
|
+
var e = x, t = W(), r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, u = e.useEffect, s = e.useMemo, v = e.useDebugValue;
|
|
682
|
+
z.useSyncExternalStoreWithSelector = function(a, l, f, h, c) {
|
|
684
683
|
var d = o(null);
|
|
685
684
|
if (d.current === null) {
|
|
686
685
|
var p = { hasValue: !1, value: null };
|
|
687
686
|
d.current = p;
|
|
688
687
|
} else p = d.current;
|
|
689
|
-
d =
|
|
688
|
+
d = s(
|
|
690
689
|
function() {
|
|
691
690
|
function b(S) {
|
|
692
691
|
if (!g) {
|
|
@@ -705,14 +704,14 @@ function Be() {
|
|
|
705
704
|
var g = !1, O, E, R = f === void 0 ? null : f;
|
|
706
705
|
return [
|
|
707
706
|
function() {
|
|
708
|
-
return b(
|
|
707
|
+
return b(l());
|
|
709
708
|
},
|
|
710
709
|
R === null ? void 0 : function() {
|
|
711
710
|
return b(R());
|
|
712
711
|
}
|
|
713
712
|
];
|
|
714
713
|
},
|
|
715
|
-
[
|
|
714
|
+
[l, f, h, c]
|
|
716
715
|
);
|
|
717
716
|
var y = i(a, d[0], d[1]);
|
|
718
717
|
return u(
|
|
@@ -726,7 +725,7 @@ function Be() {
|
|
|
726
725
|
}
|
|
727
726
|
var J;
|
|
728
727
|
function qe() {
|
|
729
|
-
return J || (J = 1, process.env.NODE_ENV === "production" ?
|
|
728
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? I.exports = We() : I.exports = Be()), I.exports;
|
|
730
729
|
}
|
|
731
730
|
var Ze = qe();
|
|
732
731
|
export {
|
|
@@ -738,4 +737,4 @@ export {
|
|
|
738
737
|
Ke as t,
|
|
739
738
|
Ze as w
|
|
740
739
|
};
|
|
741
|
-
//# sourceMappingURL=vendor-utils-
|
|
740
|
+
//# sourceMappingURL=vendor-utils-DKXfkDYu.js.map
|