@pfct/purple 1.16.2 → 1.17.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.
Files changed (166) hide show
  1. package/dist/chunks/Accordion.DYya7dTN.js +1 -0
  2. package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
  3. package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
  4. package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
  5. package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
  6. package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
  7. package/dist/chunks/Switch.D7T_jbtK.js +207 -0
  8. package/dist/chunks/Switch.DUWZASi8.js +1 -0
  9. package/dist/chunks/Toast.Bnm65xmy.js +1 -0
  10. package/dist/chunks/Toast.C7OnkFjA.js +698 -0
  11. package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
  12. package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
  13. package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
  14. package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
  15. package/dist/chunks/dist.AclwPuO5.js +1 -0
  16. package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
  17. package/dist/chunks/dist.B4GZ3aX4.js +111 -0
  18. package/dist/chunks/dist.BE2xxxwt.js +96 -0
  19. package/dist/chunks/dist.Ba6P-3sU.js +1 -0
  20. package/dist/chunks/dist.BaV_5zx8.js +186 -0
  21. package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
  22. package/dist/chunks/dist.BpQ7SpeW.js +227 -0
  23. package/dist/chunks/dist.Bui5aGSB.js +197 -0
  24. package/dist/chunks/dist.CBOTGT1c.js +1 -0
  25. package/dist/chunks/dist.CIvT5XE_.js +1 -0
  26. package/dist/chunks/dist.CKG-hzoQ.js +1 -0
  27. package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
  28. package/dist/chunks/dist.CcSbgqVt.js +1 -0
  29. package/dist/chunks/dist.Cf8FjzvS.js +1 -0
  30. package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
  31. package/dist/chunks/dist.D7s7BenH.js +1 -0
  32. package/dist/chunks/dist.DQ5uOc4y.js +1 -0
  33. package/dist/chunks/dist.DWzqVshx.js +16 -0
  34. package/dist/chunks/dist.DfLaHIBc.js +1 -0
  35. package/dist/chunks/dist.DomaJxrX.js +1 -0
  36. package/dist/chunks/dist.e7n2cf43.js +144 -0
  37. package/dist/chunks/dist.gUJz6qTg.js +185 -0
  38. package/dist/chunks/dist.zJ3rbM0i.js +1 -0
  39. package/dist/chunks/drawer.Cots0_ea.js +7 -0
  40. package/dist/chunks/drawer.ftfBm36h.js +1836 -0
  41. package/dist/chunks/es2015.CfvYaoE5.js +41 -0
  42. package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
  43. package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
  44. package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
  45. package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
  46. package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
  47. package/dist/components/Accordion/index.cjs.js +1 -1
  48. package/dist/components/Accordion/index.esm.js +1 -1
  49. package/dist/components/Control/Switch/index.cjs.js +1 -1
  50. package/dist/components/Control/Switch/index.esm.js +1 -1
  51. package/dist/components/Control/index.cjs.js +1 -1
  52. package/dist/components/Control/index.esm.js +2 -2
  53. package/dist/components/Divider/index.cjs.js +1 -1
  54. package/dist/components/Divider/index.esm.js +1 -1
  55. package/dist/components/LegacyModal/index.cjs.js +1 -1
  56. package/dist/components/LegacyModal/index.esm.js +1 -1
  57. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  58. package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
  59. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  60. package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
  61. package/dist/components/Modal/index.cjs.js +1 -1
  62. package/dist/components/Modal/index.esm.js +1 -1
  63. package/dist/components/Pagination/index.cjs.js +1 -1
  64. package/dist/components/Pagination/index.esm.js +1 -1
  65. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  66. package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
  67. package/dist/components/Tabs/index.cjs.js +1 -1
  68. package/dist/components/Tabs/index.esm.js +1 -1
  69. package/dist/components/Tag/index.cjs.js +1 -1
  70. package/dist/components/Tag/index.esm.js +1 -1
  71. package/dist/components/Terms/index.cjs.js +1 -1
  72. package/dist/components/Terms/index.esm.js +3 -3
  73. package/dist/components/Toast/index.cjs.js +1 -1
  74. package/dist/components/Toast/index.esm.js +1 -1
  75. package/dist/components/index.cjs.js +1 -1
  76. package/dist/components/index.esm.js +8 -8
  77. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  78. package/dist/components/ui/bottomSheet.esm.js +1 -1
  79. package/dist/components/ui/button.cjs.js +1 -1
  80. package/dist/components/ui/button.esm.js +1 -1
  81. package/dist/components/ui/checkbox.cjs.js +1 -1
  82. package/dist/components/ui/checkbox.esm.js +1 -1
  83. package/dist/components/ui/dialog.cjs.js +1 -1
  84. package/dist/components/ui/dialog.esm.js +1 -1
  85. package/dist/components/ui/drawer.cjs.js +1 -1
  86. package/dist/components/ui/drawer.esm.js +1 -1
  87. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  88. package/dist/components/ui/impact-tooltip.esm.js +1 -1
  89. package/dist/components/ui/select.cjs.js +1 -1
  90. package/dist/components/ui/select.esm.js +3 -3
  91. package/dist/components/ui/tooltip.cjs.js +1 -1
  92. package/dist/components/ui/tooltip.esm.js +1 -1
  93. package/dist/components/ui/typography.cjs.js +1 -1
  94. package/dist/components/ui/typography.esm.js +1 -1
  95. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  96. package/dist/icons/src/aliases/aliases.d.ts +1 -1
  97. package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
  98. package/dist/icons/src/aliases/aliases.esm.js +3 -3
  99. package/dist/icons/src/aliases/index.cjs.js +1 -1
  100. package/dist/icons/src/aliases/index.esm.js +3 -3
  101. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  102. package/dist/icons/src/aliases/prefixed.d.ts +9 -9
  103. package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
  104. package/dist/icons/src/aliases/prefixed.esm.js +3 -3
  105. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  106. package/dist/icons/src/aliases/suffixed.d.ts +10 -10
  107. package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
  108. package/dist/icons/src/aliases/suffixed.esm.js +3 -3
  109. package/dist/icons/src/icons/index.cjs.js +1 -1
  110. package/dist/icons/src/icons/index.esm.js +3 -3
  111. package/dist/index.cjs.js +1 -1
  112. package/dist/index.esm.js +12 -12
  113. package/dist/library/DotLottie/index.cjs.js +1 -1
  114. package/dist/library/DotLottie/index.d.ts +13 -0
  115. package/dist/library/DotLottie/index.d.ts.map +1 -1
  116. package/dist/library/DotLottie/index.esm.js +1 -1
  117. package/dist/library/Lottie/index.cjs.js +1 -1
  118. package/dist/library/Lottie/index.d.ts +13 -0
  119. package/dist/library/Lottie/index.d.ts.map +1 -1
  120. package/dist/library/Lottie/index.esm.js +25 -25
  121. package/dist/library/index.cjs.js +1 -1
  122. package/dist/library/index.esm.js +1 -1
  123. package/package.json +4 -4
  124. package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
  125. package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
  126. package/dist/chunks/Divider.BIS4pXEy.js +0 -1
  127. package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
  128. package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
  129. package/dist/chunks/Switch.C6xwIjJR.js +0 -1
  130. package/dist/chunks/Switch.D_myxCrS.js +0 -200
  131. package/dist/chunks/Toast.Cjdk4za6.js +0 -1
  132. package/dist/chunks/Toast.D1-VfeA2.js +0 -685
  133. package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
  134. package/dist/chunks/dist.B2wZmrK1.js +0 -98
  135. package/dist/chunks/dist.B8tpQk-4.js +0 -1
  136. package/dist/chunks/dist.BC0-iqKU.js +0 -1
  137. package/dist/chunks/dist.BGATFz6w.js +0 -1
  138. package/dist/chunks/dist.BQIeYu70.js +0 -1
  139. package/dist/chunks/dist.BWsA5f1f.js +0 -1
  140. package/dist/chunks/dist.BixLWWwb.js +0 -71
  141. package/dist/chunks/dist.Bxqi8VAi.js +0 -1
  142. package/dist/chunks/dist.C8FJXTu6.js +0 -10
  143. package/dist/chunks/dist.C8NniehT.js +0 -1
  144. package/dist/chunks/dist.C8k7jQIp.js +0 -87
  145. package/dist/chunks/dist.CEJ-WCY_.js +0 -44
  146. package/dist/chunks/dist.CIQdvun-.js +0 -1
  147. package/dist/chunks/dist.Cff8LOoN.js +0 -67
  148. package/dist/chunks/dist.CmRTDXGG.js +0 -1
  149. package/dist/chunks/dist.CwMFqhEQ.js +0 -146
  150. package/dist/chunks/dist.CwWM0zXK.js +0 -25
  151. package/dist/chunks/dist.CyhalHxz.js +0 -1
  152. package/dist/chunks/dist.Czpint58.js +0 -1
  153. package/dist/chunks/dist.D3cPoDZ_.js +0 -194
  154. package/dist/chunks/dist.D4mQo5QB.js +0 -1
  155. package/dist/chunks/dist.D5ataprQ.js +0 -1
  156. package/dist/chunks/dist.D6A3yc_d.js +0 -11
  157. package/dist/chunks/dist.DKOi9kq6.js +0 -1
  158. package/dist/chunks/dist.DhCw5vjE.js +0 -1
  159. package/dist/chunks/dist.DrfVZqiO.js +0 -186
  160. package/dist/chunks/dist.SHmlpKFY.js +0 -1
  161. package/dist/chunks/dist.kg7EEYPp.js +0 -12
  162. package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
  163. package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
  164. package/dist/chunks/es2015.D2emqwtq.js +0 -41
  165. package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
  166. package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
