@openfeed-ink/widget 0.1.3

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.
Files changed (43) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +141 -0
  3. package/dist/npm/AnnouncementBanner-BPo8Jmax.js +75 -0
  4. package/dist/npm/App.d.ts +5 -0
  5. package/dist/npm/ChangelogTab-DBQ5Ip6K.js +18 -0
  6. package/dist/npm/DrawerType-D9YHimv7.js +1184 -0
  7. package/dist/npm/FeatureDialog-BU1c2n3F.js +31 -0
  8. package/dist/npm/FeedbackTab-V7VCrze1.js +71 -0
  9. package/dist/npm/Main.d.ts +5 -0
  10. package/dist/npm/PopoverType-DlyRog2q.js +1863 -0
  11. package/dist/npm/RoadmapTab-DOYJBpgd.js +18 -0
  12. package/dist/npm/WidgetContent-Bs4eY5OF.js +507 -0
  13. package/dist/npm/button-Q2Dh1yK6.js +3086 -0
  14. package/dist/npm/components/AnnouncementBanner.d.ts +4 -0
  15. package/dist/npm/components/ChangelogTab.d.ts +6 -0
  16. package/dist/npm/components/FeatureDialog.d.ts +5 -0
  17. package/dist/npm/components/FeedbackTab.d.ts +8 -0
  18. package/dist/npm/components/NewFeedback.d.ts +9 -0
  19. package/dist/npm/components/RoadmapTab.d.ts +6 -0
  20. package/dist/npm/components/WidgetContent.d.ts +8 -0
  21. package/dist/npm/components/theme-provider.d.ts +8 -0
  22. package/dist/npm/components/triggerType/DrawerType.d.ts +11 -0
  23. package/dist/npm/components/triggerType/PopoverType.d.ts +11 -0
  24. package/dist/npm/components/ui/button.d.ts +10 -0
  25. package/dist/npm/components/ui/dialog.d.ts +11 -0
  26. package/dist/npm/components/ui/drawer.d.ts +10 -0
  27. package/dist/npm/components/ui/popover.d.ts +7 -0
  28. package/dist/npm/components/ui/tabs.d.ts +11 -0
  29. package/dist/npm/context/outsideEvent.d.ts +17 -0
  30. package/dist/npm/context/shadow-root.d.ts +5 -0
  31. package/dist/npm/dialog-5J_RZfbt.js +107 -0
  32. package/dist/npm/hooks/use-local-storage.d.ts +1 -0
  33. package/dist/npm/index-BaBFRQOq.js +1043 -0
  34. package/dist/npm/index-BkmaVINv.js +334 -0
  35. package/dist/npm/index-MTTUickr.js +237 -0
  36. package/dist/npm/index.d.ts +2 -0
  37. package/dist/npm/index.js +6 -0
  38. package/dist/npm/lib/utils.d.ts +2 -0
  39. package/dist/npm/mount.d.ts +7 -0
  40. package/dist/npm/react/OpenFeed.d.ts +7 -0
  41. package/dist/npm/types/index.d.ts +31 -0
  42. package/dist/npm/x-BkA0RvhX.js +9 -0
  43. package/package.json +95 -0
