@windrun-huaiin/third-ui 6.2.1 → 6.2.2

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.
@@ -93,7 +93,7 @@ __export(server_exports, {
93
93
  module.exports = __toCommonJS(server_exports);
94
94
 
95
95
  // src/main/gallery.tsx
96
- var import_server = require("next-intl/server");
96
+ var import_server2 = require("next-intl/server");
97
97
 
98
98
  // ../lib/src/utils.ts
99
99
  var import_clsx = require("clsx");
@@ -103,74 +103,10 @@ function cn(...inputs) {
103
103
  }
104
104
 
105
105
  // src/main/gallery.tsx
106
- var import_image = __toESM(require("next/image"));
107
- var import_main = require("@third-ui/main");
108
- var import_jsx_runtime = require("react/jsx-runtime");
109
- function Gallery(_0) {
110
- return __async(this, arguments, function* ({ locale, sectionClassName, button }) {
111
- const t = yield (0, import_server.getTranslations)({ locale, namespace: "gallery" });
112
- const galleryItems = t.raw("prompts");
113
- const data = {
114
- titleL: t("titleL"),
115
- eyesOn: t("eyesOn"),
116
- titleR: t("titleR"),
117
- description: t("description"),
118
- items: galleryItems.map((item, index) => ({
119
- id: `gallery-item-${index}`,
120
- url: item.url,
121
- altMsg: item.altMsg
122
- })),
123
- defaultImgUrl: t.raw("defaultImgUrl"),
124
- downloadPrefix: t("downloadPrefix")
125
- };
126
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { id: "gallery", className: cn("container mx-auto px-4 py-20 scroll-mt-20", sectionClassName), children: [
127
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-6", children: [
128
- data.titleL,
129
- " ",
130
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-purple-500", children: data.eyesOn }),
131
- " ",
132
- data.titleR
133
- ] }),
134
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center max-w-2xl mx-auto mb-16", children: data.description }),
135
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6", children: data.items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
136
- "div",
137
- {
138
- className: "group relative overflow-hidden rounded-xl",
139
- "data-gallery-item": item.id,
140
- "data-gallery-index": index,
141
- children: [
142
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
143
- import_image.default,
144
- {
145
- src: item.url,
146
- alt: item.altMsg,
147
- width: 600,
148
- height: 600,
149
- className: "w-full h-80 object-cover transition duration-300 group-hover:scale-105",
150
- "data-gallery-image": item.id
151
- }
152
- ),
153
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 flex items-end justify-end p-4 opacity-0 group-hover:opacity-100 transition duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
154
- "button",
155
- {
156
- className: "p-2 rounded-full bg-black/50 hover:bg-black/70 text-white/80 hover:text-white transition-all duration-300",
157
- "data-gallery-download": item.id,
158
- "aria-label": `Download ${item.altMsg}`,
159
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "h-5 w-5 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) })
160
- }
161
- ) })
162
- ]
163
- },
164
- item.id
165
- )) }),
166
- button && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-center mt-12", children: button }),
167
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_main.GalleryInteractive, { data })
168
- ] });
169
- });
170
- }
106
+ var import_image2 = __toESM(require("next/image"));
171
107
 
172
- // src/main/usage.tsx
173
- var import_server3 = require("next-intl/server");
108
+ // src/main/go-to-top.tsx
109
+ var import_react35 = require("react");
174
110
 
175
111
  // ../base-ui/src/assets/github.tsx
176
112
  var import_react = __toESM(require("react"), 1);
@@ -181,11 +117,11 @@ var themeSvgIconColor = process.env.NEXT_PUBLIC_STYLE_SVG_ICON_COLOR || "#AC62FD
181
117
  var themeSvgIconSize = process.env.NEXT_PUBLIC_STYLE_SVG_ICON_SIZE || 18;
182
118
 
183
119
  // ../base-ui/src/assets/github.tsx