@@ -1,194 +0,0 @@
1
- import { n as e, t } from "./dist.Cff8LOoN.js";
2
- import { t as n } from "./dist.CwWM0zXK.js";
3
- import { n as r } from "./dist.BixLWWwb.js";
4
- import { t as i } from "./dist.CEJ-WCY_.js";
5
- import { t as a } from "./dist.CDZCWPu4.js";
6
- import { t as o } from "./dist.C8k7jQIp.js";
7
- import { t as s } from "./dist.kg7EEYPp.js";
8
- import { n as c, r as l, t as u } from "./dist.DrfVZqiO.js";
9
- import { t as d } from "./dist.CwMFqhEQ.js";
10
- import { n as f, r as p, t as m } from "./es2015.ByVyszJo.js";
11
- import * as h from "react";
12
- import { Fragment as g, jsx as _ } from "react/jsx-runtime";
13
- //#region node_modules/@radix-ui/react-dialog/dist/index.mjs
14
- var v = "Dialog", [y, b] = e(v), [x, S] = y(v), C = (e) => {
15
- let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = i({
16
- prop: r,
17
- defaultProp: a ?? !1,
18
- onChange: o,
19
- caller: v
20
- });
21
- return /* @__PURE__ */ _(x, {
22
- scope: t,
23
- triggerRef: l,
24
- contentRef: u,
25
- contentId: s(),
26
- titleId: s(),
27
- descriptionId: s(),
28
- open: d,
29
- onOpenChange: f,
30
- onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
31
- modal: c,
32
- children: n
33
- });
34
- };
35
- C.displayName = v;
36
- var w = "DialogTrigger", T = h.forwardRef((e, r) => {
37
- let { __scopeDialog: i, ...o } = e, s = S(w, i), c = n(r, s.triggerRef);
38
- return /* @__PURE__ */ _(a.button, {
39
- type: "button",
40
- "aria-haspopup": "dialog",
41
- "aria-expanded": s.open,
42
- "aria-controls": s.open ? s.contentId : void 0,
43
- "data-state": G(s.open),
44
- ...o,
45
- ref: c,
46
- onClick: t(e.onClick, s.onOpenToggle)
47
- });
48
- });
49
- T.displayName = w;
50
- var E = "DialogPortal", [D, O] = y(E, { forceMount: void 0 }), k = (e) => {
51
- let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
52
- return /* @__PURE__ */ _(D, {
53
- scope: t,
54
- forceMount: n,
55
- children: h.Children.map(r, (e) => /* @__PURE__ */ _(o, {
56
- present: n || a.open,
57
- children: /* @__PURE__ */ _(u, {
58
- asChild: !0,
59
- container: i,
60
- children: e
61
- })
62
- }))
63
- });
64
- };
65
- k.displayName = E;
66
- var A = "DialogOverlay", j = h.forwardRef((e, t) => {
67
- let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
68
- return a.modal ? /* @__PURE__ */ _(o, {
69
- present: r || a.open,
70
- children: /* @__PURE__ */ _(N, {
71
- ...i,
72
- ref: t
73
- })
74
- }) : null;
75
- });
76
- j.displayName = A;
77
- var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
78
- let { __scopeDialog: r, ...i } = e, o = S(A, r), s = n(t, l());
79
- return /* @__PURE__ */ _(f, {
80
- as: M,
81
- allowPinchZoom: !0,
82
- shards: [o.contentRef],
83
- children: /* @__PURE__ */ _(a.div, {
84
- "data-state": G(o.open),
85
- ...i,
86
- ref: s,
87
- style: {
88
- pointerEvents: "auto",
89
- ...i.style
90
- }
91
- })
92
- });
93
- }), P = "DialogContent", F = h.forwardRef((e, t) => {
94
- let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
95
- return /* @__PURE__ */ _(o, {
96
- present: r || a.open,
97
- children: a.modal ? /* @__PURE__ */ _(I, {
98
- ...i,
99
- ref: t
100
- }) : /* @__PURE__ */ _(L, {
101
- ...i,
102
- ref: t
103
- })
104
- });
105
- });
106
- F.displayName = P;
107
- var I = h.forwardRef((e, r) => {
108
- let i = S(P, e.__scopeDialog), a = h.useRef(null), o = n(r, i.contentRef, a);
109
- return h.useEffect(() => {
110
- let e = a.current;
111
- if (e) return m(e);
112
- }, []), /* @__PURE__ */ _(R, {
113
- ...e,
114
- ref: o,
115
- trapFocus: i.open,
116
- disableOutsidePointerEvents: i.open,
117
- onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
118
- e.preventDefault(), i.triggerRef.current?.focus();
119
- }),
120
- onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
121
- let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
122
- (t.button === 2 || n) && e.preventDefault();
123
- }),
124
- onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault())
125
- });
126
- }), L = h.forwardRef((e, t) => {
127
- let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
128
- return /* @__PURE__ */ _(R, {
129
- ...e,
130
- ref: t,
131
- trapFocus: !1,
132
- disableOutsidePointerEvents: !1,
133
- onCloseAutoFocus: (t) => {
134
- e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
135
- },
136
- onInteractOutside: (t) => {
137
- e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
138
- let a = t.target;
139
- n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
140
- }
141
- });
142
- }), R = h.forwardRef((e, t) => {
143
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = S(P, n);
144
- return p(), /* @__PURE__ */ _(g, { children: /* @__PURE__ */ _(d, {
145
- asChild: !0,
146
- loop: !0,
147
- trapped: r,
148
- onMountAutoFocus: i,
149
- onUnmountAutoFocus: a,
150
- children: /* @__PURE__ */ _(c, {
151
- role: "dialog",
152
- id: s.contentId,
153
- "aria-describedby": s.descriptionId,
154
- "aria-labelledby": s.titleId,
155
- "data-state": G(s.open),
156
- ...o,
157
- ref: t,
158
- deferPointerDownOutside: !0,
159
- onDismiss: () => s.onOpenChange(!1)
160
- })
161
- }) });
162
- }), z = "DialogTitle", B = h.forwardRef((e, t) => {
163
- let { __scopeDialog: n, ...r } = e, i = S(z, n);
164
- return /* @__PURE__ */ _(a.h2, {
165
- id: i.titleId,
166
- ...r,
167
- ref: t
168
- });
169
- });
170
- B.displayName = z;
171
- var V = "DialogDescription", H = h.forwardRef((e, t) => {
172
- let { __scopeDialog: n, ...r } = e, i = S(V, n);
173
- return /* @__PURE__ */ _(a.p, {
174
- id: i.descriptionId,
175
- ...r,
176
- ref: t
177
- });
178
- });
179
- H.displayName = V;
180
- var U = "DialogClose", W = h.forwardRef((e, n) => {
181
- let { __scopeDialog: r, ...i } = e, o = S(U, r);
182
- return /* @__PURE__ */ _(a.button, {
183
- type: "button",
184
- ...i,
185
- ref: n,
186
- onClick: t(e.onClick, () => o.onOpenChange(!1))
187
- });
188
- });
189
- W.displayName = U;
190
- function G(e) {
191
- return e ? "open" : "closed";
192
- }
193
- //#endregion
194
- export { j as a, T as c, H as i, W as n, k as o, F as r, B as s, C as t };
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.CIQdvun-.js");let n=require("react");n=e.r(n,1);function r(e,t){return n.useReducer((e,n)=>t[e][n]??e,e)}var i=e=>{let{present:t,children:r}=e,i=a(t),o=typeof r==`function`?r({present:i.isPresent}):n.Children.only(r),c=s(i.ref,l(o));return typeof r==`function`||i.isPresent?n.cloneElement(o,{ref:c}):null};i.displayName=`Presence`;function a(e){let[i,a]=n.useState(),o=n.useRef(null),s=n.useRef(e),l=n.useRef(`none`),u=n.useRef(void 0),[d,f]=r(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return n.useEffect(()=>{d===`mounted`?(l.current=u.current??c(o.current),u.current=void 0):l.current=`none`},[d]),t.n(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?(u.current=i,f(`MOUNT`)):i===`none`||t?.display===`none`?f(`UNMOUNT`):f(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,f]),t.n(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=c(o.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(f(`ANIMATION_END`),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{i.style.animationFillMode===`forwards`&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=c(o.current))};return i.addEventListener(`animationstart`,r),i.addEventListener(`animationcancel`,n),i.addEventListener(`animationend`,n),()=>{t.clearTimeout(e),i.removeEventListener(`animationstart`,r),i.removeEventListener(`animationcancel`,n),i.removeEventListener(`animationend`,n)}}else f(`ANIMATION_END`)},[i,f]),{isPresent:[`mounted`,`unmountSuspended`].includes(d),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,u.current=c(t)}else o.current=null;a(e)},[])}}function o(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function s(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=o(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():o(n[e],null)}}},[])}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;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)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.CIQdvun-.js"),i=require("./dist.CmRTDXGG.js"),a=require("./dist.Bxqi8VAi.js"),o=require("./dist.C8NniehT.js");let s=require("react");s=e.r(s,1);let c=require("react/jsx-runtime"),l=require("react-dom");l=e.r(l,1);var u=[`top`,`right`,`bottom`,`left`],d=Math.min,f=Math.max,p=Math.round,m=Math.floor,h=e=>({x:e,y:e}),g={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _(e,t,n){return f(e,d(t,n))}function v(e,t){return typeof e==`function`?e(t):e}function y(e){return e.split(`-`)[0]}function b(e){return e.split(`-`)[1]}function x(e){return e===`x`?`y`:`x`}function S(e){return e===`y`?`height`:`width`}function C(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function w(e){return x(C(e))}function T(e,t,n){n===void 0&&(n=!1);let r=b(e),i=w(e),a=S(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=P(o)),[o,P(o)]}function E(e){let t=P(e);return[D(e),t,D(t)]}function D(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var O=[`left`,`right`],k=[`right`,`left`],A=[`top`,`bottom`],j=[`bottom`,`top`];function M(e,t,n){switch(e){case`top`:case`bottom`:return n?t?k:O:t?O:k;case`left`:case`right`:return t?A:j;default:return[]}}function N(e,t,n,r){let i=b(e),a=M(y(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(D)))),a}function P(e){let t=y(e);return g[t]+e.slice(t.length)}function F(e){return{top:0,right:0,bottom:0,left:0,...e}}function I(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:F(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=C(t),o=w(t),s=S(o),c=y(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(b(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=v(t,e),p=I(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/y.y,bottom:(b.bottom-h.bottom+p.bottom)/y.y,left:(h.left-b.left+p.left)/y.x,right:(b.right-h.right+p.right)/y.x}}var B=50,V=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<B&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=R(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=v(e,t)||{};if(l==null)return{};let f=I(u),p={x:n,y:r},m=w(i),h=S(m),g=await o.getDimensions(l),y=m===`y`,x=y?`top`:`left`,C=y?`bottom`:`right`,T=y?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[T]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[T]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=d(f[x],j),N=d(f[C],j),P=M,F=k-g[h]-N,L=k/2-g[h]/2+A,R=_(P,L,F),z=!c.arrow&&b(i)!=null&&L!==R&&a.reference[h]/2-(L<P?M:N)-g[h]/2<0,B=z?L<P?L-P:L-F:0;return{[m]:p[m]+B,data:{[m]:R,centerOffset:L-R-B,...z&&{alignmentOffset:B}},reset:z}}}),te=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=v(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=y(r),_=C(o),b=y(o)===o,x=await(s.isRTL==null?void 0:s.isRTL(c.floating)),S=d||(b||!m?[P(o)]:E(o)),w=p!==`none`;!d&&w&&S.push(...N(o,m,p,x));let D=[o,...S],O=await s.detectOverflow(t,h),k=[],A=i.flip?.overflows||[];if(l&&k.push(O[g]),u){let e=T(r,a,x);k.push(O[e[0]],O[e[1]])}if(A=[...A,{placement:r,overflows:k}],!k.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=D[e];if(t&&(!(u===`alignment`&&_!==C(t))||A.every(e=>C(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(w){let t=C(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return u.some(t=>e[t]>=0)}var ie=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=v(e,t);switch(i){case`referenceHidden`:{let e=ne(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:re(e)}}}case`escaped`:{let e=ne(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:re(e)}}}default:return{}}}}},ae=new Set([`left`,`top`]);async function oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=y(n),s=b(n),c=C(n)===`y`,l=ae.has(o)?-1:1,u=a&&c?-1:1,d=v(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var se=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ce=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=v(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=C(y(i)),p=x(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=_(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=_(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},le=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=v(e,t),u={x:n,y:r},d=C(i),f=x(d),p=u[f],m=u[d],h=v(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ae.has(y(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=v(e,t),u=await o.detectOverflow(t,l),p=y(i),m=b(i),h=C(i)===`y`,{width:g,height:_}=a.floating,x,S;p===`top`||p===`bottom`?(x=p,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=p,x=m===`end`?`top`:`bottom`);let w=_-u.top-u.bottom,T=g-u.left-u.right,E=d(_-u[x],w),D=d(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),O&&!m){let e=f(u.left,0),t=f(u.right,0),n=f(u.top,0),r=f(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:f(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:f(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function de(){return typeof window<`u`}function H(e){return fe(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){return((fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fe(e){return de()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return de()?e instanceof Element||e instanceof U(e).Element:!1}function K(e){return de()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function pe(e){return!de()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function me(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function he(e){return/^(table|td|th)$/.test(H(e))}function ge(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var _e=/transform|translate|scale|rotate|perspective|filter/,ve=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,ye;function be(e){let t=G(e)?Y(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Se()&&(q(t.backdropFilter)||q(t.filter))||_e.test(t.willChange||``)||ve.test(t.contain||``)}function xe(e){let t=X(e);for(;K(t)&&!J(t);){if(be(t))return t;if(ge(t))return null;t=X(t)}return null}function Se(){return ye??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ye}function J(e){return/^(html|body|#document)$/.test(H(e))}function Y(e){return U(e).getComputedStyle(e)}function Ce(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(H(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pe(e)&&e.host||W(e);return pe(t)?t.host:t}function we(e){let t=X(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&me(t)?t:we(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=we(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=Te(a);return t.concat(a,a.visualViewport||[],me(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function Te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ee(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=p(n)!==a||p(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function De(e){return G(e)?e:e.contextElement}function Q(e){let t=De(e);if(!K(t))return h(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ee(t),o=(a?p(n.width):n.width)/r,s=(a?p(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Oe=h(0);function ke(e){let t=U(e);return!Se()||!t.visualViewport?Oe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=De(e),o=h(1);t&&(r?G(r)&&(o=Q(r)):o=Q(e));let s=Ae(a,n,r)?ke(a):h(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=U(a),t=r&&G(r)?U(r):r,n=e,i=Te(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=U(i),i=Te(n)}}return L({width:u,height:d,x:c,y:l})}function je(e,t){let n=Ce(e).scrollLeft;return t?t.left+n:$(W(e)).left+n}function Me(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-je(e,n),y:n.top+t.scrollTop}}function Ne(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=W(r),s=t?ge(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=h(1),u=h(0),d=K(r);if((d||!d&&!a)&&((H(r)!==`body`||me(o))&&(c=Ce(r)),d)){let e=$(r);l=Q(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Me(o,c):h(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Pe(e){return Array.from(e.getClientRects())}function Fe(e){let t=W(e),n=Ce(e),r=e.ownerDocument.body,i=f(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=f(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+je(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=f(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ie=25;function Le(e,t){let n=U(e),r=W(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Se();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=je(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ie&&(a-=o)}else l<=Ie&&(a+=l);return{width:a,height:o,x:s,y:c}}function Re(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=K(e)?Q(e):h(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ze(e,t,n){let r;if(t===`viewport`)r=Le(e,n);else if(t===`document`)r=Fe(W(e));else if(G(t))r=Re(t,n);else{let n=ke(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function Be(e,t){let n=X(e);return n===t||!G(n)||J(n)?!1:Y(n).position===`fixed`||Be(n,t)}function Ve(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>G(e)&&H(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;G(o)&&!J(o);){let t=Y(o),n=be(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||me(o)&&!n&&Be(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function He(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ge(t)?[]:Ve(t,this._c):[].concat(n),r],o=ze(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ze(t,a[e],i);s=f(n.top,s),c=d(n.right,c),l=d(n.bottom,l),u=f(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ue(e){let{width:t,height:n}=Ee(e);return{width:t,height:n}}function We(e,t,n){let r=K(t),i=W(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=h(0);function l(){c.x=je(i)}if(r||!r&&!a)if((H(t)!==`body`||me(i))&&(s=Ce(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Me(i,s):h(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ge(e){return Y(e).position===`static`}function Ke(e,t){if(!K(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function qe(e,t){let n=U(e);if(ge(e))return n;if(!K(e)){let t=X(e);for(;t&&!J(t);){if(G(t)&&!Ge(t))return t;t=X(t)}return n}let r=Ke(e,t);for(;r&&he(r)&&Ge(r);)r=Ke(r,t);return r&&J(r)&&Ge(r)&&!be(r)?n:r||xe(e)||n}var Je=async function(e){let t=this.getOffsetParent||qe,n=this.getDimensions,r=await n(e.floating);return{reference:We(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ye(e){return Y(e).direction===`rtl`}var Xe={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:W,getClippingRect:He,getOffsetParent:qe,getElementRects:Je,getClientRects:Pe,getDimensions:Ue,getScale:Q,isElement:G,isRTL:Ye};function Ze(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qe(e,t){let n=null,r,i=W(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:p,width:h,height:g}=l;if(s||t(),!h||!g)return;let _=m(p),v=m(i.clientWidth-(u+h)),y=m(i.clientHeight-(p+g)),b=m(u),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:f(0,d(1,c))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==c){if(!S)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ze(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function $e(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=De(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Qe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Ze(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var et=se,tt=ce,nt=te,rt=ue,it=ie,at=ee,ot=le,st=(e,t,n)=>{let r=new Map,i={platform:Xe,...n},a={...i.platform,_c:r};return V(e,t,{...i,platform:a})},ct=typeof document<`u`?s.useLayoutEffect:function(){};function lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!lt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!lt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ut(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dt(e,t){let n=ut(e);return Math.round(t*n)/n}function ft(e){let t=s.useRef(e);return ct(()=>{t.current=e}),t}function pt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);lt(m,r)||h(r);let[g,_]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=s.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=s.useRef(null),T=s.useRef(null),E=s.useRef(f),D=u!=null,O=ft(u),k=ft(i),A=ft(d),j=s.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),st(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!lt(E.current,t)&&(E.current=t,l.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);ct(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=s.useRef(!1);ct(()=>(M.current=!0,()=>{M.current=!1}),[]),ct(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=s.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=s.useMemo(()=>({reference:S,floating:C}),[S,C]),F=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=dt(P.floating,f.x),r=dt(P.floating,f.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ut(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,P.floating,f.x,f.y]);return s.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var mt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:at({element:r.current,padding:i}).fn(n):r?at({element:r,padding:i}).fn(n):{}}}},ht=(e,t)=>{let n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},gt=(e,t)=>{let n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},_t=(e,t)=>({fn:ot(e).fn,options:[e,t]}),vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},xt=(e,t)=>{let n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=`Arrow`,Ct=s.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,c.jsx)(i.t.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,c.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Ct.displayName=St;var wt=Ct,Tt=`Popper`,[Et,Dt]=t.n(Tt),[Ot,kt]=Et(Tt),At=e=>{let{__scopePopper:t,children:n}=e,[r,i]=s.useState(null),[a,o]=s.useState(void 0);return(0,c.jsx)(Ot,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};At.displayName=Tt;var jt=`PopperAnchor`,Mt=s.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...o}=e,l=kt(jt,r),u=s.useRef(null),d=l.onAnchorChange,f=n.t(t,s.useCallback(e=>{u.current=e,e&&d(e)},[d])),p=s.useRef(null);s.useEffect(()=>{if(!a)return;let e=p.current;p.current=a.current,e!==p.current&&d(p.current)});let m=l.placementState&&Ht(l.placementState),h=m?.[0],g=m?.[1];return a?null:(0,c.jsx)(i.t.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...o,ref:f})});Mt.displayName=jt;var Nt=`PopperContent`,[Pt,Ft]=Et(Nt),It=s.forwardRef((e,t)=>{let{__scopePopper:l,side:u=`bottom`,sideOffset:d=0,align:f=`center`,alignOffset:p=0,arrowPadding:m=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:_=0,sticky:v=`partial`,hideWhenDetached:y=!1,updatePositionStrategy:b=`optimized`,onPlaced:x,...S}=e,C=kt(Nt,l),[w,T]=s.useState(null),E=n.t(t,T),[D,O]=s.useState(null),k=a.t(D),A=k?.width??0,j=k?.height??0,M=u+(f===`center`?``:`-`+f),N=typeof _==`number`?_:{top:0,right:0,bottom:0,left:0,..._},P=Array.isArray(g)?g:[g],F=P.length>0,I={padding:N,boundary:P.filter(Bt),altBoundary:F},{refs:L,floatingStyles:R,placement:z,isPositioned:B,middlewareData:V}=pt({strategy:`fixed`,placement:M,whileElementsMounted:(...e)=>$e(...e,{animationFrame:b===`always`}),elements:{reference:C.anchor},middleware:[ht({mainAxis:d+j,alignmentAxis:p}),h&&gt({mainAxis:!0,crossAxis:!1,limiter:v===`partial`?_t():void 0,...I}),h&&vt({...I}),yt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),D&&xt({element:D,padding:m}),Vt({arrowWidth:A,arrowHeight:j}),y&&bt({strategy:`referenceHidden`,...I,boundary:F?I.boundary:void 0})]}),ee=C.setPlacementState;r.n(()=>(ee(z),()=>{ee(void 0)}),[z,ee]);let[te,ne]=Ht(z),re=o.t(x);r.n(()=>{B&&re?.()},[B,re]);let ie=V.arrow?.x,ae=V.arrow?.y,oe=V.arrow?.centerOffset!==0,[se,ce]=s.useState();return r.n(()=>{w&&ce(window.getComputedStyle(w).zIndex)},[w]),(0,c.jsx)(`div`,{ref:L.setFloating,"data-radix-popper-content-wrapper":``,style:{...R,transform:B?R.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(` `),...V.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,c.jsx)(Pt,{scope:l,placedSide:te,placedAlign:ne,onArrowChange:O,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,c.jsx)(i.t.div,{"data-side":te,"data-align":ne,...S,ref:E,style:{...S.style,animation:B?void 0:`none`}})})})});It.displayName=Nt;var Lt=`PopperArrow`,Rt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zt=s.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Ft(Lt,n),a=Rt[i.placedSide];return(0,c.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,c.jsx)(wt,{...r,ref:t,style:{...r.style,display:`block`}})})});zt.displayName=Lt;function Bt(e){return e!==null}var Vt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ht(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ht(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ut=At,Wt=Mt,Gt=It,Kt=zt;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Wt}});
@@ -1,11 +0,0 @@
1
- import * as e from "react";
2
- //#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
3
- function t(t) {
4
- let n = e.useRef({
5
- value: t,
6
- previous: t
7
- });
8
- return e.useMemo(() => (n.current.value !== t && (n.current.previous = n.current.value, n.current.value = t), n.current.previous), [t]);
9
- }
10
- //#endregion
11
- export { t };
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.BWsA5f1f.js");let n=require("react");n=e.r(n,1);function r(e){let r=n.forwardRef((r,i)=>{let{children:a,...o}=r,d=null,p=!1,_=[];f(a)&&typeof g==`function`&&(a=g(a._payload)),n.Children.forEach(a,e=>{if(u(e)){p=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;f(n)&&typeof g==`function`&&(n=g(n._payload)),d=s(t,n),_.push(d?.props?.children)}else _.push(e)}),d?d=n.cloneElement(d,void 0,_):!p&&n.Children.count(a)===1&&n.isValidElement(a)&&(d=a);let v=d?l(d):void 0,y=t.t(i,v);if(!d){if(a||a===0)throw Error(p?h(e):m(e));return a}let b=c(o,d.props??{});return d.type!==n.Fragment&&(b.ref=i?y:v),n.cloneElement(d,b)});return r.displayName=`${e}.Slot`,r}var i=r(`Slot`),a=Symbol.for(`radix.slottable`);function o(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=a,t}var s=(e,t)=>{if(`child`in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null};function c(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;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)}function u(e){return n.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===a}var d=Symbol.for(`react.lazy`);function f(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===d&&`_payload`in e&&p(e._payload)}function p(e){return typeof e==`object`&&!!e&&`then`in e}var m=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,h=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,g=n.use;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.DKOi9kq6.js"),i=require("./dist.CIQdvun-.js"),a=require("./dist.CmRTDXGG.js"),o=require("./dist.D4mQo5QB.js"),s=require("./dist.BQIeYu70.js"),c=require("./dist.CyhalHxz.js"),l=require("./dist.BC0-iqKU.js"),u=require("./es2015.D2emqwtq.js");let d=require("react");d=e.r(d,1);let f=require("react/jsx-runtime");var p=`Dialog`,[m,h]=t.n(p),[g,_]=m(p),v=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:c=!0}=e,l=d.useRef(null),u=d.useRef(null),[m,h]=i.t({prop:r,defaultProp:a??!1,onChange:o,caller:p});return(0,f.jsx)(g,{scope:t,triggerRef:l,contentRef:u,contentId:s.t(),titleId:s.t(),descriptionId:s.t(),open:m,onOpenChange:h,onOpenToggle:d.useCallback(()=>h(e=>!e),[h]),modal:c,children:n})};v.displayName=p;var y=`DialogTrigger`,b=d.forwardRef((e,r)=>{let{__scopeDialog:i,...o}=e,s=_(y,i),c=n.t(r,s.triggerRef);return(0,f.jsx)(a.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":B(s.open),...o,ref:c,onClick:t.t(e.onClick,s.onOpenToggle)})});b.displayName=y;var x=`DialogPortal`,[S,C]=m(x,{forceMount:void 0}),w=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=_(x,t);return(0,f.jsx)(S,{scope:t,forceMount:n,children:d.Children.map(r,e=>(0,f.jsx)(o.t,{present:n||a.open,children:(0,f.jsx)(c.t,{asChild:!0,container:i,children:e})}))})};w.displayName=x;var T=`DialogOverlay`,E=d.forwardRef((e,t)=>{let n=C(T,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_(T,e.__scopeDialog);return a.modal?(0,f.jsx)(o.t,{present:r||a.open,children:(0,f.jsx)(O,{...i,ref:t})}):null});E.displayName=T;var D=r.n(`DialogOverlay.RemoveScroll`),O=d.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,o=_(T,r),s=n.t(t,c.r());return(0,f.jsx)(u.n,{as:D,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(a.t.div,{"data-state":B(o.open),...i,ref:s,style:{pointerEvents:`auto`,...i.style}})})}),k=`DialogContent`,A=d.forwardRef((e,t)=>{let n=C(k,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_(k,e.__scopeDialog);return(0,f.jsx)(o.t,{present:r||a.open,children:a.modal?(0,f.jsx)(j,{...i,ref:t}):(0,f.jsx)(M,{...i,ref:t})})});A.displayName=k;var j=d.forwardRef((e,r)=>{let i=_(k,e.__scopeDialog),a=d.useRef(null),o=n.t(r,i.contentRef,a);return d.useEffect(()=>{let e=a.current;if(e)return u.t(e)},[]),(0,f.jsx)(N,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.t(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.t(e.onFocusOutside,e=>e.preventDefault())})}),M=d.forwardRef((e,t)=>{let n=_(k,e.__scopeDialog),r=d.useRef(!1),i=d.useRef(!1);return(0,f.jsx)(N,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),N=d.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=_(k,n);return u.r(),(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(l.t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(c.n,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":B(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),P=`DialogTitle`,F=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_(P,n);return(0,f.jsx)(a.t.h2,{id:i.titleId,...r,ref:t})});F.displayName=P;var I=`DialogDescription`,L=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_(I,n);return(0,f.jsx)(a.t.p,{id:i.descriptionId,...r,ref:t})});L.displayName=I;var R=`DialogClose`,z=d.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,o=_(R,r);return(0,f.jsx)(a.t.button,{type:`button`,...i,ref:n,onClick:t.t(e.onClick,()=>o.onOpenChange(!1))})});z.displayName=R;function B(e){return e?`open`:`closed`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
@@ -1,186 +0,0 @@
1
- import { t as e } from "./dist.Cff8LOoN.js";
2
- import { t } from "./dist.CwWM0zXK.js";
3
- import { n } from "./dist.CEJ-WCY_.js";
4
- import { n as r, t as i } from "./dist.CDZCWPu4.js";
5
- import { t as a } from "./dist.C8FJXTu6.js";
6
- import * as o from "react";
7
- import { jsx as s } from "react/jsx-runtime";
8
- import * as c from "react-dom";
9
- //#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
10
- var l = "DismissableLayer", u = "dismissableLayer.update", d = "dismissableLayer.pointerDownOutside", f = "dismissableLayer.focusOutside", p, m = o.createContext({
11
- layers: /* @__PURE__ */ new Set(),
12
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
13
- branches: /* @__PURE__ */ new Set(),
14
- dismissableSurfaces: /* @__PURE__ */ new Set()
15
- }), h = o.forwardRef((n, r) => {
16
- let { disableOutsidePointerEvents: c = !1, deferPointerDownOutside: l = !1, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: h, onInteractOutside: g, onDismiss: _, ...v } = n, y = o.useContext(m), [C, w] = o.useState(null), T = C?.ownerDocument ?? globalThis?.document, [, E] = o.useState({}), D = t(r, w), O = Array.from(y.layers), [k] = [...y.layersWithOutsidePointerEventsDisabled].slice(-1), A = k ? O.indexOf(k) : -1, j = C ? O.indexOf(C) : -1, M = y.layersWithOutsidePointerEventsDisabled.size > 0, N = j >= A, P = o.useRef(!1), F = b((e) => {
17
- f?.(e), g?.(e), e.defaultPrevented || _?.();
18
- }, {
19
- ownerDocument: T,
20
- deferPointerDownOutside: l,
21
- isDeferredPointerDownOutsideRef: P,
22
- dismissableSurfaces: y.dismissableSurfaces,
23
- shouldHandlePointerDownOutside: o.useCallback((e) => {
24
- if (!(e instanceof Node)) return !1;
25
- let t = [...y.branches].some((t) => t.contains(e));
26
- return N && !t;
27
- }, [y.branches, N])
28
- }), I = x((e) => {
29
- if (l && P.current) return;
30
- let t = e.target;
31
- [...y.branches].some((e) => e.contains(t)) || (h?.(e), g?.(e), e.defaultPrevented || _?.());
32
- }, T), L = C ? j === O.length - 1 : !1, R = a((e) => {
33
- e.key === "Escape" && (d?.(e), !e.defaultPrevented && _ && (e.preventDefault(), _()));
34
- });
35
- return o.useEffect(() => {
36
- if (L) return T.addEventListener("keydown", R, { capture: !0 }), () => T.removeEventListener("keydown", R, { capture: !0 });
37
- }, [
38
- T,
39
- L,
40
- R
41
- ]), o.useEffect(() => {
42
- if (C) return c && (y.layersWithOutsidePointerEventsDisabled.size === 0 && (p = T.body.style.pointerEvents, T.body.style.pointerEvents = "none"), y.layersWithOutsidePointerEventsDisabled.add(C)), y.layers.add(C), S(), () => {
43
- c && (y.layersWithOutsidePointerEventsDisabled.delete(C), y.layersWithOutsidePointerEventsDisabled.size === 0 && (T.body.style.pointerEvents = p));
44
- };
45
- }, [
46
- C,
47
- T,
48
- c,
49
- y
50
- ]), o.useEffect(() => () => {
51
- C && (y.layers.delete(C), y.layersWithOutsidePointerEventsDisabled.delete(C), S());
52
- }, [C, y]), o.useEffect(() => {
53
- let e = () => E({});
54
- return document.addEventListener(u, e), () => document.removeEventListener(u, e);
55
- }, []), /* @__PURE__ */ s(i.div, {
56
- ...v,
57
- ref: D,
58
- style: {
59
- pointerEvents: M ? N ? "auto" : "none" : void 0,
60
- ...n.style
61
- },
62
- onFocusCapture: e(n.onFocusCapture, I.onFocusCapture),
63
- onBlurCapture: e(n.onBlurCapture, I.onBlurCapture),
64
- onPointerDownCapture: e(n.onPointerDownCapture, F.onPointerDownCapture)
65
- });
66
- });
67
- h.displayName = l;
68
- var g = "DismissableLayerBranch", _ = o.forwardRef((e, n) => {
69
- let r = o.useContext(m), a = o.useRef(null), c = t(n, a);
70
- return o.useEffect(() => {
71
- let e = a.current;
72
- if (e) return r.branches.add(e), () => {
73
- r.branches.delete(e);
74
- };
75
- }, [r.branches]), /* @__PURE__ */ s(i.div, {
76
- ...e,
77
- ref: c
78
- });
79
- });
80
- _.displayName = g;
81
- function v() {
82
- let e = o.useContext(m), [t, n] = o.useState(null);
83
- return o.useEffect(() => {
84
- if (t) return e.dismissableSurfaces.add(t), () => {
85
- e.dismissableSurfaces.delete(t);
86
- };
87
- }, [t, e.dismissableSurfaces]), n;
88
- }
89
- var y = () => !0;
90
- function b(e, t) {
91
- let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: i, dismissableSurfaces: s, shouldHandlePointerDownOutside: c = y } = t, l = a(e), u = o.useRef(!1), f = o.useRef(!1), p = o.useRef(/* @__PURE__ */ new Map()), m = o.useRef(() => {});
92
- return o.useEffect(() => {
93
- function e() {
94
- f.current = !1, i.current = !1, p.current.clear();
95
- }
96
- function t() {
97
- return Array.from(p.current.values()).some(Boolean);
98
- }
99
- function a(e) {
100
- if (!f.current) return;
101
- let t = e.target;
102
- t instanceof Node && [...s].some((e) => e.contains(t)) || p.current.set(e.type, !0), e.type === "click" && window.setTimeout(() => {
103
- f.current && m.current();
104
- }, 0);
105
- }
106
- function o(e) {
107
- f.current && p.current.set(e.type, !1);
108
- }
109
- let h = (a) => {
110
- if (a.target && !u.current) {
111
- let o = function() {
112
- n.removeEventListener("click", m.current);
113
- let r = t();
114
- e(), r || C(d, l, s, { discrete: !0 });
115
- };
116
- if (!c(a.target)) {
117
- n.removeEventListener("click", m.current), e(), u.current = !1;
118
- return;
119
- }
120
- let s = { originalEvent: a };
121
- f.current = !0, i.current = r && a.button === 0, p.current.clear(), !r || a.button !== 0 ? o() : (n.removeEventListener("click", m.current), m.current = o, n.addEventListener("click", m.current, { once: !0 }));
122
- } else n.removeEventListener("click", m.current), e();
123
- u.current = !1;
124
- }, g = [
125
- "pointerup",
126
- "mousedown",
127
- "mouseup",
128
- "touchstart",
129
- "touchend",
130
- "click"
131
- ];
132
- for (let e of g) n.addEventListener(e, a, !0), n.addEventListener(e, o);
133
- let _ = window.setTimeout(() => {
134
- n.addEventListener("pointerdown", h);
135
- }, 0);
136
- return () => {
137
- window.clearTimeout(_), n.removeEventListener("pointerdown", h), n.removeEventListener("click", m.current);
138
- for (let e of g) n.removeEventListener(e, a, !0), n.removeEventListener(e, o);
139
- };
140
- }, [
141
- n,
142
- l,
143
- r,
144
- i,
145
- s,
146
- c
147
- ]), { onPointerDownCapture: () => u.current = !0 };
148
- }
149
- function x(e, t = globalThis?.document) {
150
- let n = a(e), r = o.useRef(!1);
151
- return o.useEffect(() => {
152
- let e = (e) => {
153
- e.target && !r.current && C(f, n, { originalEvent: e }, { discrete: !1 });
154
- };
155
- return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
156
- }, [t, n]), {
157
- onFocusCapture: () => r.current = !0,
158
- onBlurCapture: () => r.current = !1
159
- };
160
- }
161
- function S() {
162
- let e = new CustomEvent(u);
163
- document.dispatchEvent(e);
164
- }
165
- function C(e, t, n, { discrete: i }) {
166
- let a = n.originalEvent.target, o = new CustomEvent(e, {
167
- bubbles: !1,
168
- cancelable: !0,
169
- detail: n
170
- });
171
- t && a.addEventListener(e, t, { once: !0 }), i ? r(a, o) : a.dispatchEvent(o);
172
- }
173
- //#endregion
174
- //#region node_modules/@radix-ui/react-portal/dist/index.mjs
175
- var w = "Portal", T = o.forwardRef((e, t) => {
176
- let { container: r, ...a } = e, [l, u] = o.useState(!1);
177
- n(() => u(!0), []);
178
- let d = r || l && globalThis?.document?.body;
179
- return d ? c.createPortal(/* @__PURE__ */ s(i.div, {
180
- ...a,
181
- ref: t
182
- }), d) : null;
183
- });
184
- T.displayName = w;
185
- //#endregion
186
- export { h as n, v as r, T as t };
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime.mLOUI7ql.js");let t=require("react");t=e.r(t,1);function n(e){let n=t.useRef({value:e,previous:e});return t.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
@@ -1,12 +0,0 @@
1
- import { n as e } from "./dist.CEJ-WCY_.js";
2
- import * as t from "react";
3
- //#region node_modules/@radix-ui/react-id/dist/index.mjs
4
- var n = t.useId || (() => void 0), r = 0;
5
- function i(i) {
6
- let [a, o] = t.useState(n());
7
- return e(() => {
8
- i || o((e) => e ?? String(r++));
9
- }, [i]), i || (a ? `radix-${a}` : "");
10
- }
11
- //#endregion
12
- export { i as t };