@@ -0,0 +1,1043 @@
1
+ "use client";
2
+ import * as a from "react";
3
+ import { useState as Ae } from "react";
4
+ import { jsx as A } from "react/jsx-runtime";
5
+ import { a as Te, u as V } from "./button-Q2Dh1yK6.js";
6
+ import * as Me from "react-dom";
7
+ import Le from "react-dom";
8
+ var De = [
9
+ "a",
10
+ "button",
11
+ "div",
12
+ "form",
13
+ "h2",
14
+ "h3",
15
+ "img",
16
+ "input",
17
+ "label",
18
+ "li",
19
+ "nav",
20
+ "ol",
21
+ "p",
22
+ "select",
23
+ "span",
24
+ "svg",
25
+ "ul"
26
+ ], X = De.reduce((e, t) => {
27
+ const n = Te(`Primitive.${t}`), r = a.forwardRef((o, c) => {
28
+ const { asChild: u, ...i } = o, v = u ? n : t;
29
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ A(v, { ...i, ref: c });
30
+ });
31
+ return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
32
+ }, {});
33
+ function xe(e, t) {
34
+ e && Me.flushSync(() => e.dispatchEvent(t));
35
+ }
36
+ function Jt(e, t) {
37
+ const n = a.createContext(t), r = (c) => {
38
+ const { children: u, ...i } = c, v = a.useMemo(() => i, Object.values(i));
39
+ return /* @__PURE__ */ A(n.Provider, { value: v, children: u });
40
+ };
41
+ r.displayName = e + "Provider";
42
+ function o(c) {
43
+ const u = a.useContext(n);
44
+ if (u) return u;
45
+ if (t !== void 0) return t;
46
+ throw new Error(`\`${c}\` must be used within \`${e}\``);
47
+ }
48
+ return [r, o];
49
+ }
50
+ function en(e, t = []) {
51
+ let n = [];
52
+ function r(c, u) {
53
+ const i = a.createContext(u), v = n.length;
54
+ n = [...n, u];
55
+ const l = (f) => {
56
+ const { scope: m, children: p, ...w } = f, s = m?.[e]?.[v] || i, h = a.useMemo(() => w, Object.values(w));
57
+ return /* @__PURE__ */ A(s.Provider, { value: h, children: p });
58
+ };
59
+ l.displayName = c + "Provider";
60
+ function d(f, m) {
61
+ const p = m?.[e]?.[v] || i, w = a.useContext(p);
62
+ if (w) return w;
63
+ if (u !== void 0) return u;
64
+ throw new Error(`\`${f}\` must be used within \`${c}\``);
65
+ }
66
+ return [l, d];
67
+ }
68
+ const o = () => {
69
+ const c = n.map((u) => a.createContext(u));
70
+ return function(i) {
71
+ const v = i?.[e] || c;
72
+ return a.useMemo(
73
+ () => ({ [`__scope${e}`]: { ...i, [e]: v } }),
74
+ [i, v]
75
+ );
76
+ };
77
+ };
78
+ return o.scopeName = e, [r, Ie(o, ...t)];
79
+ }
80
+ function Ie(...e) {
81
+ const t = e[0];
82
+ if (e.length === 1) return t;
83
+ const n = () => {
84
+ const r = e.map((o) => ({
85
+ useScope: o(),
86
+ scopeName: o.scopeName
87
+ }));
88
+ return function(c) {
89
+ const u = r.reduce((i, { useScope: v, scopeName: l }) => {
90
+ const f = v(c)[`__scope${l}`];
91
+ return { ...i, ...f };
92
+ }, {});
93
+ return a.useMemo(() => ({ [`__scope${t.scopeName}`]: u }), [u]);
94
+ };
95
+ };
96
+ return n.scopeName = t.scopeName, n;
97
+ }
98
+ function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
99
+ return function(o) {
100
+ if (e?.(o), n === !1 || !o.defaultPrevented)
101
+ return t?.(o);
102
+ };
103
+ }
104
+ var k = globalThis?.document ? a.useLayoutEffect : () => {
105
+ }, ke = a[" useInsertionEffect ".trim().toString()] || k;
106
+ function tn({
107
+ prop: e,
108
+ defaultProp: t,
109
+ onChange: n = () => {
110
+ },
111
+ caller: r
112
+ }) {
113
+ const [o, c, u] = Fe({
114
+ defaultProp: t,
115
+ onChange: n
116
+ }), i = e !== void 0, v = i ? e : o;
117
+ {
118
+ const d = a.useRef(e !== void 0);
119
+ a.useEffect(() => {
120
+ const f = d.current;
121
+ f !== i && console.warn(
122
+ `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "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.`
123
+ ), d.current = i;
124
+ }, [i, r]);
125
+ }
126
+ const l = a.useCallback(
127
+ (d) => {
128
+ if (i) {
129
+ const f = We(d) ? d(e) : d;
130
+ f !== e && u.current?.(f);
131
+ } else
132
+ c(d);
133
+ },
134
+ [i, e, c, u]
135
+ );
136
+ return [v, l];
137
+ }
138
+ function Fe({
139
+ defaultProp: e,
140
+ onChange: t
141
+ }) {
142
+ const [n, r] = a.useState(e), o = a.useRef(n), c = a.useRef(t);
143
+ return ke(() => {
144
+ c.current = t;
145
+ }, [t]), a.useEffect(() => {
146
+ o.current !== n && (c.current?.(n), o.current = n);
147
+ }, [n, o]), [n, r, c];
148
+ }
149
+ function We(e) {
150
+ return typeof e == "function";
151
+ }
152
+ function _e(e, t) {
153
+ return a.useReducer((n, r) => t[n][r] ?? n, e);
154
+ }
155
+ var Be = (e) => {
156
+ const { present: t, children: n } = e, r = Ue(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), c = V(r.ref, je(o));
157
+ return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: c }) : null;
158
+ };
159
+ Be.displayName = "Presence";
160
+ function Ue(e) {
161
+ const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), c = a.useRef("none"), u = e ? "mounted" : "unmounted", [i, v] = _e(u, {
162
+ mounted: {
163
+ UNMOUNT: "unmounted",
164
+ ANIMATION_OUT: "unmountSuspended"
165
+ },
166
+ unmountSuspended: {
167
+ MOUNT: "mounted",
168
+ ANIMATION_END: "unmounted"
169
+ },
170
+ unmounted: {
171
+ MOUNT: "mounted"
172
+ }
173
+ });
174
+ return a.useEffect(() => {
175
+ const l = _(r.current);
176
+ c.current = i === "mounted" ? l : "none";
177
+ }, [i]), k(() => {
178
+ const l = r.current, d = o.current;
179
+ if (d !== e) {
180
+ const m = c.current, p = _(l);
181
+ e ? v("MOUNT") : p === "none" || l?.display === "none" ? v("UNMOUNT") : v(d && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
182
+ }
183
+ }, [e, v]), k(() => {
184
+ if (t) {
185
+ let l;
186
+ const d = t.ownerDocument.defaultView ?? window, f = (p) => {
187
+ const s = _(r.current).includes(CSS.escape(p.animationName));
188
+ if (p.target === t && s && (v("ANIMATION_END"), !o.current)) {
189
+ const h = t.style.animationFillMode;
190
+ t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
191
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
192
+ });
193
+ }
194
+ }, m = (p) => {
195
+ p.target === t && (c.current = _(r.current));
196
+ };
197
+ return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
198
+ d.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
199
+ };
200
+ } else
201
+ v("ANIMATION_END");
202
+ }, [t, v]), {
203
+ isPresent: ["mounted", "unmountSuspended"].includes(i),
204
+ ref: a.useCallback((l) => {
205
+ r.current = l ? getComputedStyle(l) : null, n(l);
206
+ }, [])
207
+ };
208
+ }
209
+ function _(e) {
210
+ return e?.animationName || "none";
211
+ }
212
+ function je(e) {
213
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
214
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
215
+ }
216
+ var He = a[" useId ".trim().toString()] || (() => {
217
+ }), Ke = 0;
218
+ function nn(e) {
219
+ const [t, n] = a.useState(He());
220
+ return k(() => {
221
+ n((r) => r ?? String(Ke++));
222
+ }, [e]), e || (t ? `radix-${t}` : "");
223
+ }
224
+ function F(e) {
225
+ const t = a.useRef(e);
226
+ return a.useEffect(() => {
227
+ t.current = e;
228
+ }), a.useMemo(() => (...n) => t.current?.(...n), []);
229
+ }
230
+ function $e(e, t = globalThis?.document) {
231
+ const n = F(e);
232
+ a.useEffect(() => {
233
+ const r = (o) => {
234
+ o.key === "Escape" && n(o);
235
+ };
236
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
237
+ }, [n, t]);
238
+ }
239
+ var Ve = "DismissableLayer", ne = "dismissableLayer.update", Xe = "dismissableLayer.pointerDownOutside", Ye = "dismissableLayer.focusOutside", ae, ye = a.createContext({
240
+ layers: /* @__PURE__ */ new Set(),
241
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
242
+ branches: /* @__PURE__ */ new Set()
243
+ }), ze = a.forwardRef(
244
+ (e, t) => {
245
+ const {
246
+ disableOutsidePointerEvents: n = !1,
247
+ onEscapeKeyDown: r,
248
+ onPointerDownOutside: o,
249
+ onFocusOutside: c,
250
+ onInteractOutside: u,
251
+ onDismiss: i,
252
+ ...v
253
+ } = e, l = a.useContext(ye), [d, f] = a.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, p] = a.useState({}), w = V(t, (E) => f(E)), s = Array.from(l.layers), [h] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = s.indexOf(h), g = d ? s.indexOf(d) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = g >= y, C = qe((E) => {
254
+ const N = E.target, T = [...l.branches].some((I) => I.contains(N));
255
+ !S || T || (o?.(E), u?.(E), E.defaultPrevented || i?.());
256
+ }, m), P = Qe((E) => {
257
+ const N = E.target;
258
+ [...l.branches].some((I) => I.contains(N)) || (c?.(E), u?.(E), E.defaultPrevented || i?.());
259
+ }, m);
260
+ return $e((E) => {
261
+ g === l.layers.size - 1 && (r?.(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
262
+ }, m), a.useEffect(() => {
263
+ if (d)
264
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ae = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), ie(), () => {
265
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ae);
266
+ };
267
+ }, [d, m, n, l]), a.useEffect(() => () => {
268
+ d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), ie());
269
+ }, [d, l]), a.useEffect(() => {
270
+ const E = () => p({});
271
+ return document.addEventListener(ne, E), () => document.removeEventListener(ne, E);
272
+ }, []), /* @__PURE__ */ A(
273
+ X.div,
274
+ {
275
+ ...v,
276
+ ref: w,
277
+ style: {
278
+ pointerEvents: b ? S ? "auto" : "none" : void 0,
279
+ ...e.style
280
+ },
281
+ onFocusCapture: z(e.onFocusCapture, P.onFocusCapture),
282
+ onBlurCapture: z(e.onBlurCapture, P.onBlurCapture),
283
+ onPointerDownCapture: z(
284
+ e.onPointerDownCapture,
285
+ C.onPointerDownCapture
286
+ )
287
+ }
288
+ );
289
+ }
290
+ );
291
+ ze.displayName = Ve;
292
+ var Ge = "DismissableLayerBranch", Ze = a.forwardRef((e, t) => {
293
+ const n = a.useContext(ye), r = a.useRef(null), o = V(t, r);
294
+ return a.useEffect(() => {
295
+ const c = r.current;
296
+ if (c)
297
+ return n.branches.add(c), () => {
298
+ n.branches.delete(c);
299
+ };
300
+ }, [n.branches]), /* @__PURE__ */ A(X.div, { ...e, ref: o });
301
+ });
302
+ Ze.displayName = Ge;
303
+ function qe(e, t = globalThis?.document) {
304
+ const n = F(e), r = a.useRef(!1), o = a.useRef(() => {
305
+ });
306
+ return a.useEffect(() => {
307
+ const c = (i) => {
308
+ if (i.target && !r.current) {
309
+ let v = function() {
310
+ Ee(
311
+ Xe,
312
+ n,
313
+ l,
314
+ { discrete: !0 }
315
+ );
316
+ };
317
+ const l = { originalEvent: i };
318
+ i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = v, t.addEventListener("click", o.current, { once: !0 })) : v();
319
+ } else
320
+ t.removeEventListener("click", o.current);
321
+ r.current = !1;
322
+ }, u = window.setTimeout(() => {
323
+ t.addEventListener("pointerdown", c);
324
+ }, 0);
325
+ return () => {
326
+ window.clearTimeout(u), t.removeEventListener("pointerdown", c), t.removeEventListener("click", o.current);
327
+ };
328
+ }, [t, n]), {
329
+ // ensures we check React component tree (not just DOM tree)
330
+ onPointerDownCapture: () => r.current = !0
331
+ };
332
+ }
333
+ function Qe(e, t = globalThis?.document) {
334
+ const n = F(e), r = a.useRef(!1);
335
+ return a.useEffect(() => {
336
+ const o = (c) => {
337
+ c.target && !r.current && Ee(Ye, n, { originalEvent: c }, {
338
+ discrete: !1
339
+ });
340
+ };
341
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
342
+ }, [t, n]), {
343
+ onFocusCapture: () => r.current = !0,
344
+ onBlurCapture: () => r.current = !1
345
+ };
346
+ }
347
+ function ie() {
348
+ const e = new CustomEvent(ne);
349
+ document.dispatchEvent(e);
350
+ }
351
+ function Ee(e, t, n, { discrete: r }) {
352
+ const o = n.originalEvent.target, c = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
353
+ t && o.addEventListener(e, t, { once: !0 }), r ? xe(o, c) : o.dispatchEvent(c);
354
+ }
355
+ var G = "focusScope.autoFocusOnMount", Z = "focusScope.autoFocusOnUnmount", ce = { bubbles: !1, cancelable: !0 }, Je = "FocusScope", et = a.forwardRef((e, t) => {
356
+ const {
357
+ loop: n = !1,
358
+ trapped: r = !1,
359
+ onMountAutoFocus: o,
360
+ onUnmountAutoFocus: c,
361
+ ...u
362
+ } = e, [i, v] = a.useState(null), l = F(o), d = F(c), f = a.useRef(null), m = V(t, (s) => v(s)), p = a.useRef({
363
+ paused: !1,
364
+ pause() {
365
+ this.paused = !0;
366
+ },
367
+ resume() {
368
+ this.paused = !1;
369
+ }
370
+ }).current;
371
+ a.useEffect(() => {
372
+ if (r) {
373
+ let s = function(b) {
374
+ if (p.paused || !i) return;
375
+ const S = b.target;
376
+ i.contains(S) ? f.current = S : O(f.current, { select: !0 });
377
+ }, h = function(b) {
378
+ if (p.paused || !i) return;
379
+ const S = b.relatedTarget;
380
+ S !== null && (i.contains(S) || O(f.current, { select: !0 }));
381
+ }, y = function(b) {
382
+ if (document.activeElement === document.body)
383
+ for (const C of b)
384
+ C.removedNodes.length > 0 && O(i);
385
+ };
386
+ document.addEventListener("focusin", s), document.addEventListener("focusout", h);
387
+ const g = new MutationObserver(y);
388
+ return i && g.observe(i, { childList: !0, subtree: !0 }), () => {
389
+ document.removeEventListener("focusin", s), document.removeEventListener("focusout", h), g.disconnect();
390
+ };
391
+ }
392
+ }, [r, i, p.paused]), a.useEffect(() => {
393
+ if (i) {
394
+ ue.add(p);
395
+ const s = document.activeElement;
396
+ if (!i.contains(s)) {
397
+ const y = new CustomEvent(G, ce);
398
+ i.addEventListener(G, l), i.dispatchEvent(y), y.defaultPrevented || (tt(it(ge(i)), { select: !0 }), document.activeElement === s && O(i));
399
+ }
400
+ return () => {
401
+ i.removeEventListener(G, l), setTimeout(() => {
402
+ const y = new CustomEvent(Z, ce);
403
+ i.addEventListener(Z, d), i.dispatchEvent(y), y.defaultPrevented || O(s ?? document.body, { select: !0 }), i.removeEventListener(Z, d), ue.remove(p);
404
+ }, 0);
405
+ };
406
+ }
407
+ }, [i, l, d, p]);
408
+ const w = a.useCallback(
409
+ (s) => {
410
+ if (!n && !r || p.paused) return;
411
+ const h = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, y = document.activeElement;
412
+ if (h && y) {
413
+ const g = s.currentTarget, [b, S] = nt(g);
414
+ b && S ? !s.shiftKey && y === S ? (s.preventDefault(), n && O(b, { select: !0 })) : s.shiftKey && y === b && (s.preventDefault(), n && O(S, { select: !0 })) : y === g && s.preventDefault();
415
+ }
416
+ },
417
+ [n, r, p.paused]
418
+ );
419
+ return /* @__PURE__ */ A(X.div, { tabIndex: -1, ...u, ref: m, onKeyDown: w });
420
+ });
421
+ et.displayName = Je;
422
+ function tt(e, { select: t = !1 } = {}) {
423
+ const n = document.activeElement;
424
+ for (const r of e)
425
+ if (O(r, { select: t }), document.activeElement !== n) return;
426
+ }
427
+ function nt(e) {
428
+ const t = ge(e), n = se(t, e), r = se(t.reverse(), e);
429
+ return [n, r];
430
+ }
431
+ function ge(e) {
432
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
433
+ acceptNode: (r) => {
434
+ const o = r.tagName === "INPUT" && r.type === "hidden";
435
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
436
+ }
437
+ });
438
+ for (; n.nextNode(); ) t.push(n.currentNode);
439
+ return t;
440
+ }
441
+ function se(e, t) {
442
+ for (const n of e)
443
+ if (!rt(n, { upTo: t })) return n;
444
+ }
445
+ function rt(e, { upTo: t }) {
446
+ if (getComputedStyle(e).visibility === "hidden") return !0;
447
+ for (; e; ) {
448
+ if (t !== void 0 && e === t) return !1;
449
+ if (getComputedStyle(e).display === "none") return !0;
450
+ e = e.parentElement;
451
+ }
452
+ return !1;
453
+ }
454
+ function ot(e) {
455
+ return e instanceof HTMLInputElement && "select" in e;
456
+ }
457
+ function O(e, { select: t = !1 } = {}) {
458
+ if (e && e.focus) {
459
+ const n = document.activeElement;
460
+ e.focus({ preventScroll: !0 }), e !== n && ot(e) && t && e.select();
461
+ }
462
+ }
463
+ var ue = at();
464
+ function at() {
465
+ let e = [];
466
+ return {
467
+ add(t) {
468
+ const n = e[0];
469
+ t !== n && n?.pause(), e = le(e, t), e.unshift(t);
470
+ },
471
+ remove(t) {
472
+ e = le(e, t), e[0]?.resume();
473
+ }
474
+ };
475
+ }
476
+ function le(e, t) {
477
+ const n = [...e], r = n.indexOf(t);
478
+ return r !== -1 && n.splice(r, 1), n;
479
+ }
480
+ function it(e) {
481
+ return e.filter((t) => t.tagName !== "A");
482
+ }
483
+ var ct = "Portal", st = a.forwardRef((e, t) => {
484
+ const { container: n, ...r } = e, [o, c] = a.useState(!1);
485
+ k(() => c(!0), []);
486
+ const u = n || o && globalThis?.document?.body;
487
+ return u ? Le.createPortal(/* @__PURE__ */ A(X.div, { ...r, ref: t }), u) : null;
488
+ });
489
+ st.displayName = ct;
490
+ var q = 0;
491
+ function rn() {
492
+ a.useEffect(() => {
493
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
494
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? de()), document.body.insertAdjacentElement("beforeend", e[1] ?? de()), q++, () => {
495
+ q === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), q--;
496
+ };
497
+ }, []);
498
+ }
499
+ function de() {
500
+ const e = document.createElement("span");
501
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
502
+ }
503
+ var R = function() {
504
+ return R = Object.assign || function(t) {
505
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
506
+ n = arguments[r];
507
+ for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
508
+ }
509
+ return t;
510
+ }, R.apply(this, arguments);
511
+ };
512
+ function be(e, t) {
513
+ var n = {};
514
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
515
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
516
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
517
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
518
+ return n;
519
+ }
520
+ function ut(e, t, n) {
521
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, c; r < o; r++)
522
+ (c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
523
+ return e.concat(c || Array.prototype.slice.call(t));
524
+ }
525
+ var K = "right-scroll-bar-position", $ = "width-before-scroll-bar", lt = "with-scroll-bars-hidden", dt = "--removed-body-scroll-bar-size";
526
+ function Q(e, t) {
527
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
528
+ }
529
+ function ft(e, t) {
530
+ var n = Ae(function() {
531
+ return {
532
+ // value
533
+ value: e,
534
+ // last callback
535
+ callback: t,
536
+ // "memoized" public interface
537
+ facade: {
538
+ get current() {
539
+ return n.value;
540
+ },
541
+ set current(r) {
542
+ var o = n.value;
543
+ o !== r && (n.value = r, n.callback(r, o));
544
+ }
545
+ }
546
+ };
547
+ })[0];
548
+ return n.callback = t, n.facade;
549
+ }
550
+ var vt = typeof window < "u" ? a.useLayoutEffect : a.useEffect, fe = /* @__PURE__ */ new WeakMap();
551
+ function mt(e, t) {
552
+ var n = ft(null, function(r) {
553
+ return e.forEach(function(o) {
554
+ return Q(o, r);
555
+ });
556
+ });
557
+ return vt(function() {
558
+ var r = fe.get(n);
559
+ if (r) {
560
+ var o = new Set(r), c = new Set(e), u = n.current;
561
+ o.forEach(function(i) {
562
+ c.has(i) || Q(i, null);
563
+ }), c.forEach(function(i) {
564
+ o.has(i) || Q(i, u);
565
+ });
566
+ }
567
+ fe.set(n, e);
568
+ }, [e]), n;
569
+ }
570
+ function ht(e) {
571
+ return e;
572
+ }
573
+ function pt(e, t) {
574
+ t === void 0 && (t = ht);
575
+ var n = [], r = !1, o = {
576
+ read: function() {
577
+ if (r)
578
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
579
+ return n.length ? n[n.length - 1] : e;
580
+ },
581
+ useMedium: function(c) {
582
+ var u = t(c, r);
583
+ return n.push(u), function() {
584
+ n = n.filter(function(i) {
585
+ return i !== u;
586
+ });
587
+ };
588
+ },
589
+ assignSyncMedium: function(c) {
590
+ for (r = !0; n.length; ) {
591
+ var u = n;
592
+ n = [], u.forEach(c);
593
+ }
594
+ n = {
595
+ push: function(i) {
596
+ return c(i);
597
+ },
598
+ filter: function() {
599
+ return n;
600
+ }
601
+ };
602
+ },
603
+ assignMedium: function(c) {
604
+ r = !0;
605
+ var u = [];
606
+ if (n.length) {
607
+ var i = n;
608
+ n = [], i.forEach(c), u = n;
609
+ }
610
+ var v = function() {
611
+ var d = u;
612
+ u = [], d.forEach(c);
613
+ }, l = function() {
614
+ return Promise.resolve().then(v);
615
+ };
616
+ l(), n = {
617
+ push: function(d) {
618
+ u.push(d), l();
619
+ },
620
+ filter: function(d) {
621
+ return u = u.filter(d), n;
622
+ }
623
+ };
624
+ }
625
+ };
626
+ return o;
627
+ }
628
+ function yt(e) {
629
+ e === void 0 && (e = {});
630
+ var t = pt(null);
631
+ return t.options = R({ async: !0, ssr: !1 }, e), t;
632
+ }
633
+ var Se = function(e) {
634
+ var t = e.sideCar, n = be(e, ["sideCar"]);
635
+ if (!t)
636
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
637
+ var r = t.read();
638
+ if (!r)
639
+ throw new Error("Sidecar medium not found");
640
+ return a.createElement(r, R({}, n));
641
+ };
642
+ Se.isSideCarExport = !0;
643
+ function Et(e, t) {
644
+ return e.useMedium(t), Se;
645
+ }
646
+ var we = yt(), J = function() {
647
+ }, Y = a.forwardRef(function(e, t) {
648
+ var n = a.useRef(null), r = a.useState({
649
+ onScrollCapture: J,
650
+ onWheelCapture: J,
651
+ onTouchMoveCapture: J
652
+ }), o = r[0], c = r[1], u = e.forwardProps, i = e.children, v = e.className, l = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, p = e.noRelative, w = e.noIsolation, s = e.inert, h = e.allowPinchZoom, y = e.as, g = y === void 0 ? "div" : y, b = e.gapMode, S = be(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, P = mt([n, t]), E = R(R({}, S), o);
653
+ return a.createElement(
654
+ a.Fragment,
655
+ null,
656
+ d && a.createElement(C, { sideCar: we, removeScrollBar: l, shards: f, noRelative: p, noIsolation: w, inert: s, setCallbacks: c, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
657
+ u ? a.cloneElement(a.Children.only(i), R(R({}, E), { ref: P })) : a.createElement(g, R({}, E, { className: v, ref: P }), i)
658
+ );
659
+ });
660
+ Y.defaultProps = {
661
+ enabled: !0,
662
+ removeScrollBar: !0,
663
+ inert: !1
664
+ };
665
+ Y.classNames = {
666
+ fullWidth: $,
667
+ zeroRight: K
668
+ };
669
+ var gt = function() {
670
+ if (typeof __webpack_nonce__ < "u")
671
+ return __webpack_nonce__;
672
+ };
673
+ function bt() {
674
+ if (!document)
675
+ return null;
676
+ var e = document.createElement("style");
677
+ e.type = "text/css";
678
+ var t = gt();
679
+ return t && e.setAttribute("nonce", t), e;
680
+ }
681
+ function St(e, t) {
682
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
683
+ }
684
+ function wt(e) {
685
+ var t = document.head || document.getElementsByTagName("head")[0];
686
+ t.appendChild(e);
687
+ }
688
+ var Ct = function() {
689
+ var e = 0, t = null;
690
+ return {
691
+ add: function(n) {
692
+ e == 0 && (t = bt()) && (St(t, n), wt(t)), e++;
693
+ },
694
+ remove: function() {
695
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
696
+ }
697
+ };
698
+ }, Pt = function() {
699
+ var e = Ct();
700
+ return function(t, n) {
701
+ a.useEffect(function() {
702
+ return e.add(t), function() {
703
+ e.remove();
704
+ };
705
+ }, [t && n]);
706
+ };
707
+ }, Ce = function() {
708
+ var e = Pt(), t = function(n) {
709
+ var r = n.styles, o = n.dynamic;
710
+ return e(r, o), null;
711
+ };
712
+ return t;
713
+ }, Rt = {
714
+ left: 0,
715
+ top: 0,
716
+ right: 0,
717
+ gap: 0
718
+ }, ee = function(e) {
719
+ return parseInt(e || "", 10) || 0;
720
+ }, Ot = function(e) {
721
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
722
+ return [ee(n), ee(r), ee(o)];
723
+ }, Nt = function(e) {
724
+ if (e === void 0 && (e = "margin"), typeof window > "u")
725
+ return Rt;
726
+ var t = Ot(e), n = document.documentElement.clientWidth, r = window.innerWidth;
727
+ return {
728
+ left: t[0],
729
+ top: t[1],
730
+ right: t[2],
731
+ gap: Math.max(0, r - n + t[2] - t[0])
732
+ };
733
+ }, At = Ce(), x = "data-scroll-locked", Tt = function(e, t, n, r) {
734
+ var o = e.left, c = e.top, u = e.right, i = e.gap;
735
+ return n === void 0 && (n = "margin"), `
736
+ .`.concat(lt, ` {
737
+ overflow: hidden `).concat(r, `;
738
+ padding-right: `).concat(i, "px ").concat(r, `;
739
+ }
740
+ body[`).concat(x, `] {
741
+ overflow: hidden `).concat(r, `;
742
+ overscroll-behavior: contain;
743
+ `).concat([
744
+ t && "position: relative ".concat(r, ";"),
745
+ n === "margin" && `
746
+ padding-left: `.concat(o, `px;
747
+ padding-top: `).concat(c, `px;
748
+ padding-right: `).concat(u, `px;
749
+ margin-left:0;
750
+ margin-top:0;
751
+ margin-right: `).concat(i, "px ").concat(r, `;
752
+ `),
753
+ n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
754
+ ].filter(Boolean).join(""), `
755
+ }
756
+
757
+ .`).concat(K, ` {
758
+ right: `).concat(i, "px ").concat(r, `;
759
+ }
760
+
761
+ .`).concat($, ` {
762
+ margin-right: `).concat(i, "px ").concat(r, `;
763
+ }
764
+
765
+ .`).concat(K, " .").concat(K, ` {
766
+ right: 0 `).concat(r, `;
767
+ }
768
+
769
+ .`).concat($, " .").concat($, ` {
770
+ margin-right: 0 `).concat(r, `;
771
+ }
772
+
773
+ body[`).concat(x, `] {
774
+ `).concat(dt, ": ").concat(i, `px;
775
+ }
776
+ `);
777
+ }, ve = function() {
778
+ var e = parseInt(document.body.getAttribute(x) || "0", 10);
779
+ return isFinite(e) ? e : 0;
780
+ }, Mt = function() {
781
+ a.useEffect(function() {
782
+ return document.body.setAttribute(x, (ve() + 1).toString()), function() {
783
+ var e = ve() - 1;
784
+ e <= 0 ? document.body.removeAttribute(x) : document.body.setAttribute(x, e.toString());
785
+ };
786
+ }, []);
787
+ }, Lt = function(e) {
788
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
789
+ Mt();
790
+ var c = a.useMemo(function() {
791
+ return Nt(o);
792
+ }, [o]);
793
+ return a.createElement(At, { styles: Tt(c, !t, o, n ? "" : "!important") });
794
+ }, re = !1;
795
+ if (typeof window < "u")
796
+ try {
797
+ var B = Object.defineProperty({}, "passive", {
798
+ get: function() {
799
+ return re = !0, !0;
800
+ }
801
+ });
802
+ window.addEventListener("test", B, B), window.removeEventListener("test", B, B);
803
+ } catch {
804
+ re = !1;
805
+ }
806
+ var M = re ? { passive: !1 } : !1, Dt = function(e) {
807
+ return e.tagName === "TEXTAREA";
808
+ }, Pe = function(e, t) {
809
+ if (!(e instanceof Element))
810
+ return !1;
811
+ var n = window.getComputedStyle(e);
812
+ return (
813
+ // not-not-scrollable
814
+ n[t] !== "hidden" && // contains scroll inside self
815
+ !(n.overflowY === n.overflowX && !Dt(e) && n[t] === "visible")
816
+ );
817
+ }, xt = function(e) {
818
+ return Pe(e, "overflowY");
819
+ }, It = function(e) {
820
+ return Pe(e, "overflowX");
821
+ }, me = function(e, t) {
822
+ var n = t.ownerDocument, r = t;
823
+ do {
824
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
825
+ var o = Re(e, r);
826
+ if (o) {
827
+ var c = Oe(e, r), u = c[1], i = c[2];
828
+ if (u > i)
829
+ return !0;
830
+ }
831
+ r = r.parentNode;
832
+ } while (r && r !== n.body);
833
+ return !1;
834
+ }, kt = function(e) {
835
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
836
+ return [
837
+ t,
838
+ n,
839
+ r
840
+ ];
841
+ }, Ft = function(e) {
842
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
843
+ return [
844
+ t,
845
+ n,
846
+ r
847
+ ];
848
+ }, Re = function(e, t) {
849
+ return e === "v" ? xt(t) : It(t);
850
+ }, Oe = function(e, t) {
851
+ return e === "v" ? kt(t) : Ft(t);
852
+ }, Wt = function(e, t) {
853
+ return e === "h" && t === "rtl" ? -1 : 1;
854
+ }, _t = function(e, t, n, r, o) {
855
+ var c = Wt(e, window.getComputedStyle(t).direction), u = c * r, i = n.target, v = t.contains(i), l = !1, d = u > 0, f = 0, m = 0;
856
+ do {
857
+ if (!i)
858
+ break;
859
+ var p = Oe(e, i), w = p[0], s = p[1], h = p[2], y = s - h - c * w;
860
+ (w || y) && Re(e, i) && (f += y, m += w);
861
+ var g = i.parentNode;
862
+ i = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
863
+ } while (
864
+ // portaled content
865
+ !v && i !== document.body || // self content
866
+ v && (t.contains(i) || t === i)
867
+ );
868
+ return (d && Math.abs(f) < 1 || !d && Math.abs(m) < 1) && (l = !0), l;
869
+ }, U = function(e) {
870
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
871
+ }, he = function(e) {
872
+ return [e.deltaX, e.deltaY];
873
+ }, pe = function(e) {
874
+ return e && "current" in e ? e.current : e;
875
+ }, Bt = function(e, t) {
876
+ return e[0] === t[0] && e[1] === t[1];
877
+ }, Ut = function(e) {
878
+ return `
879
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
880
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
881
+ `);
882
+ }, jt = 0, L = [];
883
+ function Ht(e) {
884
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(jt++)[0], c = a.useState(Ce)[0], u = a.useRef(e);
885
+ a.useEffect(function() {
886
+ u.current = e;
887
+ }, [e]), a.useEffect(function() {
888
+ if (e.inert) {
889
+ document.body.classList.add("block-interactivity-".concat(o));
890
+ var s = ut([e.lockRef.current], (e.shards || []).map(pe), !0).filter(Boolean);
891
+ return s.forEach(function(h) {
892
+ return h.classList.add("allow-interactivity-".concat(o));
893
+ }), function() {
894
+ document.body.classList.remove("block-interactivity-".concat(o)), s.forEach(function(h) {
895
+ return h.classList.remove("allow-interactivity-".concat(o));
896
+ });
897
+ };
898
+ }
899
+ }, [e.inert, e.lockRef.current, e.shards]);
900
+ var i = a.useCallback(function(s, h) {
901
+ if ("touches" in s && s.touches.length === 2 || s.type === "wheel" && s.ctrlKey)
902
+ return !u.current.allowPinchZoom;
903
+ var y = U(s), g = n.current, b = "deltaX" in s ? s.deltaX : g[0] - y[0], S = "deltaY" in s ? s.deltaY : g[1] - y[1], C, P = s.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
904
+ if ("touches" in s && E === "h" && P.type === "range")
905
+ return !1;
906
+ var N = window.getSelection(), T = N && N.anchorNode, I = T ? T === P || T.contains(P) : !1;
907
+ if (I)
908
+ return !1;
909
+ var W = me(E, P);
910
+ if (!W)
911
+ return !0;
912
+ if (W ? C = E : (C = E === "v" ? "h" : "v", W = me(E, P)), !W)
913
+ return !1;
914
+ if (!r.current && "changedTouches" in s && (b || S) && (r.current = C), !C)
915
+ return !0;
916
+ var oe = r.current || C;
917
+ return _t(oe, h, s, oe === "h" ? b : S);
918
+ }, []), v = a.useCallback(function(s) {
919
+ var h = s;
920
+ if (!(!L.length || L[L.length - 1] !== c)) {
921
+ var y = "deltaY" in h ? he(h) : U(h), g = t.current.filter(function(C) {
922
+ return C.name === h.type && (C.target === h.target || h.target === C.shadowParent) && Bt(C.delta, y);
923
+ })[0];
924
+ if (g && g.should) {
925
+ h.cancelable && h.preventDefault();
926
+ return;
927
+ }
928
+ if (!g) {
929
+ var b = (u.current.shards || []).map(pe).filter(Boolean).filter(function(C) {
930
+ return C.contains(h.target);
931
+ }), S = b.length > 0 ? i(h, b[0]) : !u.current.noIsolation;
932
+ S && h.cancelable && h.preventDefault();
933
+ }
934
+ }
935
+ }, []), l = a.useCallback(function(s, h, y, g) {
936
+ var b = { name: s, delta: h, target: y, should: g, shadowParent: Kt(y) };
937
+ t.current.push(b), setTimeout(function() {
938
+ t.current = t.current.filter(function(S) {
939
+ return S !== b;
940
+ });
941
+ }, 1);
942
+ }, []), d = a.useCallback(function(s) {
943
+ n.current = U(s), r.current = void 0;
944
+ }, []), f = a.useCallback(function(s) {
945
+ l(s.type, he(s), s.target, i(s, e.lockRef.current));
946
+ }, []), m = a.useCallback(function(s) {
947
+ l(s.type, U(s), s.target, i(s, e.lockRef.current));
948
+ }, []);
949
+ a.useEffect(function() {
950
+ return L.push(c), e.setCallbacks({
951
+ onScrollCapture: f,
952
+ onWheelCapture: f,
953
+ onTouchMoveCapture: m
954
+ }), document.addEventListener("wheel", v, M), document.addEventListener("touchmove", v, M), document.addEventListener("touchstart", d, M), function() {
955
+ L = L.filter(function(s) {
956
+ return s !== c;
957
+ }), document.removeEventListener("wheel", v, M), document.removeEventListener("touchmove", v, M), document.removeEventListener("touchstart", d, M);
958
+ };
959
+ }, []);
960
+ var p = e.removeScrollBar, w = e.inert;
961
+ return a.createElement(
962
+ a.Fragment,
963
+ null,
964
+ w ? a.createElement(c, { styles: Ut(o) }) : null,
965
+ p ? a.createElement(Lt, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
966
+ );
967
+ }
968
+ function Kt(e) {
969
+ for (var t = null; e !== null; )
970
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
971
+ return t;
972
+ }
973
+ const $t = Et(we, Ht);
974
+ var Vt = a.forwardRef(function(e, t) {
975
+ return a.createElement(Y, R({}, e, { ref: t, sideCar: $t }));
976
+ });
977
+ Vt.classNames = Y.classNames;
978
+ var Xt = function(e) {
979
+ if (typeof document > "u")
980
+ return null;
981
+ var t = Array.isArray(e) ? e[0] : e;
982
+ return t.ownerDocument.body;
983
+ }, D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), H = {}, te = 0, Ne = function(e) {
984
+ return e && (e.host || Ne(e.parentNode));
985
+ }, Yt = function(e, t) {
986
+ return t.map(function(n) {
987
+ if (e.contains(n))
988
+ return n;
989
+ var r = Ne(n);
990
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
991
+ }).filter(function(n) {
992
+ return !!n;
993
+ });
994
+ }, zt = function(e, t, n, r) {
995
+ var o = Yt(t, Array.isArray(e) ? e : [e]);
996
+ H[n] || (H[n] = /* @__PURE__ */ new WeakMap());
997
+ var c = H[n], u = [], i = /* @__PURE__ */ new Set(), v = new Set(o), l = function(f) {
998
+ !f || i.has(f) || (i.add(f), l(f.parentNode));
999
+ };
1000
+ o.forEach(l);
1001
+ var d = function(f) {
1002
+ !f || v.has(f) || Array.prototype.forEach.call(f.children, function(m) {
1003
+ if (i.has(m))
1004
+ d(m);
1005
+ else
1006
+ try {
1007
+ var p = m.getAttribute(r), w = p !== null && p !== "false", s = (D.get(m) || 0) + 1, h = (c.get(m) || 0) + 1;
1008
+ D.set(m, s), c.set(m, h), u.push(m), s === 1 && w && j.set(m, !0), h === 1 && m.setAttribute(n, "true"), w || m.setAttribute(r, "true");
1009
+ } catch (y) {
1010
+ console.error("aria-hidden: cannot operate on ", m, y);
1011
+ }
1012
+ });
1013
+ };
1014
+ return d(t), i.clear(), te++, function() {
1015
+ u.forEach(function(f) {
1016
+ var m = D.get(f) - 1, p = c.get(f) - 1;
1017
+ D.set(f, m), c.set(f, p), m || (j.has(f) || f.removeAttribute(r), j.delete(f)), p || f.removeAttribute(n);
1018
+ }), te--, te || (D = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), H = {});
1019
+ };
1020
+ }, on = function(e, t, n) {
1021
+ n === void 0 && (n = "data-aria-hidden");
1022
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Xt(e);
1023
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), zt(r, o, n, "aria-hidden")) : function() {
1024
+ return null;
1025
+ };
1026
+ };
1027
+ export {
1028
+ ze as D,
1029
+ et as F,
1030
+ X as P,
1031
+ Vt as R,
1032
+ F as a,
1033
+ tn as b,
1034
+ en as c,
1035
+ nn as d,
1036
+ z as e,
1037
+ Be as f,
1038
+ st as g,
1039
+ on as h,
1040
+ rn as i,
1041
+ Jt as j,
1042
+ k as u
1043
+ };