184
- var import_jsx_runtime2 = require("react/jsx-runtime");
120
+ var import_jsx_runtime = require("react/jsx-runtime");
185
121
  var GitHubIcon = import_react.default.forwardRef(
186
122
  (_a, ref) => {
187
123
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
188
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
124
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
189
125
  "svg",
190
126
  __spreadProps(__spreadValues({
191
127
  ref,
@@ -194,7 +130,7 @@ var GitHubIcon = import_react.default.forwardRef(
194
130
  }, props), {
195
131
  viewBox: "0 0 1024 1024",
196
132
  xmlns: "http://www.w3.org/2000/svg",
197
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
133
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
198
134
  "path",
199
135
  {
200
136
  d: "M512 0C229.283787 0 0.142041 234.942803 0.142041 524.867683c0 231.829001 146.647305 428.553077 350.068189 497.952484 25.592898 4.819996 34.976961-11.38884 34.976961-25.294314 0-12.45521-0.469203-45.470049-0.725133-89.276559-142.381822 31.735193-172.453477-70.380469-172.453477-70.380469-23.246882-60.569859-56.816233-76.693384-56.816234-76.693385-46.493765-32.58829 3.540351-31.948468 3.540351-31.948467 51.356415 3.71097 78.356923 54.086324 78.356923 54.086324 45.683323 80.19108 119.817417 57.072162 148.993321 43.593236 4.649376-33.91059 17.915029-57.029508 32.50298-70.167195-113.675122-13.222997-233.151301-58.223843-233.1513-259.341366 0-57.285437 19.919806-104.163095 52.678715-140.846248-5.246544-13.265652-22.820334-66.626844 4.990615-138.884127 0 0 42.996069-14.076094 140.760939 53.787741 40.863327-11.644769 84.627183-17.445825 128.177764-17.6591 43.465272 0.213274 87.271782 6.014331 128.135109 17.6591 97.679561-67.906489 140.59032-53.787741 140.59032-53.787741 27.938914 72.257282 10.407779 125.618474 5.118579 138.884127 32.844219 36.683154 52.593405 83.560812 52.593405 140.846248 0 201.586726-119.646798 245.990404-233.663158 258.957473 18.341577 16.208835 34.721032 48.199958 34.721032 97.210357 0 70.167195-0.639822 126.7275-0.639823 143.960051 0 14.033439 9.213443 30.370239 35.190235 25.209005 203.250265-69.527373 349.769606-266.123484 349.769605-497.867175C1023.857959 234.942803 794.673558 0 512 0",
@@ -211,11 +147,11 @@ var github_default = GitHubIcon;
211
147
 
212
148
  // ../base-ui/src/assets/d8.tsx
213
149
  var import_react2 = __toESM(require("react"), 1);
214
- var import_jsx_runtime3 = require("react/jsx-runtime");
150
+ var import_jsx_runtime2 = require("react/jsx-runtime");
215
151
  var D8Icon = import_react2.default.forwardRef(
216
152
  (_a, ref) => {
217
153
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
218
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
154
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
219
155
  "svg",
220
156
  __spreadProps(__spreadValues({
221
157
  ref,
@@ -225,21 +161,21 @@ var D8Icon = import_react2.default.forwardRef(
225
161
  viewBox: "0 0 1024 1024",
226
162
  xmlns: "http://www.w3.org/2000/svg",
227
163
  children: [
228
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
164
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
229
165
  "path",
230
166
  {
231
167
  d: "M376.832 80.896C187.392 142.336 61.44 313.344 61.44 513.024c0 290.816 277.504 506.88 558.08 434.176C842.752 888.832 993.28 665.6 955.392 445.44 908.288 168.96 635.904-2.048 376.832 80.896zM624.64 134.144c103.424 25.6 214.016 131.072 256 241.664 32.768 87.04 26.624 220.16-15.36 305.152-37.888 77.824-106.496 146.432-184.32 185.344-56.32 26.624-70.656 29.696-168.96 29.696-95.232 0-114.688-3.072-165.888-27.648-157.696-73.728-253.952-251.904-225.28-416.768 41.984-239.616 264.192-378.88 503.808-317.44z",
232
168
  fill: themeSvgIconColor
233
169
  }
234
170
  ),
235
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
171
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
236
172
  "path",
237
173
  {
238
174
  d: "M462.848 227.328L460.8 286.72h-35.84c-19.456 0-35.84 4.096-35.84 10.24 0 5.12 11.264 10.24 24.576 10.24 14.336 0 27.648 3.072 29.696 7.168 2.048 5.12-17.408 91.136-43.008 192.512l-47.104 184.32-32.768 3.072c-68.608 7.168-30.72 22.528 53.248 22.528h86.016l4.096 64.512 3.072 63.488 2.048-64.512 2.048-63.488 44.032 1.024c56.32 2.048 123.904-25.6 155.648-64.512 45.056-54.272 26.624-134.144-34.816-153.6-9.216-3.072-1.024-12.288 23.552-26.624 21.504-12.288 41.984-20.48 47.104-17.408 19.456 12.288 35.84-73.728 20.48-112.64-14.336-38.912-66.56-56.32-167.936-56.32h-87.04l-4.096-59.392-3.072-58.368-2.048 58.368z m190.464 96.256c52.224 36.864 10.24 136.192-67.584 157.696C532.48 495.616 460.8 494.592 460.8 478.208c0-6.144 4.096-28.672 9.216-48.128 6.144-19.456 15.36-55.296 21.504-79.872l11.264-43.008h63.488c40.96 0 71.68 6.144 87.04 16.384z m-24.576 211.968c19.456 26.624 19.456 30.72 6.144 70.656-22.528 64.512-66.56 90.112-154.624 90.112-41.984 0-70.656-4.096-70.656-10.24s10.24-50.176 21.504-98.304l22.528-87.04 76.8 3.072c70.656 3.072 78.848 5.12 98.304 31.744z",
239
175
  fill: themeSvgIconColor
240
176
  }
241
177
  ),
242
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
178
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
243
179
  "path",
244
180
  {
245
181
  d: "M227.328 421.888c-7.168 7.168-12.288 18.432-12.288 25.6 0 18.432-10.24 16.384-33.792-5.12-19.456-16.384-20.48-16.384-8.192 5.12 6.144 13.312 16.384 23.552 21.504 23.552 19.456 0 10.24 22.528-10.24 27.648-19.456 5.12-20.48 6.144-3.072 19.456 12.288 9.216 14.336 16.384 7.168 21.504-6.144 5.12-14.336 17.408-17.408 28.672-7.168 20.48-7.168 20.48 8.192 0 13.312-16.384 19.456-18.432 35.84-7.168 24.576 15.36 58.368 16.384 66.56 2.048 12.288-20.48 46.08-11.264 47.104 12.288 1.024 19.456 2.048 19.456 6.144 5.12 3.072-10.24-3.072-27.648-13.312-38.912-16.384-18.432-16.384-19.456 7.168-28.672 24.576-10.24 24.576-10.24 2.048-10.24C317.44 501.76 307.2 496.64 307.2 491.52v-18.432c0-4.096 6.144-7.168 12.288-7.168 7.168 0 14.336-9.216 16.384-19.456 4.096-19.456 3.072-19.456-14.336-2.048-17.408 18.432-18.432 17.408-37.888-8.192-20.48-28.672-36.864-33.792-56.32-14.336zM750.592 427.008c-1.024 10.24-5.12 37.888-9.216 61.44-4.096 29.696-3.072 49.152 6.144 59.392 8.192 10.24 9.216 15.36 1.024 15.36-6.144 0-17.408 14.336-26.624 30.72-18.432 34.816-6.144 71.68 22.528 71.68 15.36 0 15.36-1.024-1.024-13.312-17.408-12.288-17.408-16.384-2.048-51.2 15.36-37.888 43.008-50.176 53.248-24.576 3.072 8.192-1.024 27.648-7.168 44.032-7.168 16.384-13.312 38.912-14.336 49.152-1.024 10.24-10.24 25.6-20.48 32.768-11.264 8.192-14.336 14.336-9.216 14.336 23.552 0 44.032-28.672 59.392-80.896 20.48-68.608 20.48-72.704 1.024-72.704-16.384 0-20.48-12.288-8.192-23.552 3.072-4.096 12.288-2.048 19.456 4.096 16.384 13.312 45.056 5.12 44.032-13.312 0-10.24-2.048-10.24-6.144-1.024-2.048 7.168-9.216 13.312-15.36 13.312-10.24 0-6.144-45.056 8.192-100.352 4.096-12.288 2.048-22.528-4.096-22.528-5.12 0-15.36 21.504-22.528 48.128-13.312 54.272-26.624 74.752-47.104 74.752-17.408 0-19.456-53.248-3.072-83.968 8.192-15.36 8.192-24.576-3.072-34.816-12.288-12.288-14.336-11.264-15.36 3.072zM696.32 695.296c0 6.144 5.12 13.312 10.24 16.384 6.144 3.072 10.24-1.024 10.24-9.216 0-9.216-4.096-16.384-10.24-16.384-5.12 0-10.24 4.096-10.24 9.216z",
@@ -256,11 +192,11 @@ var d8_default = D8Icon;
256
192
 
257
193
  // ../base-ui/src/assets/clerk.tsx
258
194
  var import_react3 = __toESM(require("react"), 1);
259
- var import_jsx_runtime4 = require("react/jsx-runtime");
195
+ var import_jsx_runtime3 = require("react/jsx-runtime");
260
196
  var ClerkIcon = import_react3.default.forwardRef(
261
197
  (_a, ref) => {
262
198
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
263
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
199
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
264
200
  "svg",
265
201
  __spreadProps(__spreadValues({
266
202
  ref,
@@ -269,7 +205,7 @@ var ClerkIcon = import_react3.default.forwardRef(
269
205
  }, props), {
270
206
  viewBox: "0 0 24 24",
271
207
  xmlns: "http://www.w3.org/2000/svg",
272
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
208
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
273
209
  "path",
274
210
  {
275
211
  d: "M 21.255071,20.629393 18.43951,17.813831 a 0.5590077,0.5590077 0 0 0 -0.6841,-0.08209 6.6983195,6.6983195 0 0 1 -6.920164,0 0.56291684,0.56291684 0 0 0 -0.6841,0.08209 l -2.8155614,2.815562 a 0.56291684,0.56291684 0 0 0 -0.1006604,0.674327 0.55705312,0.55705312 0 0 0 0.1622295,0.181775 11.727434,11.727434 0 0 0 13.7924393,0 0.56682599,0.56682599 0 0 0 0.233572,-0.413392 0.56291684,0.56291684 0 0 0 -0.168094,-0.44271 z m 0.002,-17.2666924 -2.814584,2.8145842 A 0.55607584,0.55607584 0 0 1 17.757364,6.2593769 6.7012514,6.7012514 0 0 0 8.7985821,8.1699714 6.7061378,6.7061378 0 0 0 7.6043383,11.778112 6.7041832,6.7041832 0 0 0 8.5601242,15.456617 0.55998498,0.55998498 0 0 1 8.4790095,16.13974 L 5.663448,18.954324 A 0.55412127,0.55412127 0 0 1 4.8190727,18.892755 11.720593,11.720593 0 0 1 6.8899421,2.9121717 11.717661,11.717661 0 0 1 21.19448,2.5163708 0.55314398,0.55314398 0 0 1 21.42121,2.9248764 0.55705312,0.55705312 0 0 1 21.257026,3.3627006 Z M 14.300703,15.345206 a 3.3491597,3.3491597 0 1 0 0,-6.698319 3.3491597,3.3491597 0 0 0 0,6.698319 z",
@@ -287,11 +223,11 @@ var clerk_default = ClerkIcon;
287
223
 
288
224
  // ../base-ui/src/assets/iterm.tsx
289
225
  var import_react4 = __toESM(require("react"), 1);
290
- var import_jsx_runtime5 = require("react/jsx-runtime");
226
+ var import_jsx_runtime4 = require("react/jsx-runtime");
291
227
  var ItermIcon = import_react4.default.forwardRef(
292
228
  (_a, ref) => {
293
229
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
294
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
230
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
295
231
  "svg",
296
232
  __spreadProps(__spreadValues({
297
233
  ref,
@@ -300,7 +236,7 @@ var ItermIcon = import_react4.default.forwardRef(
300
236
  }, props), {
301
237
  viewBox: "0 0 24 24",
302
238
  xmlns: "http://www.w3.org/2000/svg",
303
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
239
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
304
240
  "path",
305
241
  {
306
242
  d: "M24 5.359v13.282A5.36 5.36 0 0 1 18.641 24H5.359A5.36 5.36 0 0 1 0 18.641V5.359A5.36 5.36 0 0 1 5.359 0h13.282A5.36 5.36 0 0 1 24 5.359m-.932-.233A4.196 4.196 0 0 0 18.874.932H5.126A4.196 4.196 0 0 0 .932 5.126v13.748a4.196 4.196 0 0 0 4.194 4.194h13.748a4.196 4.196 0 0 0 4.194-4.194zm-.816.233v13.282a3.613 3.613 0 0 1-3.611 3.611H5.359a3.613 3.613 0 0 1-3.611-3.611V5.359a3.613 3.613 0 0 1 3.611-3.611h13.282a3.613 3.613 0 0 1 3.611 3.611M8.854 4.194v6.495h.962V4.194zM5.483 9.493v1.085h.597V9.48q.283-.037.508-.133.373-.165.575-.448.208-.284.208-.649a.9.9 0 0 0-.171-.568 1.4 1.4 0 0 0-.426-.388 3 3 0 0 0-.544-.261 32 32 0 0 0-.545-.209 1.8 1.8 0 0 1-.426-.216q-.164-.12-.164-.284 0-.223.179-.351.18-.126.485-.127.344 0 .575.105.239.105.5.298l.433-.5a2.3 2.3 0 0 0-.605-.433 1.6 1.6 0 0 0-.582-.159v-.968h-.597v.978a2 2 0 0 0-.477.127 1.2 1.2 0 0 0-.545.411q-.194.268-.194.634 0 .335.164.56.164.224.418.38a4 4 0 0 0 .552.262q.291.104.545.209.261.104.425.238a.39.39 0 0 1 .165.321q0 .225-.187.359-.18.134-.537.134-.381 0-.717-.134a4.4 4.4 0 0 1-.649-.351l-.388.589q.209.173.477.306.276.135.575.217.191.046.373.064",
@@ -318,11 +254,11 @@ var iterm_default = ItermIcon;
318
254
 
319
255
  // ../base-ui/src/assets/markdown.tsx
320
256
  var import_react5 = __toESM(require("react"), 1);
321
- var import_jsx_runtime6 = require("react/jsx-runtime");
257
+ var import_jsx_runtime5 = require("react/jsx-runtime");
322
258
  var MarkdownIcon = import_react5.default.forwardRef(
323
259
  (_a, ref) => {
324
260
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
325
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
261
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
326
262
  "svg",
327
263
  __spreadProps(__spreadValues({
328
264
  ref,
@@ -331,7 +267,7 @@ var MarkdownIcon = import_react5.default.forwardRef(
331
267
  }, props), {
332
268
  viewBox: "0 0 1024 1024",
333
269
  xmlns: "http://www.w3.org/2000/svg",
334
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
270
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
335
271
  "path",
336
272
  {
337
273
  d: "M20.48 327.76192a163.84 163.84 0 0 1 163.84-163.84h655.36a163.84 163.84 0 0 1 163.84 163.84v327.68a163.84 163.84 0 0 1-163.84 163.84H184.32a163.84 163.84 0 0 1-163.84-163.84v-327.68z m163.84-81.92a81.92 81.92 0 0 0-81.92 81.92v327.68a81.92 81.92 0 0 0 81.92 81.92h655.36a81.92 81.92 0 0 0 81.92-81.92v-327.68a81.92 81.92 0 0 0-81.92-81.92H184.32z m68.97664 84.00896a40.96 40.96 0 0 1 45.71136 14.336L389.12 464.24064l90.112-120.13568a40.96 40.96 0 0 1 73.728 24.576v245.76a40.96 40.96 0 0 1-81.92 0v-122.88l-49.152 65.536a41.04192 41.04192 0 0 1-65.536 0l-49.152-65.536v122.88a40.96 40.96 0 1 1-81.92 0v-245.76a40.96 40.96 0 0 1 28.01664-38.87104zM757.76 368.76288a40.96 40.96 0 0 0-81.92 0v146.8416l-12.00128-12.00128a40.96 40.96 0 0 0-57.91744 57.91744l81.92 81.92a40.96 40.96 0 0 0 57.91744 0l81.92-81.92a40.96 40.96 0 0 0-57.91744-57.91744l-12.00128 12.00128V368.72192z",
@@ -348,11 +284,11 @@ var markdown_default = MarkdownIcon;
348
284
 
349
285
  // ../base-ui/src/assets/mdx.tsx
350
286
  var import_react6 = __toESM(require("react"), 1);
351
- var import_jsx_runtime7 = require("react/jsx-runtime");
287
+ var import_jsx_runtime6 = require("react/jsx-runtime");
352
288
  var MDXIcon = import_react6.default.forwardRef(
353
289
  (_a, ref) => {
354
290
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
355
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
291
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
356
292
  "svg",
357
293
  __spreadProps(__spreadValues({
358
294
  ref,
@@ -362,7 +298,7 @@ var MDXIcon = import_react6.default.forwardRef(
362
298
  viewBox: "0 0 1024 1024",
363
299
  xmlns: "http://www.w3.org/2000/svg",
364
300
  children: [
365
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
301
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
366
302
  "path",
367
303
  {
368
304
  d: "M20.48 327.76192a163.84 163.84 0 0 1 163.84-163.84h655.36a163.84 163.84 0 0 1 163.84 163.84v327.68a163.84 163.84 0 0 1-163.84 163.84H184.32a163.84 163.84 0 0 1-163.84-163.84v-327.68z m163.84-81.92a81.92 81.92 0 0 0-81.92 81.92v327.68a81.92 81.92 0 0 0 81.92 81.92h655.36a81.92 81.92 0 0 0 81.92-81.92v-327.68a81.92 81.92 0 0 0-81.92-81.92H184.32z m68.97664 84.00896a40.96 40.96 0 0 1 45.71136 14.336L389.12 464.24064l90.112-120.13568a40.96 40.96 0 0 1 73.728 24.576v245.76a40.96 40.96 0 0 1-81.92 0v-122.88l-49.152 65.536a41.04192 41.04192 0 0 1-65.536 0l-49.152-65.536v122.88a40.96 40.96 0 1 1-81.92 0v-245.76a40.96 40.96 0 0 1 28.01664-38.87104zM757.76 368.76288a40.96 40.96 0 0 0-81.92 0v146.8416l-12.00128-12.00128a40.96 40.96 0 0 0-57.91744 57.91744l81.92 81.92a40.96 40.96 0 0 0 57.91744 0l81.92-81.92a40.96 40.96 0 0 0-57.91744-57.91744l-12.00128 12.00128V368.72192z",
@@ -378,7 +314,7 @@ var MDXIcon = import_react6.default.forwardRef(
378
314
  }
379
315
  }
380
316
  ),
381
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
317
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
382
318
  "circle",
383
319
  {
384
320
  id: "path3",
@@ -396,7 +332,7 @@ var MDXIcon = import_react6.default.forwardRef(
396
332
  }
397
333
  }
398
334
  ),
399
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
335
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
400
336
  "circle",
401
337
  {
402
338
  id: "path3-6",
@@ -413,7 +349,7 @@ var MDXIcon = import_react6.default.forwardRef(
413
349
  }
414
350
  }
415
351
  ),
416
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
352
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
417
353
  "circle",
418
354
  {
419
355
  id: "path3-6-8",
@@ -430,7 +366,7 @@ var MDXIcon = import_react6.default.forwardRef(
430
366
  }
431
367
  }
432
368
  ),
433
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
369
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
434
370
  "circle",
435
371
  {
436
372
  id: "path3-6-8-7",
@@ -447,7 +383,7 @@ var MDXIcon = import_react6.default.forwardRef(
447
383
  }
448
384
  }
449
385
  ),
450
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
386
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
451
387
  "circle",
452
388
  {
453
389
  id: "path3-6-4",
@@ -474,11 +410,11 @@ var mdx_default = MDXIcon;
474
410
 
475
411
  // ../base-ui/src/assets/html.tsx
476
412
  var import_react7 = __toESM(require("react"), 1);
477
- var import_jsx_runtime8 = require("react/jsx-runtime");
413
+ var import_jsx_runtime7 = require("react/jsx-runtime");
478
414
  var HtmlIcon = import_react7.default.forwardRef(
479
415
  (_a, ref) => {
480
416
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
481
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
417
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
482
418
  "svg",
483
419
  __spreadProps(__spreadValues({
484
420
  ref,
@@ -487,7 +423,7 @@ var HtmlIcon = import_react7.default.forwardRef(
487
423
  }, props), {
488
424
  viewBox: "0 0 32 32",
489
425
  xmlns: "http://www.w3.org/2000/svg",
490
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
426
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
491
427
  "path",
492
428
  {
493
429
  fill: themeSvgIconColor,
@@ -503,11 +439,11 @@ var html_default = HtmlIcon;
503
439
 
504
440
  // ../base-ui/src/assets/json.tsx
505
441
  var import_react8 = __toESM(require("react"), 1);
506
- var import_jsx_runtime9 = require("react/jsx-runtime");
442
+ var import_jsx_runtime8 = require("react/jsx-runtime");
507
443
  var JsonIcon = import_react8.default.forwardRef(
508
444
  (_a, ref) => {
509
445
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
510
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
446
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
511
447
  "svg",
512
448
  __spreadProps(__spreadValues({
513
449
  ref,
@@ -516,7 +452,7 @@ var JsonIcon = import_react8.default.forwardRef(
516
452
  }, props), {
517
453
  viewBox: "0 -960 960 960",
518
454
  xmlns: "http://www.w3.org/2000/svg",
519
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
455
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
520
456
  "path",
521
457
  {
522
458
  fill: themeSvgIconColor,
@@ -532,11 +468,11 @@ var json_default = JsonIcon;
532
468
 
533
469
  // ../base-ui/src/assets/xml.tsx
534
470
  var import_react9 = __toESM(require("react"), 1);
535
- var import_jsx_runtime10 = require("react/jsx-runtime");
471
+ var import_jsx_runtime9 = require("react/jsx-runtime");
536
472
  var XMLIcon = import_react9.default.forwardRef(
537
473
  (_a, ref) => {
538
474
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
539
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
475
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
540
476
  "svg",
541
477
  __spreadProps(__spreadValues({
542
478
  ref,
@@ -545,7 +481,7 @@ var XMLIcon = import_react9.default.forwardRef(
545
481
  }, props), {
546
482
  viewBox: "0 0 1024 1024",
547
483
  xmlns: "http://www.w3.org/2000/svg",
548
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
484
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
549
485
  "path",
550
486
  {
551
487
  d: "M354.40128 0c-87.04 0-157.44 70.55872-157.44 157.59872v275.68128H78.72c-21.6576 0-39.36256 17.69984-39.36256 39.36256v236.31872c0 21.6576 17.69984 39.35744 39.36256 39.35744h118.24128v118.08256c0 87.04 70.4 157.59872 157.44 157.59872h472.63744c87.04 0 157.59872-70.55872 157.59872-157.59872V315.0336c0-41.74848-38.9888-81.93024-107.52-149.27872l-29.11744-29.12256L818.87744 107.52C751.5392 38.9888 711.39328 0 669.59872 0H354.4064z m0 78.72h287.20128c28.35456 7.0912 27.99616 42.1376 27.99616 76.8v120.16128c0 21.6576 17.69984 39.35744 39.36256 39.35744h118.07744c39.38816 0 78.87872-0.0256 78.87872 39.36256v512c0 43.32032-35.55328 78.87872-78.87872 78.87872H354.4064c-43.32544 0-78.72-35.5584-78.72-78.87872v-118.08256h393.91744c21.66272 0 39.36256-17.69472 39.36256-39.35744V472.64256c0-21.66272-17.69984-39.36256-39.36256-39.36256H275.68128V157.59872c0-43.32032 35.39456-78.87872 78.72-78.87872zM145.12128 507.36128h23.99744l39.36256 67.2 40.32-67.2h23.04l-50.88256 83.51744 54.72256 92.16h-24.96l-43.20256-75.83744-43.19744 75.83744h-23.04l54.71744-92.16-50.87744-83.51744z m154.55744 0h32.64l49.92 143.03744h0.96256l48.95744-143.03744h33.60256v175.67744h-22.08256v-106.55744c0-10.88 0.32256-26.56256 0.96256-47.04256h-0.96256l-52.79744 153.6h-19.2l-52.80256-153.6h-0.95744c1.28 22.4 1.92 38.72256 1.92 48.96256v104.63744H299.6736V507.36128z m214.08256 0h22.07744v155.52h69.12v20.15744h-91.19744V507.36128z",
@@ -562,11 +498,11 @@ var xml_default = XMLIcon;
562
498
 
563
499
  // ../base-ui/src/assets/yaml.tsx
564
500
  var import_react10 = __toESM(require("react"), 1);
565
- var import_jsx_runtime11 = require("react/jsx-runtime");
501
+ var import_jsx_runtime10 = require("react/jsx-runtime");
566
502
  var YamlIcon = import_react10.default.forwardRef(
567
503
  (_a, ref) => {
568
504
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
569
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
505
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
570
506
  "svg",
571
507
  __spreadProps(__spreadValues({
572
508
  ref,
@@ -575,7 +511,7 @@ var YamlIcon = import_react10.default.forwardRef(
575
511
  }, props), {
576
512
  viewBox: "0 0 1024 1024",
577
513
  xmlns: "http://www.w3.org/2000/svg",
578
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
514
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
579
515
  "path",
580
516
  {
581
517
  d: "M354.401 0c-87.04 0-157.44 70.559-157.44 157.599V433.28H78.72c-21.658 0-39.363 17.7-39.363 39.363V708.96c0 21.658 17.7 39.358 39.363 39.358h118.241V866.4c0 87.04 70.4 157.599 157.44 157.599H827.04c87.04 0 157.598-70.559 157.598-157.599V315.034c0-41.749-38.988-81.93-107.52-149.28L848 136.633l-29.123-29.112C751.54 38.989 711.393 0 669.6 0H354.406z m0 78.72h287.202c28.354 7.091 27.996 42.138 27.996 76.8v120.161c0 21.658 17.7 39.358 39.362 39.358H827.04c39.388 0 78.878-0.026 78.878 39.362v512c0 43.32-35.553 78.879-78.878 78.879H354.406c-43.325 0-78.72-35.558-78.72-78.879V748.32h393.918c21.663 0 39.362-17.695 39.362-39.358V472.643c0-21.663-17.7-39.363-39.362-39.363H275.68V157.599c0-43.32 35.395-78.879 78.72-78.879z m-93.127 427.679h20.162l65.28 176.64h-23.04l-19.2-54.718h-65.28l-19.2 54.718h-23.04l64.318-176.64z m-181.438 0.962h23.998l40.32 89.278 41.282-89.278h23.998l-53.76 107.52v68.158h-22.078v-67.2L79.836 507.36z m290.878 0h32.64l49.92 143.038h0.962l48.958-143.038h33.602V683.04h-22.082V576.48c0-10.88 0.322-26.562 0.962-47.042h-0.962l-52.798 153.6h-19.2l-52.802-153.6h-0.958c1.28 22.4 1.92 38.722 1.92 48.962V683.04h-20.162V507.36z m214.082 0h22.078v155.52h69.12v20.158h-91.188V507.36z m-312.96 23.04c-1.92 8.96-4.802 18.238-8.642 27.838l-17.28 50.882h51.84l-18.238-50.882c-3.84-10.88-6.4-20.158-7.68-27.838z",
@@ -592,11 +528,11 @@ var yaml_default = YamlIcon;
592
528
 
593
529
  // ../base-ui/src/assets/csv.tsx
594
530
  var import_react11 = __toESM(require("react"), 1);
595
- var import_jsx_runtime12 = require("react/jsx-runtime");
531
+ var import_jsx_runtime11 = require("react/jsx-runtime");
596
532
  var CSVIcon = import_react11.default.forwardRef(
597
533
  (_a, ref) => {
598
534
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
599
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
535
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
600
536
  "svg",
601
537
  __spreadProps(__spreadValues({
602
538
  ref,
@@ -606,7 +542,7 @@ var CSVIcon = import_react11.default.forwardRef(
606
542
  viewBox: "0 0 1024 1024",
607
543
  xmlns: "http://www.w3.org/2000/svg",
608
544
  children: [
609
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
545
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
610
546
  "path",
611
547
  {
612
548
  d: "M158.72 517.12h61.44v394.24c0 28.27776 22.92224 51.2 51.2 51.2h614.4c28.27776 0 51.2-22.92224 51.2-51.2V317.44h-204.8c-28.27776 0-51.2-22.92224-51.2-51.2V61.44H271.36c-28.27776 0-51.2 22.92224-51.2 51.2v97.28H158.72V76.8c0-42.41408 34.38592-76.8 76.8-76.8h481.28l281.6 281.6v665.6c0 42.41408-34.38592 76.8-76.8 76.8H235.52c-42.41408 0-76.8-34.38592-76.8-76.8v-430.08z",
@@ -614,7 +550,7 @@ var CSVIcon = import_react11.default.forwardRef(
614
550
  "p-id": "8469"
615
551
  }
616
552
  ),
617
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
553
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
618
554
  "path",
619
555
  {
620
556
  d: "M102.4 209.92h460.8c42.41408 0 76.8 34.38592 76.8 76.8v153.6c0 42.41408-34.38592 76.8-76.8 76.8H102.4c-42.41408 0-76.8-34.38592-76.8-76.8V286.72c0-42.41408 34.38592-76.8 76.8-76.8z m129.81248 176.2304c-2.7136 11.80672-7.18848 20.45952-13.42464 25.9584-6.23104 5.49888-13.6704 8.25344-22.3232 8.25344-11.74016 0-21.2736-4.3264-28.60544-12.98432-7.33184-8.6528-10.99776-23.17312-10.99776-43.55584 0-19.21536 3.72224-33.11104 11.1616-41.69216 7.44448-8.58112 17.14176-12.87168 29.09696-12.87168 8.6528 0 16.00512 2.42176 22.05696 7.26016 6.04672 4.84352 10.02496 11.4432 11.9296 19.79904l32.23552-7.69536c-3.67104-12.90752-9.1648-22.8096-16.50176-29.70112-12.31872-11.66336-28.34432-17.48992-48.07168-17.48992-22.58432 0-40.8064 7.424-54.66624 22.272-13.86496 14.848-20.79232 35.69664-20.79232 62.53568 0 25.37472 6.89152 45.37856 20.67968 60.0064 13.78816 14.62784 31.3856 21.94432 52.80256 21.94432 17.3056 0 31.5904-4.27008 42.84416-12.81536 11.25376-8.54016 19.3024-21.61152 24.14592-39.21408l-31.56992-10.0096z m51.25632 6.81984c2.12992 18.03776 8.6528 31.7696 19.57888 41.19552 10.9312 9.4208 26.58304 14.1312 46.97088 14.1312 14.00832 0 25.7024-1.96096 35.09248-5.88288 9.38496-3.92192 16.64512-9.91744 21.78048-17.98656 5.13024-8.064 7.70048-16.7168 7.70048-25.9584 0-10.1888-2.1504-18.75456-6.43584-25.68192-4.29056-6.93248-10.22976-12.39552-17.8176-16.39424-7.59296-3.9936-19.30752-7.86432-35.1488-11.60192-15.84128-3.7376-25.81504-7.33184-29.92128-10.78272-3.2256-2.7136-4.8384-5.97504-4.8384-9.78944 0-4.17792 1.72544-7.51616 5.1712-10.0096 5.3504-3.88608 12.75904-5.83168 22.2208-5.83168 9.1648 0 16.04096 1.8176 20.62336 5.44768 4.5824 3.63008 7.57248 9.58976 8.96 17.87392l32.5632-1.4336c-0.512-14.80704-5.888-26.65472-16.11264-35.52768-10.22976-8.87296-25.46688-13.312-45.70624-13.312-12.3904 0-22.97344 1.87392-31.73376 5.61152-8.76544 3.74272-15.47264 9.18528-20.13184 16.3328-4.6592 7.15264-6.98368 14.83776-6.98368 23.05024 0 12.75904 4.95104 23.5776 14.848 32.45056 7.04 6.30784 19.28704 11.6224 36.74112 15.9488 13.568 3.37408 22.25664 5.71904 26.07104 7.04 5.57056 1.98144 9.47712 4.31104 11.71456 6.98368 2.23744 2.67776 3.3536 5.92384 3.3536 9.73824 0 5.9392-2.65728 11.12576-7.97184 15.5648-5.31968 4.43392-13.21984 6.656-23.7056 6.656-9.90208 0-17.7664-2.49344-23.59808-7.48032-5.82656-4.98688-9.69728-12.8-11.60192-23.43424l-31.68256 3.08224zM483.1232 445.44h34.7648l57.74848-161.25952h-34.53952l-39.49056 119.3472-40.81152-119.3472h-35.30752L483.11808 445.44z",
@@ -622,7 +558,7 @@ var CSVIcon = import_react11.default.forwardRef(
622
558
  "p-id": "8470"
623
559
  }
624
560
  ),
625
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
561
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
626
562
  "path",
627
563
  {
628
564
  d: "M266.24 634.88m30.72 0l563.2 0q30.72 0 30.72 30.72l0 0q0 30.72-30.72 30.72l-563.2 0q-30.72 0-30.72-30.72l0 0q0-30.72 30.72-30.72Z",
@@ -630,7 +566,7 @@ var CSVIcon = import_react11.default.forwardRef(
630
566
  "p-id": "8471"
631
567
  }
632
568
  ),
633
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
569
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
634
570
  "path",
635
571
  {
636
572
  d: "M266.24 808.96m30.72 0l563.2 0q30.72 0 30.72 30.72l0 0q0 30.72-30.72 30.72l-563.2 0q-30.72 0-30.72-30.72l0 0q0-30.72 30.72-30.72Z",
@@ -648,11 +584,11 @@ var csv_default = CSVIcon;
648
584
 
649
585
  // ../base-ui/src/assets/txt.tsx
650
586
  var import_react12 = __toESM(require("react"), 1);
651
- var import_jsx_runtime13 = require("react/jsx-runtime");
587
+ var import_jsx_runtime12 = require("react/jsx-runtime");
652
588
  var TxtIcon = import_react12.default.forwardRef(
653
589
  (_a, ref) => {
654
590
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
655
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
591
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
656
592
  "svg",
657
593
  __spreadProps(__spreadValues({
658
594
  ref,
@@ -661,7 +597,7 @@ var TxtIcon = import_react12.default.forwardRef(
661
597
  }, props), {
662
598
  viewBox: "0 0 1024 1024",
663
599
  xmlns: "http://www.w3.org/2000/svg",
664
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
600
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
665
601
  "path",
666
602
  {
667
603
  d: "M764.6 791c-35.6 0-77.2-19.2-77.2-73.6 0-21.8 7.8-37.2 25.2-49.6 17-12.2 43-20.8 73.4-24.4 42.8-5 91-7.8 132.2-9.2 0.6 0 1 0.2 1.6 0.4 0.6 0.2 1 0.6 1.4 1 0.4 0.4 0.6 0.8 0.8 1.4 0.2 0.6 0.2 1 0.2 1.6-5.4 102.4-57.2 152.4-157.6 152.4z m42.2-460.6c-84.6-0.6-160.4 48.8-192.8 125.6-0.6 1.4-1 2.8-1.6 4.2-0.4 1.4-0.8 2.8-1 4.2-0.2 1.4-0.6 2.8-0.6 4.4-0.2 1.4-0.2 3-0.2 4.4 0 1.4 0 3 0.2 4.4 0.2 1.4 0.4 3 0.6 4.4 0.2 1.4 0.6 2.8 1 4.2 0.4 1.4 0.8 2.8 1.4 4.2 0.6 1.4 1.2 2.8 1.8 4 0.6 1.4 1.4 2.6 2.2 3.8 0.8 1.2 1.6 2.4 2.6 3.6 1 1.2 1.8 2.2 3 3.2 1 1 2 2 3.2 3 1.2 1 2.2 1.8 3.4 2.6 1.2 0.8 2.4 1.6 3.8 2.4 1.2 0.8 2.6 1.4 4 2 1.4 0.6 2.8 1 4.2 1.6l4.2 1.2c1.4 0.4 2.8 0.6 4.4 0.6 1.4 0.2 3 0.2 4.4 0.2 1.4 0 3 0 4.4-0.2 1.4-0.2 3-0.4 4.4-0.6 1.4-0.2 2.8-0.6 4.2-1 1.4-0.4 2.8-0.8 4.2-1.4 1.4-0.6 2.6-1.2 4-1.8 1.2-0.6 2.6-1.4 3.8-2.2 1.2-0.8 2.4-1.6 3.6-2.6 1.2-1 2.2-2 3.2-3s2-2.2 3-3.2c1-1.2 1.8-2.4 2.6-3.6 0.8-1.2 1.6-2.4 2.2-3.8 0.8-1.2 1.4-2.6 2-4 18-42.8 60.4-70.4 108.2-70.8 65.6-0.4 118.6 54.2 118.6 120.4 0 0.4 0 0.8-0.2 1.2-0.2 0.4-0.4 0.6-0.6 1-0.2 0.2-0.6 0.6-1 0.6-0.4 0.2-0.8 0.2-1.2 0.2-44.4 1.2-97.2 4.2-144.4 9.8-111 13.2-177.4 74.2-177.4 163.4 0 47.4 17.8 90 50 120 30.2 28.2 71.6 43.6 116.4 43.6 63 0 117-16.4 158.2-47.6h0.2c0 1.4 0 3 0.2 4.4 0.2 1.4 0.4 3 0.6 4.4 0.2 1.4 0.6 2.8 1 4.2 0.4 1.4 1 2.8 1.4 4.2 0.6 1.4 1.2 2.8 1.8 4 0.6 1.4 1.4 2.6 2.2 3.8 0.8 1.2 1.6 2.4 2.6 3.6 1 1.2 1.8 2.2 3 3.2 1 1 2.2 2 3.2 3 1.2 1 2.2 1.8 3.6 2.6 1.2 0.8 2.4 1.6 3.8 2.2 1.2 0.8 2.6 1.4 4 2 1.4 0.6 2.8 1 4.2 1.6 1.4 0.4 2.8 0.8 4.2 1 1.4 0.2 2.8 0.6 4.4 0.6 1.4 0.2 3 0.2 4.4 0.2 1.4 0 3 0 4.4-0.2 1.4-0.2 3-0.4 4.4-0.6 1.4-0.2 2.8-0.6 4.2-1 1.4-0.4 2.8-1 4.2-1.4 1.4-0.6 2.6-1.2 4-1.8 1.2-0.6 2.6-1.4 3.8-2.2 1.2-0.8 2.4-1.6 3.6-2.6 1.2-1 2.2-2 3.2-3s2-2.2 3-3.2c1-1.2 1.8-2.4 2.6-3.6 0.8-1.2 1.6-2.4 2.2-3.8 0.6-1.2 1.4-2.6 1.8-4 0.6-1.4 1-2.8 1.4-4.2 0.4-1.4 0.8-2.8 1-4.2 0.2-1.4 0.6-3 0.6-4.4 0.2-1.4 0.2-3 0.2-4.4V541.2c-0.4-115-91.8-210-205.8-210.8zM210.2 554l88-236.6c0.2-0.8 0.8-1.4 1.4-2 0.6-0.4 1.4-0.8 2.4-0.8 0.8 0 1.6 0.2 2.4 0.8 0.6 0.4 1.2 1.2 1.4 2l88 236.8c0.2 0.4 0.2 0.6 0.2 1v1c0 0.4-0.2 0.6-0.2 1-0.2 0.4-0.2 0.6-0.4 0.8-0.2 0.2-0.4 0.6-0.6 0.8-0.2 0.2-0.6 0.4-0.8 0.6-0.2 0.2-0.6 0.2-1 0.4-0.4 0-0.6 0.2-1 0.2h-176c-0.4 0-0.6 0-1-0.2-0.4 0-0.6-0.2-1-0.4-0.2-0.2-0.6-0.4-0.8-0.6-0.2-0.2-0.4-0.4-0.6-0.8-0.2-0.2-0.4-0.6-0.4-0.8-0.2-0.4-0.2-0.6-0.2-1v-1c0-0.4 0-0.8 0.2-1.2z m377 264L343.8 163.2c-0.8-2.2-1.8-4.2-2.8-6.2-1.2-2-2.4-3.8-3.8-5.6-1.4-1.8-3-3.4-4.6-5-1.6-1.6-3.4-3-5.2-4.2-1.8-1.2-3.8-2.4-5.8-3.4s-4.2-1.8-6.2-2.6c-2.2-0.6-4.4-1.2-6.6-1.6-2.2-0.4-4.4-0.6-6.8-0.6-2.2 0-4.6 0.2-6.8 0.6-2.2 0.4-4.4 0.8-6.6 1.6-2.2 0.6-4.2 1.6-6.2 2.6s-4 2.2-5.8 3.4c-1.8 1.2-3.6 2.8-5.2 4.2-1.6 1.6-3.2 3.2-4.6 5-1.4 1.8-2.6 3.6-3.8 5.6-1.2 2-2 4-2.8 6.2L16.6 818c-0.4 1.4-1 2.8-1.2 4.2-0.4 1.4-0.6 2.8-0.8 4.4-0.2 1.4-0.4 3-0.4 4.4v4.4c0 1.4 0.2 3 0.4 4.4 0.2 1.4 0.4 2.8 0.8 4.4l1.2 4.2c0.4 1.4 1 2.8 1.6 4 0.6 1.4 1.2 2.6 2 3.8l2.4 3.6c0.8 1.2 1.8 2.4 2.8 3.4 1 1 2 2.2 3 3.2s2.2 2 3.4 2.8c1.2 0.8 2.4 1.8 3.6 2.4 1.2 0.8 2.6 1.4 3.8 2.2 1.4 0.6 2.6 1.2 4 1.8 1.4 0.6 2.8 1 4.2 1.4 1.4 0.4 2.8 0.6 4.2 1 1.4 0.2 2.8 0.4 4.4 0.6 1.4 0 3 0.2 4.4 0 1.4 0 2.8-0.2 4.4-0.4 1.4-0.2 2.8-0.4 4.2-0.8l4.2-1.2c1.4-0.4 2.8-1 4-1.6 1.4-0.6 2.6-1.2 3.8-2l3.6-2.4c1.2-0.8 2.4-1.8 3.4-2.8 1-1 2.2-2 3.2-3s2-2.2 2.8-3.4c0.8-1.2 1.8-2.4 2.6-3.6 0.8-1.2 1.4-2.6 2.2-3.8 0.6-1.4 1.2-2.6 1.8-4L174 652.2c0.2-0.8 0.8-1.4 1.4-2 0.6-0.4 1.4-0.8 2.4-0.8h249c0.8 0 1.6 0.2 2.4 0.8 0.6 0.4 1.2 1.2 1.4 2l73.4 197.4c0.6 1.4 1.2 2.8 1.8 4 0.6 1.4 1.4 2.6 2.2 3.8 0.8 1.2 1.6 2.4 2.6 3.6 0.8 1.2 1.8 2.2 2.8 3.4 1 1 2 2 3.2 3s2.2 1.8 3.4 2.8l3.6 2.4c1.2 0.8 2.6 1.4 3.8 2 1.4 0.6 2.6 1.2 4 1.6l4.2 1.2c1.4 0.4 2.8 0.6 4.2 0.8 1.4 0.2 2.8 0.4 4.4 0.4h4.4c1.4 0 2.8-0.2 4.4-0.6s2.8-0.6 4.2-1c1.4-0.4 2.8-0.8 4.2-1.4 1.4-0.6 2.6-1 4-1.8 1.4-0.6 2.6-1.4 3.8-2.2l3.6-2.4c1.2-0.8 2.2-1.8 3.4-2.8 1-1 2-2 3-3.2 1-1 1.8-2.2 2.8-3.4l2.4-3.6c0.8-1.2 1.4-2.6 2-3.8 0.6-1.4 1.2-2.6 1.6-4l1.2-4.2c0.4-1.4 0.6-2.8 0.8-4.4 0.2-1.4 0.4-3 0.4-4.4v-4.4c0-1.4-0.2-3-0.4-4.4-0.2-1.4-0.6-2.8-0.8-4.4-1-1.4-1.4-2.8-2-4.2z",
@@ -678,11 +614,11 @@ var txt_default = TxtIcon;
678
614
 
679
615
  // ../base-ui/src/assets/java.tsx
680
616
  var import_react13 = __toESM(require("react"), 1);
681
- var import_jsx_runtime14 = require("react/jsx-runtime");
617
+ var import_jsx_runtime13 = require("react/jsx-runtime");
682
618
  var JavaIcon = import_react13.default.forwardRef(
683
619
  (_a, ref) => {
684
620
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
685
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
621
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
686
622
  "svg",
687
623
  __spreadProps(__spreadValues({
688
624
  ref,
@@ -691,7 +627,7 @@ var JavaIcon = import_react13.default.forwardRef(
691
627
  }, props), {
692
628
  viewBox: "0 0 32 32",
693
629
  xmlns: "http://www.w3.org/2000/svg",
694
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
630
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
695
631
  "path",
696
632
  {
697
633
  d: "M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z",
@@ -709,11 +645,11 @@ var java_default = JavaIcon;
709
645
 
710
646
  // ../base-ui/src/assets/sql.tsx
711
647
  var import_react14 = __toESM(require("react"), 1);
712
- var import_jsx_runtime15 = require("react/jsx-runtime");
648
+ var import_jsx_runtime14 = require("react/jsx-runtime");
713
649
  var SQLIcon = import_react14.default.forwardRef(
714
650
  (_a, ref) => {
715
651
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
716
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
652
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
717
653
  "svg",
718
654
  __spreadProps(__spreadValues({
719
655
  ref,
@@ -723,7 +659,7 @@ var SQLIcon = import_react14.default.forwardRef(
723
659
  viewBox: "0 0 1024 1024",
724
660
  xmlns: "http://www.w3.org/2000/svg",
725
661
  children: [
726
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
662
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
727
663
  "path",
728
664
  {
729
665
  d: "M477.12 858.56l14.72-16.64a77.44 77.44 0 0 0 54.08 24c25.6 0 40.96-12.8 40.96-32s-14.08-26.56-32-34.88l-28.48-12.16a52.16 52.16 0 0 1 22.08-101.76 79.36 79.36 0 0 1 57.28 24l-12.8 15.68a64 64 0 0 0-44.48-18.24c-22.08 0-36.48 11.2-36.48 28.8s16.96 25.92 32 32l28.16 12.16A54.08 54.08 0 0 1 611.84 832a58.88 58.88 0 0 1-66.24 55.36 93.76 93.76 0 0 1-68.48-28.8zM810.24 928a96 96 0 0 1-28.16 4.16 74.24 74.24 0 0 1-71.68-46.4c-42.56-4.8-70.4-42.56-70.4-99.84 0-62.4 34.56-100.48 83.52-100.48s83.2 38.08 83.2 100.48c0 56.32-27.52 93.44-68.8 100.8a50.24 50.24 0 0 0 47.68 25.92 68.8 68.8 0 0 0 20.8-2.88z m-87.68-61.44c34.88 0 57.92-32 57.92-81.6s-23.04-79.04-57.92-79.04-58.24 30.08-58.24 79.04 23.04 82.56 58.24 82.56zM848 688.96h24.64V864h85.44v21.12H848zM444.16 377.28c-192 0-387.2-52.8-387.2-153.92s194.56-154.24 387.2-154.24S832 121.92 832 224s-195.52 153.28-387.84 153.28z m0-244.16C234.88 133.12 120.96 192 120.96 224s113.92 89.92 323.2 89.92S768 253.76 768 224s-114.88-90.88-323.84-90.88z",
@@ -731,7 +667,7 @@ var SQLIcon = import_react14.default.forwardRef(
731
667
  fill: themeSvgIconColor
732
668
  }
733
669
  ),
734
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
670
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
735
671
  "path",
736
672
  {
737
673
  d: "M444.16 554.88c-192 0-387.2-52.8-387.2-154.24a32 32 0 0 1 64 0c0 32 113.92 90.24 323.2 90.24S768 431.36 768 400.64a32 32 0 1 1 64 0c0 101.44-195.52 154.24-387.84 154.24zM444.16 732.48c-192 0-387.2-53.12-387.2-154.24a32 32 0 0 1 64 0c0 32 113.92 90.24 323.2 90.24a32 32 0 1 1 0 64zM444.16 932.16c-192 0-387.2-52.8-387.2-153.92a32 32 0 0 1 64 0c0 30.4 113.92 89.92 323.2 89.92a32 32 0 0 1 0 64z",
@@ -739,7 +675,7 @@ var SQLIcon = import_react14.default.forwardRef(
739
675
  fill: themeSvgIconColor
740
676
  }
741
677
  ),
742
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
678
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
743
679
  "path",
744
680
  {
745
681
  d: "M800 699.2a32 32 0 0 1-32-32V234.24a32 32 0 0 1 64 0v432.96a32 32 0 0 1-32 32zM88.96 821.12a32 32 0 0 1-32-32V234.24a32 32 0 0 1 64 0v554.88a32 32 0 0 1-32 32z",
@@ -757,11 +693,11 @@ var sql_default = SQLIcon;
757
693
 
758
694
  // ../base-ui/src/assets/log.tsx
759
695
  var import_react15 = __toESM(require("react"), 1);
760
- var import_jsx_runtime16 = require("react/jsx-runtime");
696
+ var import_jsx_runtime15 = require("react/jsx-runtime");
761
697
  var LogIcon = import_react15.default.forwardRef(
762
698
  (_a, ref) => {
763
699
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
764
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
700
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
765
701
  "svg",
766
702
  __spreadProps(__spreadValues({
767
703
  ref,
@@ -771,7 +707,7 @@ var LogIcon = import_react15.default.forwardRef(
771
707
  viewBox: "0 0 1024 1024",
772
708
  xmlns: "http://www.w3.org/2000/svg",
773
709
  children: [
774
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
710
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
775
711
  "path",
776
712
  {
777
713
  d: "M568.896 910.208h-512V113.792h739.52V512h-56.832V170.688H113.792v682.624H512z",
@@ -779,7 +715,7 @@ var LogIcon = import_react15.default.forwardRef(
779
715
  "p-id": "12257"
780
716
  }
781
717
  ),
782
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
718
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
783
719
  "path",
784
720
  {
785
721
  d: "M711.104 512c108.096 0 199.104 91.008 199.104 199.104 0 108.096-91.008 199.104-199.04 199.104C602.944 910.208 512 819.2 512 711.168 512 602.944 603.008 512 711.104 512m0-56.896c-142.208 0-256 113.792-256 256s113.792 256 256 256 256-113.792 256-256-113.792-256-256-256zM227.584 56.96h56.832v170.688h-56.832V56.896z m341.312 0h56.896v170.688h-56.96V56.896zM170.688 341.312h512v56.96h-512v-56.96z m0 170.688H455.04v56.896H170.688V512z m0 170.688h227.52v56.896H170.688v-56.96z",
@@ -787,7 +723,7 @@ var LogIcon = import_react15.default.forwardRef(
787
723
  "p-id": "12258"
788
724
  }
789
725
  ),
790
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M853.312 796.416h-170.624V568.96h56.896v170.688h113.728z", fill: themeSvgIconColor, "p-id": "12259" })
726
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M853.312 796.416h-170.624V568.96h56.896v170.688h113.728z", fill: themeSvgIconColor, "p-id": "12259" })
791
727
  ]
792
728
  })
793
729
  );
@@ -798,11 +734,11 @@ var log_default = LogIcon;
798
734
 
799
735
  // ../base-ui/src/assets/mac.tsx
800
736
  var import_react16 = __toESM(require("react"), 1);
801
- var import_jsx_runtime17 = require("react/jsx-runtime");
737
+ var import_jsx_runtime16 = require("react/jsx-runtime");
802
738
  var MACIcon = import_react16.default.forwardRef(
803
739
  (_a, ref) => {
804
740
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
805
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
741
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
806
742
  "svg",
807
743
  __spreadProps(__spreadValues({
808
744
  ref,
@@ -811,7 +747,7 @@ var MACIcon = import_react16.default.forwardRef(
811
747
  }, props), {
812
748
  viewBox: "0 0 24 24",
813
749
  xmlns: "http://www.w3.org/2000/svg",
814
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
750
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
815
751
  "path",
816
752
  {
817
753
  d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
@@ -829,11 +765,11 @@ var mac_default = MACIcon;
829
765
 
830
766
  // ../base-ui/src/assets/bitcoin.tsx
831
767
  var import_react17 = __toESM(require("react"), 1);
832
- var import_jsx_runtime18 = require("react/jsx-runtime");
768
+ var import_jsx_runtime17 = require("react/jsx-runtime");
833
769
  var BitcoinIcon = import_react17.default.forwardRef(
834
770
  (_a, ref) => {
835
771
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
836
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
772
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
837
773
  "svg",
838
774
  __spreadProps(__spreadValues({
839
775
  ref,
@@ -842,7 +778,7 @@ var BitcoinIcon = import_react17.default.forwardRef(
842
778
  }, props), {
843
779
  viewBox: "0 0 24 24",
844
780
  xmlns: "http://www.w3.org/2000/svg",
845
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
781
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
846
782
  "path",
847
783
  {
848
784
  d: "M23.638 14.904c-1.602 6.43-8.113 10.34-14.542 8.736C2.67 22.05-1.244 15.525.362 9.105 1.962 2.67 8.475-1.243 14.9.358c6.43 1.605 10.342 8.115 8.738 14.548v-.002zm-6.35-4.613c.24-1.59-.974-2.45-2.64-3.03l.54-2.153-1.315-.33-.525 2.107c-.345-.087-.705-.167-1.064-.25l.526-2.127-1.32-.33-.54 2.165c-.285-.067-.565-.132-.84-.2l-1.815-.45-.35 1.407s.975.225.955.236c.535.136.63.486.615.766l-1.477 5.92c-.075.166-.24.406-.614.314.015.02-.96-.24-.96-.24l-.66 1.51 1.71.426.93.242-.54 2.19 1.32.327.54-2.17c.36.1.705.19 1.05.273l-.51 2.154 1.32.33.545-2.19c2.24.427 3.93.257 4.64-1.774.57-1.637-.03-2.58-1.217-3.196.854-.193 1.5-.76 1.68-1.93h.01zm-3.01 4.22c-.404 1.64-3.157.75-4.05.53l.72-2.9c.896.23 3.757.67 3.33 2.37zm.41-4.24c-.37 1.49-2.662.735-3.405.55l.654-2.64c.744.18 3.137.524 2.75 2.084v.006z",
@@ -860,11 +796,11 @@ var bitcoin_default = BitcoinIcon;
860
796
 
861
797
  // ../base-ui/src/assets/css.tsx
862
798
  var import_react18 = __toESM(require("react"), 1);
863
- var import_jsx_runtime19 = require("react/jsx-runtime");
799
+ var import_jsx_runtime18 = require("react/jsx-runtime");
864
800
  var CSSIcon = import_react18.default.forwardRef(
865
801
  (_a, ref) => {
866
802
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
867
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
803
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
868
804
  "svg",
869
805
  __spreadProps(__spreadValues({
870
806
  ref,
@@ -873,7 +809,7 @@ var CSSIcon = import_react18.default.forwardRef(
873
809
  }, props), {
874
810
  viewBox: "0 0 32 32",
875
811
  xmlns: "http://www.w3.org/2000/svg",
876
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
812
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
877
813
  "path",
878
814
  {
879
815
  fill: themeSvgIconColor,
@@ -889,12 +825,12 @@ var css_default = CSSIcon;
889
825
 
890
826
  // ../base-ui/src/assets/mermaid.tsx
891
827
  var import_react19 = __toESM(require("react"), 1);
892
- var import_jsx_runtime20 = require("react/jsx-runtime");
828
+ var import_jsx_runtime19 = require("react/jsx-runtime");
893
829
  var MermaidIcon = import_react19.default.forwardRef(
894
830
  // Memmaid need special size for good view
895
831
  (_a, ref) => {
896
832
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
897
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
833
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
898
834
  "svg",
899
835
  __spreadProps(__spreadValues({
900
836
  ref,
@@ -903,7 +839,7 @@ var MermaidIcon = import_react19.default.forwardRef(
903
839
  }, props), {
904
840
  viewBox: "0 0 24 24",
905
841
  xmlns: "http://www.w3.org/2000/svg",
906
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
842
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
907
843
  "path",
908
844
  {
909
845
  d: "M23.99 2.115A12.223 12.223 0 0 0 12 10.149 12.223 12.223 0 0 0 .01 2.115a12.23 12.23 0 0 0 5.32 10.604 6.562 6.562 0 0 1 2.845 5.423v3.754h7.65v-3.754a6.561 6.561 0 0 1 2.844-5.423 12.223 12.223 0 0 0 5.32-10.604Z",
@@ -921,11 +857,11 @@ var mermaid_default = MermaidIcon;
921
857
 
922
858
  // ../base-ui/src/assets/last-updated.tsx
923
859
  var import_react20 = __toESM(require("react"), 1);
924
- var import_jsx_runtime21 = require("react/jsx-runtime");
860
+ var import_jsx_runtime20 = require("react/jsx-runtime");
925
861
  var LastUpdatedIcon = import_react20.default.forwardRef(
926
862
  (_a, ref) => {
927
863
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
928
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
864
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
929
865
  "svg",
930
866
  __spreadProps(__spreadValues({
931
867
  ref,
@@ -934,7 +870,7 @@ var LastUpdatedIcon = import_react20.default.forwardRef(
934
870
  }, props), {
935
871
  viewBox: "0 0 1024 1024",
936
872
  xmlns: "http://www.w3.org/2000/svg",
937
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
873
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
938
874
  "path",
939
875
  {
940
876
  d: "M918.362566 956.685895 106.992291 956.685895c-14.145162 0-25.611308-11.466146-25.611308-25.611308L81.380984 191.053314c0-14.145162 11.467169-25.611308 25.611308-25.611308l811.370275 0c14.145162 0 25.611308 11.467169 25.611308 25.611308l0 740.02025C943.974897 945.219749 932.508751 956.685895 918.362566 956.685895zM132.603599 905.462257l760.146637 0L892.750235 216.665645 132.603599 216.665645 132.603599 905.462257zM915.696854 410.394904 109.450273 410.394904c-14.145162 0-25.611308-11.467169-25.611308-25.611308s11.467169-25.611308 25.611308-25.611308l806.246581 0c14.145162 0 25.611308 11.467169 25.611308 25.611308S929.842015 410.394904 915.696854 410.394904zM248.987283 313.735447c-14.145162 0-25.611308-11.467169-25.611308-25.611308L223.375975 91.962481c0-14.145162 11.467169-25.611308 25.611308-25.611308s25.611308 11.467169 25.611308 25.611308l0 196.160635C274.59859 302.269301 263.132444 313.735447 248.987283 313.735447zM786.915815 313.735447c-14.145162 0-25.611308-11.467169-25.611308-25.611308L761.304508 91.962481c0-14.145162 11.466146-25.611308 25.611308-25.611308s25.611308 11.467169 25.611308 25.611308l0 196.160635C812.527123 302.269301 801.060977 313.735447 786.915815 313.735447zM378.463146 832.067666c-4.732791 0-9.406231-1.641383-13.156648-4.787026-5.810333-4.874007-8.448416-12.56006-6.856152-19.97596l21.574365-100.484575c0.699941-3.261277 2.186805-6.30152 4.329609-8.856715l173.234483-206.507284c3.488451-4.158716 8.486278-6.760984 13.893428-7.234775 5.392824-0.473791 10.779507 1.219781 14.939247 4.709255l73.627904 61.765739c8.66024 7.264451 9.790994 20.173458 2.526543 28.832675L489.341443 786.03526c-2.143826 2.555196-4.880147 4.548596-7.969509 5.805216l-95.201246 38.71986C383.679961 831.573409 381.062344 832.067666 378.463146 832.067666zM418.978908 720.378911l-12.386098 57.68684 54.653761-22.228257 156.816558-186.93553-42.268686-35.458583L418.978908 720.378911zM483.354078 781.820262c-6.737448 0.001023-13.334703-3.322675-17.244756-9.414417l-23.737634-36.991496-40.554648-16.944927c-10.429537-4.358261-15.35164-16.34527-10.994402-26.774807 4.357238-10.42749 16.343223-15.350616 26.774807-10.993378l46.442752 19.404955c3.834328 1.601474 7.090489 4.333702 9.334599 7.830339l27.183106 42.361807c6.105045 9.513678 3.342118 22.174022-6.17156 28.278043C490.967476 780.771373 487.137241 781.820262 483.354078 781.820262zM601.041454 641.489166c-4.641717 0-9.307993-1.569752-13.143345-4.787026l-73.625858-61.765739c-8.659217-7.264451-9.78997-20.173458-2.52552-28.833699 7.263427-8.659217 20.171412-9.78997 28.833699-2.52552l73.625858 61.765739c8.659217 7.264451 9.78997 20.173458 2.52552 28.833699C612.683609 639.001509 606.882486 641.489166 601.041454 641.489166z",
@@ -951,11 +887,11 @@ var last_updated_default = LastUpdatedIcon;
951
887
 
952
888
  // ../base-ui/src/assets/snippets.tsx
953
889
  var import_react21 = __toESM(require("react"), 1);
954
- var import_jsx_runtime22 = require("react/jsx-runtime");
890
+ var import_jsx_runtime21 = require("react/jsx-runtime");
955
891
  var SnippetsIcon = import_react21.default.forwardRef(
956
892
  (_a, ref) => {
957
893
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
958
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
894
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
959
895
  "svg",
960
896
  __spreadProps(__spreadValues({
961
897
  ref,
@@ -964,7 +900,7 @@ var SnippetsIcon = import_react21.default.forwardRef(
964
900
  }, props), {
965
901
  viewBox: "0 0 24 24",
966
902
  xmlns: "http://www.w3.org/2000/svg",
967
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
903
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
968
904
  "path",
969
905
  {
970
906
  d: "M9.825 17.527a.111.111 0 0 1-.107-.142l3.05-10.837a.111.111 0 0 1 .108-.081H14.2c.074 0 .127.07.107.141l-3.063 10.838a.111.111 0 0 1-.107.08H9.825Zm-2.146-2.732a.11.11 0 0 1-.079-.033l-2.667-2.704a.111.111 0 0 1 0-.156L7.6 9.211a.111.111 0 0 1 .08-.033h1.702c.1 0 .149.12.079.19l-2.534 2.534a.111.111 0 0 0 0 .157l2.535 2.546c.07.07.02.19-.079.19H7.68Zm6.954 0a.111.111 0 0 1-.079-.19l2.525-2.546a.111.111 0 0 0 0-.157l-2.524-2.535a.111.111 0 0 1 .079-.19h1.692c.03 0 .058.013.078.034l2.68 2.69a.111.111 0 0 1 0 .157l-2.68 2.704a.111.111 0 0 1-.078.033h-1.693ZM12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12Zm0-22.667C6.118 1.333 1.333 6.118 1.333 12S6.118 22.667 12 22.667 22.667 17.882 22.667 12 17.882 1.333 12 1.333Z",
@@ -980,11 +916,11 @@ var snippets_default = SnippetsIcon;
980
916
 
981
917
  // ../base-ui/src/assets/test.tsx
982
918
  var import_react22 = __toESM(require("react"), 1);
983
- var import_jsx_runtime23 = require("react/jsx-runtime");
919
+ var import_jsx_runtime22 = require("react/jsx-runtime");
984
920
  var TestIcon = import_react22.default.forwardRef(
985
921
  (_a, ref) => {
986
922
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
987
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
923
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
988
924
  "svg",
989
925
  __spreadProps(__spreadValues({
990
926
  ref,
@@ -993,7 +929,7 @@ var TestIcon = import_react22.default.forwardRef(
993
929
  }, props), {
994
930
  viewBox: "0 0 1024 1024",
995
931
  xmlns: "http://www.w3.org/2000/svg",
996
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
932
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
997
933
  "path",
998
934
  {
999
935
  d: "M640 126.577778c-140.8 0-256 115.2-256 256 0 65.422222 25.6 125.155556 65.422222 170.666666l-91.022222 91.022223-35.555556-35.555556-174.933333 176.355556c-25.6 25.6-25.6 68.266667 0 93.866666 25.6 25.6 68.266667 25.6 93.866667 0l176.355555-176.355555-38.4-38.4 91.022223-91.022222c45.511111 41.244444 105.244444 65.422222 170.666666 65.422222 140.8 0 256-115.2 256-256-1.422222-142.222222-116.622222-256-257.422222-256z m19.911111 462.222222c-41.244444 0-75.377778-34.133333-75.377778-75.377778v-4.266666c0-8.533333 5.688889-14.222222 14.222223-14.222223s14.222222 5.688889 14.222222 14.222223v4.266666c0 25.6 21.333333 46.933333 46.933333 46.933334 8.533333 0 14.222222 5.688889 14.222222 14.222222s-5.688889 14.222222-14.222222 14.222222zM817.777778 341.333333h-58.311111c-2.844444 12.8-7.111111 24.177778-14.222223 35.555556l41.244445 41.244444c5.688889 5.688889 5.688889 14.222222 0 19.911111-2.844444 2.844444-7.111111 4.266667-9.955556 4.266667-2.844444 0-7.111111-1.422222-9.955555-4.266667L725.333333 396.8c-14.222222 9.955556-31.288889 15.644444-49.777777 15.644444-18.488889 0-35.555556-5.688889-49.777778-15.644444l-41.244445 41.244444c-2.844444 2.844444-7.111111 4.266667-9.955555 4.266667-2.844444 0-7.111111-1.422222-9.955556-4.266667-5.688889-5.688889-5.688889-14.222222 0-19.911111l41.244445-41.244444c-7.111111-9.955556-12.8-22.755556-14.222223-35.555556h-58.311111c-8.533333 0-14.222222-5.688889-14.222222-14.222222s5.688889-14.222222 14.222222-14.222222h58.311111c2.844444-12.8 7.111111-24.177778 14.222223-35.555556l-41.244445-41.244444c-5.688889-5.688889-5.688889-14.222222 0-19.911111 5.688889-5.688889 14.222222-5.688889 19.911111 0l41.244445 41.244444c14.222222-9.955556 31.288889-15.644444 49.777778-15.644444 18.488889 0 35.555556 5.688889 49.777777 15.644444l41.244445-41.244444c5.688889-5.688889 14.222222-5.688889 19.911111 0 5.688889 5.688889 5.688889 14.222222 0 19.911111l-41.244445 41.244444c7.111111 9.955556 12.8 22.755556 14.222223 35.555556h58.311111c8.533333 0 14.222222 5.688889 14.222222 14.222222s-5.688889 14.222222-14.222222 14.222222z",
@@ -1010,11 +946,11 @@ var test_default = TestIcon;
1010
946
 
1011
947
  // ../base-ui/src/assets/diff.tsx
1012
948
  var import_react23 = __toESM(require("react"), 1);
1013
- var import_jsx_runtime24 = require("react/jsx-runtime");
949
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1014
950
  var DiffIcon = import_react23.default.forwardRef(
1015
951
  (_a, ref) => {
1016
952
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1017
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
953
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1018
954
  "svg",
1019
955
  __spreadProps(__spreadValues({
1020
956
  ref,
@@ -1024,8 +960,8 @@ var DiffIcon = import_react23.default.forwardRef(
1024
960
  viewBox: "0 0 24 24",
1025
961
  xmlns: "http://www.w3.org/2000/svg",
1026
962
  children: [
1027
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }),
1028
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
963
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }),
964
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1029
965
  "path",
1030
966
  {
1031
967
  fill: themeSvgIconColor,
@@ -1042,11 +978,11 @@ var diff_default = DiffIcon;
1042
978
 
1043
979
  // ../base-ui/src/assets/dpa.tsx
1044
980
  var import_react24 = __toESM(require("react"), 1);
1045
- var import_jsx_runtime25 = require("react/jsx-runtime");
981
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1046
982
  var DPAIcon = import_react24.default.forwardRef(
1047
983
  (_a, ref) => {
1048
984
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1049
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
985
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1050
986
  "svg",
1051
987
  __spreadProps(__spreadValues({
1052
988
  ref,
@@ -1055,7 +991,7 @@ var DPAIcon = import_react24.default.forwardRef(
1055
991
  }, props), {
1056
992
  viewBox: "0 0 24 24",
1057
993
  xmlns: "http://www.w3.org/2000/svg",
1058
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
994
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1059
995
  "path",
1060
996
  {
1061
997
  d: "M23.373 20.364a4.682 4.682 0 0 1-8.1 0 4.694 4.694 0 0 1 0-4.669c.326-.564.778-.995 1.272-1.358.472.198 3.394 1.421 3.917 1.717a2.291 2.291 0 0 0-3.109.842 2.304 2.304 0 0 0 0 2.267 2.267 2.267 0 0 0 2.564 1.053 2.254 2.254 0 0 0 1.375-1.053 2.328 2.328 0 0 0 0-2.279 2.478 2.478 0 0 0-.83-.83l-3.53-2.045-5.727-3.317a5.022 5.022 0 0 0 4.139-.36l6.32 3.641a4.682 4.682 0 0 1 1.709 6.391zm-14-2.01v.004l-3.558 2a2.27 2.27 0 0 1-3.102-.823 2.267 2.267 0 0 1 2.551-3.332c.591.161 1.089.56 1.375 1.102v-.05a2.27 2.27 0 0 1-.824 3.103c.559-.303 3.352-2.62 3.465-2.714-.304-1.744-1.573-3.24-3.396-3.72a4.608 4.608 0 0 0-3.558.479 4.67 4.67 0 0 0-1.694 6.383 4.682 4.682 0 0 0 2.865 2.192 4.657 4.657 0 0 0 3.66-.56l6.877-3.973c-.019-1.303.512-2.604 1.375-3.58l-6.036 3.49zm-2.4-4.703v-8.1h.012c.002-1.617.821-3.189 2.321-4.055a4.682 4.682 0 1 1 2.337 8.737 4.678 4.678 0 0 1-1.55-.28c-.016-.085-.733-3.796-.733-4.188L9.29 9.59v6.761a4.075 4.075 0 0 0-2.317-2.7zm2.403-8.1a2.279 2.279 0 1 0 4.546 0 2.23 2.23 0 0 0-.297-1.127 2.279 2.279 0 0 0-1.97-1.14 2.267 2.267 0 0 0-2.279 2.254v.013z",
@@ -1071,11 +1007,11 @@ var dpa_default = DPAIcon;
1071
1007
 
1072
1008
  // ../base-ui/src/assets/subp.tsx
1073
1009
  var import_react25 = __toESM(require("react"), 1);
1074
- var import_jsx_runtime26 = require("react/jsx-runtime");
1010
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1075
1011
  var SubPIcon = import_react25.default.forwardRef(
1076
1012
  (_a, ref) => {
1077
1013
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1078
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1014
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1079
1015
  "svg",
1080
1016
  __spreadProps(__spreadValues({
1081
1017
  ref,
@@ -1084,7 +1020,7 @@ var SubPIcon = import_react25.default.forwardRef(
1084
1020
  }, props), {
1085
1021
  viewBox: "0 0 24 24",
1086
1022
  xmlns: "http://www.w3.org/2000/svg",
1087
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1023
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1088
1024
  "path",
1089
1025
  {
1090
1026
  d: "M11.999 0a12 12 0 100 24A12 12 0 0012 0zm1.183 5.255h.048c3.273 0 5.247 1.48 5.247 4.103 0 2.727-1.974 4.536-5.295 4.669v-1.742c1.837-.11 2.801-1.061 2.801-2.744 0-1.498-.957-2.442-2.8-2.516zm-1.773.026l.005 11.896c.779.052 1.583.18 2.26.337l-.269 1.324H6.788v-1.324a14.96 14.96 0 012.26-.337V6.993a14.71 14.71 0 01-2.26-.337V5.33h2.26c.64 0 1.469-.028 2.361-.05z",
@@ -1102,11 +1038,11 @@ var subp_default = SubPIcon;
1102
1038
 
1103
1039
  // ../base-ui/src/assets/t3p.tsx
1104
1040
  var import_react26 = __toESM(require("react"), 1);
1105
- var import_jsx_runtime27 = require("react/jsx-runtime");
1041
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1106
1042
  var T3PIcon = import_react26.default.forwardRef(
1107
1043
  (_a, ref) => {
1108
1044
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1109
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1045
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1110
1046
  "svg",
1111
1047
  __spreadProps(__spreadValues({
1112
1048
  ref,
@@ -1115,7 +1051,7 @@ var T3PIcon = import_react26.default.forwardRef(
1115
1051
  }, props), {
1116
1052
  viewBox: "0 0 24 24",
1117
1053
  xmlns: "http://www.w3.org/2000/svg",
1118
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1054
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1119
1055
  "path",
1120
1056
  {
1121
1057
  d: "M9.71 2.136a1.43 1.43 0 0 0-2.047 0h-.007a1.48 1.48 0 0 0-.421 1.042c0 .41.161.777.422 1.039l.007.007c.257.264.616.426 1.019.426.404 0 .766-.162 1.027-.426l.003-.007c.261-.262.421-.629.421-1.039 0-.408-.159-.777-.421-1.042H9.71zM8.683 22.295c.404 0 .766-.167 1.027-.429l.003-.008c.261-.261.421-.631.421-1.036 0-.41-.159-.778-.421-1.044H9.71a1.42 1.42 0 0 0-1.027-.432 1.4 1.4 0 0 0-1.02.432h-.007c-.26.266-.422.634-.422 1.044 0 .406.161.775.422 1.036l.007.008c.258.262.617.429 1.02.429zm7.89-4.462c.359-.096.683-.33.882-.684l.027-.052a1.47 1.47 0 0 0 .114-1.067 1.454 1.454 0 0 0-.675-.896l-.021-.014a1.425 1.425 0 0 0-1.078-.132c-.36.091-.684.335-.881.686-.2.349-.241.75-.146 1.119.099.363.33.691.675.896h.002c.346.203.737.239 1.101.144zm-6.405-7.342a2.083 2.083 0 0 0-1.485-.627c-.58 0-1.103.242-1.482.627-.378.385-.612.916-.612 1.507s.233 1.124.612 1.514a2.08 2.08 0 0 0 2.967 0c.379-.39.612-.923.612-1.514s-.233-1.122-.612-1.507zm-.835-2.51c.843.141 1.6.552 2.178 1.144h.004c.092.093.182.196.265.299l1.446-.851a3.176 3.176 0 0 1-.047-1.808 3.149 3.149 0 0 1 1.456-1.926l.025-.016a3.062 3.062 0 0 1 2.345-.306c.77.21 1.465.721 1.898 1.482v.002c.431.757.518 1.626.313 2.408a3.145 3.145 0 0 1-1.456 1.928l-.198.118h-.02a3.095 3.095 0 0 1-2.154.201 3.127 3.127 0 0 1-1.514-.944l-1.444.848a4.162 4.162 0 0 1 0 2.879l1.444.846c.413-.47.939-.789 1.514-.944a3.041 3.041 0 0 1 2.371.319l.048.023v.002a3.17 3.17 0 0 1 1.408 1.906 3.215 3.215 0 0 1-.313 2.405l-.026.053-.003-.005a3.147 3.147 0 0 1-1.867 1.436 3.096 3.096 0 0 1-2.371-.318v-.006a3.156 3.156 0 0 1-1.456-1.927 3.175 3.175 0 0 1 .047-1.805l-1.446-.848a3.905 3.905 0 0 1-.265.294l-.004.005a3.938 3.938 0 0 1-2.178 1.138v1.699a3.09 3.09 0 0 1 1.56.862l.002.004c.565.572.914 1.368.914 2.243 0 .873-.35 1.664-.914 2.239l-.002.009a3.1 3.1 0 0 1-2.21.931 3.1 3.1 0 0 1-2.206-.93h-.002v-.009a3.186 3.186 0 0 1-.916-2.239c0-.875.35-1.672.916-2.243v-.004h.002a3.1 3.1 0 0 1 1.558-.862v-1.699a3.926 3.926 0 0 1-2.176-1.138l-.006-.005a4.098 4.098 0 0 1-1.173-2.874c0-1.122.452-2.136 1.173-2.872h.006a3.947 3.947 0 0 1 2.176-1.144V6.289a3.137 3.137 0 0 1-1.558-.864h-.002v-.004a3.192 3.192 0 0 1-.916-2.243c0-.871.35-1.669.916-2.243l.002-.002A3.084 3.084 0 0 1 8.683 0c.861 0 1.641.355 2.21.932v.002h.002c.565.574.914 1.372.914 2.243 0 .876-.35 1.667-.914 2.243l-.002.005a3.142 3.142 0 0 1-1.56.864v1.692zm8.121-1.129l-.012-.019a1.452 1.452 0 0 0-.87-.668 1.43 1.43 0 0 0-1.103.146h.002c-.347.2-.58.529-.677.896-.095.365-.054.768.146 1.119l.007.009c.2.347.519.579.874.673.357.103.755.059 1.098-.144l.019-.009a1.47 1.47 0 0 0 .657-.885 1.493 1.493 0 0 0-.141-1.118",
@@ -1131,11 +1067,11 @@ var t3p_default = T3PIcon;
1131
1067
 
1132
1068
  // ../base-ui/src/assets/http.tsx
1133
1069
  var import_react27 = __toESM(require("react"), 1);
1134
- var import_jsx_runtime28 = require("react/jsx-runtime");
1070
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1135
1071
  var HttpIcon = import_react27.default.forwardRef(
1136
1072
  (_a, ref) => {
1137
1073
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1138
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1139
1075
  "svg",
1140
1076
  __spreadProps(__spreadValues({
1141
1077
  ref,
@@ -1144,7 +1080,7 @@ var HttpIcon = import_react27.default.forwardRef(
1144
1080
  }, props), {
1145
1081
  viewBox: "0 0 1024 1024",
1146
1082
  xmlns: "http://www.w3.org/2000/svg",
1147
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1083
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1148
1084
  "path",
1149
1085
  {
1150
1086
  d: "M400.896 704.292571v194.889143a376.795429 376.795429 0 0 1-84.845714-12.8c-21.028571-34.486857-48.384-93.732571-65.682286-182.089143h150.528z m448 8.521143v38.070857H803.108571V885.028571h-41.984v-134.144h-89.929142V885.028571h-41.984v-134.144h-45.860572v-38.034285h265.508572z m-368.347429 0v63.561143h50.395429V712.777143h41.984V885.028571h-41.984v-70.582857H480.548571v70.582857h-41.947428V712.777143h41.947428z m433.188572 0c19.456 0 32.146286 0.841143 38.509714 2.633143 10.057143 2.742857 18.505143 8.740571 25.161143 17.810286 6.729143 9.069714 10.020571 20.662857 10.020571 34.596571 0 10.715429-1.901714 19.894857-5.741714 27.428572a49.115429 49.115429 0 0 1-33.024 26.404571c-7.899429 1.645714-19.017143 2.450286-33.462857 2.450286h-14.994286V885.028571h-41.947428V712.777143h55.478857z m-691.602286-8.521143c15.579429 79.798857 39.460571 135.606857 59.465143 171.154286a377.526857 377.526857 0 0 1-198.144-171.154286h138.678857z m693.248 35.84h-25.929143v56.576h22.491429c12.946286 0 21.686857-0.914286 26.697143-2.925714a26.038857 26.038857 0 0 0 12.214857-9.984 27.757714 27.757714 0 0 0 4.388571-15.506286 26.733714 26.733714 0 0 0-6.217143-18.029714 26.697143 26.697143 0 0 0-15.652571-8.923428 114.505143 114.505143 0 0 0-17.993143-1.170286z m-514.486857-203.410285v139.629714h-155.428571a957.586286 957.586286 0 0 1-11.702858-139.629714h167.131429z m-195.108571 0a955.977143 955.977143 0 0 0 11.776 139.629714H70.107429A372.626286 372.626286 0 0 1 36.571429 536.722286h169.216z m390.217142 0a957.696 957.696 0 0 1-11.702857 139.629714h-155.428571v-139.629714h167.131428z m193.170286 0a374.930286 374.930286 0 0 1-33.389714 139.629714H612.205714a956.342857 956.342857 0 0 0 11.776-139.629714h165.193143z m-32.548571-167.570286c19.346286 42.934857 30.902857 89.965714 32.841143 139.629714h-165.376c-0.694857-52.48-5.010286-98.742857-11.556572-139.629714h144.091429z m-355.730286 0v139.629714H233.581714c0.731429-52.516571 5.12-98.742857 11.629715-139.629714h155.684571z m-183.661714 0a965.412571 965.412571 0 0 0-11.593143 139.629714H36.790857c1.828571-49.627429 13.019429-96.768 32.256-139.629714H217.234286z m367.323428 0c6.546286 40.923429 10.898286 87.113143 11.629715 139.629714h-167.350858v-139.629714h155.721143z m-34.998857-197.595429c82.651429 32.109714 150.528 92.891429 193.060572 169.691429H607.817143c-15.286857-78.189714-38.509714-133.741714-58.258286-169.691429zM428.873143 146.285714c29.696 1.316571 58.514286 5.997714 86.125714 13.750857 20.955429 35.181714 47.908571 93.952 64.987429 181.174858h-151.149715V146.285714z m-27.977143 0.036572v194.925714H249.819429c17.115429-87.771429 44.324571-146.724571 65.316571-181.833143A376.758857 376.758857 0 0 1 400.896 146.285714z m-120.100571 24.064c-19.858286 35.949714-43.410286 91.794286-58.88 170.825143H83.053714a378.404571 378.404571 0 0 1 197.741715-170.788572z",
@@ -1161,11 +1097,11 @@ var http_default = HttpIcon;
1161
1097
 
1162
1098
  // ../base-ui/src/assets/scheme.tsx
1163
1099
  var import_react28 = __toESM(require("react"), 1);
1164
- var import_jsx_runtime29 = require("react/jsx-runtime");
1100
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1165
1101
  var SchemeIcon = import_react28.default.forwardRef(
1166
1102
  (_a, ref) => {
1167
1103
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1168
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1104
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1169
1105
  "svg",
1170
1106
  __spreadProps(__spreadValues({
1171
1107
  ref,
@@ -1174,7 +1110,7 @@ var SchemeIcon = import_react28.default.forwardRef(
1174
1110
  }, props), {
1175
1111
  viewBox: "0 0 24 24",
1176
1112
  xmlns: "http://www.w3.org/2000/svg",
1177
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1113
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1178
1114
  "path",
1179
1115
  {
1180
1116
  fill: themeSvgIconColor,
@@ -1190,11 +1126,11 @@ var scheme_default = SchemeIcon;
1190
1126
 
1191
1127
  // ../base-ui/src/assets/faq.tsx
1192
1128
  var import_react29 = __toESM(require("react"), 1);
1193
- var import_jsx_runtime30 = require("react/jsx-runtime");
1129
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1194
1130
  var FAQIcon = import_react29.default.forwardRef(
1195
1131
  (_a, ref) => {
1196
1132
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1197
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1133
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1198
1134
  "svg",
1199
1135
  __spreadProps(__spreadValues({
1200
1136
  ref,
@@ -1208,9 +1144,9 @@ var FAQIcon = import_react29.default.forwardRef(
1208
1144
  viewBox: "0 0 24 24",
1209
1145
  xmlns: "http://www.w3.org/2000/svg",
1210
1146
  children: [
1211
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
1212
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
1213
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
1147
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
1148
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
1149
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
1214
1150
  ]
1215
1151
  })
1216
1152
  );
@@ -1221,11 +1157,11 @@ var faq_default = FAQIcon;
1221
1157
 
1222
1158
  // ../base-ui/src/assets/faqb.tsx
1223
1159
  var import_react30 = __toESM(require("react"), 1);
1224
- var import_jsx_runtime31 = require("react/jsx-runtime");
1160
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1225
1161
  var FAQBIcon = import_react30.default.forwardRef(
1226
1162
  (_a, ref) => {
1227
1163
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1228
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1164
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1229
1165
  "svg",
1230
1166
  __spreadProps(__spreadValues({
1231
1167
  ref,
@@ -1239,7 +1175,7 @@ var FAQBIcon = import_react30.default.forwardRef(
1239
1175
  viewBox: "0 0 24 24",
1240
1176
  xmlns: "http://www.w3.org/2000/svg",
1241
1177
  children: [
1242
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1178
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1243
1179
  "path",
1244
1180
  {
1245
1181
  fill: "none",
@@ -1247,8 +1183,8 @@ var FAQBIcon = import_react30.default.forwardRef(
1247
1183
  d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"
1248
1184
  }
1249
1185
  ),
1250
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1251
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
1186
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1187
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
1252
1188
  ]
1253
1189
  })
1254
1190
  );
@@ -1259,11 +1195,11 @@ var faqb_default = FAQBIcon;
1259
1195
 
1260
1196
  // ../base-ui/src/assets/faqs.tsx
1261
1197
  var import_react31 = __toESM(require("react"), 1);
1262
- var import_jsx_runtime32 = require("react/jsx-runtime");
1198
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1263
1199
  var FAQSIcon = import_react31.default.forwardRef(
1264
1200
  (_a, ref) => {
1265
1201
  var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
1266
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1202
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1267
1203
  "svg",
1268
1204
  __spreadProps(__spreadValues({
1269
1205
  ref,
@@ -1277,7 +1213,7 @@ var FAQSIcon = import_react31.default.forwardRef(
1277
1213
  viewBox: "0 0 24 24",
1278
1214
  xmlns: "http://www.w3.org/2000/svg",
1279
1215
  children: [
1280
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1216
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1281
1217
  "path",
1282
1218
  {
1283
1219
  fill: "none",
@@ -1285,8 +1221,8 @@ var FAQSIcon = import_react31.default.forwardRef(
1285
1221
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"
1286
1222
  }
1287
1223
  ),
1288
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
1289
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
1224
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
1225
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
1290
1226
  ]
1291
1227
  })
1292
1228
  );
@@ -2759,7 +2695,7 @@ var Zap = createLucideIcon("zap", __iconNode111);
2759
2695
 
2760
2696
  // ../base-ui/src/components/global-icon.tsx
2761
2697
  var import_react34 = __toESM(require("react"), 1);
2762
- var import_jsx_runtime33 = require("react/jsx-runtime");
2698
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2763
2699
  var tempStyledLimitedIcons = {};
2764
2700
  for (const iconNameKey in limited_lucide_icons_exports) {
2765
2701
  if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
@@ -2779,7 +2715,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
2779
2715
  height: props.size || themeSvgIconSize
2780
2716
  }, props.style)
2781
2717
  });
2782
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComponentToRender, __spreadValues({}, finalProps));
2718
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComponentToRender, __spreadValues({}, finalProps));
2783
2719
  };
2784
2720
  StyledIcon.displayName = `Styled(${iconName})`;
2785
2721
  tempStyledLimitedIcons[iconName] = StyledIcon;
@@ -2803,7 +2739,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
2803
2739
  height: props.size || themeSvgIconSize
2804
2740
  }, props.style)
2805
2741
  });
2806
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(IconComponent, __spreadValues({}, finalProps));
2742
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconComponent, __spreadValues({}, finalProps));
2807
2743
  };
2808
2744
  WrappedIcon.displayName = `Wrapped(${iconName})`;
2809
2745
  tempWrappedBuiltinIcons[iconName] = WrappedIcon;
@@ -2811,10 +2747,10 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
2811
2747
  var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
2812
2748
  var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
2813
2749
  var DEFAULT_FALLBACK_ICON = "Sparkles";
2814
- function getGlobalIcon(iconKey, createElement3) {
2750
+ function getGlobalIcon(iconKey, createElement8) {
2815
2751
  var _a;
2816
2752
  if (!iconKey) {
2817
- if (createElement3) {
2753
+ if (createElement8) {
2818
2754
  return void 0;
2819
2755
  }
2820
2756
  return globalLucideIcons[DEFAULT_FALLBACK_ICON];
@@ -2827,100 +2763,3022 @@ function getGlobalIcon(iconKey, createElement3) {
2827
2763
  );
2828
2764
  }
2829
2765
  const FallbackIcon = globalLucideIcons[DEFAULT_FALLBACK_ICON];
2830
- if (createElement3) {
2766
+ if (createElement8) {
2831
2767
  return import_react34.default.createElement(FallbackIcon);
2832
2768
  }
2833
2769
  return FallbackIcon;
2834
2770
  }
2835
- if (createElement3) {
2771
+ if (createElement8) {
2836
2772
  return import_react34.default.createElement(Icon2);
2837
2773
  }
2838
2774
  return Icon2;
2839
2775
  }
2840
2776
 
2841
- // src/main/usage.tsx
2842
- var import_rich_text_expert = require("@third-ui/main/rich-text-expert");
2777
+ // src/main/go-to-top.tsx
2778
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2779
+
2780
+ // src/main/loading.tsx
2843
2781
  var import_jsx_runtime34 = require("react/jsx-runtime");
2844
- function Usage(_0) {
2845
- return __async(this, arguments, function* ({
2846
- locale,
2847
- sectionClassName
2848
- }) {
2849
- const t = yield (0, import_server3.getTranslations)({ locale, namespace: "usage" });
2850
- const steps = t.raw("steps");
2851
- const data = {
2852
- title: t("title"),
2853
- eyesOn: t("eyesOn"),
2854
- description: (0, import_rich_text_expert.richText)(t, "description"),
2855
- steps: steps.map((step, index) => ({
2856
- id: `usage-step-${index}`,
2857
- title: step.title,
2858
- description: (0, import_rich_text_expert.richText)(t, `steps.${index}.description`),
2859
- iconKey: step.iconKey,
2860
- stepNumber: index + 1
2861
- }))
2862
- };
2863
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("section", { id: "usage", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
2864
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
2865
- data.title,
2866
- " ",
2867
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
2868
- ] }),
2869
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto whitespace-nowrap", children: data.description }),
2870
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.steps.map((step) => {
2871
- const Icon2 = getGlobalIcon(step.iconKey);
2872
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { "data-usage-step": step.id, className: "flex items-start", children: [
2873
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-shrink-0 mr-4", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon2, { className: "w-8 h-8 text-purple-500" }) }),
2874
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
2875
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100 flex items-center", children: `${step.stepNumber}. ${step.title}` }),
2876
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: step.description })
2877
- ] })
2878
- ] }, step.id);
2879
- }) }) })
2880
- ] });
2881
- });
2882
- }
2883
2782
 
2884
- // src/main/features.tsx
2885
- var import_server4 = require("next-intl/server");
2886
- var import_rich_text_expert2 = require("@third-ui/main/rich-text-expert");
2783
+ // src/main/nprogress-bar.tsx
2784
+ var import_nprogress = __toESM(require("nprogress"));
2785
+ var import_navigation = require("next/navigation");
2786
+ var import_react36 = require("react");
2787
+ import_nprogress.default.configure({ showSpinner: false });
2788
+
2789
+ // src/main/ads-alert-dialog.tsx
2790
+ var import_react38 = require("react");
2791
+ var import_image = __toESM(require("next/image"));
2792
+
2793
+ // ../base-ui/src/ui/alert-dialog.tsx
2794
+ var React57 = __toESM(require("react"), 1);
2795
+
2796
+ // ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types_c6ff7006a888f63e36d2502e019661c3/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
2797
+ var React55 = __toESM(require("react"), 1);
2798
+
2799
+ // ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
2800
+ var React33 = __toESM(require("react"), 1);
2887
2801
  var import_jsx_runtime35 = require("react/jsx-runtime");
2888
- function Features(_0) {
2889
- return __async(this, arguments, function* ({
2890
- locale,
2891
- sectionClassName
2892
- }) {
2893
- const t = yield (0, import_server4.getTranslations)({ locale, namespace: "features" });
2894
- const featureItems = t.raw("items");
2895
- const data = {
2896
- title: t("title"),
2897
- eyesOn: t("eyesOn"),
2898
- description: (0, import_rich_text_expert2.richText)(t, "description"),
2899
- items: featureItems.map((feature, index) => ({
2900
- id: `feature-item-${index}`,
2901
- title: feature.title,
2902
- description: (0, import_rich_text_expert2.richText)(t, `items.${index}.description`),
2903
- iconKey: feature.iconKey
2904
- }))
2802
+ function createContext2(rootComponentName, defaultContext) {
2803
+ const Context = React33.createContext(defaultContext);
2804
+ const Provider = (props) => {
2805
+ const _a = props, { children } = _a, context = __objRest(_a, ["children"]);
2806
+ const value = React33.useMemo(() => context, Object.values(context));
2807
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Context.Provider, { value, children });
2808
+ };
2809
+ Provider.displayName = rootComponentName + "Provider";
2810
+ function useContext22(consumerName) {
2811
+ const context = React33.useContext(Context);
2812
+ if (context) return context;
2813
+ if (defaultContext !== void 0) return defaultContext;
2814
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
2815
+ }
2816
+ return [Provider, useContext22];
2817
+ }
2818
+ function createContextScope(scopeName, createContextScopeDeps = []) {
2819
+ let defaultContexts = [];
2820
+ function createContext32(rootComponentName, defaultContext) {
2821
+ const BaseContext = React33.createContext(defaultContext);
2822
+ const index = defaultContexts.length;
2823
+ defaultContexts = [...defaultContexts, defaultContext];
2824
+ const Provider = (props) => {
2825
+ var _b;
2826
+ const _a = props, { scope, children } = _a, context = __objRest(_a, ["scope", "children"]);
2827
+ const Context = ((_b = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _b[index]) || BaseContext;
2828
+ const value = React33.useMemo(() => context, Object.values(context));
2829
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Context.Provider, { value, children });
2905
2830
  };
2906
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("section", { id: "features", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-18", sectionClassName), children: [
2907
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
2908
- data.title,
2909
- " ",
2910
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
2911
- ] }),
2912
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto whitespace-nowrap", children: data.description }),
2913
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.items.map((feature) => {
2914
- const Icon2 = getGlobalIcon(feature.iconKey);
2915
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2916
- "div",
2917
- {
2831
+ Provider.displayName = rootComponentName + "Provider";
2832
+ function useContext22(consumerName, scope) {
2833
+ var _a;
2834
+ const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
2835
+ const context = React33.useContext(Context);
2836
+ if (context) return context;
2837
+ if (defaultContext !== void 0) return defaultContext;
2838
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
2839
+ }
2840
+ return [Provider, useContext22];
2841
+ }
2842
+ const createScope = () => {
2843
+ const scopeContexts = defaultContexts.map((defaultContext) => {
2844
+ return React33.createContext(defaultContext);
2845
+ });
2846
+ return function useScope(scope) {
2847
+ const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
2848
+ return React33.useMemo(
2849
+ () => ({ [`__scope${scopeName}`]: __spreadProps(__spreadValues({}, scope), { [scopeName]: contexts }) }),
2850
+ [scope, contexts]
2851
+ );
2852
+ };
2853
+ };
2854
+ createScope.scopeName = scopeName;
2855
+ return [createContext32, composeContextScopes(createScope, ...createContextScopeDeps)];
2856
+ }
2857
+ function composeContextScopes(...scopes) {
2858
+ const baseScope = scopes[0];
2859
+ if (scopes.length === 1) return baseScope;
2860
+ const createScope = () => {
2861
+ const scopeHooks = scopes.map((createScope2) => ({
2862
+ useScope: createScope2(),
2863
+ scopeName: createScope2.scopeName
2864
+ }));
2865
+ return function useComposedScopes(overrideScopes) {
2866
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
2867
+ const scopeProps = useScope(overrideScopes);
2868
+ const currentScope = scopeProps[`__scope${scopeName}`];
2869
+ return __spreadValues(__spreadValues({}, nextScopes2), currentScope);
2870
+ }, {});
2871
+ return React33.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
2872
+ };
2873
+ };
2874
+ createScope.scopeName = baseScope.scopeName;
2875
+ return createScope;
2876
+ }
2877
+
2878
+ // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
2879
+ var React34 = __toESM(require("react"), 1);
2880
+ function setRef(ref, value) {
2881
+ if (typeof ref === "function") {
2882
+ return ref(value);
2883
+ } else if (ref !== null && ref !== void 0) {
2884
+ ref.current = value;
2885
+ }
2886
+ }
2887
+ function composeRefs(...refs) {
2888
+ return (node) => {
2889
+ let hasCleanup = false;
2890
+ const cleanups = refs.map((ref) => {
2891
+ const cleanup = setRef(ref, node);
2892
+ if (!hasCleanup && typeof cleanup == "function") {
2893
+ hasCleanup = true;
2894
+ }
2895
+ return cleanup;
2896
+ });
2897
+ if (hasCleanup) {
2898
+ return () => {
2899
+ for (let i = 0; i < cleanups.length; i++) {
2900
+ const cleanup = cleanups[i];
2901
+ if (typeof cleanup == "function") {
2902
+ cleanup();
2903
+ } else {
2904
+ setRef(refs[i], null);
2905
+ }
2906
+ }
2907
+ };
2908
+ }
2909
+ };
2910
+ }
2911
+ function useComposedRefs(...refs) {
2912
+ return React34.useCallback(composeRefs(...refs), refs);
2913
+ }
2914
+
2915
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react_848f83211ce5e4d8275fe0d3e11a9387/node_modules/@radix-ui/react-dialog/dist/index.mjs
2916
+ var React54 = __toESM(require("react"), 1);
2917
+
2918
+ // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
2919
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
2920
+ return function handleEvent(event) {
2921
+ originalEventHandler == null ? void 0 : originalEventHandler(event);
2922
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
2923
+ return ourEventHandler == null ? void 0 : ourEventHandler(event);
2924
+ }
2925
+ };
2926
+ }
2927
+
2928
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2929
+ var React36 = __toESM(require("react"), 1);
2930
+
2931
+ // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
2932
+ var React35 = __toESM(require("react"), 1);
2933
+ var useLayoutEffect2 = (globalThis == null ? void 0 : globalThis.document) ? React35.useLayoutEffect : () => {
2934
+ };
2935
+
2936
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2937
+ var useReactId = React36[" useId ".trim().toString()] || (() => void 0);
2938
+ var count = 0;
2939
+ function useId(deterministicId) {
2940
+ const [id, setId] = React36.useState(useReactId());
2941
+ useLayoutEffect2(() => {
2942
+ if (!deterministicId) setId((reactId) => reactId != null ? reactId : String(count++));
2943
+ }, [deterministicId]);
2944
+ return deterministicId || (id ? `radix-${id}` : "");
2945
+ }
2946
+
2947
+ // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
2948
+ var React37 = __toESM(require("react"), 1);
2949
+ var React210 = __toESM(require("react"), 1);
2950
+ var useInsertionEffect = React37[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
2951
+ function useControllableState({
2952
+ prop,
2953
+ defaultProp,
2954
+ onChange = () => {
2955
+ },
2956
+ caller
2957
+ }) {
2958
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
2959
+ defaultProp,
2960
+ onChange
2961
+ });
2962
+ const isControlled = prop !== void 0;
2963
+ const value = isControlled ? prop : uncontrolledProp;
2964
+ if (true) {
2965
+ const isControlledRef = React37.useRef(prop !== void 0);
2966
+ React37.useEffect(() => {
2967
+ const wasControlled = isControlledRef.current;
2968
+ if (wasControlled !== isControlled) {
2969
+ const from = wasControlled ? "controlled" : "uncontrolled";
2970
+ const to = isControlled ? "controlled" : "uncontrolled";
2971
+ console.warn(
2972
+ `${caller} is changing from ${from} to ${to}. 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.`
2973
+ );
2974
+ }
2975
+ isControlledRef.current = isControlled;
2976
+ }, [isControlled, caller]);
2977
+ }
2978
+ const setValue = React37.useCallback(
2979
+ (nextValue) => {
2980
+ var _a;
2981
+ if (isControlled) {
2982
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
2983
+ if (value2 !== prop) {
2984
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
2985
+ }
2986
+ } else {
2987
+ setUncontrolledProp(nextValue);
2988
+ }
2989
+ },
2990
+ [isControlled, prop, setUncontrolledProp, onChangeRef]
2991
+ );
2992
+ return [value, setValue];
2993
+ }
2994
+ function useUncontrolledState({
2995
+ defaultProp,
2996
+ onChange
2997
+ }) {
2998
+ const [value, setValue] = React37.useState(defaultProp);
2999
+ const prevValueRef = React37.useRef(value);
3000
+ const onChangeRef = React37.useRef(onChange);
3001
+ useInsertionEffect(() => {
3002
+ onChangeRef.current = onChange;
3003
+ }, [onChange]);
3004
+ React37.useEffect(() => {
3005
+ var _a;
3006
+ if (prevValueRef.current !== value) {
3007
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value);
3008
+ prevValueRef.current = value;
3009
+ }
3010
+ }, [value, prevValueRef]);
3011
+ return [value, setValue, onChangeRef];
3012
+ }
3013
+ function isFunction(value) {
3014
+ return typeof value === "function";
3015
+ }
3016
+ var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
3017
+
3018
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.3_@types+react@19.1.2__@_048ea5800fbfacb7489e4b7d728b493c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
3019
+ var React42 = __toESM(require("react"), 1);
3020
+
3021
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.3_@types+react@19.1.2__@types+rea_43250ccbc78c27b15284efcf829a65d5/node_modules/@radix-ui/react-primitive/dist/index.mjs
3022
+ var React39 = __toESM(require("react"), 1);
3023
+ var ReactDOM = __toESM(require("react-dom"), 1);
3024
+
3025
+ // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
3026
+ var React38 = __toESM(require("react"), 1);
3027
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3028
+ // @__NO_SIDE_EFFECTS__
3029
+ function createSlot(ownerName) {
3030
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
3031
+ const Slot22 = React38.forwardRef((props, forwardedRef) => {
3032
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
3033
+ const childrenArray = React38.Children.toArray(children);
3034
+ const slottable = childrenArray.find(isSlottable);
3035
+ if (slottable) {
3036
+ const newElement = slottable.props.children;
3037
+ const newChildren = childrenArray.map((child) => {
3038
+ if (child === slottable) {
3039
+ if (React38.Children.count(newElement) > 1) return React38.Children.only(null);
3040
+ return React38.isValidElement(newElement) ? newElement.props.children : null;
3041
+ } else {
3042
+ return child;
3043
+ }
3044
+ });
3045
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children: React38.isValidElement(newElement) ? React38.cloneElement(newElement, void 0, newChildren) : null }));
3046
+ }
3047
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children }));
3048
+ });
3049
+ Slot22.displayName = `${ownerName}.Slot`;
3050
+ return Slot22;
3051
+ }
3052
+ var Slot = /* @__PURE__ */ createSlot("Slot");
3053
+ // @__NO_SIDE_EFFECTS__
3054
+ function createSlotClone(ownerName) {
3055
+ const SlotClone = React38.forwardRef((props, forwardedRef) => {
3056
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
3057
+ if (React38.isValidElement(children)) {
3058
+ const childrenRef = getElementRef(children);
3059
+ const props2 = mergeProps(slotProps, children.props);
3060
+ if (children.type !== React38.Fragment) {
3061
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
3062
+ }
3063
+ return React38.cloneElement(children, props2);
3064
+ }
3065
+ return React38.Children.count(children) > 1 ? React38.Children.only(null) : null;
3066
+ });
3067
+ SlotClone.displayName = `${ownerName}.SlotClone`;
3068
+ return SlotClone;
3069
+ }
3070
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
3071
+ // @__NO_SIDE_EFFECTS__
3072
+ function createSlottable(ownerName) {
3073
+ const Slottable2 = ({ children }) => {
3074
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children });
3075
+ };
3076
+ Slottable2.displayName = `${ownerName}.Slottable`;
3077
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
3078
+ return Slottable2;
3079
+ }
3080
+ function isSlottable(child) {
3081
+ return React38.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
3082
+ }
3083
+ function mergeProps(slotProps, childProps) {
3084
+ const overrideProps = __spreadValues({}, childProps);
3085
+ for (const propName in childProps) {
3086
+ const slotPropValue = slotProps[propName];
3087
+ const childPropValue = childProps[propName];
3088
+ const isHandler = /^on[A-Z]/.test(propName);
3089
+ if (isHandler) {
3090
+ if (slotPropValue && childPropValue) {
3091
+ overrideProps[propName] = (...args) => {
3092
+ const result = childPropValue(...args);
3093
+ slotPropValue(...args);
3094
+ return result;
3095
+ };
3096
+ } else if (slotPropValue) {
3097
+ overrideProps[propName] = slotPropValue;
3098
+ }
3099
+ } else if (propName === "style") {
3100
+ overrideProps[propName] = __spreadValues(__spreadValues({}, slotPropValue), childPropValue);
3101
+ } else if (propName === "className") {
3102
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
3103
+ }
3104
+ }
3105
+ return __spreadValues(__spreadValues({}, slotProps), overrideProps);
3106
+ }
3107
+ function getElementRef(element) {
3108
+ var _a, _b;
3109
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
3110
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
3111
+ if (mayWarn) {
3112
+ return element.ref;
3113
+ }
3114
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
3115
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
3116
+ if (mayWarn) {
3117
+ return element.props.ref;
3118
+ }
3119
+ return element.props.ref || element.ref;
3120
+ }
3121
+
3122
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.3_@types+react@19.1.2__@types+rea_43250ccbc78c27b15284efcf829a65d5/node_modules/@radix-ui/react-primitive/dist/index.mjs
3123
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3124
+ var NODES = [
3125
+ "a",
3126
+ "button",
3127
+ "div",
3128
+ "form",
3129
+ "h2",
3130
+ "h3",
3131
+ "img",
3132
+ "input",
3133
+ "label",
3134
+ "li",
3135
+ "nav",
3136
+ "ol",
3137
+ "p",
3138
+ "select",
3139
+ "span",
3140
+ "svg",
3141
+ "ul"
3142
+ ];
3143
+ var Primitive = NODES.reduce((primitive, node) => {
3144
+ const Slot3 = createSlot(`Primitive.${node}`);
3145
+ const Node2 = React39.forwardRef((props, forwardedRef) => {
3146
+ const _a = props, { asChild } = _a, primitiveProps = __objRest(_a, ["asChild"]);
3147
+ const Comp = asChild ? Slot3 : node;
3148
+ if (typeof window !== "undefined") {
3149
+ window[Symbol.for("radix-ui")] = true;
3150
+ }
3151
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Comp, __spreadProps(__spreadValues({}, primitiveProps), { ref: forwardedRef }));
3152
+ });
3153
+ Node2.displayName = `Primitive.${node}`;
3154
+ return __spreadProps(__spreadValues({}, primitive), { [node]: Node2 });
3155
+ }, {});
3156
+ function dispatchDiscreteCustomEvent(target, event) {
3157
+ if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
3158
+ }
3159
+
3160
+ // ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
3161
+ var React40 = __toESM(require("react"), 1);
3162
+ function useCallbackRef(callback) {
3163
+ const callbackRef = React40.useRef(callback);
3164
+ React40.useEffect(() => {
3165
+ callbackRef.current = callback;
3166
+ });
3167
+ return React40.useMemo(() => (...args) => {
3168
+ var _a;
3169
+ return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
3170
+ }, []);
3171
+ }
3172
+
3173
+ // ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
3174
+ var React41 = __toESM(require("react"), 1);
3175
+ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
3176
+ const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
3177
+ React41.useEffect(() => {
3178
+ const handleKeyDown = (event) => {
3179
+ if (event.key === "Escape") {
3180
+ onEscapeKeyDown(event);
3181
+ }
3182
+ };
3183
+ ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
3184
+ return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
3185
+ }, [onEscapeKeyDown, ownerDocument]);
3186
+ }
3187
+
3188
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.3_@types+react@19.1.2__@_048ea5800fbfacb7489e4b7d728b493c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
3189
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3190
+ var DISMISSABLE_LAYER_NAME = "DismissableLayer";
3191
+ var CONTEXT_UPDATE = "dismissableLayer.update";
3192
+ var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
3193
+ var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
3194
+ var originalBodyPointerEvents;
3195
+ var DismissableLayerContext = React42.createContext({
3196
+ layers: /* @__PURE__ */ new Set(),
3197
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
3198
+ branches: /* @__PURE__ */ new Set()
3199
+ });
3200
+ var DismissableLayer = React42.forwardRef(
3201
+ (props, forwardedRef) => {
3202
+ var _b;
3203
+ const _a = props, {
3204
+ disableOutsidePointerEvents = false,
3205
+ onEscapeKeyDown,
3206
+ onPointerDownOutside,
3207
+ onFocusOutside,
3208
+ onInteractOutside,
3209
+ onDismiss
3210
+ } = _a, layerProps = __objRest(_a, [
3211
+ "disableOutsidePointerEvents",
3212
+ "onEscapeKeyDown",
3213
+ "onPointerDownOutside",
3214
+ "onFocusOutside",
3215
+ "onInteractOutside",
3216
+ "onDismiss"
3217
+ ]);
3218
+ const context = React42.useContext(DismissableLayerContext);
3219
+ const [node, setNode] = React42.useState(null);
3220
+ const ownerDocument = (_b = node == null ? void 0 : node.ownerDocument) != null ? _b : globalThis == null ? void 0 : globalThis.document;
3221
+ const [, force] = React42.useState({});
3222
+ const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
3223
+ const layers = Array.from(context.layers);
3224
+ const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
3225
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
3226
+ const index = node ? layers.indexOf(node) : -1;
3227
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
3228
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
3229
+ const pointerDownOutside = usePointerDownOutside((event) => {
3230
+ const target = event.target;
3231
+ const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
3232
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
3233
+ onPointerDownOutside == null ? void 0 : onPointerDownOutside(event);
3234
+ onInteractOutside == null ? void 0 : onInteractOutside(event);
3235
+ if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
3236
+ }, ownerDocument);
3237
+ const focusOutside = useFocusOutside((event) => {
3238
+ const target = event.target;
3239
+ const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
3240
+ if (isFocusInBranch) return;
3241
+ onFocusOutside == null ? void 0 : onFocusOutside(event);
3242
+ onInteractOutside == null ? void 0 : onInteractOutside(event);
3243
+ if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
3244
+ }, ownerDocument);
3245
+ useEscapeKeydown((event) => {
3246
+ const isHighestLayer = index === context.layers.size - 1;
3247
+ if (!isHighestLayer) return;
3248
+ onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(event);
3249
+ if (!event.defaultPrevented && onDismiss) {
3250
+ event.preventDefault();
3251
+ onDismiss();
3252
+ }
3253
+ }, ownerDocument);
3254
+ React42.useEffect(() => {
3255
+ if (!node) return;
3256
+ if (disableOutsidePointerEvents) {
3257
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
3258
+ originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
3259
+ ownerDocument.body.style.pointerEvents = "none";
3260
+ }
3261
+ context.layersWithOutsidePointerEventsDisabled.add(node);
3262
+ }
3263
+ context.layers.add(node);
3264
+ dispatchUpdate();
3265
+ return () => {
3266
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
3267
+ ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
3268
+ }
3269
+ };
3270
+ }, [node, ownerDocument, disableOutsidePointerEvents, context]);
3271
+ React42.useEffect(() => {
3272
+ return () => {
3273
+ if (!node) return;
3274
+ context.layers.delete(node);
3275
+ context.layersWithOutsidePointerEventsDisabled.delete(node);
3276
+ dispatchUpdate();
3277
+ };
3278
+ }, [node, context]);
3279
+ React42.useEffect(() => {
3280
+ const handleUpdate = () => force({});
3281
+ document.addEventListener(CONTEXT_UPDATE, handleUpdate);
3282
+ return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
3283
+ }, []);
3284
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3285
+ Primitive.div,
3286
+ __spreadProps(__spreadValues({}, layerProps), {
3287
+ ref: composedRefs,
3288
+ style: __spreadValues({
3289
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0
3290
+ }, props.style),
3291
+ onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
3292
+ onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
3293
+ onPointerDownCapture: composeEventHandlers(
3294
+ props.onPointerDownCapture,
3295
+ pointerDownOutside.onPointerDownCapture
3296
+ )
3297
+ })
3298
+ );
3299
+ }
3300
+ );
3301
+ DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
3302
+ var BRANCH_NAME = "DismissableLayerBranch";
3303
+ var DismissableLayerBranch = React42.forwardRef((props, forwardedRef) => {
3304
+ const context = React42.useContext(DismissableLayerContext);
3305
+ const ref = React42.useRef(null);
3306
+ const composedRefs = useComposedRefs(forwardedRef, ref);
3307
+ React42.useEffect(() => {
3308
+ const node = ref.current;
3309
+ if (node) {
3310
+ context.branches.add(node);
3311
+ return () => {
3312
+ context.branches.delete(node);
3313
+ };
3314
+ }
3315
+ }, [context.branches]);
3316
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Primitive.div, __spreadProps(__spreadValues({}, props), { ref: composedRefs }));
3317
+ });
3318
+ DismissableLayerBranch.displayName = BRANCH_NAME;
3319
+ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
3320
+ const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
3321
+ const isPointerInsideReactTreeRef = React42.useRef(false);
3322
+ const handleClickRef = React42.useRef(() => {
3323
+ });
3324
+ React42.useEffect(() => {
3325
+ const handlePointerDown = (event) => {
3326
+ if (event.target && !isPointerInsideReactTreeRef.current) {
3327
+ let handleAndDispatchPointerDownOutsideEvent2 = function() {
3328
+ handleAndDispatchCustomEvent(
3329
+ POINTER_DOWN_OUTSIDE,
3330
+ handlePointerDownOutside,
3331
+ eventDetail,
3332
+ { discrete: true }
3333
+ );
3334
+ };
3335
+ var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;
3336
+ const eventDetail = { originalEvent: event };
3337
+ if (event.pointerType === "touch") {
3338
+ ownerDocument.removeEventListener("click", handleClickRef.current);
3339
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
3340
+ ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
3341
+ } else {
3342
+ handleAndDispatchPointerDownOutsideEvent2();
3343
+ }
3344
+ } else {
3345
+ ownerDocument.removeEventListener("click", handleClickRef.current);
3346
+ }
3347
+ isPointerInsideReactTreeRef.current = false;
3348
+ };
3349
+ const timerId = window.setTimeout(() => {
3350
+ ownerDocument.addEventListener("pointerdown", handlePointerDown);
3351
+ }, 0);
3352
+ return () => {
3353
+ window.clearTimeout(timerId);
3354
+ ownerDocument.removeEventListener("pointerdown", handlePointerDown);
3355
+ ownerDocument.removeEventListener("click", handleClickRef.current);
3356
+ };
3357
+ }, [ownerDocument, handlePointerDownOutside]);
3358
+ return {
3359
+ // ensures we check React component tree (not just DOM tree)
3360
+ onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
3361
+ };
3362
+ }
3363
+ function useFocusOutside(onFocusOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
3364
+ const handleFocusOutside = useCallbackRef(onFocusOutside);
3365
+ const isFocusInsideReactTreeRef = React42.useRef(false);
3366
+ React42.useEffect(() => {
3367
+ const handleFocus = (event) => {
3368
+ if (event.target && !isFocusInsideReactTreeRef.current) {
3369
+ const eventDetail = { originalEvent: event };
3370
+ handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
3371
+ discrete: false
3372
+ });
3373
+ }
3374
+ };
3375
+ ownerDocument.addEventListener("focusin", handleFocus);
3376
+ return () => ownerDocument.removeEventListener("focusin", handleFocus);
3377
+ }, [ownerDocument, handleFocusOutside]);
3378
+ return {
3379
+ onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
3380
+ onBlurCapture: () => isFocusInsideReactTreeRef.current = false
3381
+ };
3382
+ }
3383
+ function dispatchUpdate() {
3384
+ const event = new CustomEvent(CONTEXT_UPDATE);
3385
+ document.dispatchEvent(event);
3386
+ }
3387
+ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
3388
+ const target = detail.originalEvent.target;
3389
+ const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
3390
+ if (handler) target.addEventListener(name, handler, { once: true });
3391
+ if (discrete) {
3392
+ dispatchDiscreteCustomEvent(target, event);
3393
+ } else {
3394
+ target.dispatchEvent(event);
3395
+ }
3396
+ }
3397
+
3398
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.3_@types+react@19.1.2__@types+r_1ff7b04b7c975087a2da2b1568ac976e/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
3399
+ var React43 = __toESM(require("react"), 1);
3400
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3401
+ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
3402
+ var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
3403
+ var EVENT_OPTIONS = { bubbles: false, cancelable: true };
3404
+ var FOCUS_SCOPE_NAME = "FocusScope";
3405
+ var FocusScope = React43.forwardRef((props, forwardedRef) => {
3406
+ const _a = props, {
3407
+ loop = false,
3408
+ trapped = false,
3409
+ onMountAutoFocus: onMountAutoFocusProp,
3410
+ onUnmountAutoFocus: onUnmountAutoFocusProp
3411
+ } = _a, scopeProps = __objRest(_a, [
3412
+ "loop",
3413
+ "trapped",
3414
+ "onMountAutoFocus",
3415
+ "onUnmountAutoFocus"
3416
+ ]);
3417
+ const [container, setContainer] = React43.useState(null);
3418
+ const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
3419
+ const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
3420
+ const lastFocusedElementRef = React43.useRef(null);
3421
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
3422
+ const focusScope = React43.useRef({
3423
+ paused: false,
3424
+ pause() {
3425
+ this.paused = true;
3426
+ },
3427
+ resume() {
3428
+ this.paused = false;
3429
+ }
3430
+ }).current;
3431
+ React43.useEffect(() => {
3432
+ if (trapped) {
3433
+ let handleFocusIn2 = function(event) {
3434
+ if (focusScope.paused || !container) return;
3435
+ const target = event.target;
3436
+ if (container.contains(target)) {
3437
+ lastFocusedElementRef.current = target;
3438
+ } else {
3439
+ focus(lastFocusedElementRef.current, { select: true });
3440
+ }
3441
+ }, handleFocusOut2 = function(event) {
3442
+ if (focusScope.paused || !container) return;
3443
+ const relatedTarget = event.relatedTarget;
3444
+ if (relatedTarget === null) return;
3445
+ if (!container.contains(relatedTarget)) {
3446
+ focus(lastFocusedElementRef.current, { select: true });
3447
+ }
3448
+ }, handleMutations2 = function(mutations) {
3449
+ const focusedElement = document.activeElement;
3450
+ if (focusedElement !== document.body) return;
3451
+ for (const mutation of mutations) {
3452
+ if (mutation.removedNodes.length > 0) focus(container);
3453
+ }
3454
+ };
3455
+ var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
3456
+ document.addEventListener("focusin", handleFocusIn2);
3457
+ document.addEventListener("focusout", handleFocusOut2);
3458
+ const mutationObserver = new MutationObserver(handleMutations2);
3459
+ if (container) mutationObserver.observe(container, { childList: true, subtree: true });
3460
+ return () => {
3461
+ document.removeEventListener("focusin", handleFocusIn2);
3462
+ document.removeEventListener("focusout", handleFocusOut2);
3463
+ mutationObserver.disconnect();
3464
+ };
3465
+ }
3466
+ }, [trapped, container, focusScope.paused]);
3467
+ React43.useEffect(() => {
3468
+ if (container) {
3469
+ focusScopesStack.add(focusScope);
3470
+ const previouslyFocusedElement = document.activeElement;
3471
+ const hasFocusedCandidate = container.contains(previouslyFocusedElement);
3472
+ if (!hasFocusedCandidate) {
3473
+ const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
3474
+ container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
3475
+ container.dispatchEvent(mountEvent);
3476
+ if (!mountEvent.defaultPrevented) {
3477
+ focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
3478
+ if (document.activeElement === previouslyFocusedElement) {
3479
+ focus(container);
3480
+ }
3481
+ }
3482
+ }
3483
+ return () => {
3484
+ container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
3485
+ setTimeout(() => {
3486
+ const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
3487
+ container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
3488
+ container.dispatchEvent(unmountEvent);
3489
+ if (!unmountEvent.defaultPrevented) {
3490
+ focus(previouslyFocusedElement != null ? previouslyFocusedElement : document.body, { select: true });
3491
+ }
3492
+ container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
3493
+ focusScopesStack.remove(focusScope);
3494
+ }, 0);
3495
+ };
3496
+ }
3497
+ }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
3498
+ const handleKeyDown = React43.useCallback(
3499
+ (event) => {
3500
+ if (!loop && !trapped) return;
3501
+ if (focusScope.paused) return;
3502
+ const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
3503
+ const focusedElement = document.activeElement;
3504
+ if (isTabKey && focusedElement) {
3505
+ const container2 = event.currentTarget;
3506
+ const [first, last] = getTabbableEdges(container2);
3507
+ const hasTabbableElementsInside = first && last;
3508
+ if (!hasTabbableElementsInside) {
3509
+ if (focusedElement === container2) event.preventDefault();
3510
+ } else {
3511
+ if (!event.shiftKey && focusedElement === last) {
3512
+ event.preventDefault();
3513
+ if (loop) focus(first, { select: true });
3514
+ } else if (event.shiftKey && focusedElement === first) {
3515
+ event.preventDefault();
3516
+ if (loop) focus(last, { select: true });
3517
+ }
3518
+ }
3519
+ }
3520
+ },
3521
+ [loop, trapped, focusScope.paused]
3522
+ );
3523
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Primitive.div, __spreadProps(__spreadValues({ tabIndex: -1 }, scopeProps), { ref: composedRefs, onKeyDown: handleKeyDown }));
3524
+ });
3525
+ FocusScope.displayName = FOCUS_SCOPE_NAME;
3526
+ function focusFirst(candidates, { select = false } = {}) {
3527
+ const previouslyFocusedElement = document.activeElement;
3528
+ for (const candidate of candidates) {
3529
+ focus(candidate, { select });
3530
+ if (document.activeElement !== previouslyFocusedElement) return;
3531
+ }
3532
+ }
3533
+ function getTabbableEdges(container) {
3534
+ const candidates = getTabbableCandidates(container);
3535
+ const first = findVisible(candidates, container);
3536
+ const last = findVisible(candidates.reverse(), container);
3537
+ return [first, last];
3538
+ }
3539
+ function getTabbableCandidates(container) {
3540
+ const nodes = [];
3541
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
3542
+ acceptNode: (node) => {
3543
+ const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
3544
+ if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
3545
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
3546
+ }
3547
+ });
3548
+ while (walker.nextNode()) nodes.push(walker.currentNode);
3549
+ return nodes;
3550
+ }
3551
+ function findVisible(elements, container) {
3552
+ for (const element of elements) {
3553
+ if (!isHidden(element, { upTo: container })) return element;
3554
+ }
3555
+ }
3556
+ function isHidden(node, { upTo }) {
3557
+ if (getComputedStyle(node).visibility === "hidden") return true;
3558
+ while (node) {
3559
+ if (upTo !== void 0 && node === upTo) return false;
3560
+ if (getComputedStyle(node).display === "none") return true;
3561
+ node = node.parentElement;
3562
+ }
3563
+ return false;
3564
+ }
3565
+ function isSelectableInput(element) {
3566
+ return element instanceof HTMLInputElement && "select" in element;
3567
+ }
3568
+ function focus(element, { select = false } = {}) {
3569
+ if (element && element.focus) {
3570
+ const previouslyFocusedElement = document.activeElement;
3571
+ element.focus({ preventScroll: true });
3572
+ if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
3573
+ element.select();
3574
+ }
3575
+ }
3576
+ var focusScopesStack = createFocusScopesStack();
3577
+ function createFocusScopesStack() {
3578
+ let stack = [];
3579
+ return {
3580
+ add(focusScope) {
3581
+ const activeFocusScope = stack[0];
3582
+ if (focusScope !== activeFocusScope) {
3583
+ activeFocusScope == null ? void 0 : activeFocusScope.pause();
3584
+ }
3585
+ stack = arrayRemove(stack, focusScope);
3586
+ stack.unshift(focusScope);
3587
+ },
3588
+ remove(focusScope) {
3589
+ var _a;
3590
+ stack = arrayRemove(stack, focusScope);
3591
+ (_a = stack[0]) == null ? void 0 : _a.resume();
3592
+ }
3593
+ };
3594
+ }
3595
+ function arrayRemove(array, item) {
3596
+ const updatedArray = [...array];
3597
+ const index = updatedArray.indexOf(item);
3598
+ if (index !== -1) {
3599
+ updatedArray.splice(index, 1);
3600
+ }
3601
+ return updatedArray;
3602
+ }
3603
+ function removeLinks(items) {
3604
+ return items.filter((item) => item.tagName !== "A");
3605
+ }
3606
+
3607
+ // ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react@_a0745de0839b0b019298ec068509a840/node_modules/@radix-ui/react-portal/dist/index.mjs
3608
+ var React44 = __toESM(require("react"), 1);
3609
+ var import_react_dom = __toESM(require("react-dom"), 1);
3610
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3611
+ var PORTAL_NAME = "Portal";
3612
+ var Portal = React44.forwardRef((props, forwardedRef) => {
3613
+ var _b;
3614
+ const _a = props, { container: containerProp } = _a, portalProps = __objRest(_a, ["container"]);
3615
+ const [mounted, setMounted] = React44.useState(false);
3616
+ useLayoutEffect2(() => setMounted(true), []);
3617
+ const container = containerProp || mounted && ((_b = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : _b.body);
3618
+ return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Primitive.div, __spreadProps(__spreadValues({}, portalProps), { ref: forwardedRef })), container) : null;
3619
+ });
3620
+ Portal.displayName = PORTAL_NAME;
3621
+
3622
+ // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.3_@types+react@19.1.2__@types+reac_dbbe976722e7c3e02883ea31c3bbbf14/node_modules/@radix-ui/react-presence/dist/index.mjs
3623
+ var React211 = __toESM(require("react"), 1);
3624
+ var React45 = __toESM(require("react"), 1);
3625
+ function useStateMachine(initialState, machine) {
3626
+ return React45.useReducer((state, event) => {
3627
+ const nextState = machine[state][event];
3628
+ return nextState != null ? nextState : state;
3629
+ }, initialState);
3630
+ }
3631
+ var Presence = (props) => {
3632
+ const { present, children } = props;
3633
+ const presence = usePresence(present);
3634
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React211.Children.only(children);
3635
+ const ref = useComposedRefs(presence.ref, getElementRef2(child));
3636
+ const forceMount = typeof children === "function";
3637
+ return forceMount || presence.isPresent ? React211.cloneElement(child, { ref }) : null;
3638
+ };
3639
+ Presence.displayName = "Presence";
3640
+ function usePresence(present) {
3641
+ const [node, setNode] = React211.useState();
3642
+ const stylesRef = React211.useRef(null);
3643
+ const prevPresentRef = React211.useRef(present);
3644
+ const prevAnimationNameRef = React211.useRef("none");
3645
+ const initialState = present ? "mounted" : "unmounted";
3646
+ const [state, send] = useStateMachine(initialState, {
3647
+ mounted: {
3648
+ UNMOUNT: "unmounted",
3649
+ ANIMATION_OUT: "unmountSuspended"
3650
+ },
3651
+ unmountSuspended: {
3652
+ MOUNT: "mounted",
3653
+ ANIMATION_END: "unmounted"
3654
+ },
3655
+ unmounted: {
3656
+ MOUNT: "mounted"
3657
+ }
3658
+ });
3659
+ React211.useEffect(() => {
3660
+ const currentAnimationName = getAnimationName(stylesRef.current);
3661
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
3662
+ }, [state]);
3663
+ useLayoutEffect2(() => {
3664
+ const styles = stylesRef.current;
3665
+ const wasPresent = prevPresentRef.current;
3666
+ const hasPresentChanged = wasPresent !== present;
3667
+ if (hasPresentChanged) {
3668
+ const prevAnimationName = prevAnimationNameRef.current;
3669
+ const currentAnimationName = getAnimationName(styles);
3670
+ if (present) {
3671
+ send("MOUNT");
3672
+ } else if (currentAnimationName === "none" || (styles == null ? void 0 : styles.display) === "none") {
3673
+ send("UNMOUNT");
3674
+ } else {
3675
+ const isAnimating = prevAnimationName !== currentAnimationName;
3676
+ if (wasPresent && isAnimating) {
3677
+ send("ANIMATION_OUT");
3678
+ } else {
3679
+ send("UNMOUNT");
3680
+ }
3681
+ }
3682
+ prevPresentRef.current = present;
3683
+ }
3684
+ }, [present, send]);
3685
+ useLayoutEffect2(() => {
3686
+ var _a;
3687
+ if (node) {
3688
+ let timeoutId;
3689
+ const ownerWindow = (_a = node.ownerDocument.defaultView) != null ? _a : window;
3690
+ const handleAnimationEnd = (event) => {
3691
+ const currentAnimationName = getAnimationName(stylesRef.current);
3692
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
3693
+ if (event.target === node && isCurrentAnimation) {
3694
+ send("ANIMATION_END");
3695
+ if (!prevPresentRef.current) {
3696
+ const currentFillMode = node.style.animationFillMode;
3697
+ node.style.animationFillMode = "forwards";
3698
+ timeoutId = ownerWindow.setTimeout(() => {
3699
+ if (node.style.animationFillMode === "forwards") {
3700
+ node.style.animationFillMode = currentFillMode;
3701
+ }
3702
+ });
3703
+ }
3704
+ }
3705
+ };
3706
+ const handleAnimationStart = (event) => {
3707
+ if (event.target === node) {
3708
+ prevAnimationNameRef.current = getAnimationName(stylesRef.current);
3709
+ }
3710
+ };
3711
+ node.addEventListener("animationstart", handleAnimationStart);
3712
+ node.addEventListener("animationcancel", handleAnimationEnd);
3713
+ node.addEventListener("animationend", handleAnimationEnd);
3714
+ return () => {
3715
+ ownerWindow.clearTimeout(timeoutId);
3716
+ node.removeEventListener("animationstart", handleAnimationStart);
3717
+ node.removeEventListener("animationcancel", handleAnimationEnd);
3718
+ node.removeEventListener("animationend", handleAnimationEnd);
3719
+ };
3720
+ } else {
3721
+ send("ANIMATION_END");
3722
+ }
3723
+ }, [node, send]);
3724
+ return {
3725
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
3726
+ ref: React211.useCallback((node2) => {
3727
+ stylesRef.current = node2 ? getComputedStyle(node2) : null;
3728
+ setNode(node2);
3729
+ }, [])
3730
+ };
3731
+ }
3732
+ function getAnimationName(styles) {
3733
+ return (styles == null ? void 0 : styles.animationName) || "none";
3734
+ }
3735
+ function getElementRef2(element) {
3736
+ var _a, _b;
3737
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
3738
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
3739
+ if (mayWarn) {
3740
+ return element.ref;
3741
+ }
3742
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
3743
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
3744
+ if (mayWarn) {
3745
+ return element.props.ref;
3746
+ }
3747
+ return element.props.ref || element.ref;
3748
+ }
3749
+
3750
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
3751
+ var React46 = __toESM(require("react"), 1);
3752
+ var count2 = 0;
3753
+ function useFocusGuards() {
3754
+ React46.useEffect(() => {
3755
+ var _a, _b;
3756
+ const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
3757
+ document.body.insertAdjacentElement("afterbegin", (_a = edgeGuards[0]) != null ? _a : createFocusGuard());
3758
+ document.body.insertAdjacentElement("beforeend", (_b = edgeGuards[1]) != null ? _b : createFocusGuard());
3759
+ count2++;
3760
+ return () => {
3761
+ if (count2 === 1) {
3762
+ document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
3763
+ }
3764
+ count2--;
3765
+ };
3766
+ }, []);
3767
+ }
3768
+ function createFocusGuard() {
3769
+ const element = document.createElement("span");
3770
+ element.setAttribute("data-radix-focus-guard", "");
3771
+ element.tabIndex = 0;
3772
+ element.style.outline = "none";
3773
+ element.style.opacity = "0";
3774
+ element.style.position = "fixed";
3775
+ element.style.pointerEvents = "none";
3776
+ return element;
3777
+ }
3778
+
3779
+ // ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
3780
+ var __assign = function() {
3781
+ __assign = Object.assign || function __assign2(t) {
3782
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
3783
+ s = arguments[i];
3784
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3785
+ }
3786
+ return t;
3787
+ };
3788
+ return __assign.apply(this, arguments);
3789
+ };
3790
+ function __rest(s, e) {
3791
+ var t = {};
3792
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3793
+ t[p] = s[p];
3794
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
3795
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3796
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3797
+ t[p[i]] = s[p[i]];
3798
+ }
3799
+ return t;
3800
+ }
3801
+ function __spreadArray(to, from, pack) {
3802
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3803
+ if (ar || !(i in from)) {
3804
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3805
+ ar[i] = from[i];
3806
+ }
3807
+ }
3808
+ return to.concat(ar || Array.prototype.slice.call(from));
3809
+ }
3810
+
3811
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
3812
+ var React53 = __toESM(require("react"));
3813
+
3814
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
3815
+ var React49 = __toESM(require("react"));
3816
+
3817
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
3818
+ var zeroRightClassName = "right-scroll-bar-position";
3819
+ var fullWidthClassName = "width-before-scroll-bar";
3820
+ var noScrollbarsClassName = "with-scroll-bars-hidden";
3821
+ var removedBarSizeVariable = "--removed-body-scroll-bar-size";
3822
+
3823
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
3824
+ function assignRef(ref, value) {
3825
+ if (typeof ref === "function") {
3826
+ ref(value);
3827
+ } else if (ref) {
3828
+ ref.current = value;
3829
+ }
3830
+ return ref;
3831
+ }
3832
+
3833
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.js
3834
+ var import_react37 = require("react");
3835
+ function useCallbackRef2(initialValue, callback) {
3836
+ var ref = (0, import_react37.useState)(function() {
3837
+ return {
3838
+ // value
3839
+ value: initialValue,
3840
+ // last callback
3841
+ callback,
3842
+ // "memoized" public interface
3843
+ facade: {
3844
+ get current() {
3845
+ return ref.value;
3846
+ },
3847
+ set current(value) {
3848
+ var last = ref.value;
3849
+ if (last !== value) {
3850
+ ref.value = value;
3851
+ ref.callback(value, last);
3852
+ }
3853
+ }
3854
+ }
3855
+ };
3856
+ })[0];
3857
+ ref.callback = callback;
3858
+ return ref.facade;
3859
+ }
3860
+
3861
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3862
+ var React47 = __toESM(require("react"));
3863
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React47.useLayoutEffect : React47.useEffect;
3864
+ var currentValues = /* @__PURE__ */ new WeakMap();
3865
+ function useMergeRefs(refs, defaultValue) {
3866
+ var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
3867
+ return refs.forEach(function(ref) {
3868
+ return assignRef(ref, newValue);
3869
+ });
3870
+ });
3871
+ useIsomorphicLayoutEffect(function() {
3872
+ var oldValue = currentValues.get(callbackRef);
3873
+ if (oldValue) {
3874
+ var prevRefs_1 = new Set(oldValue);
3875
+ var nextRefs_1 = new Set(refs);
3876
+ var current_1 = callbackRef.current;
3877
+ prevRefs_1.forEach(function(ref) {
3878
+ if (!nextRefs_1.has(ref)) {
3879
+ assignRef(ref, null);
3880
+ }
3881
+ });
3882
+ nextRefs_1.forEach(function(ref) {
3883
+ if (!prevRefs_1.has(ref)) {
3884
+ assignRef(ref, current_1);
3885
+ }
3886
+ });
3887
+ }
3888
+ currentValues.set(callbackRef, refs);
3889
+ }, [refs]);
3890
+ return callbackRef;
3891
+ }
3892
+
3893
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.2_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.js
3894
+ function ItoI(a) {
3895
+ return a;
3896
+ }
3897
+ function innerCreateMedium(defaults, middleware) {
3898
+ if (middleware === void 0) {
3899
+ middleware = ItoI;
3900
+ }
3901
+ var buffer = [];
3902
+ var assigned = false;
3903
+ var medium = {
3904
+ read: function() {
3905
+ if (assigned) {
3906
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
3907
+ }
3908
+ if (buffer.length) {
3909
+ return buffer[buffer.length - 1];
3910
+ }
3911
+ return defaults;
3912
+ },
3913
+ useMedium: function(data) {
3914
+ var item = middleware(data, assigned);
3915
+ buffer.push(item);
3916
+ return function() {
3917
+ buffer = buffer.filter(function(x) {
3918
+ return x !== item;
3919
+ });
3920
+ };
3921
+ },
3922
+ assignSyncMedium: function(cb) {
3923
+ assigned = true;
3924
+ while (buffer.length) {
3925
+ var cbs = buffer;
3926
+ buffer = [];
3927
+ cbs.forEach(cb);
3928
+ }
3929
+ buffer = {
3930
+ push: function(x) {
3931
+ return cb(x);
3932
+ },
3933
+ filter: function() {
3934
+ return buffer;
3935
+ }
3936
+ };
3937
+ },
3938
+ assignMedium: function(cb) {
3939
+ assigned = true;
3940
+ var pendingQueue = [];
3941
+ if (buffer.length) {
3942
+ var cbs = buffer;
3943
+ buffer = [];
3944
+ cbs.forEach(cb);
3945
+ pendingQueue = buffer;
3946
+ }
3947
+ var executeQueue = function() {
3948
+ var cbs2 = pendingQueue;
3949
+ pendingQueue = [];
3950
+ cbs2.forEach(cb);
3951
+ };
3952
+ var cycle = function() {
3953
+ return Promise.resolve().then(executeQueue);
3954
+ };
3955
+ cycle();
3956
+ buffer = {
3957
+ push: function(x) {
3958
+ pendingQueue.push(x);
3959
+ cycle();
3960
+ },
3961
+ filter: function(filter) {
3962
+ pendingQueue = pendingQueue.filter(filter);
3963
+ return buffer;
3964
+ }
3965
+ };
3966
+ }
3967
+ };
3968
+ return medium;
3969
+ }
3970
+ function createSidecarMedium(options) {
3971
+ if (options === void 0) {
3972
+ options = {};
3973
+ }
3974
+ var medium = innerCreateMedium(null);
3975
+ medium.options = __assign({ async: true, ssr: false }, options);
3976
+ return medium;
3977
+ }
3978
+
3979
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.2_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.js
3980
+ var React48 = __toESM(require("react"));
3981
+ var SideCar = function(_a) {
3982
+ var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
3983
+ if (!sideCar) {
3984
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3985
+ }
3986
+ var Target = sideCar.read();
3987
+ if (!Target) {
3988
+ throw new Error("Sidecar medium not found");
3989
+ }
3990
+ return React48.createElement(Target, __assign({}, rest));
3991
+ };
3992
+ SideCar.isSideCarExport = true;
3993
+ function exportSidecar(medium, exported) {
3994
+ medium.useMedium(exported);
3995
+ return SideCar;
3996
+ }
3997
+
3998
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.js
3999
+ var effectCar = createSidecarMedium();
4000
+
4001
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
4002
+ var nothing = function() {
4003
+ return;
4004
+ };
4005
+ var RemoveScroll = React49.forwardRef(function(props, parentRef) {
4006
+ var ref = React49.useRef(null);
4007
+ var _a = React49.useState({
4008
+ onScrollCapture: nothing,
4009
+ onWheelCapture: nothing,
4010
+ onTouchMoveCapture: nothing
4011
+ }), callbacks = _a[0], setCallbacks = _a[1];
4012
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
4013
+ var SideCar2 = sideCar;
4014
+ var containerRef = useMergeRefs([ref, parentRef]);
4015
+ var containerProps = __assign(__assign({}, rest), callbacks);
4016
+ return React49.createElement(
4017
+ React49.Fragment,
4018
+ null,
4019
+ enabled && React49.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
4020
+ forwardProps ? React49.cloneElement(React49.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React49.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
4021
+ );
4022
+ });
4023
+ RemoveScroll.defaultProps = {
4024
+ enabled: true,
4025
+ removeScrollBar: true,
4026
+ inert: false
4027
+ };
4028
+ RemoveScroll.classNames = {
4029
+ fullWidth: fullWidthClassName,
4030
+ zeroRight: zeroRightClassName
4031
+ };
4032
+
4033
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
4034
+ var React52 = __toESM(require("react"));
4035
+
4036
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
4037
+ var React51 = __toESM(require("react"));
4038
+
4039
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
4040
+ var React50 = __toESM(require("react"));
4041
+
4042
+ // ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
4043
+ var currentNonce;
4044
+ var getNonce = function() {
4045
+ if (currentNonce) {
4046
+ return currentNonce;
4047
+ }
4048
+ if (typeof __webpack_nonce__ !== "undefined") {
4049
+ return __webpack_nonce__;
4050
+ }
4051
+ return void 0;
4052
+ };
4053
+
4054
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.js
4055
+ function makeStyleTag() {
4056
+ if (!document)
4057
+ return null;
4058
+ var tag = document.createElement("style");
4059
+ tag.type = "text/css";
4060
+ var nonce = getNonce();
4061
+ if (nonce) {
4062
+ tag.setAttribute("nonce", nonce);
4063
+ }
4064
+ return tag;
4065
+ }
4066
+ function injectStyles(tag, css) {
4067
+ if (tag.styleSheet) {
4068
+ tag.styleSheet.cssText = css;
4069
+ } else {
4070
+ tag.appendChild(document.createTextNode(css));
4071
+ }
4072
+ }
4073
+ function insertStyleTag(tag) {
4074
+ var head = document.head || document.getElementsByTagName("head")[0];
4075
+ head.appendChild(tag);
4076
+ }
4077
+ var stylesheetSingleton = function() {
4078
+ var counter = 0;
4079
+ var stylesheet = null;
4080
+ return {
4081
+ add: function(style) {
4082
+ if (counter == 0) {
4083
+ if (stylesheet = makeStyleTag()) {
4084
+ injectStyles(stylesheet, style);
4085
+ insertStyleTag(stylesheet);
4086
+ }
4087
+ }
4088
+ counter++;
4089
+ },
4090
+ remove: function() {
4091
+ counter--;
4092
+ if (!counter && stylesheet) {
4093
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
4094
+ stylesheet = null;
4095
+ }
4096
+ }
4097
+ };
4098
+ };
4099
+
4100
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
4101
+ var styleHookSingleton = function() {
4102
+ var sheet = stylesheetSingleton();
4103
+ return function(styles, isDynamic) {
4104
+ React50.useEffect(function() {
4105
+ sheet.add(styles);
4106
+ return function() {
4107
+ sheet.remove();
4108
+ };
4109
+ }, [styles && isDynamic]);
4110
+ };
4111
+ };
4112
+
4113
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.js
4114
+ var styleSingleton = function() {
4115
+ var useStyle = styleHookSingleton();
4116
+ var Sheet = function(_a) {
4117
+ var styles = _a.styles, dynamic = _a.dynamic;
4118
+ useStyle(styles, dynamic);
4119
+ return null;
4120
+ };
4121
+ return Sheet;
4122
+ };
4123
+
4124
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
4125
+ var zeroGap = {
4126
+ left: 0,
4127
+ top: 0,
4128
+ right: 0,
4129
+ gap: 0
4130
+ };
4131
+ var parse = function(x) {
4132
+ return parseInt(x || "", 10) || 0;
4133
+ };
4134
+ var getOffset = function(gapMode) {
4135
+ var cs = window.getComputedStyle(document.body);
4136
+ var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
4137
+ var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
4138
+ var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
4139
+ return [parse(left), parse(top), parse(right)];
4140
+ };
4141
+ var getGapWidth = function(gapMode) {
4142
+ if (gapMode === void 0) {
4143
+ gapMode = "margin";
4144
+ }
4145
+ if (typeof window === "undefined") {
4146
+ return zeroGap;
4147
+ }
4148
+ var offsets = getOffset(gapMode);
4149
+ var documentWidth = document.documentElement.clientWidth;
4150
+ var windowWidth = window.innerWidth;
4151
+ return {
4152
+ left: offsets[0],
4153
+ top: offsets[1],
4154
+ right: offsets[2],
4155
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
4156
+ };
4157
+ };
4158
+
4159
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
4160
+ var Style = styleSingleton();
4161
+ var lockAttribute = "data-scroll-locked";
4162
+ var getStyles = function(_a, allowRelative, gapMode, important) {
4163
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
4164
+ if (gapMode === void 0) {
4165
+ gapMode = "margin";
4166
+ }
4167
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
4168
+ allowRelative && "position: relative ".concat(important, ";"),
4169
+ gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
4170
+ gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
4171
+ ].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
4172
+ };
4173
+ var getCurrentUseCounter = function() {
4174
+ var counter = parseInt(document.body.getAttribute(lockAttribute) || "0", 10);
4175
+ return isFinite(counter) ? counter : 0;
4176
+ };
4177
+ var useLockAttribute = function() {
4178
+ React51.useEffect(function() {
4179
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
4180
+ return function() {
4181
+ var newCounter = getCurrentUseCounter() - 1;
4182
+ if (newCounter <= 0) {
4183
+ document.body.removeAttribute(lockAttribute);
4184
+ } else {
4185
+ document.body.setAttribute(lockAttribute, newCounter.toString());
4186
+ }
4187
+ };
4188
+ }, []);
4189
+ };
4190
+ var RemoveScrollBar = function(_a) {
4191
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
4192
+ useLockAttribute();
4193
+ var gap = React51.useMemo(function() {
4194
+ return getGapWidth(gapMode);
4195
+ }, [gapMode]);
4196
+ return React51.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4197
+ };
4198
+
4199
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
4200
+ var passiveSupported = false;
4201
+ if (typeof window !== "undefined") {
4202
+ try {
4203
+ options = Object.defineProperty({}, "passive", {
4204
+ get: function() {
4205
+ passiveSupported = true;
4206
+ return true;
4207
+ }
4208
+ });
4209
+ window.addEventListener("test", options, options);
4210
+ window.removeEventListener("test", options, options);
4211
+ } catch (err) {
4212
+ passiveSupported = false;
4213
+ }
4214
+ }
4215
+ var options;
4216
+ var nonPassive = passiveSupported ? { passive: false } : false;
4217
+
4218
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
4219
+ var alwaysContainsScroll = function(node) {
4220
+ return node.tagName === "TEXTAREA";
4221
+ };
4222
+ var elementCanBeScrolled = function(node, overflow) {
4223
+ if (!(node instanceof Element)) {
4224
+ return false;
4225
+ }
4226
+ var styles = window.getComputedStyle(node);
4227
+ return (
4228
+ // not-not-scrollable
4229
+ styles[overflow] !== "hidden" && // contains scroll inside self
4230
+ !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible")
4231
+ );
4232
+ };
4233
+ var elementCouldBeVScrolled = function(node) {
4234
+ return elementCanBeScrolled(node, "overflowY");
4235
+ };
4236
+ var elementCouldBeHScrolled = function(node) {
4237
+ return elementCanBeScrolled(node, "overflowX");
4238
+ };
4239
+ var locationCouldBeScrolled = function(axis, node) {
4240
+ var ownerDocument = node.ownerDocument;
4241
+ var current = node;
4242
+ do {
4243
+ if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) {
4244
+ current = current.host;
4245
+ }
4246
+ var isScrollable = elementCouldBeScrolled(axis, current);
4247
+ if (isScrollable) {
4248
+ var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
4249
+ if (scrollHeight > clientHeight) {
4250
+ return true;
4251
+ }
4252
+ }
4253
+ current = current.parentNode;
4254
+ } while (current && current !== ownerDocument.body);
4255
+ return false;
4256
+ };
4257
+ var getVScrollVariables = function(_a) {
4258
+ var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
4259
+ return [
4260
+ scrollTop,
4261
+ scrollHeight,
4262
+ clientHeight
4263
+ ];
4264
+ };
4265
+ var getHScrollVariables = function(_a) {
4266
+ var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
4267
+ return [
4268
+ scrollLeft,
4269
+ scrollWidth,
4270
+ clientWidth
4271
+ ];
4272
+ };
4273
+ var elementCouldBeScrolled = function(axis, node) {
4274
+ return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
4275
+ };
4276
+ var getScrollVariables = function(axis, node) {
4277
+ return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
4278
+ };
4279
+ var getDirectionFactor = function(axis, direction) {
4280
+ return axis === "h" && direction === "rtl" ? -1 : 1;
4281
+ };
4282
+ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
4283
+ var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
4284
+ var delta = directionFactor * sourceDelta;
4285
+ var target = event.target;
4286
+ var targetInLock = endTarget.contains(target);
4287
+ var shouldCancelScroll = false;
4288
+ var isDeltaPositive = delta > 0;
4289
+ var availableScroll = 0;
4290
+ var availableScrollTop = 0;
4291
+ do {
4292
+ if (!target) {
4293
+ break;
4294
+ }
4295
+ var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
4296
+ var elementScroll = scroll_1 - capacity - directionFactor * position;
4297
+ if (position || elementScroll) {
4298
+ if (elementCouldBeScrolled(axis, target)) {
4299
+ availableScroll += elementScroll;
4300
+ availableScrollTop += position;
4301
+ }
4302
+ }
4303
+ var parent_1 = target.parentNode;
4304
+ target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
4305
+ } while (
4306
+ // portaled content
4307
+ !targetInLock && target !== document.body || // self content
4308
+ targetInLock && (endTarget.contains(target) || endTarget === target)
4309
+ );
4310
+ if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) {
4311
+ shouldCancelScroll = true;
4312
+ } else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) {
4313
+ shouldCancelScroll = true;
4314
+ }
4315
+ return shouldCancelScroll;
4316
+ };
4317
+
4318
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
4319
+ var getTouchXY = function(event) {
4320
+ return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
4321
+ };
4322
+ var getDeltaXY = function(event) {
4323
+ return [event.deltaX, event.deltaY];
4324
+ };
4325
+ var extractRef = function(ref) {
4326
+ return ref && "current" in ref ? ref.current : ref;
4327
+ };
4328
+ var deltaCompare = function(x, y) {
4329
+ return x[0] === y[0] && x[1] === y[1];
4330
+ };
4331
+ var generateStyle = function(id) {
4332
+ return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
4333
+ };
4334
+ var idCounter = 0;
4335
+ var lockStack = [];
4336
+ function RemoveScrollSideCar(props) {
4337
+ var shouldPreventQueue = React52.useRef([]);
4338
+ var touchStartRef = React52.useRef([0, 0]);
4339
+ var activeAxis = React52.useRef();
4340
+ var id = React52.useState(idCounter++)[0];
4341
+ var Style2 = React52.useState(styleSingleton)[0];
4342
+ var lastProps = React52.useRef(props);
4343
+ React52.useEffect(function() {
4344
+ lastProps.current = props;
4345
+ }, [props]);
4346
+ React52.useEffect(function() {
4347
+ if (props.inert) {
4348
+ document.body.classList.add("block-interactivity-".concat(id));
4349
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
4350
+ allow_1.forEach(function(el) {
4351
+ return el.classList.add("allow-interactivity-".concat(id));
4352
+ });
4353
+ return function() {
4354
+ document.body.classList.remove("block-interactivity-".concat(id));
4355
+ allow_1.forEach(function(el) {
4356
+ return el.classList.remove("allow-interactivity-".concat(id));
4357
+ });
4358
+ };
4359
+ }
4360
+ return;
4361
+ }, [props.inert, props.lockRef.current, props.shards]);
4362
+ var shouldCancelEvent = React52.useCallback(function(event, parent) {
4363
+ if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
4364
+ return !lastProps.current.allowPinchZoom;
4365
+ }
4366
+ var touch = getTouchXY(event);
4367
+ var touchStart = touchStartRef.current;
4368
+ var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
4369
+ var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
4370
+ var currentAxis;
4371
+ var target = event.target;
4372
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
4373
+ if ("touches" in event && moveDirection === "h" && target.type === "range") {
4374
+ return false;
4375
+ }
4376
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
4377
+ if (!canBeScrolledInMainDirection) {
4378
+ return true;
4379
+ }
4380
+ if (canBeScrolledInMainDirection) {
4381
+ currentAxis = moveDirection;
4382
+ } else {
4383
+ currentAxis = moveDirection === "v" ? "h" : "v";
4384
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
4385
+ }
4386
+ if (!canBeScrolledInMainDirection) {
4387
+ return false;
4388
+ }
4389
+ if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) {
4390
+ activeAxis.current = currentAxis;
4391
+ }
4392
+ if (!currentAxis) {
4393
+ return true;
4394
+ }
4395
+ var cancelingAxis = activeAxis.current || currentAxis;
4396
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
4397
+ }, []);
4398
+ var shouldPrevent = React52.useCallback(function(_event) {
4399
+ var event = _event;
4400
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
4401
+ return;
4402
+ }
4403
+ var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
4404
+ var sourceEvent = shouldPreventQueue.current.filter(function(e) {
4405
+ return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
4406
+ })[0];
4407
+ if (sourceEvent && sourceEvent.should) {
4408
+ if (event.cancelable) {
4409
+ event.preventDefault();
4410
+ }
4411
+ return;
4412
+ }
4413
+ if (!sourceEvent) {
4414
+ var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
4415
+ return node.contains(event.target);
4416
+ });
4417
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
4418
+ if (shouldStop) {
4419
+ if (event.cancelable) {
4420
+ event.preventDefault();
4421
+ }
4422
+ }
4423
+ }
4424
+ }, []);
4425
+ var shouldCancel = React52.useCallback(function(name, delta, target, should) {
4426
+ var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
4427
+ shouldPreventQueue.current.push(event);
4428
+ setTimeout(function() {
4429
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
4430
+ return e !== event;
4431
+ });
4432
+ }, 1);
4433
+ }, []);
4434
+ var scrollTouchStart = React52.useCallback(function(event) {
4435
+ touchStartRef.current = getTouchXY(event);
4436
+ activeAxis.current = void 0;
4437
+ }, []);
4438
+ var scrollWheel = React52.useCallback(function(event) {
4439
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
4440
+ }, []);
4441
+ var scrollTouchMove = React52.useCallback(function(event) {
4442
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
4443
+ }, []);
4444
+ React52.useEffect(function() {
4445
+ lockStack.push(Style2);
4446
+ props.setCallbacks({
4447
+ onScrollCapture: scrollWheel,
4448
+ onWheelCapture: scrollWheel,
4449
+ onTouchMoveCapture: scrollTouchMove
4450
+ });
4451
+ document.addEventListener("wheel", shouldPrevent, nonPassive);
4452
+ document.addEventListener("touchmove", shouldPrevent, nonPassive);
4453
+ document.addEventListener("touchstart", scrollTouchStart, nonPassive);
4454
+ return function() {
4455
+ lockStack = lockStack.filter(function(inst) {
4456
+ return inst !== Style2;
4457
+ });
4458
+ document.removeEventListener("wheel", shouldPrevent, nonPassive);
4459
+ document.removeEventListener("touchmove", shouldPrevent, nonPassive);
4460
+ document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
4461
+ };
4462
+ }, []);
4463
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
4464
+ return React52.createElement(
4465
+ React52.Fragment,
4466
+ null,
4467
+ inert ? React52.createElement(Style2, { styles: generateStyle(id) }) : null,
4468
+ removeScrollBar ? React52.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
4469
+ );
4470
+ }
4471
+ function getOutermostShadowParent(node) {
4472
+ var shadowParent = null;
4473
+ while (node !== null) {
4474
+ if (node instanceof ShadowRoot) {
4475
+ shadowParent = node.host;
4476
+ node = node.host;
4477
+ }
4478
+ node = node.parentNode;
4479
+ }
4480
+ return shadowParent;
4481
+ }
4482
+
4483
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
4484
+ var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
4485
+
4486
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
4487
+ var ReactRemoveScroll = React53.forwardRef(function(props, ref) {
4488
+ return React53.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
4489
+ });
4490
+ ReactRemoveScroll.classNames = RemoveScroll.classNames;
4491
+ var Combination_default = ReactRemoveScroll;
4492
+
4493
+ // ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
4494
+ var getDefaultParent = function(originalTarget) {
4495
+ if (typeof document === "undefined") {
4496
+ return null;
4497
+ }
4498
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
4499
+ return sampleTarget.ownerDocument.body;
4500
+ };
4501
+ var counterMap = /* @__PURE__ */ new WeakMap();
4502
+ var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
4503
+ var markerMap = {};
4504
+ var lockCount = 0;
4505
+ var unwrapHost = function(node) {
4506
+ return node && (node.host || unwrapHost(node.parentNode));
4507
+ };
4508
+ var correctTargets = function(parent, targets) {
4509
+ return targets.map(function(target) {
4510
+ if (parent.contains(target)) {
4511
+ return target;
4512
+ }
4513
+ var correctedTarget = unwrapHost(target);
4514
+ if (correctedTarget && parent.contains(correctedTarget)) {
4515
+ return correctedTarget;
4516
+ }
4517
+ console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
4518
+ return null;
4519
+ }).filter(function(x) {
4520
+ return Boolean(x);
4521
+ });
4522
+ };
4523
+ var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
4524
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
4525
+ if (!markerMap[markerName]) {
4526
+ markerMap[markerName] = /* @__PURE__ */ new WeakMap();
4527
+ }
4528
+ var markerCounter = markerMap[markerName];
4529
+ var hiddenNodes = [];
4530
+ var elementsToKeep = /* @__PURE__ */ new Set();
4531
+ var elementsToStop = new Set(targets);
4532
+ var keep = function(el) {
4533
+ if (!el || elementsToKeep.has(el)) {
4534
+ return;
4535
+ }
4536
+ elementsToKeep.add(el);
4537
+ keep(el.parentNode);
4538
+ };
4539
+ targets.forEach(keep);
4540
+ var deep = function(parent) {
4541
+ if (!parent || elementsToStop.has(parent)) {
4542
+ return;
4543
+ }
4544
+ Array.prototype.forEach.call(parent.children, function(node) {
4545
+ if (elementsToKeep.has(node)) {
4546
+ deep(node);
4547
+ } else {
4548
+ try {
4549
+ var attr = node.getAttribute(controlAttribute);
4550
+ var alreadyHidden = attr !== null && attr !== "false";
4551
+ var counterValue = (counterMap.get(node) || 0) + 1;
4552
+ var markerValue = (markerCounter.get(node) || 0) + 1;
4553
+ counterMap.set(node, counterValue);
4554
+ markerCounter.set(node, markerValue);
4555
+ hiddenNodes.push(node);
4556
+ if (counterValue === 1 && alreadyHidden) {
4557
+ uncontrolledNodes.set(node, true);
4558
+ }
4559
+ if (markerValue === 1) {
4560
+ node.setAttribute(markerName, "true");
4561
+ }
4562
+ if (!alreadyHidden) {
4563
+ node.setAttribute(controlAttribute, "true");
4564
+ }
4565
+ } catch (e) {
4566
+ console.error("aria-hidden: cannot operate on ", node, e);
4567
+ }
4568
+ }
4569
+ });
4570
+ };
4571
+ deep(parentNode);
4572
+ elementsToKeep.clear();
4573
+ lockCount++;
4574
+ return function() {
4575
+ hiddenNodes.forEach(function(node) {
4576
+ var counterValue = counterMap.get(node) - 1;
4577
+ var markerValue = markerCounter.get(node) - 1;
4578
+ counterMap.set(node, counterValue);
4579
+ markerCounter.set(node, markerValue);
4580
+ if (!counterValue) {
4581
+ if (!uncontrolledNodes.has(node)) {
4582
+ node.removeAttribute(controlAttribute);
4583
+ }
4584
+ uncontrolledNodes.delete(node);
4585
+ }
4586
+ if (!markerValue) {
4587
+ node.removeAttribute(markerName);
4588
+ }
4589
+ });
4590
+ lockCount--;
4591
+ if (!lockCount) {
4592
+ counterMap = /* @__PURE__ */ new WeakMap();
4593
+ counterMap = /* @__PURE__ */ new WeakMap();
4594
+ uncontrolledNodes = /* @__PURE__ */ new WeakMap();
4595
+ markerMap = {};
4596
+ }
4597
+ };
4598
+ };
4599
+ var hideOthers = function(originalTarget, parentNode, markerName) {
4600
+ if (markerName === void 0) {
4601
+ markerName = "data-aria-hidden";
4602
+ }
4603
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
4604
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
4605
+ if (!activeParentNode) {
4606
+ return function() {
4607
+ return null;
4608
+ };
4609
+ }
4610
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
4611
+ return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
4612
+ };
4613
+
4614
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react_848f83211ce5e4d8275fe0d3e11a9387/node_modules/@radix-ui/react-dialog/dist/index.mjs
4615
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4616
+ var DIALOG_NAME = "Dialog";
4617
+ var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
4618
+ var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
4619
+ var Dialog = (props) => {
4620
+ const {
4621
+ __scopeDialog,
4622
+ children,
4623
+ open: openProp,
4624
+ defaultOpen,
4625
+ onOpenChange,
4626
+ modal = true
4627
+ } = props;
4628
+ const triggerRef = React54.useRef(null);
4629
+ const contentRef = React54.useRef(null);
4630
+ const [open, setOpen] = useControllableState({
4631
+ prop: openProp,
4632
+ defaultProp: defaultOpen != null ? defaultOpen : false,
4633
+ onChange: onOpenChange,
4634
+ caller: DIALOG_NAME
4635
+ });
4636
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4637
+ DialogProvider,
4638
+ {
4639
+ scope: __scopeDialog,
4640
+ triggerRef,
4641
+ contentRef,
4642
+ contentId: useId(),
4643
+ titleId: useId(),
4644
+ descriptionId: useId(),
4645
+ open,
4646
+ onOpenChange: setOpen,
4647
+ onOpenToggle: React54.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
4648
+ modal,
4649
+ children
4650
+ }
4651
+ );
4652
+ };
4653
+ Dialog.displayName = DIALOG_NAME;
4654
+ var TRIGGER_NAME = "DialogTrigger";
4655
+ var DialogTrigger = React54.forwardRef(
4656
+ (props, forwardedRef) => {
4657
+ const _a = props, { __scopeDialog } = _a, triggerProps = __objRest(_a, ["__scopeDialog"]);
4658
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
4659
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
4660
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4661
+ Primitive.button,
4662
+ __spreadProps(__spreadValues({
4663
+ type: "button",
4664
+ "aria-haspopup": "dialog",
4665
+ "aria-expanded": context.open,
4666
+ "aria-controls": context.contentId,
4667
+ "data-state": getState(context.open)
4668
+ }, triggerProps), {
4669
+ ref: composedTriggerRef,
4670
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
4671
+ })
4672
+ );
4673
+ }
4674
+ );
4675
+ DialogTrigger.displayName = TRIGGER_NAME;
4676
+ var PORTAL_NAME2 = "DialogPortal";
4677
+ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
4678
+ forceMount: void 0
4679
+ });
4680
+ var DialogPortal = (props) => {
4681
+ const { __scopeDialog, forceMount, children, container } = props;
4682
+ const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
4683
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React54.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Portal, { asChild: true, container, children: child }) })) });
4684
+ };
4685
+ DialogPortal.displayName = PORTAL_NAME2;
4686
+ var OVERLAY_NAME = "DialogOverlay";
4687
+ var DialogOverlay = React54.forwardRef(
4688
+ (props, forwardedRef) => {
4689
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
4690
+ const _a = props, { forceMount = portalContext.forceMount } = _a, overlayProps = __objRest(_a, ["forceMount"]);
4691
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
4692
+ return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogOverlayImpl, __spreadProps(__spreadValues({}, overlayProps), { ref: forwardedRef })) }) : null;
4693
+ }
4694
+ );
4695
+ DialogOverlay.displayName = OVERLAY_NAME;
4696
+ var Slot2 = createSlot("DialogOverlay.RemoveScroll");
4697
+ var DialogOverlayImpl = React54.forwardRef(
4698
+ (props, forwardedRef) => {
4699
+ const _a = props, { __scopeDialog } = _a, overlayProps = __objRest(_a, ["__scopeDialog"]);
4700
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
4701
+ return (
4702
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
4703
+ // ie. when `Overlay` and `Content` are siblings
4704
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Combination_default, { as: Slot2, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4705
+ Primitive.div,
4706
+ __spreadProps(__spreadValues({
4707
+ "data-state": getState(context.open)
4708
+ }, overlayProps), {
4709
+ ref: forwardedRef,
4710
+ style: __spreadValues({ pointerEvents: "auto" }, overlayProps.style)
4711
+ })
4712
+ ) })
4713
+ );
4714
+ }
4715
+ );
4716
+ var CONTENT_NAME = "DialogContent";
4717
+ var DialogContent = React54.forwardRef(
4718
+ (props, forwardedRef) => {
4719
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
4720
+ const _a = props, { forceMount = portalContext.forceMount } = _a, contentProps = __objRest(_a, ["forceMount"]);
4721
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
4722
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogContentModal, __spreadProps(__spreadValues({}, contentProps), { ref: forwardedRef })) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogContentNonModal, __spreadProps(__spreadValues({}, contentProps), { ref: forwardedRef })) });
4723
+ }
4724
+ );
4725
+ DialogContent.displayName = CONTENT_NAME;
4726
+ var DialogContentModal = React54.forwardRef(
4727
+ (props, forwardedRef) => {
4728
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
4729
+ const contentRef = React54.useRef(null);
4730
+ const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
4731
+ React54.useEffect(() => {
4732
+ const content = contentRef.current;
4733
+ if (content) return hideOthers(content);
4734
+ }, []);
4735
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4736
+ DialogContentImpl,
4737
+ __spreadProps(__spreadValues({}, props), {
4738
+ ref: composedRefs,
4739
+ trapFocus: context.open,
4740
+ disableOutsidePointerEvents: true,
4741
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
4742
+ var _a;
4743
+ event.preventDefault();
4744
+ (_a = context.triggerRef.current) == null ? void 0 : _a.focus();
4745
+ }),
4746
+ onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
4747
+ const originalEvent = event.detail.originalEvent;
4748
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
4749
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
4750
+ if (isRightClick) event.preventDefault();
4751
+ }),
4752
+ onFocusOutside: composeEventHandlers(
4753
+ props.onFocusOutside,
4754
+ (event) => event.preventDefault()
4755
+ )
4756
+ })
4757
+ );
4758
+ }
4759
+ );
4760
+ var DialogContentNonModal = React54.forwardRef(
4761
+ (props, forwardedRef) => {
4762
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
4763
+ const hasInteractedOutsideRef = React54.useRef(false);
4764
+ const hasPointerDownOutsideRef = React54.useRef(false);
4765
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4766
+ DialogContentImpl,
4767
+ __spreadProps(__spreadValues({}, props), {
4768
+ ref: forwardedRef,
4769
+ trapFocus: false,
4770
+ disableOutsidePointerEvents: false,
4771
+ onCloseAutoFocus: (event) => {
4772
+ var _a, _b;
4773
+ (_a = props.onCloseAutoFocus) == null ? void 0 : _a.call(props, event);
4774
+ if (!event.defaultPrevented) {
4775
+ if (!hasInteractedOutsideRef.current) (_b = context.triggerRef.current) == null ? void 0 : _b.focus();
4776
+ event.preventDefault();
4777
+ }
4778
+ hasInteractedOutsideRef.current = false;
4779
+ hasPointerDownOutsideRef.current = false;
4780
+ },
4781
+ onInteractOutside: (event) => {
4782
+ var _a, _b;
4783
+ (_a = props.onInteractOutside) == null ? void 0 : _a.call(props, event);
4784
+ if (!event.defaultPrevented) {
4785
+ hasInteractedOutsideRef.current = true;
4786
+ if (event.detail.originalEvent.type === "pointerdown") {
4787
+ hasPointerDownOutsideRef.current = true;
4788
+ }
4789
+ }
4790
+ const target = event.target;
4791
+ const targetIsTrigger = (_b = context.triggerRef.current) == null ? void 0 : _b.contains(target);
4792
+ if (targetIsTrigger) event.preventDefault();
4793
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
4794
+ event.preventDefault();
4795
+ }
4796
+ }
4797
+ })
4798
+ );
4799
+ }
4800
+ );
4801
+ var DialogContentImpl = React54.forwardRef(
4802
+ (props, forwardedRef) => {
4803
+ const _a = props, { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus } = _a, contentProps = __objRest(_a, ["__scopeDialog", "trapFocus", "onOpenAutoFocus", "onCloseAutoFocus"]);
4804
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
4805
+ const contentRef = React54.useRef(null);
4806
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
4807
+ useFocusGuards();
4808
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4809
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4810
+ FocusScope,
4811
+ {
4812
+ asChild: true,
4813
+ loop: true,
4814
+ trapped: trapFocus,
4815
+ onMountAutoFocus: onOpenAutoFocus,
4816
+ onUnmountAutoFocus: onCloseAutoFocus,
4817
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4818
+ DismissableLayer,
4819
+ __spreadProps(__spreadValues({
4820
+ role: "dialog",
4821
+ id: context.contentId,
4822
+ "aria-describedby": context.descriptionId,
4823
+ "aria-labelledby": context.titleId,
4824
+ "data-state": getState(context.open)
4825
+ }, contentProps), {
4826
+ ref: composedRefs,
4827
+ onDismiss: () => context.onOpenChange(false)
4828
+ })
4829
+ )
4830
+ }
4831
+ ),
4832
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4833
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TitleWarning, { titleId: context.titleId }),
4834
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
4835
+ ] })
4836
+ ] });
4837
+ }
4838
+ );
4839
+ var TITLE_NAME = "DialogTitle";
4840
+ var DialogTitle = React54.forwardRef(
4841
+ (props, forwardedRef) => {
4842
+ const _a = props, { __scopeDialog } = _a, titleProps = __objRest(_a, ["__scopeDialog"]);
4843
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
4844
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Primitive.h2, __spreadProps(__spreadValues({ id: context.titleId }, titleProps), { ref: forwardedRef }));
4845
+ }
4846
+ );
4847
+ DialogTitle.displayName = TITLE_NAME;
4848
+ var DESCRIPTION_NAME = "DialogDescription";
4849
+ var DialogDescription = React54.forwardRef(
4850
+ (props, forwardedRef) => {
4851
+ const _a = props, { __scopeDialog } = _a, descriptionProps = __objRest(_a, ["__scopeDialog"]);
4852
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
4853
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Primitive.p, __spreadProps(__spreadValues({ id: context.descriptionId }, descriptionProps), { ref: forwardedRef }));
4854
+ }
4855
+ );
4856
+ DialogDescription.displayName = DESCRIPTION_NAME;
4857
+ var CLOSE_NAME = "DialogClose";
4858
+ var DialogClose = React54.forwardRef(
4859
+ (props, forwardedRef) => {
4860
+ const _a = props, { __scopeDialog } = _a, closeProps = __objRest(_a, ["__scopeDialog"]);
4861
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
4862
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4863
+ Primitive.button,
4864
+ __spreadProps(__spreadValues({
4865
+ type: "button"
4866
+ }, closeProps), {
4867
+ ref: forwardedRef,
4868
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
4869
+ })
4870
+ );
4871
+ }
4872
+ );
4873
+ DialogClose.displayName = CLOSE_NAME;
4874
+ function getState(open) {
4875
+ return open ? "open" : "closed";
4876
+ }
4877
+ var TITLE_WARNING_NAME = "DialogTitleWarning";
4878
+ var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
4879
+ contentName: CONTENT_NAME,
4880
+ titleName: TITLE_NAME,
4881
+ docsSlug: "dialog"
4882
+ });
4883
+ var TitleWarning = ({ titleId }) => {
4884
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
4885
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
4886
+
4887
+ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
4888
+
4889
+ For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
4890
+ React54.useEffect(() => {
4891
+ if (titleId) {
4892
+ const hasTitle = document.getElementById(titleId);
4893
+ if (!hasTitle) console.error(MESSAGE);
4894
+ }
4895
+ }, [MESSAGE, titleId]);
4896
+ return null;
4897
+ };
4898
+ var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
4899
+ var DescriptionWarning = ({ contentRef, descriptionId }) => {
4900
+ const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
4901
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
4902
+ React54.useEffect(() => {
4903
+ var _a;
4904
+ const describedById = (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby");
4905
+ if (descriptionId && describedById) {
4906
+ const hasDescription = document.getElementById(descriptionId);
4907
+ if (!hasDescription) console.warn(MESSAGE);
4908
+ }
4909
+ }, [MESSAGE, contentRef, descriptionId]);
4910
+ return null;
4911
+ };
4912
+ var Root = Dialog;
4913
+ var Trigger = DialogTrigger;
4914
+ var Portal2 = DialogPortal;
4915
+ var Overlay = DialogOverlay;
4916
+ var Content = DialogContent;
4917
+ var Title = DialogTitle;
4918
+ var Description = DialogDescription;
4919
+ var Close = DialogClose;
4920
+
4921
+ // ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types_c6ff7006a888f63e36d2502e019661c3/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
4922
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4923
+ var ROOT_NAME = "AlertDialog";
4924
+ var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
4925
+ createDialogScope
4926
+ ]);
4927
+ var useDialogScope = createDialogScope();
4928
+ var AlertDialog = (props) => {
4929
+ const _a = props, { __scopeAlertDialog } = _a, alertDialogProps = __objRest(_a, ["__scopeAlertDialog"]);
4930
+ const dialogScope = useDialogScope(__scopeAlertDialog);
4931
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Root, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), alertDialogProps), { modal: true }));
4932
+ };
4933
+ AlertDialog.displayName = ROOT_NAME;
4934
+ var TRIGGER_NAME2 = "AlertDialogTrigger";
4935
+ var AlertDialogTrigger = React55.forwardRef(
4936
+ (props, forwardedRef) => {
4937
+ const _a = props, { __scopeAlertDialog } = _a, triggerProps = __objRest(_a, ["__scopeAlertDialog"]);
4938
+ const dialogScope = useDialogScope(__scopeAlertDialog);
4939
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Trigger, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), triggerProps), { ref: forwardedRef }));
4940
+ }
4941
+ );
4942
+ AlertDialogTrigger.displayName = TRIGGER_NAME2;
4943
+ var PORTAL_NAME3 = "AlertDialogPortal";
4944
+ var AlertDialogPortal = (props) => {
4945
+ const _a = props, { __scopeAlertDialog } = _a, portalProps = __objRest(_a, ["__scopeAlertDialog"]);
4946
+ const dialogScope = useDialogScope(__scopeAlertDialog);
4947
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Portal2, __spreadValues(__spreadValues({}, dialogScope), portalProps));
4948
+ };
4949
+ AlertDialogPortal.displayName = PORTAL_NAME3;
4950
+ var OVERLAY_NAME2 = "AlertDialogOverlay";
4951
+ var AlertDialogOverlay = React55.forwardRef(
4952
+ (props, forwardedRef) => {
4953
+ const _a = props, { __scopeAlertDialog } = _a, overlayProps = __objRest(_a, ["__scopeAlertDialog"]);
4954
+ const dialogScope = useDialogScope(__scopeAlertDialog);
4955
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Overlay, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), overlayProps), { ref: forwardedRef }));
4956
+ }
4957
+ );
4958
+ AlertDialogOverlay.displayName = OVERLAY_NAME2;
4959
+ var CONTENT_NAME2 = "AlertDialogContent";
4960
+ var [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME2);
4961
+ var Slottable = createSlottable("AlertDialogContent");
4962
+ var AlertDialogContent = React55.forwardRef(
4963
+ (props, forwardedRef) => {
4964
+ const _a = props, { __scopeAlertDialog, children } = _a, contentProps = __objRest(_a, ["__scopeAlertDialog", "children"]);
4965
+ const dialogScope = useDialogScope(__scopeAlertDialog);
4966
+ const contentRef = React55.useRef(null);
4967
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
4968
+ const cancelRef = React55.useRef(null);
4969
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4970
+ WarningProvider,
4971
+ {
4972
+ contentName: CONTENT_NAME2,
4973
+ titleName: TITLE_NAME2,
4974
+ docsSlug: "alert-dialog",
4975
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4976
+ Content,
4977
+ __spreadProps(__spreadValues(__spreadValues({
4978
+ role: "alertdialog"
4979
+ }, dialogScope), contentProps), {
4980
+ ref: composedRefs,
4981
+ onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {
4982
+ var _a2;
4983
+ event.preventDefault();
4984
+ (_a2 = cancelRef.current) == null ? void 0 : _a2.focus({ preventScroll: true });
4985
+ }),
4986
+ onPointerDownOutside: (event) => event.preventDefault(),
4987
+ onInteractOutside: (event) => event.preventDefault(),
4988
+ children: [
4989
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Slottable, { children }),
4990
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DescriptionWarning2, { contentRef })
4991
+ ]
4992
+ })
4993
+ ) })
4994
+ }
4995
+ );
4996
+ }
4997
+ );
4998
+ AlertDialogContent.displayName = CONTENT_NAME2;
4999
+ var TITLE_NAME2 = "AlertDialogTitle";
5000
+ var AlertDialogTitle = React55.forwardRef(
5001
+ (props, forwardedRef) => {
5002
+ const _a = props, { __scopeAlertDialog } = _a, titleProps = __objRest(_a, ["__scopeAlertDialog"]);
5003
+ const dialogScope = useDialogScope(__scopeAlertDialog);
5004
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Title, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), titleProps), { ref: forwardedRef }));
5005
+ }
5006
+ );
5007
+ AlertDialogTitle.displayName = TITLE_NAME2;
5008
+ var DESCRIPTION_NAME2 = "AlertDialogDescription";
5009
+ var AlertDialogDescription = React55.forwardRef((props, forwardedRef) => {
5010
+ const _a = props, { __scopeAlertDialog } = _a, descriptionProps = __objRest(_a, ["__scopeAlertDialog"]);
5011
+ const dialogScope = useDialogScope(__scopeAlertDialog);
5012
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Description, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), descriptionProps), { ref: forwardedRef }));
5013
+ });
5014
+ AlertDialogDescription.displayName = DESCRIPTION_NAME2;
5015
+ var ACTION_NAME = "AlertDialogAction";
5016
+ var AlertDialogAction = React55.forwardRef(
5017
+ (props, forwardedRef) => {
5018
+ const _a = props, { __scopeAlertDialog } = _a, actionProps = __objRest(_a, ["__scopeAlertDialog"]);
5019
+ const dialogScope = useDialogScope(__scopeAlertDialog);
5020
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Close, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), actionProps), { ref: forwardedRef }));
5021
+ }
5022
+ );
5023
+ AlertDialogAction.displayName = ACTION_NAME;
5024
+ var CANCEL_NAME = "AlertDialogCancel";
5025
+ var AlertDialogCancel = React55.forwardRef(
5026
+ (props, forwardedRef) => {
5027
+ const _a = props, { __scopeAlertDialog } = _a, cancelProps = __objRest(_a, ["__scopeAlertDialog"]);
5028
+ const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
5029
+ const dialogScope = useDialogScope(__scopeAlertDialog);
5030
+ const ref = useComposedRefs(forwardedRef, cancelRef);
5031
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Close, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), cancelProps), { ref }));
5032
+ }
5033
+ );
5034
+ AlertDialogCancel.displayName = CANCEL_NAME;
5035
+ var DescriptionWarning2 = ({ contentRef }) => {
5036
+ const MESSAGE = `\`${CONTENT_NAME2}\` requires a description for the component to be accessible for screen reader users.
5037
+
5038
+ You can add a description to the \`${CONTENT_NAME2}\` by passing a \`${DESCRIPTION_NAME2}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
5039
+
5040
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME2}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
5041
+
5042
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
5043
+ React55.useEffect(() => {
5044
+ var _a;
5045
+ const hasDescription = document.getElementById(
5046
+ (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby")
5047
+ );
5048
+ if (!hasDescription) console.warn(MESSAGE);
5049
+ }, [MESSAGE, contentRef]);
5050
+ return null;
5051
+ };
5052
+ var Portal22 = AlertDialogPortal;
5053
+ var Overlay2 = AlertDialogOverlay;
5054
+ var Content2 = AlertDialogContent;
5055
+ var Action = AlertDialogAction;
5056
+ var Cancel = AlertDialogCancel;
5057
+ var Title2 = AlertDialogTitle;
5058
+ var Description2 = AlertDialogDescription;
5059
+
5060
+ // ../base-ui/src/ui/button.tsx
5061
+ var React56 = __toESM(require("react"), 1);
5062
+ var import_class_variance_authority = require("class-variance-authority");
5063
+ var import_jsx_runtime43 = require("react/jsx-runtime");
5064
+ var buttonVariants = (0, import_class_variance_authority.cva)(
5065
+ "inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
5066
+ {
5067
+ variants: {
5068
+ variant: {
5069
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
5070
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
5071
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
5072
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
5073
+ ghost: "hover:bg-accent hover:text-accent-foreground",
5074
+ link: "text-primary underline-offset-4 hover:underline"
5075
+ },
5076
+ size: {
5077
+ default: "h-10 px-4 py-2",
5078
+ sm: "h-9 rounded-md px-3",
5079
+ lg: "h-11 rounded-md px-8",
5080
+ icon: "h-10 w-10"
5081
+ }
5082
+ },
5083
+ defaultVariants: {
5084
+ variant: "default",
5085
+ size: "default"
5086
+ }
5087
+ }
5088
+ );
5089
+ var Button = React56.forwardRef(
5090
+ (_a, ref) => {
5091
+ var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
5092
+ const Comp = asChild ? Slot : "button";
5093
+ if (asChild) {
5094
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5095
+ Comp,
5096
+ __spreadProps(__spreadValues({
5097
+ className: cn(buttonVariants({ variant, size, className })),
5098
+ ref,
5099
+ disabled: loading || props.disabled
5100
+ }, props), {
5101
+ children
5102
+ })
5103
+ );
5104
+ }
5105
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
5106
+ Comp,
5107
+ __spreadProps(__spreadValues({
5108
+ className: cn(buttonVariants({ variant, size, className })),
5109
+ ref,
5110
+ disabled: loading || props.disabled
5111
+ }, props), {
5112
+ children: [
5113
+ children,
5114
+ loading && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
5115
+ ]
5116
+ })
5117
+ );
5118
+ }
5119
+ );
5120
+ Button.displayName = "Button";
5121
+
5122
+ // ../base-ui/src/ui/alert-dialog.tsx
5123
+ var import_jsx_runtime44 = require("react/jsx-runtime");
5124
+ var AlertDialogPortal2 = Portal22;
5125
+ var AlertDialogOverlay2 = React57.forwardRef((_a, ref) => {
5126
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5127
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5128
+ Overlay2,
5129
+ __spreadProps(__spreadValues({
5130
+ className: cn(
5131
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
5132
+ className
5133
+ )
5134
+ }, props), {
5135
+ ref
5136
+ })
5137
+ );
5138
+ });
5139
+ AlertDialogOverlay2.displayName = Overlay2.displayName;
5140
+ var AlertDialogContent2 = React57.forwardRef((_a, ref) => {
5141
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5142
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(AlertDialogPortal2, { children: [
5143
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AlertDialogOverlay2, {}),
5144
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5145
+ Content2,
5146
+ __spreadValues({
5147
+ ref,
5148
+ className: cn(
5149
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
5150
+ className
5151
+ )
5152
+ }, props)
5153
+ )
5154
+ ] });
5155
+ });
5156
+ AlertDialogContent2.displayName = Content2.displayName;
5157
+ var AlertDialogHeader = (_a) => {
5158
+ var _b = _a, {
5159
+ className
5160
+ } = _b, props = __objRest(_b, [
5161
+ "className"
5162
+ ]);
5163
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5164
+ "div",
5165
+ __spreadValues({
5166
+ className: cn(
5167
+ "flex flex-col space-y-2 text-center sm:text-left",
5168
+ className
5169
+ )
5170
+ }, props)
5171
+ );
5172
+ };
5173
+ AlertDialogHeader.displayName = "AlertDialogHeader";
5174
+ var AlertDialogFooter = (_a) => {
5175
+ var _b = _a, {
5176
+ className
5177
+ } = _b, props = __objRest(_b, [
5178
+ "className"
5179
+ ]);
5180
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5181
+ "div",
5182
+ __spreadValues({
5183
+ className: cn(
5184
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
5185
+ className
5186
+ )
5187
+ }, props)
5188
+ );
5189
+ };
5190
+ AlertDialogFooter.displayName = "AlertDialogFooter";
5191
+ var AlertDialogTitle2 = React57.forwardRef((_a, ref) => {
5192
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5193
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5194
+ Title2,
5195
+ __spreadValues({
5196
+ ref,
5197
+ className: cn("text-lg font-semibold", className)
5198
+ }, props)
5199
+ );
5200
+ });
5201
+ AlertDialogTitle2.displayName = Title2.displayName;
5202
+ var AlertDialogDescription2 = React57.forwardRef((_a, ref) => {
5203
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5204
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5205
+ Description2,
5206
+ __spreadValues({
5207
+ ref,
5208
+ className: cn("text-sm text-muted-foreground", className)
5209
+ }, props)
5210
+ );
5211
+ });
5212
+ AlertDialogDescription2.displayName = Description2.displayName;
5213
+ var AlertDialogAction2 = React57.forwardRef((_a, ref) => {
5214
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5215
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5216
+ Action,
5217
+ __spreadValues({
5218
+ ref,
5219
+ className: cn(buttonVariants(), className)
5220
+ }, props)
5221
+ );
5222
+ });
5223
+ AlertDialogAction2.displayName = Action.displayName;
5224
+ var AlertDialogCancel2 = React57.forwardRef((_a, ref) => {
5225
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5227
+ Cancel,
5228
+ __spreadValues({
5229
+ ref,
5230
+ className: cn(
5231
+ buttonVariants({ variant: "outline" }),
5232
+ "mt-2 sm:mt-0",
5233
+ className
5234
+ )
5235
+ }, props)
5236
+ );
5237
+ });
5238
+ AlertDialogCancel2.displayName = Cancel.displayName;
5239
+
5240
+ // src/main/ads-alert-dialog.tsx
5241
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5242
+
5243
+ // src/main/x-button.tsx
5244
+ var import_react39 = require("react");
5245
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5246
+
5247
+ // src/main/ai-prompt-textarea.tsx
5248
+ var import_react40 = require("react");
5249
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5250
+
5251
+ // src/main/rich-text-expert.tsx
5252
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5253
+ var defaultTagRenderers = {
5254
+ // text Stong
5255
+ strong: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("strong", { children: chunks }),
5256
+ // text Emphasis
5257
+ em: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("em", { children: chunks }),
5258
+ // text Underline
5259
+ u: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("u", { children: chunks }),
5260
+ // text Mark
5261
+ mark: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("mark", { className: "bg-purple-300 dark:bg-purple-500 text-neutral-800 dark:text-neutral-300 px-1 rounded", children: chunks }),
5262
+ // text Delete
5263
+ del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("del", { children: chunks }),
5264
+ // text Subscript
5265
+ sub: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("sub", { children: chunks }),
5266
+ // text Superscript
5267
+ sup: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("sup", { children: chunks })
5268
+ };
5269
+ function createRichTextRenderer(customRenderers) {
5270
+ const renderers = __spreadValues(__spreadValues({}, defaultTagRenderers), customRenderers);
5271
+ return function richText2(t, key) {
5272
+ return t.rich(key, renderers);
5273
+ };
5274
+ }
5275
+ var richText = createRichTextRenderer();
5276
+
5277
+ // src/main/faq-interactive.tsx
5278
+ var import_react41 = require("react");
5279
+ function FAQInteractive({ data }) {
5280
+ const [openStates, setOpenStates] = (0, import_react41.useState)({});
5281
+ (0, import_react41.useEffect)(() => {
5282
+ data.items.forEach((item) => {
5283
+ const toggleButton = document.querySelector(`[data-faq-toggle="${item.id}"]`);
5284
+ const contentDiv = document.querySelector(`[data-faq-content="${item.id}"]`);
5285
+ const iconSvg = document.querySelector(`[data-faq-icon="${item.id}"]`);
5286
+ if (toggleButton && contentDiv && iconSvg) {
5287
+ const handleClick = () => {
5288
+ const isOpen = openStates[item.id] || false;
5289
+ const newOpenState = !isOpen;
5290
+ setOpenStates((prev) => __spreadProps(__spreadValues({}, prev), {
5291
+ [item.id]: newOpenState
5292
+ }));
5293
+ if (newOpenState) {
5294
+ contentDiv.classList.remove("hidden");
5295
+ toggleButton.setAttribute("aria-expanded", "true");
5296
+ iconSvg.style.transform = "rotate(90deg)";
5297
+ } else {
5298
+ contentDiv.classList.add("hidden");
5299
+ toggleButton.setAttribute("aria-expanded", "false");
5300
+ iconSvg.style.transform = "rotate(0deg)";
5301
+ }
5302
+ };
5303
+ toggleButton.addEventListener("click", handleClick);
5304
+ }
5305
+ });
5306
+ return () => {
5307
+ data.items.forEach((item) => {
5308
+ var _a;
5309
+ const toggleButton = document.querySelector(`[data-faq-toggle="${item.id}"]`);
5310
+ if (toggleButton) {
5311
+ const newButton = toggleButton.cloneNode(true);
5312
+ (_a = toggleButton.parentNode) == null ? void 0 : _a.replaceChild(newButton, toggleButton);
5313
+ }
5314
+ });
5315
+ };
5316
+ }, [data, openStates]);
5317
+ return null;
5318
+ }
5319
+
5320
+ // src/main/price-plan-interactive.tsx
5321
+ var import_react42 = require("react");
5322
+ var import_navigation2 = require("next/navigation");
5323
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5324
+ function PricePlanInteractive({ data }) {
5325
+ const [billingKey, setBillingKey] = (0, import_react42.useState)(data.billingSwitch.defaultKey);
5326
+ const [tooltip, setTooltip] = (0, import_react42.useState)({ show: false, content: "", x: 0, y: 0 });
5327
+ const router = (0, import_navigation2.useRouter)();
5328
+ (0, import_react42.useEffect)(() => {
5329
+ const monthlyButton = document.querySelector('[data-billing-button="monthly"]');
5330
+ const yearlyButton = document.querySelector('[data-billing-button="yearly"]');
5331
+ const handleBillingSwitch = (newBillingKey) => {
5332
+ setBillingKey(newBillingKey);
5333
+ updatePrices(newBillingKey);
5334
+ updateDiscountInfo(newBillingKey);
5335
+ updateButtonStyles(newBillingKey);
5336
+ };
5337
+ if (monthlyButton) {
5338
+ monthlyButton.addEventListener("click", () => handleBillingSwitch("monthly"));
5339
+ }
5340
+ if (yearlyButton) {
5341
+ yearlyButton.addEventListener("click", () => handleBillingSwitch("yearly"));
5342
+ }
5343
+ data.plans.forEach((plan) => {
5344
+ var _a;
5345
+ (_a = plan.features) == null ? void 0 : _a.forEach((feature, i) => {
5346
+ if (feature == null ? void 0 : feature.tooltip) {
5347
+ const tooltipTrigger = document.querySelector(`[data-tooltip-trigger="${plan.key}-${i}"]`);
5348
+ if (tooltipTrigger) {
5349
+ const handleMouseEnter = (e) => {
5350
+ setTooltip({
5351
+ show: true,
5352
+ content: feature.tooltip,
5353
+ x: e.clientX,
5354
+ y: e.clientY
5355
+ });
5356
+ };
5357
+ const handleMouseMove = (e) => {
5358
+ setTooltip((prev) => __spreadProps(__spreadValues({}, prev), { x: e.clientX, y: e.clientY }));
5359
+ };
5360
+ const handleMouseLeave = () => {
5361
+ setTooltip((prev) => __spreadProps(__spreadValues({}, prev), { show: false }));
5362
+ };
5363
+ tooltipTrigger.addEventListener("mouseenter", handleMouseEnter);
5364
+ tooltipTrigger.addEventListener("mousemove", handleMouseMove);
5365
+ tooltipTrigger.addEventListener("mouseleave", handleMouseLeave);
5366
+ }
5367
+ }
5368
+ });
5369
+ });
5370
+ data.plans.forEach((plan) => {
5371
+ var _a;
5372
+ const planButton = document.querySelector(`[data-plan-button="${plan.key}"]`);
5373
+ if (planButton && !((_a = plan.button) == null ? void 0 : _a.disabled)) {
5374
+ planButton.addEventListener("click", () => {
5375
+ router.push("/");
5376
+ });
5377
+ }
5378
+ });
5379
+ return () => {
5380
+ var _a, _b;
5381
+ if (monthlyButton) {
5382
+ const newButton = monthlyButton.cloneNode(true);
5383
+ (_a = monthlyButton.parentNode) == null ? void 0 : _a.replaceChild(newButton, monthlyButton);
5384
+ }
5385
+ if (yearlyButton) {
5386
+ const newButton = yearlyButton.cloneNode(true);
5387
+ (_b = yearlyButton.parentNode) == null ? void 0 : _b.replaceChild(newButton, yearlyButton);
5388
+ }
5389
+ data.plans.forEach((plan) => {
5390
+ var _a2;
5391
+ (_a2 = plan.features) == null ? void 0 : _a2.forEach((_feature, i) => {
5392
+ var _a3;
5393
+ const tooltipTrigger = document.querySelector(`[data-tooltip-trigger="${plan.key}-${i}"]`);
5394
+ if (tooltipTrigger) {
5395
+ const newTrigger = tooltipTrigger.cloneNode(true);
5396
+ (_a3 = tooltipTrigger.parentNode) == null ? void 0 : _a3.replaceChild(newTrigger, tooltipTrigger);
5397
+ }
5398
+ });
5399
+ });
5400
+ };
5401
+ }, [data, router]);
5402
+ const updatePrices = (newBillingKey) => {
5403
+ const currentBilling = data.pricePlanConfig.billingOptions.find((opt) => opt.key === newBillingKey) || data.pricePlanConfig.billingOptions[0];
5404
+ const currentBillingDisplay = data.billingSwitch.options.find((opt) => opt.key === newBillingKey) || data.billingSwitch.options[0];
5405
+ data.plans.forEach((plan) => {
5406
+ const priceContainer = document.querySelector(`[data-price-container="${plan.key}"]`);
5407
+ const priceValue = data.pricePlanConfig.prices[plan.key];
5408
+ if (priceContainer) {
5409
+ const priceValueElement = document.querySelector(`[data-price-value="${plan.key}"]`);
5410
+ const priceUnitElement = document.querySelector(`[data-price-unit="${plan.key}"]`);
5411
+ const priceOriginalElement = document.querySelector(`[data-price-original="${plan.key}"]`);
5412
+ const priceDiscountElement = document.querySelector(`[data-price-discount="${plan.key}"]`);
5413
+ const priceSubtitleElement = document.querySelector(`[data-price-subtitle="${plan.key}"]`);
5414
+ if (typeof priceValue !== "number" || isNaN(priceValue)) {
5415
+ if (priceValueElement) priceValueElement.textContent = String(priceValue);
5416
+ if (priceSubtitleElement) priceSubtitleElement.textContent = plan.showBillingSubTitle === false ? "" : (currentBillingDisplay == null ? void 0 : currentBillingDisplay.subTitle) || "";
5417
+ } else {
5418
+ const originValue = Number(priceValue);
5419
+ const discount = currentBilling.discount;
5420
+ const hasDiscount = discount !== 0;
5421
+ const saleValue = originValue * (1 - discount);
5422
+ const formatPrice = (v) => Number(v.toFixed(2)).toString();
5423
+ const showNaN = saleValue < 0;
5424
+ if (priceValueElement) {
5425
+ priceValueElement.textContent = `${data.currency}${showNaN ? "NaN" : hasDiscount ? formatPrice(saleValue) : formatPrice(originValue)}`;
5426
+ }
5427
+ if (priceUnitElement) {
5428
+ priceUnitElement.textContent = currentBillingDisplay.unit || "";
5429
+ }
5430
+ if (hasDiscount) {
5431
+ if (priceOriginalElement) {
5432
+ priceOriginalElement.textContent = `${data.currency}${showNaN ? "NaN" : formatPrice(originValue)}`;
5433
+ priceOriginalElement.style.display = "inline";
5434
+ }
5435
+ if (priceDiscountElement && currentBillingDisplay.discountText) {
5436
+ const discountText = currentBillingDisplay.discountText.replace("{percent}", String(Math.round(Math.abs(discount) * 100)));
5437
+ priceDiscountElement.textContent = discountText;
5438
+ priceDiscountElement.style.display = "inline";
5439
+ }
5440
+ } else {
5441
+ if (priceOriginalElement) priceOriginalElement.style.display = "none";
5442
+ if (priceDiscountElement) priceDiscountElement.style.display = "none";
5443
+ }
5444
+ if (priceSubtitleElement) {
5445
+ priceSubtitleElement.textContent = plan.showBillingSubTitle === false ? "" : (currentBillingDisplay == null ? void 0 : currentBillingDisplay.subTitle) || "";
5446
+ }
5447
+ }
5448
+ }
5449
+ });
5450
+ };
5451
+ const updateDiscountInfo = (newBillingKey) => {
5452
+ const discountInfoElement = document.querySelector("[data-discount-info]");
5453
+ if (discountInfoElement) {
5454
+ const opt = data.billingSwitch.options.find((opt2) => opt2.key === newBillingKey);
5455
+ const bOpt = data.pricePlanConfig.billingOptions.find((opt2) => opt2.key === newBillingKey);
5456
+ if (opt && bOpt && opt.discountText && bOpt.discount !== 0) {
5457
+ const discountText = opt.discountText.replace("{percent}", String(Math.round(Math.abs(bOpt.discount) * 100)));
5458
+ discountInfoElement.innerHTML = `
5459
+ <span class="px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap">
5460
+ ${discountText}
5461
+ </span>
5462
+ `;
5463
+ } else {
5464
+ discountInfoElement.innerHTML = "";
5465
+ }
5466
+ }
5467
+ };
5468
+ const updateButtonStyles = (newBillingKey) => {
5469
+ const monthlyButton = document.querySelector('[data-billing-button="monthly"]');
5470
+ const yearlyButton = document.querySelector('[data-billing-button="yearly"]');
5471
+ if (monthlyButton) {
5472
+ if (newBillingKey === "monthly") {
5473
+ monthlyButton.className = cn(
5474
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
5475
+ "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600 rounded-full shadow-sm"
5476
+ );
5477
+ } else {
5478
+ monthlyButton.className = cn(
5479
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
5480
+ "text-gray-800 dark:text-gray-200 hover:text-gray-900 dark:hover:text-gray-100 rounded-full"
5481
+ );
5482
+ }
5483
+ }
5484
+ if (yearlyButton) {
5485
+ if (newBillingKey === "yearly") {
5486
+ yearlyButton.className = cn(
5487
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
5488
+ "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600 rounded-full shadow-sm"
5489
+ );
5490
+ } else {
5491
+ yearlyButton.className = cn(
5492
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
5493
+ "text-gray-800 dark:text-gray-200 hover:text-gray-900 dark:hover:text-gray-100 rounded-full"
5494
+ );
5495
+ }
5496
+ }
5497
+ };
5498
+ const Tooltip = ({ show, content, x, y }) => {
5499
+ if (!show) return null;
5500
+ const style = {
5501
+ position: "fixed",
5502
+ left: Math.max(8, x),
5503
+ top: Math.max(8, y),
5504
+ zIndex: 9999,
5505
+ maxWidth: 200,
5506
+ transform: "translateY(-50%)",
5507
+ pointerEvents: "none",
5508
+ whiteSpace: "pre-line"
5509
+ };
5510
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5511
+ "div",
5512
+ {
5513
+ style,
5514
+ className: "bg-gray-700 dark:bg-gray-200 text-gray-100 dark:text-gray-800 text-xs leading-relaxed px-3 py-2 rounded-lg shadow-lg border border-gray-300 dark:border-gray-600 backdrop-blur-sm",
5515
+ children: content
5516
+ }
5517
+ );
5518
+ };
5519
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Tooltip, __spreadValues({}, tooltip));
5520
+ }
5521
+
5522
+ // src/main/gallery-interactive.tsx
5523
+ var import_react43 = require("react");
5524
+ function GalleryInteractive({ data }) {
5525
+ const [imageErrors, setImageErrors] = (0, import_react43.useState)(/* @__PURE__ */ new Set());
5526
+ const [downloadingItems, setDownloadingItems] = (0, import_react43.useState)(/* @__PURE__ */ new Set());
5527
+ const cdnProxyUrl = process.env.NEXT_PUBLIC_STYLE_CDN_PROXY_URL;
5528
+ (0, import_react43.useEffect)(() => {
5529
+ data.items.forEach((item, index) => {
5530
+ const downloadButton = document.querySelector(`[data-gallery-download="${item.id}"]`);
5531
+ const imageElement = document.querySelector(`[data-gallery-image="${item.id}"]`);
5532
+ if (downloadButton) {
5533
+ const handleDownload = () => __async(null, null, function* () {
5534
+ var _a;
5535
+ if (downloadingItems.has(item.id)) {
5536
+ return;
5537
+ }
5538
+ setDownloadingItems((prev) => new Set(prev).add(item.id));
5539
+ try {
5540
+ if (!cdnProxyUrl) {
5541
+ throw new Error("CDN proxy URL not configured");
5542
+ }
5543
+ const originalUrl = new URL(item.url);
5544
+ const filename = originalUrl.pathname.substring(1);
5545
+ const proxyUrl = `${cdnProxyUrl}/${encodeURIComponent(filename)}`;
5546
+ const urlExtension = (_a = item.url.split(".").pop()) == null ? void 0 : _a.toLowerCase();
5547
+ let extension = ".webp";
5548
+ if (urlExtension && ["jpg", "jpeg", "png", "gif", "webp", "svg"].includes(urlExtension)) {
5549
+ extension = `.${urlExtension}`;
5550
+ }
5551
+ const response = yield fetch(proxyUrl);
5552
+ if (!response.ok) {
5553
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
5554
+ }
5555
+ const blob = yield response.blob();
5556
+ const blobUrl = URL.createObjectURL(blob);
5557
+ const a = document.createElement("a");
5558
+ a.href = blobUrl;
5559
+ a.download = `${data.downloadPrefix}-${index + 1}${extension}`;
5560
+ a.style.display = "none";
5561
+ document.body.appendChild(a);
5562
+ a.click();
5563
+ setTimeout(() => {
5564
+ document.body.removeChild(a);
5565
+ URL.revokeObjectURL(blobUrl);
5566
+ }, 100);
5567
+ } catch (error) {
5568
+ console.error("Download failed:", error);
5569
+ } finally {
5570
+ setDownloadingItems((prev) => {
5571
+ const newSet = new Set(prev);
5572
+ newSet.delete(item.id);
5573
+ return newSet;
5574
+ });
5575
+ }
5576
+ });
5577
+ downloadButton.addEventListener("click", handleDownload);
5578
+ }
5579
+ if (imageElement) {
5580
+ const handleImageError = () => {
5581
+ setImageErrors((prev) => new Set(prev).add(item.id));
5582
+ imageElement.src = data.defaultImgUrl;
5583
+ };
5584
+ imageElement.addEventListener("error", handleImageError);
5585
+ }
5586
+ });
5587
+ const updateDownloadStates = () => {
5588
+ data.items.forEach((item) => {
5589
+ const downloadButton = document.querySelector(`[data-gallery-download="${item.id}"]`);
5590
+ if (downloadButton) {
5591
+ const isDownloading = downloadingItems.has(item.id);
5592
+ if (isDownloading) {
5593
+ downloadButton.disabled = true;
5594
+ downloadButton.classList.add("bg-black/30", "text-white/50");
5595
+ downloadButton.classList.remove("bg-black/50", "hover:bg-black/70", "text-white/80", "hover:text-white");
5596
+ downloadButton.innerHTML = `
5597
+ <svg class="h-5 w-5 text-white animate-spin" fill="none" viewBox="0 0 24 24">
5598
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
5599
+ <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
5600
+ </svg>
5601
+ `;
5602
+ } else {
5603
+ downloadButton.disabled = false;
5604
+ downloadButton.classList.remove("bg-black/30", "text-white/50");
5605
+ downloadButton.classList.add("bg-black/50", "hover:bg-black/70", "text-white/80", "hover:text-white");
5606
+ downloadButton.innerHTML = `
5607
+ <svg class="h-5 w-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
5608
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
5609
+ </svg>
5610
+ `;
5611
+ }
5612
+ }
5613
+ });
5614
+ };
5615
+ updateDownloadStates();
5616
+ return () => {
5617
+ data.items.forEach((item) => {
5618
+ var _a, _b;
5619
+ const downloadButton = document.querySelector(`[data-gallery-download="${item.id}"]`);
5620
+ const imageElement = document.querySelector(`[data-gallery-image="${item.id}"]`);
5621
+ if (downloadButton) {
5622
+ const newButton = downloadButton.cloneNode(true);
5623
+ (_a = downloadButton.parentNode) == null ? void 0 : _a.replaceChild(newButton, downloadButton);
5624
+ }
5625
+ if (imageElement) {
5626
+ const newImage = imageElement.cloneNode(true);
5627
+ (_b = imageElement.parentNode) == null ? void 0 : _b.replaceChild(newImage, imageElement);
5628
+ }
5629
+ });
5630
+ };
5631
+ }, [data, downloadingItems, imageErrors, cdnProxyUrl]);
5632
+ return null;
5633
+ }
5634
+
5635
+ // src/main/gallery.tsx
5636
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5637
+ function Gallery(_0) {
5638
+ return __async(this, arguments, function* ({ locale, sectionClassName, button }) {
5639
+ const t = yield (0, import_server2.getTranslations)({ locale, namespace: "gallery" });
5640
+ const galleryItems = t.raw("prompts");
5641
+ const data = {
5642
+ titleL: t("titleL"),
5643
+ eyesOn: t("eyesOn"),
5644
+ titleR: t("titleR"),
5645
+ description: t("description"),
5646
+ items: galleryItems.map((item, index) => ({
5647
+ id: `gallery-item-${index}`,
5648
+ url: item.url,
5649
+ altMsg: item.altMsg
5650
+ })),
5651
+ defaultImgUrl: t.raw("defaultImgUrl"),
5652
+ downloadPrefix: t("downloadPrefix")
5653
+ };
5654
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("section", { id: "gallery", className: cn("container mx-auto px-4 py-20 scroll-mt-20", sectionClassName), children: [
5655
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-6", children: [
5656
+ data.titleL,
5657
+ " ",
5658
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-purple-500", children: data.eyesOn }),
5659
+ " ",
5660
+ data.titleR
5661
+ ] }),
5662
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-center max-w-2xl mx-auto mb-16", children: data.description }),
5663
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6", children: data.items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5664
+ "div",
5665
+ {
5666
+ className: "group relative overflow-hidden rounded-xl",
5667
+ "data-gallery-item": item.id,
5668
+ "data-gallery-index": index,
5669
+ children: [
5670
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5671
+ import_image2.default,
5672
+ {
5673
+ src: item.url,
5674
+ alt: item.altMsg,
5675
+ width: 600,
5676
+ height: 600,
5677
+ className: "w-full h-80 object-cover transition duration-300 group-hover:scale-105",
5678
+ "data-gallery-image": item.id
5679
+ }
5680
+ ),
5681
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "absolute inset-0 flex items-end justify-end p-4 opacity-0 group-hover:opacity-100 transition duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5682
+ "button",
5683
+ {
5684
+ className: "p-2 rounded-full bg-black/50 hover:bg-black/70 text-white/80 hover:text-white transition-all duration-300",
5685
+ "data-gallery-download": item.id,
5686
+ "aria-label": `Download ${item.altMsg}`,
5687
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { className: "h-5 w-5 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) })
5688
+ }
5689
+ ) })
5690
+ ]
5691
+ },
5692
+ item.id
5693
+ )) }),
5694
+ button && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-center mt-12", children: button }),
5695
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(GalleryInteractive, { data })
5696
+ ] });
5697
+ });
5698
+ }
5699
+
5700
+ // src/main/usage.tsx
5701
+ var import_server3 = require("next-intl/server");
5702
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5703
+ function Usage(_0) {
5704
+ return __async(this, arguments, function* ({
5705
+ locale,
5706
+ sectionClassName
5707
+ }) {
5708
+ const t = yield (0, import_server3.getTranslations)({ locale, namespace: "usage" });
5709
+ const steps = t.raw("steps");
5710
+ const data = {
5711
+ title: t("title"),
5712
+ eyesOn: t("eyesOn"),
5713
+ description: richText(t, "description"),
5714
+ steps: steps.map((step, index) => ({
5715
+ id: `usage-step-${index}`,
5716
+ title: step.title,
5717
+ description: richText(t, `steps.${index}.description`),
5718
+ iconKey: step.iconKey,
5719
+ stepNumber: index + 1
5720
+ }))
5721
+ };
5722
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("section", { id: "usage", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
5723
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
5724
+ data.title,
5725
+ " ",
5726
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
5727
+ ] }),
5728
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto whitespace-nowrap", children: data.description }),
5729
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.steps.map((step) => {
5730
+ const Icon2 = getGlobalIcon(step.iconKey);
5731
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { "data-usage-step": step.id, className: "flex items-start", children: [
5732
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex-shrink-0 mr-4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { className: "w-8 h-8 text-purple-500" }) }),
5733
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
5734
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100 flex items-center", children: `${step.stepNumber}. ${step.title}` }),
5735
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: step.description })
5736
+ ] })
5737
+ ] }, step.id);
5738
+ }) }) })
5739
+ ] });
5740
+ });
5741
+ }
5742
+
5743
+ // src/main/features.tsx
5744
+ var import_server4 = require("next-intl/server");
5745
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5746
+ function Features(_0) {
5747
+ return __async(this, arguments, function* ({
5748
+ locale,
5749
+ sectionClassName
5750
+ }) {
5751
+ const t = yield (0, import_server4.getTranslations)({ locale, namespace: "features" });
5752
+ const featureItems = t.raw("items");
5753
+ const data = {
5754
+ title: t("title"),
5755
+ eyesOn: t("eyesOn"),
5756
+ description: richText(t, "description"),
5757
+ items: featureItems.map((feature, index) => ({
5758
+ id: `feature-item-${index}`,
5759
+ title: feature.title,
5760
+ description: richText(t, `items.${index}.description`),
5761
+ iconKey: feature.iconKey
5762
+ }))
5763
+ };
5764
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("section", { id: "features", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-18", sectionClassName), children: [
5765
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
5766
+ data.title,
5767
+ " ",
5768
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
5769
+ ] }),
5770
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto whitespace-nowrap", children: data.description }),
5771
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.items.map((feature) => {
5772
+ const Icon2 = getGlobalIcon(feature.iconKey);
5773
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5774
+ "div",
5775
+ {
2918
5776
  "data-feature-id": feature.id,
2919
5777
  className: "bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-purple-300 dark:hover:border-purple-500/50 transition shadow-sm dark:shadow-none",
2920
5778
  children: [
2921
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-4xl mb-4 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon2, { className: "w-8 h-8" }) }),
2922
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }),
2923
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })
5779
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "text-4xl mb-4 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { className: "w-8 h-8" }) }),
5780
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }),
5781
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })
2924
5782
  ]
2925
5783
  },
2926
5784
  feature.id
@@ -2932,8 +5790,7 @@ function Features(_0) {
2932
5790
 
2933
5791
  // src/main/tips.tsx
2934
5792
  var import_server5 = require("next-intl/server");
2935
- var import_rich_text_expert3 = require("@third-ui/main/rich-text-expert");
2936
- var import_jsx_runtime36 = require("react/jsx-runtime");
5793
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2937
5794
  function Tips(_0) {
2938
5795
  return __async(this, arguments, function* ({
2939
5796
  locale,
@@ -2944,7 +5801,7 @@ function Tips(_0) {
2944
5801
  const processedSections = sections.map((section, index) => ({
2945
5802
  id: `tip-section-${index}`,
2946
5803
  title: section.title,
2947
- description: (0, import_rich_text_expert3.richText)(t, `sections.${index}.description`)
5804
+ description: richText(t, `sections.${index}.description`)
2948
5805
  }));
2949
5806
  const midPoint = Math.ceil(processedSections.length / 2);
2950
5807
  const leftColumn = processedSections.slice(0, midPoint);
@@ -2955,15 +5812,15 @@ function Tips(_0) {
2955
5812
  leftColumn,
2956
5813
  rightColumn
2957
5814
  };
2958
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("section", { id: "tips", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
2959
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-16", children: [
5815
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("section", { id: "tips", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
5816
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-16", children: [
2960
5817
  data.title,
2961
5818
  " ",
2962
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
5819
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
2963
5820
  ] }),
2964
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-12 bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: [data.leftColumn, data.rightColumn].map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "space-y-8", children: column.map((tip) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { "data-tip-id": tip.id, className: "space-y-4", children: [
2965
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "text-2xl font-semibold", children: tip.title }),
2966
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "", children: tip.description })
5821
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-12 bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: [data.leftColumn, data.rightColumn].map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "space-y-8", children: column.map((tip) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { "data-tip-id": tip.id, className: "space-y-4", children: [
5822
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h3", { className: "text-2xl font-semibold", children: tip.title }),
5823
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "", children: tip.description })
2967
5824
  ] }, tip.id)) }, colIndex)) })
2968
5825
  ] });
2969
5826
  });
@@ -2971,9 +5828,7 @@ function Tips(_0) {
2971
5828
 
2972
5829
  // src/main/faq.tsx
2973
5830
  var import_server6 = require("next-intl/server");
2974
- var import_rich_text_expert4 = require("@third-ui/main/rich-text-expert");
2975
- var import_main2 = require("@third-ui/main");
2976
- var import_jsx_runtime37 = require("react/jsx-runtime");
5831
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2977
5832
  function FAQ(_0) {
2978
5833
  return __async(this, arguments, function* ({
2979
5834
  locale,
@@ -2983,31 +5838,31 @@ function FAQ(_0) {
2983
5838
  const rawItems = t.raw("items");
2984
5839
  const data = {
2985
5840
  title: t("title"),
2986
- description: (0, import_rich_text_expert4.richText)(t, "description"),
5841
+ description: richText(t, "description"),
2987
5842
  items: rawItems.map((item, index) => ({
2988
5843
  id: `faq-item-${index}`,
2989
5844
  question: item.question,
2990
- answer: (0, import_rich_text_expert4.richText)(t, `items.${index}.answer`)
5845
+ answer: richText(t, `items.${index}.answer`)
2991
5846
  }))
2992
5847
  };
2993
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { id: "faq", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
2994
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: data.title }),
2995
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto", children: data.description }),
2996
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "space-y-6", children: data.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
5848
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("section", { id: "faq", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
5849
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: data.title }),
5850
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto", children: data.description }),
5851
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "space-y-6", children: data.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2997
5852
  "div",
2998
5853
  {
2999
5854
  "data-faq-id": item.id,
3000
5855
  className: "bg-white dark:bg-gray-800/60 p-6 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-purple-300 dark:hover:border-purple-500/50 transition shadow-sm dark:shadow-none",
3001
5856
  children: [
3002
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
5857
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
3003
5858
  "button",
3004
5859
  {
3005
5860
  className: "w-full flex items-center justify-between text-left focus:outline-none",
3006
5861
  "data-faq-toggle": item.id,
3007
5862
  "aria-expanded": "false",
3008
5863
  children: [
3009
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-lg font-semibold text-gray-900 dark:text-gray-100", children: item.question }),
3010
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5864
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-lg font-semibold text-gray-900 dark:text-gray-100", children: item.question }),
5865
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3011
5866
  "svg",
3012
5867
  {
3013
5868
  className: "w-6 h-6 text-gray-400 ml-2 transition-transform duration-200",
@@ -3015,13 +5870,13 @@ function FAQ(_0) {
3015
5870
  fill: "none",
3016
5871
  stroke: "currentColor",
3017
5872
  viewBox: "0 0 24 24",
3018
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
5873
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
3019
5874
  }
3020
5875
  )
3021
5876
  ]
3022
5877
  }
3023
5878
  ),
3024
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5879
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3025
5880
  "div",
3026
5881
  {
3027
5882
  className: "mt-4 text-gray-700 dark:text-gray-300 text-base hidden",
@@ -3033,15 +5888,14 @@ function FAQ(_0) {
3033
5888
  },
3034
5889
  item.id
3035
5890
  )) }),
3036
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_main2.FAQInteractive, { data })
5891
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FAQInteractive, { data })
3037
5892
  ] });
3038
5893
  });
3039
5894
  }
3040
5895
 
3041
5896
  // src/main/seo-content.tsx
3042
5897
  var import_server7 = require("next-intl/server");
3043
- var import_rich_text_expert5 = require("@third-ui/main/rich-text-expert");
3044
- var import_jsx_runtime38 = require("react/jsx-runtime");
5898
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3045
5899
  function SeoContent(_0) {
3046
5900
  return __async(this, arguments, function* ({
3047
5901
  locale,
@@ -3053,30 +5907,30 @@ function SeoContent(_0) {
3053
5907
  title: t("title"),
3054
5908
  eyesOn: t("eyesOn"),
3055
5909
  description: t("description"),
3056
- intro: (0, import_rich_text_expert5.richText)(t, "intro"),
5910
+ intro: richText(t, "intro"),
3057
5911
  sections: rawSections.map((section, index) => ({
3058
5912
  id: `seo-section-${index}`,
3059
5913
  title: section.title,
3060
- content: (0, import_rich_text_expert5.richText)(t, `sections.${index}.content`)
5914
+ content: richText(t, `sections.${index}.content`)
3061
5915
  })),
3062
- conclusion: (0, import_rich_text_expert5.richText)(t, "conclusion")
5916
+ conclusion: richText(t, "conclusion")
3063
5917
  };
3064
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("section", { id: "seo", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
3065
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-8", children: [
5918
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { id: "seo", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
5919
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-8", children: [
3066
5920
  data.title,
3067
5921
  " ",
3068
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
5922
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-purple-500", children: data.eyesOn })
3069
5923
  ] }),
3070
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-lg", children: data.description }),
3071
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: [
3072
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-10", children: [
3073
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-600 dark:text-gray-400 text-lg", children: data.intro }),
3074
- data.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { "data-seo-section": section.id, children: [
3075
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100 flex items-center", children: section.title }),
3076
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: section.content })
5924
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h3", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-lg", children: data.description }),
5925
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "bg-gray-50 dark:bg-gray-800/60 border border-gray-200 dark:border-gray-700 rounded-2xl p-8 md:p-12 shadow-sm dark:shadow-none", children: [
5926
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "space-y-10", children: [
5927
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-gray-600 dark:text-gray-400 text-lg", children: data.intro }),
5928
+ data.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { "data-seo-section": section.id, children: [
5929
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h2", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100 flex items-center", children: section.title }),
5930
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-gray-700 dark:text-gray-300", children: section.content })
3077
5931
  ] }, section.id))
3078
5932
  ] }),
3079
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "mt-10 text-gray-600 dark:text-gray-400 text-lg", children: data.conclusion })
5933
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "mt-10 text-gray-600 dark:text-gray-400 text-lg", children: data.conclusion })
3080
5934
  ] })
3081
5935
  ] });
3082
5936
  });
@@ -3084,9 +5938,118 @@ function SeoContent(_0) {
3084
5938
 
3085
5939
  // src/main/cta.tsx
3086
5940
  var import_server8 = require("next-intl/server");
3087
- var import_gradient_button = require("@third-ui/fuma/mdx/gradient-button");
3088
- var import_rich_text_expert6 = require("@third-ui/main/rich-text-expert");
3089
- var import_jsx_runtime39 = require("react/jsx-runtime");
5941
+
5942
+ // src/fuma/mdx/gradient-button.tsx
5943
+ var import_link2 = __toESM(require("next/link"));
5944
+ var import_react44 = __toESM(require("react"));
5945
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5946
+ function GradientButton({
5947
+ title,
5948
+ icon,
5949
+ align = "left",
5950
+ disabled = false,
5951
+ className = "",
5952
+ href,
5953
+ openInNewTab = true,
5954
+ onClick,
5955
+ loadingText,
5956
+ preventDoubleClick = true
5957
+ }) {
5958
+ const [isLoading, setIsLoading] = (0, import_react44.useState)(false);
5959
+ const actualLoadingText = loadingText || (title == null ? void 0 : title.toString().trim()) || "Loading...";
5960
+ const getAlignmentClass = () => {
5961
+ switch (align) {
5962
+ case "center":
5963
+ return "justify-center";
5964
+ case "right":
5965
+ return "justify-end";
5966
+ default:
5967
+ return "justify-start";
5968
+ }
5969
+ };
5970
+ const handleClick = (e) => __async(null, null, function* () {
5971
+ if (disabled || isLoading) {
5972
+ e.preventDefault();
5973
+ return;
5974
+ }
5975
+ if (onClick) {
5976
+ e.preventDefault();
5977
+ if (preventDoubleClick) {
5978
+ setIsLoading(true);
5979
+ }
5980
+ try {
5981
+ yield onClick();
5982
+ } catch (error) {
5983
+ console.error("GradientButton onClick error:", error);
5984
+ } finally {
5985
+ if (preventDoubleClick) {
5986
+ setIsLoading(false);
5987
+ }
5988
+ }
5989
+ }
5990
+ });
5991
+ const isDisabled = disabled || isLoading;
5992
+ const displayTitle = isLoading ? actualLoadingText : title;
5993
+ const displayIcon = isLoading ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(globalLucideIcons.Loader2, { className: "h-4 w-4 text-white animate-spin" }) : icon ? import_react44.default.cloneElement(icon, {
5994
+ className: "h-4 w-4 text-white"
5995
+ }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" });
5996
+ const buttonContent = onClick ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
5997
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: displayIcon }),
5998
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "ml-1", children: displayTitle })
5999
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
6000
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: displayTitle }),
6001
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "ml-1", children: displayIcon })
6002
+ ] });
6003
+ const buttonClassName = `
6004
+ bg-gradient-to-r
6005
+ from-purple-400 to-pink-500
6006
+ hover:from-purple-500 hover:to-pink-600
6007
+ dark:from-purple-500 dark:to-pink-600
6008
+ dark:hover:from-purple-600 dark:hover:to-pink-700
6009
+ text-white text-base font-bold shadow-lg hover:shadow-xl
6010
+ transition-all duration-300
6011
+ rounded-full
6012
+ ${isDisabled ? "opacity-50 cursor-not-allowed" : ""}
6013
+ ${className}
6014
+ `;
6015
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `flex flex-col sm:flex-row gap-3 ${getAlignmentClass()}`, children: onClick ? (
6016
+ // for click
6017
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6018
+ Button,
6019
+ {
6020
+ size: "lg",
6021
+ className: buttonClassName,
6022
+ onClick: handleClick,
6023
+ disabled: isDisabled,
6024
+ children: buttonContent
6025
+ }
6026
+ )
6027
+ ) : (
6028
+ // for Link
6029
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6030
+ Button,
6031
+ {
6032
+ asChild: true,
6033
+ size: "lg",
6034
+ className: buttonClassName,
6035
+ disabled: isDisabled,
6036
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6037
+ import_link2.default,
6038
+ __spreadProps(__spreadValues({
6039
+ href: href || "#",
6040
+ className: "no-underline hover:no-underline"
6041
+ }, openInNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {}), {
6042
+ onClick: isDisabled ? (e) => e.preventDefault() : void 0,
6043
+ children: buttonContent
6044
+ })
6045
+ )
6046
+ }
6047
+ )
6048
+ ) });
6049
+ }
6050
+
6051
+ // src/main/cta.tsx
6052
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3090
6053
  function CTA(_0) {
3091
6054
  return __async(this, arguments, function* ({
3092
6055
  locale,
@@ -3096,25 +6059,25 @@ function CTA(_0) {
3096
6059
  const data = {
3097
6060
  title: t("title"),
3098
6061
  eyesOn: t("eyesOn"),
3099
- description1: (0, import_rich_text_expert6.richText)(t, "description1"),
6062
+ description1: richText(t, "description1"),
3100
6063
  description2: t("description2"),
3101
6064
  button: t("button"),
3102
6065
  url: t("url")
3103
6066
  };
3104
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("section", { id: "cta", className: cn("px-16 py-20 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "\n bg-gradient-to-r from-[#f7f8fa] via-[#e0c3fc] to-[#b2fefa]\n dark:bg-gradient-to-r dark:from-[#2d0b4e] dark:via-[#6a3fa0] dark:to-[#3a185a]\n rounded-2xl p-12 text-center\n bg-[length:200%_auto] animate-cta-gradient-wave\n ", children: [
3105
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold mb-6", children: [
6067
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("section", { id: "cta", className: cn("px-16 py-20 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "\n bg-gradient-to-r from-[#f7f8fa] via-[#e0c3fc] to-[#b2fefa]\n dark:bg-gradient-to-r dark:from-[#2d0b4e] dark:via-[#6a3fa0] dark:to-[#3a185a]\n rounded-2xl p-12 text-center\n bg-[length:200%_auto] animate-cta-gradient-wave\n ", children: [
6068
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold mb-6", children: [
3106
6069
  data.title,
3107
6070
  " ",
3108
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-purple-400", children: data.eyesOn }),
6071
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-purple-400", children: data.eyesOn }),
3109
6072
  "?"
3110
6073
  ] }),
3111
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("p", { className: "text-2xl mx-auto mb-8", children: [
6074
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "text-2xl mx-auto mb-8", children: [
3112
6075
  data.description1,
3113
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("br", {}),
3114
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-purple-400", children: data.description2 })
6076
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("br", {}),
6077
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-purple-400", children: data.description2 })
3115
6078
  ] }),
3116
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3117
- import_gradient_button.GradientButton,
6079
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6080
+ GradientButton,
3118
6081
  {
3119
6082
  title: data.button,
3120
6083
  href: data.url,
@@ -3127,8 +6090,8 @@ function CTA(_0) {
3127
6090
 
3128
6091
  // src/main/footer.tsx
3129
6092
  var import_server9 = require("next-intl/server");
3130
- var import_link2 = __toESM(require("next/link"));
3131
- var import_jsx_runtime40 = require("react/jsx-runtime");
6093
+ var import_link3 = __toESM(require("next/link"));
6094
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3132
6095
  function Footer(_0) {
3133
6096
  return __async(this, arguments, function* ({ locale }) {
3134
6097
  const tFooter = yield (0, import_server9.getTranslations)({ locale, namespace: "footer" });
@@ -3140,40 +6103,39 @@ function Footer(_0) {
3140
6103
  company: tFooter("company"),
3141
6104
  copyright: tFooter("copyright", { year: (/* @__PURE__ */ new Date()).getFullYear(), name: tFooter("company") })
3142
6105
  };
3143
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "mb-10 w-full mx-auto border-t-purple-700/80 border-t-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("footer", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "w-full flex flex-col items-center justify-center px-4 py-8 space-y-3", children: [
3144
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center justify-center space-x-6 text-xs", children: [
3145
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_link2.default, { href: `/${locale}/legal/terms`, className: "flex items-center space-x-1 hover:underline", children: [
3146
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(globalLucideIcons.ReceiptText, { className: "h-3.5 w-3.5" }),
3147
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: data.terms })
6106
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "mb-10 w-full mx-auto border-t-purple-700/80 border-t-1", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("footer", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "w-full flex flex-col items-center justify-center px-4 py-8 space-y-3", children: [
6107
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center justify-center space-x-6 text-xs", children: [
6108
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_link3.default, { href: `/${locale}/legal/terms`, className: "flex items-center space-x-1 hover:underline", children: [
6109
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(globalLucideIcons.ReceiptText, { className: "h-3.5 w-3.5" }),
6110
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: data.terms })
3148
6111
  ] }),
3149
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_link2.default, { href: `/${locale}/legal/privacy`, className: "flex items-center space-x-1 hover:underline", children: [
3150
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(globalLucideIcons.ShieldUser, { className: "h-3.5 w-3.5" }),
3151
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: data.privacy })
6112
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_link3.default, { href: `/${locale}/legal/privacy`, className: "flex items-center space-x-1 hover:underline", children: [
6113
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(globalLucideIcons.ShieldUser, { className: "h-3.5 w-3.5" }),
6114
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: data.privacy })
3152
6115
  ] }),
3153
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative group", children: [
3154
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "absolute left-2/3 -translate-x-1/4 bottom-full mb-1 hidden group-hover:block bg-zinc-600 text-white text-xs rounded px-3 py-1 whitespace-nowrap z-10 shadow-lg", children: data.email }),
3155
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
6116
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative group", children: [
6117
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "absolute left-2/3 -translate-x-1/4 bottom-full mb-1 hidden group-hover:block bg-zinc-600 text-white text-xs rounded px-3 py-1 whitespace-nowrap z-10 shadow-lg", children: data.email }),
6118
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
3156
6119
  "a",
3157
6120
  {
3158
6121
  href: `mailto:${data.email}`,
3159
6122
  className: "flex items-center space-x-1 underline cursor-pointer px-2",
3160
6123
  children: [
3161
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(globalLucideIcons.Mail, { className: "h-3.5 w-3.5" }),
3162
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: data.contactUs })
6124
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(globalLucideIcons.Mail, { className: "h-3.5 w-3.5" }),
6125
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: data.contactUs })
3163
6126
  ]
3164
6127
  }
3165
6128
  )
3166
6129
  ] })
3167
6130
  ] }),
3168
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "text-xs text-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: data.copyright }) })
6131
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "text-xs text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: data.copyright }) })
3169
6132
  ] }) }) });
3170
6133
  });
3171
6134
  }
3172
6135
 
3173
6136
  // src/main/price-plan.tsx
3174
6137
  var import_server10 = require("next-intl/server");
3175
- var import_main3 = require("@third-ui/main");
3176
- var import_jsx_runtime41 = require("react/jsx-runtime");
6138
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3177
6139
  function PricePlan(_0) {
3178
6140
  return __async(this, arguments, function* ({
3179
6141
  locale,
@@ -3215,9 +6177,9 @@ function PricePlan(_0) {
3215
6177
  const currentBillingDisplay = data.billingSwitch.options.find((opt) => opt.key === billingKey) || defaultBillingDisplay;
3216
6178
  const billingSubTitle = (currentBillingDisplay == null ? void 0 : currentBillingDisplay.subTitle) || "";
3217
6179
  if (typeof priceValue !== "number" || isNaN(priceValue)) {
3218
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col items-start w-full", "data-price-container": plan.key, children: [
3219
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-end gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", "data-price-value": plan.key, children: priceValue }) }),
3220
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), "data-price-subtitle": plan.key, children: plan.showBillingSubTitle === false ? "" : billingSubTitle }) })
6180
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col items-start w-full", "data-price-container": plan.key, children: [
6181
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-end gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", "data-price-value": plan.key, children: priceValue }) }),
6182
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), "data-price-subtitle": plan.key, children: plan.showBillingSubTitle === false ? "" : billingSubTitle }) })
3221
6183
  ] });
3222
6184
  }
3223
6185
  const originValue = Number(priceValue);
@@ -3231,32 +6193,32 @@ function PricePlan(_0) {
3231
6193
  discountText = currentBillingDisplay.discountText.replace("{percent}", String(Math.round(Math.abs(discount) * 100)));
3232
6194
  }
3233
6195
  const showNaN = saleValue < 0;
3234
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col items-start w-full", "data-price-container": plan.key, children: [
3235
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-end gap-2", children: [
3236
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", "data-price-value": plan.key, children: [
6196
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col items-start w-full", "data-price-container": plan.key, children: [
6197
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-end gap-2", children: [
6198
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", "data-price-value": plan.key, children: [
3237
6199
  data.currency,
3238
6200
  showNaN ? "NaN" : hasDiscount ? formatPrice(saleValue) : formatPrice(originValue)
3239
6201
  ] }),
3240
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-lg text-gray-700 dark:text-gray-300 font-medium mb-1", "data-price-unit": plan.key, children: unit })
6202
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-lg text-gray-700 dark:text-gray-300 font-medium mb-1", "data-price-unit": plan.key, children: unit })
3241
6203
  ] }),
3242
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: [
3243
- hasDiscount && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
3244
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "text-base text-gray-400 line-through", "data-price-original": plan.key, children: [
6204
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: [
6205
+ hasDiscount && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
6206
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-base text-gray-400 line-through", "data-price-original": plan.key, children: [
3245
6207
  data.currency,
3246
6208
  showNaN ? "NaN" : formatPrice(originValue)
3247
6209
  ] }),
3248
- discountText && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "px-2 py-0.5 text-xs rounded bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 font-semibold align-middle", "data-price-discount": plan.key, children: discountText })
6210
+ discountText && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "px-2 py-0.5 text-xs rounded bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 font-semibold align-middle", "data-price-discount": plan.key, children: discountText })
3249
6211
  ] }),
3250
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), "data-price-subtitle": plan.key, children: plan.showBillingSubTitle === false ? "" : billingSubTitle })
6212
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), "data-price-subtitle": plan.key, children: plan.showBillingSubTitle === false ? "" : billingSubTitle })
3251
6213
  ] })
3252
6214
  ] });
3253
6215
  }
3254
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("section", { id: "pricing", className: cn("px-4 py-10 md:px-16 md:py-16 mx-auto max-w-7xl scroll-mt-10", sectionClassName), children: [
3255
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-3", children: data.title }),
3256
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-8 text-base md:text-lg mx-auto", children: data.subtitle }),
3257
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col items-center", children: [
3258
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center relative mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-full p-1", "data-billing-switch": true, children: [
3259
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6216
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("section", { id: "pricing", className: cn("px-4 py-10 md:px-16 md:py-16 mx-auto max-w-7xl scroll-mt-10", sectionClassName), children: [
6217
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-3", children: data.title }),
6218
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-8 text-base md:text-lg mx-auto", children: data.subtitle }),
6219
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col items-center", children: [
6220
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center relative mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-full p-1", "data-billing-switch": true, children: [
6221
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3260
6222
  "button",
3261
6223
  {
3262
6224
  className: cn(
@@ -3268,7 +6230,7 @@ function PricePlan(_0) {
3268
6230
  children: ((_a = data.billingSwitch.options.find((opt) => opt.key === "monthly")) == null ? void 0 : _a.name) || "Monthly"
3269
6231
  }
3270
6232
  ),
3271
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6233
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3272
6234
  "button",
3273
6235
  {
3274
6236
  className: cn(
@@ -3281,19 +6243,19 @@ function PricePlan(_0) {
3281
6243
  }
3282
6244
  )
3283
6245
  ] }) }),
3284
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "h-8 flex items-center justify-center mb-3", "data-discount-info": true, children: (() => {
6246
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "h-8 flex items-center justify-center mb-3", "data-discount-info": true, children: (() => {
3285
6247
  const opt = data.billingSwitch.options.find((opt2) => opt2.key === data.billingSwitch.defaultKey);
3286
6248
  const bOpt = billingOptions.find((opt2) => opt2.key === data.billingSwitch.defaultKey);
3287
6249
  if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return null;
3288
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap", children: opt.discountText.replace(
6250
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap", children: opt.discountText.replace(
3289
6251
  "{percent}",
3290
6252
  String(Math.round(Math.abs(bOpt.discount) * 100))
3291
6253
  ) });
3292
6254
  })() })
3293
6255
  ] }),
3294
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8", children: data.plans.map((plan, _idx) => {
6256
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8", children: data.plans.map((plan, _idx) => {
3295
6257
  var _a2, _b2, _c;
3296
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
6258
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3297
6259
  "div",
3298
6260
  {
3299
6261
  "data-price-plan": plan.key,
@@ -3304,29 +6266,29 @@ function PricePlan(_0) {
3304
6266
  ),
3305
6267
  style: { minHeight: maxFeaturesCount * 100 },
3306
6268
  children: [
3307
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2 mb-2", children: [
3308
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-xl font-bold text-gray-900 dark:text-gray-100", children: plan.title }),
3309
- plan.titleTags && plan.titleTags.map((tag, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "px-2 py-0.5 text-xs rounded bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200 font-semibold align-middle", children: tag }, i))
6269
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2 mb-2", children: [
6270
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-xl font-bold text-gray-900 dark:text-gray-100", children: plan.title }),
6271
+ plan.titleTags && plan.titleTags.map((tag, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "px-2 py-0.5 text-xs rounded bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200 font-semibold align-middle", children: tag }, i))
3310
6272
  ] }),
3311
6273
  renderPrice(plan),
3312
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ul", { className: "flex-1 mb-6 mt-4", children: getFeatureRows(plan).map((feature, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("li", { className: "flex items-center gap-2 mb-2 min-h-[28px]", "data-feature-item": `${plan.key}-${i}`, children: [
3313
- feature ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "inline-flex items-center justify-center w-5 h-5 rounded-full bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-200 mr-1", children: feature.icon ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: feature.icon }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "font-bold", children: "\u2713" }) }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "inline-flex items-center justify-center w-5 h-5 rounded-full mr-1", children: "\xA0" }),
3314
- feature && feature.tag && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "px-1 py-0.5 text-[6px] rounded bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 font-semibold align-middle", children: feature.tag }),
3315
- feature ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "relative group cursor-pointer text-sm text-gray-800 dark:text-gray-200", children: [
6274
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { className: "flex-1 mb-6 mt-4", children: getFeatureRows(plan).map((feature, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("li", { className: "flex items-center gap-2 mb-2 min-h-[28px]", "data-feature-item": `${plan.key}-${i}`, children: [
6275
+ feature ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "inline-flex items-center justify-center w-5 h-5 rounded-full bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-200 mr-1", children: feature.icon ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: feature.icon }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "font-bold", children: "\u2713" }) }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "inline-flex items-center justify-center w-5 h-5 rounded-full mr-1", children: "\xA0" }),
6276
+ feature && feature.tag && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "px-1 py-0.5 text-[6px] rounded bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 font-semibold align-middle", children: feature.tag }),
6277
+ feature ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "relative group cursor-pointer text-sm text-gray-800 dark:text-gray-200", children: [
3316
6278
  feature.description,
3317
- feature.tooltip && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6279
+ feature.tooltip && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3318
6280
  "span",
3319
6281
  {
3320
6282
  className: "ml-1 align-middle inline-flex",
3321
6283
  "data-tooltip-trigger": `${plan.key}-${i}`,
3322
6284
  "data-tooltip-content": feature.tooltip,
3323
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) })
6285
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) })
3324
6286
  }
3325
6287
  )
3326
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: "\xA0" })
6288
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: "\xA0" })
3327
6289
  ] }, i)) }),
3328
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex-1" }),
3329
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6290
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex-1" }),
6291
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3330
6292
  "button",
3331
6293
  {
3332
6294
  className: cn(
@@ -3344,7 +6306,7 @@ function PricePlan(_0) {
3344
6306
  plan.key
3345
6307
  );
3346
6308
  }) }),
3347
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_main3.PricePlanInteractive, { data })
6309
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PricePlanInteractive, { data })
3348
6310
  ] });
3349
6311
  });
3350
6312
  }